]> git.saurik.com Git - wxWidgets.git/blame - configure
Added wxWinCE project files and project file cleaner,
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eea650d8 4# Generated by GNU Autoconf 2.58 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
eea650d8 8# Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
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## --------------------- ##
fe0895cf 14
e6cc62c6
VS
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
eea650d8 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
eea650d8 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
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
eea650d8 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
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'`
fe0895cf
VS
79
80
e6cc62c6
VS
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
fe0895cf 88
e6cc62c6
VS
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
fe0895cf
VS
101
102
e6cc62c6
VS
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
fe0895cf 119
e6cc62c6
VS
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
fe0895cf 158
e6cc62c6
VS
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}
fe0895cf
VS
188
189
e6cc62c6
VS
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
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
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
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
eea650d8 224 test -d ./-p && rmdir ./-p
e6cc62c6
VS
225 as_mkdir_p=false
226fi
fe0895cf 227
e6cc62c6 228as_executable_p="test -f"
fe0895cf 229
e6cc62c6 230# Sed expression to map a string onto a valid CPP name.
eea650d8 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf 232
e6cc62c6 233# Sed expression to map a string onto a valid variable name.
eea650d8 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf
VS
235
236
e6cc62c6
VS
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
fe0895cf 242
e6cc62c6
VS
243# CDPATH.
244$as_unset CDPATH
fe0895cf
VS
245
246
e6cc62c6
VS
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`
fe0895cf 251
e6cc62c6 252exec 6>&1
fe0895cf 253
a0b9e27f 254#
e6cc62c6
VS
255# Initializations.
256#
a0b9e27f 257ac_default_prefix=/usr/local
e6cc62c6
VS
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'
e46d2a18
VS
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
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
672abd7a 315ac_subdirs_all="$ac_subdirs_all src/expat"
3527f29c 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 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 EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX 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 LIBPREFIX 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_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT 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_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_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_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_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 MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 317ac_subst_files=''
10f2d63a
VZ
318
319# Initialize some variables set by options.
e6cc62c6
VS
320ac_init_help=
321ac_init_version=false
10f2d63a
VZ
322# The variables have the same names as the options, with
323# dashes changed to underlines.
e6cc62c6 324cache_file=/dev/null
10f2d63a 325exec_prefix=NONE
10f2d63a 326no_create=
10f2d63a
VZ
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
10f2d63a
VZ
335verbose=
336x_includes=NONE
337x_libraries=NONE
e6cc62c6
VS
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.
10f2d63a
VZ
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
10f2d63a
VZ
357ac_prev=
358for ac_option
359do
10f2d63a
VZ
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
e6cc62c6 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
e6cc62c6 371 case $ac_option in
10f2d63a
VZ
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 376 bindir=$ac_optarg ;;
10f2d63a
VZ
377
378 -build | --build | --buil | --bui | --bu)
e6cc62c6 379 ac_prev=build_alias ;;
10f2d63a 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 381 build_alias=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6
VS
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
10f2d63a
VZ
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
e6cc62c6 397 datadir=$ac_optarg ;;
10f2d63a
VZ
398
399 -disable-* | --disable-*)
e6cc62c6 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 401 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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" ;;
10f2d63a
VZ
407
408 -enable-* | --enable-*)
e6cc62c6 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 410 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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"`;;
10f2d63a
VZ
417 *) ac_optarg=yes ;;
418 esac
e6cc62c6 419 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
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=*)
e6cc62c6 428 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
e6cc62c6
VS
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 ;;
10f2d63a
VZ
440
441 -host | --host | --hos | --ho)
e6cc62c6 442 ac_prev=host_alias ;;
10f2d63a 443 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 444 host_alias=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 451 includedir=$ac_optarg ;;
10f2d63a
VZ
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 456 infodir=$ac_optarg ;;
10f2d63a
VZ
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 461 libdir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 468 libexecdir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 477 localstatedir=$ac_optarg ;;
10f2d63a
VZ
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 482 mandir=$ac_optarg ;;
10f2d63a
VZ
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 \
e6cc62c6 489 | --no-cr | --no-c | -n)
10f2d63a
VZ
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=*)
e6cc62c6 503 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 508 prefix=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 515 program_prefix=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 522 program_suffix=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 539 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 549 sbindir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 560 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
e6cc62c6 565 site=$ac_optarg ;;
10f2d63a
VZ
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 570 srcdir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 577 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 580 ac_prev=target_alias ;;
10f2d63a 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 582 target_alias=$ac_optarg ;;
10f2d63a
VZ
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
e6cc62c6
VS
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
10f2d63a
VZ
589
590 -with-* | --with-*)
e6cc62c6 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 592 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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; }; }
10f2d63a 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
599 *) ac_optarg=yes ;;
600 esac
e6cc62c6 601 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
602
603 -without-* | --without-*)
e6cc62c6 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 605 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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" ;;
10f2d63a
VZ
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=*)
e6cc62c6 621 x_includes=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 628 x_libraries=$ac_optarg ;;
10f2d63a 629
e6cc62c6
VS
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
10f2d63a
VZ
633 ;;
634
e6cc62c6
VS
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
10f2d63a 645 *)
e6cc62c6
VS
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}
10f2d63a
VZ
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
e6cc62c6
VS
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; }; }
a0b9e27f 660fi
a0b9e27f 661
e6cc62c6
VS
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
8284b0c5 672
e6cc62c6
VS
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
eea650d8 675 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 676do
e6cc62c6
VS
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; }; };;
10f2d63a
VZ
682 esac
683done
684
e6cc62c6
VS
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
247f5006 702
e6cc62c6
VS
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
10f2d63a 707
10f2d63a
VZ
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.
e6cc62c6
VS
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
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'`
10f2d63a
VZ
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
e6cc62c6
VS
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
10f2d63a 736 else
e6cc62c6
VS
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
10f2d63a
VZ
739 fi
740fi
e6cc62c6
VS
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
328a083c 789
e6cc62c6
VS
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
e46d2a18 797\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 798
e6cc62c6 799Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 800
e6cc62c6
VS
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 803
e6cc62c6
VS
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
eea650d8 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
eea650d8 824 [PREFIX]
e6cc62c6
VS
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
e46d2a18 863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
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
9747f85d 871 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
872 --enable-universal use wxWindows GUI controls instead of native ones
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-shared create shared library code
e6cc62c6
VS
876 --enable-optimise create optimised code
877 --enable-debug same as debug_flag and debug_info
df5168c4 878 --enable-stl use STL for containers
e6cc62c6
VS
879 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
880 --enable-debug_info create code with debugging information
881 --enable-debug_gdb create code with extra GDB debugging information
882 --enable-debug_cntxt use wxDebugContext
883 --enable-mem_tracing create code with memory tracing
884 --enable-profile create code with profiling information
885 --enable-no_rtti create code without RTTI information
886 --enable-no_exceptions create code without C++ exceptions handling
887 --enable-permissive compile code disregarding strict ANSI
888 --enable-no_deps create code without dependency information
e6cc62c6
VS
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
e46d2a18 899 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
902 --enable-apple_ieee use the Apple IEEE codec
903 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
904 --enable-cmdline use wxCmdLineParser class
905 --enable-datetime use wxDateTime class
e6cc62c6 906 --enable-dialupman use dialup network classes
e6cc62c6
VS
907 --enable-dynlib use wxLibrary class for DLL loading
908 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
909 --enable-exceptions build exception-safe library
910 --enable-ffile use wxFFile class
911 --enable-file use wxFile class
912 --enable-filesystem use virtual file systems classes
913 --enable-fontmap use font encodings conversion classes
914 --enable-fs_inet use virtual HTTP/FTP filesystems
915 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
916 --enable-geometry use geometry class
917 --enable-log use logging system
e46d2a18
VS
918 --enable-longlong use wxLongLong class
919 --enable-mimetype use wxMimeTypesManager
920 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
921 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 922 --enable-streams use wxStream etc classes
e46d2a18
VS
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-stopwatch use wxStopWatch class
925 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
926 --enable-textbuf use wxTextBuffer class
927 --enable-textfile use wxTextFile class
e46d2a18 928 --enable-timer use wxTimer class
e6cc62c6 929 --enable-unicode compile wxString with Unicode support
e46d2a18 930 --enable-wave use wxWave class
e6cc62c6 931 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 932 --enable-zipstream use wxZipInputStream
7015ef3a 933 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
934 --enable-url use wxURL class
935 --enable-protocol use wxProtocol class
936 --enable-protocol-http HTTP support in wxProtocol
937 --enable-protocol-ftp FTP support in wxProtocol
938 --enable-protocol-file FILE support in wxProtocol
939 --enable-threads use threads
940 --enable-docview use document view architecture
941 --enable-help use help subsystem
942 --enable-mshtmlhelp use MS HTML Help (win32)
943 --enable-html use wxHTML sub-library
944 --enable-htmlhelp use wxHTML-based help
945 --enable-constraints use layout-constraints system
946 --enable-printarch use printing architecture
947 --enable-mdi use multiple document interface architecture
948 --enable-loggui use standard GUI logger
949 --enable-logwin use wxLogWindow
950 --enable-logdialog use wxLogDialog
951 --enable-postscript use wxPostscriptDC device context (default for gtk+)
952 --enable-prologio not available; see contrib
953 --enable-resources not available; see contrib
954 --enable-clipboard use wxClipboard class
955 --enable-dnd use Drag'n'Drop classes
956 --enable-metafile use win32 metafiles
957 --enable-controls use all usual controls
958 --enable-accel use accelerators
959 --enable-button use wxButton class
960 --enable-bmpbutton use wxBitmapButton class
961 --enable-calendar use wxCalendarCtrl class
962 --enable-caret use wxCaret class
963 --enable-checkbox use wxCheckBox class
964 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
965 --enable-choice use wxChoice class
966 --enable-combobox use wxComboBox class
967 --enable-display use wxDisplay class
968 --enable-gauge use wxGauge class
969 --enable-grid use wxGrid class
970 --enable-imaglist use wxImageList class
0e012a93 971 --enable-listbook use wxListbook class
e6cc62c6
VS
972 --enable-listbox use wxListBox class
973 --enable-listctrl use wxListCtrl class
974 --enable-notebook use wxNotebook class
975 --enable-radiobox use wxRadioBox class
976 --enable-radiobtn use wxRadioButton class
977 --enable-sash use wxSashWindow class
978 --enable-scrollbar use wxScrollBar class and scrollable windows
979 --enable-slider use wxSlider class
980 --enable-spinbtn use wxSpinButton class
981 --enable-spinctrl use wxSpinCtrl class
982 --enable-splitter use wxSplitterWindow class
983 --enable-statbmp use wxStaticBitmap class
984 --enable-statbox use wxStaticBox class
985 --enable-statline use wxStaticLine class
986 --enable-stattext use wxStaticText class
987 --enable-statusbar use wxStatusBar class
988 --enable-tabdialog use wxTabControl class
989 --enable-textctrl use wxTextCtrl class
990 --enable-togglebtn use wxToggleButton class
991 --enable-toolbar use wxToolBar class
992 --enable-tbarnative use native wxToolBar class
993 --enable-tbarsmpl use wxToolBarSimple class
994 --enable-treectrl use wxTreeCtrl class
995 --enable-tipwindow use wxTipWindow class
996 --enable-popupwin use wxPopUpWindow class
997 --enable-commondlg use all common dialogs
998 --enable-choicedlg use wxChoiceDialog
999 --enable-coldlg use wxColourDialog
1000 --enable-filedlg use wxFileDialog
1001 --enable-finddlg use wxFindReplaceDialog
1002 --enable-fontdlg use wxFontDialog
1003 --enable-dirdlg use wxDirDialog
1004 --enable-msgdlg use wxMessageDialog
1005 --enable-numberdlg use wxNumberEntryDialog
1006 --enable-splash use wxSplashScreen
1007 --enable-textdlg use wxTextDialog
1008 --enable-tipdlg use startup tips
1009 --enable-progressdlg use wxProgressDialog
1010 --enable-wizarddlg use wxWizard
1011 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1012 --enable-miniframe use wxMiniFrame class
1013 --enable-tooltips use wxToolTip class
1014 --enable-splines use spline drawing code
1015 --enable-validators use wxValidator and derived classes
1016 --enable-busyinfo use wxBusyInfo
1017 --enable-joystick use wxJoystick (Linux only)
1018 --enable-metafiles use wxMetaFile (Windows only)
1019 --enable-dragimage use wxDragImage
1020 --enable-accessibility enable accessibility support
1021 --enable-palette use wxPalette class
1022 --enable-image use wxImage class
1023 --enable-gif use gif images (GIF file format)
1024 --enable-pcx use pcx images (PCX file format)
1025 --enable-iff use iff images (IFF file format)
1026 --enable-pnm use pnm images (PNM file format)
1027 --enable-xpm use xpm images (XPM file format)
1028 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1029 --enable-official_build official build of wxWindows (win32 DLL only)
1030 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1031 --disable-largefile omit support for large files
1032 --disable-gtktest do not try to compile and run a test GTK+ program
1033 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1034 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1035
1036Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gtk use GTK+
1040 --with-motif use Motif/Lesstif
1041 --with-mac use Mac OS X
1042 --with-cocoa use Cocoa
1043 --with-wine use Wine
1044 --with-msw use MS-Windows
1045 --with-pm use OS/2 Presentation Manager
1046 --with-mgl use SciTech MGL
1047 --with-microwin use MicroWindows
1048 --with-x11 use X11
1049 --with-libpng use libpng (PNG image format)
1050 --with-libjpeg use libjpeg (JPEG file format)
1051 --with-libtiff use libtiff (TIFF file format)
89fe663f 1052 --with-libxpm use libxpm (XPM file format)
3527f29c 1053 --with-libmspack use libmspack (CHM help files loading)
e6cc62c6
VS
1054 --with-opengl use OpenGL (or Mesa)
1055 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1056 --with-regex enable support for wxRegEx class
1057 --with-zlib use zlib for LZW compression
1058 --with-odbc use the IODBC and wxODBC classes
672abd7a 1059 --with-expat enable XML support using expat parser
e6cc62c6
VS
1060 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1061 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1062 --with-x use the X Window System
1063 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1064
1065Some influential environment variables:
1066 CC C compiler command
1067 CFLAGS C compiler flags
1068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
1072 CPP C preprocessor
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1075 CXXCPP C++ preprocessor
1076
1077Use these variables to override the choices made by `configure' or to help
1078it to find libraries and programs with nonstandard names/locations.
1079
1080Report bugs to <wx-dev@lists.wxwindows.org>.
1081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1086 ac_popdir=`pwd`
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1089 ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096 ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100 .) # No --srcdir option. We are building in place.
1101 ac_srcdir=.
1102 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=.
1104 else
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 fi ;;
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1110 *) # Relative path.
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
eea650d8
VS
1114case "$ac_dir" in
1115.) ac_abs_builddir=$ac_builddir;;
1116*)
1117 case $ac_builddir in
1118 .) ac_abs_builddir="$ac_dir";;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1120 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1121 esac;;
1122esac
1123case "$ac_dir" in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir="$ac_dir";;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case "$ac_dir" in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir="$ac_dir";;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1139 esac;;
1140esac
1141case "$ac_dir" in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir="$ac_dir";;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1148 esac;;
1149esac
e6cc62c6
VS
1150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
eea650d8 1160 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
8284b0c5 1169
e6cc62c6
VS
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
e46d2a18 1173wxWindows configure 2.5.1
eea650d8 1174generated by GNU Autoconf 2.58
10f2d63a 1175
eea650d8 1176Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
1179_ACEOF
1180 exit 0
7c66a493 1181fi
e6cc62c6
VS
1182exec 5>config.log
1183cat >&5 <<_ACEOF
1184This file contains any messages produced by compilers while
1185running configure, to aid debugging if configure makes a mistake.
1186
e46d2a18 1187It was created by wxWindows $as_me 2.5.1, which was
eea650d8 1188generated by GNU Autoconf 2.58. Invocation command line was
e6cc62c6
VS
1189
1190 $ $0 $@
1191
1192_ACEOF
1193{
1194cat <<_ASUNAME
1195## --------- ##
1196## Platform. ##
1197## --------- ##
1198
1199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
1205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1207
1208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1215
1216_ASUNAME
1217
1218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219for as_dir in $PATH
1220do
1221 IFS=$as_save_IFS
1222 test -z "$as_dir" && as_dir=.
1223 echo "PATH: $as_dir"
1224done
1225
1226} >&5
1227
1228cat >&5 <<_ACEOF
1229
1230
1231## ----------- ##
1232## Core tests. ##
1233## ----------- ##
1234
1235_ACEOF
1236
1237
1238# Keep a trace of the command line.
1239# Strip out --no-create and --no-recursion so they do not pile up.
1240# Strip out --silent because we don't want to record it for future runs.
1241# Also quote any args containing shell meta-characters.
1242# Make two passes to allow for proper duplicate-argument suppression.
1243ac_configure_args=
1244ac_configure_args0=
1245ac_configure_args1=
1246ac_sep=
1247ac_must_keep_next=false
1248for ac_pass in 1 2
1249do
1250 for ac_arg
1251 do
1252 case $ac_arg in
1253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 continue ;;
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 esac
1260 case $ac_pass in
1261 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 2)
1263 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264 if test $ac_must_keep_next = true; then
eea650d8 1265 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1266 else
eea650d8
VS
1267 case $ac_arg in
1268 *=* | --config-cache | -C | -disable-* | --disable-* \
1269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271 | -with-* | --with-* | -without-* | --without-* | --x)
1272 case "$ac_configure_args0 " in
1273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274 esac
1275 ;;
1276 -* ) ac_must_keep_next=true ;;
1277 esac
e6cc62c6
VS
1278 fi
1279 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280 # Get rid of the leading space.
1281 ac_sep=" "
1282 ;;
1283 esac
1284 done
1285done
1286$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
1289# When interrupted or exit'd, cleanup temporary files, and complete
1290# config.log. We remove comments because anyway the quotes in there
1291# would cause problems or look ugly.
1292# WARNING: Be sure not to use single quotes in there, as some shells,
1293# such as our DU 5.0 friend, will then `close' the trap.
1294trap 'exit_status=$?
1295 # Save into config.log some information that might help in debugging.
1296 {
1297 echo
1298
1299 cat <<\_ASBOX
1300## ---------------- ##
1301## Cache variables. ##
1302## ---------------- ##
1303_ASBOX
1304 echo
1305 # The following way of writing the cache mishandles newlines in values,
1306{
1307 (set) 2>&1 |
1308 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309 *ac_space=\ *)
1310 sed -n \
eea650d8
VS
1311 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1313 ;;
1314 *)
1315 sed -n \
eea650d8 1316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1317 ;;
1318 esac;
1319}
1320 echo
1321
1322 cat <<\_ASBOX
1323## ----------------- ##
1324## Output variables. ##
1325## ----------------- ##
1326_ASBOX
1327 echo
1328 for ac_var in $ac_subst_vars
1329 do
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1334
1335 if test -n "$ac_subst_files"; then
1336 cat <<\_ASBOX
1337## ------------- ##
1338## Output files. ##
1339## ------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_files
1343 do
1344 eval ac_val=$`echo $ac_var`
eea650d8 1345 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1346 done | sort
1347 echo
1348 fi
1349
1350 if test -s confdefs.h; then
1351 cat <<\_ASBOX
1352## ----------- ##
1353## confdefs.h. ##
1354## ----------- ##
1355_ASBOX
1356 echo
1357 sed "/^$/d" confdefs.h | sort
1358 echo
1359 fi
1360 test "$ac_signal" != 0 &&
1361 echo "$as_me: caught signal $ac_signal"
1362 echo "$as_me: exit $exit_status"
1363 } >&5
eea650d8 1364 rm -f core *.core &&
e6cc62c6
VS
1365 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366 exit $exit_status
1367 ' 0
1368for ac_signal in 1 2 13 15; do
1369 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370done
1371ac_signal=0
1372
1373# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374rm -rf conftest* confdefs.h
1375# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376echo >confdefs.h
1377
1378# Predefined preprocessor variables.
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_NAME "$PACKAGE_NAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_VERSION "$PACKAGE_VERSION"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_STRING "$PACKAGE_STRING"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402_ACEOF
1403
1404
1405# Let the site file select an alternate cache file if it wants to.
1406# Prefer explicitly selected file to automatically selected ones.
1407if test -z "$CONFIG_SITE"; then
1408 if test "x$prefix" != xNONE; then
1409 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 else
1411 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412 fi
1413fi
1414for ac_site_file in $CONFIG_SITE; do
1415 if test -r "$ac_site_file"; then
1416 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417echo "$as_me: loading site script $ac_site_file" >&6;}
1418 sed 's/^/| /' "$ac_site_file" >&5
1419 . "$ac_site_file"
1420 fi
1421done
1422
1423if test -r "$cache_file"; then
1424 # Some versions of bash will fail to source /dev/null (special
1425 # files actually), so we avoid doing that.
1426 if test -f "$cache_file"; then
1427 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428echo "$as_me: loading cache $cache_file" >&6;}
1429 case $cache_file in
1430 [\\/]* | ?:[\\/]* ) . $cache_file;;
1431 *) . ./$cache_file;;
1432 esac
1433 fi
1434else
1435 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436echo "$as_me: creating cache $cache_file" >&6;}
1437 >$cache_file
1438fi
1439
1440# Check that the precious variables saved in the cache have kept the same
1441# value.
1442ac_cache_corrupted=false
1443for ac_var in `(set) 2>&1 |
eea650d8 1444 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446 eval ac_new_set=\$ac_env_${ac_var}_set
1447 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448 eval ac_new_val="\$ac_env_${ac_var}_value"
1449 case $ac_old_set,$ac_new_set in
1450 set,)
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1454 ,set)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,);;
1459 *)
1460 if test "x$ac_old_val" != "x$ac_new_val"; then
eea650d8 1461 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1462echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
eea650d8 1463 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1464echo "$as_me: former value: $ac_old_val" >&2;}
eea650d8 1465 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1466echo "$as_me: current value: $ac_new_val" >&2;}
eea650d8 1467 ac_cache_corrupted=:
e6cc62c6
VS
1468 fi;;
1469 esac
1470 # Pass precious variables to config.status.
1471 if test "$ac_new_set" = set; then
1472 case $ac_new_val in
1473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 *) ac_arg=$ac_var=$ac_new_val ;;
1476 esac
1477 case " $ac_configure_args " in
1478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1479 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480 esac
1481 fi
1482done
1483if $ac_cache_corrupted; then
1484 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488 { (exit 1); exit 1; }; }
1489fi
1490
1491ac_ext=c
1492ac_cpp='$CPP $CPPFLAGS'
1493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
698dcdb6 1513
8284b0c5 1514
7c66a493 1515
a0b9e27f
MB
1516
1517
a0b9e27f 1518
a0b9e27f 1519
a0b9e27f 1520
a0b9e27f 1521
a0b9e27f 1522
a0b9e27f 1523
e6cc62c6
VS
1524
1525
1526ac_aux_dir=
1527for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1528 if test -f $ac_dir/install-sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install-sh -c"
1531 break
1532 elif test -f $ac_dir/install.sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install.sh -c"
1535 break
1536 elif test -f $ac_dir/shtool; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/shtool install -c"
1539 break
1540 fi
1541done
1542if test -z "$ac_aux_dir"; then
1543 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1544echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1545 { (exit 1); exit 1; }; }
1546fi
1547ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550
1551# Make sure we can run config.sub.
1552$ac_config_sub sun4 >/dev/null 2>&1 ||
1553 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1554echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1555 { (exit 1); exit 1; }; }
1556
1557echo "$as_me:$LINENO: checking build system type" >&5
1558echo $ECHO_N "checking build system type... $ECHO_C" >&6
1559if test "${ac_cv_build+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562 ac_cv_build_alias=$build_alias
1563test -z "$ac_cv_build_alias" &&
1564 ac_cv_build_alias=`$ac_config_guess`
1565test -z "$ac_cv_build_alias" &&
1566 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1567echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1568 { (exit 1); exit 1; }; }
1569ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1570 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1571echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574fi
1575echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1576echo "${ECHO_T}$ac_cv_build" >&6
1577build=$ac_cv_build
1578build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581
1582
1583echo "$as_me:$LINENO: checking host system type" >&5
1584echo $ECHO_N "checking host system type... $ECHO_C" >&6
1585if test "${ac_cv_host+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588 ac_cv_host_alias=$host_alias
1589test -z "$ac_cv_host_alias" &&
1590 ac_cv_host_alias=$ac_cv_build_alias
1591ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1592 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1593echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1594 { (exit 1); exit 1; }; }
1595
1596fi
1597echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1598echo "${ECHO_T}$ac_cv_host" >&6
1599host=$ac_cv_host
1600host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
1604
1605echo "$as_me:$LINENO: checking target system type" >&5
1606echo $ECHO_N "checking target system type... $ECHO_C" >&6
1607if test "${ac_cv_target+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_target_alias=$target_alias
1611test "x$ac_cv_target_alias" = "x" &&
1612 ac_cv_target_alias=$ac_cv_host_alias
1613ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1614 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1615echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1616 { (exit 1); exit 1; }; }
1617
1618fi
1619echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1620echo "${ECHO_T}$ac_cv_target" >&6
1621target=$ac_cv_target
1622target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627# The aliases save the names the user supplied, while $host etc.
1628# will get canonicalized.
1629test -n "$target_alias" &&
7c66a493
VZ
1630 test "$program_prefix$program_suffix$program_transform_name" = \
1631 NONENONEs,x,x, &&
1632 program_prefix=${target_alias}-
8284b0c5
MB
1633
1634
a0b9e27f 1635
10f2d63a 1636WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1637WX_MINOR_VERSION_NUMBER=5
e46d2a18 1638WX_RELEASE_NUMBER=1
10f2d63a 1639
10f2d63a 1640WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1641WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1642
978f1259
RL
1643WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1644
7015ef3a 1645WX_CURRENT=1
6426998c
RL
1646WX_REVISION=0
1647WX_AGE=0
1648
8284b0c5
MB
1649
1650
10f2d63a 1651USE_UNIX=1
73d617c9 1652USE_OS2=0
10f2d63a 1653USE_WIN32=0
f9bc1684 1654USE_DOS=0
b12915c1 1655USE_BEOS=0
1216f52d 1656USE_MAC=0
b12915c1 1657
10f2d63a 1658USE_AIX=
fe0895cf
VS
1659USE_BSD= USE_DARWIN= USE_FREEBSD=
1660USE_GNU= USE_HPUX=
89e3b3e4 1661USE_LINUX=
f6bcfd97 1662USE_NETBSD=
89e3b3e4 1663USE_OPENBSD=
fe0895cf
VS
1664USE_OSF= USE_SGI=
1665USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1666USE_ULTRIX=
89e3b3e4
VZ
1667USE_UNIXWARE=
1668
1669USE_ALPHA=
10f2d63a 1670
ab9b9eab
VZ
1671NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1672
ac0c4cc3 1673ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1674
ac0c4cc3 1675DEFAULT_wxUSE_COCOA=0
10f2d63a 1676DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1677DEFAULT_wxUSE_MAC=0
1678DEFAULT_wxUSE_MGL=0
1725144d 1679DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1680DEFAULT_wxUSE_MOTIF=0
1681DEFAULT_wxUSE_MSW=0
e07802fc 1682DEFAULT_wxUSE_PM=0
f79bd02d 1683DEFAULT_wxUSE_X11=0
10f2d63a 1684
ac0c4cc3 1685DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1686DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1687DEFAULT_DEFAULT_wxUSE_MAC=0
1688DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1689DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1690DEFAULT_DEFAULT_wxUSE_MOTIF=0
1691DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1692DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1693DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1694
d6a55c4b 1695PROGRAM_EXT=
3a922bb4 1696SO_SUFFIX=so
fe0895cf 1697SAMPLES_RPATH_FLAG=
0f1bc9c2 1698SAMPLES_RPATH_POSTLINK=
d6a55c4b 1699
10f2d63a
VZ
1700case "${host}" in
1701 *-hp-hpux* )
1702 USE_HPUX=1
1703 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1704 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1705 SO_SUFFIX=sl
e6cc62c6 1706 cat >>confdefs.h <<\_ACEOF
10f2d63a 1707#define __HPUX__ 1
e6cc62c6 1708_ACEOF
10f2d63a
VZ
1709
1710 ;;
1711 *-*-linux* )
1712 USE_LINUX=1
e6cc62c6 1713 cat >>confdefs.h <<\_ACEOF
10f2d63a 1714#define __LINUX__ 1
e6cc62c6 1715_ACEOF
10f2d63a
VZ
1716
1717 TMP=`uname -m`
1718 if test "x$TMP" = "xalpha"; then
1719 USE_ALPHA=1
e6cc62c6 1720 cat >>confdefs.h <<\_ACEOF
10f2d63a 1721#define __ALPHA__ 1
e6cc62c6 1722_ACEOF
fe0895cf
VS
1723
1724 fi
1725 DEFAULT_DEFAULT_wxUSE_GTK=1
1726 ;;
1727 *-*-gnu* )
1728 USE_GNU=1
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
fe0895cf 1730#define __GNU__ 1
e6cc62c6 1731_ACEOF
fe0895cf
VS
1732
1733 TMP=`uname -m`
1734 if test "x$TMP" = "xalpha"; then
1735 USE_ALPHA=1
e6cc62c6 1736 cat >>confdefs.h <<\_ACEOF
fe0895cf 1737#define __ALPHA__ 1
e6cc62c6 1738_ACEOF
10f2d63a
VZ
1739
1740 fi
1741 DEFAULT_DEFAULT_wxUSE_GTK=1
1742 ;;
1743 *-*-irix5* | *-*-irix6* )
1744 USE_SGI=1
1745 USE_SVR4=1
e6cc62c6 1746 cat >>confdefs.h <<\_ACEOF
10f2d63a 1747#define __SGI__ 1
e6cc62c6 1748_ACEOF
10f2d63a 1749
e6cc62c6 1750 cat >>confdefs.h <<\_ACEOF
10f2d63a 1751#define __SVR4__ 1
e6cc62c6 1752_ACEOF
10f2d63a
VZ
1753
1754 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1755 ;;
1756 *-*-solaris2* )
1757 USE_SUN=1
1758 USE_SOLARIS=1
1759 USE_SVR4=1
e6cc62c6 1760 cat >>confdefs.h <<\_ACEOF
10f2d63a 1761#define __SUN__ 1
e6cc62c6 1762_ACEOF
10f2d63a 1763
e6cc62c6 1764 cat >>confdefs.h <<\_ACEOF
10f2d63a 1765#define __SOLARIS__ 1
e6cc62c6 1766_ACEOF
10f2d63a 1767
e6cc62c6 1768 cat >>confdefs.h <<\_ACEOF
10f2d63a 1769#define __SVR4__ 1
e6cc62c6 1770_ACEOF
10f2d63a
VZ
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1773 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1774 ;;
1775 *-*-sunos4* )
1776 USE_SUN=1
1777 USE_SUNOS=1
1778 USE_BSD=1
e6cc62c6 1779 cat >>confdefs.h <<\_ACEOF
10f2d63a 1780#define __SUN__ 1
e6cc62c6 1781_ACEOF
10f2d63a 1782
e6cc62c6 1783 cat >>confdefs.h <<\_ACEOF
10f2d63a 1784#define __SUNOS__ 1
e6cc62c6 1785_ACEOF
10f2d63a 1786
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
10f2d63a 1788#define __BSD__ 1
e6cc62c6 1789_ACEOF
10f2d63a
VZ
1790
1791 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1792 ;;
f6bcfd97 1793 *-*-freebsd*)
10f2d63a
VZ
1794 USE_BSD=1
1795 USE_FREEBSD=1
e6cc62c6 1796 cat >>confdefs.h <<\_ACEOF
10f2d63a 1797#define __FREEBSD__ 1
e6cc62c6 1798_ACEOF
10f2d63a 1799
e6cc62c6 1800 cat >>confdefs.h <<\_ACEOF
10f2d63a 1801#define __BSD__ 1
e6cc62c6 1802_ACEOF
95c8801c
VS
1803
1804 DEFAULT_DEFAULT_wxUSE_GTK=1
1805 ;;
1806 *-*-openbsd*)
1807 USE_BSD=1
1808 USE_OPENBSD=1
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1810#define __OPENBSD__ 1
e6cc62c6 1811_ACEOF
95c8801c 1812
e6cc62c6 1813 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1814#define __BSD__ 1
e6cc62c6 1815_ACEOF
f6bcfd97
BP
1816
1817 DEFAULT_DEFAULT_wxUSE_GTK=1
1818 ;;
1819 *-*-netbsd*)
1820 USE_BSD=1
1821 USE_NETBSD=1
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1823#define __NETBSD__ 1
e6cc62c6 1824_ACEOF
f6bcfd97 1825
e6cc62c6 1826 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1827#define __BSD__ 1
e6cc62c6 1828_ACEOF
10f2d63a
VZ
1829
1830 DEFAULT_DEFAULT_wxUSE_GTK=1
1831 ;;
1832 *-*-osf* )
1833 USE_ALPHA=1
1834 USE_OSF=1
e6cc62c6 1835 cat >>confdefs.h <<\_ACEOF
10f2d63a 1836#define __ALPHA__ 1
e6cc62c6 1837_ACEOF
10f2d63a 1838
e6cc62c6 1839 cat >>confdefs.h <<\_ACEOF
10f2d63a 1840#define __OSF__ 1
e6cc62c6 1841_ACEOF
10f2d63a
VZ
1842
1843 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1844 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1845 ;;
1846 *-*-dgux5* )
1847 USE_ALPHA=1
1848 USE_SVR4=1
e6cc62c6 1849 cat >>confdefs.h <<\_ACEOF
10f2d63a 1850#define __ALPHA__ 1
e6cc62c6 1851_ACEOF
10f2d63a 1852
e6cc62c6 1853 cat >>confdefs.h <<\_ACEOF
10f2d63a 1854#define __SVR4__ 1
e6cc62c6 1855_ACEOF
10f2d63a
VZ
1856
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 ;;
1859 *-*-sysv5* )
1860 USE_SYSV=1
1861 USE_SVR4=1
e6cc62c6 1862 cat >>confdefs.h <<\_ACEOF
10f2d63a 1863#define __SYSV__ 1
e6cc62c6 1864_ACEOF
10f2d63a 1865
e6cc62c6 1866 cat >>confdefs.h <<\_ACEOF
10f2d63a 1867#define __SVR4__ 1
e6cc62c6 1868_ACEOF
10f2d63a
VZ
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 ;;
1872 *-*-aix* )
1873 USE_AIX=1
1874 USE_SYSV=1
1875 USE_SVR4=1
2b5f62a0 1876 SO_SUFFIX=a
e6cc62c6 1877 cat >>confdefs.h <<\_ACEOF
10f2d63a 1878#define __AIX__ 1
e6cc62c6 1879_ACEOF
10f2d63a 1880
e6cc62c6 1881 cat >>confdefs.h <<\_ACEOF
10f2d63a 1882#define __SYSV__ 1
e6cc62c6 1883_ACEOF
10f2d63a 1884
e6cc62c6 1885 cat >>confdefs.h <<\_ACEOF
10f2d63a 1886#define __SVR4__ 1
e6cc62c6 1887_ACEOF
10f2d63a
VZ
1888
1889 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890 ;;
1891
89e3b3e4
VZ
1892 *-*-*UnixWare*)
1893 USE_SYSV=1
1894 USE_SVR4=1
1895 USE_UNIXWARE=1
e6cc62c6 1896 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1897#define __UNIXWARE__ 1
e6cc62c6 1898_ACEOF
89e3b3e4
VZ
1899
1900 ;;
1901
1c8183e2 1902 *-*-cygwin* | *-*-mingw32* )
17234b26 1903 SO_SUFFIX=dll
cf27ef00 1904 PROGRAM_EXT=".exe"
7b7a7637 1905 RESCOMP=windres
10f2d63a
VZ
1906 DEFAULT_DEFAULT_wxUSE_MSW=1
1907 ;;
1908
f9bc1684
VS
1909 *-pc-msdosdjgpp )
1910 USE_UNIX=0
1911 USE_DOS=1
e6cc62c6 1912 cat >>confdefs.h <<\_ACEOF
f9bc1684 1913#define __DOS__ 1
e6cc62c6 1914_ACEOF
f9bc1684
VS
1915
1916 PROGRAM_EXT=".exe"
1917 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1918 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1919 ;;
1920
6fa882bd 1921 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1922 cat >>confdefs.h <<\_ACEOF
10f2d63a 1923#define __EMX__ 1
e6cc62c6 1924_ACEOF
10f2d63a 1925
73d617c9 1926 USE_OS2=1
7015ef3a
VZ
1927 cat >>confdefs.h <<\_ACEOF
1928#define __OS2__ 1
1929_ACEOF
1930
cf27ef00 1931 PROGRAM_EXT=".exe"
e07802fc 1932 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1933 CXX=gcc
73d617c9 1934 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1935 ac_executable_extensions=".exe"
1936 export ac_executable_extensions
1937 ac_save_IFS="$IFS"
e46d2a18 1938 IFS='\\'
d5fc095c
VS
1939 ac_TEMP_PATH=
1940 for ac_dir in $PATH; do
1941 IFS=$ac_save_IFS
1942 if test -z "$ac_TEMP_PATH"; then
1943 ac_TEMP_PATH="$ac_dir"
1944 else
1945 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1946 fi
1947 done
1948 export PATH="$ac_TEMP_PATH"
1949 unset ac_TEMP_PATH
10f2d63a
VZ
1950 ;;
1951
d08b457b
GD
1952 powerpc-*-darwin* )
1953 USE_BSD=1
f11bdd03 1954 USE_DARWIN=1
3a922bb4 1955 SO_SUFFIX=dylib
e6cc62c6 1956 cat >>confdefs.h <<\_ACEOF
f11bdd03 1957#define __BSD__ 1
e6cc62c6 1958_ACEOF
b4085ce6 1959
e6cc62c6 1960 cat >>confdefs.h <<\_ACEOF
f11bdd03 1961#define __DARWIN__ 1
e6cc62c6 1962_ACEOF
d08b457b 1963
e6cc62c6 1964 cat >>confdefs.h <<\_ACEOF
d08b457b 1965#define __POWERPC__ 1
e6cc62c6 1966_ACEOF
82d43113 1967
e6cc62c6 1968 cat >>confdefs.h <<\_ACEOF
82d43113 1969#define TARGET_CARBON 1
e6cc62c6 1970_ACEOF
b4085ce6
GD
1971
1972 DEFAULT_DEFAULT_wxUSE_MAC=1
1973 ;;
1974
b12915c1
VZ
1975 *-*-beos* )
1976 USE_BEOS=1
e6cc62c6 1977 cat >>confdefs.h <<\_ACEOF
b12915c1 1978#define __BEOS__ 1
e6cc62c6 1979_ACEOF
b12915c1
VZ
1980
1981 ;;
1982
10f2d63a 1983 *)
e6cc62c6
VS
1984 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1985echo "$as_me: error: unknown system type ${host}." >&2;}
1986 { (exit 1); exit 1; }; }
10f2d63a
VZ
1987esac
1988
8284b0c5
MB
1989
1990
1991
1992 wx_arg_cache_file="configarg.cache"
1993 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1994 rm -f ${wx_arg_cache_file}.tmp
1995 touch ${wx_arg_cache_file}.tmp
1996 touch ${wx_arg_cache_file}
e6cc62c6 1997
10f2d63a
VZ
1998
1999DEBUG_CONFIGURE=0
2000if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2001 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2002 DEFAULT_wxUSE_STL=no
1e6feb95 2003
d8356fa3
VZ
2004 DEFAULT_wxUSE_NANOX=no
2005
10f2d63a
VZ
2006 DEFAULT_wxUSE_THREADS=yes
2007
2008 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2009 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2010 DEFAULT_wxUSE_PROFILE=no
2011 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2012 DEFAULT_wxUSE_NO_RTTI=no
2013 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2014 DEFAULT_wxUSE_PERMISSIVE=no
2015 DEFAULT_wxUSE_DEBUG_FLAG=yes
2016 DEFAULT_wxUSE_DEBUG_INFO=yes
2017 DEFAULT_wxUSE_DEBUG_GDB=yes
2018 DEFAULT_wxUSE_MEM_TRACING=no
2019 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2020 DEFAULT_wxUSE_DMALLOC=no
2021 DEFAULT_wxUSE_APPLE_IEEE=no
2022
e46d2a18 2023 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2024 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2025 DEFAULT_wxUSE_LOGWINDOW=no
2026 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2027 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2028
2029 DEFAULT_wxUSE_GUI=yes
1e6feb95 2030 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2031
3e44f09d 2032 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2033 DEFAULT_wxUSE_XML=no
2034 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2035 DEFAULT_wxUSE_ZLIB=no
2036 DEFAULT_wxUSE_LIBPNG=no
2037 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2038 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2039 DEFAULT_wxUSE_LIBXPM=no
10f2d63a 2040 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2041 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2042
eb4efbdc 2043 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2044 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2045 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2046 DEFAULT_wxUSE_CMDLINE_PARSER=no
2047 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2048 DEFAULT_wxUSE_TIMER=no
2049 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2050 DEFAULT_wxUSE_FILE=no
1e6feb95 2051 DEFAULT_wxUSE_FFILE=no
a3a584a7 2052 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2053 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_WAVE=no
2055 DEFAULT_wxUSE_INTL=no
2056 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2057 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2058 DEFAULT_wxUSE_STREAMS=no
2059 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2060 DEFAULT_wxUSE_OLE=no
2061 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2062 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2063 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2064 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2065 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2066 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2067 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2068
2069 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2070 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2071 DEFAULT_wxUSE_POSTSCRIPT=no
2072
10f2d63a
VZ
2073 DEFAULT_wxUSE_CLIPBOARD=no
2074 DEFAULT_wxUSE_TOOLTIPS=no
2075 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2076 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_SPLINES=no
2078
2079 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2080 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2081 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2082
10f2d63a
VZ
2083 DEFAULT_wxUSE_RESOURCES=no
2084 DEFAULT_wxUSE_CONSTRAINTS=no
2085 DEFAULT_wxUSE_IPC=no
2086 DEFAULT_wxUSE_HELP=no
29fd3c0c 2087 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2088 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2089 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2090 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2091 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2092 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2093 DEFAULT_wxUSE_PROTOCOL=no
2094 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2095 DEFAULT_wxUSE_PROTOCOL_FTP=no
2096 DEFAULT_wxUSE_PROTOCOL_FILE=no
2097 DEFAULT_wxUSE_URL=no
3bd8fb5f 2098
10f2d63a 2099 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2100 DEFAULT_wxUSE_CHOICEDLG=no
2101 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2102 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2103 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2104 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2105 DEFAULT_wxUSE_FONTDLG=no
2106 DEFAULT_wxUSE_MSGDLG=no
2107 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2108 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2109 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2110 DEFAULT_wxUSE_STARTUP_TIPS=no
2111 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2112 DEFAULT_wxUSE_WIZARDDLG=no
2113
1e6feb95 2114 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2115 DEFAULT_wxUSE_MINIFRAME=no
2116 DEFAULT_wxUSE_HTML=no
24528b0c 2117 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2118 DEFAULT_wxUSE_FS_INET=no
2119 DEFAULT_wxUSE_FS_ZIP=no
2120 DEFAULT_wxUSE_BUSYINFO=no
2121 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2122 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2123 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2124
2125 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2126 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2127 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2128 DEFAULT_wxUSE_CALCTRL=no
2129 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2130 DEFAULT_wxUSE_CHECKBOX=no
2131 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2132 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2133 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2134 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2135 DEFAULT_wxUSE_GAUGE=no
2136 DEFAULT_wxUSE_GRID=no
10f2d63a 2137 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2138 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2139 DEFAULT_wxUSE_LISTBOX=no
2140 DEFAULT_wxUSE_LISTCTRL=no
2141 DEFAULT_wxUSE_NOTEBOOK=no
2142 DEFAULT_wxUSE_RADIOBOX=no
2143 DEFAULT_wxUSE_RADIOBTN=no
2144 DEFAULT_wxUSE_SASH=no
2145 DEFAULT_wxUSE_SCROLLBAR=no
2146 DEFAULT_wxUSE_SLIDER=no
2147 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2148 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2149 DEFAULT_wxUSE_SPLITTER=no
2150 DEFAULT_wxUSE_STATBMP=no
2151 DEFAULT_wxUSE_STATBOX=no
2152 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2153 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2154 DEFAULT_wxUSE_STATUSBAR=yes
2155 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2156 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2157 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2158 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2159 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2160 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2161 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2162 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2163 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2164
2165 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2166 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2167 DEFAULT_wxUSE_WCSRTOMBS=no
2168
edae8572 2169 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2170 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2171 DEFAULT_wxUSE_GIF=no
2172 DEFAULT_wxUSE_PCX=no
2173 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2174 DEFAULT_wxUSE_IFF=no
0046ff7c 2175 DEFAULT_wxUSE_XPM=no
658974ae 2176 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2177 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2178
e9e0dc15 2179 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2180 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2181else
1e6feb95 2182 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2183 DEFAULT_wxUSE_STL=no
1e6feb95 2184
d8356fa3
VZ
2185 DEFAULT_wxUSE_NANOX=no
2186
10f2d63a
VZ
2187 DEFAULT_wxUSE_THREADS=yes
2188
2189 DEFAULT_wxUSE_SHARED=yes
2190 DEFAULT_wxUSE_OPTIMISE=yes
2191 DEFAULT_wxUSE_PROFILE=no
2192 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2193 DEFAULT_wxUSE_NO_RTTI=no
2194 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2195 DEFAULT_wxUSE_PERMISSIVE=no
2196 DEFAULT_wxUSE_DEBUG_FLAG=no
2197 DEFAULT_wxUSE_DEBUG_INFO=no
2198 DEFAULT_wxUSE_DEBUG_GDB=no
2199 DEFAULT_wxUSE_MEM_TRACING=no
2200 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2201 DEFAULT_wxUSE_DMALLOC=no
2202 DEFAULT_wxUSE_APPLE_IEEE=yes
2203
e46d2a18 2204 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2205 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2206 DEFAULT_wxUSE_LOGWINDOW=yes
2207 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2208 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2209
2210 DEFAULT_wxUSE_GUI=yes
2211
aa2d9ecc 2212 DEFAULT_wxUSE_REGEX=yes
672abd7a 2213 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2214 DEFAULT_wxUSE_EXPAT=yes
2215 DEFAULT_wxUSE_ZLIB=yes
2216 DEFAULT_wxUSE_LIBPNG=yes
2217 DEFAULT_wxUSE_LIBJPEG=yes
2218 DEFAULT_wxUSE_LIBTIFF=yes
2219 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2220 DEFAULT_wxUSE_LIBMSPACK=yes
16b52fa1 2221 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2222 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2223
eb4efbdc 2224 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2225 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2226 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2227 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2228 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2229 DEFAULT_wxUSE_TIMER=yes
2230 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2231 DEFAULT_wxUSE_FILE=yes
1e6feb95 2232 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2233 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2234 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2235 DEFAULT_wxUSE_WAVE=no
2236 DEFAULT_wxUSE_INTL=yes
2237 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2238 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2239 DEFAULT_wxUSE_STREAMS=yes
2240 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2241 DEFAULT_wxUSE_OLE=yes
2242 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2243 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2244 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2245 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2246 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2247 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2248 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2249
2250 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2251 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2252 DEFAULT_wxUSE_POSTSCRIPT=yes
2253
10f2d63a
VZ
2254 DEFAULT_wxUSE_CLIPBOARD=yes
2255 DEFAULT_wxUSE_TOOLTIPS=yes
2256 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2257 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2258 DEFAULT_wxUSE_SPLINES=yes
2259
2260 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2261 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2262 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2263
2b5f62a0 2264 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2265 DEFAULT_wxUSE_CONSTRAINTS=yes
2266 DEFAULT_wxUSE_IPC=yes
2267 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2268 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2269 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2270 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2271 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2272 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2273 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2274 DEFAULT_wxUSE_PROTOCOL=yes
2275 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2276 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2277 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2278 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2279
2280 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2281 DEFAULT_wxUSE_CHOICEDLG=yes
2282 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2283 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2284 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2285 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2286 DEFAULT_wxUSE_FONTDLG=yes
2287 DEFAULT_wxUSE_MSGDLG=yes
2288 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2289 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2290 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2291 DEFAULT_wxUSE_STARTUP_TIPS=yes
2292 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2293 DEFAULT_wxUSE_WIZARDDLG=yes
2294
1e6feb95 2295 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2296 DEFAULT_wxUSE_MINIFRAME=yes
2297 DEFAULT_wxUSE_HTML=yes
24528b0c 2298 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_FS_INET=yes
2300 DEFAULT_wxUSE_FS_ZIP=yes
2301 DEFAULT_wxUSE_BUSYINFO=yes
2302 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2303 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2304 DEFAULT_wxUSE_VALIDATORS=yes
2305
2306 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2307 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2308 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2309 DEFAULT_wxUSE_CALCTRL=yes
2310 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2311 DEFAULT_wxUSE_CHECKBOX=yes
2312 DEFAULT_wxUSE_CHECKLST=yes
2313 DEFAULT_wxUSE_CHOICE=yes
2314 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2315 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2316 DEFAULT_wxUSE_GAUGE=yes
2317 DEFAULT_wxUSE_GRID=yes
10f2d63a 2318 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2319 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2320 DEFAULT_wxUSE_LISTBOX=yes
2321 DEFAULT_wxUSE_LISTCTRL=yes
2322 DEFAULT_wxUSE_NOTEBOOK=yes
2323 DEFAULT_wxUSE_RADIOBOX=yes
2324 DEFAULT_wxUSE_RADIOBTN=yes
2325 DEFAULT_wxUSE_SASH=yes
2326 DEFAULT_wxUSE_SCROLLBAR=yes
2327 DEFAULT_wxUSE_SLIDER=yes
2328 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2329 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2330 DEFAULT_wxUSE_SPLITTER=yes
2331 DEFAULT_wxUSE_STATBMP=yes
2332 DEFAULT_wxUSE_STATBOX=yes
2333 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2334 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2335 DEFAULT_wxUSE_STATUSBAR=yes
2336 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2337 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2338 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2339 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2340 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2341 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2342 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2343 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2344 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2345
2346 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2347 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2348 DEFAULT_wxUSE_WCSRTOMBS=no
2349
edae8572 2350 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2351 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2352 DEFAULT_wxUSE_GIF=yes
2353 DEFAULT_wxUSE_PCX=yes
cc0e8480 2354 DEFAULT_wxUSE_IFF=no
10f2d63a 2355 DEFAULT_wxUSE_PNM=yes
0046ff7c 2356 DEFAULT_wxUSE_XPM=yes
658974ae 2357 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2358 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2359
e9e0dc15 2360 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2361 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2362fi
2363
8284b0c5
MB
2364
2365
10f2d63a 2366for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2367 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2368 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2369 has_toolkit_in_cache=1
2370 eval "DEFAULT_$LINE"
2371 eval "CACHE_$toolkit=1"
2372 fi
2373done
2374
8284b0c5
MB
2375
2376
5005acfe 2377 enablestring=
e6cc62c6
VS
2378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2379echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2380 no_cache=0
2381 # Check whether --enable-gui or --disable-gui was given.
2382if test "${enable_gui+set}" = set; then
2383 enableval="$enable_gui"
e6cc62c6 2384
10f2d63a
VZ
2385 if test "$enableval" = yes; then
2386 ac_cv_use_gui='wxUSE_GUI=yes'
2387 else
2388 ac_cv_use_gui='wxUSE_GUI=no'
2389 fi
e6cc62c6 2390
10f2d63a 2391else
e6cc62c6 2392
10f2d63a
VZ
2393 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2401
e6cc62c6 2402fi;
10f2d63a
VZ
2403
2404 eval "$ac_cv_use_gui"
2405 if test "$no_cache" != 1; then
2406 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2407 fi
2408
2409 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2410 echo "$as_me:$LINENO: result: yes" >&5
2411echo "${ECHO_T}yes" >&6
10f2d63a 2412 else
e6cc62c6
VS
2413 echo "$as_me:$LINENO: result: no" >&5
2414echo "${ECHO_T}no" >&6
10f2d63a 2415 fi
e6cc62c6 2416
10f2d63a 2417
9747f85d
VS
2418 enablestring=
2419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2420echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2421 no_cache=0
2422 # Check whether --enable-monolithic or --disable-monolithic was given.
2423if test "${enable_monolithic+set}" = set; then
2424 enableval="$enable_monolithic"
2425
2426 if test "$enableval" = yes; then
2427 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2428 else
2429 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2430 fi
2431
2432else
2433
2434 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2442
2443fi;
2444
2445 eval "$ac_cv_use_monolithic"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_MONOLITHIC" = yes; then
2451 echo "$as_me:$LINENO: result: yes" >&5
2452echo "${ECHO_T}yes" >&6
2453 else
2454 echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6
2456 fi
2457
2458
b12915c1 2459if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2460
8284b0c5 2461
5005acfe 2462 enablestring=
e6cc62c6
VS
2463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2464echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2465 no_cache=0
2466 # Check whether --enable-universal or --disable-universal was given.
2467if test "${enable_universal+set}" = set; then
2468 enableval="$enable_universal"
e6cc62c6 2469
1e6feb95
VZ
2470 if test "$enableval" = yes; then
2471 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2472 else
2473 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2474 fi
e6cc62c6 2475
1e6feb95 2476else
e6cc62c6 2477
1e6feb95
VZ
2478 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2479 if test "x$LINE" != x ; then
2480 eval "DEFAULT_$LINE"
2481 else
2482 no_cache=1
2483 fi
2484
2485 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2486
e6cc62c6 2487fi;
1e6feb95
VZ
2488
2489 eval "$ac_cv_use_universal"
2490 if test "$no_cache" != 1; then
2491 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2492 fi
2493
2494 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2495 echo "$as_me:$LINENO: result: yes" >&5
2496echo "${ECHO_T}yes" >&6
1e6feb95 2497 else
e6cc62c6
VS
2498 echo "$as_me:$LINENO: result: no" >&5
2499echo "${ECHO_T}no" >&6
1e6feb95 2500 fi
e6cc62c6
VS
2501
2502
10f2d63a
VZ
2503# Check whether --with-gtk or --without-gtk was given.
2504if test "${with_gtk+set}" = set; then
2505 withval="$with_gtk"
2506 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2507fi;
10f2d63a
VZ
2508
2509# Check whether --with-motif or --without-motif was given.
2510if test "${with_motif+set}" = set; then
2511 withval="$with_motif"
2512 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2513fi;
10f2d63a 2514
b4085ce6
GD
2515# Check whether --with-mac or --without-mac was given.
2516if test "${with_mac+set}" = set; then
2517 withval="$with_mac"
2518 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2519fi;
b4085ce6 2520
ac0c4cc3
DE
2521# Check whether --with-cocoa or --without-cocoa was given.
2522if test "${with_cocoa+set}" = set; then
2523 withval="$with_cocoa"
2524 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2525fi;
ac0c4cc3 2526
10f2d63a
VZ
2527# Check whether --with-wine or --without-wine was given.
2528if test "${with_wine+set}" = set; then
2529 withval="$with_wine"
89e6bf6d 2530 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2531fi;
10f2d63a 2532
77e13408
RL
2533# Check whether --with-msw or --without-msw was given.
2534if test "${with_msw+set}" = set; then
2535 withval="$with_msw"
b4efce5e 2536 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2537fi;
10f2d63a 2538
e07802fc
VZ
2539# Check whether --with-pm or --without-pm was given.
2540if test "${with_pm+set}" = set; then
2541 withval="$with_pm"
2542 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2543fi;
698dcdb6 2544
1e6feb95
VZ
2545# Check whether --with-mgl or --without-mgl was given.
2546if test "${with_mgl+set}" = set; then
2547 withval="$with_mgl"
6c657b52 2548 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2549fi;
1e6feb95 2550
1725144d
RR
2551# Check whether --with-microwin or --without-microwin was given.
2552if test "${with_microwin+set}" = set; then
2553 withval="$with_microwin"
2554 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2555fi;
1725144d 2556
f79bd02d
JS
2557# Check whether --with-x11 or --without-x11 was given.
2558if test "${with_x11+set}" = set; then
2559 withval="$with_x11"
3c011993 2560 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2561fi;
a0b9e27f 2562
5005acfe 2563 enablestring=
e6cc62c6
VS
2564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2565echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2566 no_cache=0
ba875e66
VZ
2567 # Check whether --enable-nanox or --disable-nanox was given.
2568if test "${enable_nanox+set}" = set; then
2569 enableval="$enable_nanox"
e6cc62c6 2570
d8356fa3 2571 if test "$enableval" = yes; then
ba875e66 2572 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2573 else
ba875e66 2574 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2575 fi
e6cc62c6 2576
d8356fa3 2577else
e6cc62c6 2578
d8356fa3
VZ
2579 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
ba875e66 2586 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2587
e6cc62c6 2588fi;
d8356fa3 2589
ba875e66 2590 eval "$ac_cv_use_nanox"
d8356fa3 2591 if test "$no_cache" != 1; then
ba875e66 2592 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2593 fi
2594
2595 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2596 echo "$as_me:$LINENO: result: yes" >&5
2597echo "${ECHO_T}yes" >&6
d8356fa3 2598 else
e6cc62c6
VS
2599 echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6
d8356fa3 2601 fi
e6cc62c6 2602
8284b0c5 2603
d74f4b5a 2604
5005acfe 2605 enablestring=
e6cc62c6
VS
2606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2607echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2608 no_cache=0
2609 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2610if test "${enable_gtk2+set}" = set; then
2611 enableval="$enable_gtk2"
e6cc62c6 2612
d74f4b5a
VZ
2613 if test "$enableval" = yes; then
2614 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2615 else
2616 ac_cv_use_gtk2='wxUSE_GTK2=no'
2617 fi
e6cc62c6 2618
10f2d63a 2619else
e6cc62c6 2620
d74f4b5a
VZ
2621 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2629
e6cc62c6 2630fi;
328a083c 2631
d74f4b5a
VZ
2632 eval "$ac_cv_use_gtk2"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2638 echo "$as_me:$LINENO: result: yes" >&5
2639echo "${ECHO_T}yes" >&6
d74f4b5a 2640 else
e6cc62c6
VS
2641 echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6
d74f4b5a 2643 fi
d74f4b5a 2644
5c6fa7d2 2645
e6cc62c6
VS
2646
2647 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2648echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2649 no_cache=0
e6cc62c6
VS
2650
2651# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2652if test "${with_libpng+set}" = set; then
2653 withval="$with_libpng"
e6cc62c6 2654
10f2d63a 2655 if test "$withval" = yes; then
b12915c1 2656 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2657 elif test "$withval" = no; then
b12915c1 2658 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2659 elif test "$withval" = sys; then
2660 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2661 elif test "$withval" = builtin; then
2662 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2663 else
e6cc62c6
VS
2664 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2665echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2666 { (exit 1); exit 1; }; }
10f2d63a 2667 fi
e6cc62c6 2668
10f2d63a 2669else
e6cc62c6 2670
b12915c1 2671 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
b12915c1 2678 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2679
e6cc62c6 2680fi;
10f2d63a 2681
b12915c1 2682 eval "$ac_cv_use_libpng"
10f2d63a 2683 if test "$no_cache" != 1; then
b12915c1 2684 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2685 fi
2686
b12915c1 2687 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2688 echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
422107f9 2690 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2691 echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6
422107f9 2693 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2694 echo "$as_me:$LINENO: result: system version" >&5
2695echo "${ECHO_T}system version" >&6
4f14bcd8 2696 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2697 echo "$as_me:$LINENO: result: builtin version" >&5
2698echo "${ECHO_T}builtin version" >&6
422107f9 2699 else
e6cc62c6
VS
2700 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2701echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2702 { (exit 1); exit 1; }; }
10f2d63a 2703 fi
10f2d63a 2704
e6cc62c6
VS
2705
2706 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2707echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2708 no_cache=0
e6cc62c6
VS
2709
2710# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2711if test "${with_libjpeg+set}" = set; then
2712 withval="$with_libjpeg"
e6cc62c6 2713
10f2d63a 2714 if test "$withval" = yes; then
b12915c1 2715 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2716 elif test "$withval" = no; then
b12915c1 2717 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2718 elif test "$withval" = sys; then
2719 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2720 elif test "$withval" = builtin; then
2721 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2722 else
e6cc62c6
VS
2723 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2724echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2725 { (exit 1); exit 1; }; }
10f2d63a 2726 fi
e6cc62c6 2727
10f2d63a 2728else
e6cc62c6 2729
b12915c1 2730 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
b12915c1 2737 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2738
e6cc62c6 2739fi;
10f2d63a 2740
b12915c1 2741 eval "$ac_cv_use_libjpeg"
10f2d63a 2742 if test "$no_cache" != 1; then
b12915c1 2743 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2744 fi
2745
b12915c1 2746 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2747 echo "$as_me:$LINENO: result: yes" >&5
2748echo "${ECHO_T}yes" >&6
422107f9 2749 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
422107f9 2752 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2753 echo "$as_me:$LINENO: result: system version" >&5
2754echo "${ECHO_T}system version" >&6
4f14bcd8 2755 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2756 echo "$as_me:$LINENO: result: builtin version" >&5
2757echo "${ECHO_T}builtin version" >&6
422107f9 2758 else
e6cc62c6
VS
2759 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2760echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2761 { (exit 1); exit 1; }; }
10f2d63a 2762 fi
10f2d63a 2763
e6cc62c6
VS
2764
2765 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2766echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2767 no_cache=0
e6cc62c6
VS
2768
2769# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2770if test "${with_libtiff+set}" = set; then
2771 withval="$with_libtiff"
e6cc62c6 2772
10f2d63a 2773 if test "$withval" = yes; then
b12915c1 2774 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2775 elif test "$withval" = no; then
b12915c1 2776 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2777 elif test "$withval" = sys; then
2778 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2779 elif test "$withval" = builtin; then
2780 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2781 else
e6cc62c6
VS
2782 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2783echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2784 { (exit 1); exit 1; }; }
10f2d63a 2785 fi
e6cc62c6 2786
10f2d63a 2787else
e6cc62c6 2788
b12915c1 2789 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
b12915c1 2796 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2797
e6cc62c6 2798fi;
10f2d63a 2799
b12915c1 2800 eval "$ac_cv_use_libtiff"
10f2d63a 2801 if test "$no_cache" != 1; then
b12915c1 2802 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2803 fi
2804
b12915c1 2805 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
0dcf9893 2808 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
0dcf9893 2811 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2812 echo "$as_me:$LINENO: result: system version" >&5
2813echo "${ECHO_T}system version" >&6
4f14bcd8 2814 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2815 echo "$as_me:$LINENO: result: builtin version" >&5
2816echo "${ECHO_T}builtin version" >&6
0dcf9893 2817 else
e6cc62c6
VS
2818 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2819echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2820 { (exit 1); exit 1; }; }
10f2d63a 2821 fi
10f2d63a 2822
e6cc62c6 2823
89fe663f
VZ
2824 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2825echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2826 no_cache=0
2827
2828# Check whether --with-libxpm or --without-libxpm was given.
2829if test "${with_libxpm+set}" = set; then
2830 withval="$with_libxpm"
2831
2832 if test "$withval" = yes; then
2833 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2834 elif test "$withval" = no; then
2835 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2836 elif test "$withval" = sys; then
2837 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2838 elif test "$withval" = builtin; then
2839 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2840 else
2841 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2842echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2843 { (exit 1); exit 1; }; }
2844 fi
2845
2846else
2847
2848 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2849 if test "x$LINE" != x ; then
2850 eval "DEFAULT_$LINE"
2851 else
2852 no_cache=1
2853 fi
2854
2855 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2856
2857fi;
2858
2859 eval "$ac_cv_use_libxpm"
2860 if test "$no_cache" != 1; then
2861 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2862 fi
2863
2864 if test "$wxUSE_LIBXPM" = yes; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866echo "${ECHO_T}yes" >&6
2867 elif test "$wxUSE_LIBXPM" = no; then
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870 elif test "$wxUSE_LIBXPM" = sys; then
2871 echo "$as_me:$LINENO: result: system version" >&5
2872echo "${ECHO_T}system version" >&6
2873 elif test "$wxUSE_LIBXPM" = builtin; then
2874 echo "$as_me:$LINENO: result: builtin version" >&5
2875echo "${ECHO_T}builtin version" >&6
2876 else
2877 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2878echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2879 { (exit 1); exit 1; }; }
2880 fi
2881
2882
3527f29c
VS
2883 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2884echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2885 no_cache=0
2886
2887# Check whether --with-libmspack or --without-libmspack was given.
2888if test "${with_libmspack+set}" = set; then
2889 withval="$with_libmspack"
2890
2891 if test "$withval" = yes; then
2892 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2893 else
2894 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2895 fi
2896
2897else
2898
2899 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2900 if test "x$LINE" != x ; then
2901 eval "DEFAULT_$LINE"
2902 else
2903 no_cache=1
2904 fi
2905
2906 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2907
2908fi;
2909
2910 eval "$ac_cv_use_libmspack"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_LIBMSPACK" = yes; then
2916 echo "$as_me:$LINENO: result: yes" >&5
2917echo "${ECHO_T}yes" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920echo "${ECHO_T}no" >&6
2921 fi
2922
2923
e6cc62c6
VS
2924 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2925echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2926 no_cache=0
e6cc62c6
VS
2927
2928# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2929if test "${with_opengl+set}" = set; then
2930 withval="$with_opengl"
e6cc62c6 2931
10f2d63a 2932 if test "$withval" = yes; then
b12915c1 2933 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2934 else
b12915c1 2935 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2936 fi
e6cc62c6 2937
10f2d63a 2938else
e6cc62c6 2939
b12915c1 2940 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
b12915c1 2947 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2948
e6cc62c6 2949fi;
10f2d63a 2950
b12915c1 2951 eval "$ac_cv_use_opengl"
10f2d63a 2952 if test "$no_cache" != 1; then
b12915c1 2953 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2954 fi
2955
b12915c1 2956 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2957 echo "$as_me:$LINENO: result: yes" >&5
2958echo "${ECHO_T}yes" >&6
10f2d63a 2959 else
e6cc62c6
VS
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
10f2d63a 2962 fi
e6cc62c6 2963
10f2d63a 2964
b12915c1
VZ
2965fi
2966
5c6fa7d2 2967
e6cc62c6
VS
2968 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2969echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2970 no_cache=0
e6cc62c6
VS
2971
2972# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2973if test "${with_dmalloc+set}" = set; then
2974 withval="$with_dmalloc"
e6cc62c6 2975
c7a2bf27 2976 if test "$withval" = yes; then
b12915c1 2977 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2978 else
b12915c1 2979 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2980 fi
e6cc62c6 2981
c7a2bf27 2982else
e6cc62c6 2983
b12915c1 2984 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
b12915c1 2991 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2992
e6cc62c6 2993fi;
c7a2bf27 2994
b12915c1 2995 eval "$ac_cv_use_dmalloc"
c7a2bf27 2996 if test "$no_cache" != 1; then
b12915c1 2997 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2998 fi
2999
b12915c1 3000 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
c7a2bf27 3003 else
e6cc62c6
VS
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
c7a2bf27 3006 fi
c7a2bf27 3007
e6cc62c6
VS
3008
3009 echo "$as_me:$LINENO: checking for --with-regex" >&5
3010echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3011 no_cache=0
e6cc62c6
VS
3012
3013# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3014if test "${with_regex+set}" = set; then
3015 withval="$with_regex"
e6cc62c6 3016
3e44f09d
VZ
3017 if test "$withval" = yes; then
3018 ac_cv_use_regex='wxUSE_REGEX=yes'
3019 elif test "$withval" = no; then
3020 ac_cv_use_regex='wxUSE_REGEX=no'
3021 elif test "$withval" = sys; then
3022 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3023 elif test "$withval" = builtin; then
3024 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3025 else
e6cc62c6
VS
3026 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3027echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3028 { (exit 1); exit 1; }; }
3e44f09d 3029 fi
e6cc62c6 3030
3e44f09d 3031else
e6cc62c6 3032
3e44f09d
VZ
3033 LINE=`grep "wxUSE_REGEX" ${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_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3041
e6cc62c6 3042fi;
3e44f09d
VZ
3043
3044 eval "$ac_cv_use_regex"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3050 echo "$as_me:$LINENO: result: yes" >&5
3051echo "${ECHO_T}yes" >&6
3e44f09d 3052 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3e44f09d 3055 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3056 echo "$as_me:$LINENO: result: system version" >&5
3057echo "${ECHO_T}system version" >&6
4f14bcd8 3058 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3059 echo "$as_me:$LINENO: result: builtin version" >&5
3060echo "${ECHO_T}builtin version" >&6
3e44f09d 3061 else
e6cc62c6
VS
3062 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3063echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3064 { (exit 1); exit 1; }; }
3e44f09d 3065 fi
3e44f09d 3066
e6cc62c6
VS
3067
3068 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3069echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3070 no_cache=0
e6cc62c6
VS
3071
3072# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3073if test "${with_zlib+set}" = set; then
3074 withval="$with_zlib"
e6cc62c6 3075
10f2d63a 3076 if test "$withval" = yes; then
b12915c1 3077 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3078 elif test "$withval" = no; then
b12915c1 3079 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3080 elif test "$withval" = sys; then
3081 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3082 elif test "$withval" = builtin; then
3083 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3084 else
e6cc62c6
VS
3085 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3086echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3087 { (exit 1); exit 1; }; }
10f2d63a 3088 fi
e6cc62c6 3089
10f2d63a 3090else
e6cc62c6 3091
b12915c1 3092 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
b12915c1 3099 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3100
e6cc62c6 3101fi;
10f2d63a 3102
b12915c1 3103 eval "$ac_cv_use_zlib"
10f2d63a 3104 if test "$no_cache" != 1; then
b12915c1 3105 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3106 fi
3107
b12915c1 3108 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
422107f9 3111 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
422107f9 3114 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: system version" >&5
3116echo "${ECHO_T}system version" >&6
4f14bcd8 3117 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: builtin version" >&5
3119echo "${ECHO_T}builtin version" >&6
422107f9 3120 else
e6cc62c6
VS
3121 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3122echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3123 { (exit 1); exit 1; }; }
10f2d63a 3124 fi
10f2d63a 3125
e6cc62c6
VS
3126
3127 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3128echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3129 no_cache=0
e6cc62c6
VS
3130
3131# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3132if test "${with_odbc+set}" = set; then
3133 withval="$with_odbc"
e6cc62c6 3134
10f2d63a
VZ
3135 if test "$withval" = yes; then
3136 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3137 elif test "$withval" = no; then
10f2d63a 3138 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3139 elif test "$withval" = sys; then
3140 ac_cv_use_odbc='wxUSE_ODBC=sys'
3141 elif test "$withval" = builtin; then
3142 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3143 else
e6cc62c6
VS
3144 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3145echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3146 { (exit 1); exit 1; }; }
10f2d63a 3147 fi
e6cc62c6 3148
10f2d63a 3149else
e6cc62c6 3150
10f2d63a
VZ
3151 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3159
e6cc62c6 3160fi;
10f2d63a
VZ
3161
3162 eval "$ac_cv_use_odbc"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3168 echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
8647bec6 3170 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
8647bec6 3173 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3174 echo "$as_me:$LINENO: result: system version" >&5
3175echo "${ECHO_T}system version" >&6
8647bec6 3176 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3177 echo "$as_me:$LINENO: result: builtin version" >&5
3178echo "${ECHO_T}builtin version" >&6
8647bec6 3179 else
e6cc62c6
VS
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
10f2d63a 3183 fi
e6cc62c6 3184
52127426 3185
672abd7a
VS
3186 echo "$as_me:$LINENO: checking for --with-expat" >&5
3187echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3188 no_cache=0
3189
3190# Check whether --with-expat or --without-expat was given.
3191if test "${with_expat+set}" = set; then
3192 withval="$with_expat"
3193
3194 if test "$withval" = yes; then
3195 ac_cv_use_expat='wxUSE_EXPAT=yes'
3196 elif test "$withval" = no; then
3197 ac_cv_use_expat='wxUSE_EXPAT=no'
3198 elif test "$withval" = sys; then
3199 ac_cv_use_expat='wxUSE_EXPAT=sys'
3200 elif test "$withval" = builtin; then
3201 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3202 else
3203 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3204echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3205 { (exit 1); exit 1; }; }
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3218
3219fi;
3220
3221 eval "$ac_cv_use_expat"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_EXPAT" = yes; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
3229 elif test "$wxUSE_EXPAT" = no; then
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232 elif test "$wxUSE_EXPAT" = sys; then
3233 echo "$as_me:$LINENO: result: system version" >&5
3234echo "${ECHO_T}system version" >&6
3235 elif test "$wxUSE_EXPAT" = builtin; then
3236 echo "$as_me:$LINENO: result: builtin version" >&5
3237echo "${ECHO_T}builtin version" >&6
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244
8284b0c5
MB
3245
3246
5005acfe 3247 enablestring=
e6cc62c6
VS
3248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3249echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3250 no_cache=0
3251 # Check whether --enable-shared or --disable-shared was given.
3252if test "${enable_shared+set}" = set; then
3253 enableval="$enable_shared"
e6cc62c6 3254
10f2d63a
VZ
3255 if test "$enableval" = yes; then
3256 ac_cv_use_shared='wxUSE_SHARED=yes'
3257 else
3258 ac_cv_use_shared='wxUSE_SHARED=no'
3259 fi
e6cc62c6 3260
10f2d63a 3261else
e6cc62c6 3262
10f2d63a
VZ
3263 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3271
e6cc62c6 3272fi;
10f2d63a
VZ
3273
3274 eval "$ac_cv_use_shared"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3280 echo "$as_me:$LINENO: result: yes" >&5
3281echo "${ECHO_T}yes" >&6
10f2d63a 3282 else
e6cc62c6
VS
3283 echo "$as_me:$LINENO: result: no" >&5
3284echo "${ECHO_T}no" >&6
10f2d63a 3285 fi
e6cc62c6 3286
10f2d63a 3287
5005acfe 3288 enablestring=
e6cc62c6
VS
3289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3290echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3291 no_cache=0
3292 # Check whether --enable-optimise or --disable-optimise was given.
3293if test "${enable_optimise+set}" = set; then
3294 enableval="$enable_optimise"
e6cc62c6 3295
10f2d63a
VZ
3296 if test "$enableval" = yes; then
3297 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3298 else
3299 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3300 fi
e6cc62c6 3301
10f2d63a 3302else
e6cc62c6 3303
10f2d63a
VZ
3304 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3312
e6cc62c6 3313fi;
10f2d63a
VZ
3314
3315 eval "$ac_cv_use_optimise"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
10f2d63a 3323 else
e6cc62c6
VS
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
10f2d63a 3326 fi
e6cc62c6 3327
10f2d63a 3328
5005acfe 3329 enablestring=
e6cc62c6
VS
3330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3331echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3332 no_cache=0
3333 # Check whether --enable-debug or --disable-debug was given.
3334if test "${enable_debug+set}" = set; then
3335 enableval="$enable_debug"
e6cc62c6 3336
10f2d63a
VZ
3337 if test "$enableval" = yes; then
3338 ac_cv_use_debug='wxUSE_DEBUG=yes'
3339 else
3340 ac_cv_use_debug='wxUSE_DEBUG=no'
3341 fi
e6cc62c6 3342
10f2d63a 3343else
e6cc62c6 3344
10f2d63a
VZ
3345 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3346 if test "x$LINE" != x ; then
3347 eval "DEFAULT_$LINE"
3348 else
3349 no_cache=1
3350 fi
3351
3352 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3353
e6cc62c6 3354fi;
10f2d63a
VZ
3355
3356 eval "$ac_cv_use_debug"
3357 if test "$no_cache" != 1; then
3358 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3359 fi
3360
3361 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3362 echo "$as_me:$LINENO: result: yes" >&5
3363echo "${ECHO_T}yes" >&6
10f2d63a 3364 else
e6cc62c6
VS
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
10f2d63a 3367 fi
e6cc62c6 3368
52127426 3369
df5168c4
MB
3370 enablestring=
3371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3372echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3373 no_cache=0
3374 # Check whether --enable-stl or --disable-stl was given.
3375if test "${enable_stl+set}" = set; then
3376 enableval="$enable_stl"
3377
3378 if test "$enableval" = yes; then
3379 ac_cv_use_stl='wxUSE_STL=yes'
3380 else
3381 ac_cv_use_stl='wxUSE_STL=no'
3382 fi
3383
3384else
3385
3386 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3387 if test "x$LINE" != x ; then
3388 eval "DEFAULT_$LINE"
3389 else
3390 no_cache=1
3391 fi
3392
3393 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3394
3395fi;
3396
3397 eval "$ac_cv_use_stl"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_STL" = yes; then
3403 echo "$as_me:$LINENO: result: yes" >&5
3404echo "${ECHO_T}yes" >&6
3405 else
3406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408 fi
3409
3410
10f2d63a
VZ
3411if test "$wxUSE_DEBUG" = "yes"; then
3412 DEFAULT_wxUSE_DEBUG_FLAG=yes
3413 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3414 BUILD=debug
10f2d63a
VZ
3415elif test "$wxUSE_DEBUG" = "no"; then
3416 DEFAULT_wxUSE_DEBUG_FLAG=no
3417 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3418 BUILD=release
10f2d63a
VZ
3419fi
3420
8284b0c5 3421
5005acfe 3422 enablestring=
e6cc62c6
VS
3423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3424echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3425 no_cache=0
3426 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3427if test "${enable_debug_flag+set}" = set; then
3428 enableval="$enable_debug_flag"
e6cc62c6 3429
10f2d63a
VZ
3430 if test "$enableval" = yes; then
3431 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3432 else
3433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3434 fi
e6cc62c6 3435
10f2d63a 3436else
e6cc62c6 3437
10f2d63a
VZ
3438 LINE=`grep "wxUSE_DEBUG_FLAG" ${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_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3446
e6cc62c6 3447fi;
10f2d63a
VZ
3448
3449 eval "$ac_cv_use_debug_flag"
3450 if test "$no_cache" != 1; then
3451 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3452 fi
3453
3454 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3455 echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
10f2d63a 3457 else
e6cc62c6
VS
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
10f2d63a 3460 fi
e6cc62c6 3461
10f2d63a 3462
5005acfe 3463 enablestring=
e6cc62c6
VS
3464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3465echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3466 no_cache=0
3467 # Check whether --enable-debug_info or --disable-debug_info was given.
3468if test "${enable_debug_info+set}" = set; then
3469 enableval="$enable_debug_info"
e6cc62c6 3470
10f2d63a
VZ
3471 if test "$enableval" = yes; then
3472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3473 else
3474 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3475 fi
e6cc62c6 3476
10f2d63a 3477else
e6cc62c6 3478
10f2d63a
VZ
3479 LINE=`grep "wxUSE_DEBUG_INFO" ${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_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3487
e6cc62c6 3488fi;
10f2d63a
VZ
3489
3490 eval "$ac_cv_use_debug_info"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
10f2d63a 3498 else
e6cc62c6
VS
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
10f2d63a 3501 fi
e6cc62c6 3502
10f2d63a 3503
5005acfe 3504 enablestring=
e6cc62c6
VS
3505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3506echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3507 no_cache=0
3508 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3509if test "${enable_debug_gdb+set}" = set; then
3510 enableval="$enable_debug_gdb"
e6cc62c6 3511
10f2d63a
VZ
3512 if test "$enableval" = yes; then
3513 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3514 else
3515 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3516 fi
e6cc62c6 3517
10f2d63a 3518else
e6cc62c6 3519
10f2d63a
VZ
3520 LINE=`grep "wxUSE_DEBUG_GDB" ${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_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3528
e6cc62c6 3529fi;
10f2d63a
VZ
3530
3531 eval "$ac_cv_use_debug_gdb"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
10f2d63a 3539 else
e6cc62c6
VS
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
10f2d63a 3542 fi
e6cc62c6 3543
10f2d63a 3544
5005acfe 3545 enablestring=
e6cc62c6
VS
3546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3547echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3548 no_cache=0
3549 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3550if test "${enable_debug_cntxt+set}" = set; then
3551 enableval="$enable_debug_cntxt"
e6cc62c6 3552
10f2d63a
VZ
3553 if test "$enableval" = yes; then
3554 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3555 else
3556 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3557 fi
e6cc62c6 3558
10f2d63a 3559else
e6cc62c6 3560
10f2d63a
VZ
3561 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
3568 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3569
e6cc62c6 3570fi;
10f2d63a
VZ
3571
3572 eval "$ac_cv_use_debug_cntxt"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3578 echo "$as_me:$LINENO: result: yes" >&5
3579echo "${ECHO_T}yes" >&6
10f2d63a 3580 else
e6cc62c6
VS
3581 echo "$as_me:$LINENO: result: no" >&5
3582echo "${ECHO_T}no" >&6
10f2d63a 3583 fi
e6cc62c6 3584
10f2d63a 3585
5005acfe 3586 enablestring=
e6cc62c6
VS
3587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3588echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3591if test "${enable_mem_tracing+set}" = set; then
3592 enableval="$enable_mem_tracing"
e6cc62c6 3593
10f2d63a
VZ
3594 if test "$enableval" = yes; then
3595 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3596 else
3597 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3598 fi
e6cc62c6 3599
10f2d63a 3600else
e6cc62c6 3601
10f2d63a
VZ
3602 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3610
e6cc62c6 3611fi;
10f2d63a
VZ
3612
3613 eval "$ac_cv_use_mem_tracing"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3619 echo "$as_me:$LINENO: result: yes" >&5
3620echo "${ECHO_T}yes" >&6
10f2d63a 3621 else
e6cc62c6
VS
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
10f2d63a 3624 fi
e6cc62c6 3625
10f2d63a 3626
5005acfe 3627 enablestring=
e6cc62c6
VS
3628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3629echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-profile or --disable-profile was given.
3632if test "${enable_profile+set}" = set; then
3633 enableval="$enable_profile"
e6cc62c6 3634
10f2d63a
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_profile='wxUSE_PROFILE=yes'
3637 else
3638 ac_cv_use_profile='wxUSE_PROFILE=no'
3639 fi
e6cc62c6 3640
10f2d63a 3641else
e6cc62c6 3642
10f2d63a
VZ
3643 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3651
e6cc62c6 3652fi;
10f2d63a
VZ
3653
3654 eval "$ac_cv_use_profile"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3660 echo "$as_me:$LINENO: result: yes" >&5
3661echo "${ECHO_T}yes" >&6
10f2d63a 3662 else
e6cc62c6
VS
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
10f2d63a 3665 fi
e6cc62c6 3666
10f2d63a 3667
5005acfe 3668 enablestring=
e6cc62c6
VS
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3671 no_cache=0
3672 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3673if test "${enable_no_rtti+set}" = set; then
3674 enableval="$enable_no_rtti"
e6cc62c6 3675
10f2d63a
VZ
3676 if test "$enableval" = yes; then
3677 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3678 else
3679 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3680 fi
e6cc62c6 3681
10f2d63a 3682else
e6cc62c6 3683
10f2d63a
VZ
3684 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3692
e6cc62c6 3693fi;
10f2d63a
VZ
3694
3695 eval "$ac_cv_use_no_rtti"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
10f2d63a 3703 else
e6cc62c6
VS
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
10f2d63a 3706 fi
e6cc62c6 3707
10f2d63a 3708
5005acfe 3709 enablestring=
e6cc62c6
VS
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3712 no_cache=0
3713 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3714if test "${enable_no_exceptions+set}" = set; then
3715 enableval="$enable_no_exceptions"
e6cc62c6 3716
10f2d63a
VZ
3717 if test "$enableval" = yes; then
3718 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3719 else
3720 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3721 fi
e6cc62c6 3722
10f2d63a 3723else
e6cc62c6 3724
10f2d63a
VZ
3725 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3733
e6cc62c6 3734fi;
10f2d63a
VZ
3735
3736 eval "$ac_cv_use_no_exceptions"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
10f2d63a 3744 else
e6cc62c6
VS
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
10f2d63a 3747 fi
e6cc62c6 3748
10f2d63a 3749
5005acfe 3750 enablestring=
e6cc62c6
VS
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3753 no_cache=0
3754 # Check whether --enable-permissive or --disable-permissive was given.
3755if test "${enable_permissive+set}" = set; then
3756 enableval="$enable_permissive"
e6cc62c6 3757
10f2d63a
VZ
3758 if test "$enableval" = yes; then
3759 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3760 else
3761 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3762 fi
e6cc62c6 3763
10f2d63a 3764else
e6cc62c6 3765
10f2d63a
VZ
3766 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3774
e6cc62c6 3775fi;
10f2d63a
VZ
3776
3777 eval "$ac_cv_use_permissive"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
10f2d63a 3785 else
e6cc62c6
VS
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
10f2d63a 3788 fi
e6cc62c6 3789
10f2d63a 3790
5005acfe 3791 enablestring=
e6cc62c6
VS
3792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3793echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3794 no_cache=0
3795 # Check whether --enable-no_deps or --disable-no_deps was given.
3796if test "${enable_no_deps+set}" = set; then
3797 enableval="$enable_no_deps"
e6cc62c6 3798
10f2d63a
VZ
3799 if test "$enableval" = yes; then
3800 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3801 else
3802 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3803 fi
e6cc62c6 3804
10f2d63a 3805else
e6cc62c6 3806
10f2d63a
VZ
3807 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3815
e6cc62c6 3816fi;
10f2d63a
VZ
3817
3818 eval "$ac_cv_use_no_deps"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
10f2d63a 3826 else
e6cc62c6
VS
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
10f2d63a 3829 fi
e6cc62c6 3830
52127426 3831
8284b0c5 3832
65d8ef1e 3833 enablestring=
e6cc62c6
VS
3834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3835echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3836 no_cache=0
3837 # Check whether --enable-compat22 or --disable-compat22 was given.
3838if test "${enable_compat22+set}" = set; then
3839 enableval="$enable_compat22"
e6cc62c6 3840
54276ccf
VZ
3841 if test "$enableval" = yes; then
3842 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3843 else
3844 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3845 fi
e6cc62c6 3846
54276ccf 3847else
e6cc62c6 3848
54276ccf
VZ
3849 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3857
e6cc62c6 3858fi;
54276ccf
VZ
3859
3860 eval "$ac_cv_use_compat22"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
54276ccf 3868 else
e6cc62c6
VS
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
54276ccf 3871 fi
e6cc62c6 3872
54276ccf 3873
65d8ef1e 3874 enablestring=disable
e6cc62c6
VS
3875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3876echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3877 no_cache=0
3878 # Check whether --enable-compat24 or --disable-compat24 was given.
3879if test "${enable_compat24+set}" = set; then
3880 enableval="$enable_compat24"
e6cc62c6 3881
65d8ef1e
VS
3882 if test "$enableval" = yes; then
3883 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3884 else
3885 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3886 fi
e6cc62c6 3887
65d8ef1e 3888else
e6cc62c6 3889
65d8ef1e
VS
3890 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3898
e6cc62c6 3899fi;
65d8ef1e
VS
3900
3901 eval "$ac_cv_use_compat24"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3907 echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
65d8ef1e 3909 else
e6cc62c6
VS
3910 echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
65d8ef1e 3912 fi
e6cc62c6 3913
65d8ef1e 3914
3bd8fb5f
RD
3915# Check whether --enable-rpath or --disable-rpath was given.
3916if test "${enable_rpath+set}" = set; then
3917 enableval="$enable_rpath"
3918 wxRPATH_DIR="$enableval"
e6cc62c6 3919fi;
3bd8fb5f
RD
3920
3921if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3922 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3923fi
3924
8284b0c5
MB
3925
3926
3927
5005acfe 3928 enablestring=
e6cc62c6
VS
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3931 no_cache=0
3932 # Check whether --enable-intl or --disable-intl was given.
3933if test "${enable_intl+set}" = set; then
3934 enableval="$enable_intl"
e6cc62c6 3935
10f2d63a
VZ
3936 if test "$enableval" = yes; then
3937 ac_cv_use_intl='wxUSE_INTL=yes'
3938 else
3939 ac_cv_use_intl='wxUSE_INTL=no'
3940 fi
e6cc62c6 3941
10f2d63a 3942else
e6cc62c6 3943
10f2d63a
VZ
3944 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3952
e6cc62c6 3953fi;
10f2d63a
VZ
3954
3955 eval "$ac_cv_use_intl"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
10f2d63a 3963 else
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
10f2d63a 3966 fi
e6cc62c6 3967
10f2d63a 3968
5005acfe 3969 enablestring=
e6cc62c6
VS
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3971echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3972 no_cache=0
3973 # Check whether --enable-config or --disable-config was given.
3974if test "${enable_config+set}" = set; then
3975 enableval="$enable_config"
e6cc62c6 3976
10f2d63a
VZ
3977 if test "$enableval" = yes; then
3978 ac_cv_use_config='wxUSE_CONFIG=yes'
3979 else
3980 ac_cv_use_config='wxUSE_CONFIG=no'
3981 fi
e6cc62c6 3982
10f2d63a 3983else
e6cc62c6 3984
10f2d63a
VZ
3985 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3993
e6cc62c6 3994fi;
10f2d63a
VZ
3995
3996 eval "$ac_cv_use_config"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
10f2d63a 4004 else
e6cc62c6
VS
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
10f2d63a 4007 fi
e6cc62c6 4008
52127426 4009
8284b0c5 4010
5005acfe 4011 enablestring=
e6cc62c6
VS
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4014 no_cache=0
4015 # Check whether --enable-protocols or --disable-protocols was given.
4016if test "${enable_protocols+set}" = set; then
4017 enableval="$enable_protocols"
e6cc62c6 4018
a1622950
VZ
4019 if test "$enableval" = yes; then
4020 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4021 else
4022 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4023 fi
e6cc62c6 4024
a1622950 4025else
e6cc62c6 4026
a1622950
VZ
4027 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4035
e6cc62c6 4036fi;
a1622950
VZ
4037
4038 eval "$ac_cv_use_protocols"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
a1622950 4046 else
e6cc62c6
VS
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
a1622950 4049 fi
e6cc62c6 4050
a1622950 4051
5005acfe 4052 enablestring=
e6cc62c6
VS
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4055 no_cache=0
4056 # Check whether --enable-ftp or --disable-ftp was given.
4057if test "${enable_ftp+set}" = set; then
4058 enableval="$enable_ftp"
e6cc62c6 4059
a1622950
VZ
4060 if test "$enableval" = yes; then
4061 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4062 else
4063 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4064 fi
e6cc62c6 4065
a1622950 4066else
e6cc62c6 4067
a1622950
VZ
4068 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4076
e6cc62c6 4077fi;
a1622950
VZ
4078
4079 eval "$ac_cv_use_ftp"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
a1622950 4087 else
e6cc62c6
VS
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
a1622950 4090 fi
e6cc62c6 4091
a1622950 4092
5005acfe 4093 enablestring=
e6cc62c6
VS
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4096 no_cache=0
4097 # Check whether --enable-http or --disable-http was given.
4098if test "${enable_http+set}" = set; then
4099 enableval="$enable_http"
e6cc62c6 4100
a1622950
VZ
4101 if test "$enableval" = yes; then
4102 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4103 else
4104 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4105 fi
e6cc62c6 4106
a1622950 4107else
e6cc62c6 4108
a1622950
VZ
4109 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4117
e6cc62c6 4118fi;
a1622950
VZ
4119
4120 eval "$ac_cv_use_http"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
a1622950 4128 else
e6cc62c6
VS
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
a1622950 4131 fi
e6cc62c6 4132
a1622950 4133
5005acfe 4134 enablestring=
e6cc62c6
VS
4135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4136echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4137 no_cache=0
4138 # Check whether --enable-fileproto or --disable-fileproto was given.
4139if test "${enable_fileproto+set}" = set; then
4140 enableval="$enable_fileproto"
e6cc62c6 4141
a1622950
VZ
4142 if test "$enableval" = yes; then
4143 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4144 else
4145 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4146 fi
e6cc62c6 4147
a1622950 4148else
e6cc62c6 4149
a1622950
VZ
4150 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4158
e6cc62c6 4159fi;
a1622950
VZ
4160
4161 eval "$ac_cv_use_fileproto"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4167 echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
a1622950 4169 else
e6cc62c6
VS
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
a1622950 4172 fi
e6cc62c6 4173
a1622950 4174
5005acfe 4175 enablestring=
e6cc62c6
VS
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4178 no_cache=0
4179 # Check whether --enable-sockets or --disable-sockets was given.
4180if test "${enable_sockets+set}" = set; then
4181 enableval="$enable_sockets"
e6cc62c6 4182
10f2d63a
VZ
4183 if test "$enableval" = yes; then
4184 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4185 else
4186 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4187 fi
e6cc62c6 4188
10f2d63a 4189else
e6cc62c6 4190
10f2d63a
VZ
4191 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4199
e6cc62c6 4200fi;
10f2d63a
VZ
4201
4202 eval "$ac_cv_use_sockets"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
10f2d63a 4210 else
e6cc62c6
VS
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
10f2d63a 4213 fi
e6cc62c6 4214
8284b0c5 4215
5005acfe 4216 enablestring=
e6cc62c6
VS
4217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4218echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4219 no_cache=0
4220 # Check whether --enable-ole or --disable-ole was given.
4221if test "${enable_ole+set}" = set; then
4222 enableval="$enable_ole"
e6cc62c6 4223
3bce6687
JS
4224 if test "$enableval" = yes; then
4225 ac_cv_use_ole='wxUSE_OLE=yes'
4226 else
4227 ac_cv_use_ole='wxUSE_OLE=no'
4228 fi
e6cc62c6 4229
3bce6687 4230else
e6cc62c6 4231
3bce6687
JS
4232 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4240
e6cc62c6 4241fi;
3bce6687
JS
4242
4243 eval "$ac_cv_use_ole"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
3bce6687 4251 else
e6cc62c6
VS
4252 echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
3bce6687 4254 fi
e6cc62c6 4255
3bce6687 4256
5005acfe 4257 enablestring=
e6cc62c6
VS
4258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4259echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4260 no_cache=0
4261 # Check whether --enable-dataobj or --disable-dataobj was given.
4262if test "${enable_dataobj+set}" = set; then
4263 enableval="$enable_dataobj"
e6cc62c6 4264
3bce6687
JS
4265 if test "$enableval" = yes; then
4266 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4267 else
4268 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4269 fi
e6cc62c6 4270
3bce6687 4271else
e6cc62c6 4272
3bce6687
JS
4273 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4281
e6cc62c6 4282fi;
3bce6687
JS
4283
4284 eval "$ac_cv_use_dataobj"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4290 echo "$as_me:$LINENO: result: yes" >&5
4291echo "${ECHO_T}yes" >&6
3bce6687 4292 else
e6cc62c6
VS
4293 echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
3bce6687 4295 fi
e6cc62c6 4296
3bce6687 4297
52127426 4298
5005acfe 4299 enablestring=
e6cc62c6
VS
4300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4301echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4302 no_cache=0
eb4efbdc
VZ
4303 # Check whether --enable-ipc or --disable-ipc was given.
4304if test "${enable_ipc+set}" = set; then
4305 enableval="$enable_ipc"
e6cc62c6 4306
10f2d63a 4307 if test "$enableval" = yes; then
eb4efbdc 4308 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4309 else
eb4efbdc 4310 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4311 fi
e6cc62c6 4312
10f2d63a 4313else
e6cc62c6 4314
eb4efbdc 4315 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
eb4efbdc 4322 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4323
e6cc62c6 4324fi;
10f2d63a 4325
eb4efbdc 4326 eval "$ac_cv_use_ipc"
10f2d63a 4327 if test "$no_cache" != 1; then
eb4efbdc 4328 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4329 fi
4330
eb4efbdc 4331 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4332 echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6
10f2d63a 4334 else
e6cc62c6
VS
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
10f2d63a 4337 fi
e6cc62c6 4338
52127426 4339
8284b0c5 4340
5005acfe 4341 enablestring=
e46d2a18
VS
4342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4343echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4344 no_cache=0
e46d2a18
VS
4345 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4346if test "${enable_apple_ieee+set}" = set; then
4347 enableval="$enable_apple_ieee"
e6cc62c6 4348
10f2d63a 4349 if test "$enableval" = yes; then
e46d2a18 4350 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4351 else
e46d2a18 4352 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4353 fi
e6cc62c6 4354
10f2d63a 4355else
e6cc62c6 4356
e46d2a18 4357 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
e46d2a18 4364 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4365
e6cc62c6 4366fi;
10f2d63a 4367
e46d2a18 4368 eval "$ac_cv_use_apple_ieee"
10f2d63a 4369 if test "$no_cache" != 1; then
e46d2a18 4370 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4371 fi
4372
e46d2a18 4373 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4374 echo "$as_me:$LINENO: result: yes" >&5
4375echo "${ECHO_T}yes" >&6
10f2d63a 4376 else
e6cc62c6
VS
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
10f2d63a 4379 fi
e6cc62c6 4380
10f2d63a 4381
5005acfe 4382 enablestring=
e46d2a18
VS
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4385 no_cache=0
e46d2a18
VS
4386 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4387if test "${enable_catch_segvs+set}" = set; then
4388 enableval="$enable_catch_segvs"
e6cc62c6 4389
10f2d63a 4390 if test "$enableval" = yes; then
e46d2a18 4391 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4392 else
e46d2a18 4393 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4394 fi
e6cc62c6 4395
10f2d63a 4396else
e6cc62c6 4397
e46d2a18 4398 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
e46d2a18 4405 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4406
e6cc62c6 4407fi;
10f2d63a 4408
e46d2a18 4409 eval "$ac_cv_use_catch_segvs"
10f2d63a 4410 if test "$no_cache" != 1; then
e46d2a18 4411 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4412 fi
4413
e46d2a18 4414 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
10f2d63a 4417 else
e6cc62c6
VS
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
10f2d63a 4420 fi
e6cc62c6 4421
10f2d63a 4422
5005acfe 4423 enablestring=
e46d2a18
VS
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4426 no_cache=0
e46d2a18
VS
4427 # Check whether --enable-cmdline or --disable-cmdline was given.
4428if test "${enable_cmdline+set}" = set; then
4429 enableval="$enable_cmdline"
e6cc62c6 4430
10f2d63a 4431 if test "$enableval" = yes; then
e46d2a18 4432 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4433 else
e46d2a18 4434 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4435 fi
e6cc62c6 4436
10f2d63a 4437else
e6cc62c6 4438
e46d2a18 4439 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
e46d2a18 4446 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4447
e6cc62c6 4448fi;
10f2d63a 4449
e46d2a18 4450 eval "$ac_cv_use_cmdline"
10f2d63a 4451 if test "$no_cache" != 1; then
e46d2a18 4452 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4453 fi
4454
e46d2a18 4455 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
10f2d63a 4458 else
e6cc62c6
VS
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
10f2d63a 4461 fi
e6cc62c6 4462
10f2d63a 4463
5005acfe 4464 enablestring=
e46d2a18
VS
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4467 no_cache=0
e46d2a18
VS
4468 # Check whether --enable-datetime or --disable-datetime was given.
4469if test "${enable_datetime+set}" = set; then
4470 enableval="$enable_datetime"
e6cc62c6 4471
10f2d63a 4472 if test "$enableval" = yes; then
e46d2a18 4473 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4474 else
e46d2a18 4475 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4476 fi
e6cc62c6 4477
10f2d63a 4478else
e6cc62c6 4479
e46d2a18 4480 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
e46d2a18 4487 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4488
e6cc62c6 4489fi;
10f2d63a 4490
e46d2a18 4491 eval "$ac_cv_use_datetime"
10f2d63a 4492 if test "$no_cache" != 1; then
e46d2a18 4493 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4494 fi
4495
e46d2a18 4496 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
10f2d63a 4499 else
e6cc62c6
VS
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
10f2d63a 4502 fi
e6cc62c6 4503
10f2d63a 4504
5005acfe 4505 enablestring=
e46d2a18
VS
4506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4507echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4508 no_cache=0
e46d2a18
VS
4509 # Check whether --enable-dialupman or --disable-dialupman was given.
4510if test "${enable_dialupman+set}" = set; then
4511 enableval="$enable_dialupman"
e6cc62c6 4512
10f2d63a 4513 if test "$enableval" = yes; then
e46d2a18 4514 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4515 else
e46d2a18 4516 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4517 fi
e6cc62c6 4518
10f2d63a 4519else
e6cc62c6 4520
e46d2a18 4521 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
e46d2a18 4528 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4529
e6cc62c6 4530fi;
10f2d63a 4531
e46d2a18 4532 eval "$ac_cv_use_dialupman"
10f2d63a 4533 if test "$no_cache" != 1; then
e46d2a18 4534 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4535 fi
4536
e46d2a18 4537 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
10f2d63a 4540 else
e6cc62c6
VS
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
10f2d63a 4543 fi
e6cc62c6 4544
10f2d63a 4545
5005acfe 4546 enablestring=
e6cc62c6
VS
4547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4548echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4549 no_cache=0
4550 # Check whether --enable-dynlib or --disable-dynlib was given.
4551if test "${enable_dynlib+set}" = set; then
4552 enableval="$enable_dynlib"
e6cc62c6 4553
10f2d63a
VZ
4554 if test "$enableval" = yes; then
4555 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4556 else
4557 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4558 fi
e6cc62c6 4559
10f2d63a 4560else
e6cc62c6 4561
10f2d63a
VZ
4562 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4570
e6cc62c6 4571fi;
10f2d63a
VZ
4572
4573 eval "$ac_cv_use_dynlib"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
10f2d63a 4581 else
e6cc62c6
VS
4582 echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
10f2d63a 4584 fi
e6cc62c6 4585
10f2d63a 4586
5005acfe 4587 enablestring=
e6cc62c6
VS
4588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4589echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4590 no_cache=0
4591 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4592if test "${enable_dynamicloader+set}" = set; then
4593 enableval="$enable_dynamicloader"
e6cc62c6 4594
0b9ab0bd
RL
4595 if test "$enableval" = yes; then
4596 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4597 else
4598 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4599 fi
e6cc62c6 4600
0b9ab0bd 4601else
e6cc62c6 4602
0b9ab0bd
RL
4603 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4611
e6cc62c6 4612fi;
0b9ab0bd
RL
4613
4614 eval "$ac_cv_use_dynamicloader"
4615 if test "$no_cache" != 1; then
4616 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4617 fi
4618
4619 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4620 echo "$as_me:$LINENO: result: yes" >&5
4621echo "${ECHO_T}yes" >&6
0b9ab0bd 4622 else
e6cc62c6
VS
4623 echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6
0b9ab0bd 4625 fi
e6cc62c6 4626
0b9ab0bd 4627
5005acfe 4628 enablestring=
e46d2a18
VS
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4631 no_cache=0
e46d2a18
VS
4632 # Check whether --enable-exceptions or --disable-exceptions was given.
4633if test "${enable_exceptions+set}" = set; then
4634 enableval="$enable_exceptions"
e6cc62c6 4635
10f2d63a 4636 if test "$enableval" = yes; then
e46d2a18 4637 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4638 else
e46d2a18 4639 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4640 fi
e6cc62c6 4641
10f2d63a 4642else
e6cc62c6 4643
e46d2a18 4644 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
e46d2a18 4651 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4652
e6cc62c6 4653fi;
10f2d63a 4654
e46d2a18 4655 eval "$ac_cv_use_exceptions"
10f2d63a 4656 if test "$no_cache" != 1; then
e46d2a18 4657 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4658 fi
4659
e46d2a18 4660 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
10f2d63a 4663 else
e6cc62c6
VS
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
10f2d63a 4666 fi
e6cc62c6 4667
10f2d63a 4668
5005acfe 4669 enablestring=
e46d2a18
VS
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4672 no_cache=0
e46d2a18
VS
4673 # Check whether --enable-ffile or --disable-ffile was given.
4674if test "${enable_ffile+set}" = set; then
4675 enableval="$enable_ffile"
e6cc62c6 4676
e8f65ba6 4677 if test "$enableval" = yes; then
e46d2a18 4678 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4679 else
e46d2a18 4680 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4681 fi
e6cc62c6 4682
e8f65ba6 4683else
e6cc62c6 4684
e46d2a18 4685 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
e46d2a18 4692 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4693
e6cc62c6 4694fi;
e8f65ba6 4695
e46d2a18 4696 eval "$ac_cv_use_ffile"
e8f65ba6 4697 if test "$no_cache" != 1; then
e46d2a18 4698 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4699 fi
4700
e46d2a18 4701 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
e8f65ba6 4704 else
e6cc62c6
VS
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
e8f65ba6 4707 fi
e6cc62c6 4708
e8f65ba6 4709
5005acfe 4710 enablestring=
e46d2a18
VS
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4713 no_cache=0
e46d2a18
VS
4714 # Check whether --enable-file or --disable-file was given.
4715if test "${enable_file+set}" = set; then
4716 enableval="$enable_file"
e6cc62c6 4717
10f2d63a 4718 if test "$enableval" = yes; then
e46d2a18 4719 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4720 else
e46d2a18 4721 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4722 fi
e6cc62c6 4723
10f2d63a 4724else
e6cc62c6 4725
e46d2a18 4726 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
e46d2a18 4733 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4734
e6cc62c6 4735fi;
10f2d63a 4736
e46d2a18 4737 eval "$ac_cv_use_file"
10f2d63a 4738 if test "$no_cache" != 1; then
e46d2a18 4739 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4740 fi
4741
e46d2a18 4742 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
10f2d63a 4745 else
e6cc62c6
VS
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
10f2d63a 4748 fi
e6cc62c6 4749
10f2d63a 4750
5005acfe 4751 enablestring=
e46d2a18
VS
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4754 no_cache=0
e46d2a18
VS
4755 # Check whether --enable-filesystem or --disable-filesystem was given.
4756if test "${enable_filesystem+set}" = set; then
4757 enableval="$enable_filesystem"
e6cc62c6 4758
10f2d63a 4759 if test "$enableval" = yes; then
e46d2a18 4760 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4761 else
e46d2a18 4762 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4763 fi
e6cc62c6 4764
10f2d63a 4765else
e6cc62c6 4766
e46d2a18 4767 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
e46d2a18 4774 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4775
e6cc62c6 4776fi;
10f2d63a 4777
e46d2a18 4778 eval "$ac_cv_use_filesystem"
10f2d63a 4779 if test "$no_cache" != 1; then
e46d2a18 4780 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4781 fi
4782
e46d2a18 4783 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
10f2d63a 4786 else
e6cc62c6
VS
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
10f2d63a 4789 fi
e6cc62c6 4790
10f2d63a 4791
5005acfe 4792 enablestring=
e46d2a18
VS
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4795 no_cache=0
e46d2a18
VS
4796 # Check whether --enable-fontmap or --disable-fontmap was given.
4797if test "${enable_fontmap+set}" = set; then
4798 enableval="$enable_fontmap"
e6cc62c6 4799
10f2d63a 4800 if test "$enableval" = yes; then
e46d2a18 4801 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4802 else
e46d2a18 4803 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4804 fi
e6cc62c6 4805
10f2d63a 4806else
e6cc62c6 4807
e46d2a18 4808 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
e46d2a18 4815 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4816
e6cc62c6 4817fi;
10f2d63a 4818
e46d2a18 4819 eval "$ac_cv_use_fontmap"
10f2d63a 4820 if test "$no_cache" != 1; then
e46d2a18 4821 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4822 fi
4823
e46d2a18 4824 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
10f2d63a 4827 else
e6cc62c6
VS
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
10f2d63a 4830 fi
e6cc62c6 4831
10f2d63a 4832
5005acfe 4833 enablestring=
e46d2a18
VS
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4836 no_cache=0
e46d2a18
VS
4837 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4838if test "${enable_fs_inet+set}" = set; then
4839 enableval="$enable_fs_inet"
e6cc62c6 4840
10f2d63a 4841 if test "$enableval" = yes; then
e46d2a18 4842 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4843 else
e46d2a18 4844 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4845 fi
e6cc62c6 4846
10f2d63a 4847else
e6cc62c6 4848
e46d2a18 4849 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
e46d2a18 4856 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4857
e6cc62c6 4858fi;
10f2d63a 4859
e46d2a18 4860 eval "$ac_cv_use_fs_inet"
10f2d63a 4861 if test "$no_cache" != 1; then
e46d2a18 4862 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4863 fi
4864
e46d2a18 4865 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
10f2d63a 4868 else
e6cc62c6
VS
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
10f2d63a 4871 fi
e6cc62c6 4872
10f2d63a 4873
5005acfe 4874 enablestring=
e46d2a18
VS
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4877 no_cache=0
e46d2a18
VS
4878 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4879if test "${enable_fs_zip+set}" = set; then
4880 enableval="$enable_fs_zip"
e6cc62c6 4881
a3a584a7 4882 if test "$enableval" = yes; then
e46d2a18 4883 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4884 else
e46d2a18 4885 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4886 fi
e6cc62c6 4887
a3a584a7 4888else
e6cc62c6 4889
e46d2a18 4890 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
e46d2a18 4897 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4898
e6cc62c6 4899fi;
a3a584a7 4900
e46d2a18 4901 eval "$ac_cv_use_fs_zip"
a3a584a7 4902 if test "$no_cache" != 1; then
e46d2a18 4903 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4904 fi
4905
e46d2a18 4906 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
a3a584a7 4909 else
e6cc62c6
VS
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
a3a584a7 4912 fi
e6cc62c6 4913
a3a584a7 4914
5005acfe 4915 enablestring=
e46d2a18
VS
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4918 no_cache=0
e46d2a18
VS
4919 # Check whether --enable-geometry or --disable-geometry was given.
4920if test "${enable_geometry+set}" = set; then
4921 enableval="$enable_geometry"
e6cc62c6 4922
10f2d63a 4923 if test "$enableval" = yes; then
e46d2a18 4924 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4925 else
e46d2a18 4926 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4927 fi
e6cc62c6 4928
10f2d63a 4929else
e6cc62c6 4930
e46d2a18 4931 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
e46d2a18 4938 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4939
e6cc62c6 4940fi;
10f2d63a 4941
e46d2a18 4942 eval "$ac_cv_use_geometry"
10f2d63a 4943 if test "$no_cache" != 1; then
e46d2a18 4944 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4945 fi
4946
e46d2a18 4947 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
10f2d63a 4950 else
e6cc62c6
VS
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
10f2d63a 4953 fi
e6cc62c6 4954
10f2d63a 4955
5005acfe 4956 enablestring=
e46d2a18
VS
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4959 no_cache=0
e46d2a18
VS
4960 # Check whether --enable-log or --disable-log was given.
4961if test "${enable_log+set}" = set; then
4962 enableval="$enable_log"
e6cc62c6 4963
10f2d63a 4964 if test "$enableval" = yes; then
e46d2a18 4965 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4966 else
e46d2a18 4967 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4968 fi
e6cc62c6 4969
10f2d63a 4970else
e6cc62c6 4971
e46d2a18 4972 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
e46d2a18 4979 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4980
e6cc62c6 4981fi;
10f2d63a 4982
e46d2a18 4983 eval "$ac_cv_use_log"
10f2d63a 4984 if test "$no_cache" != 1; then
e46d2a18 4985 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4986 fi
4987
e46d2a18 4988 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
10f2d63a 4991 else
e6cc62c6
VS
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
10f2d63a 4994 fi
e6cc62c6 4995
10f2d63a 4996
5005acfe 4997 enablestring=
e46d2a18
VS
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5000 no_cache=0
e46d2a18
VS
5001 # Check whether --enable-longlong or --disable-longlong was given.
5002if test "${enable_longlong+set}" = set; then
5003 enableval="$enable_longlong"
e6cc62c6 5004
1e6feb95 5005 if test "$enableval" = yes; then
e46d2a18 5006 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5007 else
e46d2a18 5008 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5009 fi
e6cc62c6 5010
1e6feb95 5011else
e6cc62c6 5012
e46d2a18 5013 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
e46d2a18 5020 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5021
e6cc62c6 5022fi;
1e6feb95 5023
e46d2a18 5024 eval "$ac_cv_use_longlong"
1e6feb95 5025 if test "$no_cache" != 1; then
e46d2a18 5026 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5027 fi
5028
e46d2a18
VS
5029 if test "$wxUSE_LONGLONG" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-mimetype or --disable-mimetype was given.
5043if test "${enable_mimetype+set}" = set; then
5044 enableval="$enable_mimetype"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5048 else
5049 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5062
5063fi;
5064
5065 eval "$ac_cv_use_mimetype"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
1e6feb95 5073 else
e6cc62c6
VS
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
1e6feb95 5076 fi
e6cc62c6 5077
1e6feb95 5078
5005acfe 5079 enablestring=
e6cc62c6
VS
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5082 no_cache=0
5083 # Check whether --enable-mslu or --disable-mslu was given.
5084if test "${enable_mslu+set}" = set; then
5085 enableval="$enable_mslu"
e6cc62c6 5086
a72a4bfa
VS
5087 if test "$enableval" = yes; then
5088 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5089 else
5090 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5091 fi
e6cc62c6 5092
a72a4bfa 5093else
e6cc62c6 5094
a72a4bfa
VS
5095 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5103
e6cc62c6 5104fi;
a72a4bfa
VS
5105
5106 eval "$ac_cv_use_mslu"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
a72a4bfa 5114 else
e6cc62c6
VS
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
a72a4bfa 5117 fi
e6cc62c6 5118
a72a4bfa 5119
5005acfe 5120 enablestring=
e46d2a18
VS
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5123 no_cache=0
e46d2a18
VS
5124 # Check whether --enable-snglinst or --disable-snglinst was given.
5125if test "${enable_snglinst+set}" = set; then
5126 enableval="$enable_snglinst"
e6cc62c6 5127
1e6feb95 5128 if test "$enableval" = yes; then
e46d2a18 5129 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5130 else
e46d2a18 5131 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5132 fi
e6cc62c6 5133
10f2d63a 5134else
e6cc62c6 5135
e46d2a18 5136 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
e46d2a18 5143 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5144
e6cc62c6 5145fi;
10f2d63a 5146
e46d2a18 5147 eval "$ac_cv_use_snglinst"
10f2d63a 5148 if test "$no_cache" != 1; then
e46d2a18 5149 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5150 fi
5151
e46d2a18
VS
5152 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-streams or --disable-streams was given.
5166if test "${enable_streams+set}" = set; then
5167 enableval="$enable_streams"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_streams='wxUSE_STREAMS=yes'
5171 else
5172 ac_cv_use_streams='wxUSE_STREAMS=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5185
5186fi;
5187
5188 eval "$ac_cv_use_streams"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
10f2d63a 5196 else
e6cc62c6
VS
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
10f2d63a 5199 fi
e6cc62c6 5200
10f2d63a 5201
5005acfe 5202 enablestring=
e6cc62c6
VS
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5205 no_cache=0
5206 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5207if test "${enable_std_iostreams+set}" = set; then
5208 enableval="$enable_std_iostreams"
e6cc62c6 5209
10f2d63a
VZ
5210 if test "$enableval" = yes; then
5211 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5212 else
5213 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5214 fi
e6cc62c6 5215
10f2d63a 5216else
e6cc62c6 5217
10f2d63a
VZ
5218 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5226
e6cc62c6 5227fi;
10f2d63a
VZ
5228
5229 eval "$ac_cv_use_std_iostreams"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
10f2d63a 5237 else
e6cc62c6
VS
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
10f2d63a 5240 fi
e6cc62c6 5241
10f2d63a 5242
5005acfe 5243 enablestring=
e46d2a18
VS
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5246 no_cache=0
e46d2a18
VS
5247 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5248if test "${enable_stopwatch+set}" = set; then
5249 enableval="$enable_stopwatch"
e6cc62c6 5250
24528b0c 5251 if test "$enableval" = yes; then
e46d2a18 5252 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5253 else
e46d2a18 5254 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5255 fi
e6cc62c6 5256
24528b0c 5257else
e6cc62c6 5258
e46d2a18 5259 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
e46d2a18 5266 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5267
e6cc62c6 5268fi;
24528b0c 5269
e46d2a18 5270 eval "$ac_cv_use_stopwatch"
24528b0c 5271 if test "$no_cache" != 1; then
e46d2a18 5272 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5273 fi
5274
e46d2a18 5275 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
24528b0c 5278 else
e6cc62c6
VS
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
24528b0c 5281 fi
e6cc62c6 5282
24528b0c 5283
5005acfe 5284 enablestring=
e46d2a18
VS
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5287 no_cache=0
e46d2a18
VS
5288 # Check whether --enable-system_options or --disable-system_options was given.
5289if test "${enable_system_options+set}" = set; then
5290 enableval="$enable_system_options"
e6cc62c6 5291
10f2d63a 5292 if test "$enableval" = yes; then
e46d2a18 5293 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5294 else
e46d2a18 5295 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5296 fi
e6cc62c6 5297
10f2d63a 5298else
e6cc62c6 5299
e46d2a18 5300 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
e46d2a18 5307 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5308
e6cc62c6 5309fi;
10f2d63a 5310
e46d2a18 5311 eval "$ac_cv_use_system_options"
10f2d63a 5312 if test "$no_cache" != 1; then
e46d2a18 5313 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5314 fi
5315
e46d2a18 5316 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
10f2d63a 5319 else
e6cc62c6
VS
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
10f2d63a 5322 fi
e6cc62c6 5323
10f2d63a 5324
5005acfe 5325 enablestring=
e46d2a18
VS
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5328 no_cache=0
e46d2a18
VS
5329 # Check whether --enable-textbuf or --disable-textbuf was given.
5330if test "${enable_textbuf+set}" = set; then
5331 enableval="$enable_textbuf"
e6cc62c6 5332
10f2d63a 5333 if test "$enableval" = yes; then
e46d2a18 5334 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5335 else
e46d2a18 5336 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5337 fi
e6cc62c6 5338
10f2d63a 5339else
e6cc62c6 5340
e46d2a18 5341 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
e46d2a18 5348 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5349
e6cc62c6 5350fi;
10f2d63a 5351
e46d2a18 5352 eval "$ac_cv_use_textbuf"
10f2d63a 5353 if test "$no_cache" != 1; then
e46d2a18 5354 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5355 fi
5356
e46d2a18 5357 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
10f2d63a 5360 else
e6cc62c6
VS
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
10f2d63a 5363 fi
e6cc62c6 5364
10f2d63a 5365
5005acfe 5366 enablestring=
e46d2a18
VS
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5369 no_cache=0
e46d2a18
VS
5370 # Check whether --enable-textfile or --disable-textfile was given.
5371if test "${enable_textfile+set}" = set; then
5372 enableval="$enable_textfile"
e6cc62c6 5373
10f2d63a 5374 if test "$enableval" = yes; then
e46d2a18 5375 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5376 else
e46d2a18 5377 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5378 fi
e6cc62c6 5379
10f2d63a 5380else
e6cc62c6 5381
e46d2a18 5382 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
e46d2a18 5389 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5390
e6cc62c6 5391fi;
10f2d63a 5392
e46d2a18 5393 eval "$ac_cv_use_textfile"
10f2d63a 5394 if test "$no_cache" != 1; then
e46d2a18 5395 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5396 fi
5397
e46d2a18 5398 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
10f2d63a 5401 else
e6cc62c6
VS
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
10f2d63a 5404 fi
e6cc62c6 5405
8284b0c5 5406
5005acfe 5407 enablestring=
e46d2a18
VS
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5410 no_cache=0
e46d2a18
VS
5411 # Check whether --enable-timer or --disable-timer was given.
5412if test "${enable_timer+set}" = set; then
5413 enableval="$enable_timer"
e6cc62c6 5414
eb4efbdc 5415 if test "$enableval" = yes; then
e46d2a18 5416 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5417 else
e46d2a18 5418 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5419 fi
e6cc62c6 5420
eb4efbdc 5421else
e6cc62c6 5422
e46d2a18 5423 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
e46d2a18 5430 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5431
e6cc62c6 5432fi;
eb4efbdc 5433
e46d2a18 5434 eval "$ac_cv_use_timer"
eb4efbdc 5435 if test "$no_cache" != 1; then
e46d2a18 5436 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5437 fi
5438
e46d2a18 5439 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
eb4efbdc 5442 else
e6cc62c6
VS
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
eb4efbdc 5445 fi
e6cc62c6 5446
eb4efbdc 5447
5005acfe 5448 enablestring=
e46d2a18
VS
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5451 no_cache=0
e46d2a18
VS
5452 # Check whether --enable-unicode or --disable-unicode was given.
5453if test "${enable_unicode+set}" = set; then
5454 enableval="$enable_unicode"
e6cc62c6 5455
4f3c5f06 5456 if test "$enableval" = yes; then
e46d2a18 5457 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5458 else
e46d2a18 5459 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5460 fi
e6cc62c6 5461
4f3c5f06 5462else
e6cc62c6 5463
e46d2a18 5464 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
e46d2a18 5471 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5472
e6cc62c6 5473fi;
4f3c5f06 5474
e46d2a18 5475 eval "$ac_cv_use_unicode"
4f3c5f06 5476 if test "$no_cache" != 1; then
e46d2a18 5477 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5478 fi
5479
e46d2a18 5480 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
4f3c5f06 5483 else
e6cc62c6
VS
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
4f3c5f06 5486 fi
e6cc62c6 5487
52127426 5488
e46d2a18
VS
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-wave or --disable-wave was given.
5494if test "${enable_wave+set}" = set; then
5495 enableval="$enable_wave"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_wave='wxUSE_WAVE=yes'
5499 else
5500 ac_cv_use_wave='wxUSE_WAVE=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5513
5514fi;
5515
5516 eval "$ac_cv_use_wave"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_WAVE" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
8284b0c5 5529
5005acfe 5530 enablestring=
e46d2a18
VS
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5533 no_cache=0
e46d2a18
VS
5534 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5535if test "${enable_wxprintfv+set}" = set; then
5536 enableval="$enable_wxprintfv"
e6cc62c6 5537
1e6feb95 5538 if test "$enableval" = yes; then
e46d2a18 5539 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5540 else
e46d2a18 5541 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5542 fi
e6cc62c6 5543
1e6feb95 5544else
e6cc62c6 5545
e46d2a18 5546 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
e46d2a18 5553 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5554
e6cc62c6 5555fi;
1e6feb95 5556
e46d2a18 5557 eval "$ac_cv_use_wxprintfv"
1e6feb95 5558 if test "$no_cache" != 1; then
e46d2a18 5559 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5560 fi
5561
e46d2a18 5562 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
1e6feb95 5565 else
e6cc62c6
VS
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
1e6feb95 5568 fi
e6cc62c6 5569
1e6feb95 5570
5005acfe 5571 enablestring=
e46d2a18
VS
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5574 no_cache=0
e46d2a18
VS
5575 # Check whether --enable-zipstream or --disable-zipstream was given.
5576if test "${enable_zipstream+set}" = set; then
5577 enableval="$enable_zipstream"
e6cc62c6 5578
3e44f09d 5579 if test "$enableval" = yes; then
e46d2a18 5580 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5581 else
e46d2a18 5582 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5583 fi
e6cc62c6 5584
3e44f09d 5585else
e6cc62c6 5586
e46d2a18 5587 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
e46d2a18 5594 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5595
e6cc62c6 5596fi;
3e44f09d 5597
e46d2a18 5598 eval "$ac_cv_use_zipstream"
3e44f09d 5599 if test "$no_cache" != 1; then
e46d2a18 5600 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5601 fi
5602
e46d2a18 5603 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
3e44f09d 5606 else
e6cc62c6
VS
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
3e44f09d 5609 fi
e6cc62c6 5610
8284b0c5 5611
7015ef3a
VZ
5612 enablestring=
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5615 no_cache=0
5616 # Check whether --enable-gzstream or --disable-gzstream was given.
5617if test "${enable_gzstream+set}" = set; then
5618 enableval="$enable_gzstream"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5622 else
5623 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5636
5637fi;
5638
5639 eval "$ac_cv_use_gzstream"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_GZSTREAM" = yes; then
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
52127426 5653
5005acfe 5654 enablestring=
e6cc62c6
VS
5655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5656echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5657 no_cache=0
5658 # Check whether --enable-url or --disable-url was given.
5659if test "${enable_url+set}" = set; then
5660 enableval="$enable_url"
e6cc62c6 5661
4cdb0ab0
VS
5662 if test "$enableval" = yes; then
5663 ac_cv_use_url='wxUSE_URL=yes'
5664 else
5665 ac_cv_use_url='wxUSE_URL=no'
5666 fi
e6cc62c6 5667
4cdb0ab0 5668else
e6cc62c6 5669
4cdb0ab0
VS
5670 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5671 if test "x$LINE" != x ; then
5672 eval "DEFAULT_$LINE"
5673 else
5674 no_cache=1
5675 fi
5676
5677 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5678
e6cc62c6 5679fi;
4cdb0ab0
VS
5680
5681 eval "$ac_cv_use_url"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5687 echo "$as_me:$LINENO: result: yes" >&5
5688echo "${ECHO_T}yes" >&6
4cdb0ab0 5689 else
e6cc62c6
VS
5690 echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
4cdb0ab0 5692 fi
e6cc62c6 5693
4cdb0ab0 5694
5005acfe 5695 enablestring=
e6cc62c6
VS
5696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5697echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5698 no_cache=0
5699 # Check whether --enable-protocol or --disable-protocol was given.
5700if test "${enable_protocol+set}" = set; then
5701 enableval="$enable_protocol"
e6cc62c6 5702
4cdb0ab0
VS
5703 if test "$enableval" = yes; then
5704 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5705 else
5706 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5707 fi
e6cc62c6 5708
4cdb0ab0 5709else
e6cc62c6 5710
4cdb0ab0
VS
5711 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5712 if test "x$LINE" != x ; then
5713 eval "DEFAULT_$LINE"
5714 else
5715 no_cache=1
5716 fi
5717
5718 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5719
e6cc62c6 5720fi;
4cdb0ab0
VS
5721
5722 eval "$ac_cv_use_protocol"
5723 if test "$no_cache" != 1; then
5724 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5725 fi
5726
5727 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5728 echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
4cdb0ab0 5730 else
e6cc62c6
VS
5731 echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6
4cdb0ab0 5733 fi
e6cc62c6 5734
4cdb0ab0 5735
5005acfe 5736 enablestring=
e6cc62c6
VS
5737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5738echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5739 no_cache=0
5740 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5741if test "${enable_protocol_http+set}" = set; then
5742 enableval="$enable_protocol_http"
e6cc62c6 5743
4cdb0ab0
VS
5744 if test "$enableval" = yes; then
5745 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5746 else
5747 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5748 fi
e6cc62c6 5749
4cdb0ab0 5750else
e6cc62c6 5751
4cdb0ab0
VS
5752 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5753 if test "x$LINE" != x ; then
5754 eval "DEFAULT_$LINE"
5755 else
5756 no_cache=1
5757 fi
5758
5759 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5760
e6cc62c6 5761fi;
4cdb0ab0
VS
5762
5763 eval "$ac_cv_use_protocol_http"
5764 if test "$no_cache" != 1; then
5765 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5766 fi
5767
5768 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5769 echo "$as_me:$LINENO: result: yes" >&5
5770echo "${ECHO_T}yes" >&6
4cdb0ab0 5771 else
e6cc62c6
VS
5772 echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6
4cdb0ab0 5774 fi
e6cc62c6 5775
4cdb0ab0 5776
5005acfe 5777 enablestring=
e6cc62c6
VS
5778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5779echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5780 no_cache=0
5781 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5782if test "${enable_protocol_ftp+set}" = set; then
5783 enableval="$enable_protocol_ftp"
e6cc62c6 5784
4cdb0ab0
VS
5785 if test "$enableval" = yes; then
5786 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5787 else
5788 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5789 fi
e6cc62c6 5790
4cdb0ab0 5791else
e6cc62c6 5792
4cdb0ab0
VS
5793 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5794 if test "x$LINE" != x ; then
5795 eval "DEFAULT_$LINE"
5796 else
5797 no_cache=1
5798 fi
5799
5800 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5801
e6cc62c6 5802fi;
4cdb0ab0
VS
5803
5804 eval "$ac_cv_use_protocol_ftp"
5805 if test "$no_cache" != 1; then
5806 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5807 fi
5808
5809 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5810 echo "$as_me:$LINENO: result: yes" >&5
5811echo "${ECHO_T}yes" >&6
4cdb0ab0 5812 else
e6cc62c6
VS
5813 echo "$as_me:$LINENO: result: no" >&5
5814echo "${ECHO_T}no" >&6
4cdb0ab0 5815 fi
e6cc62c6 5816
4cdb0ab0 5817
5005acfe 5818 enablestring=
e6cc62c6
VS
5819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5820echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5821 no_cache=0
5822 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5823if test "${enable_protocol_file+set}" = set; then
5824 enableval="$enable_protocol_file"
e6cc62c6 5825
4cdb0ab0
VS
5826 if test "$enableval" = yes; then
5827 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5828 else
5829 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5830 fi
e6cc62c6 5831
4cdb0ab0 5832else
e6cc62c6 5833
4cdb0ab0
VS
5834 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5835 if test "x$LINE" != x ; then
5836 eval "DEFAULT_$LINE"
5837 else
5838 no_cache=1
5839 fi
5840
5841 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5842
e6cc62c6 5843fi;
4cdb0ab0
VS
5844
5845 eval "$ac_cv_use_protocol_file"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5851 echo "$as_me:$LINENO: result: yes" >&5
5852echo "${ECHO_T}yes" >&6
4cdb0ab0 5853 else
e6cc62c6
VS
5854 echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6
4cdb0ab0 5856 fi
e6cc62c6 5857
52127426 5858
8284b0c5
MB
5859
5860
5861
5005acfe 5862 enablestring=
e6cc62c6
VS
5863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5864echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5865 no_cache=0
5866 # Check whether --enable-threads or --disable-threads was given.
5867if test "${enable_threads+set}" = set; then
5868 enableval="$enable_threads"
e6cc62c6 5869
10f2d63a
VZ
5870 if test "$enableval" = yes; then
5871 ac_cv_use_threads='wxUSE_THREADS=yes'
5872 else
5873 ac_cv_use_threads='wxUSE_THREADS=no'
5874 fi
e6cc62c6 5875
10f2d63a 5876else
e6cc62c6 5877
10f2d63a
VZ
5878 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5879 if test "x$LINE" != x ; then
5880 eval "DEFAULT_$LINE"
5881 else
5882 no_cache=1
5883 fi
5884
5885 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5886
e6cc62c6 5887fi;
10f2d63a
VZ
5888
5889 eval "$ac_cv_use_threads"
5890 if test "$no_cache" != 1; then
5891 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5892 fi
5893
5894 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5895 echo "$as_me:$LINENO: result: yes" >&5
5896echo "${ECHO_T}yes" >&6
10f2d63a 5897 else
e6cc62c6
VS
5898 echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
10f2d63a 5900 fi
e6cc62c6 5901
10f2d63a 5902
b12915c1
VZ
5903if test "$wxUSE_GUI" = "yes"; then
5904
8284b0c5
MB
5905
5906
5005acfe 5907 enablestring=
e6cc62c6
VS
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5910 no_cache=0
5911 # Check whether --enable-docview or --disable-docview was given.
5912if test "${enable_docview+set}" = set; then
5913 enableval="$enable_docview"
e6cc62c6 5914
10f2d63a
VZ
5915 if test "$enableval" = yes; then
5916 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5917 else
5918 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5919 fi
e6cc62c6 5920
10f2d63a 5921else
e6cc62c6 5922
10f2d63a
VZ
5923 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5931
e6cc62c6 5932fi;
10f2d63a
VZ
5933
5934 eval "$ac_cv_use_docview"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
10f2d63a 5942 else
e6cc62c6
VS
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
10f2d63a 5945 fi
e6cc62c6 5946
10f2d63a 5947
5005acfe 5948 enablestring=
e6cc62c6
VS
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5951 no_cache=0
5952 # Check whether --enable-help or --disable-help was given.
5953if test "${enable_help+set}" = set; then
5954 enableval="$enable_help"
e6cc62c6 5955
10f2d63a
VZ
5956 if test "$enableval" = yes; then
5957 ac_cv_use_help='wxUSE_HELP=yes'
5958 else
5959 ac_cv_use_help='wxUSE_HELP=no'
5960 fi
e6cc62c6 5961
10f2d63a 5962else
e6cc62c6 5963
10f2d63a
VZ
5964 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5972
e6cc62c6 5973fi;
10f2d63a
VZ
5974
5975 eval "$ac_cv_use_help"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
10f2d63a 5983 else
e6cc62c6
VS
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
10f2d63a 5986 fi
e6cc62c6 5987
10f2d63a 5988
5005acfe 5989 enablestring=
e6cc62c6
VS
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5992 no_cache=0
5993 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5994if test "${enable_mshtmlhelp+set}" = set; then
5995 enableval="$enable_mshtmlhelp"
e6cc62c6 5996
29fd3c0c
VS
5997 if test "$enableval" = yes; then
5998 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5999 else
6000 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6001 fi
e6cc62c6 6002
29fd3c0c 6003else
e6cc62c6 6004
29fd3c0c
VS
6005 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6013
e6cc62c6 6014fi;
29fd3c0c
VS
6015
6016 eval "$ac_cv_use_mshtmlhelp"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
29fd3c0c 6024 else
e6cc62c6
VS
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
29fd3c0c 6027 fi
e6cc62c6 6028
29fd3c0c 6029
5005acfe 6030 enablestring=
e6cc62c6
VS
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6033 no_cache=0
6034 # Check whether --enable-html or --disable-html was given.
6035if test "${enable_html+set}" = set; then
6036 enableval="$enable_html"
e6cc62c6 6037
3379ed37
VZ
6038 if test "$enableval" = yes; then
6039 ac_cv_use_html='wxUSE_HTML=yes'
6040 else
6041 ac_cv_use_html='wxUSE_HTML=no'
6042 fi
e6cc62c6 6043
3379ed37 6044else
e6cc62c6 6045
3379ed37
VZ
6046 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6054
e6cc62c6 6055fi;
3379ed37
VZ
6056
6057 eval "$ac_cv_use_html"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
3379ed37 6065 else
e6cc62c6
VS
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
3379ed37 6068 fi
e6cc62c6 6069
3379ed37 6070
5005acfe 6071 enablestring=
e6cc62c6
VS
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6074 no_cache=0
6075 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6076if test "${enable_htmlhelp+set}" = set; then
6077 enableval="$enable_htmlhelp"
e6cc62c6 6078
3379ed37
VZ
6079 if test "$enableval" = yes; then
6080 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6081 else
6082 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6083 fi
e6cc62c6 6084
3379ed37 6085else
e6cc62c6 6086
3379ed37
VZ
6087 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6095
e6cc62c6 6096fi;
3379ed37
VZ
6097
6098 eval "$ac_cv_use_htmlhelp"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
3379ed37 6106 else
e6cc62c6
VS
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
3379ed37 6109 fi
e6cc62c6 6110
3379ed37 6111
5005acfe 6112 enablestring=
e6cc62c6
VS
6113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6114echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6115 no_cache=0
6116 # Check whether --enable-constraints or --disable-constraints was given.
6117if test "${enable_constraints+set}" = set; then
6118 enableval="$enable_constraints"
e6cc62c6 6119
10f2d63a
VZ
6120 if test "$enableval" = yes; then
6121 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6122 else
6123 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6124 fi
e6cc62c6 6125
10f2d63a 6126else
e6cc62c6 6127
10f2d63a
VZ
6128 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6129 if test "x$LINE" != x ; then
6130 eval "DEFAULT_$LINE"
6131 else
6132 no_cache=1
6133 fi
6134
6135 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6136
e6cc62c6 6137fi;
10f2d63a
VZ
6138
6139 eval "$ac_cv_use_constraints"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6145 echo "$as_me:$LINENO: result: yes" >&5
6146echo "${ECHO_T}yes" >&6
10f2d63a 6147 else
e6cc62c6
VS
6148 echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
10f2d63a 6150 fi
e6cc62c6 6151
10f2d63a 6152
5005acfe 6153 enablestring=
e6cc62c6
VS
6154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6155echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6156 no_cache=0
6157 # Check whether --enable-printarch or --disable-printarch was given.
6158if test "${enable_printarch+set}" = set; then
6159 enableval="$enable_printarch"
e6cc62c6 6160
10f2d63a
VZ
6161 if test "$enableval" = yes; then
6162 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6163 else
6164 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6165 fi
e6cc62c6 6166
10f2d63a 6167else
e6cc62c6 6168
10f2d63a
VZ
6169 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6170 if test "x$LINE" != x ; then
6171 eval "DEFAULT_$LINE"
6172 else
6173 no_cache=1
6174 fi
6175
6176 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6177
e6cc62c6 6178fi;
10f2d63a
VZ
6179
6180 eval "$ac_cv_use_printarch"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6186 echo "$as_me:$LINENO: result: yes" >&5
6187echo "${ECHO_T}yes" >&6
10f2d63a 6188 else
e6cc62c6
VS
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
10f2d63a 6191 fi
e6cc62c6 6192
10f2d63a 6193
5005acfe 6194 enablestring=
e6cc62c6
VS
6195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6196echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6197 no_cache=0
6198 # Check whether --enable-mdi or --disable-mdi was given.
6199if test "${enable_mdi+set}" = set; then
6200 enableval="$enable_mdi"
e6cc62c6 6201
10f2d63a
VZ
6202 if test "$enableval" = yes; then
6203 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6204 else
6205 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6206 fi
e6cc62c6 6207
10f2d63a 6208else
e6cc62c6 6209
10f2d63a
VZ
6210 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6218
e6cc62c6 6219fi;
10f2d63a
VZ
6220
6221 eval "$ac_cv_use_mdi"
6222 if test "$no_cache" != 1; then
6223 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6224 fi
6225
6226 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6227 echo "$as_me:$LINENO: result: yes" >&5
6228echo "${ECHO_T}yes" >&6
10f2d63a 6229 else
e6cc62c6
VS
6230 echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6
10f2d63a 6232 fi
e6cc62c6 6233
698dcdb6 6234
5005acfe 6235 enablestring=
e6cc62c6
VS
6236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6237echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6238 no_cache=0
6239 # Check whether --enable-loggui or --disable-loggui was given.
6240if test "${enable_loggui+set}" = set; then
6241 enableval="$enable_loggui"
e6cc62c6 6242
1e6feb95
VZ
6243 if test "$enableval" = yes; then
6244 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6245 else
6246 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6247 fi
e6cc62c6 6248
1e6feb95 6249else
e6cc62c6 6250
1e6feb95
VZ
6251 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6259
e6cc62c6 6260fi;
1e6feb95
VZ
6261
6262 eval "$ac_cv_use_loggui"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6268 echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
1e6feb95 6270 else
e6cc62c6
VS
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
1e6feb95 6273 fi
e6cc62c6 6274
1e6feb95 6275
5005acfe 6276 enablestring=
e6cc62c6
VS
6277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6278echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6279 no_cache=0
6280 # Check whether --enable-logwin or --disable-logwin was given.
6281if test "${enable_logwin+set}" = set; then
6282 enableval="$enable_logwin"
e6cc62c6 6283
1e6feb95
VZ
6284 if test "$enableval" = yes; then
6285 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6286 else
6287 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6288 fi
e6cc62c6 6289
1e6feb95 6290else
e6cc62c6 6291
1e6feb95
VZ
6292 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6293 if test "x$LINE" != x ; then
6294 eval "DEFAULT_$LINE"
6295 else
6296 no_cache=1
6297 fi
6298
6299 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6300
e6cc62c6 6301fi;
1e6feb95
VZ
6302
6303 eval "$ac_cv_use_logwin"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6309 echo "$as_me:$LINENO: result: yes" >&5
6310echo "${ECHO_T}yes" >&6
1e6feb95 6311 else
e6cc62c6
VS
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
1e6feb95 6314 fi
e6cc62c6 6315
1e6feb95 6316
5005acfe 6317 enablestring=
e6cc62c6
VS
6318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6319echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6320 no_cache=0
6321 # Check whether --enable-logdialog or --disable-logdialog was given.
6322if test "${enable_logdialog+set}" = set; then
6323 enableval="$enable_logdialog"
e6cc62c6 6324
69d27ff7
MB
6325 if test "$enableval" = yes; then
6326 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6327 else
6328 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6329 fi
e6cc62c6 6330
69d27ff7 6331else
e6cc62c6 6332
69d27ff7
MB
6333 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6341
e6cc62c6 6342fi;
69d27ff7
MB
6343
6344 eval "$ac_cv_use_logdialog"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6350 echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
69d27ff7 6352 else
e6cc62c6
VS
6353 echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
69d27ff7 6355 fi
e6cc62c6 6356
8284b0c5 6357
52127426 6358
5005acfe 6359 enablestring=
e6cc62c6
VS
6360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6361echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6362 no_cache=0
6363 # Check whether --enable-postscript or --disable-postscript was given.
6364if test "${enable_postscript+set}" = set; then
6365 enableval="$enable_postscript"
e6cc62c6 6366
10f2d63a
VZ
6367 if test "$enableval" = yes; then
6368 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6369 else
6370 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6371 fi
e6cc62c6 6372
10f2d63a 6373else
e6cc62c6 6374
10f2d63a
VZ
6375 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6376 if test "x$LINE" != x ; then
6377 eval "DEFAULT_$LINE"
6378 else
6379 no_cache=1
6380 fi
6381
6382 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6383
e6cc62c6 6384fi;
10f2d63a
VZ
6385
6386 eval "$ac_cv_use_postscript"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6392 echo "$as_me:$LINENO: result: yes" >&5
6393echo "${ECHO_T}yes" >&6
10f2d63a 6394 else
e6cc62c6
VS
6395 echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
10f2d63a 6397 fi
e6cc62c6 6398
8284b0c5
MB
6399
6400
52127426 6401
8284b0c5 6402
5005acfe 6403 enablestring=
e6cc62c6
VS
6404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6405echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6406 no_cache=0
3c907f20
VZ
6407 # Check whether --enable-prologio or --disable-prologio was given.
6408if test "${enable_prologio+set}" = set; then
6409 enableval="$enable_prologio"
e6cc62c6 6410
10f2d63a 6411 if test "$enableval" = yes; then
3c907f20 6412 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6413 else
3c907f20 6414 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6415 fi
e6cc62c6 6416
10f2d63a 6417else
e6cc62c6 6418
3c907f20 6419 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6420 if test "x$LINE" != x ; then
6421 eval "DEFAULT_$LINE"
6422 else
6423 no_cache=1
6424 fi
6425
3c907f20 6426 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6427
e6cc62c6 6428fi;
10f2d63a 6429
3c907f20 6430 eval "$ac_cv_use_prologio"
10f2d63a 6431 if test "$no_cache" != 1; then
3c907f20 6432 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6433 fi
6434
3c907f20 6435 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6436 echo "$as_me:$LINENO: result: yes" >&5
6437echo "${ECHO_T}yes" >&6
10f2d63a 6438 else
e6cc62c6
VS
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
10f2d63a 6441 fi
e6cc62c6 6442
8284b0c5 6443
5005acfe 6444 enablestring=
e6cc62c6
VS
6445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6446echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6447 no_cache=0
3c907f20
VZ
6448 # Check whether --enable-resources or --disable-resources was given.
6449if test "${enable_resources+set}" = set; then
6450 enableval="$enable_resources"
e6cc62c6 6451
10f2d63a 6452 if test "$enableval" = yes; then
3c907f20 6453 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6454 else
3c907f20 6455 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6456 fi
e6cc62c6 6457
10f2d63a 6458else
e6cc62c6 6459
3c907f20 6460 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
3c907f20 6467 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6468
e6cc62c6 6469fi;
10f2d63a 6470
3c907f20 6471 eval "$ac_cv_use_resources"
10f2d63a 6472 if test "$no_cache" != 1; then
3c907f20 6473 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6474 fi
6475
3c907f20 6476 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6477 echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6
10f2d63a 6479 else
e6cc62c6
VS
6480 echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6
10f2d63a 6482 fi
e6cc62c6 6483
8284b0c5
MB
6484
6485
52127426 6486
5005acfe 6487 enablestring=
e6cc62c6
VS
6488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6489echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6490 no_cache=0
6491 # Check whether --enable-clipboard or --disable-clipboard was given.
6492if test "${enable_clipboard+set}" = set; then
6493 enableval="$enable_clipboard"
e6cc62c6 6494
10f2d63a
VZ
6495 if test "$enableval" = yes; then
6496 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6497 else
6498 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6499 fi
e6cc62c6 6500
10f2d63a 6501else
e6cc62c6 6502
10f2d63a
VZ
6503 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6504 if test "x$LINE" != x ; then
6505 eval "DEFAULT_$LINE"
6506 else
6507 no_cache=1
6508 fi
6509
6510 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6511
e6cc62c6 6512fi;
10f2d63a
VZ
6513
6514 eval "$ac_cv_use_clipboard"
6515 if test "$no_cache" != 1; then
6516 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6517 fi
6518
6519 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6520 echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6
10f2d63a 6522 else
e6cc62c6
VS
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
10f2d63a 6525 fi
e6cc62c6 6526
10f2d63a 6527
5005acfe 6528 enablestring=
e6cc62c6
VS
6529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6530echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6531 no_cache=0
6532 # Check whether --enable-dnd or --disable-dnd was given.
6533if test "${enable_dnd+set}" = set; then
6534 enableval="$enable_dnd"
e6cc62c6 6535
10f2d63a
VZ
6536 if test "$enableval" = yes; then
6537 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6538 else
6539 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6540 fi
e6cc62c6 6541
10f2d63a 6542else
e6cc62c6 6543
10f2d63a
VZ
6544 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6552
e6cc62c6 6553fi;
10f2d63a
VZ
6554
6555 eval "$ac_cv_use_dnd"
6556 if test "$no_cache" != 1; then
6557 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6558 fi
6559
6560 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6561 echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6
10f2d63a 6563 else
e6cc62c6
VS
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
10f2d63a 6566 fi
e6cc62c6 6567
10f2d63a 6568
5005acfe 6569 enablestring=
e6cc62c6
VS
6570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6571echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6572 no_cache=0
6573 # Check whether --enable-metafile or --disable-metafile was given.
6574if test "${enable_metafile+set}" = set; then
6575 enableval="$enable_metafile"
e6cc62c6 6576
b64f0a5f
RL
6577 if test "$enableval" = yes; then
6578 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6579 else
6580 ac_cv_use_metafile='wxUSE_METAFILE=no'
6581 fi
e6cc62c6 6582
b64f0a5f 6583else
e6cc62c6 6584
b64f0a5f
RL
6585 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6593
e6cc62c6 6594fi;
b64f0a5f
RL
6595
6596 eval "$ac_cv_use_metafile"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6602 echo "$as_me:$LINENO: result: yes" >&5
6603echo "${ECHO_T}yes" >&6
b64f0a5f 6604 else
e6cc62c6
VS
6605 echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
b64f0a5f 6607 fi
e6cc62c6 6608
52127426 6609
8284b0c5 6610
52127426 6611
8284b0c5 6612
5005acfe 6613 enablestring=
e6cc62c6
VS
6614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6615echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6616 no_cache=0
6617 # Check whether --enable-controls or --disable-controls was given.
6618if test "${enable_controls+set}" = set; then
6619 enableval="$enable_controls"
e6cc62c6 6620
10f2d63a
VZ
6621 if test "$enableval" = yes; then
6622 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6623 else
6624 ac_cv_use_controls='wxUSE_CONTROLS=no'
6625 fi
e6cc62c6 6626
10f2d63a 6627else
e6cc62c6 6628
10f2d63a
VZ
6629 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6637
e6cc62c6 6638fi;
10f2d63a
VZ
6639
6640 eval "$ac_cv_use_controls"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6646 echo "$as_me:$LINENO: result: yes" >&5
6647echo "${ECHO_T}yes" >&6
10f2d63a 6648 else
e6cc62c6
VS
6649 echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6
10f2d63a 6651 fi
e6cc62c6 6652
10f2d63a
VZ
6653
6654if test "$wxUSE_CONTROLS" = "yes"; then
6655 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6656 DEFAULT_wxUSE_BMPBUTTON=yes
6657 DEFAULT_wxUSE_BUTTON=yes
6658 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6659 DEFAULT_wxUSE_CARET=yes
6660 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6661 DEFAULT_wxUSE_CHECKBOX=yes
6662 DEFAULT_wxUSE_CHECKLISTBOX=yes
6663 DEFAULT_wxUSE_CHOICE=yes
6664 DEFAULT_wxUSE_GAUGE=yes
6665 DEFAULT_wxUSE_GRID=yes
10f2d63a 6666 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6667 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6668 DEFAULT_wxUSE_LISTBOX=yes
6669 DEFAULT_wxUSE_LISTCTRL=yes
6670 DEFAULT_wxUSE_NOTEBOOK=yes
6671 DEFAULT_wxUSE_RADIOBOX=yes
6672 DEFAULT_wxUSE_RADIOBTN=yes
6673 DEFAULT_wxUSE_SASH=yes
6674 DEFAULT_wxUSE_SCROLLBAR=yes
6675 DEFAULT_wxUSE_SLIDER=yes
6676 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6677 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6678 DEFAULT_wxUSE_SPLITTER=yes
6679 DEFAULT_wxUSE_STATBMP=yes
6680 DEFAULT_wxUSE_STATBOX=yes
6681 DEFAULT_wxUSE_STATLINE=yes
6682 DEFAULT_wxUSE_STATUSBAR=yes
6683 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6684 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6685 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6686 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6687 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6688 DEFAULT_wxUSE_TOOLTIPS=yes
6689 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6690 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6691 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6692elif test "$wxUSE_CONTROLS" = "no"; then
6693 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6694 DEFAULT_wxUSE_BMPBUTTON=no
6695 DEFAULT_wxUSE_BUTTON=no
6696 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6697 DEFAULT_wxUSE_CARET=no
6698 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6699 DEFAULT_wxUSE_CHECKBOX=no
6700 DEFAULT_wxUSE_CHECKLISTBOX=no
6701 DEFAULT_wxUSE_CHOICE=no
6702 DEFAULT_wxUSE_GAUGE=no
6703 DEFAULT_wxUSE_GRID=no
10f2d63a 6704 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6705 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6706 DEFAULT_wxUSE_LISTBOX=no
6707 DEFAULT_wxUSE_LISTCTRL=no
6708 DEFAULT_wxUSE_NOTEBOOK=no
6709 DEFAULT_wxUSE_RADIOBOX=no
6710 DEFAULT_wxUSE_RADIOBTN=no
6711 DEFAULT_wxUSE_SASH=no
6712 DEFAULT_wxUSE_SCROLLBAR=no
6713 DEFAULT_wxUSE_SLIDER=no
6714 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6715 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6716 DEFAULT_wxUSE_SPLITTER=no
6717 DEFAULT_wxUSE_STATBMP=no
6718 DEFAULT_wxUSE_STATBOX=no
6719 DEFAULT_wxUSE_STATLINE=no
6720 DEFAULT_wxUSE_STATUSBAR=no
6721 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6722 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6723 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6724 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6725 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6726 DEFAULT_wxUSE_TOOLTIPS=no
6727 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6728 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6729 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6730fi
6731
ac0c4cc3
DE
6732## FIXME: This is a blatant hack
6733if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6734 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6735 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6736 # Generic notebook requires tab dialog
6737 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6738 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6739 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6740 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6741 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6742fi
6743
8284b0c5 6744
5005acfe 6745 enablestring=
e6cc62c6
VS
6746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6747echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6748 no_cache=0
6749 # Check whether --enable-accel or --disable-accel was given.
6750if test "${enable_accel+set}" = set; then
6751 enableval="$enable_accel"
e6cc62c6 6752
10f2d63a
VZ
6753 if test "$enableval" = yes; then
6754 ac_cv_use_accel='wxUSE_ACCEL=yes'
6755 else
6756 ac_cv_use_accel='wxUSE_ACCEL=no'
6757 fi
e6cc62c6 6758
10f2d63a 6759else
e6cc62c6 6760
10f2d63a
VZ
6761 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6762 if test "x$LINE" != x ; then
6763 eval "DEFAULT_$LINE"
6764 else
6765 no_cache=1
6766 fi
6767
6768 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6769
e6cc62c6 6770fi;
10f2d63a
VZ
6771
6772 eval "$ac_cv_use_accel"
6773 if test "$no_cache" != 1; then
6774 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6775 fi
6776
6777 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6778 echo "$as_me:$LINENO: result: yes" >&5
6779echo "${ECHO_T}yes" >&6
10f2d63a 6780 else
e6cc62c6
VS
6781 echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6
10f2d63a 6783 fi
e6cc62c6 6784
10f2d63a 6785
5005acfe 6786 enablestring=
e6cc62c6
VS
6787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6788echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6789 no_cache=0
1e6feb95
VZ
6790 # Check whether --enable-button or --disable-button was given.
6791if test "${enable_button+set}" = set; then
6792 enableval="$enable_button"
e6cc62c6 6793
10f2d63a 6794 if test "$enableval" = yes; then
1e6feb95 6795 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6796 else
1e6feb95 6797 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6798 fi
e6cc62c6 6799
10f2d63a 6800else
e6cc62c6 6801
1e6feb95 6802 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6803 if test "x$LINE" != x ; then
6804 eval "DEFAULT_$LINE"
6805 else
6806 no_cache=1
6807 fi
6808
1e6feb95 6809 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6810
e6cc62c6 6811fi;
10f2d63a 6812
1e6feb95 6813 eval "$ac_cv_use_button"
10f2d63a 6814 if test "$no_cache" != 1; then
1e6feb95 6815 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6816 fi
6817
1e6feb95 6818 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6819 echo "$as_me:$LINENO: result: yes" >&5
6820echo "${ECHO_T}yes" >&6
10f2d63a 6821 else
e6cc62c6
VS
6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
10f2d63a 6824 fi
e6cc62c6 6825
10f2d63a 6826
5005acfe 6827 enablestring=
e6cc62c6
VS
6828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6829echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6830 no_cache=0
6831 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6832if test "${enable_bmpbutton+set}" = set; then
6833 enableval="$enable_bmpbutton"
e6cc62c6 6834
10f2d63a
VZ
6835 if test "$enableval" = yes; then
6836 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6837 else
6838 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6839 fi
e6cc62c6 6840
10f2d63a 6841else
e6cc62c6 6842
10f2d63a
VZ
6843 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6844 if test "x$LINE" != x ; then
6845 eval "DEFAULT_$LINE"
6846 else
6847 no_cache=1
6848 fi
6849
6850 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6851
e6cc62c6 6852fi;
10f2d63a
VZ
6853
6854 eval "$ac_cv_use_bmpbutton"
6855 if test "$no_cache" != 1; then
6856 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6857 fi
6858
6859 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6860 echo "$as_me:$LINENO: result: yes" >&5
6861echo "${ECHO_T}yes" >&6
10f2d63a 6862 else
e6cc62c6
VS
6863 echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6
10f2d63a 6865 fi
e6cc62c6 6866
10f2d63a 6867
5005acfe 6868 enablestring=
e6cc62c6
VS
6869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6870echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6871 no_cache=0
6872 # Check whether --enable-calendar or --disable-calendar was given.
6873if test "${enable_calendar+set}" = set; then
6874 enableval="$enable_calendar"
e6cc62c6 6875
1e6feb95
VZ
6876 if test "$enableval" = yes; then
6877 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6878 else
6879 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6880 fi
e6cc62c6 6881
1e6feb95 6882else
e6cc62c6 6883
1e6feb95
VZ
6884 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6885 if test "x$LINE" != x ; then
6886 eval "DEFAULT_$LINE"
6887 else
6888 no_cache=1
6889 fi
6890
6891 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6892
e6cc62c6 6893fi;
1e6feb95
VZ
6894
6895 eval "$ac_cv_use_calendar"
6896 if test "$no_cache" != 1; then
6897 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6898 fi
6899
6900 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6901 echo "$as_me:$LINENO: result: yes" >&5
6902echo "${ECHO_T}yes" >&6
1e6feb95 6903 else
e6cc62c6
VS
6904 echo "$as_me:$LINENO: result: no" >&5
6905echo "${ECHO_T}no" >&6
1e6feb95 6906 fi
e6cc62c6 6907
1e6feb95 6908
5005acfe 6909 enablestring=
e6cc62c6
VS
6910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6911echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6912 no_cache=0
6913 # Check whether --enable-caret or --disable-caret was given.
6914if test "${enable_caret+set}" = set; then
6915 enableval="$enable_caret"
e6cc62c6 6916
1e6feb95
VZ
6917 if test "$enableval" = yes; then
6918 ac_cv_use_caret='wxUSE_CARET=yes'
6919 else
6920 ac_cv_use_caret='wxUSE_CARET=no'
6921 fi
e6cc62c6 6922
1e6feb95 6923else
e6cc62c6 6924
1e6feb95
VZ
6925 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6926 if test "x$LINE" != x ; then
6927 eval "DEFAULT_$LINE"
6928 else
6929 no_cache=1
6930 fi
6931
6932 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6933
e6cc62c6 6934fi;
1e6feb95
VZ
6935
6936 eval "$ac_cv_use_caret"
6937 if test "$no_cache" != 1; then
6938 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6939 fi
6940
6941 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6942 echo "$as_me:$LINENO: result: yes" >&5
6943echo "${ECHO_T}yes" >&6
1e6feb95 6944 else
e6cc62c6
VS
6945 echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6
1e6feb95 6947 fi
e6cc62c6 6948
1e6feb95 6949
5005acfe 6950 enablestring=
e6cc62c6
VS
6951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6952echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6953 no_cache=0
6954 # Check whether --enable-checkbox or --disable-checkbox was given.
6955if test "${enable_checkbox+set}" = set; then
6956 enableval="$enable_checkbox"
e6cc62c6 6957
10f2d63a
VZ
6958 if test "$enableval" = yes; then
6959 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6960 else
6961 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6962 fi
e6cc62c6 6963
10f2d63a 6964else
e6cc62c6 6965
10f2d63a
VZ
6966 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6967 if test "x$LINE" != x ; then
6968 eval "DEFAULT_$LINE"
6969 else
6970 no_cache=1
6971 fi
6972
6973 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6974
e6cc62c6 6975fi;
10f2d63a
VZ
6976
6977 eval "$ac_cv_use_checkbox"
6978 if test "$no_cache" != 1; then
6979 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6980 fi
6981
6982 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6983 echo "$as_me:$LINENO: result: yes" >&5
6984echo "${ECHO_T}yes" >&6
10f2d63a 6985 else
e6cc62c6
VS
6986 echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6
10f2d63a 6988 fi
e6cc62c6 6989
10f2d63a 6990
5005acfe 6991 enablestring=
e6cc62c6
VS
6992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6993echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6994 no_cache=0
6995 # Check whether --enable-checklst or --disable-checklst was given.
6996if test "${enable_checklst+set}" = set; then
6997 enableval="$enable_checklst"
e6cc62c6 6998
10f2d63a
VZ
6999 if test "$enableval" = yes; then
7000 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7001 else
7002 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7003 fi
e6cc62c6 7004
10f2d63a 7005else
e6cc62c6 7006
10f2d63a
VZ
7007 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7008 if test "x$LINE" != x ; then
7009 eval "DEFAULT_$LINE"
7010 else
7011 no_cache=1
7012 fi
7013
7014 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7015
e6cc62c6 7016fi;
10f2d63a
VZ
7017
7018 eval "$ac_cv_use_checklst"
7019 if test "$no_cache" != 1; then
7020 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7021 fi
7022
7023 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7024 echo "$as_me:$LINENO: result: yes" >&5
7025echo "${ECHO_T}yes" >&6
10f2d63a 7026 else
e6cc62c6
VS
7027 echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6
10f2d63a 7029 fi
e6cc62c6 7030
10f2d63a 7031
5005acfe 7032 enablestring=
e6cc62c6
VS
7033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7034echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7035 no_cache=0
7036 # Check whether --enable-choice or --disable-choice was given.
7037if test "${enable_choice+set}" = set; then
7038 enableval="$enable_choice"
e6cc62c6 7039
10f2d63a
VZ
7040 if test "$enableval" = yes; then
7041 ac_cv_use_choice='wxUSE_CHOICE=yes'
7042 else
7043 ac_cv_use_choice='wxUSE_CHOICE=no'
7044 fi
e6cc62c6 7045
10f2d63a 7046else
e6cc62c6 7047
10f2d63a
VZ
7048 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7049 if test "x$LINE" != x ; then
7050 eval "DEFAULT_$LINE"
7051 else
7052 no_cache=1
7053 fi
7054
7055 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7056
e6cc62c6 7057fi;
10f2d63a
VZ
7058
7059 eval "$ac_cv_use_choice"
7060 if test "$no_cache" != 1; then
7061 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7062 fi
7063
7064 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7065 echo "$as_me:$LINENO: result: yes" >&5
7066echo "${ECHO_T}yes" >&6
10f2d63a 7067 else
e6cc62c6
VS
7068 echo "$as_me:$LINENO: result: no" >&5
7069echo "${ECHO_T}no" >&6
10f2d63a 7070 fi
e6cc62c6 7071
10f2d63a 7072
5005acfe 7073 enablestring=
e6cc62c6
VS
7074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7075echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7076 no_cache=0
7077 # Check whether --enable-combobox or --disable-combobox was given.
7078if test "${enable_combobox+set}" = set; then
7079 enableval="$enable_combobox"
e6cc62c6 7080
10f2d63a
VZ
7081 if test "$enableval" = yes; then
7082 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7083 else
7084 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7085 fi
e6cc62c6 7086
10f2d63a 7087else
e6cc62c6 7088
10f2d63a
VZ
7089 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7090 if test "x$LINE" != x ; then
7091 eval "DEFAULT_$LINE"
7092 else
7093 no_cache=1
7094 fi
7095
7096 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7097
e6cc62c6 7098fi;
10f2d63a
VZ
7099
7100 eval "$ac_cv_use_combobox"
7101 if test "$no_cache" != 1; then
7102 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7103 fi
7104
7105 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7106 echo "$as_me:$LINENO: result: yes" >&5
7107echo "${ECHO_T}yes" >&6
10f2d63a 7108 else
e6cc62c6
VS
7109 echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6
10f2d63a 7111 fi
e6cc62c6 7112
10f2d63a 7113
da494b40 7114 enablestring=
e6cc62c6
VS
7115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7116echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7117 no_cache=0
7118 # Check whether --enable-display or --disable-display was given.
7119if test "${enable_display+set}" = set; then
7120 enableval="$enable_display"
e6cc62c6 7121
da494b40
MB
7122 if test "$enableval" = yes; then
7123 ac_cv_use_display='wxUSE_DISPLAY=yes'
7124 else
7125 ac_cv_use_display='wxUSE_DISPLAY=no'
7126 fi
e6cc62c6 7127
da494b40 7128else
e6cc62c6 7129
da494b40
MB
7130 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7131 if test "x$LINE" != x ; then
7132 eval "DEFAULT_$LINE"
7133 else
7134 no_cache=1
7135 fi
7136
7137 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7138
e6cc62c6 7139fi;
da494b40
MB
7140
7141 eval "$ac_cv_use_display"
7142 if test "$no_cache" != 1; then
7143 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7144 fi
7145
7146 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7147 echo "$as_me:$LINENO: result: yes" >&5
7148echo "${ECHO_T}yes" >&6
da494b40 7149 else
e6cc62c6
VS
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
da494b40 7152 fi
e6cc62c6 7153
da494b40 7154
5005acfe 7155 enablestring=
e6cc62c6
VS
7156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7157echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7158 no_cache=0
7159 # Check whether --enable-gauge or --disable-gauge was given.
7160if test "${enable_gauge+set}" = set; then
7161 enableval="$enable_gauge"
e6cc62c6 7162
10f2d63a
VZ
7163 if test "$enableval" = yes; then
7164 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7165 else
7166 ac_cv_use_gauge='wxUSE_GAUGE=no'
7167 fi
e6cc62c6 7168
10f2d63a 7169else
e6cc62c6 7170
10f2d63a
VZ
7171 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7172 if test "x$LINE" != x ; then
7173 eval "DEFAULT_$LINE"
7174 else
7175 no_cache=1
7176 fi
7177
7178 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7179
e6cc62c6 7180fi;
10f2d63a
VZ
7181
7182 eval "$ac_cv_use_gauge"
7183 if test "$no_cache" != 1; then
7184 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7185 fi
7186
7187 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7188 echo "$as_me:$LINENO: result: yes" >&5
7189echo "${ECHO_T}yes" >&6
10f2d63a 7190 else
e6cc62c6
VS
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
10f2d63a 7193 fi
e6cc62c6 7194
10f2d63a 7195
5005acfe 7196 enablestring=
e6cc62c6
VS
7197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7198echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7199 no_cache=0
7200 # Check whether --enable-grid or --disable-grid was given.
7201if test "${enable_grid+set}" = set; then
7202 enableval="$enable_grid"
e6cc62c6 7203
10f2d63a
VZ
7204 if test "$enableval" = yes; then
7205 ac_cv_use_grid='wxUSE_GRID=yes'
7206 else
7207 ac_cv_use_grid='wxUSE_GRID=no'
7208 fi
e6cc62c6 7209
10f2d63a 7210else
e6cc62c6 7211
10f2d63a
VZ
7212 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7220
e6cc62c6 7221fi;
10f2d63a
VZ
7222
7223 eval "$ac_cv_use_grid"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7229 echo "$as_me:$LINENO: result: yes" >&5
7230echo "${ECHO_T}yes" >&6
10f2d63a 7231 else
e6cc62c6
VS
7232 echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
10f2d63a 7234 fi
e6cc62c6 7235
10f2d63a 7236
5005acfe 7237 enablestring=
e6cc62c6
VS
7238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7239echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7240 no_cache=0
7241 # Check whether --enable-imaglist or --disable-imaglist was given.
7242if test "${enable_imaglist+set}" = set; then
7243 enableval="$enable_imaglist"
e6cc62c6 7244
10f2d63a
VZ
7245 if test "$enableval" = yes; then
7246 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7247 else
7248 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7249 fi
e6cc62c6 7250
10f2d63a 7251else
e6cc62c6 7252
10f2d63a
VZ
7253 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7254 if test "x$LINE" != x ; then
7255 eval "DEFAULT_$LINE"
7256 else
7257 no_cache=1
7258 fi
7259
7260 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7261
e6cc62c6 7262fi;
10f2d63a
VZ
7263
7264 eval "$ac_cv_use_imaglist"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7270 echo "$as_me:$LINENO: result: yes" >&5
7271echo "${ECHO_T}yes" >&6
10f2d63a 7272 else
e6cc62c6
VS
7273 echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6
10f2d63a 7275 fi
e6cc62c6 7276
10f2d63a 7277
0e012a93
VZ
7278 enablestring=
7279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7280echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7281 no_cache=0
7282 # Check whether --enable-listbook or --disable-listbook was given.
7283if test "${enable_listbook+set}" = set; then
7284 enableval="$enable_listbook"
7285
7286 if test "$enableval" = yes; then
7287 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7288 else
7289 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7290 fi
7291
7292else
7293
7294 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7302
7303fi;
7304
7305 eval "$ac_cv_use_listbook"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_LISTBOOK" = yes; then
7311 echo "$as_me:$LINENO: result: yes" >&5
7312echo "${ECHO_T}yes" >&6
7313 else
7314 echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
7316 fi
7317
7318
5005acfe 7319 enablestring=
e6cc62c6
VS
7320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7321echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7322 no_cache=0
7323 # Check whether --enable-listbox or --disable-listbox was given.
7324if test "${enable_listbox+set}" = set; then
7325 enableval="$enable_listbox"
e6cc62c6 7326
10f2d63a
VZ
7327 if test "$enableval" = yes; then
7328 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7329 else
7330 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7331 fi
e6cc62c6 7332
10f2d63a 7333else
e6cc62c6 7334
10f2d63a
VZ
7335 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7343
e6cc62c6 7344fi;
10f2d63a
VZ
7345
7346 eval "$ac_cv_use_listbox"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7352 echo "$as_me:$LINENO: result: yes" >&5
7353echo "${ECHO_T}yes" >&6
10f2d63a 7354 else
e6cc62c6
VS
7355 echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
10f2d63a 7357 fi
e6cc62c6 7358
10f2d63a 7359
5005acfe 7360 enablestring=
e6cc62c6
VS
7361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7362echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7363 no_cache=0
7364 # Check whether --enable-listctrl or --disable-listctrl was given.
7365if test "${enable_listctrl+set}" = set; then
7366 enableval="$enable_listctrl"
e6cc62c6 7367
10f2d63a
VZ
7368 if test "$enableval" = yes; then
7369 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7370 else
7371 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7372 fi
e6cc62c6 7373
10f2d63a 7374else
e6cc62c6 7375
10f2d63a
VZ
7376 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7384
e6cc62c6 7385fi;
10f2d63a
VZ
7386
7387 eval "$ac_cv_use_listctrl"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
10f2d63a 7395 else
e6cc62c6
VS
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
10f2d63a 7398 fi
e6cc62c6 7399
10f2d63a 7400
5005acfe 7401 enablestring=
e6cc62c6
VS
7402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7403echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7404 no_cache=0
7405 # Check whether --enable-notebook or --disable-notebook was given.
7406if test "${enable_notebook+set}" = set; then
7407 enableval="$enable_notebook"
e6cc62c6 7408
10f2d63a
VZ
7409 if test "$enableval" = yes; then
7410 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7411 else
7412 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7413 fi
e6cc62c6 7414
10f2d63a 7415else
e6cc62c6 7416
10f2d63a
VZ
7417 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7425
e6cc62c6 7426fi;
10f2d63a
VZ
7427
7428 eval "$ac_cv_use_notebook"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7434 echo "$as_me:$LINENO: result: yes" >&5
7435echo "${ECHO_T}yes" >&6
10f2d63a 7436 else
e6cc62c6
VS
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
10f2d63a 7439 fi
e6cc62c6 7440
10f2d63a 7441
5005acfe 7442 enablestring=
e6cc62c6
VS
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7445 no_cache=0
7446 # Check whether --enable-radiobox or --disable-radiobox was given.
7447if test "${enable_radiobox+set}" = set; then
7448 enableval="$enable_radiobox"
e6cc62c6 7449
10f2d63a
VZ
7450 if test "$enableval" = yes; then
7451 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7452 else
7453 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7454 fi
e6cc62c6 7455
10f2d63a 7456else
e6cc62c6 7457
10f2d63a
VZ
7458 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7466
e6cc62c6 7467fi;
10f2d63a
VZ
7468
7469 eval "$ac_cv_use_radiobox"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
10f2d63a 7477 else
e6cc62c6
VS
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
10f2d63a 7480 fi
e6cc62c6 7481
10f2d63a 7482
5005acfe 7483 enablestring=
e6cc62c6
VS
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7486 no_cache=0
7487 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7488if test "${enable_radiobtn+set}" = set; then
7489 enableval="$enable_radiobtn"
e6cc62c6 7490
10f2d63a
VZ
7491 if test "$enableval" = yes; then
7492 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7493 else
7494 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7495 fi
e6cc62c6 7496
10f2d63a 7497else
e6cc62c6 7498
10f2d63a
VZ
7499 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7507
e6cc62c6 7508fi;
10f2d63a
VZ
7509
7510 eval "$ac_cv_use_radiobtn"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
10f2d63a 7518 else
e6cc62c6
VS
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
10f2d63a 7521 fi
e6cc62c6 7522
10f2d63a 7523
5005acfe 7524 enablestring=
e6cc62c6
VS
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7527 no_cache=0
7528 # Check whether --enable-sash or --disable-sash was given.
7529if test "${enable_sash+set}" = set; then
7530 enableval="$enable_sash"
e6cc62c6 7531
10f2d63a
VZ
7532 if test "$enableval" = yes; then
7533 ac_cv_use_sash='wxUSE_SASH=yes'
7534 else
7535 ac_cv_use_sash='wxUSE_SASH=no'
7536 fi
e6cc62c6 7537
10f2d63a 7538else
e6cc62c6 7539
10f2d63a
VZ
7540 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7548
e6cc62c6 7549fi;
10f2d63a
VZ
7550
7551 eval "$ac_cv_use_sash"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
10f2d63a 7559 else
e6cc62c6
VS
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
10f2d63a 7562 fi
e6cc62c6 7563
10f2d63a 7564
5005acfe 7565 enablestring=
e6cc62c6
VS
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7568 no_cache=0
7569 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7570if test "${enable_scrollbar+set}" = set; then
7571 enableval="$enable_scrollbar"
e6cc62c6 7572
10f2d63a
VZ
7573 if test "$enableval" = yes; then
7574 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7575 else
7576 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7577 fi
e6cc62c6 7578
10f2d63a 7579else
e6cc62c6 7580
10f2d63a
VZ
7581 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7589
e6cc62c6 7590fi;
10f2d63a
VZ
7591
7592 eval "$ac_cv_use_scrollbar"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
10f2d63a 7600 else
e6cc62c6
VS
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
10f2d63a 7603 fi
e6cc62c6 7604
10f2d63a 7605
5005acfe 7606 enablestring=
e6cc62c6
VS
7607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7608echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7609 no_cache=0
7610 # Check whether --enable-slider or --disable-slider was given.
7611if test "${enable_slider+set}" = set; then
7612 enableval="$enable_slider"
e6cc62c6 7613
10f2d63a
VZ
7614 if test "$enableval" = yes; then
7615 ac_cv_use_slider='wxUSE_SLIDER=yes'
7616 else
7617 ac_cv_use_slider='wxUSE_SLIDER=no'
7618 fi
e6cc62c6 7619
10f2d63a 7620else
e6cc62c6 7621
10f2d63a
VZ
7622 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7630
e6cc62c6 7631fi;
10f2d63a
VZ
7632
7633 eval "$ac_cv_use_slider"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7639 echo "$as_me:$LINENO: result: yes" >&5
7640echo "${ECHO_T}yes" >&6
10f2d63a 7641 else
e6cc62c6
VS
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
10f2d63a 7644 fi
e6cc62c6 7645
10f2d63a 7646
5005acfe 7647 enablestring=
e6cc62c6
VS
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7650 no_cache=0
7651 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7652if test "${enable_spinbtn+set}" = set; then
7653 enableval="$enable_spinbtn"
e6cc62c6 7654
10f2d63a
VZ
7655 if test "$enableval" = yes; then
7656 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7657 else
7658 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7659 fi
e6cc62c6 7660
10f2d63a 7661else
e6cc62c6 7662
10f2d63a
VZ
7663 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7671
e6cc62c6 7672fi;
10f2d63a
VZ
7673
7674 eval "$ac_cv_use_spinbtn"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
10f2d63a 7682 else
e6cc62c6
VS
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
10f2d63a 7685 fi
e6cc62c6 7686
10f2d63a 7687
5005acfe 7688 enablestring=
e6cc62c6
VS
7689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7690echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7691 no_cache=0
7692 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7693if test "${enable_spinctrl+set}" = set; then
7694 enableval="$enable_spinctrl"
e6cc62c6 7695
56cfaa52
RR
7696 if test "$enableval" = yes; then
7697 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7698 else
7699 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7700 fi
e6cc62c6 7701
56cfaa52 7702else
e6cc62c6 7703
56cfaa52
RR
7704 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7705 if test "x$LINE" != x ; then
7706 eval "DEFAULT_$LINE"
7707 else
7708 no_cache=1
7709 fi
7710
7711 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7712
e6cc62c6 7713fi;
56cfaa52
RR
7714
7715 eval "$ac_cv_use_spinctrl"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7721 echo "$as_me:$LINENO: result: yes" >&5
7722echo "${ECHO_T}yes" >&6
56cfaa52 7723 else
e6cc62c6
VS
7724 echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
56cfaa52 7726 fi
e6cc62c6 7727
56cfaa52 7728
5005acfe 7729 enablestring=
e6cc62c6
VS
7730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7731echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7732 no_cache=0
7733 # Check whether --enable-splitter or --disable-splitter was given.
7734if test "${enable_splitter+set}" = set; then
7735 enableval="$enable_splitter"
e6cc62c6 7736
10f2d63a
VZ
7737 if test "$enableval" = yes; then
7738 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7739 else
7740 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7741 fi
e6cc62c6 7742
10f2d63a 7743else
e6cc62c6 7744
10f2d63a
VZ
7745 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7746 if test "x$LINE" != x ; then
7747 eval "DEFAULT_$LINE"
7748 else
7749 no_cache=1
7750 fi
7751
7752 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7753
e6cc62c6 7754fi;
10f2d63a
VZ
7755
7756 eval "$ac_cv_use_splitter"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7762 echo "$as_me:$LINENO: result: yes" >&5
7763echo "${ECHO_T}yes" >&6
10f2d63a 7764 else
e6cc62c6
VS
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
10f2d63a 7767 fi
e6cc62c6 7768
10f2d63a 7769
5005acfe 7770 enablestring=
e6cc62c6
VS
7771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7772echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7773 no_cache=0
7774 # Check whether --enable-statbmp or --disable-statbmp was given.
7775if test "${enable_statbmp+set}" = set; then
7776 enableval="$enable_statbmp"
e6cc62c6 7777
10f2d63a
VZ
7778 if test "$enableval" = yes; then
7779 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7780 else
7781 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7782 fi
e6cc62c6 7783
10f2d63a 7784else
e6cc62c6 7785
10f2d63a
VZ
7786 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7794
e6cc62c6 7795fi;
10f2d63a
VZ
7796
7797 eval "$ac_cv_use_statbmp"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7803 echo "$as_me:$LINENO: result: yes" >&5
7804echo "${ECHO_T}yes" >&6
10f2d63a 7805 else
e6cc62c6
VS
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
10f2d63a 7808 fi
e6cc62c6 7809
10f2d63a 7810
5005acfe 7811 enablestring=
e6cc62c6
VS
7812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7813echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7814 no_cache=0
7815 # Check whether --enable-statbox or --disable-statbox was given.
7816if test "${enable_statbox+set}" = set; then
7817 enableval="$enable_statbox"
e6cc62c6 7818
10f2d63a
VZ
7819 if test "$enableval" = yes; then
7820 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7821 else
7822 ac_cv_use_statbox='wxUSE_STATBOX=no'
7823 fi
e6cc62c6 7824
10f2d63a 7825else
e6cc62c6 7826
10f2d63a
VZ
7827 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7835
e6cc62c6 7836fi;
10f2d63a
VZ
7837
7838 eval "$ac_cv_use_statbox"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
10f2d63a 7846 else
e6cc62c6
VS
7847 echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
10f2d63a 7849 fi
e6cc62c6 7850
10f2d63a 7851
5005acfe 7852 enablestring=
e6cc62c6
VS
7853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7854echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7855 no_cache=0
7856 # Check whether --enable-statline or --disable-statline was given.
7857if test "${enable_statline+set}" = set; then
7858 enableval="$enable_statline"
e6cc62c6 7859
10f2d63a
VZ
7860 if test "$enableval" = yes; then
7861 ac_cv_use_statline='wxUSE_STATLINE=yes'
7862 else
7863 ac_cv_use_statline='wxUSE_STATLINE=no'
7864 fi
e6cc62c6 7865
10f2d63a 7866else
e6cc62c6 7867
10f2d63a
VZ
7868 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7876
e6cc62c6 7877fi;
10f2d63a
VZ
7878
7879 eval "$ac_cv_use_statline"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7885 echo "$as_me:$LINENO: result: yes" >&5
7886echo "${ECHO_T}yes" >&6
10f2d63a 7887 else
e6cc62c6
VS
7888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
10f2d63a 7890 fi
e6cc62c6 7891
10f2d63a 7892
5005acfe 7893 enablestring=
e6cc62c6
VS
7894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7895echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7896 no_cache=0
7897 # Check whether --enable-stattext or --disable-stattext was given.
7898if test "${enable_stattext+set}" = set; then
7899 enableval="$enable_stattext"
e6cc62c6 7900
1e6feb95
VZ
7901 if test "$enableval" = yes; then
7902 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7903 else
7904 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7905 fi
e6cc62c6 7906
1e6feb95 7907else
e6cc62c6 7908
1e6feb95
VZ
7909 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
7916 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7917
e6cc62c6 7918fi;
1e6feb95
VZ
7919
7920 eval "$ac_cv_use_stattext"
7921 if test "$no_cache" != 1; then
7922 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7923 fi
7924
7925 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7926 echo "$as_me:$LINENO: result: yes" >&5
7927echo "${ECHO_T}yes" >&6
1e6feb95 7928 else
e6cc62c6
VS
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
1e6feb95 7931 fi
e6cc62c6 7932
1e6feb95 7933
5005acfe 7934 enablestring=
e6cc62c6
VS
7935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7936echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7937 no_cache=0
7938 # Check whether --enable-statusbar or --disable-statusbar was given.
7939if test "${enable_statusbar+set}" = set; then
7940 enableval="$enable_statusbar"
e6cc62c6 7941
10f2d63a
VZ
7942 if test "$enableval" = yes; then
7943 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7944 else
7945 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7946 fi
e6cc62c6 7947
10f2d63a 7948else
e6cc62c6 7949
10f2d63a
VZ
7950 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7958
e6cc62c6 7959fi;
10f2d63a
VZ
7960
7961 eval "$ac_cv_use_statusbar"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7967 echo "$as_me:$LINENO: result: yes" >&5
7968echo "${ECHO_T}yes" >&6
10f2d63a 7969 else
e6cc62c6
VS
7970 echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
10f2d63a 7972 fi
e6cc62c6 7973
10f2d63a 7974
5005acfe 7975 enablestring=
e6cc62c6
VS
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7978 no_cache=0
7979 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7980if test "${enable_tabdialog+set}" = set; then
7981 enableval="$enable_tabdialog"
e6cc62c6 7982
10f2d63a
VZ
7983 if test "$enableval" = yes; then
7984 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7985 else
7986 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7987 fi
e6cc62c6 7988
10f2d63a 7989else
e6cc62c6 7990
10f2d63a
VZ
7991 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7999
e6cc62c6 8000fi;
10f2d63a
VZ
8001
8002 eval "$ac_cv_use_tabdialog"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
10f2d63a 8010 else
e6cc62c6
VS
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
10f2d63a 8013 fi
e6cc62c6 8014
10f2d63a 8015
5005acfe 8016 enablestring=
e6cc62c6
VS
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8019 no_cache=0
8020 # Check whether --enable-textctrl or --disable-textctrl was given.
8021if test "${enable_textctrl+set}" = set; then
8022 enableval="$enable_textctrl"
e6cc62c6 8023
1e6feb95
VZ
8024 if test "$enableval" = yes; then
8025 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8026 else
8027 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8028 fi
e6cc62c6 8029
1e6feb95 8030else
e6cc62c6 8031
1e6feb95
VZ
8032 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8040
e6cc62c6 8041fi;
1e6feb95
VZ
8042
8043 eval "$ac_cv_use_textctrl"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
1e6feb95 8051 else
e6cc62c6
VS
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
1e6feb95 8054 fi
e6cc62c6 8055
1e6feb95 8056
5005acfe 8057 enablestring=
e6cc62c6
VS
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8060 no_cache=0
8061 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8062if test "${enable_togglebtn+set}" = set; then
8063 enableval="$enable_togglebtn"
e6cc62c6 8064
1db8dc4a
VZ
8065 if test "$enableval" = yes; then
8066 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8067 else
8068 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8069 fi
e6cc62c6 8070
1db8dc4a 8071else
e6cc62c6 8072
1db8dc4a
VZ
8073 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8081
e6cc62c6 8082fi;
1db8dc4a
VZ
8083
8084 eval "$ac_cv_use_togglebtn"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
1db8dc4a 8092 else
e6cc62c6
VS
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
1db8dc4a 8095 fi
e6cc62c6 8096
1db8dc4a 8097
5005acfe 8098 enablestring=
e6cc62c6
VS
8099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8100echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8101 no_cache=0
8102 # Check whether --enable-toolbar or --disable-toolbar was given.
8103if test "${enable_toolbar+set}" = set; then
8104 enableval="$enable_toolbar"
e6cc62c6 8105
10f2d63a
VZ
8106 if test "$enableval" = yes; then
8107 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8108 else
8109 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8110 fi
e6cc62c6 8111
10f2d63a 8112else
e6cc62c6 8113
10f2d63a
VZ
8114 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8122
e6cc62c6 8123fi;
10f2d63a
VZ
8124
8125 eval "$ac_cv_use_toolbar"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
10f2d63a 8133 else
e6cc62c6
VS
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
10f2d63a 8136 fi
e6cc62c6 8137
10f2d63a 8138
5005acfe 8139 enablestring=
e6cc62c6
VS
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8142 no_cache=0
8143 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8144if test "${enable_tbarnative+set}" = set; then
8145 enableval="$enable_tbarnative"
e6cc62c6 8146
360d6699
VZ
8147 if test "$enableval" = yes; then
8148 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8149 else
8150 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8151 fi
e6cc62c6 8152
360d6699 8153else
e6cc62c6 8154
360d6699
VZ
8155 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8163
e6cc62c6 8164fi;
360d6699
VZ
8165
8166 eval "$ac_cv_use_tbarnative"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
360d6699 8174 else
e6cc62c6
VS
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
360d6699 8177 fi
e6cc62c6 8178
360d6699 8179
5005acfe 8180 enablestring=
e6cc62c6
VS
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8183 no_cache=0
8184 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8185if test "${enable_tbarsmpl+set}" = set; then
8186 enableval="$enable_tbarsmpl"
e6cc62c6 8187
360d6699
VZ
8188 if test "$enableval" = yes; then
8189 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8190 else
8191 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8192 fi
e6cc62c6 8193
360d6699 8194else
e6cc62c6 8195
360d6699
VZ
8196 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8204
e6cc62c6 8205fi;
360d6699
VZ
8206
8207 eval "$ac_cv_use_tbarsmpl"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
360d6699 8215 else
e6cc62c6
VS
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
360d6699 8218 fi
e6cc62c6 8219
360d6699 8220
5005acfe 8221 enablestring=
e6cc62c6
VS
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8224 no_cache=0
8225 # Check whether --enable-treectrl or --disable-treectrl was given.
8226if test "${enable_treectrl+set}" = set; then
8227 enableval="$enable_treectrl"
e6cc62c6 8228
10f2d63a
VZ
8229 if test "$enableval" = yes; then
8230 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8231 else
8232 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8233 fi
e6cc62c6 8234
10f2d63a 8235else
e6cc62c6 8236
10f2d63a
VZ
8237 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8245
e6cc62c6 8246fi;
10f2d63a 8247
1e6feb95
VZ
8248 eval "$ac_cv_use_treectrl"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
1e6feb95 8256 else
e6cc62c6
VS
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
1e6feb95 8259 fi
e6cc62c6 8260
1e6feb95 8261
5005acfe 8262 enablestring=
e6cc62c6
VS
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8265 no_cache=0
8266 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8267if test "${enable_tipwindow+set}" = set; then
8268 enableval="$enable_tipwindow"
e6cc62c6 8269
9926e4a4
VZ
8270 if test "$enableval" = yes; then
8271 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8272 else
8273 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8274 fi
e6cc62c6 8275
9926e4a4 8276else
e6cc62c6 8277
9926e4a4
VZ
8278 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8286
e6cc62c6 8287fi;
9926e4a4
VZ
8288
8289 eval "$ac_cv_use_tipwindow"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
9926e4a4 8297 else
e6cc62c6
VS
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
9926e4a4 8300 fi
e6cc62c6 8301
9926e4a4 8302
5005acfe 8303 enablestring=
e6cc62c6
VS
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8306 no_cache=0
8307 # Check whether --enable-popupwin or --disable-popupwin was given.
8308if test "${enable_popupwin+set}" = set; then
8309 enableval="$enable_popupwin"
e6cc62c6 8310
9f41d601
RR
8311 if test "$enableval" = yes; then
8312 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8313 else
8314 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8315 fi
e6cc62c6 8316
9f41d601 8317else
e6cc62c6 8318
9f41d601
RR
8319 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8327
e6cc62c6 8328fi;
9f41d601
RR
8329
8330 eval "$ac_cv_use_popupwin"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
9f41d601 8338 else
e6cc62c6
VS
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
9f41d601 8341 fi
e6cc62c6 8342
52127426 8343
8284b0c5
MB
8344
8345
5005acfe 8346 enablestring=
e6cc62c6
VS
8347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8348echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8349 no_cache=0
8350 # Check whether --enable-commondlg or --disable-commondlg was given.
8351if test "${enable_commondlg+set}" = set; then
8352 enableval="$enable_commondlg"
e6cc62c6 8353
1e6feb95
VZ
8354 if test "$enableval" = yes; then
8355 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8356 else
8357 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8358 fi
e6cc62c6 8359
1e6feb95 8360else
e6cc62c6 8361
1e6feb95
VZ
8362 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8363 if test "x$LINE" != x ; then
8364 eval "DEFAULT_$LINE"
8365 else
8366 no_cache=1
8367 fi
8368
8369 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8370
e6cc62c6 8371fi;
1e6feb95
VZ
8372
8373 eval "$ac_cv_use_commondlg"
8374 if test "$no_cache" != 1; then
8375 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8376 fi
8377
8378 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8379 echo "$as_me:$LINENO: result: yes" >&5
8380echo "${ECHO_T}yes" >&6
1e6feb95 8381 else
e6cc62c6
VS
8382 echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6
1e6feb95 8384 fi
e6cc62c6 8385
1e6feb95 8386
5005acfe 8387 enablestring=
e6cc62c6
VS
8388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8389echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8390 no_cache=0
8391 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8392if test "${enable_choicedlg+set}" = set; then
8393 enableval="$enable_choicedlg"
e6cc62c6 8394
1e6feb95
VZ
8395 if test "$enableval" = yes; then
8396 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8397 else
8398 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8399 fi
e6cc62c6 8400
1e6feb95 8401else
e6cc62c6 8402
1e6feb95
VZ
8403 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8404 if test "x$LINE" != x ; then
8405 eval "DEFAULT_$LINE"
8406 else
8407 no_cache=1
8408 fi
8409
8410 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8411
e6cc62c6 8412fi;
1e6feb95
VZ
8413
8414 eval "$ac_cv_use_choicedlg"
8415 if test "$no_cache" != 1; then
8416 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8417 fi
8418
8419 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8420 echo "$as_me:$LINENO: result: yes" >&5
8421echo "${ECHO_T}yes" >&6
1e6feb95 8422 else
e6cc62c6
VS
8423 echo "$as_me:$LINENO: result: no" >&5
8424echo "${ECHO_T}no" >&6
1e6feb95 8425 fi
e6cc62c6 8426
1e6feb95 8427
5005acfe 8428 enablestring=
e6cc62c6
VS
8429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8430echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8431 no_cache=0
8432 # Check whether --enable-coldlg or --disable-coldlg was given.
8433if test "${enable_coldlg+set}" = set; then
8434 enableval="$enable_coldlg"
e6cc62c6 8435
1e6feb95
VZ
8436 if test "$enableval" = yes; then
8437 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8438 else
8439 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8440 fi
e6cc62c6 8441
1e6feb95 8442else
e6cc62c6 8443
1e6feb95
VZ
8444 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8445 if test "x$LINE" != x ; then
8446 eval "DEFAULT_$LINE"
8447 else
8448 no_cache=1
8449 fi
8450
8451 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8452
e6cc62c6 8453fi;
1e6feb95
VZ
8454
8455 eval "$ac_cv_use_coldlg"
8456 if test "$no_cache" != 1; then
8457 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8458 fi
8459
8460 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8461 echo "$as_me:$LINENO: result: yes" >&5
8462echo "${ECHO_T}yes" >&6
1e6feb95 8463 else
e6cc62c6
VS
8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
1e6feb95 8466 fi
e6cc62c6 8467
1e6feb95 8468
5005acfe 8469 enablestring=
e6cc62c6
VS
8470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8471echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8472 no_cache=0
8473 # Check whether --enable-filedlg or --disable-filedlg was given.
8474if test "${enable_filedlg+set}" = set; then
8475 enableval="$enable_filedlg"
e6cc62c6 8476
1e6feb95
VZ
8477 if test "$enableval" = yes; then
8478 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8479 else
8480 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8481 fi
e6cc62c6 8482
1e6feb95 8483else
e6cc62c6 8484
1e6feb95
VZ
8485 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8486 if test "x$LINE" != x ; then
8487 eval "DEFAULT_$LINE"
8488 else
8489 no_cache=1
8490 fi
8491
8492 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8493
e6cc62c6 8494fi;
1e6feb95
VZ
8495
8496 eval "$ac_cv_use_filedlg"
8497 if test "$no_cache" != 1; then
8498 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8499 fi
8500
8501 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8502 echo "$as_me:$LINENO: result: yes" >&5
8503echo "${ECHO_T}yes" >&6
1e6feb95 8504 else
e6cc62c6
VS
8505 echo "$as_me:$LINENO: result: no" >&5
8506echo "${ECHO_T}no" >&6
1e6feb95 8507 fi
e6cc62c6 8508
1e6feb95 8509
5005acfe 8510 enablestring=
e6cc62c6
VS
8511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8512echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8513 no_cache=0
69d27ff7
MB
8514 # Check whether --enable-finddlg or --disable-finddlg was given.
8515if test "${enable_finddlg+set}" = set; then
8516 enableval="$enable_finddlg"
e6cc62c6 8517
8db37e06 8518 if test "$enableval" = yes; then
69d27ff7 8519 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8520 else
69d27ff7 8521 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8522 fi
e6cc62c6 8523
8db37e06 8524else
e6cc62c6 8525
8db37e06
VZ
8526 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8527 if test "x$LINE" != x ; then
8528 eval "DEFAULT_$LINE"
8529 else
8530 no_cache=1
8531 fi
8532
69d27ff7 8533 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8534
e6cc62c6 8535fi;
8db37e06 8536
69d27ff7 8537 eval "$ac_cv_use_finddlg"
8db37e06 8538 if test "$no_cache" != 1; then
69d27ff7 8539 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8540 fi
8541
8542 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8543 echo "$as_me:$LINENO: result: yes" >&5
8544echo "${ECHO_T}yes" >&6
8db37e06 8545 else
e6cc62c6
VS
8546 echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6
8db37e06 8548 fi
e6cc62c6 8549
8db37e06 8550
5005acfe 8551 enablestring=
e6cc62c6
VS
8552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8553echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8554 no_cache=0
8555 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8556if test "${enable_fontdlg+set}" = set; then
8557 enableval="$enable_fontdlg"
e6cc62c6 8558
1e6feb95
VZ
8559 if test "$enableval" = yes; then
8560 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8561 else
8562 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8563 fi
e6cc62c6 8564
1e6feb95 8565else
e6cc62c6 8566
1e6feb95
VZ
8567 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8568 if test "x$LINE" != x ; then
8569 eval "DEFAULT_$LINE"
8570 else
8571 no_cache=1
8572 fi
8573
8574 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8575
e6cc62c6 8576fi;
1e6feb95
VZ
8577
8578 eval "$ac_cv_use_fontdlg"
8579 if test "$no_cache" != 1; then
8580 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8581 fi
8582
8583 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8584 echo "$as_me:$LINENO: result: yes" >&5
8585echo "${ECHO_T}yes" >&6
1e6feb95 8586 else
e6cc62c6
VS
8587 echo "$as_me:$LINENO: result: no" >&5
8588echo "${ECHO_T}no" >&6
1e6feb95 8589 fi
e6cc62c6 8590
1e6feb95 8591
5005acfe 8592 enablestring=
e6cc62c6
VS
8593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8594echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8595 no_cache=0
8596 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8597if test "${enable_dirdlg+set}" = set; then
8598 enableval="$enable_dirdlg"
e6cc62c6 8599
1e6feb95
VZ
8600 if test "$enableval" = yes; then
8601 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8602 else
8603 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8604 fi
e6cc62c6 8605
1e6feb95 8606else
e6cc62c6 8607
1e6feb95
VZ
8608 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8609 if test "x$LINE" != x ; then
8610 eval "DEFAULT_$LINE"
8611 else
8612 no_cache=1
8613 fi
8614
8615 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8616
e6cc62c6 8617fi;
1e6feb95
VZ
8618
8619 eval "$ac_cv_use_dirdlg"
10f2d63a 8620 if test "$no_cache" != 1; then
1e6feb95 8621 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8622 fi
8623
1e6feb95 8624 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8625 echo "$as_me:$LINENO: result: yes" >&5
8626echo "${ECHO_T}yes" >&6
10f2d63a 8627 else
e6cc62c6
VS
8628 echo "$as_me:$LINENO: result: no" >&5
8629echo "${ECHO_T}no" >&6
10f2d63a 8630 fi
e6cc62c6 8631
698dcdb6 8632
5005acfe 8633 enablestring=
e6cc62c6
VS
8634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8635echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8636 no_cache=0
1e6feb95
VZ
8637 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8638if test "${enable_msgdlg+set}" = set; then
8639 enableval="$enable_msgdlg"
e6cc62c6 8640
10f2d63a 8641 if test "$enableval" = yes; then
1e6feb95 8642 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8643 else
1e6feb95 8644 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8645 fi
e6cc62c6 8646
10f2d63a 8647else
e6cc62c6 8648
1e6feb95 8649 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8650 if test "x$LINE" != x ; then
8651 eval "DEFAULT_$LINE"
8652 else
8653 no_cache=1
8654 fi
8655
1e6feb95 8656 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8657
e6cc62c6 8658fi;
10f2d63a 8659
1e6feb95 8660 eval "$ac_cv_use_msgdlg"
10f2d63a 8661 if test "$no_cache" != 1; then
1e6feb95 8662 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8663 fi
8664
1e6feb95 8665 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8666 echo "$as_me:$LINENO: result: yes" >&5
8667echo "${ECHO_T}yes" >&6
10f2d63a 8668 else
e6cc62c6
VS
8669 echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6
10f2d63a 8671 fi
e6cc62c6 8672
10f2d63a 8673
5005acfe 8674 enablestring=
e6cc62c6
VS
8675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8676echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8677 no_cache=0
1e6feb95
VZ
8678 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8679if test "${enable_numberdlg+set}" = set; then
8680 enableval="$enable_numberdlg"
e6cc62c6 8681
10f2d63a 8682 if test "$enableval" = yes; then
1e6feb95 8683 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8684 else
1e6feb95 8685 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8686 fi
e6cc62c6 8687
10f2d63a 8688else
e6cc62c6 8689
1e6feb95 8690 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8691 if test "x$LINE" != x ; then
8692 eval "DEFAULT_$LINE"
8693 else
8694 no_cache=1
8695 fi
8696
1e6feb95 8697 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8698
e6cc62c6 8699fi;
10f2d63a 8700
1e6feb95 8701 eval "$ac_cv_use_numberdlg"
10f2d63a 8702 if test "$no_cache" != 1; then
1e6feb95 8703 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8704 fi
8705
1e6feb95 8706 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8707 echo "$as_me:$LINENO: result: yes" >&5
8708echo "${ECHO_T}yes" >&6
10f2d63a 8709 else
e6cc62c6
VS
8710 echo "$as_me:$LINENO: result: no" >&5
8711echo "${ECHO_T}no" >&6
10f2d63a 8712 fi
e6cc62c6 8713
10f2d63a 8714
5005acfe 8715 enablestring=
e6cc62c6
VS
8716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8717echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8718 no_cache=0
8719 # Check whether --enable-splash or --disable-splash was given.
8720if test "${enable_splash+set}" = set; then
8721 enableval="$enable_splash"
e6cc62c6 8722
cbca9943
VZ
8723 if test "$enableval" = yes; then
8724 ac_cv_use_splash='wxUSE_SPLASH=yes'
8725 else
8726 ac_cv_use_splash='wxUSE_SPLASH=no'
8727 fi
e6cc62c6 8728
cbca9943 8729else
e6cc62c6 8730
cbca9943
VZ
8731 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8732 if test "x$LINE" != x ; then
8733 eval "DEFAULT_$LINE"
8734 else
8735 no_cache=1
8736 fi
8737
8738 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8739
e6cc62c6 8740fi;
cbca9943
VZ
8741
8742 eval "$ac_cv_use_splash"
8743 if test "$no_cache" != 1; then
8744 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8745 fi
8746
8747 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8748 echo "$as_me:$LINENO: result: yes" >&5
8749echo "${ECHO_T}yes" >&6
cbca9943 8750 else
e6cc62c6
VS
8751 echo "$as_me:$LINENO: result: no" >&5
8752echo "${ECHO_T}no" >&6
cbca9943 8753 fi
e6cc62c6 8754
cbca9943 8755
5005acfe 8756 enablestring=
e6cc62c6
VS
8757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8758echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8759 no_cache=0
8760 # Check whether --enable-textdlg or --disable-textdlg was given.
8761if test "${enable_textdlg+set}" = set; then
8762 enableval="$enable_textdlg"
e6cc62c6 8763
10f2d63a
VZ
8764 if test "$enableval" = yes; then
8765 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8766 else
8767 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8768 fi
e6cc62c6 8769
10f2d63a 8770else
e6cc62c6 8771
10f2d63a
VZ
8772 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8773 if test "x$LINE" != x ; then
8774 eval "DEFAULT_$LINE"
8775 else
8776 no_cache=1
8777 fi
8778
8779 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8780
e6cc62c6 8781fi;
10f2d63a
VZ
8782
8783 eval "$ac_cv_use_textdlg"
8784 if test "$no_cache" != 1; then
8785 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8786 fi
8787
8788 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8789 echo "$as_me:$LINENO: result: yes" >&5
8790echo "${ECHO_T}yes" >&6
10f2d63a 8791 else
e6cc62c6
VS
8792 echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6
10f2d63a 8794 fi
e6cc62c6 8795
10f2d63a 8796
5005acfe 8797 enablestring=
e6cc62c6
VS
8798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8799echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8800 no_cache=0
8801 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8802if test "${enable_tipdlg+set}" = set; then
8803 enableval="$enable_tipdlg"
e6cc62c6 8804
10f2d63a
VZ
8805 if test "$enableval" = yes; then
8806 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8807 else
8808 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8809 fi
e6cc62c6 8810
10f2d63a 8811else
e6cc62c6 8812
10f2d63a
VZ
8813 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8814 if test "x$LINE" != x ; then
8815 eval "DEFAULT_$LINE"
8816 else
8817 no_cache=1
8818 fi
8819
8820 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8821
e6cc62c6 8822fi;
10f2d63a
VZ
8823
8824 eval "$ac_cv_use_tipdlg"
8825 if test "$no_cache" != 1; then
8826 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8827 fi
8828
8829 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8830 echo "$as_me:$LINENO: result: yes" >&5
8831echo "${ECHO_T}yes" >&6
10f2d63a 8832 else
e6cc62c6
VS
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
10f2d63a 8835 fi
e6cc62c6 8836
10f2d63a 8837
5005acfe 8838 enablestring=
e6cc62c6
VS
8839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8840echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8841 no_cache=0
8842 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8843if test "${enable_progressdlg+set}" = set; then
8844 enableval="$enable_progressdlg"
e6cc62c6 8845
10f2d63a
VZ
8846 if test "$enableval" = yes; then
8847 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8848 else
8849 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8850 fi
e6cc62c6 8851
10f2d63a 8852else
e6cc62c6 8853
10f2d63a
VZ
8854 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8855 if test "x$LINE" != x ; then
8856 eval "DEFAULT_$LINE"
8857 else
8858 no_cache=1
8859 fi
8860
8861 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8862
e6cc62c6 8863fi;
10f2d63a
VZ
8864
8865 eval "$ac_cv_use_progressdlg"
8866 if test "$no_cache" != 1; then
8867 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8868 fi
8869
8870 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8871 echo "$as_me:$LINENO: result: yes" >&5
8872echo "${ECHO_T}yes" >&6
10f2d63a 8873 else
e6cc62c6
VS
8874 echo "$as_me:$LINENO: result: no" >&5
8875echo "${ECHO_T}no" >&6
10f2d63a 8876 fi
e6cc62c6 8877
10f2d63a 8878
5005acfe 8879 enablestring=
e6cc62c6
VS
8880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8881echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8882 no_cache=0
8883 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8884if test "${enable_wizarddlg+set}" = set; then
8885 enableval="$enable_wizarddlg"
e6cc62c6 8886
b1f5d087
VZ
8887 if test "$enableval" = yes; then
8888 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8889 else
8890 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8891 fi
e6cc62c6 8892
b1f5d087 8893else
e6cc62c6 8894
b1f5d087
VZ
8895 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8896 if test "x$LINE" != x ; then
8897 eval "DEFAULT_$LINE"
8898 else
8899 no_cache=1
8900 fi
8901
8902 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8903
e6cc62c6 8904fi;
b1f5d087
VZ
8905
8906 eval "$ac_cv_use_wizarddlg"
8907 if test "$no_cache" != 1; then
8908 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8909 fi
8910
8911 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8912 echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
b1f5d087 8914 else
e6cc62c6
VS
8915 echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
b1f5d087 8917 fi
e6cc62c6 8918
8284b0c5
MB
8919
8920
52127426 8921
5005acfe 8922 enablestring=
e6cc62c6
VS
8923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8924echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8925 no_cache=0
8926 # Check whether --enable-menus or --disable-menus was given.
8927if test "${enable_menus+set}" = set; then
8928 enableval="$enable_menus"
e6cc62c6 8929
1e6feb95
VZ
8930 if test "$enableval" = yes; then
8931 ac_cv_use_menus='wxUSE_MENUS=yes'
8932 else
8933 ac_cv_use_menus='wxUSE_MENUS=no'
8934 fi
e6cc62c6 8935
1e6feb95 8936else
e6cc62c6 8937
1e6feb95
VZ
8938 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8939 if test "x$LINE" != x ; then
8940 eval "DEFAULT_$LINE"
8941 else
8942 no_cache=1
8943 fi
8944
8945 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8946
e6cc62c6 8947fi;
1e6feb95
VZ
8948
8949 eval "$ac_cv_use_menus"
8950 if test "$no_cache" != 1; then
8951 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8952 fi
8953
8954 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8955 echo "$as_me:$LINENO: result: yes" >&5
8956echo "${ECHO_T}yes" >&6
1e6feb95 8957 else
e6cc62c6
VS
8958 echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
1e6feb95 8960 fi
e6cc62c6 8961
1e6feb95 8962
5005acfe 8963 enablestring=
e6cc62c6
VS
8964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8965echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8966 no_cache=0
8967 # Check whether --enable-miniframe or --disable-miniframe was given.
8968if test "${enable_miniframe+set}" = set; then
8969 enableval="$enable_miniframe"
e6cc62c6 8970
10f2d63a
VZ
8971 if test "$enableval" = yes; then
8972 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8973 else
8974 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8975 fi
e6cc62c6 8976
10f2d63a 8977else
e6cc62c6 8978
10f2d63a
VZ
8979 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8980 if test "x$LINE" != x ; then
8981 eval "DEFAULT_$LINE"
8982 else
8983 no_cache=1
8984 fi
8985
8986 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8987
e6cc62c6 8988fi;
10f2d63a
VZ
8989
8990 eval "$ac_cv_use_miniframe"
8991 if test "$no_cache" != 1; then
8992 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8993 fi
8994
8995 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8996 echo "$as_me:$LINENO: result: yes" >&5
8997echo "${ECHO_T}yes" >&6
10f2d63a 8998 else
e6cc62c6
VS
8999 echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6
10f2d63a 9001 fi
e6cc62c6 9002
10f2d63a 9003
5005acfe 9004 enablestring=
e6cc62c6
VS
9005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9006echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9007 no_cache=0
9008 # Check whether --enable-tooltips or --disable-tooltips was given.
9009if test "${enable_tooltips+set}" = set; then
9010 enableval="$enable_tooltips"
e6cc62c6 9011
10f2d63a
VZ
9012 if test "$enableval" = yes; then
9013 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9014 else
9015 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9016 fi
e6cc62c6 9017
10f2d63a 9018else
e6cc62c6 9019
10f2d63a
VZ
9020 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9021 if test "x$LINE" != x ; then
9022 eval "DEFAULT_$LINE"
9023 else
9024 no_cache=1
9025 fi
9026
9027 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9028
e6cc62c6 9029fi;
10f2d63a
VZ
9030
9031 eval "$ac_cv_use_tooltips"
9032 if test "$no_cache" != 1; then
9033 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9034 fi
9035
9036 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9037 echo "$as_me:$LINENO: result: yes" >&5
9038echo "${ECHO_T}yes" >&6
10f2d63a 9039 else
e6cc62c6
VS
9040 echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6
10f2d63a 9042 fi
e6cc62c6 9043
10f2d63a 9044
5005acfe 9045 enablestring=
e6cc62c6
VS
9046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9047echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9048 no_cache=0
9049 # Check whether --enable-splines or --disable-splines was given.
9050if test "${enable_splines+set}" = set; then
9051 enableval="$enable_splines"
e6cc62c6 9052
10f2d63a
VZ
9053 if test "$enableval" = yes; then
9054 ac_cv_use_splines='wxUSE_SPLINES=yes'
9055 else
9056 ac_cv_use_splines='wxUSE_SPLINES=no'
9057 fi
e6cc62c6 9058
10f2d63a 9059else
e6cc62c6 9060
10f2d63a
VZ
9061 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9062 if test "x$LINE" != x ; then
9063 eval "DEFAULT_$LINE"
9064 else
9065 no_cache=1
9066 fi
9067
9068 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9069
e6cc62c6 9070fi;
10f2d63a
VZ
9071
9072 eval "$ac_cv_use_splines"
9073 if test "$no_cache" != 1; then
9074 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9075 fi
9076
9077 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9078 echo "$as_me:$LINENO: result: yes" >&5
9079echo "${ECHO_T}yes" >&6
10f2d63a 9080 else
e6cc62c6
VS
9081 echo "$as_me:$LINENO: result: no" >&5
9082echo "${ECHO_T}no" >&6
10f2d63a 9083 fi
e6cc62c6 9084
10f2d63a 9085
5005acfe 9086 enablestring=
e6cc62c6
VS
9087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9088echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9089 no_cache=0
9090 # Check whether --enable-validators or --disable-validators was given.
9091if test "${enable_validators+set}" = set; then
9092 enableval="$enable_validators"
e6cc62c6 9093
10f2d63a
VZ
9094 if test "$enableval" = yes; then
9095 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9096 else
9097 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9098 fi
e6cc62c6 9099
10f2d63a 9100else
e6cc62c6 9101
10f2d63a
VZ
9102 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9103 if test "x$LINE" != x ; then
9104 eval "DEFAULT_$LINE"
9105 else
9106 no_cache=1
9107 fi
9108
9109 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9110
e6cc62c6 9111fi;
10f2d63a
VZ
9112
9113 eval "$ac_cv_use_validators"
9114 if test "$no_cache" != 1; then
9115 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9116 fi
9117
9118 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9119 echo "$as_me:$LINENO: result: yes" >&5
9120echo "${ECHO_T}yes" >&6
10f2d63a 9121 else
e6cc62c6
VS
9122 echo "$as_me:$LINENO: result: no" >&5
9123echo "${ECHO_T}no" >&6
10f2d63a 9124 fi
e6cc62c6 9125
10f2d63a 9126
5005acfe 9127 enablestring=
e6cc62c6
VS
9128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9129echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9130 no_cache=0
9131 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9132if test "${enable_busyinfo+set}" = set; then
9133 enableval="$enable_busyinfo"
e6cc62c6 9134
10f2d63a
VZ
9135 if test "$enableval" = yes; then
9136 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9137 else
9138 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9139 fi
e6cc62c6 9140
10f2d63a 9141else
e6cc62c6 9142
10f2d63a
VZ
9143 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9144 if test "x$LINE" != x ; then
9145 eval "DEFAULT_$LINE"
9146 else
9147 no_cache=1
9148 fi
9149
9150 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9151
e6cc62c6 9152fi;
10f2d63a
VZ
9153
9154 eval "$ac_cv_use_busyinfo"
9155 if test "$no_cache" != 1; then
9156 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9157 fi
9158
9159 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9160 echo "$as_me:$LINENO: result: yes" >&5
9161echo "${ECHO_T}yes" >&6
10f2d63a 9162 else
e6cc62c6
VS
9163 echo "$as_me:$LINENO: result: no" >&5
9164echo "${ECHO_T}no" >&6
10f2d63a 9165 fi
e6cc62c6 9166
10f2d63a 9167
5005acfe 9168 enablestring=
e6cc62c6
VS
9169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9170echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9171 no_cache=0
9172 # Check whether --enable-joystick or --disable-joystick was given.
9173if test "${enable_joystick+set}" = set; then
9174 enableval="$enable_joystick"
e6cc62c6 9175
f6bcfd97
BP
9176 if test "$enableval" = yes; then
9177 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9178 else
9179 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9180 fi
e6cc62c6 9181
f6bcfd97 9182else
e6cc62c6 9183
f6bcfd97
BP
9184 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9185 if test "x$LINE" != x ; then
9186 eval "DEFAULT_$LINE"
9187 else
9188 no_cache=1
9189 fi
9190
9191 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9192
e6cc62c6 9193fi;
f6bcfd97
BP
9194
9195 eval "$ac_cv_use_joystick"
9196 if test "$no_cache" != 1; then
9197 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9198 fi
9199
9200 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9201 echo "$as_me:$LINENO: result: yes" >&5
9202echo "${ECHO_T}yes" >&6
f6bcfd97 9203 else
e6cc62c6
VS
9204 echo "$as_me:$LINENO: result: no" >&5
9205echo "${ECHO_T}no" >&6
f6bcfd97 9206 fi
e6cc62c6 9207
698dcdb6 9208
5005acfe 9209 enablestring=
e6cc62c6
VS
9210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9211echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9212 no_cache=0
9213 # Check whether --enable-metafile or --disable-metafile was given.
9214if test "${enable_metafile+set}" = set; then
9215 enableval="$enable_metafile"
e6cc62c6 9216
1e6feb95
VZ
9217 if test "$enableval" = yes; then
9218 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9219 else
9220 ac_cv_use_metafile='wxUSE_METAFILE=no'
9221 fi
e6cc62c6 9222
1e6feb95 9223else
e6cc62c6 9224
1e6feb95
VZ
9225 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9226 if test "x$LINE" != x ; then
9227 eval "DEFAULT_$LINE"
9228 else
9229 no_cache=1
9230 fi
9231
9232 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9233
e6cc62c6 9234fi;
1e6feb95
VZ
9235
9236 eval "$ac_cv_use_metafile"
9237 if test "$no_cache" != 1; then
9238 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9239 fi
9240
9241 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9242 echo "$as_me:$LINENO: result: yes" >&5
9243echo "${ECHO_T}yes" >&6
1e6feb95 9244 else
e6cc62c6
VS
9245 echo "$as_me:$LINENO: result: no" >&5
9246echo "${ECHO_T}no" >&6
1e6feb95 9247 fi
e6cc62c6 9248
1e6feb95 9249
5005acfe 9250 enablestring=
e6cc62c6
VS
9251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9252echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9253 no_cache=0
9254 # Check whether --enable-dragimage or --disable-dragimage was given.
9255if test "${enable_dragimage+set}" = set; then
9256 enableval="$enable_dragimage"
e6cc62c6 9257
24fd6d87
VZ
9258 if test "$enableval" = yes; then
9259 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9260 else
9261 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9262 fi
e6cc62c6 9263
24fd6d87 9264else
e6cc62c6 9265
24fd6d87
VZ
9266 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9267 if test "x$LINE" != x ; then
9268 eval "DEFAULT_$LINE"
9269 else
9270 no_cache=1
9271 fi
9272
9273 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9274
e6cc62c6 9275fi;
24fd6d87
VZ
9276
9277 eval "$ac_cv_use_dragimage"
9278 if test "$no_cache" != 1; then
9279 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9280 fi
9281
9282 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9283 echo "$as_me:$LINENO: result: yes" >&5
9284echo "${ECHO_T}yes" >&6
24fd6d87 9285 else
e6cc62c6
VS
9286 echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
24fd6d87 9288 fi
e6cc62c6 9289
52127426 9290
7bb2947d 9291 enablestring=
e6cc62c6
VS
9292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9293echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9294 no_cache=0
9295 # Check whether --enable-accessibility or --disable-accessibility was given.
9296if test "${enable_accessibility+set}" = set; then
9297 enableval="$enable_accessibility"
e6cc62c6 9298
7bb2947d
MB
9299 if test "$enableval" = yes; then
9300 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9301 else
9302 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9303 fi
e6cc62c6 9304
7bb2947d 9305else
e6cc62c6 9306
7bb2947d
MB
9307 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9308 if test "x$LINE" != x ; then
9309 eval "DEFAULT_$LINE"
9310 else
9311 no_cache=1
9312 fi
9313
9314 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9315
e6cc62c6 9316fi;
7bb2947d
MB
9317
9318 eval "$ac_cv_use_accessibility"
9319 if test "$no_cache" != 1; then
9320 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9321 fi
9322
9323 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9324 echo "$as_me:$LINENO: result: yes" >&5
9325echo "${ECHO_T}yes" >&6
7bb2947d 9326 else
e6cc62c6
VS
9327 echo "$as_me:$LINENO: result: no" >&5
9328echo "${ECHO_T}no" >&6
7bb2947d 9329 fi
e6cc62c6 9330
7bb2947d 9331
8284b0c5
MB
9332
9333
5005acfe 9334 enablestring=
e6cc62c6
VS
9335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9336echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9337 no_cache=0
9338 # Check whether --enable-palette or --disable-palette was given.
9339if test "${enable_palette+set}" = set; then
9340 enableval="$enable_palette"
e6cc62c6 9341
edae8572
VZ
9342 if test "$enableval" = yes; then
9343 ac_cv_use_palette='wxUSE_PALETTE=yes'
9344 else
9345 ac_cv_use_palette='wxUSE_PALETTE=no'
9346 fi
e6cc62c6 9347
edae8572 9348else
e6cc62c6 9349
edae8572
VZ
9350 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9351 if test "x$LINE" != x ; then
9352 eval "DEFAULT_$LINE"
9353 else
9354 no_cache=1
9355 fi
9356
9357 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9358
e6cc62c6 9359fi;
edae8572
VZ
9360
9361 eval "$ac_cv_use_palette"
9362 if test "$no_cache" != 1; then
9363 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9364 fi
9365
9366 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9367 echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6
edae8572 9369 else
e6cc62c6
VS
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
edae8572 9372 fi
e6cc62c6 9373
edae8572 9374
5005acfe 9375 enablestring=
e6cc62c6
VS
9376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9377echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9378 no_cache=0
9379 # Check whether --enable-image or --disable-image was given.
9380if test "${enable_image+set}" = set; then
9381 enableval="$enable_image"
e6cc62c6 9382
0046ff7c
VS
9383 if test "$enableval" = yes; then
9384 ac_cv_use_image='wxUSE_IMAGE=yes'
9385 else
9386 ac_cv_use_image='wxUSE_IMAGE=no'
9387 fi
e6cc62c6 9388
0046ff7c 9389else
e6cc62c6 9390
0046ff7c
VS
9391 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9392 if test "x$LINE" != x ; then
9393 eval "DEFAULT_$LINE"
9394 else
9395 no_cache=1
9396 fi
9397
9398 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9399
e6cc62c6 9400fi;
0046ff7c
VS
9401
9402 eval "$ac_cv_use_image"
9403 if test "$no_cache" != 1; then
9404 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9405 fi
9406
9407 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9408 echo "$as_me:$LINENO: result: yes" >&5
9409echo "${ECHO_T}yes" >&6
0046ff7c 9410 else
e6cc62c6
VS
9411 echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
0046ff7c 9413 fi
e6cc62c6 9414
0046ff7c 9415
5005acfe 9416 enablestring=
e6cc62c6
VS
9417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9418echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9419 no_cache=0
9420 # Check whether --enable-gif or --disable-gif was given.
9421if test "${enable_gif+set}" = set; then
9422 enableval="$enable_gif"
e6cc62c6 9423
10f2d63a
VZ
9424 if test "$enableval" = yes; then
9425 ac_cv_use_gif='wxUSE_GIF=yes'
9426 else
9427 ac_cv_use_gif='wxUSE_GIF=no'
9428 fi
e6cc62c6 9429
10f2d63a 9430else
e6cc62c6 9431
10f2d63a
VZ
9432 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9433 if test "x$LINE" != x ; then
9434 eval "DEFAULT_$LINE"
9435 else
9436 no_cache=1
9437 fi
9438
9439 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9440
e6cc62c6 9441fi;
10f2d63a
VZ
9442
9443 eval "$ac_cv_use_gif"
9444 if test "$no_cache" != 1; then
9445 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9446 fi
9447
9448 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9449 echo "$as_me:$LINENO: result: yes" >&5
9450echo "${ECHO_T}yes" >&6
10f2d63a 9451 else
e6cc62c6
VS
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
10f2d63a 9454 fi
e6cc62c6 9455
10f2d63a 9456
5005acfe 9457 enablestring=
e6cc62c6
VS
9458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9459echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9460 no_cache=0
9461 # Check whether --enable-pcx or --disable-pcx was given.
9462if test "${enable_pcx+set}" = set; then
9463 enableval="$enable_pcx"
e6cc62c6 9464
10f2d63a
VZ
9465 if test "$enableval" = yes; then
9466 ac_cv_use_pcx='wxUSE_PCX=yes'
9467 else
9468 ac_cv_use_pcx='wxUSE_PCX=no'
9469 fi
e6cc62c6 9470
10f2d63a 9471else
e6cc62c6 9472
10f2d63a
VZ
9473 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9474 if test "x$LINE" != x ; then
9475 eval "DEFAULT_$LINE"
9476 else
9477 no_cache=1
9478 fi
9479
9480 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9481
e6cc62c6 9482fi;
10f2d63a
VZ
9483
9484 eval "$ac_cv_use_pcx"
9485 if test "$no_cache" != 1; then
9486 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9487 fi
9488
9489 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9490 echo "$as_me:$LINENO: result: yes" >&5
9491echo "${ECHO_T}yes" >&6
10f2d63a 9492 else
e6cc62c6
VS
9493 echo "$as_me:$LINENO: result: no" >&5
9494echo "${ECHO_T}no" >&6
10f2d63a 9495 fi
e6cc62c6 9496
10f2d63a 9497
5005acfe 9498 enablestring=
e6cc62c6
VS
9499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9500echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9501 no_cache=0
9502 # Check whether --enable-iff or --disable-iff was given.
9503if test "${enable_iff+set}" = set; then
9504 enableval="$enable_iff"
e6cc62c6 9505
4b6b4dfc
RR
9506 if test "$enableval" = yes; then
9507 ac_cv_use_iff='wxUSE_IFF=yes'
9508 else
9509 ac_cv_use_iff='wxUSE_IFF=no'
9510 fi
e6cc62c6 9511
4b6b4dfc 9512else
e6cc62c6 9513
4b6b4dfc
RR
9514 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9515 if test "x$LINE" != x ; then
9516 eval "DEFAULT_$LINE"
9517 else
9518 no_cache=1
9519 fi
9520
9521 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9522
e6cc62c6 9523fi;
4b6b4dfc
RR
9524
9525 eval "$ac_cv_use_iff"
9526 if test "$no_cache" != 1; then
9527 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9528 fi
9529
9530 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9531 echo "$as_me:$LINENO: result: yes" >&5
9532echo "${ECHO_T}yes" >&6
4b6b4dfc 9533 else
e6cc62c6
VS
9534 echo "$as_me:$LINENO: result: no" >&5
9535echo "${ECHO_T}no" >&6
4b6b4dfc 9536 fi
e6cc62c6 9537
4b6b4dfc 9538
5005acfe 9539 enablestring=
e6cc62c6
VS
9540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9541echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9542 no_cache=0
9543 # Check whether --enable-pnm or --disable-pnm was given.
9544if test "${enable_pnm+set}" = set; then
9545 enableval="$enable_pnm"
e6cc62c6 9546
10f2d63a
VZ
9547 if test "$enableval" = yes; then
9548 ac_cv_use_pnm='wxUSE_PNM=yes'
9549 else
9550 ac_cv_use_pnm='wxUSE_PNM=no'
9551 fi
e6cc62c6 9552
10f2d63a 9553else
e6cc62c6 9554
10f2d63a
VZ
9555 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9556 if test "x$LINE" != x ; then
9557 eval "DEFAULT_$LINE"
9558 else
9559 no_cache=1
9560 fi
9561
9562 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9563
e6cc62c6 9564fi;
10f2d63a
VZ
9565
9566 eval "$ac_cv_use_pnm"
9567 if test "$no_cache" != 1; then
9568 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9569 fi
9570
9571 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9572 echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6
10f2d63a 9574 else
e6cc62c6
VS
9575 echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
10f2d63a 9577 fi
e6cc62c6 9578
10f2d63a 9579
5005acfe 9580 enablestring=
e6cc62c6
VS
9581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9582echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9583 no_cache=0
69d27ff7
MB
9584 # Check whether --enable-xpm or --disable-xpm was given.
9585if test "${enable_xpm+set}" = set; then
9586 enableval="$enable_xpm"
e6cc62c6 9587
0046ff7c 9588 if test "$enableval" = yes; then
69d27ff7 9589 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9590 else
69d27ff7 9591 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9592 fi
e6cc62c6 9593
0046ff7c 9594else
e6cc62c6 9595
0046ff7c
VS
9596 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9597 if test "x$LINE" != x ; then
9598 eval "DEFAULT_$LINE"
9599 else
9600 no_cache=1
9601 fi
9602
69d27ff7 9603 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9604
e6cc62c6 9605fi;
0046ff7c 9606
69d27ff7 9607 eval "$ac_cv_use_xpm"
0046ff7c 9608 if test "$no_cache" != 1; then
69d27ff7 9609 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9610 fi
9611
9612 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9613 echo "$as_me:$LINENO: result: yes" >&5
9614echo "${ECHO_T}yes" >&6
0046ff7c 9615 else
e6cc62c6
VS
9616 echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6
0046ff7c 9618 fi
e6cc62c6 9619
0046ff7c 9620
5005acfe 9621 enablestring=
e6cc62c6
VS
9622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9623echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9624 no_cache=0
c7206e64
VS
9625 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9626if test "${enable_ico_cur+set}" = set; then
9627 enableval="$enable_ico_cur"
e6cc62c6 9628
658974ae 9629 if test "$enableval" = yes; then
c7206e64 9630 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9631 else
c7206e64 9632 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9633 fi
e6cc62c6 9634
658974ae 9635else
e6cc62c6 9636
658974ae
VS
9637 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9638 if test "x$LINE" != x ; then
9639 eval "DEFAULT_$LINE"
9640 else
9641 no_cache=1
9642 fi
9643
c7206e64 9644 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9645
e6cc62c6 9646fi;
658974ae 9647
c7206e64 9648 eval "$ac_cv_use_ico_cur"
658974ae 9649 if test "$no_cache" != 1; then
c7206e64 9650 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9651 fi
9652
9653 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9654 echo "$as_me:$LINENO: result: yes" >&5
9655echo "${ECHO_T}yes" >&6
658974ae 9656 else
e6cc62c6
VS
9657 echo "$as_me:$LINENO: result: no" >&5
9658echo "${ECHO_T}no" >&6
658974ae 9659 fi
e6cc62c6 9660
658974ae 9661
b12915c1
VZ
9662fi
9663
029b47ad
VS
9664
9665
9666 enablestring=
9667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9668echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9669 no_cache=0
9670 # Check whether --enable-official_build or --disable-official_build was given.
9671if test "${enable_official_build+set}" = set; then
9672 enableval="$enable_official_build"
9673
9674 if test "$enableval" = yes; then
9675 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9676 else
9677 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9678 fi
9679
9680else
9681
9682 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9683 if test "x$LINE" != x ; then
9684 eval "DEFAULT_$LINE"
9685 else
9686 no_cache=1
9687 fi
9688
9689 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9690
9691fi;
9692
9693 eval "$ac_cv_use_official_build"
9694 if test "$no_cache" != 1; then
9695 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9696 fi
9697
9698 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9699 echo "$as_me:$LINENO: result: yes" >&5
9700echo "${ECHO_T}yes" >&6
9701 else
9702 echo "$as_me:$LINENO: result: no" >&5
9703echo "${ECHO_T}no" >&6
9704 fi
9705
9706# Check whether --enable-vendor or --disable-vendor was given.
9707if test "${enable_vendor+set}" = set; then
9708 enableval="$enable_vendor"
9709 VENDOR="$enableval"
9710fi;
9711if test "x$VENDOR" = "x"; then
9712 VENDOR="custom"
9713fi
9714
d558c907
VS
9715case "${host}" in
9716 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9717 PATH_IFS=';'
d558c907
VS
9718 ;;
9719 *)
9720 PATH_IFS=':'
d558c907
VS
9721 ;;
9722esac
9723
8284b0c5
MB
9724
9725
10f2d63a
VZ
9726 echo "saving argument cache $wx_arg_cache_file"
9727 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9728
8284b0c5 9729
e6cc62c6
VS
9730
9731echo "$as_me:$LINENO: checking for toolkit" >&5
9732echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9733
9734# In Wine, we need to default to MSW, not GTK or MOTIF
9735if test "$wxUSE_WINE" = "yes"; then
9736 DEFAULT_DEFAULT_wxUSE_GTK=0
9737 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9738 DEFAULT_DEFAULT_wxUSE_MSW=1
9739fi
10f2d63a
VZ
9740
9741if test "$wxUSE_GUI" = "yes"; then
9742
3a922bb4 9743 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9744 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9745echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9746 { (exit 1); exit 1; }; }
3a922bb4 9747 fi
b12915c1 9748
3a922bb4
RL
9749 if test "$TOOLKIT_GIVEN" = 1; then
9750 for toolkit in `echo $ALL_TOOLKITS`; do
9751 var=wxUSE_$toolkit
9752 eval "value=\$${var}"
9753 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9754 done
10f2d63a 9755 else
3a922bb4
RL
9756 for toolkit in `echo $ALL_TOOLKITS`; do
9757 if test "$has_toolkit_in_cache" != 1; then
9758 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9759 else
9760 var=DEFAULT_wxUSE_$toolkit
9761 fi
9762 eval "wxUSE_$toolkit=\$${var}"
9763 done
10f2d63a 9764 fi
10f2d63a 9765
ac0c4cc3
DE
9766 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9767 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9768 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9769
d558c907 9770 case "${host}" in
6fa882bd 9771 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9772 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9773 esac
10f2d63a 9774
3a922bb4
RL
9775 case "$NUM_TOOLKITS" in
9776 1)
9777 ;;
9778 0)
e6cc62c6
VS
9779 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9780echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9781 { (exit 1); exit 1; }; }
3a922bb4
RL
9782 ;;
9783 *)
e6cc62c6
VS
9784 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9785echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9786 { (exit 1); exit 1; }; }
3a922bb4 9787 esac
10f2d63a 9788
3a922bb4
RL
9789 for toolkit in `echo $ALL_TOOLKITS`; do
9790 var=wxUSE_$toolkit
9791 eval "value=\$${var}"
9792 if test "x$value" != x; then
9793 cache_var=CACHE_$toolkit
9794 eval "cache=\$${cache_var}"
9795 if test "$cache" = 1; then
9796 echo "$var=$value" >> ${wx_arg_cache_file}
9797 fi
9798 if test "$value" = 1; then
89fe663f 9799 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9800 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9801echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9802 fi
9803 fi
9804 done
10f2d63a 9805else
9de9b8f0
VZ
9806 if test "x$host_alias" != "x"; then
9807 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9808echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9809 else
9810 echo "$as_me:$LINENO: result: base only" >&5
9811echo "${ECHO_T}base only" >&6
9812 fi
10f2d63a
VZ
9813fi
9814
43d99b6d
VS
9815wants_win32=0
9816doesnt_want_win32=0
17234b26
MB
9817case "${host}" in
9818 *-*-cygwin*)
9819 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9820 wants_win32=1
9821 else
9822 doesnt_want_win32=1
17234b26
MB
9823 fi
9824 ;;
9825 *-*-mingw*)
43d99b6d 9826 wants_win32=1
17234b26
MB
9827 ;;
9828esac
9829
89e6bf6d
VZ
9830if test "$wxUSE_WINE" = "yes"; then
9831 wants_win32=1
9832 CC=winegcc
9833 CXX=wineg++
9834 RESCOMP=wrc
9835fi
9836
43d99b6d 9837if test "$wants_win32" = 1 ; then
17234b26
MB
9838 USE_UNIX=0
9839 USE_WIN32=1
e6cc62c6 9840 cat >>confdefs.h <<\_ACEOF
17234b26 9841#define __WIN32__ 1
e6cc62c6 9842_ACEOF
17234b26 9843
e6cc62c6 9844 cat >>confdefs.h <<\_ACEOF
17234b26 9845#define __WIN95__ 1
e6cc62c6 9846_ACEOF
17234b26 9847
e6cc62c6 9848 cat >>confdefs.h <<\_ACEOF
17234b26 9849#define __WINDOWS__ 1
e6cc62c6 9850_ACEOF
17234b26 9851
e6cc62c6 9852 cat >>confdefs.h <<\_ACEOF
17234b26 9853#define __GNUWIN32__ 1
e6cc62c6 9854_ACEOF
17234b26 9855
e6cc62c6 9856 cat >>confdefs.h <<\_ACEOF
17234b26 9857#define STRICT 1
e6cc62c6 9858_ACEOF
17234b26 9859
e6cc62c6 9860 cat >>confdefs.h <<\_ACEOF
17234b26 9861#define WINVER 0x0400
e6cc62c6 9862_ACEOF
17234b26 9863
43d99b6d
VS
9864fi
9865if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9866 USE_UNIX=1
9867 USE_WIN32=0
9868fi
9869
9870if test "$USE_UNIX" = 1 ; then
9871 wxUSE_UNIX=yes
e6cc62c6 9872 cat >>confdefs.h <<\_ACEOF
17234b26 9873#define __UNIX__ 1
e6cc62c6 9874_ACEOF
17234b26
MB
9875
9876fi
9877
8284b0c5 9878
e6cc62c6 9879cat >confcache <<\_ACEOF
10f2d63a
VZ
9880# This file is a shell script that caches the results of configure
9881# tests run on this system so they can be shared between configure
e6cc62c6
VS
9882# scripts and configure runs, see configure's option --config-cache.
9883# It is not useful on other systems. If it contains results you don't
9884# want to keep, you may remove or edit it.
10f2d63a 9885#
e6cc62c6
VS
9886# config.status only pays attention to the cache file if you give it
9887# the --recheck option to rerun configure.
10f2d63a 9888#
e6cc62c6
VS
9889# `ac_cv_env_foo' variables (set or unset) will be overridden when
9890# loading this file, other *unset* `ac_cv_foo' will be assigned the
9891# following values.
9892
9893_ACEOF
9894
10f2d63a
VZ
9895# The following way of writing the cache mishandles newlines in values,
9896# but we know of no workaround that is simple, portable, and efficient.
9897# So, don't put newlines in cache variables' values.
9898# Ultrix sh set writes to stderr and can't be redirected directly,
9899# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9900{
9901 (set) 2>&1 |
9902 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9903 *ac_space=\ *)
9904 # `set' does not quote correctly, so add quotes (double-quote
9905 # substitution turns \\\\ into \\, and sed turns \\ into \).
9906 sed -n \
eea650d8
VS
9907 "s/'/'\\\\''/g;
9908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9909 ;;
9910 *)
9911 # `set' quotes correctly as required by POSIX, so do not add quotes.
9912 sed -n \
eea650d8 9913 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9914 ;;
9915 esac;
9916} |
9917 sed '
9918 t clear
9919 : clear
9920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9921 t end
9922 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9923 : end' >>confcache
9924if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9925 if test -w $cache_file; then
e6cc62c6
VS
9926 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9927 cat confcache >$cache_file
10f2d63a
VZ
9928 else
9929 echo "not updating unwritable cache $cache_file"
9930 fi
9931fi
9932rm -f confcache
9933
e59890c3 9934if test "$build" != "$host" ; then
9d353d4a 9935 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9936 CC=$host_alias-gcc
9937 CXX=$host_alias-c++
9938 AR=$host_alias-ar
9939 RANLIB=$host_alias-ranlib
9940 DLLTOOL=$host_alias-dlltool
9941 RESCOMP=$host_alias-windres
9942 LD=$host_alias-ld
9943 NM=$host_alias-nm
9944 STRIP=$host_alias-strip
9945 else
e6cc62c6
VS
9946 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9947echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9948 { (exit 1); exit 1; }; }
3a922bb4 9949 fi
10f2d63a
VZ
9950fi
9951
ec603395 9952CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9953ac_ext=c
9954ac_cpp='$CPP $CPPFLAGS'
9955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9957ac_compiler_gnu=$ac_cv_c_compiler_gnu
9958if test -n "$ac_tool_prefix"; then
9959 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9960set dummy ${ac_tool_prefix}gcc; ac_word=$2
9961echo "$as_me:$LINENO: checking for $ac_word" >&5
9962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9963if test "${ac_cv_prog_CC+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966 if test -n "$CC"; then
9967 ac_cv_prog_CC="$CC" # Let the user override the test.
9968else
9969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970for as_dir in $PATH
9971do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9976 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 break 2
9979 fi
9980done
9981done
9982
9983fi
9984fi
9985CC=$ac_cv_prog_CC
9986if test -n "$CC"; then
9987 echo "$as_me:$LINENO: result: $CC" >&5
9988echo "${ECHO_T}$CC" >&6
9989else
9990 echo "$as_me:$LINENO: result: no" >&5
9991echo "${ECHO_T}no" >&6
9992fi
9993
9994fi
9995if test -z "$ac_cv_prog_CC"; then
9996 ac_ct_CC=$CC
9997 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9998set dummy gcc; ac_word=$2
e6cc62c6
VS
9999echo "$as_me:$LINENO: checking for $ac_word" >&5
10000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003else
10004 if test -n "$ac_ct_CC"; then
10005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10006else
10007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008for as_dir in $PATH
10009do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014 ac_cv_prog_ac_ct_CC="gcc"
10015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018done
10019done
10020
10021fi
10022fi
10023ac_ct_CC=$ac_cv_prog_ac_ct_CC
10024if test -n "$ac_ct_CC"; then
10025 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10026echo "${ECHO_T}$ac_ct_CC" >&6
10027else
10028 echo "$as_me:$LINENO: result: no" >&5
10029echo "${ECHO_T}no" >&6
10030fi
10031
10032 CC=$ac_ct_CC
10033else
10034 CC="$ac_cv_prog_CC"
10035fi
10036
10037if test -z "$CC"; then
10038 if test -n "$ac_tool_prefix"; then
10039 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10040set dummy ${ac_tool_prefix}cc; ac_word=$2
10041echo "$as_me:$LINENO: checking for $ac_word" >&5
10042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10043if test "${ac_cv_prog_CC+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10045else
10046 if test -n "$CC"; then
10047 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10048else
e6cc62c6
VS
10049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10056 ac_cv_prog_CC="${ac_tool_prefix}cc"
10057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10059 fi
10060done
10061done
10062
10f2d63a 10063fi
6232543b 10064fi
e6cc62c6 10065CC=$ac_cv_prog_CC
6232543b 10066if test -n "$CC"; then
e6cc62c6
VS
10067 echo "$as_me:$LINENO: result: $CC" >&5
10068echo "${ECHO_T}$CC" >&6
10069else
10070 echo "$as_me:$LINENO: result: no" >&5
10071echo "${ECHO_T}no" >&6
10072fi
10073
10074fi
10075if test -z "$ac_cv_prog_CC"; then
10076 ac_ct_CC=$CC
10077 # Extract the first word of "cc", so it can be a program name with args.
10078set dummy cc; ac_word=$2
10079echo "$as_me:$LINENO: checking for $ac_word" >&5
10080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10081if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084 if test -n "$ac_ct_CC"; then
10085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10086else
10087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088for as_dir in $PATH
10089do
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094 ac_cv_prog_ac_ct_CC="cc"
10095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10097 fi
10098done
10099done
10100
10101fi
10102fi
10103ac_ct_CC=$ac_cv_prog_ac_ct_CC
10104if test -n "$ac_ct_CC"; then
10105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10106echo "${ECHO_T}$ac_ct_CC" >&6
10107else
10108 echo "$as_me:$LINENO: result: no" >&5
10109echo "${ECHO_T}no" >&6
10110fi
10111
10112 CC=$ac_ct_CC
247f5006 10113else
e6cc62c6 10114 CC="$ac_cv_prog_CC"
247f5006
VZ
10115fi
10116
e6cc62c6 10117fi
5c6fa7d2
RR
10118if test -z "$CC"; then
10119 # Extract the first word of "cc", so it can be a program name with args.
10120set dummy cc; ac_word=$2
e6cc62c6
VS
10121echo "$as_me:$LINENO: checking for $ac_word" >&5
10122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10123if test "${ac_cv_prog_CC+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10125else
10126 if test -n "$CC"; then
10127 ac_cv_prog_CC="$CC" # Let the user override the test.
10128else
10129 ac_prog_rejected=no
e6cc62c6
VS
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10138 ac_prog_rejected=yes
10139 continue
10140 fi
10141 ac_cv_prog_CC="cc"
10142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10144 fi
10145done
10146done
10147
328a083c
RR
10148if test $ac_prog_rejected = yes; then
10149 # We found a bogon in the path, so make sure we never use it.
10150 set dummy $ac_cv_prog_CC
10151 shift
e6cc62c6 10152 if test $# != 0; then
328a083c 10153 # We chose a different compiler from the bogus one.
1e487827
VS
10154 # However, it has the same basename, so the bogon will be chosen
10155 # first if we set CC to just the basename; use the full file name.
10156 shift
e6cc62c6 10157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10158 fi
1e487827
VS
10159fi
10160fi
10161fi
e6cc62c6 10162CC=$ac_cv_prog_CC
1e487827 10163if test -n "$CC"; then
e6cc62c6
VS
10164 echo "$as_me:$LINENO: result: $CC" >&5
10165echo "${ECHO_T}$CC" >&6
703e0a69 10166else
e6cc62c6
VS
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
703e0a69 10169fi
1e487827 10170
e6cc62c6
VS
10171fi
10172if test -z "$CC"; then
10173 if test -n "$ac_tool_prefix"; then
10174 for ac_prog in cl
10175 do
10176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10177set dummy $ac_tool_prefix$ac_prog; 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
f09359cf
VS
10182else
10183 if test -n "$CC"; then
10184 ac_cv_prog_CC="$CC" # Let the user override the test.
10185else
e6cc62c6
VS
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$ac_prog"
10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10196 fi
10197done
10198done
10199
f09359cf
VS
10200fi
10201fi
e6cc62c6 10202CC=$ac_cv_prog_CC
f09359cf 10203if test -n "$CC"; then
e6cc62c6
VS
10204 echo "$as_me:$LINENO: result: $CC" >&5
10205echo "${ECHO_T}$CC" >&6
f09359cf 10206else
e6cc62c6
VS
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
5c6fa7d2 10209fi
1e487827 10210
e6cc62c6
VS
10211 test -n "$CC" && break
10212 done
10213fi
10214if test -z "$CC"; then
10215 ac_ct_CC=$CC
10216 for ac_prog in cl
10217do
10218 # Extract the first word of "$ac_prog", so it can be a program name with args.
10219set dummy $ac_prog; ac_word=$2
10220echo "$as_me:$LINENO: checking for $ac_word" >&5
10221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225 if test -n "$ac_ct_CC"; then
10226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10227else
10228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229for as_dir in $PATH
10230do
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10235 ac_cv_prog_ac_ct_CC="$ac_prog"
10236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 break 2
10238 fi
10239done
10240done
f09359cf 10241
e6cc62c6
VS
10242fi
10243fi
10244ac_ct_CC=$ac_cv_prog_ac_ct_CC
10245if test -n "$ac_ct_CC"; then
10246 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10247echo "${ECHO_T}$ac_ct_CC" >&6
10248else
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
10251fi
f09359cf 10252
e6cc62c6
VS
10253 test -n "$ac_ct_CC" && break
10254done
247f5006 10255
e6cc62c6
VS
10256 CC=$ac_ct_CC
10257fi
10258
10259fi
10260
10261
10262test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10263See \`config.log' for more details." >&5
10264echo "$as_me: error: no acceptable C compiler found in \$PATH
10265See \`config.log' for more details." >&2;}
10266 { (exit 1); exit 1; }; }
10267
10268# Provide some information about the compiler.
10269echo "$as_me:$LINENO:" \
10270 "checking for C compiler version" >&5
10271ac_compiler=`set X $ac_compile; echo $2`
10272{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10273 (eval $ac_compiler --version </dev/null >&5) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }
10277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10278 (eval $ac_compiler -v </dev/null >&5) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }
10282{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10283 (eval $ac_compiler -V </dev/null >&5) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }
10287
10288cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
10294
10295int
10296main ()
10297{
247f5006 10298
e6cc62c6
VS
10299 ;
10300 return 0;
10301}
10302_ACEOF
10303ac_clean_files_save=$ac_clean_files
10304ac_clean_files="$ac_clean_files a.out a.exe b.out"
10305# Try to create an executable without -o first, disregard a.out.
10306# It will help us diagnose broken compilers, and finding out an intuition
10307# of exeext.
eea650d8
VS
10308echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10309echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10310ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10311if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10312 (eval $ac_link_default) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; then
10316 # Find the output, starting from the most likely. This scheme is
10317# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10318# resort.
10319
10320# Be careful to initialize this variable, since it used to be cached.
10321# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10322ac_cv_exeext=
10323# b.out is created by i960 compilers.
10324for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10325do
10326 test -f "$ac_file" || continue
10327 case $ac_file in
10328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
eea650d8 10329 ;;
e6cc62c6 10330 conftest.$ac_ext )
eea650d8
VS
10331 # This is the source file.
10332 ;;
e6cc62c6 10333 [ab].out )
eea650d8
VS
10334 # We found the default executable, but exeext='' is most
10335 # certainly right.
10336 break;;
e6cc62c6 10337 *.* )
eea650d8
VS
10338 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10339 # FIXME: I believe we export ac_cv_exeext for Libtool,
10340 # but it would be cool to find out if it's true. Does anybody
10341 # maintain Libtool? --akim.
10342 export ac_cv_exeext
10343 break;;
e6cc62c6 10344 * )
eea650d8 10345 break;;
e6cc62c6
VS
10346 esac
10347done
10348else
10349 echo "$as_me: failed program was:" >&5
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
10352{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10353See \`config.log' for more details." >&5
10354echo "$as_me: error: C compiler cannot create executables
10355See \`config.log' for more details." >&2;}
10356 { (exit 77); exit 77; }; }
10357fi
10358
10359ac_exeext=$ac_cv_exeext
10360echo "$as_me:$LINENO: result: $ac_file" >&5
10361echo "${ECHO_T}$ac_file" >&6
10362
10363# Check the compiler produces executables we can run. If not, either
10364# the compiler is broken, or we cross compile.
10365echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10366echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10367# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10368# If not cross compiling, check that we can run a simple program.
10369if test "$cross_compiling" != yes; then
10370 if { ac_try='./$ac_file'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then
10376 cross_compiling=no
698dcdb6 10377 else
e6cc62c6
VS
10378 if test "$cross_compiling" = maybe; then
10379 cross_compiling=yes
10380 else
10381 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10382If you meant to cross compile, use \`--host'.
10383See \`config.log' for more details." >&5
10384echo "$as_me: error: cannot run C compiled programs.
10385If you meant to cross compile, use \`--host'.
10386See \`config.log' for more details." >&2;}
10387 { (exit 1); exit 1; }; }
10388 fi
698dcdb6 10389 fi
52127426 10390fi
e6cc62c6
VS
10391echo "$as_me:$LINENO: result: yes" >&5
10392echo "${ECHO_T}yes" >&6
10393
10394rm -f a.out a.exe conftest$ac_cv_exeext b.out
10395ac_clean_files=$ac_clean_files_save
10396# Check the compiler produces executables we can run. If not, either
10397# the compiler is broken, or we cross compile.
10398echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10399echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10400echo "$as_me:$LINENO: result: $cross_compiling" >&5
10401echo "${ECHO_T}$cross_compiling" >&6
10402
10403echo "$as_me:$LINENO: checking for suffix of executables" >&5
10404echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406 (eval $ac_link) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; then
10410 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10411# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10412# work properly (i.e., refer to `conftest.exe'), while it won't with
10413# `rm'.
10414for ac_file in conftest.exe conftest conftest.*; do
10415 test -f "$ac_file" || continue
10416 case $ac_file in
10417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
eea650d8
VS
10419 export ac_cv_exeext
10420 break;;
e6cc62c6
VS
10421 * ) break;;
10422 esac
10423done
5c6fa7d2 10424else
e6cc62c6
VS
10425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10426See \`config.log' for more details." >&5
10427echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10428See \`config.log' for more details." >&2;}
10429 { (exit 1); exit 1; }; }
10430fi
10431
10432rm -f conftest$ac_cv_exeext
10433echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10434echo "${ECHO_T}$ac_cv_exeext" >&6
10435
10436rm -f conftest.$ac_ext
10437EXEEXT=$ac_cv_exeext
10438ac_exeext=$EXEEXT
10439echo "$as_me:$LINENO: checking for suffix of object files" >&5
10440echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10441if test "${ac_cv_objext+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10445/* confdefs.h. */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h. */
10450
10451int
10452main ()
10453{
f09359cf 10454
e6cc62c6
VS
10455 ;
10456 return 0;
10457}
10458_ACEOF
10459rm -f conftest.o conftest.obj
10460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; then
10465 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10466 case $ac_file in
10467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10469 break;;
10470 esac
10471done
a0b9e27f 10472else
e6cc62c6
VS
10473 echo "$as_me: failed program was:" >&5
10474sed 's/^/| /' conftest.$ac_ext >&5
10475
10476{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10477See \`config.log' for more details." >&5
10478echo "$as_me: error: cannot compute suffix of object files: cannot compile
10479See \`config.log' for more details." >&2;}
10480 { (exit 1); exit 1; }; }
a0b9e27f 10481fi
247f5006 10482
e6cc62c6
VS
10483rm -f conftest.$ac_cv_objext conftest.$ac_ext
10484fi
10485echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10486echo "${ECHO_T}$ac_cv_objext" >&6
10487OBJEXT=$ac_cv_objext
10488ac_objext=$OBJEXT
10489echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10490echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10491if test "${ac_cv_c_compiler_gnu+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10493else
e6cc62c6 10494 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10495/* confdefs.h. */
10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
10499/* end confdefs.h. */
10500
10501int
10502main ()
10503{
10504#ifndef __GNUC__
10505 choke me
10506#endif
10507
10508 ;
10509 return 0;
10510}
10511_ACEOF
10512rm -f conftest.$ac_objext
10513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10514 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10515 ac_status=$?
eea650d8
VS
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
e6cc62c6
VS
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
eea650d8
VS
10521 { ac_try='test -z "$ac_c_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_compiler_gnu=yes
10535else
10536 echo "$as_me: failed program was:" >&5
10537sed 's/^/| /' conftest.$ac_ext >&5
10538
10539ac_compiler_gnu=no
10540fi
eea650d8 10541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10542ac_cv_c_compiler_gnu=$ac_compiler_gnu
10543
10544fi
10545echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10546echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10547GCC=`test $ac_compiler_gnu = yes && echo yes`
10548ac_test_CFLAGS=${CFLAGS+set}
10549ac_save_CFLAGS=$CFLAGS
10550CFLAGS="-g"
10551echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10552echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10553if test "${ac_cv_prog_cc_g+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555else
10556 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10557/* confdefs.h. */
10558_ACEOF
10559cat confdefs.h >>conftest.$ac_ext
10560cat >>conftest.$ac_ext <<_ACEOF
10561/* end confdefs.h. */
10562
10563int
10564main ()
10565{
10566
10567 ;
10568 return 0;
10569}
10570_ACEOF
10571rm -f conftest.$ac_objext
10572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10573 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10574 ac_status=$?
eea650d8
VS
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
e6cc62c6
VS
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
eea650d8
VS
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10f2d63a
VZ
10593 ac_cv_prog_cc_g=yes
10594else
e6cc62c6
VS
10595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10597
e6cc62c6 10598ac_cv_prog_cc_g=no
10f2d63a 10599fi
eea650d8 10600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10601fi
10602echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10603echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10604if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10605 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10606elif test $ac_cv_prog_cc_g = yes; then
10607 if test "$GCC" = yes; then
10f2d63a
VZ
10608 CFLAGS="-g -O2"
10609 else
f09359cf 10610 CFLAGS="-g"
10f2d63a 10611 fi
5c0a20c3 10612else
f09359cf
VS
10613 if test "$GCC" = yes; then
10614 CFLAGS="-O2"
10615 else
10616 CFLAGS=
10617 fi
10f2d63a 10618fi
e6cc62c6
VS
10619echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10620echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10621if test "${ac_cv_prog_cc_stdc+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623else
10624 ac_cv_prog_cc_stdc=no
10625ac_save_CC=$CC
10626cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10627/* confdefs.h. */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h. */
10632#include <stdarg.h>
10633#include <stdio.h>
10634#include <sys/types.h>
10635#include <sys/stat.h>
10636/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10637struct buf { int x; };
10638FILE * (*rcsopen) (struct buf *, struct stat *, int);
10639static char *e (p, i)
10640 char **p;
10641 int i;
10642{
10643 return p[i];
10644}
10645static char *f (char * (*g) (char **, int), char **p, ...)
10646{
10647 char *s;
10648 va_list v;
10649 va_start (v,p);
10650 s = g (p, va_arg (v,int));
10651 va_end (v);
10652 return s;
10653}
eea650d8
VS
10654
10655/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10656 function prototypes and stuff, but not '\xHH' hex character constants.
10657 These don't provoke an error unfortunately, instead are silently treated
10658 as 'x'. The following induces an error, until -std1 is added to get
10659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10660 array size at least. It's necessary to write '\x00'==0 to get something
10661 that's true only with -std1. */
10662int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10663
e6cc62c6
VS
10664int test (int i, double x);
10665struct s1 {int (*f) (int a);};
10666struct s2 {int (*f) (double a);};
10667int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10668int argc;
10669char **argv;
10670int
10671main ()
10672{
10673return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10674 ;
10675 return 0;
10676}
10677_ACEOF
10678# Don't try gcc -ansi; that turns off useful extensions and
10679# breaks some systems' header files.
10680# AIX -qlanglvl=ansi
10681# Ultrix and OSF/1 -std1
10682# HP-UX 10.20 and later -Ae
10683# HP-UX older versions -Aa -D_HPUX_SOURCE
10684# SVR4 -Xc -D__EXTENSIONS__
10685for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10686do
10687 CC="$ac_save_CC $ac_arg"
10688 rm -f conftest.$ac_objext
10689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10690 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10691 ac_status=$?
eea650d8
VS
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
e6cc62c6
VS
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
eea650d8
VS
10697 { ac_try='test -z "$ac_c_werror_flag"
10698 || test ! -s conftest.err'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 ac_cv_prog_cc_stdc=$ac_arg
10711break
10712else
10713 echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716fi
eea650d8 10717rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10718done
10719rm -f conftest.$ac_ext conftest.$ac_objext
10720CC=$ac_save_CC
10721
10722fi
10723
10724case "x$ac_cv_prog_cc_stdc" in
10725 x|xno)
10726 echo "$as_me:$LINENO: result: none needed" >&5
10727echo "${ECHO_T}none needed" >&6 ;;
10728 *)
10729 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10730echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10731 CC="$CC $ac_cv_prog_cc_stdc" ;;
10732esac
10733
10734# Some people use a C++ compiler to compile C. Since we use `exit',
10735# in C++ we need to declare it. In case someone uses the same compiler
10736# for both compiling C and C++ we need to have the C++ compiler decide
10737# the declaration of exit, since it's the most demanding environment.
10738cat >conftest.$ac_ext <<_ACEOF
10739#ifndef __cplusplus
10740 choke me
10741#endif
10742_ACEOF
10743rm -f conftest.$ac_objext
10744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10745 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10746 ac_status=$?
eea650d8
VS
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
e6cc62c6
VS
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
eea650d8
VS
10752 { ac_try='test -z "$ac_c_werror_flag"
10753 || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 for ac_declaration in \
eea650d8 10766 '' \
e6cc62c6
VS
10767 'extern "C" void std::exit (int) throw (); using std::exit;' \
10768 'extern "C" void std::exit (int); using std::exit;' \
10769 'extern "C" void exit (int) throw ();' \
10770 'extern "C" void exit (int);' \
10771 'void exit (int);'
10772do
10773 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10774/* confdefs.h. */
10775_ACEOF
10776cat confdefs.h >>conftest.$ac_ext
10777cat >>conftest.$ac_ext <<_ACEOF
10778/* end confdefs.h. */
130711ba 10779$ac_declaration
eea650d8 10780#include <stdlib.h>
e6cc62c6
VS
10781int
10782main ()
10783{
10784exit (42);
10785 ;
10786 return 0;
10787}
10788_ACEOF
10789rm -f conftest.$ac_objext
10790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10791 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10792 ac_status=$?
eea650d8
VS
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
e6cc62c6
VS
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
eea650d8
VS
10798 { ac_try='test -z "$ac_c_werror_flag"
10799 || test ! -s conftest.err'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 :
10812else
10813 echo "$as_me: failed program was:" >&5
10814sed 's/^/| /' conftest.$ac_ext >&5
10815
10816continue
10817fi
eea650d8 10818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10819 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10820/* confdefs.h. */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h. */
10825$ac_declaration
10826int
10827main ()
10828{
10829exit (42);
10830 ;
10831 return 0;
10832}
10833_ACEOF
10834rm -f conftest.$ac_objext
10835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10836 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10837 ac_status=$?
eea650d8
VS
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
e6cc62c6
VS
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
eea650d8
VS
10843 { ac_try='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 break
10857else
10858 echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5
10860
10861fi
eea650d8 10862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10863done
10864rm -f conftest*
10865if test -n "$ac_declaration"; then
10866 echo '#ifdef __cplusplus' >>confdefs.h
10867 echo $ac_declaration >>confdefs.h
10868 echo '#endif' >>confdefs.h
10869fi
10870
10871else
10872 echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875fi
eea650d8 10876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10877ac_ext=c
10878ac_cpp='$CPP $CPPFLAGS'
10879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10882
10883
e6cc62c6
VS
10884
10885ac_ext=c
10886ac_cpp='$CPP $CPPFLAGS'
10887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10891echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10892# On Suns, sometimes $CPP names a directory.
10893if test -n "$CPP" && test -d "$CPP"; then
10894 CPP=
10895fi
10896if test -z "$CPP"; then
e6cc62c6
VS
10897 if test "${ac_cv_prog_CPP+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899else
10900 # Double quotes because CPP needs to be expanded
10901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10902 do
10903 ac_preproc_ok=false
10904for ac_c_preproc_warn_flag in '' yes
10905do
10906 # Use a header file that comes with gcc, so configuring glibc
10907 # with a fresh cross-compiler works.
10908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 # <limits.h> exists even on freestanding compilers.
10f2d63a 10910 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10911 # not just through cpp. "Syntax error" is here to catch this case.
10912 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10913/* confdefs.h. */
10914_ACEOF
10915cat confdefs.h >>conftest.$ac_ext
10916cat >>conftest.$ac_ext <<_ACEOF
10917/* end confdefs.h. */
10918#ifdef __STDC__
10919# include <limits.h>
10920#else
10921# include <assert.h>
10922#endif
eea650d8 10923 Syntax error
e6cc62c6
VS
10924_ACEOF
10925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } >/dev/null; then
10933 if test -s conftest.err; then
10934 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 10935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10936 else
10937 ac_cpp_err=
10938 fi
10f2d63a 10939else
e6cc62c6
VS
10940 ac_cpp_err=yes
10941fi
10942if test -z "$ac_cpp_err"; then
a0b9e27f 10943 :
247f5006 10944else
e6cc62c6
VS
10945 echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 # Broken: fails on valid input.
10949continue
10950fi
10951rm -f conftest.err conftest.$ac_ext
10952
10953 # OK, works on sane cases. Now check whether non-existent headers
10954 # can be detected and how.
10955 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10956/* confdefs.h. */
10957_ACEOF
10958cat confdefs.h >>conftest.$ac_ext
10959cat >>conftest.$ac_ext <<_ACEOF
10960/* end confdefs.h. */
10961#include <ac_nonexistent.h>
10962_ACEOF
10963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } >/dev/null; then
10971 if test -s conftest.err; then
10972 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 10973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10974 else
10975 ac_cpp_err=
10976 fi
10f2d63a 10977else
e6cc62c6 10978 ac_cpp_err=yes
579d8138 10979fi
e6cc62c6
VS
10980if test -z "$ac_cpp_err"; then
10981 # Broken: success on invalid input.
10982continue
10983else
10984 echo "$as_me: failed program was:" >&5
10985sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 # Passes both tests.
10988ac_preproc_ok=:
10989break
52127426 10990fi
e6cc62c6
VS
10991rm -f conftest.err conftest.$ac_ext
10992
10993done
10994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10995rm -f conftest.err conftest.$ac_ext
10996if $ac_preproc_ok; then
10997 break
8284b0c5 10998fi
e6cc62c6
VS
10999
11000 done
11001 ac_cv_prog_CPP=$CPP
11002
11003fi
11004 CPP=$ac_cv_prog_CPP
11005else
11006 ac_cv_prog_CPP=$CPP
11007fi
11008echo "$as_me:$LINENO: result: $CPP" >&5
11009echo "${ECHO_T}$CPP" >&6
11010ac_preproc_ok=false
11011for ac_c_preproc_warn_flag in '' yes
11012do
11013 # Use a header file that comes with gcc, so configuring glibc
11014 # with a fresh cross-compiler works.
11015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016 # <limits.h> exists even on freestanding compilers.
11017 # On the NeXT, cc -E runs the code through the compiler's parser,
11018 # not just through cpp. "Syntax error" is here to catch this case.
11019 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11020/* confdefs.h. */
11021_ACEOF
11022cat confdefs.h >>conftest.$ac_ext
11023cat >>conftest.$ac_ext <<_ACEOF
11024/* end confdefs.h. */
11025#ifdef __STDC__
11026# include <limits.h>
11027#else
11028# include <assert.h>
11029#endif
eea650d8 11030 Syntax error
e6cc62c6
VS
11031_ACEOF
11032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } >/dev/null; then
11040 if test -s conftest.err; then
11041 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 11042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11043 else
11044 ac_cpp_err=
11045 fi
11046else
11047 ac_cpp_err=yes
11048fi
11049if test -z "$ac_cpp_err"; then
11050 :
11051else
11052 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 # Broken: fails on valid input.
11056continue
11057fi
11058rm -f conftest.err conftest.$ac_ext
11059
11060 # OK, works on sane cases. Now check whether non-existent headers
11061 # can be detected and how.
11062 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11063/* confdefs.h. */
11064_ACEOF
11065cat confdefs.h >>conftest.$ac_ext
11066cat >>conftest.$ac_ext <<_ACEOF
11067/* end confdefs.h. */
11068#include <ac_nonexistent.h>
11069_ACEOF
11070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } >/dev/null; then
11078 if test -s conftest.err; then
11079 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 11080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11081 else
11082 ac_cpp_err=
11083 fi
11084else
11085 ac_cpp_err=yes
11086fi
11087if test -z "$ac_cpp_err"; then
11088 # Broken: success on invalid input.
11089continue
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 # Passes both tests.
11095ac_preproc_ok=:
11096break
a0b9e27f 11097fi
e6cc62c6
VS
11098rm -f conftest.err conftest.$ac_ext
11099
11100done
11101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11102rm -f conftest.err conftest.$ac_ext
11103if $ac_preproc_ok; then
11104 :
11105else
11106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11107See \`config.log' for more details." >&5
11108echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11109See \`config.log' for more details." >&2;}
11110 { (exit 1); exit 1; }; }
11111fi
11112
11113ac_ext=c
11114ac_cpp='$CPP $CPPFLAGS'
11115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118
11119
11120echo "$as_me:$LINENO: checking for egrep" >&5
11121echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11122if test "${ac_cv_prog_egrep+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11124else
e6cc62c6
VS
11125 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11126 then ac_cv_prog_egrep='grep -E'
11127 else ac_cv_prog_egrep='egrep'
11128 fi
10f2d63a 11129fi
e6cc62c6
VS
11130echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11131echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11132 EGREP=$ac_cv_prog_egrep
11133
10f2d63a 11134
e6cc62c6
VS
11135if test $ac_cv_c_compiler_gnu = yes; then
11136 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11137echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11138if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11140else
11141 ac_pattern="Autoconf.*'x'"
e6cc62c6 11142 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
10f2d63a
VZ
11148#include <sgtty.h>
11149Autoconf TIOCGETP
e6cc62c6 11150_ACEOF
10f2d63a 11151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11152 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11153 ac_cv_prog_gcc_traditional=yes
11154else
10f2d63a
VZ
11155 ac_cv_prog_gcc_traditional=no
11156fi
11157rm -f conftest*
11158
8284b0c5 11159
10f2d63a 11160 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11161 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
10f2d63a
VZ
11167#include <termio.h>
11168Autoconf TCGETA
e6cc62c6 11169_ACEOF
10f2d63a 11170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11171 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11172 ac_cv_prog_gcc_traditional=yes
11173fi
11174rm -f conftest*
11175
11176 fi
11177fi
e6cc62c6
VS
11178echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11179echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11180 if test $ac_cv_prog_gcc_traditional = yes; then
11181 CC="$CC -traditional"
11182 fi
11183fi
11184
8284b0c5
MB
11185
11186
e6cc62c6
VS
11187
11188ac_ext=cc
1e487827 11189ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11193
698dcdb6 11194
ec603395 11195CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11196ac_ext=cc
11197ac_cpp='$CXXCPP $CPPFLAGS'
11198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11201if test -n "$ac_tool_prefix"; then
11202 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11203 do
11204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11206echo "$as_me:$LINENO: checking for $ac_word" >&5
11207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11208if test "${ac_cv_prog_CXX+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11210else
11211 if test -n "$CXX"; then
11212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11213else
e6cc62c6
VS
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225done
11226done
11227
10f2d63a
VZ
11228fi
11229fi
e6cc62c6 11230CXX=$ac_cv_prog_CXX
10f2d63a 11231if test -n "$CXX"; then
e6cc62c6
VS
11232 echo "$as_me:$LINENO: result: $CXX" >&5
11233echo "${ECHO_T}$CXX" >&6
10f2d63a 11234else
e6cc62c6
VS
11235 echo "$as_me:$LINENO: result: no" >&5
11236echo "${ECHO_T}no" >&6
10f2d63a
VZ
11237fi
11238
e6cc62c6
VS
11239 test -n "$CXX" && break
11240 done
11241fi
11242if test -z "$CXX"; then
11243 ac_ct_CXX=$CXX
11244 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11245do
11246 # Extract the first word of "$ac_prog", so it can be a program name with args.
11247set dummy $ac_prog; ac_word=$2
11248echo "$as_me:$LINENO: checking for $ac_word" >&5
11249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11250if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252else
11253 if test -n "$ac_ct_CXX"; then
11254 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_ac_ct_CXX="$ac_prog"
11264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267done
10f2d63a 11268done
a0b9e27f 11269
8284b0c5 11270fi
a0b9e27f 11271fi
e6cc62c6
VS
11272ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11273if test -n "$ac_ct_CXX"; then
11274 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11275echo "${ECHO_T}$ac_ct_CXX" >&6
11276else
11277 echo "$as_me:$LINENO: result: no" >&5
11278echo "${ECHO_T}no" >&6
a0b9e27f 11279fi
10f2d63a 11280
e6cc62c6
VS
11281 test -n "$ac_ct_CXX" && break
11282done
11283test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11284
11285 CXX=$ac_ct_CXX
11286fi
11287
11288
11289# Provide some information about the compiler.
11290echo "$as_me:$LINENO:" \
11291 "checking for C++ compiler version" >&5
11292ac_compiler=`set X $ac_compile; echo $2`
11293{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11294 (eval $ac_compiler --version </dev/null >&5) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }
11298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11299 (eval $ac_compiler -v </dev/null >&5) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }
11303{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11304 (eval $ac_compiler -V </dev/null >&5) 2>&5
11305 ac_status=$?
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }
11308
11309echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11310echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11311if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313else
11314 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
11320
11321int
11322main ()
11323{
11324#ifndef __GNUC__
11325 choke me
11326#endif
10f2d63a 11327
e6cc62c6
VS
11328 ;
11329 return 0;
11330}
11331_ACEOF
11332rm -f conftest.$ac_objext
11333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11334 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11335 ac_status=$?
eea650d8
VS
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
e6cc62c6
VS
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
eea650d8
VS
11341 { ac_try='test -z "$ac_cxx_werror_flag"
11342 || test ! -s conftest.err'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 ac_compiler_gnu=yes
11355else
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359ac_compiler_gnu=no
11360fi
eea650d8 11361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11362ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11363
11364fi
11365echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11366echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11367GXX=`test $ac_compiler_gnu = yes && echo yes`
11368ac_test_CXXFLAGS=${CXXFLAGS+set}
11369ac_save_CXXFLAGS=$CXXFLAGS
11370CXXFLAGS="-g"
11371echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11372echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11373if test "${ac_cv_prog_cxx_g+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375else
11376 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382
11383int
11384main ()
11385{
f09359cf 11386
e6cc62c6
VS
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext
11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11393 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11394 ac_status=$?
eea650d8
VS
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
e6cc62c6
VS
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
eea650d8
VS
11400 { ac_try='test -z "$ac_cxx_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
10f2d63a
VZ
11413 ac_cv_prog_cxx_g=yes
11414else
e6cc62c6
VS
11415 echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11417
e6cc62c6 11418ac_cv_prog_cxx_g=no
10f2d63a 11419fi
eea650d8 11420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11421fi
11422echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11423echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11424if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11425 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11426elif test $ac_cv_prog_cxx_g = yes; then
11427 if test "$GXX" = yes; then
10f2d63a
VZ
11428 CXXFLAGS="-g -O2"
11429 else
f09359cf 11430 CXXFLAGS="-g"
10f2d63a 11431 fi
5c0a20c3 11432else
f09359cf
VS
11433 if test "$GXX" = yes; then
11434 CXXFLAGS="-O2"
11435 else
11436 CXXFLAGS=
11437 fi
10f2d63a 11438fi
e6cc62c6 11439for ac_declaration in \
eea650d8 11440 '' \
e6cc62c6
VS
11441 'extern "C" void std::exit (int) throw (); using std::exit;' \
11442 'extern "C" void std::exit (int); using std::exit;' \
11443 'extern "C" void exit (int) throw ();' \
11444 'extern "C" void exit (int);' \
11445 'void exit (int);'
11446do
11447 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
130711ba 11453$ac_declaration
eea650d8 11454#include <stdlib.h>
e6cc62c6
VS
11455int
11456main ()
11457{
11458exit (42);
11459 ;
11460 return 0;
11461}
11462_ACEOF
11463rm -f conftest.$ac_objext
11464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11465 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11466 ac_status=$?
eea650d8
VS
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
e6cc62c6
VS
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
eea650d8
VS
11472 { ac_try='test -z "$ac_cxx_werror_flag"
11473 || test ! -s conftest.err'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
11485 :
11486else
11487 echo "$as_me: failed program was:" >&5
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
11490continue
11491fi
eea650d8 11492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11493 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11494/* confdefs.h. */
11495_ACEOF
11496cat confdefs.h >>conftest.$ac_ext
11497cat >>conftest.$ac_ext <<_ACEOF
11498/* end confdefs.h. */
11499$ac_declaration
11500int
11501main ()
11502{
11503exit (42);
11504 ;
11505 return 0;
11506}
11507_ACEOF
11508rm -f conftest.$ac_objext
11509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11510 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11511 ac_status=$?
eea650d8
VS
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
e6cc62c6
VS
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
eea650d8
VS
11517 { ac_try='test -z "$ac_cxx_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 break
11531else
11532 echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535fi
eea650d8 11536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11537done
11538rm -f conftest*
11539if test -n "$ac_declaration"; then
11540 echo '#ifdef __cplusplus' >>confdefs.h
11541 echo $ac_declaration >>confdefs.h
11542 echo '#endif' >>confdefs.h
11543fi
11544
11545ac_ext=cc
11546ac_cpp='$CXXCPP $CPPFLAGS'
11547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11550
11551
10f2d63a 11552ac_ext=c
10f2d63a 11553ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11557
11558
e6cc62c6
VS
11559if test -n "$ac_tool_prefix"; then
11560 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11561set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11562echo "$as_me:$LINENO: checking for $ac_word" >&5
11563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11564if test "${ac_cv_prog_RANLIB+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11566else
11567 if test -n "$RANLIB"; then
11568 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11569else
e6cc62c6
VS
11570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571for as_dir in $PATH
11572do
11573 IFS=$as_save_IFS
11574 test -z "$as_dir" && as_dir=.
11575 for ac_exec_ext in '' $ac_executable_extensions; do
11576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11577 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 break 2
11580 fi
11581done
11582done
11583
10f2d63a
VZ
11584fi
11585fi
e6cc62c6 11586RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11587if test -n "$RANLIB"; then
e6cc62c6
VS
11588 echo "$as_me:$LINENO: result: $RANLIB" >&5
11589echo "${ECHO_T}$RANLIB" >&6
11590else
11591 echo "$as_me:$LINENO: result: no" >&5
11592echo "${ECHO_T}no" >&6
11593fi
11594
11595fi
11596if test -z "$ac_cv_prog_RANLIB"; then
11597 ac_ct_RANLIB=$RANLIB
11598 # Extract the first word of "ranlib", so it can be a program name with args.
11599set dummy ranlib; ac_word=$2
11600echo "$as_me:$LINENO: checking for $ac_word" >&5
11601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11602if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11604else
e6cc62c6
VS
11605 if test -n "$ac_ct_RANLIB"; then
11606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_ac_ct_RANLIB="ranlib"
11616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619done
11620done
11621
11622 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11623fi
11624fi
11625ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11626if test -n "$ac_ct_RANLIB"; then
11627 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11628echo "${ECHO_T}$ac_ct_RANLIB" >&6
11629else
11630 echo "$as_me:$LINENO: result: no" >&5
11631echo "${ECHO_T}no" >&6
11632fi
11633
11634 RANLIB=$ac_ct_RANLIB
11635else
11636 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11637fi
11638
10f2d63a
VZ
11639
11640# Extract the first word of "ar", so it can be a program name with args.
11641set dummy ar; ac_word=$2
e6cc62c6
VS
11642echo "$as_me:$LINENO: checking for $ac_word" >&5
11643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11644if test "${ac_cv_prog_AR+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11646else
11647 if test -n "$AR"; then
11648 ac_cv_prog_AR="$AR" # Let the user override the test.
11649else
e6cc62c6
VS
11650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651for as_dir in $PATH
11652do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657 ac_cv_prog_AR="ar"
11658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11660 fi
11661done
11662done
11663
10f2d63a
VZ
11664fi
11665fi
e6cc62c6 11666AR=$ac_cv_prog_AR
10f2d63a 11667if test -n "$AR"; then
e6cc62c6
VS
11668 echo "$as_me:$LINENO: result: $AR" >&5
11669echo "${ECHO_T}$AR" >&6
10f2d63a 11670else
e6cc62c6
VS
11671 echo "$as_me:$LINENO: result: no" >&5
11672echo "${ECHO_T}no" >&6
10f2d63a
VZ
11673fi
11674
911740e7
VS
11675if test "x$AR" = "x" ; then
11676 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11677echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11678 { (exit 1); exit 1; }; }
11679fi
8284b0c5 11680
6054113a 11681# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11682# so one script is as good as another. But avoid the broken or
11683# incompatible versions:
11684# SysV /etc/install, /usr/sbin/install
11685# SunOS /usr/etc/install
11686# IRIX /sbin/install
11687# AIX /bin/install
e6cc62c6 11688# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
eea650d8 11692# OS/2's system install, which has a completely different semantic
10f2d63a 11693# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11694echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11695echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11696if test -z "$INSTALL"; then
e6cc62c6
VS
11697if test "${ac_cv_path_install+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699else
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 # Account for people who put trailing slashes in PATH elements.
11706case $as_dir/ in
11707 ./ | .// | /cC/* | \
11708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
eea650d8 11709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11710 /usr/ucb/* ) ;;
11711 *)
11712 # OSF1 and SCO ODT 3.0 have their own names for install.
11713 # Don't use installbsd from OSF since it installs stuff as root
11714 # by default.
11715 for ac_prog in ginstall scoinst install; do
11716 for ac_exec_ext in '' $ac_executable_extensions; do
eea650d8
VS
11717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11718 if test $ac_prog = install &&
11719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11720 # AIX install. It has an incompatible calling convention.
11721 :
11722 elif test $ac_prog = install &&
11723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11724 # program-specific install script used by HP pwplus--don't use.
11725 :
11726 else
11727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11728 break 3
11729 fi
11730 fi
10f2d63a 11731 done
e6cc62c6
VS
11732 done
11733 ;;
11734esac
11735done
11736
10f2d63a
VZ
11737
11738fi
11739 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11740 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11741 else
11742 # As a last resort, use the slow shell script. We don't cache a
11743 # path for INSTALL within a source directory, because that will
11744 # break other packages using the cache if that directory is
11745 # removed, or if the path is relative.
e6cc62c6 11746 INSTALL=$ac_install_sh
10f2d63a
VZ
11747 fi
11748fi
e6cc62c6
VS
11749echo "$as_me:$LINENO: result: $INSTALL" >&5
11750echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11751
11752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11753# It thinks the first close brace ends the variable substitution.
11754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11755
e6cc62c6 11756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11757
10f2d63a
VZ
11758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11759
8284b0c5 11760
1d1b75ac
VZ
11761case ${INSTALL} in
11762 /* ) # Absolute
11763 ;;
4f5a7f74
VZ
11764 ?:* ) # Drive letter, considered as absolute.
11765 ;;
3bd8fb5f 11766 *)
1d1b75ac
VZ
11767 INSTALL=`pwd`/${INSTALL} ;;
11768esac
11769
4f5a7f74
VZ
11770case ${host} in
11771 *-hp-hpux* )
11772 INSTALL_DIR="mkdir"
11773 ;;
11774
11775 *) INSTALL_DIR="$INSTALL -d"
11776 ;;
11777esac
11778
8284b0c5 11779
6054113a
GD
11780case "${host}" in
11781
b5853384 11782 powerpc-*-darwin* )
eb99ae0b
GD
11783 INSTALL_PROGRAM="cp -fp"
11784 INSTALL_DATA="cp -fp"
6054113a
GD
11785 ;;
11786 *)
11787 ;;
d6853540 11788esac
698dcdb6 11789
10f2d63a
VZ
11790# Extract the first word of "strip", so it can be a program name with args.
11791set dummy strip; ac_word=$2
e6cc62c6
VS
11792echo "$as_me:$LINENO: checking for $ac_word" >&5
11793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11794if test "${ac_cv_prog_STRIP+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11796else
11797 if test -n "$STRIP"; then
11798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11799else
e6cc62c6
VS
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_STRIP="strip"
11808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11810 fi
11811done
11812done
11813
10f2d63a
VZ
11814 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11815fi
11816fi
e6cc62c6 11817STRIP=$ac_cv_prog_STRIP
10f2d63a 11818if test -n "$STRIP"; then
e6cc62c6
VS
11819 echo "$as_me:$LINENO: result: $STRIP" >&5
11820echo "${ECHO_T}$STRIP" >&6
10f2d63a 11821else
e6cc62c6
VS
11822 echo "$as_me:$LINENO: result: no" >&5
11823echo "${ECHO_T}no" >&6
10f2d63a
VZ
11824fi
11825
5c6fa7d2 11826
e6cc62c6
VS
11827echo "$as_me:$LINENO: checking if make is GNU make" >&5
11828echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11829if test "${wx_cv_prog_makeisgnu+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11831else
e6cc62c6 11832
414eab6d 11833 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11834 egrep -s GNU > /dev/null); then
414eab6d
VZ
11835 wx_cv_prog_makeisgnu="yes"
11836 else
11837 wx_cv_prog_makeisgnu="no"
11838 fi
11839
11840fi
e6cc62c6
VS
11841echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11842echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11843
11844if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11845 IF_GNU_MAKE=""
11846else
11847 IF_GNU_MAKE="#"
11848fi
11849
8284b0c5
MB
11850
11851
414eab6d 11852if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11853echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11854echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11855if test "${wx_cv_prog_makevpath+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11857else
e6cc62c6 11858
10f2d63a
VZ
11859cat - << EOF > confMake
11860check : file
11861 cp \$? \$@
11862 cp \$? final_file
11863EOF
11864
11865if test ! -d sub ; then
11866 mkdir sub
11867fi
11868echo dummy > sub/file
f6bcfd97 11869${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11870RESULT=$?
11871rm -f sub/file check final_file confMake
11872rmdir sub
11873if test "$RESULT" = 0; then
04e7a216 11874 wx_cv_prog_makevpath="yes"
10f2d63a 11875else
04e7a216
VZ
11876 wx_cv_prog_makevpath="no"
11877fi
11878
11879fi
e6cc62c6
VS
11880echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11881echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11882
11883if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11884{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11885You need a make-utility that is able to use the variable
11886VPATH correctly.
11887If your version of make does not support VPATH correctly,
11888please install GNU-make (possibly as gmake), and start
11889configure with the following command:
11890export MAKE=gmake; ./configure for sh-type shells
11891setenv MAKE gmake; ./configure for csh-type shells
11892Also please do remember to use gmake in this case every time
11893you are trying to compile.
e6cc62c6
VS
11894" >&5
11895echo "$as_me: error:
11896You need a make-utility that is able to use the variable
11897VPATH correctly.
11898If your version of make does not support VPATH correctly,
11899please install GNU-make (possibly as gmake), and start
11900configure with the following command:
11901export MAKE=gmake; ./configure for sh-type shells
11902setenv MAKE gmake; ./configure for csh-type shells
11903Also please do remember to use gmake in this case every time
11904you are trying to compile.
11905" >&2;}
11906 { (exit 1); exit 1; }; }
11907fi fi
e6cc62c6
VS
11908echo "$as_me:$LINENO: checking whether ln -s works" >&5
11909echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11910LN_S=$as_ln_s
11911if test "$LN_S" = "ln -s"; then
11912 echo "$as_me:$LINENO: result: yes" >&5
11913echo "${ECHO_T}yes" >&6
10f2d63a 11914else
e6cc62c6
VS
11915 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11916echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11917fi
5c6fa7d2 11918
247f5006 11919
2b5f62a0
VZ
11920case "${host}" in
11921 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11922 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11923 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11924echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11925if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11927else
e6cc62c6 11928 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11929LIBS="-lcExt $LIBS"
e6cc62c6 11930cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11931/* confdefs.h. */
11932_ACEOF
11933cat confdefs.h >>conftest.$ac_ext
11934cat >>conftest.$ac_ext <<_ACEOF
11935/* end confdefs.h. */
11936
2b5f62a0 11937/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11938#ifdef __cplusplus
11939extern "C"
11940#endif
2b5f62a0 11941/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11942 builtin and then its argument prototype would still apply. */
11943char drand48 ();
11944int
11945main ()
11946{
11947drand48 ();
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952rm -f conftest.$ac_objext conftest$ac_exeext
11953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 11954 (eval $ac_link) 2>conftest.er1
e6cc62c6 11955 ac_status=$?
eea650d8
VS
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
e6cc62c6
VS
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
eea650d8
VS
11961 { ac_try='test -z "$ac_c_werror_flag"
11962 || test ! -s conftest.err'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 ac_cv_lib_cExt_drand48=yes
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979ac_cv_lib_cExt_drand48=no
11980fi
eea650d8
VS
11981rm -f conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11983LIBS=$ac_check_lib_save_LIBS
11984fi
11985echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11986echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11987if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11988 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11989fi
11990
11991 else
11992 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11993 fi
73d617c9
MB
11994 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11995echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11996if test "${wx_cv_gcc3+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999
12000 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
3527f29c 12006
73d617c9
MB
12007int
12008main ()
12009{
12010
12011 #if (__GNUC__ < 3)
12012 #error old gcc
12013 #endif
12014
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext
12020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12021 (eval $ac_compile) 2>conftest.er1
73d617c9 12022 ac_status=$?
eea650d8
VS
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
73d617c9
MB
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
eea650d8
VS
12028 { ac_try='test -z "$ac_c_werror_flag"
12029 || test ! -s conftest.err'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041
12042 wx_cv_gcc3=yes
12043
12044else
12045 echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
12047
12048
12049 wx_cv_gcc3=no
12050
12051
12052fi
eea650d8 12053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
12054
12055fi
12056echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12057echo "${ECHO_T}$wx_cv_gcc3" >&6
12058 if test "$wx_cv_gcc3" = "no"; then
12059 LIBS="$LIBS -lstdcpp"
12060 else
12061 LIBS="$LIBS -lstdcxx"
12062 fi
2b5f62a0
VZ
12063 ;;
12064esac
12065
a0b9e27f 12066
01aa5863
VS
12067if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12068 echo "$as_me:$LINENO: checking for strings.h" >&5
12069echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12070if test "${ac_cv_header_strings_h+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072else
12073 ac_cv_header_strings_h=no
12074fi
12075echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12076echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12077 if test "$ac_cv_header_strings_h" = "no"; then
12078 echo "$as_me:$LINENO: result: forced no into cache" >&5
12079echo "${ECHO_T}forced no into cache" >&6
12080 else
12081 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12082echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12083 fi
12084fi
12085echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12086echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12087if test "${ac_cv_header_stdc+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12089else
12090 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
12096#include <stdlib.h>
12097#include <stdarg.h>
12098#include <string.h>
12099#include <float.h>
247f5006 12100
e6cc62c6
VS
12101int
12102main ()
12103{
90dd450c 12104
e6cc62c6
VS
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109rm -f conftest.$ac_objext
12110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12111 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12112 ac_status=$?
eea650d8
VS
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
e6cc62c6
VS
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
eea650d8
VS
12118 { ac_try='test -z "$ac_c_werror_flag"
12119 || test ! -s conftest.err'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; } &&
12125 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_header_stdc=yes
8284b0c5 12132else
e6cc62c6
VS
12133 echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136ac_cv_header_stdc=no
21d1c967 12137fi
eea650d8 12138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12139
e6cc62c6
VS
12140if test $ac_cv_header_stdc = yes; then
12141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12142 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
12148#include <string.h>
12149
12150_ACEOF
12151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152 $EGREP "memchr" >/dev/null 2>&1; then
12153 :
12154else
12155 ac_cv_header_stdc=no
3a922bb4 12156fi
a0b9e27f 12157rm -f conftest*
e6cc62c6 12158
90dd450c 12159fi
e6cc62c6
VS
12160
12161if test $ac_cv_header_stdc = yes; then
12162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12163 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169#include <stdlib.h>
12170
12171_ACEOF
12172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173 $EGREP "free" >/dev/null 2>&1; then
12174 :
a0b9e27f 12175else
e6cc62c6 12176 ac_cv_header_stdc=no
21d1c967 12177fi
e6cc62c6 12178rm -f conftest*
247f5006
VZ
12179
12180fi
e6cc62c6
VS
12181
12182if test $ac_cv_header_stdc = yes; then
12183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12184 if test "$cross_compiling" = yes; then
12185 :
12186else
12187 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193#include <ctype.h>
12194#if ((' ' & 0x0FF) == 0x020)
12195# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12196# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12197#else
12198# define ISLOWER(c) \
eea650d8
VS
12199 (('a' <= (c) && (c) <= 'i') \
12200 || ('j' <= (c) && (c) <= 'r') \
12201 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12202# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12203#endif
12204
12205#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12206int
12207main ()
12208{
12209 int i;
12210 for (i = 0; i < 256; i++)
12211 if (XOR (islower (i), ISLOWER (i))
eea650d8 12212 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12213 exit(2);
12214 exit (0);
12215}
12216_ACEOF
12217rm -f conftest$ac_exeext
12218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 :
a0b9e27f 12229else
e6cc62c6
VS
12230 echo "$as_me: program exited with status $ac_status" >&5
12231echo "$as_me: failed program was:" >&5
12232sed 's/^/| /' conftest.$ac_ext >&5
12233
12234( exit $ac_status )
12235ac_cv_header_stdc=no
12236fi
eea650d8 12237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12238fi
12239fi
12240fi
12241echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12242echo "${ECHO_T}$ac_cv_header_stdc" >&6
12243if test $ac_cv_header_stdc = yes; then
12244
12245cat >>confdefs.h <<\_ACEOF
12246#define STDC_HEADERS 1
12247_ACEOF
12248
a0b9e27f 12249fi
e6cc62c6
VS
12250
12251# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
eea650d8 12262 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12263do
12264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12265echo "$as_me:$LINENO: checking for $ac_header" >&5
12266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12267if eval "test \"\${$as_ac_Header+set}\" = set"; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269else
12270 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */
12276$ac_includes_default
12277
12278#include <$ac_header>
12279_ACEOF
12280rm -f conftest.$ac_objext
12281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12282 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12283 ac_status=$?
eea650d8
VS
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
e6cc62c6
VS
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
eea650d8
VS
12289 { ac_try='test -z "$ac_c_werror_flag"
12290 || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 eval "$as_ac_Header=yes"
12303else
12304 echo "$as_me: failed program was:" >&5
12305sed 's/^/| /' conftest.$ac_ext >&5
12306
12307eval "$as_ac_Header=no"
12308fi
eea650d8 12309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12310fi
12311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313if test `eval echo '${'$as_ac_Header'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12316_ACEOF
12317
12318fi
12319
a0b9e27f 12320done
90dd450c 12321
e6cc62c6
VS
12322
12323
12324for ac_header in strings.h
21d1c967 12325do
e6cc62c6
VS
12326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12327if eval "test \"\${$as_ac_Header+set}\" = set"; then
12328 echo "$as_me:$LINENO: checking for $ac_header" >&5
12329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12330if eval "test \"\${$as_ac_Header+set}\" = set"; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332fi
12333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12335else
12336 # Is the header compilable?
12337echo "$as_me:$LINENO: checking $ac_header usability" >&5
12338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12339cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12340/* confdefs.h. */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h. */
12345$ac_includes_default
12346#include <$ac_header>
12347_ACEOF
12348rm -f conftest.$ac_objext
12349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12350 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12351 ac_status=$?
eea650d8
VS
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
e6cc62c6
VS
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
eea650d8
VS
12357 { ac_try='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_header_compiler=yes
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375ac_header_compiler=no
12376fi
eea650d8 12377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12379echo "${ECHO_T}$ac_header_compiler" >&6
12380
12381# Is the header present?
12382echo "$as_me:$LINENO: checking $ac_header presence" >&5
12383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12384cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12385/* confdefs.h. */
12386_ACEOF
12387cat confdefs.h >>conftest.$ac_ext
12388cat >>conftest.$ac_ext <<_ACEOF
12389/* end confdefs.h. */
12390#include <$ac_header>
12391_ACEOF
12392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } >/dev/null; then
12400 if test -s conftest.err; then
12401 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12403 else
12404 ac_cpp_err=
12405 fi
12406else
12407 ac_cpp_err=yes
12408fi
12409if test -z "$ac_cpp_err"; then
12410 ac_header_preproc=yes
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_header_preproc=no
12416fi
12417rm -f conftest.err conftest.$ac_ext
12418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12419echo "${ECHO_T}$ac_header_preproc" >&6
12420
12421# So? What about this header?
eea650d8
VS
12422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12423 yes:no: )
e6cc62c6
VS
12424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12428 ac_header_preproc=yes
e6cc62c6 12429 ;;
eea650d8 12430 no:yes:* )
e6cc62c6
VS
12431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12443 (
12444 cat <<\_ASBOX
eea650d8
VS
12445## ----------------------------------------- ##
12446## Report this to wx-dev@lists.wxwindows.org ##
12447## ----------------------------------------- ##
e6cc62c6
VS
12448_ASBOX
12449 ) |
12450 sed "s/^/$as_me: WARNING: /" >&2
12451 ;;
12452esac
12453echo "$as_me:$LINENO: checking for $ac_header" >&5
12454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12455if eval "test \"\${$as_ac_Header+set}\" = set"; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
eea650d8 12458 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 12459fi
e6cc62c6
VS
12460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12462
a0b9e27f 12463fi
e6cc62c6
VS
12464if test `eval echo '${'$as_ac_Header'}'` = yes; then
12465 cat >>confdefs.h <<_ACEOF
12466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12467_ACEOF
12468
12469fi
12470
12471done
12472
e6cc62c6
VS
12473
12474
12475for ac_header in stdlib.h
12476do
12477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478if eval "test \"\${$as_ac_Header+set}\" = set"; then
12479 echo "$as_me:$LINENO: checking for $ac_header" >&5
12480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12481if eval "test \"\${$as_ac_Header+set}\" = set"; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483fi
12484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12486else
12487 # Is the header compilable?
12488echo "$as_me:$LINENO: checking $ac_header usability" >&5
12489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12490cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */
12496$ac_includes_default
12497#include <$ac_header>
12498_ACEOF
12499rm -f conftest.$ac_objext
12500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12501 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12502 ac_status=$?
eea650d8
VS
12503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
e6cc62c6
VS
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
eea650d8
VS
12508 { ac_try='test -z "$ac_c_werror_flag"
12509 || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 ac_header_compiler=yes
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526ac_header_compiler=no
12527fi
eea650d8 12528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12530echo "${ECHO_T}$ac_header_compiler" >&6
12531
12532# Is the header present?
12533echo "$as_me:$LINENO: checking $ac_header presence" >&5
12534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12535cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12536/* confdefs.h. */
12537_ACEOF
12538cat confdefs.h >>conftest.$ac_ext
12539cat >>conftest.$ac_ext <<_ACEOF
12540/* end confdefs.h. */
12541#include <$ac_header>
12542_ACEOF
12543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } >/dev/null; then
12551 if test -s conftest.err; then
12552 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12554 else
12555 ac_cpp_err=
12556 fi
12557else
12558 ac_cpp_err=yes
12559fi
12560if test -z "$ac_cpp_err"; then
12561 ac_header_preproc=yes
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 ac_header_preproc=no
12567fi
12568rm -f conftest.err conftest.$ac_ext
12569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12570echo "${ECHO_T}$ac_header_preproc" >&6
12571
12572# So? What about this header?
eea650d8
VS
12573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12574 yes:no: )
e6cc62c6
VS
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12579 ac_header_preproc=yes
e6cc62c6 12580 ;;
eea650d8 12581 no:yes:* )
e6cc62c6
VS
12582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12594 (
12595 cat <<\_ASBOX
eea650d8
VS
12596## ----------------------------------------- ##
12597## Report this to wx-dev@lists.wxwindows.org ##
12598## ----------------------------------------- ##
e6cc62c6
VS
12599_ASBOX
12600 ) |
12601 sed "s/^/$as_me: WARNING: /" >&2
12602 ;;
12603esac
12604echo "$as_me:$LINENO: checking for $ac_header" >&5
12605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12606if eval "test \"\${$as_ac_Header+set}\" = set"; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12608else
eea650d8 12609 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12610fi
12611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12613
21d1c967 12614fi
e6cc62c6
VS
12615if test `eval echo '${'$as_ac_Header'}'` = yes; then
12616 cat >>confdefs.h <<_ACEOF
12617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12618_ACEOF
12619
12620fi
12621
21d1c967 12622done
4f14bcd8 12623
5c6fa7d2 12624
e6cc62c6 12625for ac_header in malloc.h
21d1c967 12626do
e6cc62c6
VS
12627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12628if eval "test \"\${$as_ac_Header+set}\" = set"; then
12629 echo "$as_me:$LINENO: checking for $ac_header" >&5
12630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12631if eval "test \"\${$as_ac_Header+set}\" = set"; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633fi
12634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12636else
12637 # Is the header compilable?
12638echo "$as_me:$LINENO: checking $ac_header usability" >&5
12639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12640cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646$ac_includes_default
12647#include <$ac_header>
12648_ACEOF
12649rm -f conftest.$ac_objext
12650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12651 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12652 ac_status=$?
eea650d8
VS
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
e6cc62c6
VS
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
eea650d8
VS
12658 { ac_try='test -z "$ac_c_werror_flag"
12659 || test ! -s conftest.err'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 ac_header_compiler=yes
12672else
12673 echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
12676ac_header_compiler=no
12677fi
eea650d8 12678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12680echo "${ECHO_T}$ac_header_compiler" >&6
12681
12682# Is the header present?
12683echo "$as_me:$LINENO: checking $ac_header presence" >&5
12684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12685cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12686/* confdefs.h. */
12687_ACEOF
12688cat confdefs.h >>conftest.$ac_ext
12689cat >>conftest.$ac_ext <<_ACEOF
12690/* end confdefs.h. */
12691#include <$ac_header>
12692_ACEOF
12693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } >/dev/null; then
12701 if test -s conftest.err; then
12702 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12704 else
12705 ac_cpp_err=
12706 fi
12707else
12708 ac_cpp_err=yes
12709fi
12710if test -z "$ac_cpp_err"; then
12711 ac_header_preproc=yes
12712else
12713 echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716 ac_header_preproc=no
12717fi
12718rm -f conftest.err conftest.$ac_ext
12719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12720echo "${ECHO_T}$ac_header_preproc" >&6
12721
12722# So? What about this header?
eea650d8
VS
12723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12724 yes:no: )
e6cc62c6
VS
12725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12729 ac_header_preproc=yes
e6cc62c6 12730 ;;
eea650d8 12731 no:yes:* )
e6cc62c6
VS
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12744 (
12745 cat <<\_ASBOX
eea650d8
VS
12746## ----------------------------------------- ##
12747## Report this to wx-dev@lists.wxwindows.org ##
12748## ----------------------------------------- ##
e6cc62c6
VS
12749_ASBOX
12750 ) |
12751 sed "s/^/$as_me: WARNING: /" >&2
12752 ;;
12753esac
12754echo "$as_me:$LINENO: checking for $ac_header" >&5
12755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12756if eval "test \"\${$as_ac_Header+set}\" = set"; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758else
eea650d8 12759 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12760fi
e6cc62c6
VS
12761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12763
21d1c967 12764fi
e6cc62c6
VS
12765if test `eval echo '${'$as_ac_Header'}'` = yes; then
12766 cat >>confdefs.h <<_ACEOF
12767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12768_ACEOF
12769
12770fi
12771
12772done
12773
12774
12775for ac_header in unistd.h
12776do
12777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12778if eval "test \"\${$as_ac_Header+set}\" = set"; then
12779 echo "$as_me:$LINENO: checking for $ac_header" >&5
12780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12781if eval "test \"\${$as_ac_Header+set}\" = set"; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783fi
12784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12786else
12787 # Is the header compilable?
12788echo "$as_me:$LINENO: checking $ac_header usability" >&5
12789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12790cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796$ac_includes_default
12797#include <$ac_header>
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12801 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12802 ac_status=$?
eea650d8
VS
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
e6cc62c6
VS
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
eea650d8
VS
12808 { ac_try='test -z "$ac_c_werror_flag"
12809 || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 ac_header_compiler=yes
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826ac_header_compiler=no
12827fi
eea650d8 12828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830echo "${ECHO_T}$ac_header_compiler" >&6
12831
12832# Is the header present?
12833echo "$as_me:$LINENO: checking $ac_header presence" >&5
12834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12835cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841#include <$ac_header>
12842_ACEOF
12843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } >/dev/null; then
12851 if test -s conftest.err; then
12852 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12854 else
12855 ac_cpp_err=
12856 fi
a0b9e27f 12857else
e6cc62c6
VS
12858 ac_cpp_err=yes
12859fi
12860if test -z "$ac_cpp_err"; then
12861 ac_header_preproc=yes
12862else
12863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ac_header_preproc=no
12867fi
12868rm -f conftest.err conftest.$ac_ext
12869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12870echo "${ECHO_T}$ac_header_preproc" >&6
12871
12872# So? What about this header?
eea650d8
VS
12873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12874 yes:no: )
e6cc62c6
VS
12875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12879 ac_header_preproc=yes
e6cc62c6 12880 ;;
eea650d8 12881 no:yes:* )
e6cc62c6
VS
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12894 (
12895 cat <<\_ASBOX
eea650d8
VS
12896## ----------------------------------------- ##
12897## Report this to wx-dev@lists.wxwindows.org ##
12898## ----------------------------------------- ##
e6cc62c6
VS
12899_ASBOX
12900 ) |
12901 sed "s/^/$as_me: WARNING: /" >&2
12902 ;;
12903esac
12904echo "$as_me:$LINENO: checking for $ac_header" >&5
12905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12906if eval "test \"\${$as_ac_Header+set}\" = set"; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908else
eea650d8 12909 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12910fi
12911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12913
12914fi
12915if test `eval echo '${'$as_ac_Header'}'` = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12918_ACEOF
12919
d4158b5d 12920fi
e6cc62c6 12921
21d1c967 12922done
f6bcfd97 12923
e6cc62c6
VS
12924
12925for ac_header in wchar.h
12926do
12927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo "$as_me:$LINENO: checking for $ac_header" >&5
12930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933fi
12934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12936else
12937 # Is the header compilable?
12938echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946$ac_includes_default
12947#include <$ac_header>
12948_ACEOF
12949rm -f conftest.$ac_objext
12950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12951 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12952 ac_status=$?
eea650d8
VS
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
e6cc62c6
VS
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
eea650d8
VS
12958 { ac_try='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_header_compiler=yes
12972else
12973 echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
12976ac_header_compiler=no
12977fi
eea650d8 12978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980echo "${ECHO_T}$ac_header_compiler" >&6
12981
12982# Is the header present?
12983echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12986/* confdefs.h. */
12987_ACEOF
12988cat confdefs.h >>conftest.$ac_ext
12989cat >>conftest.$ac_ext <<_ACEOF
12990/* end confdefs.h. */
12991#include <$ac_header>
12992_ACEOF
12993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } >/dev/null; then
13001 if test -s conftest.err; then
13002 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13004 else
13005 ac_cpp_err=
13006 fi
13007else
13008 ac_cpp_err=yes
13009fi
13010if test -z "$ac_cpp_err"; then
13011 ac_header_preproc=yes
13012else
13013 echo "$as_me: failed program was:" >&5
13014sed 's/^/| /' conftest.$ac_ext >&5
13015
13016 ac_header_preproc=no
13017fi
13018rm -f conftest.err conftest.$ac_ext
13019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020echo "${ECHO_T}$ac_header_preproc" >&6
13021
13022# So? What about this header?
eea650d8
VS
13023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13024 yes:no: )
e6cc62c6
VS
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13029 ac_header_preproc=yes
e6cc62c6 13030 ;;
eea650d8 13031 no:yes:* )
e6cc62c6
VS
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13044 (
13045 cat <<\_ASBOX
eea650d8
VS
13046## ----------------------------------------- ##
13047## Report this to wx-dev@lists.wxwindows.org ##
13048## ----------------------------------------- ##
e6cc62c6
VS
13049_ASBOX
13050 ) |
13051 sed "s/^/$as_me: WARNING: /" >&2
13052 ;;
13053esac
13054echo "$as_me:$LINENO: checking for $ac_header" >&5
13055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13056if eval "test \"\${$as_ac_Header+set}\" = set"; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13058else
eea650d8 13059 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13060fi
13061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13063
90dd450c 13064fi
e6cc62c6
VS
13065if test `eval echo '${'$as_ac_Header'}'` = yes; then
13066 cat >>confdefs.h <<_ACEOF
13067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13068_ACEOF
13069
13070fi
13071
13072done
90dd450c 13073
e6cc62c6
VS
13074
13075if test "$ac_cv_header_wchar_h" != "yes"; then
13076
13077for ac_header in wcstr.h
21d1c967 13078do
e6cc62c6
VS
13079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13080if eval "test \"\${$as_ac_Header+set}\" = set"; then
13081 echo "$as_me:$LINENO: checking for $ac_header" >&5
13082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13083if eval "test \"\${$as_ac_Header+set}\" = set"; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085fi
13086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13088else
13089 # Is the header compilable?
13090echo "$as_me:$LINENO: checking $ac_header usability" >&5
13091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13092cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13093/* confdefs.h. */
13094_ACEOF
13095cat confdefs.h >>conftest.$ac_ext
13096cat >>conftest.$ac_ext <<_ACEOF
13097/* end confdefs.h. */
13098$ac_includes_default
13099#include <$ac_header>
13100_ACEOF
13101rm -f conftest.$ac_objext
13102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13103 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13104 ac_status=$?
eea650d8
VS
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
e6cc62c6
VS
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
eea650d8
VS
13110 { ac_try='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_header_compiler=yes
13124else
13125 echo "$as_me: failed program was:" >&5
13126sed 's/^/| /' conftest.$ac_ext >&5
13127
13128ac_header_compiler=no
13129fi
eea650d8 13130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13132echo "${ECHO_T}$ac_header_compiler" >&6
13133
13134# Is the header present?
13135echo "$as_me:$LINENO: checking $ac_header presence" >&5
13136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13137cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13138/* confdefs.h. */
13139_ACEOF
13140cat confdefs.h >>conftest.$ac_ext
13141cat >>conftest.$ac_ext <<_ACEOF
13142/* end confdefs.h. */
13143#include <$ac_header>
13144_ACEOF
13145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev/null; then
13153 if test -s conftest.err; then
13154 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13156 else
13157 ac_cpp_err=
13158 fi
13159else
13160 ac_cpp_err=yes
13161fi
13162if test -z "$ac_cpp_err"; then
13163 ac_header_preproc=yes
13164else
13165 echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168 ac_header_preproc=no
13169fi
13170rm -f conftest.err conftest.$ac_ext
13171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13172echo "${ECHO_T}$ac_header_preproc" >&6
13173
13174# So? What about this header?
eea650d8
VS
13175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13176 yes:no: )
e6cc62c6
VS
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13181 ac_header_preproc=yes
e6cc62c6 13182 ;;
eea650d8 13183 no:yes:* )
e6cc62c6
VS
13184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13196 (
13197 cat <<\_ASBOX
eea650d8
VS
13198## ----------------------------------------- ##
13199## Report this to wx-dev@lists.wxwindows.org ##
13200## ----------------------------------------- ##
e6cc62c6
VS
13201_ASBOX
13202 ) |
13203 sed "s/^/$as_me: WARNING: /" >&2
13204 ;;
13205esac
13206echo "$as_me:$LINENO: checking for $ac_header" >&5
13207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13208if eval "test \"\${$as_ac_Header+set}\" = set"; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210else
eea650d8 13211 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13212fi
e6cc62c6
VS
13213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13215
4f14bcd8 13216fi
e6cc62c6
VS
13217if test `eval echo '${'$as_ac_Header'}'` = yes; then
13218 cat >>confdefs.h <<_ACEOF
13219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13220_ACEOF
13221
13222fi
13223
13224done
13225
13226fi
13227
13228
13229for ac_header in fnmatch.h
13230do
13231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232if eval "test \"\${$as_ac_Header+set}\" = set"; then
13233 echo "$as_me:$LINENO: checking for $ac_header" >&5
13234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13235if eval "test \"\${$as_ac_Header+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237fi
13238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13240else
13241 # Is the header compilable?
13242echo "$as_me:$LINENO: checking $ac_header usability" >&5
13243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13244cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250$ac_includes_default
13251#include <$ac_header>
13252_ACEOF
13253rm -f conftest.$ac_objext
13254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13255 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13256 ac_status=$?
eea650d8
VS
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
e6cc62c6
VS
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
eea650d8
VS
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_header_compiler=yes
13276else
13277 echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280ac_header_compiler=no
13281fi
eea650d8 13282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284echo "${ECHO_T}$ac_header_compiler" >&6
13285
13286# Is the header present?
13287echo "$as_me:$LINENO: checking $ac_header presence" >&5
13288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13289cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295#include <$ac_header>
13296_ACEOF
13297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null; then
13305 if test -s conftest.err; then
13306 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13308 else
13309 ac_cpp_err=
13310 fi
13311else
13312 ac_cpp_err=yes
13313fi
13314if test -z "$ac_cpp_err"; then
13315 ac_header_preproc=yes
13316else
13317 echo "$as_me: failed program was:" >&5
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
13320 ac_header_preproc=no
13321fi
13322rm -f conftest.err conftest.$ac_ext
13323echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324echo "${ECHO_T}$ac_header_preproc" >&6
13325
13326# So? What about this header?
eea650d8
VS
13327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328 yes:no: )
e6cc62c6
VS
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333 ac_header_preproc=yes
e6cc62c6 13334 ;;
eea650d8 13335 no:yes:* )
e6cc62c6
VS
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13348 (
13349 cat <<\_ASBOX
eea650d8
VS
13350## ----------------------------------------- ##
13351## Report this to wx-dev@lists.wxwindows.org ##
13352## ----------------------------------------- ##
e6cc62c6
VS
13353_ASBOX
13354 ) |
13355 sed "s/^/$as_me: WARNING: /" >&2
13356 ;;
13357esac
13358echo "$as_me:$LINENO: checking for $ac_header" >&5
13359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13362else
eea650d8 13363 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13364fi
13365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13367
21d1c967 13368fi
e6cc62c6
VS
13369if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370 cat >>confdefs.h <<_ACEOF
13371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372_ACEOF
13373
13374fi
13375
21d1c967 13376done
90dd450c 13377
5c6fa7d2 13378
a0b9e27f 13379if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13380
13381for ac_func in fnmatch
21d1c967 13382do
e6cc62c6
VS
13383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13384echo "$as_me:$LINENO: checking for $ac_func" >&5
13385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13386if eval "test \"\${$as_ac_var+set}\" = set"; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
13389 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
eea650d8
VS
13395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13397#define $ac_func innocuous_$ac_func
13398
a0b9e27f 13399/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13400 which can conflict with char $ac_func (); below.
13401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 <limits.h> exists even on freestanding compilers. */
eea650d8 13403
e6cc62c6
VS
13404#ifdef __STDC__
13405# include <limits.h>
13406#else
13407# include <assert.h>
13408#endif
eea650d8
VS
13409
13410#undef $ac_func
13411
a0b9e27f 13412/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13413#ifdef __cplusplus
13414extern "C"
13415{
13416#endif
a0b9e27f 13417/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13418 builtin and then its argument prototype would still apply. */
13419char $ac_func ();
a0b9e27f
MB
13420/* The GNU C library defines this for functions which it implements
13421 to always fail with ENOSYS. Some functions are actually named
13422 something starting with __ and the normal name is an alias. */
13423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13424choke me
13425#else
e6cc62c6
VS
13426char (*f) () = $ac_func;
13427#endif
13428#ifdef __cplusplus
13429}
a0b9e27f
MB
13430#endif
13431
e6cc62c6
VS
13432int
13433main ()
13434{
13435return f != $ac_func;
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext conftest$ac_exeext
13441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 13442 (eval $ac_link) 2>conftest.er1
e6cc62c6 13443 ac_status=$?
eea650d8
VS
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
e6cc62c6
VS
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
eea650d8
VS
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 eval "$as_ac_var=yes"
13463else
13464 echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
13466
13467eval "$as_ac_var=no"
13468fi
eea650d8
VS
13469rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13471fi
13472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13474if test `eval echo '${'$as_ac_var'}'` = yes; then
13475 cat >>confdefs.h <<_ACEOF
13476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477_ACEOF
32832908 13478
21d1c967
GD
13479fi
13480done
90dd450c 13481
a0b9e27f 13482fi
90dd450c 13483
e6cc62c6
VS
13484
13485for ac_header in langinfo.h
21d1c967 13486do
e6cc62c6
VS
13487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13488if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo "$as_me:$LINENO: checking for $ac_header" >&5
13490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493fi
13494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13496else
13497 # Is the header compilable?
13498echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13500cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h. */
13506$ac_includes_default
13507#include <$ac_header>
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13511 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13512 ac_status=$?
eea650d8
VS
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
e6cc62c6
VS
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
eea650d8
VS
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_header_compiler=yes
13532else
13533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536ac_header_compiler=no
13537fi
eea650d8 13538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540echo "${ECHO_T}$ac_header_compiler" >&6
13541
13542# Is the header present?
13543echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13545cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
13551#include <$ac_header>
13552_ACEOF
13553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } >/dev/null; then
13561 if test -s conftest.err; then
13562 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13564 else
13565 ac_cpp_err=
13566 fi
13567else
13568 ac_cpp_err=yes
13569fi
13570if test -z "$ac_cpp_err"; then
13571 ac_header_preproc=yes
13572else
13573 echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 ac_header_preproc=no
13577fi
13578rm -f conftest.err conftest.$ac_ext
13579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580echo "${ECHO_T}$ac_header_preproc" >&6
13581
13582# So? What about this header?
eea650d8
VS
13583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584 yes:no: )
e6cc62c6
VS
13585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589 ac_header_preproc=yes
e6cc62c6 13590 ;;
eea650d8 13591 no:yes:* )
e6cc62c6
VS
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13604 (
13605 cat <<\_ASBOX
eea650d8
VS
13606## ----------------------------------------- ##
13607## Report this to wx-dev@lists.wxwindows.org ##
13608## ----------------------------------------- ##
e6cc62c6
VS
13609_ASBOX
13610 ) |
13611 sed "s/^/$as_me: WARNING: /" >&2
13612 ;;
13613esac
13614echo "$as_me:$LINENO: checking for $ac_header" >&5
13615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13616if eval "test \"\${$as_ac_Header+set}\" = set"; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
eea650d8 13619 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13620fi
e6cc62c6
VS
13621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13623
4f14bcd8 13624fi
e6cc62c6
VS
13625if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626 cat >>confdefs.h <<_ACEOF
13627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13628_ACEOF
13629
21d1c967 13630fi
e6cc62c6 13631
21d1c967 13632done
3a922bb4 13633
8284b0c5 13634
4f5a7f74
VZ
13635case "${host}" in
13636 *-pc-os2_emx | *-pc-os2-emx )
13637 if test $ac_cv_header_langinfo_h = "yes"; then
13638 LIBS="$LIBS -lintl"
13639 fi
13640 ;;
13641esac
1542ea39 13642
a0b9e27f 13643if test "$wxUSE_GUI" = "yes"; then
73d617c9 13644 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13645
eb69fda5 13646for ac_header in X11/Xlib.h
21d1c967 13647do
e6cc62c6
VS
13648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13649if eval "test \"\${$as_ac_Header+set}\" = set"; then
13650 echo "$as_me:$LINENO: checking for $ac_header" >&5
13651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13652if eval "test \"\${$as_ac_Header+set}\" = set"; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654fi
13655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13657else
13658 # Is the header compilable?
13659echo "$as_me:$LINENO: checking $ac_header usability" >&5
13660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13661cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13662/* confdefs.h. */
13663_ACEOF
13664cat confdefs.h >>conftest.$ac_ext
13665cat >>conftest.$ac_ext <<_ACEOF
13666/* end confdefs.h. */
13667$ac_includes_default
13668#include <$ac_header>
13669_ACEOF
13670rm -f conftest.$ac_objext
13671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13672 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13673 ac_status=$?
eea650d8
VS
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
e6cc62c6
VS
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
eea650d8
VS
13679 { ac_try='test -z "$ac_c_werror_flag"
13680 || test ! -s conftest.err'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; } &&
13686 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13692 ac_header_compiler=yes
13693else
13694 echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
13697ac_header_compiler=no
13698fi
eea650d8 13699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13700echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13701echo "${ECHO_T}$ac_header_compiler" >&6
13702
13703# Is the header present?
13704echo "$as_me:$LINENO: checking $ac_header presence" >&5
13705echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13706cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13707/* confdefs.h. */
13708_ACEOF
13709cat confdefs.h >>conftest.$ac_ext
13710cat >>conftest.$ac_ext <<_ACEOF
13711/* end confdefs.h. */
13712#include <$ac_header>
13713_ACEOF
13714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13715 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13722 if test -s conftest.err; then
13723 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13725 else
13726 ac_cpp_err=
13727 fi
13728else
13729 ac_cpp_err=yes
13730fi
13731if test -z "$ac_cpp_err"; then
13732 ac_header_preproc=yes
13733else
13734 echo "$as_me: failed program was:" >&5
13735sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_header_preproc=no
13738fi
13739rm -f conftest.err conftest.$ac_ext
13740echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741echo "${ECHO_T}$ac_header_preproc" >&6
13742
13743# So? What about this header?
eea650d8
VS
13744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 yes:no: )
e6cc62c6
VS
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13747echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13749echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
e6cc62c6 13751 ;;
eea650d8 13752 no:yes:* )
e6cc62c6
VS
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13754echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13756echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13758echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13760echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13764echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13765 (
13766 cat <<\_ASBOX
eea650d8
VS
13767## ----------------------------------------- ##
13768## Report this to wx-dev@lists.wxwindows.org ##
13769## ----------------------------------------- ##
e6cc62c6
VS
13770_ASBOX
13771 ) |
13772 sed "s/^/$as_me: WARNING: /" >&2
13773 ;;
13774esac
13775echo "$as_me:$LINENO: checking for $ac_header" >&5
13776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13777if eval "test \"\${$as_ac_Header+set}\" = set"; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779else
eea650d8 13780 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13781fi
e6cc62c6
VS
13782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13784
90dd450c 13785fi
e6cc62c6
VS
13786if test `eval echo '${'$as_ac_Header'}'` = yes; then
13787 cat >>confdefs.h <<_ACEOF
13788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789_ACEOF
13790
247f5006 13791fi
e6cc62c6 13792
eb69fda5
VS
13793done
13794
13795
13796for ac_header in X11/XKBlib.h
13797do
13798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13799echo "$as_me:$LINENO: checking for $ac_header" >&5
13800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13801if eval "test \"\${$as_ac_Header+set}\" = set"; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13805/* confdefs.h. */
13806_ACEOF
13807cat confdefs.h >>conftest.$ac_ext
13808cat >>conftest.$ac_ext <<_ACEOF
13809/* end confdefs.h. */
13810
13811 #if HAVE_X11_XLIB_H
13812 #include <X11/Xlib.h>
13813 #endif
13814
13815
13816#include <$ac_header>
13817_ACEOF
13818rm -f conftest.$ac_objext
13819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13820 (eval $ac_compile) 2>conftest.er1
eb69fda5 13821 ac_status=$?
eea650d8
VS
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
eb69fda5
VS
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
eea650d8
VS
13827 { ac_try='test -z "$ac_c_werror_flag"
13828 || test ! -s conftest.err'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 eval "$as_ac_Header=yes"
13841else
13842 echo "$as_me: failed program was:" >&5
13843sed 's/^/| /' conftest.$ac_ext >&5
13844
13845eval "$as_ac_Header=no"
13846fi
eea650d8 13847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13848fi
13849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13851if test `eval echo '${'$as_ac_Header'}'` = yes; then
13852 cat >>confdefs.h <<_ACEOF
13853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13854_ACEOF
13855
13856fi
13857
247f5006
VZ
13858done
13859
a0b9e27f
MB
13860 fi
13861fi
247f5006 13862
247f5006 13863
e6cc62c6
VS
13864echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13865echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13866if test "${ac_cv_c_const+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13868else
13869 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13870/* confdefs.h. */
13871_ACEOF
13872cat confdefs.h >>conftest.$ac_ext
13873cat >>conftest.$ac_ext <<_ACEOF
13874/* end confdefs.h. */
13875
13876int
13877main ()
13878{
13879/* FIXME: Include the comments suggested by Paul. */
13880#ifndef __cplusplus
13881 /* Ultrix mips cc rejects this. */
13882 typedef int charset[2];
13883 const charset x;
13884 /* SunOS 4.1.1 cc rejects this. */
13885 char const *const *ccp;
13886 char **p;
13887 /* NEC SVR4.0.2 mips cc rejects this. */
13888 struct point {int x, y;};
13889 static struct point const zero = {0,0};
13890 /* AIX XL C 1.02.0.0 rejects this.
13891 It does not let you subtract one const X* pointer from another in
13892 an arm of an if-expression whose if-part is not a constant
13893 expression */
13894 const char *g = "string";
13895 ccp = &g + (g ? g-g : 0);
13896 /* HPUX 7.0 cc rejects these. */
13897 ++ccp;
13898 p = (char**) ccp;
13899 ccp = (char const *const *) p;
13900 { /* SCO 3.2v4 cc rejects this. */
13901 char *t;
13902 char const *s = 0 ? (char *) 0 : (char const *) 0;
13903
13904 *t++ = 0;
13905 }
13906 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13907 int x[] = {25, 17};
13908 const int *foo = &x[0];
13909 ++foo;
13910 }
13911 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13912 typedef const int *iptr;
13913 iptr p = 0;
13914 ++p;
13915 }
13916 { /* AIX XL C 1.02.0.0 rejects this saying
13917 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13918 struct s { int j; const int *ap[3]; };
13919 struct s *b; b->j = 5;
13920 }
13921 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13922 const int foo = 10;
13923 }
13924#endif
13925
13926 ;
13927 return 0;
13928}
13929_ACEOF
13930rm -f conftest.$ac_objext
13931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13932 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13933 ac_status=$?
eea650d8
VS
13934 grep -v '^ *+' conftest.er1 >conftest.err
13935 rm -f conftest.er1
13936 cat conftest.err >&5
e6cc62c6
VS
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
eea650d8
VS
13939 { ac_try='test -z "$ac_c_werror_flag"
13940 || test ! -s conftest.err'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
a0b9e27f 13952 ac_cv_c_const=yes
247f5006 13953else
e6cc62c6
VS
13954 echo "$as_me: failed program was:" >&5
13955sed 's/^/| /' conftest.$ac_ext >&5
13956
13957ac_cv_c_const=no
247f5006 13958fi
eea650d8 13959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 13960fi
e6cc62c6
VS
13961echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13962echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13963if test $ac_cv_c_const = no; then
e6cc62c6
VS
13964
13965cat >>confdefs.h <<\_ACEOF
13966#define const
13967_ACEOF
10f2d63a 13968
90dd450c 13969fi
81809c07 13970
e6cc62c6
VS
13971echo "$as_me:$LINENO: checking for inline" >&5
13972echo $ECHO_N "checking for inline... $ECHO_C" >&6
13973if test "${ac_cv_c_inline+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13975else
a0b9e27f
MB
13976 ac_cv_c_inline=no
13977for ac_kw in inline __inline__ __inline; do
e6cc62c6 13978 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
13984#ifndef __cplusplus
13985typedef int foo_t;
13986static $ac_kw foo_t static_foo () {return 0; }
13987$ac_kw foo_t foo () {return 0; }
13988#endif
a0b9e27f 13989
e6cc62c6
VS
13990_ACEOF
13991rm -f conftest.$ac_objext
13992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13993 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13994 ac_status=$?
eea650d8
VS
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
e6cc62c6
VS
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
eea650d8
VS
14000 { ac_try='test -z "$ac_c_werror_flag"
14001 || test ! -s conftest.err'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
a0b9e27f 14013 ac_cv_c_inline=$ac_kw; break
247f5006 14014else
e6cc62c6
VS
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
247f5006 14018fi
eea650d8 14019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14020done
247f5006
VZ
14021
14022fi
e6cc62c6
VS
14023echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14024echo "${ECHO_T}$ac_cv_c_inline" >&6
eea650d8
VS
14025
14026
e6cc62c6 14027case $ac_cv_c_inline in
a0b9e27f 14028 inline | yes) ;;
eea650d8
VS
14029 *)
14030 case $ac_cv_c_inline in
14031 no) ac_val=;;
14032 *) ac_val=$ac_cv_c_inline;;
14033 esac
14034 cat >>confdefs.h <<_ACEOF
14035#ifndef __cplusplus
14036#define inline $ac_val
14037#endif
e6cc62c6 14038_ACEOF
eea650d8 14039 ;;
a0b9e27f 14040esac
247f5006 14041
247f5006 14042
e6cc62c6
VS
14043echo "$as_me:$LINENO: checking for char" >&5
14044echo $ECHO_N "checking for char... $ECHO_C" >&6
14045if test "${ac_cv_type_char+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h. */
14054$ac_includes_default
14055int
14056main ()
14057{
14058if ((char *) 0)
14059 return 0;
14060if (sizeof (char))
14061 return 0;
14062 ;
14063 return 0;
14064}
14065_ACEOF
14066rm -f conftest.$ac_objext
14067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14068 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14069 ac_status=$?
eea650d8
VS
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
e6cc62c6
VS
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
eea650d8
VS
14075 { ac_try='test -z "$ac_c_werror_flag"
14076 || test ! -s conftest.err'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 ac_cv_type_char=yes
14089else
14090 echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093ac_cv_type_char=no
14094fi
eea650d8 14095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14096fi
14097echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14098echo "${ECHO_T}$ac_cv_type_char" >&6
14099
14100echo "$as_me:$LINENO: checking size of char" >&5
14101echo $ECHO_N "checking size of char... $ECHO_C" >&6
14102if test "${ac_cv_sizeof_char+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
14105 if test "$ac_cv_type_char" = yes; then
14106 # The cast to unsigned long works around a bug in the HP C Compiler
14107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14109 # This bug is HP SR number 8606223364.
a0b9e27f 14110 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14111 # Depending upon the size, compute the lo and hi bounds.
14112cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14113/* confdefs.h. */
14114_ACEOF
14115cat confdefs.h >>conftest.$ac_ext
14116cat >>conftest.$ac_ext <<_ACEOF
14117/* end confdefs.h. */
14118$ac_includes_default
14119int
14120main ()
14121{
14122static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14123test_array [0] = 0
14124
14125 ;
14126 return 0;
14127}
14128_ACEOF
14129rm -f conftest.$ac_objext
14130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14131 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14132 ac_status=$?
eea650d8
VS
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
e6cc62c6
VS
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
eea650d8
VS
14138 { ac_try='test -z "$ac_c_werror_flag"
14139 || test ! -s conftest.err'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; } &&
14145 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14151 ac_lo=0 ac_mid=0
14152 while :; do
14153 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14154/* confdefs.h. */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
14158/* end confdefs.h. */
14159$ac_includes_default
14160int
14161main ()
14162{
14163static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14164test_array [0] = 0
14165
14166 ;
14167 return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext
14171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14172 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14173 ac_status=$?
eea650d8
VS
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
e6cc62c6
VS
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
eea650d8
VS
14179 { ac_try='test -z "$ac_c_werror_flag"
14180 || test ! -s conftest.err'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_hi=$ac_mid; break
14193else
14194 echo "$as_me: failed program was:" >&5
14195sed 's/^/| /' conftest.$ac_ext >&5
14196
14197ac_lo=`expr $ac_mid + 1`
eea650d8
VS
14198 if test $ac_lo -le $ac_mid; then
14199 ac_lo= ac_hi=
14200 break
14201 fi
14202 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14203fi
eea650d8 14204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14205 done
a0b9e27f 14206else
e6cc62c6
VS
14207 echo "$as_me: failed program was:" >&5
14208sed 's/^/| /' conftest.$ac_ext >&5
14209
14210cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14211/* confdefs.h. */
14212_ACEOF
14213cat confdefs.h >>conftest.$ac_ext
14214cat >>conftest.$ac_ext <<_ACEOF
14215/* end confdefs.h. */
14216$ac_includes_default
14217int
14218main ()
14219{
14220static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14221test_array [0] = 0
14222
14223 ;
14224 return 0;
14225}
14226_ACEOF
14227rm -f conftest.$ac_objext
14228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14229 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14230 ac_status=$?
eea650d8
VS
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
e6cc62c6
VS
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
eea650d8
VS
14236 { ac_try='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_hi=-1 ac_mid=-1
14250 while :; do
14251 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14252/* confdefs.h. */
14253_ACEOF
14254cat confdefs.h >>conftest.$ac_ext
14255cat >>conftest.$ac_ext <<_ACEOF
14256/* end confdefs.h. */
14257$ac_includes_default
14258int
14259main ()
14260{
14261static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14262test_array [0] = 0
14263
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext
14269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14270 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14271 ac_status=$?
eea650d8
VS
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
e6cc62c6
VS
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
eea650d8
VS
14277 { ac_try='test -z "$ac_c_werror_flag"
14278 || test ! -s conftest.err'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_lo=$ac_mid; break
14291else
14292 echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
14296 if test $ac_mid -le $ac_hi; then
14297 ac_lo= ac_hi=
14298 break
14299 fi
14300 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14301fi
eea650d8 14302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14303 done
14304else
14305 echo "$as_me: failed program was:" >&5
14306sed 's/^/| /' conftest.$ac_ext >&5
14307
14308ac_lo= ac_hi=
14309fi
eea650d8 14310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14311fi
eea650d8 14312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14313# Binary search between lo and hi bounds.
14314while test "x$ac_lo" != "x$ac_hi"; do
14315 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14316 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
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))) <= $ac_mid)];
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
eea650d8 14335 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14336 ac_status=$?
eea650d8
VS
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
e6cc62c6
VS
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
eea650d8
VS
14342 { ac_try='test -z "$ac_c_werror_flag"
14343 || test ! -s conftest.err'
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'
e6cc62c6
VS
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_hi=$ac_mid
14356else
14357 echo "$as_me: failed program was:" >&5
14358sed 's/^/| /' conftest.$ac_ext >&5
14359
14360ac_lo=`expr '(' $ac_mid ')' + 1`
14361fi
eea650d8 14362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14363done
14364case $ac_lo in
14365?*) ac_cv_sizeof_char=$ac_lo;;
14366'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14367See \`config.log' for more details." >&5
14368echo "$as_me: error: cannot compute sizeof (char), 77
14369See \`config.log' for more details." >&2;}
14370 { (exit 1); exit 1; }; } ;;
14371esac
14372else
14373 if test "$cross_compiling" = yes; then
14374 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14375See \`config.log' for more details." >&5
14376echo "$as_me: error: cannot run test program while cross compiling
14377See \`config.log' for more details." >&2;}
14378 { (exit 1); exit 1; }; }
14379else
14380 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386$ac_includes_default
14387long longval () { return (long) (sizeof (char)); }
14388unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14389#include <stdio.h>
e6cc62c6
VS
14390#include <stdlib.h>
14391int
14392main ()
247f5006 14393{
e6cc62c6
VS
14394
14395 FILE *f = fopen ("conftest.val", "w");
14396 if (! f)
14397 exit (1);
14398 if (((long) (sizeof (char))) < 0)
14399 {
14400 long i = longval ();
14401 if (i != ((long) (sizeof (char))))
14402 exit (1);
14403 fprintf (f, "%ld\n", i);
14404 }
14405 else
14406 {
14407 unsigned long i = ulongval ();
14408 if (i != ((long) (sizeof (char))))
14409 exit (1);
14410 fprintf (f, "%lu\n", i);
14411 }
14412 exit (ferror (f) || fclose (f) != 0);
14413
14414 ;
14415 return 0;
52127426 14416}
e6cc62c6
VS
14417_ACEOF
14418rm -f conftest$ac_exeext
14419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14420 (eval $ac_link) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_cv_sizeof_char=`cat conftest.val`
14430else
14431 echo "$as_me: program exited with status $ac_status" >&5
14432echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435( exit $ac_status )
14436{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14437See \`config.log' for more details." >&5
14438echo "$as_me: error: cannot compute sizeof (char), 77
14439See \`config.log' for more details." >&2;}
14440 { (exit 1); exit 1; }; }
14441fi
eea650d8 14442rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14443fi
14444fi
14445rm -f conftest.val
247f5006 14446else
a0b9e27f 14447 ac_cv_sizeof_char=0
247f5006 14448fi
247f5006 14449fi
e6cc62c6
VS
14450echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14451echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14452cat >>confdefs.h <<_ACEOF
14453#define SIZEOF_CHAR $ac_cv_sizeof_char
14454_ACEOF
14455
14456
14457echo "$as_me:$LINENO: checking for short" >&5
14458echo $ECHO_N "checking for short... $ECHO_C" >&6
14459if test "${ac_cv_type_short+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14461else
14462 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14463/* confdefs.h. */
14464_ACEOF
14465cat confdefs.h >>conftest.$ac_ext
14466cat >>conftest.$ac_ext <<_ACEOF
14467/* end confdefs.h. */
14468$ac_includes_default
14469int
14470main ()
14471{
14472if ((short *) 0)
14473 return 0;
14474if (sizeof (short))
14475 return 0;
14476 ;
14477 return 0;
14478}
14479_ACEOF
14480rm -f conftest.$ac_objext
14481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14482 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14483 ac_status=$?
eea650d8
VS
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
e6cc62c6
VS
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
eea650d8
VS
14489 { ac_try='test -z "$ac_c_werror_flag"
14490 || test ! -s conftest.err'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_type_short=yes
14503else
14504 echo "$as_me: failed program was:" >&5
14505sed 's/^/| /' conftest.$ac_ext >&5
14506
14507ac_cv_type_short=no
14508fi
eea650d8 14509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14510fi
14511echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14512echo "${ECHO_T}$ac_cv_type_short" >&6
14513
14514echo "$as_me:$LINENO: checking size of short" >&5
14515echo $ECHO_N "checking size of short... $ECHO_C" >&6
14516if test "${ac_cv_sizeof_short+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518else
14519 if test "$ac_cv_type_short" = yes; then
14520 # The cast to unsigned long works around a bug in the HP C Compiler
14521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14523 # This bug is HP SR number 8606223364.
14524 if test "$cross_compiling" = yes; then
14525 # Depending upon the size, compute the lo and hi bounds.
14526cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14527/* confdefs.h. */
14528_ACEOF
14529cat confdefs.h >>conftest.$ac_ext
14530cat >>conftest.$ac_ext <<_ACEOF
14531/* end confdefs.h. */
14532$ac_includes_default
14533int
14534main ()
14535{
14536static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14537test_array [0] = 0
247f5006 14538
e6cc62c6
VS
14539 ;
14540 return 0;
14541}
14542_ACEOF
14543rm -f conftest.$ac_objext
14544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14545 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14546 ac_status=$?
eea650d8
VS
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
e6cc62c6
VS
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
eea650d8
VS
14552 { ac_try='test -z "$ac_c_werror_flag"
14553 || test ! -s conftest.err'
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); }; } &&
14559 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_lo=0 ac_mid=0
14566 while :; do
14567 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h. */
14573$ac_includes_default
14574int
14575main ()
14576{
14577static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14578test_array [0] = 0
14579
14580 ;
14581 return 0;
14582}
14583_ACEOF
14584rm -f conftest.$ac_objext
14585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14586 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14587 ac_status=$?
eea650d8
VS
14588 grep -v '^ *+' conftest.er1 >conftest.err
14589 rm -f conftest.er1
14590 cat conftest.err >&5
e6cc62c6
VS
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
eea650d8
VS
14593 { ac_try='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_hi=$ac_mid; break
14607else
14608 echo "$as_me: failed program was:" >&5
14609sed 's/^/| /' conftest.$ac_ext >&5
14610
14611ac_lo=`expr $ac_mid + 1`
eea650d8
VS
14612 if test $ac_lo -le $ac_mid; then
14613 ac_lo= ac_hi=
14614 break
14615 fi
14616 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14617fi
eea650d8 14618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14619 done
14620else
14621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14625/* confdefs.h. */
14626_ACEOF
14627cat confdefs.h >>conftest.$ac_ext
14628cat >>conftest.$ac_ext <<_ACEOF
14629/* end confdefs.h. */
14630$ac_includes_default
14631int
14632main ()
14633{
14634static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14635test_array [0] = 0
247f5006 14636
e6cc62c6
VS
14637 ;
14638 return 0;
14639}
14640_ACEOF
14641rm -f conftest.$ac_objext
14642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14643 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14644 ac_status=$?
eea650d8
VS
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
e6cc62c6
VS
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
eea650d8
VS
14650 { ac_try='test -z "$ac_c_werror_flag"
14651 || test ! -s conftest.err'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 ac_hi=-1 ac_mid=-1
14664 while :; do
14665 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671$ac_includes_default
14672int
14673main ()
14674{
14675static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14676test_array [0] = 0
247f5006 14677
e6cc62c6
VS
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14684 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14685 ac_status=$?
eea650d8
VS
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
e6cc62c6
VS
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
eea650d8
VS
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_lo=$ac_mid; break
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
14710 if test $ac_mid -le $ac_hi; then
14711 ac_lo= ac_hi=
14712 break
14713 fi
14714 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14715fi
eea650d8 14716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14717 done
247f5006 14718else
e6cc62c6
VS
14719 echo "$as_me: failed program was:" >&5
14720sed 's/^/| /' conftest.$ac_ext >&5
14721
14722ac_lo= ac_hi=
14723fi
eea650d8 14724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14725fi
eea650d8 14726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14727# Binary search between lo and hi bounds.
14728while test "x$ac_lo" != "x$ac_hi"; do
14729 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14730 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
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))) <= $ac_mid)];
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
eea650d8 14749 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14750 ac_status=$?
eea650d8
VS
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
e6cc62c6
VS
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
eea650d8
VS
14756 { ac_try='test -z "$ac_c_werror_flag"
14757 || test ! -s conftest.err'
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'
e6cc62c6
VS
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_hi=$ac_mid
14770else
14771 echo "$as_me: failed program was:" >&5
14772sed 's/^/| /' conftest.$ac_ext >&5
14773
14774ac_lo=`expr '(' $ac_mid ')' + 1`
14775fi
eea650d8 14776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14777done
14778case $ac_lo in
14779?*) ac_cv_sizeof_short=$ac_lo;;
14780'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14781See \`config.log' for more details." >&5
14782echo "$as_me: error: cannot compute sizeof (short), 77
14783See \`config.log' for more details." >&2;}
14784 { (exit 1); exit 1; }; } ;;
14785esac
247f5006 14786else
e6cc62c6
VS
14787 if test "$cross_compiling" = yes; then
14788 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14789See \`config.log' for more details." >&5
14790echo "$as_me: error: cannot run test program while cross compiling
14791See \`config.log' for more details." >&2;}
14792 { (exit 1); exit 1; }; }
14793else
14794 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14795/* confdefs.h. */
14796_ACEOF
14797cat confdefs.h >>conftest.$ac_ext
14798cat >>conftest.$ac_ext <<_ACEOF
14799/* end confdefs.h. */
14800$ac_includes_default
14801long longval () { return (long) (sizeof (short)); }
14802unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14803#include <stdio.h>
e6cc62c6
VS
14804#include <stdlib.h>
14805int
14806main ()
a0b9e27f 14807{
e6cc62c6
VS
14808
14809 FILE *f = fopen ("conftest.val", "w");
14810 if (! f)
14811 exit (1);
14812 if (((long) (sizeof (short))) < 0)
14813 {
14814 long i = longval ();
14815 if (i != ((long) (sizeof (short))))
14816 exit (1);
14817 fprintf (f, "%ld\n", i);
14818 }
14819 else
14820 {
14821 unsigned long i = ulongval ();
14822 if (i != ((long) (sizeof (short))))
14823 exit (1);
14824 fprintf (f, "%lu\n", i);
14825 }
14826 exit (ferror (f) || fclose (f) != 0);
14827
14828 ;
14829 return 0;
a0b9e27f 14830}
e6cc62c6
VS
14831_ACEOF
14832rm -f conftest$ac_exeext
14833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834 (eval $ac_link) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_cv_sizeof_short=`cat conftest.val`
14844else
14845 echo "$as_me: program exited with status $ac_status" >&5
14846echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849( exit $ac_status )
14850{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14851See \`config.log' for more details." >&5
14852echo "$as_me: error: cannot compute sizeof (short), 77
14853See \`config.log' for more details." >&2;}
14854 { (exit 1); exit 1; }; }
14855fi
eea650d8 14856rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14857fi
14858fi
14859rm -f conftest.val
247f5006 14860else
a0b9e27f 14861 ac_cv_sizeof_short=0
247f5006 14862fi
247f5006 14863fi
e6cc62c6
VS
14864echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14865echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14866cat >>confdefs.h <<_ACEOF
14867#define SIZEOF_SHORT $ac_cv_sizeof_short
14868_ACEOF
14869
14870
14871echo "$as_me:$LINENO: checking for void *" >&5
14872echo $ECHO_N "checking for void *... $ECHO_C" >&6
14873if test "${ac_cv_type_void_p+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875else
14876 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14877/* confdefs.h. */
14878_ACEOF
14879cat confdefs.h >>conftest.$ac_ext
14880cat >>conftest.$ac_ext <<_ACEOF
14881/* end confdefs.h. */
14882$ac_includes_default
14883int
14884main ()
14885{
14886if ((void * *) 0)
14887 return 0;
14888if (sizeof (void *))
14889 return 0;
14890 ;
14891 return 0;
14892}
14893_ACEOF
14894rm -f conftest.$ac_objext
14895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14896 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14897 ac_status=$?
eea650d8
VS
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
e6cc62c6
VS
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
eea650d8
VS
14903 { ac_try='test -z "$ac_c_werror_flag"
14904 || test ! -s conftest.err'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_cv_type_void_p=yes
14917else
14918 echo "$as_me: failed program was:" >&5
14919sed 's/^/| /' conftest.$ac_ext >&5
14920
14921ac_cv_type_void_p=no
14922fi
eea650d8 14923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14924fi
14925echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14926echo "${ECHO_T}$ac_cv_type_void_p" >&6
14927
14928echo "$as_me:$LINENO: checking size of void *" >&5
14929echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14930if test "${ac_cv_sizeof_void_p+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932else
14933 if test "$ac_cv_type_void_p" = yes; then
14934 # The cast to unsigned long works around a bug in the HP C Compiler
14935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14937 # This bug is HP SR number 8606223364.
14938 if test "$cross_compiling" = yes; then
14939 # Depending upon the size, compute the lo and hi bounds.
14940cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14941/* confdefs.h. */
14942_ACEOF
14943cat confdefs.h >>conftest.$ac_ext
14944cat >>conftest.$ac_ext <<_ACEOF
14945/* end confdefs.h. */
14946$ac_includes_default
14947int
14948main ()
14949{
14950static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14951test_array [0] = 0
14952
14953 ;
14954 return 0;
14955}
14956_ACEOF
14957rm -f conftest.$ac_objext
14958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14959 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14960 ac_status=$?
eea650d8
VS
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
e6cc62c6
VS
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
eea650d8
VS
14966 { ac_try='test -z "$ac_c_werror_flag"
14967 || test ! -s conftest.err'
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); }; } &&
14973 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
14979 ac_lo=0 ac_mid=0
14980 while :; do
14981 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14982/* confdefs.h. */
14983_ACEOF
14984cat confdefs.h >>conftest.$ac_ext
14985cat >>conftest.$ac_ext <<_ACEOF
14986/* end confdefs.h. */
14987$ac_includes_default
14988int
14989main ()
14990{
14991static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14992test_array [0] = 0
247f5006 14993
e6cc62c6
VS
14994 ;
14995 return 0;
14996}
14997_ACEOF
14998rm -f conftest.$ac_objext
14999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15000 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15001 ac_status=$?
eea650d8
VS
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
e6cc62c6
VS
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
eea650d8
VS
15007 { ac_try='test -z "$ac_c_werror_flag"
15008 || test ! -s conftest.err'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_hi=$ac_mid; break
15021else
15022 echo "$as_me: failed program was:" >&5
15023sed 's/^/| /' conftest.$ac_ext >&5
15024
15025ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15026 if test $ac_lo -le $ac_mid; then
15027 ac_lo= ac_hi=
15028 break
15029 fi
15030 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15031fi
eea650d8 15032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15033 done
15034else
15035 echo "$as_me: failed program was:" >&5
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
15038cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15039/* confdefs.h. */
15040_ACEOF
15041cat confdefs.h >>conftest.$ac_ext
15042cat >>conftest.$ac_ext <<_ACEOF
15043/* end confdefs.h. */
15044$ac_includes_default
15045int
15046main ()
15047{
15048static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15049test_array [0] = 0
247f5006 15050
e6cc62c6
VS
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext
15056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15057 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15058 ac_status=$?
eea650d8
VS
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
e6cc62c6
VS
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
eea650d8
VS
15064 { ac_try='test -z "$ac_c_werror_flag"
15065 || test ! -s conftest.err'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_hi=-1 ac_mid=-1
15078 while :; do
15079 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15080/* confdefs.h. */
15081_ACEOF
15082cat confdefs.h >>conftest.$ac_ext
15083cat >>conftest.$ac_ext <<_ACEOF
15084/* end confdefs.h. */
15085$ac_includes_default
15086int
15087main ()
15088{
15089static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15090test_array [0] = 0
247f5006 15091
e6cc62c6
VS
15092 ;
15093 return 0;
15094}
15095_ACEOF
15096rm -f conftest.$ac_objext
15097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15098 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15099 ac_status=$?
eea650d8
VS
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
e6cc62c6
VS
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
eea650d8
VS
15105 { ac_try='test -z "$ac_c_werror_flag"
15106 || test ! -s conftest.err'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 ac_lo=$ac_mid; break
15119else
15120 echo "$as_me: failed program was:" >&5
15121sed 's/^/| /' conftest.$ac_ext >&5
15122
15123ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15124 if test $ac_mid -le $ac_hi; then
15125 ac_lo= ac_hi=
15126 break
15127 fi
15128 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15129fi
eea650d8 15130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15131 done
a0b9e27f 15132else
e6cc62c6
VS
15133 echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136ac_lo= ac_hi=
15137fi
eea650d8 15138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15139fi
eea650d8 15140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15141# Binary search between lo and hi bounds.
15142while test "x$ac_lo" != "x$ac_hi"; do
15143 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15144 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
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 *))) <= $ac_mid)];
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
eea650d8 15163 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15164 ac_status=$?
eea650d8
VS
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
e6cc62c6
VS
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
eea650d8
VS
15170 { ac_try='test -z "$ac_c_werror_flag"
15171 || test ! -s conftest.err'
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'
e6cc62c6
VS
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_hi=$ac_mid
15184else
15185 echo "$as_me: failed program was:" >&5
15186sed 's/^/| /' conftest.$ac_ext >&5
15187
15188ac_lo=`expr '(' $ac_mid ')' + 1`
15189fi
eea650d8 15190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15191done
15192case $ac_lo in
15193?*) ac_cv_sizeof_void_p=$ac_lo;;
15194'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15195See \`config.log' for more details." >&5
15196echo "$as_me: error: cannot compute sizeof (void *), 77
15197See \`config.log' for more details." >&2;}
15198 { (exit 1); exit 1; }; } ;;
15199esac
247f5006 15200else
e6cc62c6
VS
15201 if test "$cross_compiling" = yes; then
15202 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15203See \`config.log' for more details." >&5
15204echo "$as_me: error: cannot run test program while cross compiling
15205See \`config.log' for more details." >&2;}
15206 { (exit 1); exit 1; }; }
15207else
15208 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15209/* confdefs.h. */
15210_ACEOF
15211cat confdefs.h >>conftest.$ac_ext
15212cat >>conftest.$ac_ext <<_ACEOF
15213/* end confdefs.h. */
15214$ac_includes_default
15215long longval () { return (long) (sizeof (void *)); }
15216unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15217#include <stdio.h>
e6cc62c6
VS
15218#include <stdlib.h>
15219int
15220main ()
247f5006 15221{
e6cc62c6
VS
15222
15223 FILE *f = fopen ("conftest.val", "w");
15224 if (! f)
15225 exit (1);
15226 if (((long) (sizeof (void *))) < 0)
15227 {
15228 long i = longval ();
15229 if (i != ((long) (sizeof (void *))))
15230 exit (1);
15231 fprintf (f, "%ld\n", i);
15232 }
15233 else
15234 {
15235 unsigned long i = ulongval ();
15236 if (i != ((long) (sizeof (void *))))
15237 exit (1);
15238 fprintf (f, "%lu\n", i);
15239 }
15240 exit (ferror (f) || fclose (f) != 0);
15241
15242 ;
15243 return 0;
5c6fa7d2 15244}
e6cc62c6
VS
15245_ACEOF
15246rm -f conftest$ac_exeext
15247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_cv_sizeof_void_p=`cat conftest.val`
15258else
15259 echo "$as_me: program exited with status $ac_status" >&5
15260echo "$as_me: failed program was:" >&5
15261sed 's/^/| /' conftest.$ac_ext >&5
15262
15263( exit $ac_status )
15264{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15265See \`config.log' for more details." >&5
15266echo "$as_me: error: cannot compute sizeof (void *), 77
15267See \`config.log' for more details." >&2;}
15268 { (exit 1); exit 1; }; }
15269fi
eea650d8 15270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15271fi
15272fi
15273rm -f conftest.val
a0b9e27f 15274else
a0b9e27f
MB
15275 ac_cv_sizeof_void_p=0
15276fi
a0b9e27f 15277fi
e6cc62c6
VS
15278echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15279echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15280cat >>confdefs.h <<_ACEOF
15281#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15282_ACEOF
15283
15284
15285echo "$as_me:$LINENO: checking for int" >&5
15286echo $ECHO_N "checking for int... $ECHO_C" >&6
15287if test "${ac_cv_type_int+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289else
15290 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296$ac_includes_default
15297int
15298main ()
15299{
15300if ((int *) 0)
15301 return 0;
15302if (sizeof (int))
15303 return 0;
15304 ;
15305 return 0;
15306}
15307_ACEOF
15308rm -f conftest.$ac_objext
15309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15310 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15311 ac_status=$?
eea650d8
VS
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
e6cc62c6
VS
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
eea650d8
VS
15317 { ac_try='test -z "$ac_c_werror_flag"
15318 || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_cv_type_int=yes
15331else
15332 echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335ac_cv_type_int=no
15336fi
eea650d8 15337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15338fi
15339echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15340echo "${ECHO_T}$ac_cv_type_int" >&6
15341
15342echo "$as_me:$LINENO: checking size of int" >&5
15343echo $ECHO_N "checking size of int... $ECHO_C" >&6
15344if test "${ac_cv_sizeof_int+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346else
15347 if test "$ac_cv_type_int" = yes; then
15348 # The cast to unsigned long works around a bug in the HP C Compiler
15349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15351 # This bug is HP SR number 8606223364.
15352 if test "$cross_compiling" = yes; then
15353 # Depending upon the size, compute the lo and hi bounds.
15354cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360$ac_includes_default
15361int
15362main ()
15363{
15364static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15365test_array [0] = 0
8284b0c5 15366
e6cc62c6
VS
15367 ;
15368 return 0;
15369}
15370_ACEOF
15371rm -f conftest.$ac_objext
15372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15373 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15374 ac_status=$?
eea650d8
VS
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
e6cc62c6
VS
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
eea650d8
VS
15380 { ac_try='test -z "$ac_c_werror_flag"
15381 || test ! -s conftest.err'
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); }; } &&
15387 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15393 ac_lo=0 ac_mid=0
15394 while :; do
15395 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
15401$ac_includes_default
15402int
15403main ()
15404{
15405static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15406test_array [0] = 0
15407
15408 ;
15409 return 0;
15410}
15411_ACEOF
15412rm -f conftest.$ac_objext
15413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15414 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15415 ac_status=$?
eea650d8
VS
15416 grep -v '^ *+' conftest.er1 >conftest.err
15417 rm -f conftest.er1
15418 cat conftest.err >&5
e6cc62c6
VS
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
eea650d8
VS
15421 { ac_try='test -z "$ac_c_werror_flag"
15422 || test ! -s conftest.err'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_hi=$ac_mid; break
15435else
15436 echo "$as_me: failed program was:" >&5
15437sed 's/^/| /' conftest.$ac_ext >&5
15438
15439ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15440 if test $ac_lo -le $ac_mid; then
15441 ac_lo= ac_hi=
15442 break
15443 fi
15444 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15445fi
eea650d8 15446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15447 done
15448else
15449 echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15453/* confdefs.h. */
15454_ACEOF
15455cat confdefs.h >>conftest.$ac_ext
15456cat >>conftest.$ac_ext <<_ACEOF
15457/* end confdefs.h. */
15458$ac_includes_default
15459int
15460main ()
15461{
15462static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15463test_array [0] = 0
247f5006 15464
e6cc62c6
VS
15465 ;
15466 return 0;
15467}
15468_ACEOF
15469rm -f conftest.$ac_objext
15470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15471 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15472 ac_status=$?
eea650d8
VS
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
e6cc62c6
VS
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
eea650d8
VS
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_hi=-1 ac_mid=-1
15492 while :; do
15493 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499$ac_includes_default
15500int
15501main ()
15502{
15503static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15504test_array [0] = 0
247f5006 15505
e6cc62c6
VS
15506 ;
15507 return 0;
15508}
15509_ACEOF
15510rm -f conftest.$ac_objext
15511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15512 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15513 ac_status=$?
eea650d8
VS
15514 grep -v '^ *+' conftest.er1 >conftest.err
15515 rm -f conftest.er1
15516 cat conftest.err >&5
e6cc62c6
VS
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
eea650d8
VS
15519 { ac_try='test -z "$ac_c_werror_flag"
15520 || test ! -s conftest.err'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_lo=$ac_mid; break
15533else
15534 echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15538 if test $ac_mid -le $ac_hi; then
15539 ac_lo= ac_hi=
15540 break
15541 fi
15542 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15543fi
eea650d8 15544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15545 done
247f5006 15546else
e6cc62c6
VS
15547 echo "$as_me: failed program was:" >&5
15548sed 's/^/| /' conftest.$ac_ext >&5
15549
15550ac_lo= ac_hi=
15551fi
eea650d8 15552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15553fi
eea650d8 15554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15555# Binary search between lo and hi bounds.
15556while test "x$ac_lo" != "x$ac_hi"; do
15557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15558 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
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))) <= $ac_mid)];
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
eea650d8 15577 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15578 ac_status=$?
eea650d8
VS
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
e6cc62c6
VS
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
eea650d8
VS
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
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'
e6cc62c6
VS
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_hi=$ac_mid
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602ac_lo=`expr '(' $ac_mid ')' + 1`
15603fi
eea650d8 15604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15605done
15606case $ac_lo in
15607?*) ac_cv_sizeof_int=$ac_lo;;
15608'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15609See \`config.log' for more details." >&5
15610echo "$as_me: error: cannot compute sizeof (int), 77
15611See \`config.log' for more details." >&2;}
15612 { (exit 1); exit 1; }; } ;;
15613esac
a0b9e27f 15614else
e6cc62c6
VS
15615 if test "$cross_compiling" = yes; then
15616 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15617See \`config.log' for more details." >&5
15618echo "$as_me: error: cannot run test program while cross compiling
15619See \`config.log' for more details." >&2;}
15620 { (exit 1); exit 1; }; }
15621else
15622 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15623/* confdefs.h. */
15624_ACEOF
15625cat confdefs.h >>conftest.$ac_ext
15626cat >>conftest.$ac_ext <<_ACEOF
15627/* end confdefs.h. */
15628$ac_includes_default
15629long longval () { return (long) (sizeof (int)); }
15630unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15631#include <stdio.h>
e6cc62c6
VS
15632#include <stdlib.h>
15633int
15634main ()
247f5006 15635{
e6cc62c6
VS
15636
15637 FILE *f = fopen ("conftest.val", "w");
15638 if (! f)
15639 exit (1);
15640 if (((long) (sizeof (int))) < 0)
15641 {
15642 long i = longval ();
15643 if (i != ((long) (sizeof (int))))
15644 exit (1);
15645 fprintf (f, "%ld\n", i);
15646 }
15647 else
15648 {
15649 unsigned long i = ulongval ();
15650 if (i != ((long) (sizeof (int))))
15651 exit (1);
15652 fprintf (f, "%lu\n", i);
15653 }
15654 exit (ferror (f) || fclose (f) != 0);
15655
15656 ;
15657 return 0;
247f5006 15658}
e6cc62c6
VS
15659_ACEOF
15660rm -f conftest$ac_exeext
15661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662 (eval $ac_link) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_sizeof_int=`cat conftest.val`
15672else
15673 echo "$as_me: program exited with status $ac_status" >&5
15674echo "$as_me: failed program was:" >&5
15675sed 's/^/| /' conftest.$ac_ext >&5
15676
15677( exit $ac_status )
15678{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15679See \`config.log' for more details." >&5
15680echo "$as_me: error: cannot compute sizeof (int), 77
15681See \`config.log' for more details." >&2;}
15682 { (exit 1); exit 1; }; }
15683fi
eea650d8 15684rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15685fi
15686fi
15687rm -f conftest.val
6f72b082 15688else
a0b9e27f 15689 ac_cv_sizeof_int=0
21d1c967 15690fi
698dcdb6 15691fi
e6cc62c6
VS
15692echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15693echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15694cat >>confdefs.h <<_ACEOF
15695#define SIZEOF_INT $ac_cv_sizeof_int
15696_ACEOF
15697
15698
15699echo "$as_me:$LINENO: checking for long" >&5
15700echo $ECHO_N "checking for long... $ECHO_C" >&6
15701if test "${ac_cv_type_long+set}" = set; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703else
15704 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h. */
15710$ac_includes_default
15711int
15712main ()
15713{
15714if ((long *) 0)
15715 return 0;
15716if (sizeof (long))
15717 return 0;
15718 ;
15719 return 0;
15720}
15721_ACEOF
15722rm -f conftest.$ac_objext
15723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15724 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15725 ac_status=$?
eea650d8
VS
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
e6cc62c6
VS
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
eea650d8
VS
15731 { ac_try='test -z "$ac_c_werror_flag"
15732 || test ! -s conftest.err'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_type_long=yes
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749ac_cv_type_long=no
15750fi
eea650d8 15751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15752fi
15753echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15754echo "${ECHO_T}$ac_cv_type_long" >&6
15755
15756echo "$as_me:$LINENO: checking size of long" >&5
15757echo $ECHO_N "checking size of long... $ECHO_C" >&6
15758if test "${ac_cv_sizeof_long+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760else
15761 if test "$ac_cv_type_long" = yes; then
15762 # The cast to unsigned long works around a bug in the HP C Compiler
15763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15765 # This bug is HP SR number 8606223364.
15766 if test "$cross_compiling" = yes; then
15767 # Depending upon the size, compute the lo and hi bounds.
15768cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15769/* confdefs.h. */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h. */
15774$ac_includes_default
15775int
15776main ()
15777{
15778static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15779test_array [0] = 0
15780
15781 ;
15782 return 0;
15783}
15784_ACEOF
15785rm -f conftest.$ac_objext
15786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15787 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15788 ac_status=$?
eea650d8
VS
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
e6cc62c6
VS
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
eea650d8
VS
15794 { ac_try='test -z "$ac_c_werror_flag"
15795 || test ! -s conftest.err'
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); }; } &&
15801 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15807 ac_lo=0 ac_mid=0
15808 while :; do
15809 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
15815$ac_includes_default
15816int
15817main ()
15818{
15819static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15820test_array [0] = 0
4f14bcd8 15821
e6cc62c6
VS
15822 ;
15823 return 0;
15824}
15825_ACEOF
15826rm -f conftest.$ac_objext
15827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15828 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15829 ac_status=$?
eea650d8
VS
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
e6cc62c6
VS
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
eea650d8
VS
15835 { ac_try='test -z "$ac_c_werror_flag"
15836 || test ! -s conftest.err'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_hi=$ac_mid; break
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15854 if test $ac_lo -le $ac_mid; then
15855 ac_lo= ac_hi=
15856 break
15857 fi
15858 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15859fi
eea650d8 15860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15861 done
15862else
15863 echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15867/* confdefs.h. */
15868_ACEOF
15869cat confdefs.h >>conftest.$ac_ext
15870cat >>conftest.$ac_ext <<_ACEOF
15871/* end confdefs.h. */
15872$ac_includes_default
15873int
15874main ()
15875{
15876static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15877test_array [0] = 0
4f14bcd8 15878
e6cc62c6
VS
15879 ;
15880 return 0;
15881}
15882_ACEOF
15883rm -f conftest.$ac_objext
15884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15885 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15886 ac_status=$?
eea650d8
VS
15887 grep -v '^ *+' conftest.er1 >conftest.err
15888 rm -f conftest.er1
15889 cat conftest.err >&5
e6cc62c6
VS
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } &&
eea650d8
VS
15892 { ac_try='test -z "$ac_c_werror_flag"
15893 || test ! -s conftest.err'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15905 ac_hi=-1 ac_mid=-1
15906 while :; do
15907 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15908/* confdefs.h. */
15909_ACEOF
15910cat confdefs.h >>conftest.$ac_ext
15911cat >>conftest.$ac_ext <<_ACEOF
15912/* end confdefs.h. */
15913$ac_includes_default
15914int
15915main ()
15916{
15917static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15918test_array [0] = 0
5c6fa7d2 15919
e6cc62c6
VS
15920 ;
15921 return 0;
15922}
15923_ACEOF
15924rm -f conftest.$ac_objext
15925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15926 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15927 ac_status=$?
eea650d8
VS
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
e6cc62c6
VS
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
eea650d8
VS
15933 { ac_try='test -z "$ac_c_werror_flag"
15934 || test ! -s conftest.err'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_lo=$ac_mid; break
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15952 if test $ac_mid -le $ac_hi; then
15953 ac_lo= ac_hi=
15954 break
15955 fi
15956 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15957fi
eea650d8 15958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15959 done
247f5006 15960else
e6cc62c6
VS
15961 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5
15963
15964ac_lo= ac_hi=
15965fi
eea650d8 15966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15967fi
eea650d8 15968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15969# Binary search between lo and hi bounds.
15970while test "x$ac_lo" != "x$ac_hi"; do
15971 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15972 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
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))) <= $ac_mid)];
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
eea650d8 15991 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15992 ac_status=$?
eea650d8
VS
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
e6cc62c6
VS
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
eea650d8
VS
15998 { ac_try='test -z "$ac_c_werror_flag"
15999 || test ! -s conftest.err'
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'
e6cc62c6
VS
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_hi=$ac_mid
16012else
16013 echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016ac_lo=`expr '(' $ac_mid ')' + 1`
16017fi
eea650d8 16018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16019done
16020case $ac_lo in
16021?*) ac_cv_sizeof_long=$ac_lo;;
16022'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16023See \`config.log' for more details." >&5
16024echo "$as_me: error: cannot compute sizeof (long), 77
16025See \`config.log' for more details." >&2;}
16026 { (exit 1); exit 1; }; } ;;
16027esac
247f5006 16028else
e6cc62c6
VS
16029 if test "$cross_compiling" = yes; then
16030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16031See \`config.log' for more details." >&5
16032echo "$as_me: error: cannot run test program while cross compiling
16033See \`config.log' for more details." >&2;}
16034 { (exit 1); exit 1; }; }
16035else
16036 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
16042$ac_includes_default
16043long longval () { return (long) (sizeof (long)); }
16044unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16045#include <stdio.h>
e6cc62c6
VS
16046#include <stdlib.h>
16047int
16048main ()
247f5006 16049{
e6cc62c6
VS
16050
16051 FILE *f = fopen ("conftest.val", "w");
16052 if (! f)
16053 exit (1);
16054 if (((long) (sizeof (long))) < 0)
16055 {
16056 long i = longval ();
16057 if (i != ((long) (sizeof (long))))
16058 exit (1);
16059 fprintf (f, "%ld\n", i);
16060 }
16061 else
16062 {
16063 unsigned long i = ulongval ();
16064 if (i != ((long) (sizeof (long))))
16065 exit (1);
16066 fprintf (f, "%lu\n", i);
16067 }
16068 exit (ferror (f) || fclose (f) != 0);
16069
16070 ;
16071 return 0;
247f5006 16072}
e6cc62c6
VS
16073_ACEOF
16074rm -f conftest$ac_exeext
16075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16076 (eval $ac_link) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_cv_sizeof_long=`cat conftest.val`
16086else
16087 echo "$as_me: program exited with status $ac_status" >&5
16088echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
16091( exit $ac_status )
16092{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16093See \`config.log' for more details." >&5
16094echo "$as_me: error: cannot compute sizeof (long), 77
16095See \`config.log' for more details." >&2;}
16096 { (exit 1); exit 1; }; }
16097fi
eea650d8 16098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16099fi
16100fi
16101rm -f conftest.val
247f5006 16102else
a0b9e27f 16103 ac_cv_sizeof_long=0
247f5006 16104fi
247f5006 16105fi
e6cc62c6
VS
16106echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16107echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16108cat >>confdefs.h <<_ACEOF
a0b9e27f 16109#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16110_ACEOF
247f5006 16111
a0b9e27f
MB
16112
16113
16114case "${host}" in
16115 arm-*-linux* )
e6cc62c6
VS
16116 echo "$as_me:$LINENO: checking for long long" >&5
16117echo $ECHO_N "checking for long long... $ECHO_C" >&6
16118if test "${ac_cv_type_long_long+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120else
16121 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
16127$ac_includes_default
16128int
16129main ()
16130{
16131if ((long long *) 0)
16132 return 0;
16133if (sizeof (long long))
16134 return 0;
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext
16140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16141 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16142 ac_status=$?
eea650d8
VS
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
e6cc62c6
VS
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
eea650d8
VS
16148 { ac_try='test -z "$ac_c_werror_flag"
16149 || test ! -s conftest.err'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; } &&
16155 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 ac_cv_type_long_long=yes
16162else
16163 echo "$as_me: failed program was:" >&5
16164sed 's/^/| /' conftest.$ac_ext >&5
16165
16166ac_cv_type_long_long=no
16167fi
eea650d8 16168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16169fi
16170echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16171echo "${ECHO_T}$ac_cv_type_long_long" >&6
16172
16173echo "$as_me:$LINENO: checking size of long long" >&5
16174echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16175if test "${ac_cv_sizeof_long_long+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177else
16178 if test "$ac_cv_type_long_long" = yes; then
16179 # The cast to unsigned long works around a bug in the HP C Compiler
16180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16182 # This bug is HP SR number 8606223364.
a0b9e27f 16183 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16184 # Depending upon the size, compute the lo and hi bounds.
16185cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16186/* confdefs.h. */
16187_ACEOF
16188cat confdefs.h >>conftest.$ac_ext
16189cat >>conftest.$ac_ext <<_ACEOF
16190/* end confdefs.h. */
16191$ac_includes_default
16192int
16193main ()
16194{
16195static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16196test_array [0] = 0
16197
16198 ;
16199 return 0;
16200}
16201_ACEOF
16202rm -f conftest.$ac_objext
16203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16204 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16205 ac_status=$?
eea650d8
VS
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
e6cc62c6
VS
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
eea650d8
VS
16211 { ac_try='test -z "$ac_c_werror_flag"
16212 || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_lo=0 ac_mid=0
16225 while :; do
16226 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16227/* confdefs.h. */
16228_ACEOF
16229cat confdefs.h >>conftest.$ac_ext
16230cat >>conftest.$ac_ext <<_ACEOF
16231/* end confdefs.h. */
16232$ac_includes_default
16233int
16234main ()
16235{
16236static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16237test_array [0] = 0
16238
16239 ;
16240 return 0;
16241}
16242_ACEOF
16243rm -f conftest.$ac_objext
16244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16245 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16246 ac_status=$?
eea650d8
VS
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
e6cc62c6
VS
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
eea650d8
VS
16252 { ac_try='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 ac_hi=$ac_mid; break
16266else
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270ac_lo=`expr $ac_mid + 1`
eea650d8
VS
16271 if test $ac_lo -le $ac_mid; then
16272 ac_lo= ac_hi=
16273 break
16274 fi
16275 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16276fi
eea650d8 16277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16278 done
16279else
16280 echo "$as_me: failed program was:" >&5
16281sed 's/^/| /' conftest.$ac_ext >&5
16282
16283cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289$ac_includes_default
16290int
16291main ()
16292{
16293static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16294test_array [0] = 0
16295
16296 ;
16297 return 0;
16298}
16299_ACEOF
16300rm -f conftest.$ac_objext
16301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16302 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16303 ac_status=$?
eea650d8
VS
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
e6cc62c6
VS
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
eea650d8
VS
16309 { ac_try='test -z "$ac_c_werror_flag"
16310 || test ! -s conftest.err'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_hi=-1 ac_mid=-1
16323 while :; do
16324 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
16330$ac_includes_default
16331int
16332main ()
16333{
16334static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16335test_array [0] = 0
16336
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext
16342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16343 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16344 ac_status=$?
eea650d8
VS
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
e6cc62c6
VS
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
eea650d8
VS
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_lo=$ac_mid; break
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
16369 if test $ac_mid -le $ac_hi; then
16370 ac_lo= ac_hi=
16371 break
16372 fi
16373 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16374fi
eea650d8 16375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16376 done
16377else
16378 echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381ac_lo= ac_hi=
16382fi
eea650d8 16383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16384fi
eea650d8 16385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16386# Binary search between lo and hi bounds.
16387while test "x$ac_lo" != "x$ac_hi"; do
16388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16389 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16390/* confdefs.h. */
16391_ACEOF
16392cat confdefs.h >>conftest.$ac_ext
16393cat >>conftest.$ac_ext <<_ACEOF
16394/* end confdefs.h. */
16395$ac_includes_default
16396int
16397main ()
16398{
16399static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16400test_array [0] = 0
16401
16402 ;
16403 return 0;
16404}
16405_ACEOF
16406rm -f conftest.$ac_objext
16407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16408 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16409 ac_status=$?
eea650d8
VS
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
e6cc62c6
VS
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
eea650d8
VS
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_hi=$ac_mid
16429else
16430 echo "$as_me: failed program was:" >&5
16431sed 's/^/| /' conftest.$ac_ext >&5
16432
16433ac_lo=`expr '(' $ac_mid ')' + 1`
16434fi
eea650d8 16435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16436done
16437case $ac_lo in
16438?*) ac_cv_sizeof_long_long=$ac_lo;;
16439'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16440See \`config.log' for more details." >&5
16441echo "$as_me: error: cannot compute sizeof (long long), 77
16442See \`config.log' for more details." >&2;}
16443 { (exit 1); exit 1; }; } ;;
16444esac
a0b9e27f 16445else
e6cc62c6
VS
16446 if test "$cross_compiling" = yes; then
16447 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16448See \`config.log' for more details." >&5
16449echo "$as_me: error: cannot run test program while cross compiling
16450See \`config.log' for more details." >&2;}
16451 { (exit 1); exit 1; }; }
16452else
16453 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16454/* confdefs.h. */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
16458/* end confdefs.h. */
16459$ac_includes_default
16460long longval () { return (long) (sizeof (long long)); }
16461unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16462#include <stdio.h>
e6cc62c6
VS
16463#include <stdlib.h>
16464int
16465main ()
247f5006 16466{
e6cc62c6
VS
16467
16468 FILE *f = fopen ("conftest.val", "w");
16469 if (! f)
16470 exit (1);
16471 if (((long) (sizeof (long long))) < 0)
16472 {
16473 long i = longval ();
16474 if (i != ((long) (sizeof (long long))))
16475 exit (1);
16476 fprintf (f, "%ld\n", i);
16477 }
16478 else
16479 {
16480 unsigned long i = ulongval ();
16481 if (i != ((long) (sizeof (long long))))
16482 exit (1);
16483 fprintf (f, "%lu\n", i);
16484 }
16485 exit (ferror (f) || fclose (f) != 0);
16486
16487 ;
16488 return 0;
247f5006 16489}
e6cc62c6
VS
16490_ACEOF
16491rm -f conftest$ac_exeext
16492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_sizeof_long_long=`cat conftest.val`
16503else
16504 echo "$as_me: program exited with status $ac_status" >&5
16505echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508( exit $ac_status )
16509{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16510See \`config.log' for more details." >&5
16511echo "$as_me: error: cannot compute sizeof (long long), 77
16512See \`config.log' for more details." >&2;}
16513 { (exit 1); exit 1; }; }
16514fi
eea650d8 16515rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16516fi
16517fi
16518rm -f conftest.val
7b4a847f 16519else
a0b9e27f 16520 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16521fi
16522fi
e6cc62c6
VS
16523echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16524echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16525cat >>confdefs.h <<_ACEOF
16526#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16527_ACEOF
16528
16529
16530 ;;
16531 *-hp-hpux* )
16532 echo "$as_me:$LINENO: checking for long long" >&5
16533echo $ECHO_N "checking for long long... $ECHO_C" >&6
16534if test "${ac_cv_type_long_long+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16536else
16537 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16538/* confdefs.h. */
16539_ACEOF
16540cat confdefs.h >>conftest.$ac_ext
16541cat >>conftest.$ac_ext <<_ACEOF
16542/* end confdefs.h. */
16543$ac_includes_default
16544int
16545main ()
16546{
16547if ((long long *) 0)
16548 return 0;
16549if (sizeof (long long))
16550 return 0;
16551 ;
16552 return 0;
16553}
16554_ACEOF
16555rm -f conftest.$ac_objext
16556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16557 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16558 ac_status=$?
eea650d8
VS
16559 grep -v '^ *+' conftest.er1 >conftest.err
16560 rm -f conftest.er1
16561 cat conftest.err >&5
e6cc62c6
VS
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
eea650d8
VS
16564 { ac_try='test -z "$ac_c_werror_flag"
16565 || test ! -s conftest.err'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; } &&
16571 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
16577 ac_cv_type_long_long=yes
16578else
16579 echo "$as_me: failed program was:" >&5
16580sed 's/^/| /' conftest.$ac_ext >&5
16581
16582ac_cv_type_long_long=no
16583fi
eea650d8 16584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16585fi
16586echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16587echo "${ECHO_T}$ac_cv_type_long_long" >&6
16588
16589echo "$as_me:$LINENO: checking size of long long" >&5
16590echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16591if test "${ac_cv_sizeof_long_long+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16593else
16594 if test "$ac_cv_type_long_long" = yes; then
16595 # The cast to unsigned long works around a bug in the HP C Compiler
16596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16598 # This bug is HP SR number 8606223364.
16599 if test "$cross_compiling" = yes; then
16600 # Depending upon the size, compute the lo and hi bounds.
16601cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607$ac_includes_default
16608int
16609main ()
16610{
16611static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16612test_array [0] = 0
16613
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16620 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16621 ac_status=$?
eea650d8
VS
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
e6cc62c6
VS
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
eea650d8
VS
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_lo=0 ac_mid=0
16641 while :; do
16642 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16643/* confdefs.h. */
16644_ACEOF
16645cat confdefs.h >>conftest.$ac_ext
16646cat >>conftest.$ac_ext <<_ACEOF
16647/* end confdefs.h. */
16648$ac_includes_default
16649int
16650main ()
16651{
16652static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16653test_array [0] = 0
8284b0c5 16654
e6cc62c6
VS
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16661 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16662 ac_status=$?
eea650d8
VS
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
e6cc62c6
VS
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
eea650d8
VS
16668 { ac_try='test -z "$ac_c_werror_flag"
16669 || test ! -s conftest.err'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 ac_hi=$ac_mid; break
16682else
16683 echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
16686ac_lo=`expr $ac_mid + 1`
eea650d8
VS
16687 if test $ac_lo -le $ac_mid; then
16688 ac_lo= ac_hi=
16689 break
16690 fi
16691 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16692fi
eea650d8 16693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16694 done
16695else
16696 echo "$as_me: failed program was:" >&5
16697sed 's/^/| /' conftest.$ac_ext >&5
16698
16699cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
16705$ac_includes_default
16706int
16707main ()
16708{
16709static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16710test_array [0] = 0
a0b9e27f 16711
e6cc62c6
VS
16712 ;
16713 return 0;
16714}
16715_ACEOF
16716rm -f conftest.$ac_objext
16717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16718 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16719 ac_status=$?
eea650d8
VS
16720 grep -v '^ *+' conftest.er1 >conftest.err
16721 rm -f conftest.er1
16722 cat conftest.err >&5
e6cc62c6
VS
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
eea650d8
VS
16725 { ac_try='test -z "$ac_c_werror_flag"
16726 || test ! -s conftest.err'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_hi=-1 ac_mid=-1
16739 while :; do
16740 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
16746$ac_includes_default
16747int
16748main ()
16749{
16750static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16751test_array [0] = 0
a0b9e27f 16752
e6cc62c6
VS
16753 ;
16754 return 0;
16755}
16756_ACEOF
16757rm -f conftest.$ac_objext
16758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16759 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16760 ac_status=$?
eea650d8
VS
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
e6cc62c6
VS
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
eea650d8
VS
16766 { ac_try='test -z "$ac_c_werror_flag"
16767 || test ! -s conftest.err'
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'
e6cc62c6
VS
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_lo=$ac_mid; break
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
16785 if test $ac_mid -le $ac_hi; then
16786 ac_lo= ac_hi=
16787 break
16788 fi
16789 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16790fi
eea650d8 16791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16792 done
8284b0c5 16793else
e6cc62c6
VS
16794 echo "$as_me: failed program was:" >&5
16795sed 's/^/| /' conftest.$ac_ext >&5
16796
16797ac_lo= ac_hi=
16798fi
eea650d8 16799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16800fi
eea650d8 16801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16802# Binary search between lo and hi bounds.
16803while test "x$ac_lo" != "x$ac_hi"; do
16804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16805 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16806/* confdefs.h. */
16807_ACEOF
16808cat confdefs.h >>conftest.$ac_ext
16809cat >>conftest.$ac_ext <<_ACEOF
16810/* end confdefs.h. */
16811$ac_includes_default
16812int
16813main ()
16814{
16815static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16816test_array [0] = 0
16817
16818 ;
16819 return 0;
16820}
16821_ACEOF
16822rm -f conftest.$ac_objext
16823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16824 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16825 ac_status=$?
eea650d8
VS
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
e6cc62c6
VS
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } &&
eea650d8
VS
16831 { ac_try='test -z "$ac_c_werror_flag"
16832 || test ! -s conftest.err'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; } &&
16838 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_hi=$ac_mid
16845else
16846 echo "$as_me: failed program was:" >&5
16847sed 's/^/| /' conftest.$ac_ext >&5
16848
16849ac_lo=`expr '(' $ac_mid ')' + 1`
16850fi
eea650d8 16851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16852done
16853case $ac_lo in
16854?*) ac_cv_sizeof_long_long=$ac_lo;;
16855'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16856See \`config.log' for more details." >&5
16857echo "$as_me: error: cannot compute sizeof (long long), 77
16858See \`config.log' for more details." >&2;}
16859 { (exit 1); exit 1; }; } ;;
16860esac
8284b0c5 16861else
e6cc62c6
VS
16862 if test "$cross_compiling" = yes; then
16863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16864See \`config.log' for more details." >&5
16865echo "$as_me: error: cannot run test program while cross compiling
16866See \`config.log' for more details." >&2;}
16867 { (exit 1); exit 1; }; }
16868else
16869 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
16875$ac_includes_default
16876long longval () { return (long) (sizeof (long long)); }
16877unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16878#include <stdio.h>
e6cc62c6
VS
16879#include <stdlib.h>
16880int
16881main ()
8284b0c5 16882{
e6cc62c6
VS
16883
16884 FILE *f = fopen ("conftest.val", "w");
16885 if (! f)
16886 exit (1);
16887 if (((long) (sizeof (long long))) < 0)
16888 {
16889 long i = longval ();
16890 if (i != ((long) (sizeof (long long))))
16891 exit (1);
16892 fprintf (f, "%ld\n", i);
16893 }
16894 else
16895 {
16896 unsigned long i = ulongval ();
16897 if (i != ((long) (sizeof (long long))))
16898 exit (1);
16899 fprintf (f, "%lu\n", i);
16900 }
16901 exit (ferror (f) || fclose (f) != 0);
16902
16903 ;
16904 return 0;
8284b0c5 16905}
e6cc62c6
VS
16906_ACEOF
16907rm -f conftest$ac_exeext
16908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16909 (eval $ac_link) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_cv_sizeof_long_long=`cat conftest.val`
16919else
16920 echo "$as_me: program exited with status $ac_status" >&5
16921echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924( exit $ac_status )
16925{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16926See \`config.log' for more details." >&5
16927echo "$as_me: error: cannot compute sizeof (long long), 77
16928See \`config.log' for more details." >&2;}
16929 { (exit 1); exit 1; }; }
16930fi
eea650d8 16931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16932fi
16933fi
16934rm -f conftest.val
5c6fa7d2
RR
16935else
16936 ac_cv_sizeof_long_long=0
52127426 16937fi
4f57cf11 16938fi
e6cc62c6
VS
16939echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16940echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16941cat >>confdefs.h <<_ACEOF
4f57cf11 16942#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16943_ACEOF
4f57cf11
GD
16944
16945
16946 if test "$ac_cv_sizeof_long_long" != "0"; then
16947 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16948 fi
16949 ;;
16950 * )
e6cc62c6
VS
16951 echo "$as_me:$LINENO: checking for long long" >&5
16952echo $ECHO_N "checking for long long... $ECHO_C" >&6
16953if test "${ac_cv_type_long_long+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16955else
16956 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16957/* confdefs.h. */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h. */
16962$ac_includes_default
16963int
16964main ()
16965{
16966if ((long long *) 0)
16967 return 0;
16968if (sizeof (long long))
16969 return 0;
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext
16975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16976 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16977 ac_status=$?
eea650d8
VS
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
e6cc62c6
VS
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
eea650d8
VS
16983 { ac_try='test -z "$ac_c_werror_flag"
16984 || test ! -s conftest.err'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_type_long_long=yes
16997else
16998 echo "$as_me: failed program was:" >&5
16999sed 's/^/| /' conftest.$ac_ext >&5
17000
17001ac_cv_type_long_long=no
17002fi
eea650d8 17003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17004fi
17005echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17006echo "${ECHO_T}$ac_cv_type_long_long" >&6
17007
17008echo "$as_me:$LINENO: checking size of long long" >&5
17009echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17010if test "${ac_cv_sizeof_long_long+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012else
17013 if test "$ac_cv_type_long_long" = yes; then
17014 # The cast to unsigned long works around a bug in the HP C Compiler
17015 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17016 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17017 # This bug is HP SR number 8606223364.
4f57cf11 17018 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17019 # Depending upon the size, compute the lo and hi bounds.
17020cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17021/* confdefs.h. */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h. */
17026$ac_includes_default
17027int
17028main ()
17029{
17030static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17031test_array [0] = 0
17032
17033 ;
17034 return 0;
17035}
17036_ACEOF
17037rm -f conftest.$ac_objext
17038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17039 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17040 ac_status=$?
eea650d8
VS
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
e6cc62c6
VS
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
eea650d8
VS
17046 { ac_try='test -z "$ac_c_werror_flag"
17047 || test ! -s conftest.err'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_lo=0 ac_mid=0
17060 while :; do
17061 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17062/* confdefs.h. */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h. */
17067$ac_includes_default
17068int
17069main ()
17070{
17071static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17072test_array [0] = 0
17073
17074 ;
17075 return 0;
17076}
17077_ACEOF
17078rm -f conftest.$ac_objext
17079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17080 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17081 ac_status=$?
eea650d8
VS
17082 grep -v '^ *+' conftest.er1 >conftest.err
17083 rm -f conftest.er1
17084 cat conftest.err >&5
e6cc62c6
VS
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } &&
eea650d8
VS
17087 { ac_try='test -z "$ac_c_werror_flag"
17088 || test ! -s conftest.err'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; } &&
17094 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 ac_hi=$ac_mid; break
17101else
17102 echo "$as_me: failed program was:" >&5
17103sed 's/^/| /' conftest.$ac_ext >&5
17104
17105ac_lo=`expr $ac_mid + 1`
eea650d8
VS
17106 if test $ac_lo -le $ac_mid; then
17107 ac_lo= ac_hi=
17108 break
17109 fi
17110 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17111fi
eea650d8 17112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17113 done
17114else
17115 echo "$as_me: failed program was:" >&5
17116sed 's/^/| /' conftest.$ac_ext >&5
17117
17118cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124$ac_includes_default
17125int
17126main ()
17127{
17128static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17129test_array [0] = 0
17130
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext
17136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17137 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17138 ac_status=$?
eea650d8
VS
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
e6cc62c6
VS
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
eea650d8
VS
17144 { ac_try='test -z "$ac_c_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_hi=-1 ac_mid=-1
17158 while :; do
17159 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17160/* confdefs.h. */
17161_ACEOF
17162cat confdefs.h >>conftest.$ac_ext
17163cat >>conftest.$ac_ext <<_ACEOF
17164/* end confdefs.h. */
17165$ac_includes_default
17166int
17167main ()
17168{
17169static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17170test_array [0] = 0
17171
17172 ;
17173 return 0;
17174}
17175_ACEOF
17176rm -f conftest.$ac_objext
17177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17178 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17179 ac_status=$?
eea650d8
VS
17180 grep -v '^ *+' conftest.er1 >conftest.err
17181 rm -f conftest.er1
17182 cat conftest.err >&5
e6cc62c6
VS
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } &&
eea650d8
VS
17185 { ac_try='test -z "$ac_c_werror_flag"
17186 || test ! -s conftest.err'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_lo=$ac_mid; break
17199else
17200 echo "$as_me: failed program was:" >&5
17201sed 's/^/| /' conftest.$ac_ext >&5
17202
17203ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
17204 if test $ac_mid -le $ac_hi; then
17205 ac_lo= ac_hi=
17206 break
17207 fi
17208 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17209fi
eea650d8 17210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17211 done
4f57cf11 17212else
e6cc62c6
VS
17213 echo "$as_me: failed program was:" >&5
17214sed 's/^/| /' conftest.$ac_ext >&5
17215
17216ac_lo= ac_hi=
17217fi
eea650d8 17218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17219fi
eea650d8 17220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17221# Binary search between lo and hi bounds.
17222while test "x$ac_lo" != "x$ac_hi"; do
17223 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17224 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17225/* confdefs.h. */
17226_ACEOF
17227cat confdefs.h >>conftest.$ac_ext
17228cat >>conftest.$ac_ext <<_ACEOF
17229/* end confdefs.h. */
17230$ac_includes_default
17231int
17232main ()
17233{
17234static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17235test_array [0] = 0
17236
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext
17242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17243 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17244 ac_status=$?
eea650d8
VS
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
e6cc62c6
VS
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
eea650d8
VS
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_hi=$ac_mid
17264else
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268ac_lo=`expr '(' $ac_mid ')' + 1`
17269fi
eea650d8 17270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17271done
17272case $ac_lo in
17273?*) ac_cv_sizeof_long_long=$ac_lo;;
17274'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17275See \`config.log' for more details." >&5
17276echo "$as_me: error: cannot compute sizeof (long long), 77
17277See \`config.log' for more details." >&2;}
17278 { (exit 1); exit 1; }; } ;;
17279esac
17280else
17281 if test "$cross_compiling" = yes; then
17282 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17283See \`config.log' for more details." >&5
17284echo "$as_me: error: cannot run test program while cross compiling
17285See \`config.log' for more details." >&2;}
17286 { (exit 1); exit 1; }; }
17287else
17288 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17289/* confdefs.h. */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h. */
17294$ac_includes_default
17295long longval () { return (long) (sizeof (long long)); }
17296unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17297#include <stdio.h>
e6cc62c6
VS
17298#include <stdlib.h>
17299int
17300main ()
4f57cf11 17301{
e6cc62c6
VS
17302
17303 FILE *f = fopen ("conftest.val", "w");
17304 if (! f)
17305 exit (1);
17306 if (((long) (sizeof (long long))) < 0)
17307 {
17308 long i = longval ();
17309 if (i != ((long) (sizeof (long long))))
17310 exit (1);
17311 fprintf (f, "%ld\n", i);
17312 }
17313 else
17314 {
17315 unsigned long i = ulongval ();
17316 if (i != ((long) (sizeof (long long))))
17317 exit (1);
17318 fprintf (f, "%lu\n", i);
17319 }
17320 exit (ferror (f) || fclose (f) != 0);
17321
17322 ;
17323 return 0;
4f57cf11 17324}
e6cc62c6
VS
17325_ACEOF
17326rm -f conftest$ac_exeext
17327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328 (eval $ac_link) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_sizeof_long_long=`cat conftest.val`
17338else
17339 echo "$as_me: program exited with status $ac_status" >&5
17340echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343( exit $ac_status )
17344{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17345See \`config.log' for more details." >&5
17346echo "$as_me: error: cannot compute sizeof (long long), 77
17347See \`config.log' for more details." >&2;}
17348 { (exit 1); exit 1; }; }
17349fi
eea650d8 17350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17351fi
17352fi
17353rm -f conftest.val
4f57cf11 17354else
4f57cf11
GD
17355 ac_cv_sizeof_long_long=0
17356fi
7b4a847f 17357fi
e6cc62c6
VS
17358echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17359echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17360cat >>confdefs.h <<_ACEOF
21d1c967 17361#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17362_ACEOF
9e691f46 17363
8284b0c5 17364
21d1c967
GD
17365esac
17366
e6cc62c6
VS
17367echo "$as_me:$LINENO: checking size of wchar_t" >&5
17368echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17369if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17371else
e6cc62c6 17372
21d1c967 17373 if test "$cross_compiling" = yes; then
e6cc62c6 17374
2b5f62a0
VZ
17375 case "${host}" in
17376 *-pc-msdosdjgpp )
17377 wx_cv_sizeof_wchar_t=0
17378 ;;
17379 * )
17380 wx_cv_sizeof_wchar_t=4
17381 ;;
17382 esac
e6cc62c6
VS
17383
17384
6f72b082 17385else
e6cc62c6 17386 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17387/* confdefs.h. */
17388_ACEOF
17389cat confdefs.h >>conftest.$ac_ext
17390cat >>conftest.$ac_ext <<_ACEOF
17391/* end confdefs.h. */
21d1c967 17392
2b5f62a0
VZ
17393 /* DJGPP only has fake wchar_t: */
17394 #ifdef __DJGPP__
17395 # error "fake wchar_t"
17396 #endif
21d1c967
GD
17397 #ifdef HAVE_WCHAR_H
17398 # ifdef __CYGWIN__
17399 # include <stddef.h>
17400 # endif
17401 # include <wchar.h>
17402 #endif
17403 #ifdef HAVE_STDLIB_H
17404 # include <stdlib.h>
17405 #endif
17406 #include <stdio.h>
17407 int main()
17408 {
17409 FILE *f=fopen("conftestval", "w");
17410 if (!f) exit(1);
17411 fprintf(f, "%i", sizeof(wchar_t));
17412 exit(0);
17413 }
e6cc62c6
VS
17414
17415_ACEOF
17416rm -f conftest$ac_exeext
17417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
21d1c967 17427 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17428else
e6cc62c6
VS
17429 echo "$as_me: program exited with status $ac_status" >&5
17430echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
17433( exit $ac_status )
17434wx_cv_sizeof_wchar_t=0
6f72b082 17435fi
eea650d8 17436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17437fi
6f72b082 17438
3f345b47 17439fi
e6cc62c6
VS
17440echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17441echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17442
e6cc62c6 17443cat >>confdefs.h <<_ACEOF
21d1c967 17444#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17445_ACEOF
90dd450c 17446
8284b0c5 17447
21d1c967
GD
17448# Check whether --enable-largefile or --disable-largefile was given.
17449if test "${enable_largefile+set}" = set; then
17450 enableval="$enable_largefile"
3f345b47 17451
e6cc62c6 17452fi;
21d1c967
GD
17453if test "$enable_largefile" != no; then
17454 wx_largefile=no
e6cc62c6
VS
17455
17456 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17457echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17458if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17460else
17461
17462 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17463/* confdefs.h. */
17464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
17467/* end confdefs.h. */
21d1c967
GD
17468#define _FILE_OFFSET_BITS 64
17469 #include <sys/types.h>
e6cc62c6
VS
17470int
17471main ()
17472{
21d1c967
GD
17473typedef struct {
17474 unsigned int field: sizeof(off_t) == 8;
17475} wxlf;
17476
e6cc62c6
VS
17477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext
17482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17483 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17484 ac_status=$?
eea650d8
VS
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
e6cc62c6
VS
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
eea650d8
VS
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
21d1c967 17503 ac_cv_sys_file_offset_bits=64
f6bcfd97 17504else
e6cc62c6
VS
17505 echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508ac_cv_sys_file_offset_bits=no
247f5006 17509fi
eea650d8 17510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17511
a0b9e27f 17512
e6cc62c6
VS
17513fi
17514echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17515echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
17516
17517 if test "$ac_cv_sys_file_offset_bits" != no; then
17518 wx_largefile=yes
e6cc62c6 17519 cat >>confdefs.h <<_ACEOF
21d1c967 17520#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 17521_ACEOF
21d1c967
GD
17522
17523 fi
17524
17525 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
17526
17527 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17528echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17529if test "${ac_cv_sys_large_files+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531else
17532
17533 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17534/* confdefs.h. */
17535_ACEOF
17536cat confdefs.h >>conftest.$ac_ext
17537cat >>conftest.$ac_ext <<_ACEOF
17538/* end confdefs.h. */
21d1c967
GD
17539#define _LARGE_FILES 1
17540 #include <sys/types.h>
e6cc62c6
VS
17541int
17542main ()
17543{
21d1c967
GD
17544typedef struct {
17545 unsigned int field: sizeof(off_t) == 8;
17546} wxlf;
17547
e6cc62c6
VS
17548 ;
17549 return 0;
17550}
17551_ACEOF
17552rm -f conftest.$ac_objext
17553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17554 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17555 ac_status=$?
eea650d8
VS
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
e6cc62c6
VS
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
eea650d8
VS
17561 { ac_try='test -z "$ac_c_werror_flag"
17562 || test ! -s conftest.err'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
21d1c967 17574 ac_cv_sys_large_files=1
f6bcfd97 17575else
e6cc62c6
VS
17576 echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
17578
17579ac_cv_sys_large_files=no
247f5006 17580fi
eea650d8 17581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17582
e6cc62c6
VS
17583
17584fi
17585echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17586echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 17587
21d1c967
GD
17588 if test "$ac_cv_sys_large_files" != no; then
17589 wx_largefile=yes
e6cc62c6 17590 cat >>confdefs.h <<_ACEOF
21d1c967 17591#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 17592_ACEOF
90dd450c 17593
90dd450c
VZ
17594 fi
17595
90dd450c 17596 fi
90dd450c 17597
e6cc62c6
VS
17598 echo "$as_me:$LINENO: checking if large file support is available" >&5
17599echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 17600 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 17601 cat >>confdefs.h <<\_ACEOF
21d1c967 17602#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 17603_ACEOF
90dd450c 17604
90dd450c 17605 fi
e6cc62c6
VS
17606 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17607echo "${ECHO_T}$wx_largefile" >&6
21d1c967 17608fi
90dd450c 17609
8284b0c5 17610
f02444d0 17611if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
17612 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17613 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 17614 else
e26c13cf 17615 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 17616 fi
e26c13cf 17617 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
17618fi
17619
e6cc62c6
VS
17620echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17621echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17622if test "${ac_cv_c_bigendian+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17624else
21d1c967
GD
17625 ac_cv_c_bigendian=unknown
17626# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 17627cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17628/* confdefs.h. */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h. */
21d1c967
GD
17633#include <sys/types.h>
17634#include <sys/param.h>
e6cc62c6
VS
17635int
17636main ()
17637{
21d1c967
GD
17638
17639#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17640 bogus endian macros
17641#endif
e6cc62c6
VS
17642 ;
17643 return 0;
17644}
17645_ACEOF
17646rm -f conftest.$ac_objext
17647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17648 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17649 ac_status=$?
eea650d8
VS
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
e6cc62c6
VS
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
eea650d8
VS
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
21d1c967 17668 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17669cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17670/* confdefs.h. */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h. */
21d1c967
GD
17675#include <sys/types.h>
17676#include <sys/param.h>
e6cc62c6
VS
17677int
17678main ()
17679{
21d1c967
GD
17680
17681#if BYTE_ORDER != BIG_ENDIAN
17682 not big endian
17683#endif
e6cc62c6
VS
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext
17689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17690 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17691 ac_status=$?
eea650d8
VS
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
e6cc62c6
VS
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
eea650d8
VS
17697 { ac_try='test -z "$ac_c_werror_flag"
17698 || test ! -s conftest.err'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
21d1c967 17710 ac_cv_c_bigendian=yes
3f345b47 17711else
e6cc62c6
VS
17712 echo "$as_me: failed program was:" >&5
17713sed 's/^/| /' conftest.$ac_ext >&5
17714
17715ac_cv_c_bigendian=no
3f345b47 17716fi
eea650d8 17717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 17718else
e6cc62c6
VS
17719 echo "$as_me: failed program was:" >&5
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
3f345b47 17722fi
eea650d8 17723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17724if test $ac_cv_c_bigendian = unknown; then
17725if test "$cross_compiling" = yes; then
17726 ac_cv_c_bigendian=unknown
10f2d63a 17727else
e6cc62c6 17728 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
21d1c967
GD
17734main () {
17735 /* Are we little or big endian? From Harbison&Steele. */
17736 union
17737 {
17738 long l;
17739 char c[sizeof (long)];
17740 } u;
17741 u.l = 1;
17742 exit (u.c[sizeof (long) - 1] == 1);
17743}
e6cc62c6
VS
17744_ACEOF
17745rm -f conftest$ac_exeext
17746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
21d1c967 17756 ac_cv_c_bigendian=no
3f345b47 17757else
e6cc62c6
VS
17758 echo "$as_me: program exited with status $ac_status" >&5
17759echo "$as_me: failed program was:" >&5
17760sed 's/^/| /' conftest.$ac_ext >&5
17761
17762( exit $ac_status )
17763ac_cv_c_bigendian=yes
247f5006 17764fi
eea650d8 17765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17766fi
3f345b47 17767fi
8168de4c 17768fi
e6cc62c6
VS
17769echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17770echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17771if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17772 { 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
17773echo "$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;}
247f5006
VZ
17774fi
17775if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17776 cat >>confdefs.h <<\_ACEOF
247f5006 17777#define WORDS_BIGENDIAN 1
e6cc62c6 17778_ACEOF
247f5006
VZ
17779
17780fi
17781
17782
e6cc62c6
VS
17783
17784ac_ext=cc
17785ac_cpp='$CXXCPP $CPPFLAGS'
17786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17789echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17790echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17791if test -z "$CXXCPP"; then
e6cc62c6
VS
17792 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794else
17795 # Double quotes because CXXCPP needs to be expanded
17796 for CXXCPP in "$CXX -E" "/lib/cpp"
17797 do
17798 ac_preproc_ok=false
17799for ac_cxx_preproc_warn_flag in '' yes
17800do
17801 # Use a header file that comes with gcc, so configuring glibc
17802 # with a fresh cross-compiler works.
17803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804 # <limits.h> exists even on freestanding compilers.
17805 # On the NeXT, cc -E runs the code through the compiler's parser,
17806 # not just through cpp. "Syntax error" is here to catch this case.
17807 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17808/* confdefs.h. */
17809_ACEOF
17810cat confdefs.h >>conftest.$ac_ext
17811cat >>conftest.$ac_ext <<_ACEOF
17812/* end confdefs.h. */
17813#ifdef __STDC__
17814# include <limits.h>
17815#else
17816# include <assert.h>
17817#endif
eea650d8 17818 Syntax error
e6cc62c6
VS
17819_ACEOF
17820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } >/dev/null; then
17828 if test -s conftest.err; then
17829 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17830 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17831 else
17832 ac_cpp_err=
17833 fi
247f5006 17834else
e6cc62c6
VS
17835 ac_cpp_err=yes
17836fi
17837if test -z "$ac_cpp_err"; then
17838 :
17839else
17840 echo "$as_me: failed program was:" >&5
17841sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 # Broken: fails on valid input.
17844continue
17845fi
17846rm -f conftest.err conftest.$ac_ext
17847
17848 # OK, works on sane cases. Now check whether non-existent headers
17849 # can be detected and how.
17850 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17851/* confdefs.h. */
17852_ACEOF
17853cat confdefs.h >>conftest.$ac_ext
17854cat >>conftest.$ac_ext <<_ACEOF
17855/* end confdefs.h. */
17856#include <ac_nonexistent.h>
17857_ACEOF
17858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } >/dev/null; then
17866 if test -s conftest.err; then
17867 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17869 else
17870 ac_cpp_err=
17871 fi
17872else
17873 ac_cpp_err=yes
17874fi
17875if test -z "$ac_cpp_err"; then
17876 # Broken: success on invalid input.
17877continue
17878else
17879 echo "$as_me: failed program was:" >&5
17880sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 # Passes both tests.
17883ac_preproc_ok=:
17884break
17885fi
17886rm -f conftest.err conftest.$ac_ext
17887
17888done
17889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17890rm -f conftest.err conftest.$ac_ext
17891if $ac_preproc_ok; then
17892 break
17893fi
17894
17895 done
17896 ac_cv_prog_CXXCPP=$CXXCPP
17897
17898fi
17899 CXXCPP=$ac_cv_prog_CXXCPP
17900else
17901 ac_cv_prog_CXXCPP=$CXXCPP
17902fi
17903echo "$as_me:$LINENO: result: $CXXCPP" >&5
17904echo "${ECHO_T}$CXXCPP" >&6
17905ac_preproc_ok=false
17906for ac_cxx_preproc_warn_flag in '' yes
17907do
17908 # Use a header file that comes with gcc, so configuring glibc
17909 # with a fresh cross-compiler works.
17910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911 # <limits.h> exists even on freestanding compilers.
17912 # On the NeXT, cc -E runs the code through the compiler's parser,
17913 # not just through cpp. "Syntax error" is here to catch this case.
17914 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17915/* confdefs.h. */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h. */
17920#ifdef __STDC__
17921# include <limits.h>
17922#else
17923# include <assert.h>
17924#endif
eea650d8 17925 Syntax error
e6cc62c6
VS
17926_ACEOF
17927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17929 ac_status=$?
17930 grep -v '^ *+' conftest.er1 >conftest.err
17931 rm -f conftest.er1
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } >/dev/null; then
17935 if test -s conftest.err; then
17936 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17937 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17938 else
17939 ac_cpp_err=
17940 fi
17941else
17942 ac_cpp_err=yes
17943fi
17944if test -z "$ac_cpp_err"; then
21d1c967 17945 :
698dcdb6 17946else
e6cc62c6
VS
17947 echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
17950 # Broken: fails on valid input.
17951continue
17952fi
17953rm -f conftest.err conftest.$ac_ext
17954
17955 # OK, works on sane cases. Now check whether non-existent headers
17956 # can be detected and how.
17957 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17958/* confdefs.h. */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h. */
17963#include <ac_nonexistent.h>
17964_ACEOF
17965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } >/dev/null; then
17973 if test -s conftest.err; then
17974 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17976 else
17977 ac_cpp_err=
17978 fi
17979else
17980 ac_cpp_err=yes
247f5006 17981fi
e6cc62c6
VS
17982if test -z "$ac_cpp_err"; then
17983 # Broken: success on invalid input.
17984continue
17985else
17986 echo "$as_me: failed program was:" >&5
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 # Passes both tests.
17990ac_preproc_ok=:
17991break
328a083c 17992fi
e6cc62c6
VS
17993rm -f conftest.err conftest.$ac_ext
17994
17995done
17996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17997rm -f conftest.err conftest.$ac_ext
17998if $ac_preproc_ok; then
17999 :
18000else
18001 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18002See \`config.log' for more details." >&5
18003echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18004See \`config.log' for more details." >&2;}
18005 { (exit 1); exit 1; }; }
90dd450c 18006fi
e6cc62c6
VS
18007
18008ac_ext=cc
18009ac_cpp='$CXXCPP $CPPFLAGS'
18010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18013
1e6feb95 18014
1725144d 18015
21d1c967 18016 if test "$cross_compiling" = "yes"; then
e6cc62c6 18017 cat >>confdefs.h <<\_ACEOF
21d1c967 18018#define wxUSE_IOSTREAMH 1
e6cc62c6 18019_ACEOF
ab9b9eab 18020
21d1c967 18021 else
e6cc62c6
VS
18022
18023
18024 ac_ext=cc
5c6fa7d2 18025ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18029
52127426 18030
247f5006 18031
e6cc62c6 18032for ac_header in iostream
21d1c967 18033do
e6cc62c6
VS
18034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18035if eval "test \"\${$as_ac_Header+set}\" = set"; then
18036 echo "$as_me:$LINENO: checking for $ac_header" >&5
18037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18038if eval "test \"\${$as_ac_Header+set}\" = set"; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040fi
18041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18043else
18044 # Is the header compilable?
18045echo "$as_me:$LINENO: checking $ac_header usability" >&5
18046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18047cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18048/* confdefs.h. */
18049_ACEOF
18050cat confdefs.h >>conftest.$ac_ext
18051cat >>conftest.$ac_ext <<_ACEOF
18052/* end confdefs.h. */
18053$ac_includes_default
18054#include <$ac_header>
18055_ACEOF
18056rm -f conftest.$ac_objext
18057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18058 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18059 ac_status=$?
eea650d8
VS
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
e6cc62c6
VS
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
eea650d8
VS
18065 { ac_try='test -z "$ac_cxx_werror_flag"
18066 || test ! -s conftest.err'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 ac_header_compiler=yes
18079else
18080 echo "$as_me: failed program was:" >&5
18081sed 's/^/| /' conftest.$ac_ext >&5
18082
18083ac_header_compiler=no
18084fi
eea650d8 18085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18087echo "${ECHO_T}$ac_header_compiler" >&6
18088
18089# Is the header present?
18090echo "$as_me:$LINENO: checking $ac_header presence" >&5
18091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18092cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098#include <$ac_header>
18099_ACEOF
18100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18101 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
18108 if test -s conftest.err; then
18109 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 18110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18111 else
18112 ac_cpp_err=
18113 fi
18114else
18115 ac_cpp_err=yes
18116fi
18117if test -z "$ac_cpp_err"; then
18118 ac_header_preproc=yes
18119else
18120 echo "$as_me: failed program was:" >&5
18121sed 's/^/| /' conftest.$ac_ext >&5
18122
18123 ac_header_preproc=no
18124fi
18125rm -f conftest.err conftest.$ac_ext
18126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18127echo "${ECHO_T}$ac_header_preproc" >&6
18128
18129# So? What about this header?
eea650d8
VS
18130case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18131 yes:no: )
e6cc62c6
VS
18132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18136 ac_header_preproc=yes
e6cc62c6 18137 ;;
eea650d8 18138 no:yes:* )
e6cc62c6
VS
18139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
18141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18151 (
18152 cat <<\_ASBOX
eea650d8
VS
18153## ----------------------------------------- ##
18154## Report this to wx-dev@lists.wxwindows.org ##
18155## ----------------------------------------- ##
e6cc62c6
VS
18156_ASBOX
18157 ) |
18158 sed "s/^/$as_me: WARNING: /" >&2
18159 ;;
18160esac
18161echo "$as_me:$LINENO: checking for $ac_header" >&5
18162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18163if eval "test \"\${$as_ac_Header+set}\" = set"; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
eea650d8 18166 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18167fi
e6cc62c6
VS
18168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18170
90dd450c 18171fi
e6cc62c6
VS
18172if test `eval echo '${'$as_ac_Header'}'` = yes; then
18173 cat >>confdefs.h <<_ACEOF
18174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18175_ACEOF
18176
90dd450c 18177fi
e6cc62c6 18178
21d1c967 18179done
10f2d63a 18180
8284b0c5 18181
21d1c967
GD
18182 if test "$ac_cv_header_iostream" = "yes" ; then
18183 :
18184 else
e6cc62c6 18185 cat >>confdefs.h <<\_ACEOF
21d1c967 18186#define wxUSE_IOSTREAMH 1
e6cc62c6 18187_ACEOF
788deba1 18188
90dd450c 18189 fi
ab9b9eab 18190
21d1c967 18191 ac_ext=c
21d1c967 18192ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18196
21d1c967 18197 fi
ab9b9eab 18198
52127426 18199
8284b0c5 18200
e6cc62c6
VS
18201 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18202echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18203if test "${wx_cv_cpp_bool+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18205else
e6cc62c6
VS
18206
18207
18208
18209 ac_ext=cc
5c6fa7d2 18210ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18214
8284b0c5 18215
e6cc62c6 18216 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
21d1c967 18222
e6cc62c6
VS
18223
18224int
18225main ()
18226{
21d1c967
GD
18227
18228 bool b = true;
18229
18230 return 0;
e6cc62c6
VS
18231
18232 ;
18233 return 0;
18234}
18235_ACEOF
18236rm -f conftest.$ac_objext
18237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18238 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18239 ac_status=$?
eea650d8
VS
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
e6cc62c6
VS
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
eea650d8
VS
18245 { ac_try='test -z "$ac_cxx_werror_flag"
18246 || test ! -s conftest.err'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258
21d1c967 18259 wx_cv_cpp_bool=yes
e6cc62c6 18260
698dcdb6 18261else
e6cc62c6
VS
18262 echo "$as_me: failed program was:" >&5
18263sed 's/^/| /' conftest.$ac_ext >&5
18264
18265
21d1c967 18266 wx_cv_cpp_bool=no
e6cc62c6
VS
18267
18268
698dcdb6 18269fi
eea650d8 18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18271
18272 ac_ext=c
21d1c967 18273ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18277
a0b9e27f 18278
e6cc62c6
VS
18279fi
18280echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18281echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18282
18283 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18284 cat >>confdefs.h <<\_ACEOF
21d1c967 18285#define HAVE_BOOL 1
e6cc62c6 18286_ACEOF
ab9b9eab 18287
21d1c967
GD
18288 fi
18289
52127426 18290
8284b0c5 18291
e6cc62c6
VS
18292 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18293echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18294if test "${wx_cv_explicit+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18296else
e6cc62c6
VS
18297
18298
18299
18300 ac_ext=cc
5c6fa7d2 18301ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18305
8284b0c5 18306
e6cc62c6 18307 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18308/* confdefs.h. */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h. */
986ecc86
VZ
18313
18314 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18315
18316int
18317main ()
18318{
986ecc86
VZ
18319
18320 return 0;
e6cc62c6
VS
18321
18322 ;
18323 return 0;
18324}
18325_ACEOF
18326rm -f conftest.$ac_objext
18327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18328 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18329 ac_status=$?
eea650d8
VS
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
e6cc62c6
VS
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
eea650d8
VS
18335 { ac_try='test -z "$ac_cxx_werror_flag"
18336 || test ! -s conftest.err'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348
18349 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18350/* confdefs.h. */
18351_ACEOF
18352cat confdefs.h >>conftest.$ac_ext
18353cat >>conftest.$ac_ext <<_ACEOF
18354/* end confdefs.h. */
986ecc86
VZ
18355
18356 class Foo { public: explicit Foo(int) {} };
18357 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18358
18359int
18360main ()
18361{
986ecc86
VZ
18362
18363 TakeFoo(17);
18364 return 0;
e6cc62c6
VS
18365
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
18371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18372 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18373 ac_status=$?
eea650d8
VS
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
e6cc62c6
VS
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
eea650d8
VS
18379 { ac_try='test -z "$ac_cxx_werror_flag"
18380 || test ! -s conftest.err'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
986ecc86
VZ
18392 wx_cv_explicit=no
18393else
e6cc62c6
VS
18394 echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
18397wx_cv_explicit=yes
18398
986ecc86 18399fi
eea650d8 18400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18401
986ecc86 18402else
e6cc62c6
VS
18403 echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406wx_cv_explicit=no
18407
986ecc86 18408fi
eea650d8 18409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18410
18411 ac_ext=c
986ecc86 18412ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18416
a0b9e27f 18417
e6cc62c6
VS
18418fi
18419echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18420echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18421
18422 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18423 cat >>confdefs.h <<\_ACEOF
986ecc86 18424#define HAVE_EXPLICIT 1
e6cc62c6 18425_ACEOF
986ecc86
VZ
18426
18427 fi
18428
8284b0c5 18429
e6cc62c6
VS
18430echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18431echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18432if test "${ac_cv_cxx_const_cast+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18434else
521196a2 18435
521196a2 18436
e6cc62c6
VS
18437 ac_ext=cc
18438ac_cpp='$CXXCPP $CPPFLAGS'
18439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18442
18443 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18444/* confdefs.h. */
18445_ACEOF
18446cat confdefs.h >>conftest.$ac_ext
18447cat >>conftest.$ac_ext <<_ACEOF
18448/* end confdefs.h. */
18449
18450int
18451main ()
18452{
521196a2 18453int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18454 ;
18455 return 0;
18456}
18457_ACEOF
18458rm -f conftest.$ac_objext
18459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18460 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18461 ac_status=$?
eea650d8
VS
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
e6cc62c6
VS
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
eea650d8
VS
18467 { ac_try='test -z "$ac_cxx_werror_flag"
18468 || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
521196a2
MB
18480 ac_cv_cxx_const_cast=yes
18481else
e6cc62c6
VS
18482 echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485ac_cv_cxx_const_cast=no
521196a2 18486fi
eea650d8 18487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 18488 ac_ext=c
521196a2 18489ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18493
18494
18495fi
e6cc62c6
VS
18496echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18497echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18498if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
18499
18500cat >>confdefs.h <<\_ACEOF
18501#define HAVE_CONST_CAST
18502_ACEOF
521196a2
MB
18503
18504fi
18505
18506
e87b7833
MB
18507if test "$wxUSE_STL" = "yes"; then
18508 ac_ext=cc
18509ac_cpp='$CXXCPP $CPPFLAGS'
18510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
18514
18515 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18516echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18518/* confdefs.h. */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h. */
18523#include <string>
18524 #include <functional>
18525 #include <algorithm>
18526 #include <vector>
18527 #include <list>
18528int
18529main ()
18530{
18531std::vector<int> moo;
18532 std::list<int> foo;
18533 std::vector<int>::iterator it =
18534 std::find_if(moo.begin(), moo.end(),
18535 std::bind2nd(std::less<int>(), 3));
18536 ;
18537 return 0;
18538}
18539_ACEOF
18540rm -f conftest.$ac_objext
18541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18542 (eval $ac_compile) 2>conftest.er1
e87b7833 18543 ac_status=$?
eea650d8
VS
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
e87b7833
MB
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
eea650d8
VS
18549 { ac_try='test -z "$ac_cxx_werror_flag"
18550 || test ! -s conftest.err'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 echo "$as_me:$LINENO: result: yes" >&5
18563echo "${ECHO_T}yes" >&6
18564else
18565 echo "$as_me: failed program was:" >&5
18566sed 's/^/| /' conftest.$ac_ext >&5
18567
18568echo "$as_me:$LINENO: result: no" >&5
18569echo "${ECHO_T}no" >&6
18570 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18571echo "$as_me: error: Basic STL functionality missing" >&2;}
18572 { (exit 1); exit 1; }; }
18573fi
eea650d8 18574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18575
18576 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18577echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18578 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
18584#include <string>
18585int
18586main ()
18587{
18588std::wstring foo;
18589 ;
18590 return 0;
18591}
18592_ACEOF
18593rm -f conftest.$ac_objext
18594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18595 (eval $ac_compile) 2>conftest.er1
e87b7833 18596 ac_status=$?
eea650d8
VS
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
e87b7833
MB
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
eea650d8
VS
18602 { ac_try='test -z "$ac_cxx_werror_flag"
18603 || test ! -s conftest.err'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 echo "$as_me:$LINENO: result: yes" >&5
18616echo "${ECHO_T}yes" >&6
18617 cat >>confdefs.h <<\_ACEOF
18618#define HAVE_STD_WSTRING 1
18619_ACEOF
18620
18621else
18622 echo "$as_me: failed program was:" >&5
18623sed 's/^/| /' conftest.$ac_ext >&5
18624
18625echo "$as_me:$LINENO: result: no" >&5
18626echo "${ECHO_T}no" >&6
18627fi
eea650d8 18628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18629
18630 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18631echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18632 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
18638#include <string>
18639int
18640main ()
18641{
18642std::string foo, bar;
18643 foo.compare(bar);
18644 foo.compare(1, 1, bar);
18645 foo.compare(1, 1, bar, 1, 1);
18646 foo.compare("");
18647 foo.compare(1, 1, "");
18648 foo.compare(1, 1, "", 2);
18649 ;
18650 return 0;
18651}
18652_ACEOF
18653rm -f conftest.$ac_objext
18654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18655 (eval $ac_compile) 2>conftest.er1
e87b7833 18656 ac_status=$?
eea650d8
VS
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
e87b7833
MB
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
eea650d8
VS
18662 { ac_try='test -z "$ac_cxx_werror_flag"
18663 || test ! -s conftest.err'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } &&
18669 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 echo "$as_me:$LINENO: result: yes" >&5
18676echo "${ECHO_T}yes" >&6
18677 cat >>confdefs.h <<\_ACEOF
18678#define HAVE_STD_STRING_COMPARE 1
18679_ACEOF
18680
18681else
18682 echo "$as_me: failed program was:" >&5
18683sed 's/^/| /' conftest.$ac_ext >&5
18684
18685echo "$as_me:$LINENO: result: no" >&5
18686echo "${ECHO_T}no" >&6
18687fi
eea650d8 18688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18689
18690 ac_ext=c
18691ac_cpp='$CPP $CPPFLAGS'
18692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694ac_compiler_gnu=$ac_cv_c_compiler_gnu
18695
18696fi
18697
8284b0c5 18698
21d1c967
GD
18699SEARCH_INCLUDE="\
18700 /usr/local/include \
18701 \
18702 /usr/Motif-1.2/include \
18703 /usr/Motif-2.1/include \
18704 \
18705 /usr/include/Motif1.2 \
18706 /opt/xpm/include/X11 \
18707 /opt/GBxpm/include/ \
18708 /opt/GBxpm/X11/include/ \
18709 \
18710 /usr/Motif1.2/include \
18711 /usr/dt/include \
18712 /usr/openwin/include \
18713 \
18714 /usr/include/Xm \
18715 \
18716 /usr/X11R6/include \
18717 /usr/X11R6.4/include \
18718 /usr/X11R5/include \
18719 /usr/X11R4/include \
18720 \
18721 /usr/include/X11R6 \
18722 /usr/include/X11R5 \
18723 /usr/include/X11R4 \
18724 \
18725 /usr/local/X11R6/include \
18726 /usr/local/X11R5/include \
18727 /usr/local/X11R4/include \
18728 \
18729 /usr/local/include/X11R6 \
18730 /usr/local/include/X11R5 \
18731 /usr/local/include/X11R4 \
18732 \
18733 /usr/X11/include \
18734 /usr/include/X11 \
18735 /usr/local/X11/include \
18736 /usr/local/include/X11 \
18737 \
18738 /usr/X386/include \
18739 /usr/x386/include \
18740 /usr/XFree86/include/X11 \
18741 \
18742 X:/XFree86/include \
18743 X:/XFree86/include/X11 \
18744 \
18745 /usr/include/gtk \
18746 /usr/local/include/gtk \
18747 /usr/include/glib \
18748 /usr/local/include/glib \
18749 \
18750 /usr/include/qt \
18751 /usr/local/include/qt \
18752 \
18753 /usr/include/windows \
18754 /usr/include/wine \
18755 /usr/local/include/wine \
18756 \
18757 /usr/unsupported/include \
18758 /usr/athena/include \
18759 /usr/local/x11r5/include \
18760 /usr/lpp/Xamples/include \
18761 \
2b5f62a0 18762 /usr/openwin/share/include"
21d1c967
GD
18763
18764SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18765
8284b0c5 18766
e6cc62c6 18767cat >confcache <<\_ACEOF
21d1c967
GD
18768# This file is a shell script that caches the results of configure
18769# tests run on this system so they can be shared between configure
e6cc62c6
VS
18770# scripts and configure runs, see configure's option --config-cache.
18771# It is not useful on other systems. If it contains results you don't
18772# want to keep, you may remove or edit it.
21d1c967 18773#
e6cc62c6
VS
18774# config.status only pays attention to the cache file if you give it
18775# the --recheck option to rerun configure.
21d1c967 18776#
e6cc62c6
VS
18777# `ac_cv_env_foo' variables (set or unset) will be overridden when
18778# loading this file, other *unset* `ac_cv_foo' will be assigned the
18779# following values.
18780
18781_ACEOF
18782
21d1c967
GD
18783# The following way of writing the cache mishandles newlines in values,
18784# but we know of no workaround that is simple, portable, and efficient.
18785# So, don't put newlines in cache variables' values.
18786# Ultrix sh set writes to stderr and can't be redirected directly,
18787# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18788{
18789 (set) 2>&1 |
18790 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18791 *ac_space=\ *)
18792 # `set' does not quote correctly, so add quotes (double-quote
18793 # substitution turns \\\\ into \\, and sed turns \\ into \).
18794 sed -n \
eea650d8
VS
18795 "s/'/'\\\\''/g;
18796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18797 ;;
18798 *)
18799 # `set' quotes correctly as required by POSIX, so do not add quotes.
18800 sed -n \
eea650d8 18801 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18802 ;;
18803 esac;
18804} |
18805 sed '
18806 t clear
18807 : clear
18808 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18809 t end
18810 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18811 : end' >>confcache
18812if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18813 if test -w $cache_file; then
e6cc62c6
VS
18814 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18815 cat confcache >$cache_file
21d1c967
GD
18816 else
18817 echo "not updating unwritable cache $cache_file"
18818 fi
ab9b9eab 18819fi
21d1c967 18820rm -f confcache
ab9b9eab 18821
fe0895cf 18822if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18823 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18824echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18825if test "${wx_cv_lib_glibc21+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827else
18828
18829 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18830/* confdefs.h. */
18831_ACEOF
18832cat confdefs.h >>conftest.$ac_ext
18833cat >>conftest.$ac_ext <<_ACEOF
18834/* end confdefs.h. */
21d1c967 18835#include <features.h>
e6cc62c6
VS
18836int
18837main ()
18838{
ab9b9eab 18839
21d1c967
GD
18840 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18841 #error not glibc2.1
18842 #endif
e6cc62c6
VS
18843
18844 ;
18845 return 0;
18846}
18847_ACEOF
18848rm -f conftest.$ac_objext
18849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18850 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18851 ac_status=$?
eea650d8
VS
18852 grep -v '^ *+' conftest.er1 >conftest.err
18853 rm -f conftest.er1
18854 cat conftest.err >&5
e6cc62c6
VS
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } &&
eea650d8
VS
18857 { ac_try='test -z "$ac_c_werror_flag"
18858 || test ! -s conftest.err'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; } &&
18864 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870
21d1c967 18871 wx_cv_lib_glibc21=yes
e6cc62c6 18872
698dcdb6 18873else
e6cc62c6
VS
18874 echo "$as_me: failed program was:" >&5
18875sed 's/^/| /' conftest.$ac_ext >&5
18876
18877
21d1c967 18878 wx_cv_lib_glibc21=no
e6cc62c6
VS
18879
18880
247f5006 18881fi
eea650d8 18882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18883
e6cc62c6
VS
18884fi
18885echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18886echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18887 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18888 cat >>confdefs.h <<\_ACEOF
21d1c967 18889#define wxHAVE_GLIBC2 1
e6cc62c6 18890_ACEOF
1e487827 18891
90dd450c 18892 fi
ab9b9eab
VZ
18893fi
18894
5c0a20c3
VZ
18895if test "x$wx_cv_lib_glibc21" = "xyes"; then
18896 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18897 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18898#define _GNU_SOURCE 1
e6cc62c6 18899_ACEOF
5c0a20c3
VZ
18900
18901 fi
18902fi
18903
8284b0c5
MB
18904
18905
21d1c967 18906if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18907 cat >>confdefs.h <<\_ACEOF
21d1c967 18908#define wxUSE_REGEX 1
e6cc62c6 18909_ACEOF
698dcdb6 18910
8284b0c5 18911
21d1c967 18912 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18913 if test "${ac_cv_header_regex_h+set}" = set; then
18914 echo "$as_me:$LINENO: checking for regex.h" >&5
18915echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18916if test "${ac_cv_header_regex_h+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18918fi
18919echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18920echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18921else
18922 # Is the header compilable?
18923echo "$as_me:$LINENO: checking regex.h usability" >&5
18924echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18925cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
18931$ac_includes_default
247f5006 18932#include <regex.h>
e6cc62c6
VS
18933_ACEOF
18934rm -f conftest.$ac_objext
18935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18936 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18937 ac_status=$?
eea650d8
VS
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
e6cc62c6
VS
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
eea650d8
VS
18943 { ac_try='test -z "$ac_c_werror_flag"
18944 || test ! -s conftest.err'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 ac_header_compiler=yes
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
18961ac_header_compiler=no
18962fi
eea650d8 18963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18965echo "${ECHO_T}$ac_header_compiler" >&6
18966
18967# Is the header present?
18968echo "$as_me:$LINENO: checking regex.h presence" >&5
18969echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18970cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976#include <regex.h>
18977_ACEOF
18978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } >/dev/null; then
18986 if test -s conftest.err; then
18987 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 18988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
18989 else
18990 ac_cpp_err=
18991 fi
18992else
18993 ac_cpp_err=yes
18994fi
18995if test -z "$ac_cpp_err"; then
18996 ac_header_preproc=yes
18997else
18998 echo "$as_me: failed program was:" >&5
18999sed 's/^/| /' conftest.$ac_ext >&5
19000
19001 ac_header_preproc=no
19002fi
19003rm -f conftest.err conftest.$ac_ext
19004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19005echo "${ECHO_T}$ac_header_preproc" >&6
19006
19007# So? What about this header?
eea650d8
VS
19008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19009 yes:no: )
e6cc62c6
VS
19010 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19011echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19012 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19013echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19014 ac_header_preproc=yes
e6cc62c6 19015 ;;
eea650d8 19016 no:yes:* )
e6cc62c6
VS
19017 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19018echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
eea650d8
VS
19019 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19020echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19022echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19024echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19025 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19026echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19027 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19028echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19029 (
19030 cat <<\_ASBOX
eea650d8
VS
19031## ----------------------------------------- ##
19032## Report this to wx-dev@lists.wxwindows.org ##
19033## ----------------------------------------- ##
e6cc62c6
VS
19034_ASBOX
19035 ) |
19036 sed "s/^/$as_me: WARNING: /" >&2
19037 ;;
19038esac
19039echo "$as_me:$LINENO: checking for regex.h" >&5
19040echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19041if test "${ac_cv_header_regex_h+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19045fi
e6cc62c6
VS
19046echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19047echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19048
698dcdb6 19049fi
e6cc62c6
VS
19050if test $ac_cv_header_regex_h = yes; then
19051
19052for ac_func in regcomp
21d1c967 19053do
e6cc62c6
VS
19054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19055echo "$as_me:$LINENO: checking for $ac_func" >&5
19056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19057if eval "test \"\${$as_ac_var+set}\" = set"; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059else
19060 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
eea650d8
VS
19066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19068#define $ac_func innocuous_$ac_func
19069
a0b9e27f 19070/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19071 which can conflict with char $ac_func (); below.
19072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19073 <limits.h> exists even on freestanding compilers. */
eea650d8 19074
e6cc62c6
VS
19075#ifdef __STDC__
19076# include <limits.h>
19077#else
19078# include <assert.h>
19079#endif
eea650d8
VS
19080
19081#undef $ac_func
19082
21d1c967 19083/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19084#ifdef __cplusplus
19085extern "C"
19086{
19087#endif
21d1c967 19088/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19089 builtin and then its argument prototype would still apply. */
19090char $ac_func ();
21d1c967
GD
19091/* The GNU C library defines this for functions which it implements
19092 to always fail with ENOSYS. Some functions are actually named
19093 something starting with __ and the normal name is an alias. */
19094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19095choke me
19096#else
e6cc62c6
VS
19097char (*f) () = $ac_func;
19098#endif
19099#ifdef __cplusplus
19100}
21d1c967 19101#endif
90dd450c 19102
e6cc62c6
VS
19103int
19104main ()
19105{
19106return f != $ac_func;
19107 ;
19108 return 0;
19109}
19110_ACEOF
19111rm -f conftest.$ac_objext conftest$ac_exeext
19112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19113 (eval $ac_link) 2>conftest.er1
e6cc62c6 19114 ac_status=$?
eea650d8
VS
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
e6cc62c6
VS
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
eea650d8
VS
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 eval "$as_ac_var=yes"
19134else
19135 echo "$as_me: failed program was:" >&5
19136sed 's/^/| /' conftest.$ac_ext >&5
19137
19138eval "$as_ac_var=no"
19139fi
eea650d8
VS
19140rm -f conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19142fi
19143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19145if test `eval echo '${'$as_ac_var'}'` = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19148_ACEOF
5c6fa7d2 19149
698dcdb6 19150fi
21d1c967
GD
19151done
19152
ab9b9eab
VZ
19153fi
19154
8284b0c5 19155
e6cc62c6 19156
21d1c967
GD
19157 if test "x$ac_cv_func_regcomp" != "xyes"; then
19158 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19159 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19160echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19161 { (exit 1); exit 1; }; }
21d1c967 19162 else
e6cc62c6
VS
19163 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19164echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19165 wxUSE_REGEX=builtin
19166 fi
19167 else
19168 wxUSE_REGEX=sys
19169 fi
ab9b9eab 19170 fi
21d1c967 19171fi
90dd450c 19172
8284b0c5 19173
21d1c967
GD
19174ZLIB_LINK=
19175if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19176 cat >>confdefs.h <<\_ACEOF
21d1c967 19177#define wxUSE_ZLIB 1
e6cc62c6 19178_ACEOF
21d1c967 19179
8284b0c5 19180
21d1c967 19181 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19182 if test "$USE_DARWIN" = 1; then
19183 system_zlib_h_ok="yes"
19184 else
e6cc62c6
VS
19185 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19186echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19187if test "${ac_cv_header_zlib_h+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19189else
19190 if test "$cross_compiling" = yes; then
89e6bf6d 19191 unset ac_cv_header_zlib_h
e6cc62c6 19192
d643b80e 19193else
e6cc62c6 19194 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19195/* confdefs.h. */
19196_ACEOF
19197cat confdefs.h >>conftest.$ac_ext
19198cat >>conftest.$ac_ext <<_ACEOF
19199/* end confdefs.h. */
19200
ef33c576 19201 #include <zlib.h>
d775acfa 19202 #include <stdio.h>
d643b80e 19203
d775acfa
VZ
19204 int main()
19205 {
19206 FILE *f=fopen("conftestval", "w");
19207 if (!f) exit(1);
19208 fprintf(f, "%s",
19209 ZLIB_VERSION[0] == '1' &&
19210 (ZLIB_VERSION[2] > '1' ||
19211 (ZLIB_VERSION[2] == '1' &&
19212 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19213 exit(0);
19214 }
e6cc62c6
VS
19215
19216_ACEOF
19217rm -f conftest$ac_exeext
19218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
d643b80e
VZ
19228 ac_cv_header_zlib_h=`cat conftestval`
19229else
e6cc62c6
VS
19230 echo "$as_me: program exited with status $ac_status" >&5
19231echo "$as_me: failed program was:" >&5
19232sed 's/^/| /' conftest.$ac_ext >&5
19233
19234( exit $ac_status )
19235ac_cv_header_zlib_h=no
d643b80e 19236fi
eea650d8 19237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19238fi
19239
d643b80e 19240fi
e6cc62c6
VS
19241echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19242echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19243 if test "${ac_cv_header_zlib_h+set}" = set; then
19244 echo "$as_me:$LINENO: checking for zlib.h" >&5
19245echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19246if test "${ac_cv_header_zlib_h+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19248fi
19249echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19250echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19251else
e6cc62c6
VS
19252 # Is the header compilable?
19253echo "$as_me:$LINENO: checking zlib.h usability" >&5
19254echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19255cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19256/* confdefs.h. */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h. */
19261$ac_includes_default
89e6bf6d 19262#include <zlib.h>
e6cc62c6
VS
19263_ACEOF
19264rm -f conftest.$ac_objext
19265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19266 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19267 ac_status=$?
eea650d8
VS
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
e6cc62c6
VS
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
eea650d8
VS
19273 { ac_try='test -z "$ac_c_werror_flag"
19274 || test ! -s conftest.err'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_header_compiler=yes
19287else
19288 echo "$as_me: failed program was:" >&5
19289sed 's/^/| /' conftest.$ac_ext >&5
19290
19291ac_header_compiler=no
19292fi
eea650d8 19293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19295echo "${ECHO_T}$ac_header_compiler" >&6
19296
19297# Is the header present?
19298echo "$as_me:$LINENO: checking zlib.h presence" >&5
19299echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19300cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h. */
19306#include <zlib.h>
19307_ACEOF
19308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19310 ac_status=$?
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } >/dev/null; then
19316 if test -s conftest.err; then
19317 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 19318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19319 else
19320 ac_cpp_err=
19321 fi
19322else
19323 ac_cpp_err=yes
19324fi
19325if test -z "$ac_cpp_err"; then
19326 ac_header_preproc=yes
19327else
19328 echo "$as_me: failed program was:" >&5
19329sed 's/^/| /' conftest.$ac_ext >&5
19330
19331 ac_header_preproc=no
19332fi
19333rm -f conftest.err conftest.$ac_ext
19334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19335echo "${ECHO_T}$ac_header_preproc" >&6
19336
19337# So? What about this header?
eea650d8
VS
19338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19339 yes:no: )
e6cc62c6
VS
19340 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19341echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19342 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19343echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19344 ac_header_preproc=yes
e6cc62c6 19345 ;;
eea650d8 19346 no:yes:* )
e6cc62c6
VS
19347 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19348echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
eea650d8
VS
19349 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19350echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19352echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19353 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19354echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19355 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19356echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19357 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19358echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19359 (
19360 cat <<\_ASBOX
eea650d8
VS
19361## ----------------------------------------- ##
19362## Report this to wx-dev@lists.wxwindows.org ##
19363## ----------------------------------------- ##
e6cc62c6
VS
19364_ASBOX
19365 ) |
19366 sed "s/^/$as_me: WARNING: /" >&2
19367 ;;
19368esac
19369echo "$as_me:$LINENO: checking for zlib.h" >&5
19370echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19371if test "${ac_cv_header_zlib_h+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19373else
e6cc62c6
VS
19374 ac_cv_header_zlib_h=$ac_header_preproc
19375fi
19376echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19377echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19378
89e6bf6d
VZ
19379fi
19380
d643b80e 19381
e6cc62c6 19382
d775acfa
VZ
19383 system_zlib_h_ok=$ac_cv_header_zlib_h
19384 fi
19385
19386 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19387 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19388echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19389if test "${ac_cv_lib_z_deflate+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19391else
e6cc62c6 19392 ac_check_lib_save_LIBS=$LIBS
21d1c967 19393LIBS="-lz $LIBS"
e6cc62c6 19394cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
19400
21d1c967 19401/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19402#ifdef __cplusplus
19403extern "C"
19404#endif
21d1c967 19405/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19406 builtin and then its argument prototype would still apply. */
19407char deflate ();
19408int
19409main ()
19410{
19411deflate ();
19412 ;
19413 return 0;
19414}
19415_ACEOF
19416rm -f conftest.$ac_objext conftest$ac_exeext
19417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19418 (eval $ac_link) 2>conftest.er1
e6cc62c6 19419 ac_status=$?
eea650d8
VS
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
e6cc62c6
VS
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
eea650d8
VS
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_lib_z_deflate=yes
19439else
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443ac_cv_lib_z_deflate=no
19444fi
eea650d8
VS
19445rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19447LIBS=$ac_check_lib_save_LIBS
19448fi
19449echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19450echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19451if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 19452 ZLIB_LINK=" -lz"
a0b9e27f 19453fi
698dcdb6 19454
d643b80e 19455 fi
247f5006 19456
21d1c967
GD
19457 if test "x$ZLIB_LINK" = "x" ; then
19458 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
19459 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19460echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19461 { (exit 1); exit 1; }; }
21d1c967 19462 else
e6cc62c6
VS
19463 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19464echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19465 wxUSE_ZLIB=builtin
19466 fi
19467 else
19468 wxUSE_ZLIB=sys
19469 fi
19470 fi
ab9b9eab
VZ
19471fi
19472
8284b0c5 19473
21d1c967
GD
19474PNG_LINK=
19475if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 19476 cat >>confdefs.h <<\_ACEOF
21d1c967 19477#define wxUSE_LIBPNG 1
e6cc62c6 19478_ACEOF
90dd450c 19479
8284b0c5 19480
21d1c967 19481 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
19482 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19483echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
19484 wxUSE_LIBPNG=sys
19485 fi
90dd450c 19486
21d1c967 19487 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
19488 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19489echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
19490 wxUSE_LIBPNG=builtin
19491 fi
19492
19493 if test "$wxUSE_MGL" != 1 ; then
19494 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
19495 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19496echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19497if test "${ac_cv_header_png_h+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
19499else
19500 if test "$cross_compiling" = yes; then
89e6bf6d 19501 unset ac_cv_header_png_h
e6cc62c6 19502
5d3f766d 19503else
e6cc62c6 19504 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19505/* confdefs.h. */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
19510
ef33c576 19511 #include <png.h>
5d3f766d
VZ
19512 #include <stdio.h>
19513
19514 int main()
19515 {
19516 FILE *f=fopen("conftestval", "w");
19517 if (!f) exit(1);
19518 fprintf(f, "%s",
19519 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19520 exit(0);
19521 }
e6cc62c6
VS
19522
19523_ACEOF
19524rm -f conftest$ac_exeext
19525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526 (eval $ac_link) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
5d3f766d
VZ
19535 ac_cv_header_png_h=`cat conftestval`
19536else
e6cc62c6
VS
19537 echo "$as_me: program exited with status $ac_status" >&5
19538echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541( exit $ac_status )
19542ac_cv_header_png_h=no
5d3f766d 19543fi
eea650d8 19544rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
19545fi
19546
5d3f766d 19547fi
e6cc62c6
VS
19548echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19549echo "${ECHO_T}$ac_cv_header_png_h" >&6
19550 if test "${ac_cv_header_png_h+set}" = set; then
19551 echo "$as_me:$LINENO: checking for png.h" >&5
19552echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19553if test "${ac_cv_header_png_h+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555fi
19556echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19557echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 19558else
e6cc62c6
VS
19559 # Is the header compilable?
19560echo "$as_me:$LINENO: checking png.h usability" >&5
19561echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19562cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19563/* confdefs.h. */
19564_ACEOF
19565cat confdefs.h >>conftest.$ac_ext
19566cat >>conftest.$ac_ext <<_ACEOF
19567/* end confdefs.h. */
19568$ac_includes_default
89e6bf6d 19569#include <png.h>
e6cc62c6
VS
19570_ACEOF
19571rm -f conftest.$ac_objext
19572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19573 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19574 ac_status=$?
eea650d8
VS
19575 grep -v '^ *+' conftest.er1 >conftest.err
19576 rm -f conftest.er1
19577 cat conftest.err >&5
e6cc62c6
VS
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
eea650d8
VS
19580 { ac_try='test -z "$ac_c_werror_flag"
19581 || test ! -s conftest.err'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19593 ac_header_compiler=yes
19594else
19595 echo "$as_me: failed program was:" >&5
19596sed 's/^/| /' conftest.$ac_ext >&5
19597
19598ac_header_compiler=no
19599fi
eea650d8 19600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19602echo "${ECHO_T}$ac_header_compiler" >&6
19603
19604# Is the header present?
19605echo "$as_me:$LINENO: checking png.h presence" >&5
19606echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19607cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h. */
19613#include <png.h>
19614_ACEOF
19615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } >/dev/null; then
19623 if test -s conftest.err; then
19624 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 19625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19626 else
19627 ac_cpp_err=
19628 fi
19629else
19630 ac_cpp_err=yes
19631fi
19632if test -z "$ac_cpp_err"; then
19633 ac_header_preproc=yes
19634else
19635 echo "$as_me: failed program was:" >&5
19636sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_header_preproc=no
19639fi
19640rm -f conftest.err conftest.$ac_ext
19641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19642echo "${ECHO_T}$ac_header_preproc" >&6
19643
19644# So? What about this header?
eea650d8
VS
19645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19646 yes:no: )
e6cc62c6
VS
19647 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19648echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19649 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19650echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19651 ac_header_preproc=yes
e6cc62c6 19652 ;;
eea650d8 19653 no:yes:* )
e6cc62c6
VS
19654 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19655echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
eea650d8
VS
19656 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19657echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19659echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19661echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19662 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19663echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19664 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19665echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19666 (
19667 cat <<\_ASBOX
eea650d8
VS
19668## ----------------------------------------- ##
19669## Report this to wx-dev@lists.wxwindows.org ##
19670## ----------------------------------------- ##
e6cc62c6
VS
19671_ASBOX
19672 ) |
19673 sed "s/^/$as_me: WARNING: /" >&2
19674 ;;
19675esac
19676echo "$as_me:$LINENO: checking for png.h" >&5
19677echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19678if test "${ac_cv_header_png_h+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19680else
e6cc62c6
VS
19681 ac_cv_header_png_h=$ac_header_preproc
19682fi
19683echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19684echo "${ECHO_T}$ac_cv_header_png_h" >&6
19685
89e6bf6d
VZ
19686fi
19687
5d3f766d 19688
e6cc62c6 19689
5d3f766d 19690 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
19691 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19692echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19693if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19695else
e6cc62c6 19696 ac_check_lib_save_LIBS=$LIBS
21d1c967 19697LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 19698cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19699/* confdefs.h. */
19700_ACEOF
19701cat confdefs.h >>conftest.$ac_ext
19702cat >>conftest.$ac_ext <<_ACEOF
19703/* end confdefs.h. */
19704
21d1c967 19705/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19706#ifdef __cplusplus
19707extern "C"
19708#endif
21d1c967 19709/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19710 builtin and then its argument prototype would still apply. */
19711char png_check_sig ();
19712int
19713main ()
19714{
19715png_check_sig ();
19716 ;
19717 return 0;
19718}
19719_ACEOF
19720rm -f conftest.$ac_objext conftest$ac_exeext
19721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19722 (eval $ac_link) 2>conftest.er1
e6cc62c6 19723 ac_status=$?
eea650d8
VS
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
e6cc62c6
VS
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
eea650d8
VS
19729 { ac_try='test -z "$ac_c_werror_flag"
19730 || test ! -s conftest.err'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_cv_lib_png_png_check_sig=yes
19743else
19744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747ac_cv_lib_png_png_check_sig=no
19748fi
eea650d8
VS
19749rm -f conftest.err conftest.$ac_objext \
19750 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19751LIBS=$ac_check_lib_save_LIBS
19752fi
19753echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19754echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19755if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 19756 PNG_LINK=" -lpng"
a0b9e27f 19757fi
90dd450c 19758
5d3f766d 19759 fi
247f5006 19760
21d1c967
GD
19761 if test "x$PNG_LINK" = "x" ; then
19762 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
19763 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19764echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19765 { (exit 1); exit 1; }; }
21d1c967 19766 else
e6cc62c6
VS
19767 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19768echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19769 wxUSE_LIBPNG=builtin
19770 fi
19771 else
2b5f62a0 19772 wxUSE_LIBPNG=sys
21d1c967
GD
19773 fi
19774 fi
19775 fi
90dd450c 19776
21d1c967 19777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
19778fi
19779
8284b0c5 19780
21d1c967
GD
19781JPEG_LINK=
19782if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19783 cat >>confdefs.h <<\_ACEOF
21d1c967 19784#define wxUSE_LIBJPEG 1
e6cc62c6 19785_ACEOF
90dd450c 19786
8284b0c5 19787
21d1c967 19788 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19789 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19790echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19791 wxUSE_LIBJPEG=sys
19792 fi
90dd450c 19793
21d1c967
GD
19794 if test "$wxUSE_MGL" != 1 ; then
19795 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19796 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19797echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19798 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800else
19801 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
19806/* end confdefs.h. */
90dd450c 19807
21d1c967
GD
19808 #undef HAVE_STDLIB_H
19809 #include <stdio.h>
19810 #include <jpeglib.h>
90dd450c 19811
e6cc62c6
VS
19812int
19813main ()
19814{
19815
19816
19817 ;
19818 return 0;
19819}
19820_ACEOF
19821rm -f conftest.$ac_objext
19822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19823 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19824 ac_status=$?
eea650d8
VS
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
e6cc62c6
VS
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
eea650d8
VS
19830 { ac_try='test -z "$ac_c_werror_flag"
19831 || test ! -s conftest.err'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
21d1c967 19843 ac_cv_header_jpeglib_h=yes
90dd450c 19844else
e6cc62c6
VS
19845 echo "$as_me: failed program was:" >&5
19846sed 's/^/| /' conftest.$ac_ext >&5
19847
19848ac_cv_header_jpeglib_h=no
19849
90dd450c 19850fi
eea650d8 19851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19852
90dd450c
VZ
19853fi
19854
e6cc62c6
VS
19855 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19856echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19857
21d1c967 19858 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19859 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19860echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19861if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19863else
e6cc62c6 19864 ac_check_lib_save_LIBS=$LIBS
21d1c967 19865LIBS="-ljpeg $LIBS"
e6cc62c6 19866cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19867/* confdefs.h. */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
19871/* end confdefs.h. */
19872
21d1c967 19873/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19874#ifdef __cplusplus
19875extern "C"
19876#endif
21d1c967 19877/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19878 builtin and then its argument prototype would still apply. */
19879char jpeg_read_header ();
19880int
19881main ()
19882{
19883jpeg_read_header ();
19884 ;
19885 return 0;
19886}
19887_ACEOF
19888rm -f conftest.$ac_objext conftest$ac_exeext
19889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19890 (eval $ac_link) 2>conftest.er1
e6cc62c6 19891 ac_status=$?
eea650d8
VS
19892 grep -v '^ *+' conftest.er1 >conftest.err
19893 rm -f conftest.er1
19894 cat conftest.err >&5
e6cc62c6
VS
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } &&
eea650d8
VS
19897 { ac_try='test -z "$ac_c_werror_flag"
19898 || test ! -s conftest.err'
19899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 ac_cv_lib_jpeg_jpeg_read_header=yes
19911else
19912 echo "$as_me: failed program was:" >&5
19913sed 's/^/| /' conftest.$ac_ext >&5
19914
19915ac_cv_lib_jpeg_jpeg_read_header=no
19916fi
eea650d8
VS
19917rm -f conftest.err conftest.$ac_objext \
19918 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19919LIBS=$ac_check_lib_save_LIBS
19920fi
19921echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19922echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19923if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19924 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19925fi
19926
21d1c967 19927 fi
90dd450c 19928
21d1c967
GD
19929 if test "x$JPEG_LINK" = "x" ; then
19930 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19931 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19932echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19933 { (exit 1); exit 1; }; }
21d1c967 19934 else
e6cc62c6
VS
19935 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19936echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19937 wxUSE_LIBJPEG=builtin
19938 fi
19939 else
19940 wxUSE_LIBJPEG=sys
19941 fi
19942 fi
19943 fi
21d1c967 19944fi
90dd450c 19945
8284b0c5 19946
21d1c967 19947TIFF_LINK=
2b5f62a0 19948TIFF_PREREQ_LINKS=-lm
21d1c967 19949if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19950 cat >>confdefs.h <<\_ACEOF
21d1c967 19951#define wxUSE_LIBTIFF 1
e6cc62c6 19952_ACEOF
21d1c967 19953
8284b0c5 19954
21d1c967 19955 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19956 if test "$wxUSE_LIBJPEG" = "sys"; then
19957 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19958 fi
19959 if test "$wxUSE_ZLIB" = "sys"; then
19960 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19961 fi
e6cc62c6
VS
19962 if test "${ac_cv_header_tiffio_h+set}" = set; then
19963 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19964echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19965if test "${ac_cv_header_tiffio_h+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967fi
19968echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19969echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19970else
19971 # Is the header compilable?
19972echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19973echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19974cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980$ac_includes_default
247f5006 19981#include <tiffio.h>
e6cc62c6
VS
19982_ACEOF
19983rm -f conftest.$ac_objext
19984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19985 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19986 ac_status=$?
eea650d8
VS
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
e6cc62c6
VS
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
eea650d8
VS
19992 { ac_try='test -z "$ac_c_werror_flag"
19993 || test ! -s conftest.err'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_header_compiler=yes
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010ac_header_compiler=no
20011fi
eea650d8 20012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20014echo "${ECHO_T}$ac_header_compiler" >&6
20015
20016# Is the header present?
20017echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20018echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20019cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20020/* confdefs.h. */
20021_ACEOF
20022cat confdefs.h >>conftest.$ac_ext
20023cat >>conftest.$ac_ext <<_ACEOF
20024/* end confdefs.h. */
20025#include <tiffio.h>
20026_ACEOF
20027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20029 ac_status=$?
20030 grep -v '^ *+' conftest.er1 >conftest.err
20031 rm -f conftest.er1
20032 cat conftest.err >&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); } >/dev/null; then
20035 if test -s conftest.err; then
20036 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20038 else
20039 ac_cpp_err=
20040 fi
20041else
20042 ac_cpp_err=yes
20043fi
20044if test -z "$ac_cpp_err"; then
20045 ac_header_preproc=yes
20046else
20047 echo "$as_me: failed program was:" >&5
20048sed 's/^/| /' conftest.$ac_ext >&5
20049
20050 ac_header_preproc=no
20051fi
20052rm -f conftest.err conftest.$ac_ext
20053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20054echo "${ECHO_T}$ac_header_preproc" >&6
20055
20056# So? What about this header?
eea650d8
VS
20057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20058 yes:no: )
e6cc62c6
VS
20059 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20060echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20061 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20062echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20063 ac_header_preproc=yes
e6cc62c6 20064 ;;
eea650d8 20065 no:yes:* )
e6cc62c6
VS
20066 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20067echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
eea650d8
VS
20068 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20069echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20071echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20073echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20074 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20075echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20076 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20077echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20078 (
20079 cat <<\_ASBOX
eea650d8
VS
20080## ----------------------------------------- ##
20081## Report this to wx-dev@lists.wxwindows.org ##
20082## ----------------------------------------- ##
e6cc62c6
VS
20083_ASBOX
20084 ) |
20085 sed "s/^/$as_me: WARNING: /" >&2
20086 ;;
20087esac
20088echo "$as_me:$LINENO: checking for tiffio.h" >&5
20089echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20090if test "${ac_cv_header_tiffio_h+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20094fi
e6cc62c6
VS
20095echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20096echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20097
21d1c967 20098fi
e6cc62c6 20099if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20100
20101 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20102echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20103if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20105else
e6cc62c6 20106 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20107LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20108cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
20114
ab9b9eab 20115/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20116#ifdef __cplusplus
20117extern "C"
20118#endif
ab9b9eab 20119/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20120 builtin and then its argument prototype would still apply. */
20121char TIFFError ();
20122int
20123main ()
20124{
20125TIFFError ();
20126 ;
20127 return 0;
20128}
20129_ACEOF
20130rm -f conftest.$ac_objext conftest$ac_exeext
20131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20132 (eval $ac_link) 2>conftest.er1
e6cc62c6 20133 ac_status=$?
eea650d8
VS
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
e6cc62c6
VS
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
eea650d8
VS
20139 { ac_try='test -z "$ac_c_werror_flag"
20140 || test ! -s conftest.err'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; } &&
20146 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_lib_tiff_TIFFError=yes
20153else
20154 echo "$as_me: failed program was:" >&5
20155sed 's/^/| /' conftest.$ac_ext >&5
20156
20157ac_cv_lib_tiff_TIFFError=no
20158fi
eea650d8
VS
20159rm -f conftest.err conftest.$ac_objext \
20160 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20161LIBS=$ac_check_lib_save_LIBS
20162fi
20163echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20164echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20165if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20166 TIFF_LINK=" -ltiff"
a0b9e27f 20167fi
cd6d6d5b 20168
e6cc62c6 20169
0e012a93 20170
a0b9e27f 20171fi
8284b0c5 20172
247f5006 20173
e6cc62c6 20174
21d1c967
GD
20175 if test "x$TIFF_LINK" = "x" ; then
20176 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20177 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20178echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20179 { (exit 1); exit 1; }; }
90dd450c 20180 else
e6cc62c6
VS
20181 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20182echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20183 wxUSE_LIBTIFF=builtin
d8356fa3 20184 fi
d8356fa3 20185 else
21d1c967 20186 wxUSE_LIBTIFF=sys
d8356fa3 20187 fi
21d1c967 20188 fi
21d1c967 20189fi
10f2d63a 20190
8284b0c5 20191
672abd7a 20192if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20193 wxUSE_XML=yes
672abd7a
VS
20194 cat >>confdefs.h <<\_ACEOF
20195#define wxUSE_EXPAT 1
20196_ACEOF
20197
20198 cat >>confdefs.h <<\_ACEOF
20199#define wxUSE_XML 1
20200_ACEOF
20201
20202
20203 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20204 if test "${ac_cv_header_expat_h+set}" = set; then
20205 echo "$as_me:$LINENO: checking for expat.h" >&5
20206echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20207if test "${ac_cv_header_expat_h+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20209fi
20210echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20211echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20212else
20213 # Is the header compilable?
20214echo "$as_me:$LINENO: checking expat.h usability" >&5
20215echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20216cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
20222$ac_includes_default
20223#include <expat.h>
20224_ACEOF
20225rm -f conftest.$ac_objext
20226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20227 (eval $ac_compile) 2>conftest.er1
672abd7a 20228 ac_status=$?
eea650d8
VS
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
672abd7a
VS
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
eea650d8
VS
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_header_compiler=yes
20248else
20249 echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252ac_header_compiler=no
20253fi
eea650d8 20254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20256echo "${ECHO_T}$ac_header_compiler" >&6
20257
20258# Is the header present?
20259echo "$as_me:$LINENO: checking expat.h presence" >&5
20260echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20261cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
20267#include <expat.h>
20268_ACEOF
20269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20271 ac_status=$?
20272 grep -v '^ *+' conftest.er1 >conftest.err
20273 rm -f conftest.er1
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } >/dev/null; then
20277 if test -s conftest.err; then
20278 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20280 else
20281 ac_cpp_err=
20282 fi
20283else
20284 ac_cpp_err=yes
20285fi
20286if test -z "$ac_cpp_err"; then
20287 ac_header_preproc=yes
20288else
20289 echo "$as_me: failed program was:" >&5
20290sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 ac_header_preproc=no
20293fi
20294rm -f conftest.err conftest.$ac_ext
20295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20296echo "${ECHO_T}$ac_header_preproc" >&6
20297
20298# So? What about this header?
eea650d8
VS
20299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20300 yes:no: )
672abd7a
VS
20301 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20302echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20303 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20304echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20305 ac_header_preproc=yes
672abd7a 20306 ;;
eea650d8 20307 no:yes:* )
672abd7a
VS
20308 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20309echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
eea650d8
VS
20310 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20311echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20313echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20315echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20316 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20317echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20318 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20319echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20320 (
20321 cat <<\_ASBOX
eea650d8
VS
20322## ----------------------------------------- ##
20323## Report this to wx-dev@lists.wxwindows.org ##
20324## ----------------------------------------- ##
672abd7a
VS
20325_ASBOX
20326 ) |
20327 sed "s/^/$as_me: WARNING: /" >&2
20328 ;;
20329esac
20330echo "$as_me:$LINENO: checking for expat.h" >&5
20331echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20332if test "${ac_cv_header_expat_h+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334else
20335 ac_cv_header_expat_h=$ac_header_preproc
20336fi
20337echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20338echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20339
20340fi
5f0b6dff
VS
20341if test $ac_cv_header_expat_h = yes; then
20342 found_expat_h=1
20343fi
20344
20345
20346 if test "x$found_expat_h" = "x1"; then
20347 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20348echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20349if test "${wx_cv_expat_is_not_broken+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351else
20352
20353
672abd7a 20354
5f0b6dff
VS
20355 ac_ext=cc
20356ac_cpp='$CXXCPP $CPPFLAGS'
20357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20360
20361 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20362/* confdefs.h. */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h. */
20367#include <expat.h>
20368int
20369main ()
20370{
672abd7a 20371
5f0b6dff
VS
20372 ;
20373 return 0;
20374}
20375_ACEOF
20376rm -f conftest.$ac_objext
20377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20378 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20379 ac_status=$?
eea650d8
VS
20380 grep -v '^ *+' conftest.er1 >conftest.err
20381 rm -f conftest.er1
20382 cat conftest.err >&5
5f0b6dff
VS
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
eea650d8
VS
20385 { ac_try='test -z "$ac_cxx_werror_flag"
20386 || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 wx_cv_expat_is_not_broken=yes
20399else
20400 echo "$as_me: failed program was:" >&5
20401sed 's/^/| /' conftest.$ac_ext >&5
20402
20403wx_cv_expat_is_not_broken=no
20404
20405fi
eea650d8 20406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20407 ac_ext=c
20408ac_cpp='$CPP $CPPFLAGS'
20409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20411ac_compiler_gnu=$ac_cv_c_compiler_gnu
20412
20413
20414
20415fi
20416echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20417echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20418 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20419 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20420echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20421if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423else
20424 ac_check_lib_save_LIBS=$LIBS
20425LIBS="-lexpat $LIBS"
20426cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20427/* confdefs.h. */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h. */
20432
20433/* Override any gcc2 internal prototype to avoid an error. */
20434#ifdef __cplusplus
20435extern "C"
20436#endif
20437/* We use char because int might match the return type of a gcc2
20438 builtin and then its argument prototype would still apply. */
20439char XML_ParserCreate ();
20440int
20441main ()
20442{
20443XML_ParserCreate ();
20444 ;
20445 return 0;
20446}
20447_ACEOF
20448rm -f conftest.$ac_objext conftest$ac_exeext
20449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20450 (eval $ac_link) 2>conftest.er1
672abd7a 20451 ac_status=$?
eea650d8
VS
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
672abd7a
VS
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } &&
eea650d8
VS
20457 { ac_try='test -z "$ac_c_werror_flag"
20458 || test ! -s conftest.err'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_cv_lib_expat_XML_ParserCreate=yes
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_cv_lib_expat_XML_ParserCreate=no
20476fi
eea650d8
VS
20477rm -f conftest.err conftest.$ac_objext \
20478 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
20479LIBS=$ac_check_lib_save_LIBS
20480fi
20481echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20482echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20483if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20484 EXPAT_LINK=" -lexpat"
20485fi
20486
5f0b6dff 20487 fi
672abd7a
VS
20488 fi
20489 if test "x$EXPAT_LINK" = "x" ; then
20490 if test "$wxUSE_EXPAT" = "sys" ; then
20491 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20492echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20493 { (exit 1); exit 1; }; }
20494 else
20495 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20496echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20497 wxUSE_EXPAT=builtin
20498 fi
20499 else
20500 wxUSE_EXPAT=sys
20501 fi
20502 fi
20503 if test "$wxUSE_EXPAT" = "builtin" ; then
20504
20505
20506subdirs="$subdirs src/expat"
20507
20508 fi
20509fi
20510
20511
20512
3527f29c
VS
20513if test "$wxUSE_LIBMSPACK" != "no"; then
20514
20515 if test "${ac_cv_header_mspack_h+set}" = set; then
20516 echo "$as_me:$LINENO: checking for mspack.h" >&5
20517echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20518if test "${ac_cv_header_mspack_h+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520fi
20521echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20522echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20523else
20524 # Is the header compilable?
20525echo "$as_me:$LINENO: checking mspack.h usability" >&5
20526echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20527cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20528/* confdefs.h. */
20529_ACEOF
20530cat confdefs.h >>conftest.$ac_ext
20531cat >>conftest.$ac_ext <<_ACEOF
20532/* end confdefs.h. */
20533$ac_includes_default
20534#include <mspack.h>
20535_ACEOF
20536rm -f conftest.$ac_objext
20537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20538 (eval $ac_compile) 2>conftest.er1
3527f29c 20539 ac_status=$?
eea650d8
VS
20540 grep -v '^ *+' conftest.er1 >conftest.err
20541 rm -f conftest.er1
20542 cat conftest.err >&5
3527f29c
VS
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
eea650d8
VS
20545 { ac_try='test -z "$ac_c_werror_flag"
20546 || test ! -s conftest.err'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; } &&
20552 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_header_compiler=yes
20559else
20560 echo "$as_me: failed program was:" >&5
20561sed 's/^/| /' conftest.$ac_ext >&5
20562
20563ac_header_compiler=no
20564fi
eea650d8 20565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
20566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20567echo "${ECHO_T}$ac_header_compiler" >&6
20568
20569# Is the header present?
20570echo "$as_me:$LINENO: checking mspack.h presence" >&5
20571echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20572cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20573/* confdefs.h. */
20574_ACEOF
20575cat confdefs.h >>conftest.$ac_ext
20576cat >>conftest.$ac_ext <<_ACEOF
20577/* end confdefs.h. */
20578#include <mspack.h>
20579_ACEOF
20580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } >/dev/null; then
20588 if test -s conftest.err; then
20589 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
20591 else
20592 ac_cpp_err=
20593 fi
20594else
20595 ac_cpp_err=yes
20596fi
20597if test -z "$ac_cpp_err"; then
20598 ac_header_preproc=yes
20599else
20600 echo "$as_me: failed program was:" >&5
20601sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 ac_header_preproc=no
20604fi
20605rm -f conftest.err conftest.$ac_ext
20606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20607echo "${ECHO_T}$ac_header_preproc" >&6
20608
20609# So? What about this header?
eea650d8
VS
20610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20611 yes:no: )
3527f29c
VS
20612 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20613echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20614 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
20615echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
20616 ac_header_preproc=yes
3527f29c 20617 ;;
eea650d8 20618 no:yes:* )
3527f29c
VS
20619 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20620echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
eea650d8
VS
20621 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20622echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
20624echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
20626echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
20627 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20628echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20629 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
20630echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
20631 (
20632 cat <<\_ASBOX
eea650d8
VS
20633## ----------------------------------------- ##
20634## Report this to wx-dev@lists.wxwindows.org ##
20635## ----------------------------------------- ##
3527f29c
VS
20636_ASBOX
20637 ) |
20638 sed "s/^/$as_me: WARNING: /" >&2
20639 ;;
20640esac
20641echo "$as_me:$LINENO: checking for mspack.h" >&5
20642echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20643if test "${ac_cv_header_mspack_h+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20645else
20646 ac_cv_header_mspack_h=$ac_header_preproc
20647fi
20648echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20649echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20650
20651fi
20652if test $ac_cv_header_mspack_h = yes; then
20653 found_mspack_h=1
20654fi
20655
20656
20657 if test "x$found_mspack_h" = "x1"; then
20658 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20659echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20660if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663 ac_check_lib_save_LIBS=$LIBS
20664LIBS="-lmspack $LIBS"
20665cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20666/* confdefs.h. */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h. */
20671
20672/* Override any gcc2 internal prototype to avoid an error. */
20673#ifdef __cplusplus
20674extern "C"
20675#endif
20676/* We use char because int might match the return type of a gcc2
20677 builtin and then its argument prototype would still apply. */
20678char mspack_create_chm_decompressor ();
20679int
20680main ()
20681{
20682mspack_create_chm_decompressor ();
20683 ;
20684 return 0;
20685}
20686_ACEOF
20687rm -f conftest.$ac_objext conftest$ac_exeext
20688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20689 (eval $ac_link) 2>conftest.er1
3527f29c 20690 ac_status=$?
eea650d8
VS
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
3527f29c
VS
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
eea650d8
VS
20696 { ac_try='test -z "$ac_c_werror_flag"
20697 || test ! -s conftest.err'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } &&
20703 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20709 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20710else
20711 echo "$as_me: failed program was:" >&5
20712sed 's/^/| /' conftest.$ac_ext >&5
20713
20714ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20715fi
eea650d8
VS
20716rm -f conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
20718LIBS=$ac_check_lib_save_LIBS
20719fi
20720echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20721echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20722if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20723 MSPACK_LINK=" -lmspack"
20724fi
20725
20726 fi
20727 if test "x$MSPACK_LINK" = "x" ; then
20728 wxUSE_LIBMSPACK=no
20729 else
20730 cat >>confdefs.h <<\_ACEOF
20731#define wxUSE_LIBMSPACK 1
20732_ACEOF
20733
20734 fi
20735fi
20736
20737
20738
21d1c967 20739AFMINSTALL=
2b5f62a0 20740WIN32INSTALL=
90dd450c 20741
21d1c967
GD
20742TOOLKIT=
20743TOOLKIT_INCLUDE=
20744WIDGET_SET=
20745
20746if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
20747
20748for ac_header in w32api.h
21d1c967 20749do
e6cc62c6
VS
20750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20751if eval "test \"\${$as_ac_Header+set}\" = set"; then
20752 echo "$as_me:$LINENO: checking for $ac_header" >&5
20753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20754if eval "test \"\${$as_ac_Header+set}\" = set"; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20756fi
20757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20759else
20760 # Is the header compilable?
20761echo "$as_me:$LINENO: checking $ac_header usability" >&5
20762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20763cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20764/* confdefs.h. */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h. */
20769$ac_includes_default
20770#include <$ac_header>
20771_ACEOF
20772rm -f conftest.$ac_objext
20773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20774 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20775 ac_status=$?
eea650d8
VS
20776 grep -v '^ *+' conftest.er1 >conftest.err
20777 rm -f conftest.er1
20778 cat conftest.err >&5
e6cc62c6
VS
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } &&
eea650d8
VS
20781 { ac_try='test -z "$ac_c_werror_flag"
20782 || test ! -s conftest.err'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_header_compiler=yes
20795else
20796 echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799ac_header_compiler=no
20800fi
eea650d8 20801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20803echo "${ECHO_T}$ac_header_compiler" >&6
20804
20805# Is the header present?
20806echo "$as_me:$LINENO: checking $ac_header presence" >&5
20807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20808cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20809/* confdefs.h. */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h. */
20814#include <$ac_header>
20815_ACEOF
20816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20818 ac_status=$?
20819 grep -v '^ *+' conftest.er1 >conftest.err
20820 rm -f conftest.er1
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } >/dev/null; then
20824 if test -s conftest.err; then
20825 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20827 else
20828 ac_cpp_err=
20829 fi
20830else
20831 ac_cpp_err=yes
20832fi
20833if test -z "$ac_cpp_err"; then
20834 ac_header_preproc=yes
20835else
20836 echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839 ac_header_preproc=no
20840fi
20841rm -f conftest.err conftest.$ac_ext
20842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20843echo "${ECHO_T}$ac_header_preproc" >&6
20844
20845# So? What about this header?
eea650d8
VS
20846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20847 yes:no: )
e6cc62c6
VS
20848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20852 ac_header_preproc=yes
e6cc62c6 20853 ;;
eea650d8 20854 no:yes:* )
e6cc62c6
VS
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20867 (
20868 cat <<\_ASBOX
eea650d8
VS
20869## ----------------------------------------- ##
20870## Report this to wx-dev@lists.wxwindows.org ##
20871## ----------------------------------------- ##
e6cc62c6
VS
20872_ASBOX
20873 ) |
20874 sed "s/^/$as_me: WARNING: /" >&2
20875 ;;
20876esac
20877echo "$as_me:$LINENO: checking for $ac_header" >&5
20878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20879if eval "test \"\${$as_ac_Header+set}\" = set"; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20881else
eea650d8 20882 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 20883fi
e6cc62c6
VS
20884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20886
21d1c967 20887fi
e6cc62c6
VS
20888if test `eval echo '${'$as_ac_Header'}'` = yes; then
20889 cat >>confdefs.h <<_ACEOF
20890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20891_ACEOF
20892
21d1c967 20893fi
e6cc62c6 20894
21d1c967 20895done
f79bd02d 20896
e6cc62c6
VS
20897 if test "${ac_cv_header_windows_h+set}" = set; then
20898 echo "$as_me:$LINENO: checking for windows.h" >&5
20899echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20900if test "${ac_cv_header_windows_h+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20902fi
20903echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20904echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20905else
20906 # Is the header compilable?
20907echo "$as_me:$LINENO: checking windows.h usability" >&5
20908echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20909cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
20915$ac_includes_default
247f5006 20916#include <windows.h>
e6cc62c6
VS
20917_ACEOF
20918rm -f conftest.$ac_objext
20919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20920 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20921 ac_status=$?
eea650d8
VS
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
e6cc62c6
VS
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
eea650d8
VS
20927 { ac_try='test -z "$ac_c_werror_flag"
20928 || test ! -s conftest.err'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_header_compiler=yes
20941else
20942 echo "$as_me: failed program was:" >&5
20943sed 's/^/| /' conftest.$ac_ext >&5
20944
20945ac_header_compiler=no
20946fi
eea650d8 20947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20949echo "${ECHO_T}$ac_header_compiler" >&6
20950
20951# Is the header present?
20952echo "$as_me:$LINENO: checking windows.h presence" >&5
20953echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20954cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20955/* confdefs.h. */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
20959/* end confdefs.h. */
20960#include <windows.h>
20961_ACEOF
20962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20964 ac_status=$?
20965 grep -v '^ *+' conftest.er1 >conftest.err
20966 rm -f conftest.er1
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } >/dev/null; then
20970 if test -s conftest.err; then
20971 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20973 else
20974 ac_cpp_err=
20975 fi
20976else
20977 ac_cpp_err=yes
20978fi
20979if test -z "$ac_cpp_err"; then
20980 ac_header_preproc=yes
20981else
20982 echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 ac_header_preproc=no
20986fi
20987rm -f conftest.err conftest.$ac_ext
20988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20989echo "${ECHO_T}$ac_header_preproc" >&6
20990
20991# So? What about this header?
eea650d8
VS
20992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20993 yes:no: )
e6cc62c6
VS
20994 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20995echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20996 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
20997echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
20998 ac_header_preproc=yes
e6cc62c6 20999 ;;
eea650d8 21000 no:yes:* )
e6cc62c6
VS
21001 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21002echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
eea650d8
VS
21003 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21004echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21005 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21006echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21007 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21008echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21009 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21010echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
21011 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21012echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21013 (
21014 cat <<\_ASBOX
eea650d8
VS
21015## ----------------------------------------- ##
21016## Report this to wx-dev@lists.wxwindows.org ##
21017## ----------------------------------------- ##
e6cc62c6
VS
21018_ASBOX
21019 ) |
21020 sed "s/^/$as_me: WARNING: /" >&2
21021 ;;
21022esac
21023echo "$as_me:$LINENO: checking for windows.h" >&5
21024echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21025if test "${ac_cv_header_windows_h+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21027else
21028 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21029fi
e6cc62c6
VS
21030echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21031echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21032
90dd450c 21033fi
e6cc62c6 21034if test $ac_cv_header_windows_h = yes; then
21d1c967 21035 :
90dd450c 21036else
21d1c967 21037
e6cc62c6
VS
21038 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21039echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21040 { (exit 1); exit 1; }; }
21041
5c6fa7d2 21042fi
7b4a847f 21043
5c6fa7d2 21044
e6cc62c6 21045
b3dfbbc9 21046 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21047
7bb2947d
MB
21048 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21049 LIBS="$LIBS -loleacc"
21050 fi
21051
21d1c967
GD
21052 case "${host}" in
21053 *-*-cygwin* )
b3dfbbc9 21054 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21055 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21056 esac
f79bd02d 21057
8647bec6
RG
21058 if test "$wxUSE_ODBC" = "sys" ; then
21059 wxUSE_ODBC = "yes"
21d1c967 21060 fi
8647bec6
RG
21061 if test "$wxUSE_ODBC" = "yes" ; then
21062 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21063 cat >>confdefs.h <<\_ACEOF
8647bec6 21064#define wxUSE_ODBC 1
e6cc62c6 21065_ACEOF
f79bd02d 21066
8647bec6 21067 fi
e6cc62c6 21068
21d1c967
GD
21069 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21070 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21071
21072 WIN32INSTALL=win32install
f79bd02d 21073fi
f79bd02d 21074
21d1c967
GD
21075if test "$wxUSE_GUI" = "yes"; then
21076 USE_GUI=1
f79bd02d 21077
21d1c967 21078 GUI_TK_LIBRARY=
f79bd02d 21079
21d1c967
GD
21080 WXGTK12=
21081 WXGTK127=
21082 WXGTK20=
f79bd02d 21083
21d1c967
GD
21084 if test "$wxUSE_MSW" = 1 ; then
21085 TOOLKIT=MSW
21086 GUIDIST=MSW_DIST
ffef10f6
VS
21087
21088 case "${host}" in
21089 *-*-mingw32* )
21090 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21091 esac
f79bd02d
JS
21092 fi
21093
21d1c967 21094 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21095 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21096echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21097
21098 gtk_version_cached=1
e6cc62c6
VS
21099 if test "${wx_cv_lib_gtk+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21101else
e6cc62c6 21102
21d1c967 21103 gtk_version_cached=0
e6cc62c6
VS
21104 echo "$as_me:$LINENO: result: " >&5
21105echo "${ECHO_T}" >&6
f79bd02d 21106
21d1c967
GD
21107 GTK_MODULES=
21108 if test "$wxUSE_THREADS" = "yes"; then
21109 GTK_MODULES=gthread
21110 fi
f79bd02d 21111
2b5f62a0 21112 wx_cv_lib_gtk=
21d1c967
GD
21113 if test "x$wxUSE_GTK2" = "xyes"; then
21114 # Check whether --enable-gtktest or --disable-gtktest was given.
21115if test "${enable_gtktest+set}" = set; then
21116 enableval="$enable_gtktest"
e6cc62c6 21117
f79bd02d 21118else
21d1c967 21119 enable_gtktest=yes
e6cc62c6 21120fi;
f79bd02d 21121
21d1c967
GD
21122 pkg_config_args=gtk+-2.0
21123 for module in . $GTK_MODULES
21124 do
21125 case "$module" in
e6cc62c6 21126 gthread)
21d1c967
GD
21127 pkg_config_args="$pkg_config_args gthread-2.0"
21128 ;;
21129 esac
21130 done
21131
21132 no_gtk=""
f79bd02d 21133
21d1c967
GD
21134 # Extract the first word of "pkg-config", so it can be a program name with args.
21135set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21136echo "$as_me:$LINENO: checking for $ac_word" >&5
21137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21138if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21140else
e6cc62c6
VS
21141 case $PKG_CONFIG in
21142 [\\/]* | ?:[\\/]*)
21d1c967
GD
21143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21144 ;;
21d1c967 21145 *)
e6cc62c6
VS
21146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21147for as_dir in $PATH
21148do
21149 IFS=$as_save_IFS
21150 test -z "$as_dir" && as_dir=.
21151 for ac_exec_ext in '' $ac_executable_extensions; do
21152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21155 break 2
21156 fi
21157done
21158done
21159
21d1c967
GD
21160 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21161 ;;
21162esac
f79bd02d 21163fi
e6cc62c6
VS
21164PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21165
21d1c967 21166if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21167 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21168echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21169else
e6cc62c6
VS
21170 echo "$as_me:$LINENO: result: no" >&5
21171echo "${ECHO_T}no" >&6
f79bd02d
JS
21172fi
21173
8284b0c5 21174
21d1c967
GD
21175 if test x$PKG_CONFIG != xno ; then
21176 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21177 :
21178 else
21179 echo *** pkg-config too old; version 0.7 or better required.
21180 no_gtk=yes
21181 PKG_CONFIG=no
21182 fi
21183 else
21184 no_gtk=yes
21185 fi
f79bd02d 21186
21d1c967 21187 min_gtk_version=2.0.0
e6cc62c6
VS
21188 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21189echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21190
21d1c967
GD
21191 if test x$PKG_CONFIG != xno ; then
21192 ## don't try to run the test against uninstalled libtool libs
21193 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21194 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21195 enable_gtktest=no
21196 fi
f79bd02d 21197
21d1c967
GD
21198 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21199 :
21200 else
21201 no_gtk=yes
21202 fi
21203 fi
f79bd02d 21204
21d1c967
GD
21205 if test x"$no_gtk" = x ; then
21206 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21207 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21208 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21209 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21210 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21211 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21212 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21214 if test "x$enable_gtktest" = "xyes" ; then
21215 ac_save_CFLAGS="$CFLAGS"
21216 ac_save_LIBS="$LIBS"
21217 CFLAGS="$CFLAGS $GTK_CFLAGS"
21218 LIBS="$GTK_LIBS $LIBS"
21219 rm -f conf.gtktest
21220 if test "$cross_compiling" = yes; then
21221 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21222else
e6cc62c6 21223 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21224/* confdefs.h. */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h. */
f79bd02d 21229
21d1c967
GD
21230#include <gtk/gtk.h>
21231#include <stdio.h>
21232#include <stdlib.h>
f79bd02d 21233
e6cc62c6 21234int
21d1c967
GD
21235main ()
21236{
21237 int major, minor, micro;
21238 char *tmp_version;
f79bd02d 21239
21d1c967 21240 system ("touch conf.gtktest");
f79bd02d 21241
21d1c967
GD
21242 /* HP/UX 9 (%@#!) writes to sscanf strings */
21243 tmp_version = g_strdup("$min_gtk_version");
21244 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21245 printf("%s, bad version string\n", "$min_gtk_version");
21246 exit(1);
21247 }
f79bd02d 21248
21d1c967
GD
21249 if ((gtk_major_version != $gtk_config_major_version) ||
21250 (gtk_minor_version != $gtk_config_minor_version) ||
21251 (gtk_micro_version != $gtk_config_micro_version))
21252 {
e6cc62c6 21253 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21254 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21255 gtk_major_version, gtk_minor_version, gtk_micro_version);
21256 printf ("*** was found! If pkg-config was correct, then it is best\n");
21257 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21258 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21259 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21260 printf("*** required on your system.\n");
21261 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21262 printf("*** to point to the correct configuration files\n");
e6cc62c6 21263 }
21d1c967
GD
21264 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21265 (gtk_minor_version != GTK_MINOR_VERSION) ||
21266 (gtk_micro_version != GTK_MICRO_VERSION))
21267 {
21268 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21269 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21270 printf("*** library (version %d.%d.%d)\n",
21271 gtk_major_version, gtk_minor_version, gtk_micro_version);
21272 }
21273 else
21274 {
21275 if ((gtk_major_version > major) ||
21276 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21277 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21278 {
21279 return 0;
21280 }
21281 else
21282 {
21283 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21284 gtk_major_version, gtk_minor_version, gtk_micro_version);
21285 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21286 major, minor, micro);
21287 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21288 printf("***\n");
21289 printf("*** If you have already installed a sufficiently new version, this error\n");
21290 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21291 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21292 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21293 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21294 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21295 printf("*** so that the correct libraries are found at run-time))\n");
21296 }
21297 }
21298 return 1;
21299}
f79bd02d 21300
e6cc62c6
VS
21301_ACEOF
21302rm -f conftest$ac_exeext
21303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304 (eval $ac_link) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; }; then
21d1c967 21313 :
f79bd02d 21314else
e6cc62c6
VS
21315 echo "$as_me: program exited with status $ac_status" >&5
21316echo "$as_me: failed program was:" >&5
21317sed 's/^/| /' conftest.$ac_ext >&5
21318
21319( exit $ac_status )
21320no_gtk=yes
f79bd02d 21321fi
eea650d8 21322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21323fi
21d1c967
GD
21324 CFLAGS="$ac_save_CFLAGS"
21325 LIBS="$ac_save_LIBS"
21326 fi
21327 fi
21328 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21329 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21330echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21331 wx_cv_lib_gtk=2.0
21d1c967 21332 else
e6cc62c6
VS
21333 echo "$as_me:$LINENO: result: no" >&5
21334echo "${ECHO_T}no" >&6
21d1c967
GD
21335 if test "$PKG_CONFIG" = "no" ; then
21336 echo "*** A new enough version of pkg-config was not found."
21337 echo "*** See http://pkgconfig.sourceforge.net"
21338 else
21339 if test -f conf.gtktest ; then
21340 :
21341 else
21342 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21343 ac_save_CFLAGS="$CFLAGS"
21344 ac_save_LIBS="$LIBS"
21d1c967
GD
21345 CFLAGS="$CFLAGS $GTK_CFLAGS"
21346 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21347 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21348/* confdefs.h. */
21349_ACEOF
21350cat confdefs.h >>conftest.$ac_ext
21351cat >>conftest.$ac_ext <<_ACEOF
21352/* end confdefs.h. */
21d1c967
GD
21353
21354#include <gtk/gtk.h>
21355#include <stdio.h>
f79bd02d 21356
e6cc62c6
VS
21357int
21358main ()
21359{
21360 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21361 ;
21362 return 0;
21363}
21364_ACEOF
21365rm -f conftest.$ac_objext conftest$ac_exeext
21366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21367 (eval $ac_link) 2>conftest.er1
e6cc62c6 21368 ac_status=$?
eea650d8
VS
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
e6cc62c6
VS
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } &&
eea650d8
VS
21374 { ac_try='test -z "$ac_c_werror_flag"
21375 || test ! -s conftest.err'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21d1c967
GD
21387 echo "*** The test program compiled, but did not run. This usually means"
21388 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21389 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21390 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21391 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21392 echo "*** is required on your system"
21393 echo "***"
21394 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21395 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21396else
e6cc62c6
VS
21397 echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 21401 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 21402fi
eea650d8
VS
21403rm -f conftest.err conftest.$ac_objext \
21404 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21405 CFLAGS="$ac_save_CFLAGS"
21406 LIBS="$ac_save_LIBS"
21407 fi
21408 fi
21409 GTK_CFLAGS=""
21410 GTK_LIBS=""
21411 :
21412 fi
e6cc62c6
VS
21413
21414
21d1c967 21415 rm -f conf.gtktest
f79bd02d 21416
2b5f62a0 21417 else
e6cc62c6
VS
21418
21419# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21420if test "${with_gtk_prefix+set}" = set; then
21421 withval="$with_gtk_prefix"
21422 gtk_config_prefix="$withval"
21423else
21424 gtk_config_prefix=""
e6cc62c6 21425fi;
f79bd02d 21426
21d1c967
GD
21427# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21428if test "${with_gtk_exec_prefix+set}" = set; then
21429 withval="$with_gtk_exec_prefix"
21430 gtk_config_exec_prefix="$withval"
21431else
21432 gtk_config_exec_prefix=""
e6cc62c6 21433fi;
21d1c967
GD
21434# Check whether --enable-gtktest or --disable-gtktest was given.
21435if test "${enable_gtktest+set}" = set; then
21436 enableval="$enable_gtktest"
e6cc62c6 21437
21d1c967
GD
21438else
21439 enable_gtktest=yes
e6cc62c6 21440fi;
21d1c967
GD
21441
21442 for module in . $GTK_MODULES
21443 do
21444 case "$module" in
e6cc62c6 21445 gthread)
21d1c967
GD
21446 gtk_config_args="$gtk_config_args gthread"
21447 ;;
21448 esac
21449 done
21450
21451 if test x$gtk_config_exec_prefix != x ; then
21452 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21453 if test x${GTK_CONFIG+set} != xset ; then
21454 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21455 fi
21456 fi
21457 if test x$gtk_config_prefix != x ; then
21458 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21459 if test x${GTK_CONFIG+set} != xset ; then
21460 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21461 fi
21462 fi
21463
21464 # Extract the first word of "gtk-config", so it can be a program name with args.
21465set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21466echo "$as_me:$LINENO: checking for $ac_word" >&5
21467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21468if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21470else
e6cc62c6
VS
21471 case $GTK_CONFIG in
21472 [\\/]* | ?:[\\/]*)
21d1c967
GD
21473 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21474 ;;
21d1c967 21475 *)
e6cc62c6
VS
21476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21477for as_dir in $PATH
21478do
21479 IFS=$as_save_IFS
21480 test -z "$as_dir" && as_dir=.
21481 for ac_exec_ext in '' $ac_executable_extensions; do
21482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21483 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21485 break 2
21486 fi
21487done
21488done
21489
21d1c967
GD
21490 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21491 ;;
21492esac
21493fi
e6cc62c6
VS
21494GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21495
21d1c967 21496if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21497 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21498echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21499else
e6cc62c6
VS
21500 echo "$as_me:$LINENO: result: no" >&5
21501echo "${ECHO_T}no" >&6
21d1c967
GD
21502fi
21503
21504 min_gtk_version=1.2.7
e6cc62c6
VS
21505 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21506echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21507 no_gtk=""
21508 if test "$GTK_CONFIG" = "no" ; then
21509 no_gtk=yes
21510 else
21511 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21512 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21513 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21515 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21517 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21519 if test "x$enable_gtktest" = "xyes" ; then
21520 ac_save_CFLAGS="$CFLAGS"
21521 ac_save_LIBS="$LIBS"
21522 CFLAGS="$CFLAGS $GTK_CFLAGS"
21523 LIBS="$GTK_LIBS $LIBS"
21524 rm -f conf.gtktest
21525 if test "$cross_compiling" = yes; then
21526 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21527else
e6cc62c6 21528 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21529/* confdefs.h. */
21530_ACEOF
21531cat confdefs.h >>conftest.$ac_ext
21532cat >>conftest.$ac_ext <<_ACEOF
21533/* end confdefs.h. */
f79bd02d 21534
21d1c967
GD
21535#include <gtk/gtk.h>
21536#include <stdio.h>
21537#include <stdlib.h>
f79bd02d 21538
e6cc62c6 21539int
21d1c967
GD
21540main ()
21541{
21542 int major, minor, micro;
21543 char *tmp_version;
21544
21545 system ("touch conf.gtktest");
21546
21547 /* HP/UX 9 (%@#!) writes to sscanf strings */
21548 tmp_version = g_strdup("$min_gtk_version");
21549 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21550 printf("%s, bad version string\n", "$min_gtk_version");
21551 exit(1);
21552 }
90dd450c 21553
21d1c967
GD
21554 if ((gtk_major_version != $gtk_config_major_version) ||
21555 (gtk_minor_version != $gtk_config_minor_version) ||
21556 (gtk_micro_version != $gtk_config_micro_version))
21557 {
e6cc62c6 21558 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21559 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21560 gtk_major_version, gtk_minor_version, gtk_micro_version);
21561 printf ("*** was found! If gtk-config was correct, then it is best\n");
21562 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21563 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21564 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21565 printf("*** required on your system.\n");
21566 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21567 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21568 printf("*** before re-running configure\n");
e6cc62c6 21569 }
21d1c967
GD
21570#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21571 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21572 (gtk_minor_version != GTK_MINOR_VERSION) ||
21573 (gtk_micro_version != GTK_MICRO_VERSION))
21574 {
21575 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21576 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21577 printf("*** library (version %d.%d.%d)\n",
21578 gtk_major_version, gtk_minor_version, gtk_micro_version);
21579 }
21580#endif /* defined (GTK_MAJOR_VERSION) ... */
21581 else
21582 {
21583 if ((gtk_major_version > major) ||
21584 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21585 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21586 {
21587 return 0;
21588 }
21589 else
21590 {
21591 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21592 gtk_major_version, gtk_minor_version, gtk_micro_version);
21593 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21594 major, minor, micro);
21595 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21596 printf("***\n");
21597 printf("*** If you have already installed a sufficiently new version, this error\n");
21598 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21599 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21600 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21601 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21602 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21603 printf("*** so that the correct libraries are found at run-time))\n");
21604 }
21605 }
21606 return 1;
21607}
21608
e6cc62c6
VS
21609_ACEOF
21610rm -f conftest$ac_exeext
21611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21612 (eval $ac_link) 2>&5
21613 ac_status=$?
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21d1c967
GD
21621 :
21622else
e6cc62c6
VS
21623 echo "$as_me: program exited with status $ac_status" >&5
21624echo "$as_me: failed program was:" >&5
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
21627( exit $ac_status )
21628no_gtk=yes
21d1c967 21629fi
eea650d8 21630rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21631fi
21d1c967
GD
21632 CFLAGS="$ac_save_CFLAGS"
21633 LIBS="$ac_save_LIBS"
21634 fi
21635 fi
21636 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21637 echo "$as_me:$LINENO: result: yes" >&5
21638echo "${ECHO_T}yes" >&6
21639 wx_cv_lib_gtk=1.2.7
21d1c967 21640 else
e6cc62c6
VS
21641 echo "$as_me:$LINENO: result: no" >&5
21642echo "${ECHO_T}no" >&6
21d1c967
GD
21643 if test "$GTK_CONFIG" = "no" ; then
21644 echo "*** The gtk-config script installed by GTK could not be found"
21645 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21646 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21647 echo "*** full path to gtk-config."
21648 else
21649 if test -f conf.gtktest ; then
21650 :
21651 else
21652 echo "*** Could not run GTK test program, checking why..."
21653 CFLAGS="$CFLAGS $GTK_CFLAGS"
21654 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21655 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21656/* confdefs.h. */
21657_ACEOF
21658cat confdefs.h >>conftest.$ac_ext
21659cat >>conftest.$ac_ext <<_ACEOF
21660/* end confdefs.h. */
21d1c967
GD
21661
21662#include <gtk/gtk.h>
21663#include <stdio.h>
21664
e6cc62c6
VS
21665int
21666main ()
21667{
21668 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21669 ;
21670 return 0;
21671}
21672_ACEOF
21673rm -f conftest.$ac_objext conftest$ac_exeext
21674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21675 (eval $ac_link) 2>conftest.er1
e6cc62c6 21676 ac_status=$?
eea650d8
VS
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
e6cc62c6
VS
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
eea650d8
VS
21682 { ac_try='test -z "$ac_c_werror_flag"
21683 || test ! -s conftest.err'
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21686 ac_status=$?
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; } &&
21689 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }; then
21d1c967
GD
21695 echo "*** The test program compiled, but did not run. This usually means"
21696 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21697 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21698 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21699 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21700 echo "*** is required on your system"
21701 echo "***"
21702 echo "*** If you have an old version installed, it is best to remove it, although"
21703 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21704 echo "***"
21705 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21706 echo "*** came with the system with the command"
21707 echo "***"
e6cc62c6 21708 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21709else
e6cc62c6
VS
21710 echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21714 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21715 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21716 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21717fi
eea650d8
VS
21718rm -f conftest.err conftest.$ac_objext \
21719 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21720 CFLAGS="$ac_save_CFLAGS"
21721 LIBS="$ac_save_LIBS"
21722 fi
21723 fi
21724 GTK_CFLAGS=""
21725 GTK_LIBS=""
21726 :
21727 fi
e6cc62c6
VS
21728
21729
21d1c967
GD
21730 rm -f conf.gtktest
21731
21d1c967 21732
2b5f62a0 21733 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
21734
21735# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21736if test "${with_gtk_prefix+set}" = set; then
21737 withval="$with_gtk_prefix"
21738 gtk_config_prefix="$withval"
21739else
21740 gtk_config_prefix=""
e6cc62c6 21741fi;
f79bd02d 21742
21d1c967
GD
21743# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21744if test "${with_gtk_exec_prefix+set}" = set; then
21745 withval="$with_gtk_exec_prefix"
21746 gtk_config_exec_prefix="$withval"
21747else
21748 gtk_config_exec_prefix=""
e6cc62c6 21749fi;
21d1c967
GD
21750# Check whether --enable-gtktest or --disable-gtktest was given.
21751if test "${enable_gtktest+set}" = set; then
21752 enableval="$enable_gtktest"
e6cc62c6 21753
90dd450c 21754else
21d1c967 21755 enable_gtktest=yes
e6cc62c6 21756fi;
21d1c967
GD
21757
21758 for module in . $GTK_MODULES
21759 do
21760 case "$module" in
e6cc62c6 21761 gthread)
21d1c967
GD
21762 gtk_config_args="$gtk_config_args gthread"
21763 ;;
21764 esac
21765 done
21766
21767 if test x$gtk_config_exec_prefix != x ; then
21768 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21769 if test x${GTK_CONFIG+set} != xset ; then
21770 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21771 fi
21772 fi
21773 if test x$gtk_config_prefix != x ; then
21774 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21775 if test x${GTK_CONFIG+set} != xset ; then
21776 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21777 fi
21778 fi
21779
21780 # Extract the first word of "gtk-config", so it can be a program name with args.
21781set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21782echo "$as_me:$LINENO: checking for $ac_word" >&5
21783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21784if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21786else
e6cc62c6
VS
21787 case $GTK_CONFIG in
21788 [\\/]* | ?:[\\/]*)
21d1c967
GD
21789 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21790 ;;
21d1c967 21791 *)
e6cc62c6
VS
21792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21793for as_dir in $PATH
21794do
21795 IFS=$as_save_IFS
21796 test -z "$as_dir" && as_dir=.
21797 for ac_exec_ext in '' $ac_executable_extensions; do
21798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21799 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21801 break 2
21802 fi
21803done
21804done
21805
21d1c967
GD
21806 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21807 ;;
21808esac
21809fi
e6cc62c6
VS
21810GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21811
21d1c967 21812if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21813 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21814echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21815else
e6cc62c6
VS
21816 echo "$as_me:$LINENO: result: no" >&5
21817echo "${ECHO_T}no" >&6
21d1c967
GD
21818fi
21819
21820 min_gtk_version=1.2.3
e6cc62c6
VS
21821 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21822echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21823 no_gtk=""
21824 if test "$GTK_CONFIG" = "no" ; then
21825 no_gtk=yes
21826 else
21827 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21828 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21829 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21830 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21831 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21832 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21833 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21834 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21835 if test "x$enable_gtktest" = "xyes" ; then
21836 ac_save_CFLAGS="$CFLAGS"
21837 ac_save_LIBS="$LIBS"
21838 CFLAGS="$CFLAGS $GTK_CFLAGS"
21839 LIBS="$GTK_LIBS $LIBS"
21840 rm -f conf.gtktest
21841 if test "$cross_compiling" = yes; then
21842 echo $ac_n "cross compiling; assumed OK... $ac_c"
21843else
e6cc62c6 21844 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21845/* confdefs.h. */
21846_ACEOF
21847cat confdefs.h >>conftest.$ac_ext
21848cat >>conftest.$ac_ext <<_ACEOF
21849/* end confdefs.h. */
21d1c967
GD
21850
21851#include <gtk/gtk.h>
21852#include <stdio.h>
21853#include <stdlib.h>
21854
e6cc62c6 21855int
21d1c967
GD
21856main ()
21857{
21858 int major, minor, micro;
21859 char *tmp_version;
21860
21861 system ("touch conf.gtktest");
21862
21863 /* HP/UX 9 (%@#!) writes to sscanf strings */
21864 tmp_version = g_strdup("$min_gtk_version");
21865 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21866 printf("%s, bad version string\n", "$min_gtk_version");
21867 exit(1);
21868 }
21869
21870 if ((gtk_major_version != $gtk_config_major_version) ||
21871 (gtk_minor_version != $gtk_config_minor_version) ||
21872 (gtk_micro_version != $gtk_config_micro_version))
21873 {
e6cc62c6 21874 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21875 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21876 gtk_major_version, gtk_minor_version, gtk_micro_version);
21877 printf ("*** was found! If gtk-config was correct, then it is best\n");
21878 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21879 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21880 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21881 printf("*** required on your system.\n");
21882 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21883 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21884 printf("*** before re-running configure\n");
e6cc62c6 21885 }
21d1c967
GD
21886#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21887 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21888 (gtk_minor_version != GTK_MINOR_VERSION) ||
21889 (gtk_micro_version != GTK_MICRO_VERSION))
21890 {
21891 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21892 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21893 printf("*** library (version %d.%d.%d)\n",
21894 gtk_major_version, gtk_minor_version, gtk_micro_version);
21895 }
21896#endif /* defined (GTK_MAJOR_VERSION) ... */
21897 else
21898 {
21899 if ((gtk_major_version > major) ||
21900 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21901 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21902 {
21903 return 0;
21904 }
21905 else
21906 {
21907 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21908 gtk_major_version, gtk_minor_version, gtk_micro_version);
21909 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21910 major, minor, micro);
21911 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21912 printf("***\n");
21913 printf("*** If you have already installed a sufficiently new version, this error\n");
21914 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21915 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21916 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21917 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21918 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21919 printf("*** so that the correct libraries are found at run-time))\n");
21920 }
21921 }
21922 return 1;
21923}
21924
e6cc62c6
VS
21925_ACEOF
21926rm -f conftest$ac_exeext
21927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21928 (eval $ac_link) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21934 ac_status=$?
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; }; then
21d1c967
GD
21937 :
21938else
e6cc62c6
VS
21939 echo "$as_me: program exited with status $ac_status" >&5
21940echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943( exit $ac_status )
21944no_gtk=yes
21d1c967 21945fi
eea650d8 21946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21947fi
21d1c967
GD
21948 CFLAGS="$ac_save_CFLAGS"
21949 LIBS="$ac_save_LIBS"
21950 fi
21951 fi
21952 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21953 echo "$as_me:$LINENO: result: yes" >&5
21954echo "${ECHO_T}yes" >&6
21955 wx_cv_lib_gtk=1.2.3
21d1c967 21956 else
e6cc62c6
VS
21957 echo "$as_me:$LINENO: result: no" >&5
21958echo "${ECHO_T}no" >&6
21d1c967
GD
21959 if test "$GTK_CONFIG" = "no" ; then
21960 echo "*** The gtk-config script installed by GTK could not be found"
21961 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21962 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21963 echo "*** full path to gtk-config."
21964 else
21965 if test -f conf.gtktest ; then
21966 :
21967 else
21968 echo "*** Could not run GTK test program, checking why..."
21969 CFLAGS="$CFLAGS $GTK_CFLAGS"
21970 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21971 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21972/* confdefs.h. */
21973_ACEOF
21974cat confdefs.h >>conftest.$ac_ext
21975cat >>conftest.$ac_ext <<_ACEOF
21976/* end confdefs.h. */
21d1c967
GD
21977
21978#include <gtk/gtk.h>
21979#include <stdio.h>
f79bd02d 21980
e6cc62c6
VS
21981int
21982main ()
21983{
21984 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21985 ;
21986 return 0;
21987}
21988_ACEOF
21989rm -f conftest.$ac_objext conftest$ac_exeext
21990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21991 (eval $ac_link) 2>conftest.er1
e6cc62c6 21992 ac_status=$?
eea650d8
VS
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
e6cc62c6
VS
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } &&
eea650d8
VS
21998 { ac_try='test -z "$ac_c_werror_flag"
21999 || test ! -s conftest.err'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22002 ac_status=$?
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; } &&
22005 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
21d1c967
GD
22011 echo "*** The test program compiled, but did not run. This usually means"
22012 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22013 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22014 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22015 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22016 echo "*** is required on your system"
22017 echo "***"
22018 echo "*** If you have an old version installed, it is best to remove it, although"
22019 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22020 echo "***"
22021 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22022 echo "*** came with the system with the command"
22023 echo "***"
e6cc62c6 22024 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22025else
e6cc62c6
VS
22026 echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22030 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22031 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22032 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22033fi
eea650d8
VS
22034rm -f conftest.err conftest.$ac_objext \
22035 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22036 CFLAGS="$ac_save_CFLAGS"
22037 LIBS="$ac_save_LIBS"
22038 fi
22039 fi
22040 GTK_CFLAGS=""
22041 GTK_LIBS=""
22042 :
22043 fi
e6cc62c6
VS
22044
22045
21d1c967 22046 rm -f conf.gtktest
f79bd02d 22047
2b5f62a0 22048 fi
21d1c967
GD
22049 fi
22050
22051 if test -z "$wx_cv_lib_gtk"; then
22052 wx_cv_lib_gtk=none
22053 else
22054 wx_cv_cflags_gtk=$GTK_CFLAGS
22055 wx_cv_libs_gtk=$GTK_LIBS
22056 fi
e6cc62c6
VS
22057
22058
5c6fa7d2 22059fi
52127426 22060
8284b0c5 22061
21d1c967 22062 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22063 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22064echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22065 fi
22066
22067 case "$wx_cv_lib_gtk" in
22068 2.0) WXGTK20=1
2b5f62a0 22069 TOOLKIT_VERSION=2
21d1c967
GD
22070 ;;
22071 1.2.7) WXGTK127=1
22072 WXGTK12=1
22073 ;;
22074 1.2.3) WXGTK12=1
22075 ;;
e6cc62c6
VS
22076 *) { { echo "$as_me:$LINENO: error:
22077Please check that gtk-config is in path, the directory
22078where GTK+ libraries are installed (returned by
22079'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22080equivalent variable and GTK+ is version 1.2.3 or above.
22081 " >&5
22082echo "$as_me: error:
247f5006
VZ
22083Please check that gtk-config is in path, the directory
22084where GTK+ libraries are installed (returned by
22085'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22086equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22087 " >&2;}
22088 { (exit 1); exit 1; }; }
21d1c967
GD
22089 ;;
22090 esac
22091
b13cd66e
VZ
22092 if test "$WXGTK20" = 1; then
22093 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22094
f09359cf
VS
22095 succeeded=no
22096
22097 if test -z "$PKG_CONFIG"; then
22098 # Extract the first word of "pkg-config", so it can be a program name with args.
22099set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22100echo "$as_me:$LINENO: checking for $ac_word" >&5
22101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22102if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22104else
e6cc62c6
VS
22105 case $PKG_CONFIG in
22106 [\\/]* | ?:[\\/]*)
f09359cf
VS
22107 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22108 ;;
f09359cf 22109 *)
e6cc62c6
VS
22110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22111for as_dir in $PATH
22112do
22113 IFS=$as_save_IFS
22114 test -z "$as_dir" && as_dir=.
22115 for ac_exec_ext in '' $ac_executable_extensions; do
22116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22117 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22119 break 2
22120 fi
22121done
22122done
22123
f09359cf
VS
22124 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22125 ;;
22126esac
22127fi
e6cc62c6
VS
22128PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22129
f09359cf 22130if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22131 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22132echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22133else
e6cc62c6
VS
22134 echo "$as_me:$LINENO: result: no" >&5
22135echo "${ECHO_T}no" >&6
f09359cf
VS
22136fi
22137
22138 fi
22139
22140 if test "$PKG_CONFIG" = "no" ; then
22141 echo "*** The pkg-config script could not be found. Make sure it is"
22142 echo "*** in your path, or set the PKG_CONFIG environment variable"
22143 echo "*** to the full path to pkg-config."
22144 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22145 else
22146 PKG_CONFIG_MIN_VERSION=0.9.0
22147 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22148 echo "$as_me:$LINENO: checking for pangoft2" >&5
22149echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22150
22151 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22152 echo "$as_me:$LINENO: result: yes" >&5
22153echo "${ECHO_T}yes" >&6
f09359cf
VS
22154 succeeded=yes
22155
e6cc62c6
VS
22156 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22157echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22158 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22159 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22160echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22161
e6cc62c6
VS
22162 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22163echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22164 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22165 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22166echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22167 else
22168 PANGOFT2_CFLAGS=""
22169 PANGOFT2_LIBS=""
e6cc62c6 22170 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22171 ## do set a variable so people can do so.
22172 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22173
f09359cf
VS
22174 fi
22175
e6cc62c6
VS
22176
22177
f09359cf
VS
22178 else
22179 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22180 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22181 fi
22182 fi
22183
22184 if test $succeeded = yes; then
e6cc62c6 22185
b13cd66e 22186 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22187 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22188
f09359cf 22189 else
e6cc62c6
VS
22190
22191 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22192echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22193 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22194
22195
f09359cf
VS
22196 fi
22197
b13cd66e 22198 fi
2b5f62a0
VZ
22199 else
22200 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22201 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22202echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22203 wxUSE_UNICODE=no
22204 fi
22205 fi
22206
22207 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22208
22209for ac_func in poll
2b5f62a0 22210do
e6cc62c6
VS
22211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22212echo "$as_me:$LINENO: checking for $ac_func" >&5
22213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22214if eval "test \"\${$as_ac_var+set}\" = set"; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216else
22217 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22218/* confdefs.h. */
22219_ACEOF
22220cat confdefs.h >>conftest.$ac_ext
22221cat >>conftest.$ac_ext <<_ACEOF
22222/* end confdefs.h. */
eea650d8
VS
22223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22225#define $ac_func innocuous_$ac_func
22226
2b5f62a0 22227/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22228 which can conflict with char $ac_func (); below.
22229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22230 <limits.h> exists even on freestanding compilers. */
eea650d8 22231
e6cc62c6
VS
22232#ifdef __STDC__
22233# include <limits.h>
22234#else
22235# include <assert.h>
22236#endif
eea650d8
VS
22237
22238#undef $ac_func
22239
2b5f62a0 22240/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22241#ifdef __cplusplus
22242extern "C"
22243{
22244#endif
2b5f62a0 22245/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22246 builtin and then its argument prototype would still apply. */
22247char $ac_func ();
2b5f62a0
VZ
22248/* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22252choke me
22253#else
e6cc62c6
VS
22254char (*f) () = $ac_func;
22255#endif
22256#ifdef __cplusplus
22257}
2b5f62a0
VZ
22258#endif
22259
e6cc62c6
VS
22260int
22261main ()
22262{
22263return f != $ac_func;
22264 ;
22265 return 0;
22266}
22267_ACEOF
22268rm -f conftest.$ac_objext conftest$ac_exeext
22269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22270 (eval $ac_link) 2>conftest.er1
e6cc62c6 22271 ac_status=$?
eea650d8
VS
22272 grep -v '^ *+' conftest.er1 >conftest.err
22273 rm -f conftest.er1
22274 cat conftest.err >&5
e6cc62c6
VS
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } &&
eea650d8
VS
22277 { ac_try='test -z "$ac_c_werror_flag"
22278 || test ! -s conftest.err'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; }; then
22290 eval "$as_ac_var=yes"
22291else
22292 echo "$as_me: failed program was:" >&5
22293sed 's/^/| /' conftest.$ac_ext >&5
22294
22295eval "$as_ac_var=no"
22296fi
eea650d8
VS
22297rm -f conftest.err conftest.$ac_objext \
22298 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22299fi
22300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22302if test `eval echo '${'$as_ac_var'}'` = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305_ACEOF
2b5f62a0 22306
2b5f62a0
VZ
22307fi
22308done
22309
f09359cf
VS
22310 fi
22311
21d1c967 22312 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22313 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22314
22315 AFMINSTALL=afminstall
22316 TOOLKIT=GTK
22317 GUIDIST=GTK_DIST
22318
e6cc62c6
VS
22319 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22320echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22321if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22323else
e6cc62c6 22324 ac_check_lib_save_LIBS=$LIBS
21d1c967 22325LIBS="-lgdk $LIBS"
e6cc62c6 22326cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22327/* confdefs.h. */
22328_ACEOF
22329cat confdefs.h >>conftest.$ac_ext
22330cat >>conftest.$ac_ext <<_ACEOF
22331/* end confdefs.h. */
22332
5c6fa7d2 22333/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22334#ifdef __cplusplus
22335extern "C"
22336#endif
5c6fa7d2 22337/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22338 builtin and then its argument prototype would still apply. */
22339char gdk_im_open ();
22340int
22341main ()
22342{
22343gdk_im_open ();
22344 ;
22345 return 0;
22346}
22347_ACEOF
22348rm -f conftest.$ac_objext conftest$ac_exeext
22349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22350 (eval $ac_link) 2>conftest.er1
e6cc62c6 22351 ac_status=$?
eea650d8
VS
22352 grep -v '^ *+' conftest.er1 >conftest.err
22353 rm -f conftest.er1
22354 cat conftest.err >&5
e6cc62c6
VS
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } &&
eea650d8
VS
22357 { ac_try='test -z "$ac_c_werror_flag"
22358 || test ! -s conftest.err'
22359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360 (eval $ac_try) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); }; } &&
22364 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_cv_lib_gdk_gdk_im_open=yes
22371else
22372 echo "$as_me: failed program was:" >&5
22373sed 's/^/| /' conftest.$ac_ext >&5
22374
22375ac_cv_lib_gdk_gdk_im_open=no
22376fi
eea650d8
VS
22377rm -f conftest.err conftest.$ac_objext \
22378 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22379LIBS=$ac_check_lib_save_LIBS
22380fi
22381echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22382echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22383if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22384 cat >>confdefs.h <<\_ACEOF
21d1c967 22385#define HAVE_XIM 1
e6cc62c6 22386_ACEOF
21d1c967 22387
90dd450c 22388fi
1e6feb95 22389
21d1c967 22390 fi
1e6feb95 22391
21d1c967 22392 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22393 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22394echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22395 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
22396 echo "$as_me:$LINENO: result: not found" >&5
22397echo "${ECHO_T}not found" >&6
22398 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22399echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22400 { (exit 1); exit 1; }; }
21d1c967 22401 else
e6cc62c6
VS
22402 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22403echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
22404 fi
22405
e6cc62c6
VS
22406 echo "$as_me:$LINENO: checking for libmgl location" >&5
22407echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 22408 case "${host}" in
21d1c967 22409 *-*-linux* )
e46d2a18
VS
22410 if test "x$wxUSE_SHARED" = xyes ; then
22411 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 22412 else
e46d2a18 22413 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 22414 fi
21d1c967
GD
22415 ;;
22416 *-pc-msdosdjgpp )
63a76696 22417 mgl_os_candidates="dos32/dj2"
21d1c967
GD
22418 ;;
22419 *)
e6cc62c6
VS
22420 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22421echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22422 { (exit 1); exit 1; }; }
21d1c967 22423 esac
1e6feb95 22424
21d1c967 22425 mgl_lib_type=""
63a76696
VS
22426 mgl_os=""
22427
22428 for mgl_os_i in $mgl_os_candidates ; do
22429 if test "x$mgl_os" = x ; then
22430 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22431 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22432 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22433 mgl_lib_type=debug
22434 mgl_os=$mgl_os_i
22435 fi
22436 fi
22437 if test "x$mgl_lib_type" = x ; then
22438 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22439 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22440 mgl_lib_type=release
22441 mgl_os=$mgl_os_i
22442 fi
22443 fi
21d1c967 22444 fi
63a76696 22445 done
2224580a 22446
63a76696 22447 if test "x$mgl_os" = x ; then
e6cc62c6
VS
22448 echo "$as_me:$LINENO: result: not found" >&5
22449echo "${ECHO_T}not found" >&6
22450 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22451echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22452 { (exit 1); exit 1; }; }
63a76696 22453 fi
e6cc62c6
VS
22454 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22455echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 22456
1d1b75ac
VZ
22457 wxUSE_UNIVERSAL="yes"
22458
21d1c967
GD
22459 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22460 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22461
90dd450c 22462 AFMINSTALL=afminstall
21d1c967
GD
22463 TOOLKIT=MGL
22464 GUIDIST=MGL_DIST
22465 fi
dad6c0ea 22466
21d1c967 22467 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
22468 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22469echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 22470 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
22471 echo "$as_me:$LINENO: result: not found" >&5
22472echo "${ECHO_T}not found" >&6
22473 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22474echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22475 { (exit 1); exit 1; }; }
21d1c967 22476 else
e6cc62c6
VS
22477 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22478echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 22479 fi
f6bcfd97 22480
21d1c967 22481 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
22482 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22483echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 22484 else
e6cc62c6
VS
22485 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22486echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22487 { (exit 1); exit 1; }; }
90dd450c 22488 fi
0b2effe9 22489
21d1c967
GD
22490 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22491 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22492
1d1b75ac
VZ
22493 wxUSE_UNIVERSAL="yes"
22494
21d1c967
GD
22495 AFMINSTALL=afminstall
22496 TOOLKIT=MICROWIN
22497 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
22498
22499 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 22500 fi
f6bcfd97 22501
21d1c967 22502 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
22503 echo "$as_me:$LINENO: checking for X" >&5
22504echo $ECHO_N "checking for X... $ECHO_C" >&6
22505
d8356fa3 22506
21d1c967
GD
22507# Check whether --with-x or --without-x was given.
22508if test "${with_x+set}" = set; then
22509 withval="$with_x"
2224580a 22510
e6cc62c6 22511fi;
21d1c967
GD
22512# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22513if test "x$with_x" = xno; then
22514 # The user explicitly disabled X.
22515 have_x=disabled
22516else
22517 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22518 # Both variables are already set.
22519 have_x=yes
22520 else
e6cc62c6
VS
22521 if test "${ac_cv_have_x+set}" = set; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
22523else
22524 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
22525ac_x_includes=no ac_x_libraries=no
22526rm -fr conftest.dir
22527if mkdir conftest.dir; then
22528 cd conftest.dir
21d1c967 22529 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 22530 cat >Imakefile <<'_ACEOF'
21d1c967
GD
22531acfindx:
22532 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 22533_ACEOF
21d1c967
GD
22534 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22536 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22537 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22538 for ac_extension in a so sl; do
22539 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
eea650d8
VS
22540 test -f $ac_im_libdir/libX11.$ac_extension; then
22541 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
22542 fi
22543 done
22544 # Screen out bogus values from the imake configuration. They are
22545 # bogus both because they are the default anyway, and because
22546 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 22547 case $ac_im_incroot in
21d1c967 22548 /usr/include) ;;
e6cc62c6 22549 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 22550 esac
e6cc62c6 22551 case $ac_im_usrlibdir in
21d1c967 22552 /usr/lib | /lib) ;;
e6cc62c6 22553 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
22554 esac
22555 fi
22556 cd ..
e6cc62c6 22557 rm -fr conftest.dir
21d1c967 22558fi
10f2d63a 22559
e6cc62c6
VS
22560# Standard set of common directories for X headers.
22561# Check X11 before X11Rn because it is often a symlink to the current release.
22562ac_x_header_dirs='
22563/usr/X11/include
22564/usr/X11R6/include
22565/usr/X11R5/include
22566/usr/X11R4/include
22567
22568/usr/include/X11
22569/usr/include/X11R6
22570/usr/include/X11R5
22571/usr/include/X11R4
22572
22573/usr/local/X11/include
22574/usr/local/X11R6/include
22575/usr/local/X11R5/include
22576/usr/local/X11R4/include
22577
22578/usr/local/include/X11
22579/usr/local/include/X11R6
22580/usr/local/include/X11R5
22581/usr/local/include/X11R4
22582
22583/usr/X386/include
22584/usr/x386/include
22585/usr/XFree86/include/X11
22586
22587/usr/include
22588/usr/local/include
22589/usr/unsupported/include
22590/usr/athena/include
22591/usr/local/x11r5/include
22592/usr/lpp/Xamples/include
22593
22594/usr/openwin/include
22595/usr/openwin/share/include'
22596
22597if test "$ac_x_includes" = no; then
22598 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 22599 # First, try using that file with no special directory specified.
e6cc62c6 22600 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22601/* confdefs.h. */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h. */
22606#include <X11/Intrinsic.h>
22607_ACEOF
22608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22610 ac_status=$?
22611 grep -v '^ *+' conftest.er1 >conftest.err
22612 rm -f conftest.er1
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } >/dev/null; then
22616 if test -s conftest.err; then
22617 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 22618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
22619 else
22620 ac_cpp_err=
22621 fi
22622else
22623 ac_cpp_err=yes
22624fi
22625if test -z "$ac_cpp_err"; then
21d1c967
GD
22626 # We can compile using X headers with no special include directory.
22627ac_x_includes=
90dd450c 22628else
e6cc62c6
VS
22629 echo "$as_me: failed program was:" >&5
22630sed 's/^/| /' conftest.$ac_ext >&5
22631
22632 for ac_dir in $ac_x_header_dirs; do
22633 if test -r "$ac_dir/X11/Intrinsic.h"; then
22634 ac_x_includes=$ac_dir
22635 break
22636 fi
22637done
3a922bb4 22638fi
e6cc62c6
VS
22639rm -f conftest.err conftest.$ac_ext
22640fi # $ac_x_includes = no
10f2d63a 22641
e6cc62c6 22642if test "$ac_x_libraries" = no; then
21d1c967 22643 # Check for the libraries.
21d1c967
GD
22644 # See if we find them without any special options.
22645 # Don't add to $LIBS permanently.
e6cc62c6
VS
22646 ac_save_LIBS=$LIBS
22647 LIBS="-lXt $LIBS"
22648 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22649/* confdefs.h. */
22650_ACEOF
22651cat confdefs.h >>conftest.$ac_ext
22652cat >>conftest.$ac_ext <<_ACEOF
22653/* end confdefs.h. */
22654#include <X11/Intrinsic.h>
22655int
22656main ()
22657{
22658XtMalloc (0)
22659 ;
22660 return 0;
22661}
22662_ACEOF
22663rm -f conftest.$ac_objext conftest$ac_exeext
22664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22665 (eval $ac_link) 2>conftest.er1
e6cc62c6 22666 ac_status=$?
eea650d8
VS
22667 grep -v '^ *+' conftest.er1 >conftest.err
22668 rm -f conftest.er1
22669 cat conftest.err >&5
e6cc62c6
VS
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
eea650d8
VS
22672 { ac_try='test -z "$ac_c_werror_flag"
22673 || test ! -s conftest.err'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22676 ac_status=$?
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; } &&
22679 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681 (eval $ac_try) 2>&5
22682 ac_status=$?
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 LIBS=$ac_save_LIBS
21d1c967
GD
22686# We can link X programs with no special library path.
22687ac_x_libraries=
3a922bb4 22688else
e6cc62c6
VS
22689 echo "$as_me: failed program was:" >&5
22690sed 's/^/| /' conftest.$ac_ext >&5
22691
22692LIBS=$ac_save_LIBS
22693for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 22694do
e6cc62c6 22695 # Don't even attempt the hair of trying to link an X program!
21d1c967 22696 for ac_extension in a so sl; do
e6cc62c6 22697 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
22698 ac_x_libraries=$ac_dir
22699 break 2
22700 fi
22701 done
22702done
3a922bb4 22703fi
eea650d8
VS
22704rm -f conftest.err conftest.$ac_objext \
22705 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22706fi # $ac_x_libraries = no
90dd450c 22707
e6cc62c6 22708if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
22709 # Didn't find X anywhere. Cache the known absence of X.
22710 ac_cv_have_x="have_x=no"
22711else
22712 # Record where we found X for the cache.
22713 ac_cv_have_x="have_x=yes \
eea650d8 22714 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 22715fi
21d1c967 22716fi
e6cc62c6 22717
21d1c967
GD
22718 fi
22719 eval "$ac_cv_have_x"
22720fi # $with_x != no
90dd450c 22721
21d1c967 22722if test "$have_x" != yes; then
e6cc62c6
VS
22723 echo "$as_me:$LINENO: result: $have_x" >&5
22724echo "${ECHO_T}$have_x" >&6
21d1c967
GD
22725 no_x=yes
22726else
22727 # If each of the values was on the command line, it overrides each guess.
22728 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22729 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22730 # Update the cache value to reflect the command line values.
22731 ac_cv_have_x="have_x=yes \
22732 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
22733 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22734echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 22735fi
90dd450c 22736
21d1c967 22737if test "$no_x" = yes; then
90dd450c 22738 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22739
22740cat >>confdefs.h <<\_ACEOF
90dd450c 22741#define X_DISPLAY_MISSING 1
e6cc62c6 22742_ACEOF
90dd450c
VZ
22743
22744 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22745else
22746 if test -n "$x_includes"; then
22747 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 22748 fi
3a922bb4 22749
90dd450c
VZ
22750 # It would also be nice to do this for all -L options, not just this one.
22751 if test -n "$x_libraries"; then
22752 X_LIBS="$X_LIBS -L$x_libraries"
22753 # For Solaris; some versions of Sun CC require a space after -R and
22754 # others require no space. Words are not sufficient . . . .
e6cc62c6 22755 case `(uname -sr) 2>/dev/null` in
90dd450c 22756 "SunOS 5"*)
e6cc62c6
VS
22757 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22758echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22759 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22760 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22761/* confdefs.h. */
22762_ACEOF
22763cat confdefs.h >>conftest.$ac_ext
22764cat >>conftest.$ac_ext <<_ACEOF
22765/* end confdefs.h. */
22766
22767int
22768main ()
22769{
90dd450c 22770
e6cc62c6
VS
22771 ;
22772 return 0;
22773}
22774_ACEOF
22775rm -f conftest.$ac_objext conftest$ac_exeext
22776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22777 (eval $ac_link) 2>conftest.er1
e6cc62c6 22778 ac_status=$?
eea650d8
VS
22779 grep -v '^ *+' conftest.er1 >conftest.err
22780 rm -f conftest.er1
22781 cat conftest.err >&5
e6cc62c6
VS
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); } &&
eea650d8
VS
22784 { ac_try='test -z "$ac_c_werror_flag"
22785 || test ! -s conftest.err'
22786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787 (eval $ac_try) 2>&5
22788 ac_status=$?
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; } &&
22791 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }; then
90dd450c 22797 ac_R_nospace=yes
3a922bb4 22798else
e6cc62c6
VS
22799 echo "$as_me: failed program was:" >&5
22800sed 's/^/| /' conftest.$ac_ext >&5
22801
22802ac_R_nospace=no
3a922bb4 22803fi
eea650d8
VS
22804rm -f conftest.err conftest.$ac_objext \
22805 conftest$ac_exeext conftest.$ac_ext
90dd450c 22806 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22807 echo "$as_me:$LINENO: result: no" >&5
22808echo "${ECHO_T}no" >&6
90dd450c
VZ
22809 X_LIBS="$X_LIBS -R$x_libraries"
22810 else
22811 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 22812 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22813/* confdefs.h. */
22814_ACEOF
22815cat confdefs.h >>conftest.$ac_ext
22816cat >>conftest.$ac_ext <<_ACEOF
22817/* end confdefs.h. */
22818
22819int
22820main ()
22821{
6f754473 22822
e6cc62c6
VS
22823 ;
22824 return 0;
22825}
22826_ACEOF
22827rm -f conftest.$ac_objext conftest$ac_exeext
22828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22829 (eval $ac_link) 2>conftest.er1
e6cc62c6 22830 ac_status=$?
eea650d8
VS
22831 grep -v '^ *+' conftest.er1 >conftest.err
22832 rm -f conftest.er1
22833 cat conftest.err >&5
e6cc62c6
VS
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } &&
eea650d8
VS
22836 { ac_try='test -z "$ac_c_werror_flag"
22837 || test ! -s conftest.err'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; } &&
22843 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }; then
90dd450c
VZ
22849 ac_R_space=yes
22850else
e6cc62c6
VS
22851 echo "$as_me: failed program was:" >&5
22852sed 's/^/| /' conftest.$ac_ext >&5
22853
22854ac_R_space=no
90dd450c 22855fi
eea650d8
VS
22856rm -f conftest.err conftest.$ac_objext \
22857 conftest$ac_exeext conftest.$ac_ext
90dd450c 22858 if test $ac_R_space = yes; then
e6cc62c6
VS
22859 echo "$as_me:$LINENO: result: yes" >&5
22860echo "${ECHO_T}yes" >&6
90dd450c
VZ
22861 X_LIBS="$X_LIBS -R $x_libraries"
22862 else
e6cc62c6
VS
22863 echo "$as_me:$LINENO: result: neither works" >&5
22864echo "${ECHO_T}neither works" >&6
90dd450c
VZ
22865 fi
22866 fi
e6cc62c6 22867 LIBS=$ac_xsave_LIBS
90dd450c
VZ
22868 esac
22869 fi
22870
22871 # Check for system-dependent libraries X programs must link with.
22872 # Do this before checking for the system-independent R6 libraries
22873 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 22874
90dd450c
VZ
22875 if test "$ISC" = yes; then
22876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22877 else
e6cc62c6
VS
22878 # Martyn Johnson says this is needed for Ultrix, if the X
22879 # libraries were built with DECnet support. And Karl Berry says
90dd450c 22880 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22881 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22882 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22883/* confdefs.h. */
22884_ACEOF
22885cat confdefs.h >>conftest.$ac_ext
22886cat >>conftest.$ac_ext <<_ACEOF
22887/* end confdefs.h. */
22888
247f5006 22889/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22890#ifdef __cplusplus
22891extern "C"
22892#endif
247f5006 22893/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22894 builtin and then its argument prototype would still apply. */
22895char XOpenDisplay ();
22896int
22897main ()
22898{
22899XOpenDisplay ();
22900 ;
22901 return 0;
22902}
22903_ACEOF
22904rm -f conftest.$ac_objext conftest$ac_exeext
22905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22906 (eval $ac_link) 2>conftest.er1
e6cc62c6 22907 ac_status=$?
eea650d8
VS
22908 grep -v '^ *+' conftest.er1 >conftest.err
22909 rm -f conftest.er1
22910 cat conftest.err >&5
e6cc62c6
VS
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } &&
eea650d8
VS
22913 { ac_try='test -z "$ac_c_werror_flag"
22914 || test ! -s conftest.err'
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22917 ac_status=$?
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; } &&
22920 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; }; then
22926 :
22927else
22928 echo "$as_me: failed program was:" >&5
22929sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22930
e6cc62c6
VS
22931echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22932echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22933if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22935else
e6cc62c6
VS
22936 ac_check_lib_save_LIBS=$LIBS
22937LIBS="-ldnet $LIBS"
22938cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22939/* confdefs.h. */
22940_ACEOF
22941cat confdefs.h >>conftest.$ac_ext
22942cat >>conftest.$ac_ext <<_ACEOF
22943/* end confdefs.h. */
a0b9e27f 22944
e6cc62c6
VS
22945/* Override any gcc2 internal prototype to avoid an error. */
22946#ifdef __cplusplus
22947extern "C"
22948#endif
22949/* We use char because int might match the return type of a gcc2
22950 builtin and then its argument prototype would still apply. */
22951char dnet_ntoa ();
22952int
22953main ()
22954{
22955dnet_ntoa ();
22956 ;
22957 return 0;
22958}
22959_ACEOF
22960rm -f conftest.$ac_objext conftest$ac_exeext
22961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22962 (eval $ac_link) 2>conftest.er1
e6cc62c6 22963 ac_status=$?
eea650d8
VS
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
e6cc62c6
VS
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } &&
eea650d8
VS
22969 { ac_try='test -z "$ac_c_werror_flag"
22970 || test ! -s conftest.err'
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; } &&
22976 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 (eval $ac_try) 2>&5
22979 ac_status=$?
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; }; then
22982 ac_cv_lib_dnet_dnet_ntoa=yes
22983else
22984 echo "$as_me: failed program was:" >&5
22985sed 's/^/| /' conftest.$ac_ext >&5
22986
22987ac_cv_lib_dnet_dnet_ntoa=no
22988fi
eea650d8
VS
22989rm -f conftest.err conftest.$ac_objext \
22990 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22991LIBS=$ac_check_lib_save_LIBS
22992fi
22993echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22994echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22995if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 22996 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
22997fi
22998
90dd450c 22999 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23000 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23001echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23002if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23004else
e6cc62c6 23005 ac_check_lib_save_LIBS=$LIBS
90dd450c 23006LIBS="-ldnet_stub $LIBS"
e6cc62c6 23007cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23008/* confdefs.h. */
23009_ACEOF
23010cat confdefs.h >>conftest.$ac_ext
23011cat >>conftest.$ac_ext <<_ACEOF
23012/* end confdefs.h. */
23013
90dd450c 23014/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23015#ifdef __cplusplus
23016extern "C"
23017#endif
90dd450c 23018/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23019 builtin and then its argument prototype would still apply. */
23020char dnet_ntoa ();
23021int
23022main ()
23023{
23024dnet_ntoa ();
23025 ;
23026 return 0;
23027}
23028_ACEOF
23029rm -f conftest.$ac_objext conftest$ac_exeext
23030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23031 (eval $ac_link) 2>conftest.er1
e6cc62c6 23032 ac_status=$?
eea650d8
VS
23033 grep -v '^ *+' conftest.er1 >conftest.err
23034 rm -f conftest.er1
23035 cat conftest.err >&5
e6cc62c6
VS
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } &&
eea650d8
VS
23038 { ac_try='test -z "$ac_c_werror_flag"
23039 || test ! -s conftest.err'
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; } &&
23045 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23052else
23053 echo "$as_me: failed program was:" >&5
23054sed 's/^/| /' conftest.$ac_ext >&5
23055
23056ac_cv_lib_dnet_stub_dnet_ntoa=no
23057fi
eea650d8
VS
23058rm -f conftest.err conftest.$ac_objext \
23059 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23060LIBS=$ac_check_lib_save_LIBS
23061fi
23062echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23063echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23064if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23065 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23066fi
23067
90dd450c 23068 fi
e6cc62c6 23069fi
eea650d8
VS
23070rm -f conftest.err conftest.$ac_objext \
23071 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23072 LIBS="$ac_xsave_LIBS"
978f1259 23073
90dd450c
VZ
23074 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23075 # to get the SysV transport functions.
e6cc62c6 23076 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23077 # needs -lnsl.
23078 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23079 # on Irix 5.2, according to T.E. Dickey.
23080 # The functions gethostbyname, getservbyname, and inet_addr are
23081 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23082 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23083echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23084if test "${ac_cv_func_gethostbyname+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086else
23087 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23088/* confdefs.h. */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h. */
eea650d8
VS
23093/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23095#define gethostbyname innocuous_gethostbyname
23096
90dd450c 23097/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23098 which can conflict with char gethostbyname (); below.
23099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23100 <limits.h> exists even on freestanding compilers. */
eea650d8 23101
e6cc62c6
VS
23102#ifdef __STDC__
23103# include <limits.h>
23104#else
23105# include <assert.h>
23106#endif
eea650d8
VS
23107
23108#undef gethostbyname
23109
90dd450c 23110/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23111#ifdef __cplusplus
23112extern "C"
23113{
23114#endif
90dd450c 23115/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23116 builtin and then its argument prototype would still apply. */
23117char gethostbyname ();
90dd450c
VZ
23118/* The GNU C library defines this for functions which it implements
23119 to always fail with ENOSYS. Some functions are actually named
23120 something starting with __ and the normal name is an alias. */
23121#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23122choke me
23123#else
e6cc62c6
VS
23124char (*f) () = gethostbyname;
23125#endif
23126#ifdef __cplusplus
23127}
90dd450c 23128#endif
978f1259 23129
e6cc62c6
VS
23130int
23131main ()
23132{
23133return f != gethostbyname;
23134 ;
23135 return 0;
23136}
23137_ACEOF
23138rm -f conftest.$ac_objext conftest$ac_exeext
23139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23140 (eval $ac_link) 2>conftest.er1
e6cc62c6 23141 ac_status=$?
eea650d8
VS
23142 grep -v '^ *+' conftest.er1 >conftest.err
23143 rm -f conftest.er1
23144 cat conftest.err >&5
e6cc62c6
VS
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } &&
eea650d8
VS
23147 { ac_try='test -z "$ac_c_werror_flag"
23148 || test ! -s conftest.err'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 ac_cv_func_gethostbyname=yes
23161else
23162 echo "$as_me: failed program was:" >&5
23163sed 's/^/| /' conftest.$ac_ext >&5
23164
23165ac_cv_func_gethostbyname=no
23166fi
eea650d8
VS
23167rm -f conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23169fi
23170echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23171echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23172
90dd450c 23173 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23174 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23175echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23176if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23178else
e6cc62c6 23179 ac_check_lib_save_LIBS=$LIBS
90dd450c 23180LIBS="-lnsl $LIBS"
e6cc62c6 23181cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23182/* confdefs.h. */
23183_ACEOF
23184cat confdefs.h >>conftest.$ac_ext
23185cat >>conftest.$ac_ext <<_ACEOF
23186/* end confdefs.h. */
23187
90dd450c 23188/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23189#ifdef __cplusplus
23190extern "C"
23191#endif
90dd450c 23192/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23193 builtin and then its argument prototype would still apply. */
23194char gethostbyname ();
23195int
23196main ()
23197{
23198gethostbyname ();
23199 ;
23200 return 0;
23201}
23202_ACEOF
23203rm -f conftest.$ac_objext conftest$ac_exeext
23204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23205 (eval $ac_link) 2>conftest.er1
e6cc62c6 23206 ac_status=$?
eea650d8
VS
23207 grep -v '^ *+' conftest.er1 >conftest.err
23208 rm -f conftest.er1
23209 cat conftest.err >&5
e6cc62c6
VS
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } &&
eea650d8
VS
23212 { ac_try='test -z "$ac_c_werror_flag"
23213 || test ! -s conftest.err'
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215 (eval $ac_try) 2>&5
23216 ac_status=$?
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; } &&
23219 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225 ac_cv_lib_nsl_gethostbyname=yes
23226else
23227 echo "$as_me: failed program was:" >&5
23228sed 's/^/| /' conftest.$ac_ext >&5
23229
23230ac_cv_lib_nsl_gethostbyname=no
23231fi
eea650d8
VS
23232rm -f conftest.err conftest.$ac_objext \
23233 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23234LIBS=$ac_check_lib_save_LIBS
23235fi
23236echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23237echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23238if test $ac_cv_lib_nsl_gethostbyname = yes; then
23239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23240fi
247f5006 23241
e6cc62c6 23242 if test $ac_cv_lib_nsl_gethostbyname = no; then
eea650d8 23243 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23244echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23245if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23246 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23247else
e6cc62c6
VS
23248 ac_check_lib_save_LIBS=$LIBS
23249LIBS="-lbsd $LIBS"
23250cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
23256
23257/* Override any gcc2 internal prototype to avoid an error. */
23258#ifdef __cplusplus
23259extern "C"
23260#endif
23261/* We use char because int might match the return type of a gcc2
23262 builtin and then its argument prototype would still apply. */
23263char gethostbyname ();
23264int
23265main ()
23266{
23267gethostbyname ();
23268 ;
23269 return 0;
23270}
23271_ACEOF
23272rm -f conftest.$ac_objext conftest$ac_exeext
23273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23274 (eval $ac_link) 2>conftest.er1
e6cc62c6 23275 ac_status=$?
eea650d8
VS
23276 grep -v '^ *+' conftest.er1 >conftest.err
23277 rm -f conftest.er1
23278 cat conftest.err >&5
e6cc62c6
VS
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } &&
eea650d8
VS
23281 { ac_try='test -z "$ac_c_werror_flag"
23282 || test ! -s conftest.err'
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; } &&
23288 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; }; then
23294 ac_cv_lib_bsd_gethostbyname=yes
23295else
23296 echo "$as_me: failed program was:" >&5
23297sed 's/^/| /' conftest.$ac_ext >&5
23298
23299ac_cv_lib_bsd_gethostbyname=no
23300fi
eea650d8
VS
23301rm -f conftest.err conftest.$ac_objext \
23302 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23303LIBS=$ac_check_lib_save_LIBS
23304fi
23305echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23306echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23307if test $ac_cv_lib_bsd_gethostbyname = yes; then
23308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23309fi
b12915c1 23310
e6cc62c6 23311 fi
90dd450c
VZ
23312 fi
23313
23314 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23315 # socket/setsockopt and other routines are undefined under SCO ODT
23316 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23317 # on later versions), says Simon Leinen: it contains gethostby*
23318 # variants that don't use the name server (or something). -lsocket
23319 # must be given before -lnsl if both are needed. We assume that
23320 # if connect needs -lnsl, so does gethostbyname.
23321 echo "$as_me:$LINENO: checking for connect" >&5
23322echo $ECHO_N "checking for connect... $ECHO_C" >&6
23323if test "${ac_cv_func_connect+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325else
23326 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23327/* confdefs.h. */
23328_ACEOF
23329cat confdefs.h >>conftest.$ac_ext
23330cat >>conftest.$ac_ext <<_ACEOF
23331/* end confdefs.h. */
eea650d8
VS
23332/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23334#define connect innocuous_connect
23335
90dd450c 23336/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23337 which can conflict with char connect (); below.
23338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23339 <limits.h> exists even on freestanding compilers. */
eea650d8 23340
e6cc62c6
VS
23341#ifdef __STDC__
23342# include <limits.h>
23343#else
23344# include <assert.h>
23345#endif
eea650d8
VS
23346
23347#undef connect
23348
90dd450c 23349/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23350#ifdef __cplusplus
23351extern "C"
23352{
23353#endif
90dd450c 23354/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23355 builtin and then its argument prototype would still apply. */
23356char connect ();
90dd450c
VZ
23357/* The GNU C library defines this for functions which it implements
23358 to always fail with ENOSYS. Some functions are actually named
23359 something starting with __ and the normal name is an alias. */
23360#if defined (__stub_connect) || defined (__stub___connect)
23361choke me
23362#else
e6cc62c6
VS
23363char (*f) () = connect;
23364#endif
23365#ifdef __cplusplus
23366}
90dd450c
VZ
23367#endif
23368
e6cc62c6
VS
23369int
23370main ()
23371{
23372return f != connect;
23373 ;
23374 return 0;
23375}
23376_ACEOF
23377rm -f conftest.$ac_objext conftest$ac_exeext
23378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23379 (eval $ac_link) 2>conftest.er1
e6cc62c6 23380 ac_status=$?
eea650d8
VS
23381 grep -v '^ *+' conftest.er1 >conftest.err
23382 rm -f conftest.er1
23383 cat conftest.err >&5
e6cc62c6
VS
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } &&
eea650d8
VS
23386 { ac_try='test -z "$ac_c_werror_flag"
23387 || test ! -s conftest.err'
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23390 ac_status=$?
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; } &&
23393 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; }; then
23399 ac_cv_func_connect=yes
23400else
23401 echo "$as_me: failed program was:" >&5
23402sed 's/^/| /' conftest.$ac_ext >&5
23403
23404ac_cv_func_connect=no
23405fi
eea650d8
VS
23406rm -f conftest.err conftest.$ac_objext \
23407 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23408fi
23409echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23410echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 23411
90dd450c 23412 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23413 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23414echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23415if test "${ac_cv_lib_socket_connect+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23417else
e6cc62c6 23418 ac_check_lib_save_LIBS=$LIBS
90dd450c 23419LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 23420cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23421/* confdefs.h. */
23422_ACEOF
23423cat confdefs.h >>conftest.$ac_ext
23424cat >>conftest.$ac_ext <<_ACEOF
23425/* end confdefs.h. */
23426
90dd450c 23427/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23428#ifdef __cplusplus
23429extern "C"
23430#endif
90dd450c 23431/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23432 builtin and then its argument prototype would still apply. */
23433char connect ();
23434int
23435main ()
23436{
23437connect ();
23438 ;
23439 return 0;
23440}
23441_ACEOF
23442rm -f conftest.$ac_objext conftest$ac_exeext
23443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23444 (eval $ac_link) 2>conftest.er1
e6cc62c6 23445 ac_status=$?
eea650d8
VS
23446 grep -v '^ *+' conftest.er1 >conftest.err
23447 rm -f conftest.er1
23448 cat conftest.err >&5
e6cc62c6
VS
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
eea650d8
VS
23451 { ac_try='test -z "$ac_c_werror_flag"
23452 || test ! -s conftest.err'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23455 ac_status=$?
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; } &&
23458 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ac_cv_lib_socket_connect=yes
23465else
23466 echo "$as_me: failed program was:" >&5
23467sed 's/^/| /' conftest.$ac_ext >&5
23468
23469ac_cv_lib_socket_connect=no
23470fi
eea650d8
VS
23471rm -f conftest.err conftest.$ac_objext \
23472 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23473LIBS=$ac_check_lib_save_LIBS
23474fi
23475echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23476echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23477if test $ac_cv_lib_socket_connect = yes; then
90dd450c 23478 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 23479fi
77e13408 23480
90dd450c 23481 fi
25d0687a 23482
e6cc62c6
VS
23483 # Guillermo Gomez says -lposix is necessary on A/UX.
23484 echo "$as_me:$LINENO: checking for remove" >&5
23485echo $ECHO_N "checking for remove... $ECHO_C" >&6
23486if test "${ac_cv_func_remove+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23488else
23489 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23490/* confdefs.h. */
23491_ACEOF
23492cat confdefs.h >>conftest.$ac_ext
23493cat >>conftest.$ac_ext <<_ACEOF
23494/* end confdefs.h. */
eea650d8
VS
23495/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23497#define remove innocuous_remove
23498
90dd450c 23499/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23500 which can conflict with char remove (); below.
23501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23502 <limits.h> exists even on freestanding compilers. */
eea650d8 23503
e6cc62c6
VS
23504#ifdef __STDC__
23505# include <limits.h>
23506#else
23507# include <assert.h>
23508#endif
eea650d8
VS
23509
23510#undef remove
23511
90dd450c 23512/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23513#ifdef __cplusplus
23514extern "C"
23515{
23516#endif
90dd450c 23517/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23518 builtin and then its argument prototype would still apply. */
23519char remove ();
90dd450c
VZ
23520/* The GNU C library defines this for functions which it implements
23521 to always fail with ENOSYS. Some functions are actually named
23522 something starting with __ and the normal name is an alias. */
23523#if defined (__stub_remove) || defined (__stub___remove)
23524choke me
23525#else
e6cc62c6
VS
23526char (*f) () = remove;
23527#endif
23528#ifdef __cplusplus
23529}
90dd450c 23530#endif
55e80573 23531
e6cc62c6
VS
23532int
23533main ()
23534{
23535return f != remove;
23536 ;
23537 return 0;
23538}
23539_ACEOF
23540rm -f conftest.$ac_objext conftest$ac_exeext
23541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23542 (eval $ac_link) 2>conftest.er1
e6cc62c6 23543 ac_status=$?
eea650d8
VS
23544 grep -v '^ *+' conftest.er1 >conftest.err
23545 rm -f conftest.er1
23546 cat conftest.err >&5
e6cc62c6
VS
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } &&
eea650d8
VS
23549 { ac_try='test -z "$ac_c_werror_flag"
23550 || test ! -s conftest.err'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; } &&
23556 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23559 ac_status=$?
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; }; then
23562 ac_cv_func_remove=yes
23563else
23564 echo "$as_me: failed program was:" >&5
23565sed 's/^/| /' conftest.$ac_ext >&5
23566
23567ac_cv_func_remove=no
23568fi
eea650d8
VS
23569rm -f conftest.err conftest.$ac_objext \
23570 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23571fi
23572echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23573echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 23574
90dd450c 23575 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23576 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23577echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23578if test "${ac_cv_lib_posix_remove+set}" = set; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23580else
e6cc62c6 23581 ac_check_lib_save_LIBS=$LIBS
90dd450c 23582LIBS="-lposix $LIBS"
e6cc62c6 23583cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23584/* confdefs.h. */
23585_ACEOF
23586cat confdefs.h >>conftest.$ac_ext
23587cat >>conftest.$ac_ext <<_ACEOF
23588/* end confdefs.h. */
23589
90dd450c 23590/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23591#ifdef __cplusplus
23592extern "C"
23593#endif
90dd450c 23594/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23595 builtin and then its argument prototype would still apply. */
23596char remove ();
23597int
23598main ()
23599{
23600remove ();
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext conftest$ac_exeext
23606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23607 (eval $ac_link) 2>conftest.er1
e6cc62c6 23608 ac_status=$?
eea650d8
VS
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
e6cc62c6
VS
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
eea650d8
VS
23614 { ac_try='test -z "$ac_c_werror_flag"
23615 || test ! -s conftest.err'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ac_cv_lib_posix_remove=yes
23628else
23629 echo "$as_me: failed program was:" >&5
23630sed 's/^/| /' conftest.$ac_ext >&5
23631
23632ac_cv_lib_posix_remove=no
23633fi
eea650d8
VS
23634rm -f conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23636LIBS=$ac_check_lib_save_LIBS
23637fi
23638echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23639echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23640if test $ac_cv_lib_posix_remove = yes; then
90dd450c 23641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 23642fi
f6bcfd97 23643
6fa882bd
RR
23644 fi
23645
90dd450c 23646 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23647 echo "$as_me:$LINENO: checking for shmat" >&5
23648echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23649if test "${ac_cv_func_shmat+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23651else
23652 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23653/* confdefs.h. */
23654_ACEOF
23655cat confdefs.h >>conftest.$ac_ext
23656cat >>conftest.$ac_ext <<_ACEOF
23657/* end confdefs.h. */
eea650d8
VS
23658/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23660#define shmat innocuous_shmat
23661
90dd450c 23662/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23663 which can conflict with char shmat (); below.
23664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23665 <limits.h> exists even on freestanding compilers. */
eea650d8 23666
e6cc62c6
VS
23667#ifdef __STDC__
23668# include <limits.h>
23669#else
23670# include <assert.h>
23671#endif
eea650d8
VS
23672
23673#undef shmat
23674
90dd450c 23675/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23676#ifdef __cplusplus
23677extern "C"
23678{
23679#endif
90dd450c 23680/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23681 builtin and then its argument prototype would still apply. */
23682char shmat ();
90dd450c
VZ
23683/* The GNU C library defines this for functions which it implements
23684 to always fail with ENOSYS. Some functions are actually named
23685 something starting with __ and the normal name is an alias. */
23686#if defined (__stub_shmat) || defined (__stub___shmat)
23687choke me
23688#else
e6cc62c6
VS
23689char (*f) () = shmat;
23690#endif
23691#ifdef __cplusplus
23692}
90dd450c 23693#endif
10f2d63a 23694
e6cc62c6
VS
23695int
23696main ()
23697{
23698return f != shmat;
23699 ;
23700 return 0;
23701}
23702_ACEOF
23703rm -f conftest.$ac_objext conftest$ac_exeext
23704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23705 (eval $ac_link) 2>conftest.er1
e6cc62c6 23706 ac_status=$?
eea650d8
VS
23707 grep -v '^ *+' conftest.er1 >conftest.err
23708 rm -f conftest.er1
23709 cat conftest.err >&5
e6cc62c6
VS
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } &&
eea650d8
VS
23712 { ac_try='test -z "$ac_c_werror_flag"
23713 || test ! -s conftest.err'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; } &&
23719 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 ac_cv_func_shmat=yes
23726else
23727 echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730ac_cv_func_shmat=no
23731fi
eea650d8
VS
23732rm -f conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23734fi
23735echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23736echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 23737
90dd450c 23738 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23739 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23740echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23741if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 23743else
e6cc62c6 23744 ac_check_lib_save_LIBS=$LIBS
90dd450c 23745LIBS="-lipc $LIBS"
e6cc62c6 23746cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23747/* confdefs.h. */
23748_ACEOF
23749cat confdefs.h >>conftest.$ac_ext
23750cat >>conftest.$ac_ext <<_ACEOF
23751/* end confdefs.h. */
23752
8284b0c5 23753/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23754#ifdef __cplusplus
23755extern "C"
23756#endif
90dd450c 23757/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23758 builtin and then its argument prototype would still apply. */
23759char shmat ();
23760int
23761main ()
23762{
23763shmat ();
23764 ;
23765 return 0;
23766}
23767_ACEOF
23768rm -f conftest.$ac_objext conftest$ac_exeext
23769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23770 (eval $ac_link) 2>conftest.er1
e6cc62c6 23771 ac_status=$?
eea650d8
VS
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
e6cc62c6
VS
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } &&
eea650d8
VS
23777 { ac_try='test -z "$ac_c_werror_flag"
23778 || test ! -s conftest.err'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23781 ac_status=$?
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } &&
23784 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; }; then
23790 ac_cv_lib_ipc_shmat=yes
23791else
23792 echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
23795ac_cv_lib_ipc_shmat=no
23796fi
eea650d8
VS
23797rm -f conftest.err conftest.$ac_objext \
23798 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23799LIBS=$ac_check_lib_save_LIBS
23800fi
23801echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23802echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23803if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 23804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
23805fi
23806
d558c907 23807 fi
90dd450c 23808 fi
3a922bb4 23809
90dd450c 23810 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23811 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
23812 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23813 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23814 # check for ICE first), but we must link in the order -lSM -lICE or
23815 # we get undefined symbols. So assume we have SM if we have ICE.
23816 # These have to be linked with before -lX11, unlike the other
23817 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23818 # John Interrante, Karl Berry
23819 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23820echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23821if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23822 echo $ECHO_N "(cached) $ECHO_C" >&6
23823else
23824 ac_check_lib_save_LIBS=$LIBS
f09359cf 23825LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23826cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23827/* confdefs.h. */
23828_ACEOF
23829cat confdefs.h >>conftest.$ac_ext
23830cat >>conftest.$ac_ext <<_ACEOF
23831/* end confdefs.h. */
23832
90dd450c 23833/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23834#ifdef __cplusplus
23835extern "C"
23836#endif
90dd450c 23837/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23838 builtin and then its argument prototype would still apply. */
23839char IceConnectionNumber ();
23840int
23841main ()
23842{
23843IceConnectionNumber ();
23844 ;
23845 return 0;
23846}
23847_ACEOF
23848rm -f conftest.$ac_objext conftest$ac_exeext
23849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23850 (eval $ac_link) 2>conftest.er1
e6cc62c6 23851 ac_status=$?
eea650d8
VS
23852 grep -v '^ *+' conftest.er1 >conftest.err
23853 rm -f conftest.er1
23854 cat conftest.err >&5
e6cc62c6
VS
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); } &&
eea650d8
VS
23857 { ac_try='test -z "$ac_c_werror_flag"
23858 || test ! -s conftest.err'
23859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860 (eval $ac_try) 2>&5
23861 ac_status=$?
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); }; } &&
23864 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866 (eval $ac_try) 2>&5
23867 ac_status=$?
23868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869 (exit $ac_status); }; }; then
23870 ac_cv_lib_ICE_IceConnectionNumber=yes
23871else
23872 echo "$as_me: failed program was:" >&5
23873sed 's/^/| /' conftest.$ac_ext >&5
23874
23875ac_cv_lib_ICE_IceConnectionNumber=no
23876fi
eea650d8
VS
23877rm -f conftest.err conftest.$ac_objext \
23878 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23879LIBS=$ac_check_lib_save_LIBS
23880fi
23881echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23882echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23883if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 23884 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 23885fi
10f2d63a 23886
e6cc62c6 23887 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
23888
23889fi
23890
8284b0c5 23891
90dd450c 23892 if test "$no_x" = "yes"; then
e6cc62c6
VS
23893 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23894echo "$as_me: error: X11 not found" >&2;}
23895 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
23896 fi
23897
23898 GUI_TK_LIBRARY="$X_LIBS"
23899 TOOLKIT_INCLUDE="$X_CFLAGS"
23900 AFMINSTALL=afminstall
23901 COMPILED_X_PROGRAM=0
23902
21d1c967 23903 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
23904 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23905echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 23906 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
23907 echo "$as_me:$LINENO: result: not found" >&5
23908echo "${ECHO_T}not found" >&6
23909 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23910echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23911 { (exit 1); exit 1; }; }
90dd450c 23912 else
e6cc62c6
VS
23913 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23914echo "${ECHO_T}$MICROWIN" >&6
23915 cat >>confdefs.h <<\_ACEOF
21d1c967 23916#define wxUSE_NANOX 1
e6cc62c6 23917_ACEOF
21d1c967 23918
90dd450c
VZ
23919 fi
23920 fi
23921
2b5f62a0 23922 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 23923
2b5f62a0 23924 succeeded=no
90dd450c 23925
2b5f62a0
VZ
23926 if test -z "$PKG_CONFIG"; then
23927 # Extract the first word of "pkg-config", so it can be a program name with args.
23928set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23929echo "$as_me:$LINENO: checking for $ac_word" >&5
23930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23931if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23933else
e6cc62c6
VS
23934 case $PKG_CONFIG in
23935 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23937 ;;
2b5f62a0 23938 *)
e6cc62c6
VS
23939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23940for as_dir in $PATH
23941do
23942 IFS=$as_save_IFS
23943 test -z "$as_dir" && as_dir=.
23944 for ac_exec_ext in '' $ac_executable_extensions; do
23945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23948 break 2
23949 fi
23950done
23951done
23952
2b5f62a0
VZ
23953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23954 ;;
23955esac
23956fi
e6cc62c6
VS
23957PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23958
2b5f62a0 23959if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23960 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23961echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23962else
e6cc62c6
VS
23963 echo "$as_me:$LINENO: result: no" >&5
23964echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23965fi
23966
23967 fi
23968
23969 if test "$PKG_CONFIG" = "no" ; then
23970 echo "*** The pkg-config script could not be found. Make sure it is"
23971 echo "*** in your path, or set the PKG_CONFIG environment variable"
23972 echo "*** to the full path to pkg-config."
23973 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23974 else
23975 PKG_CONFIG_MIN_VERSION=0.9.0
23976 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23977 echo "$as_me:$LINENO: checking for pangox" >&5
23978echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
23979
23980 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
23981 echo "$as_me:$LINENO: result: yes" >&5
23982echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23983 succeeded=yes
23984
e6cc62c6
VS
23985 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23986echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 23987 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
23988 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23989echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 23990
e6cc62c6
VS
23991 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23992echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 23993 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
23994 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23995echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
23996 else
23997 PANGOX_CFLAGS=""
23998 PANGOX_LIBS=""
e6cc62c6 23999 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24000 ## do set a variable so people can do so.
24001 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24002
2b5f62a0
VZ
24003 fi
24004
e6cc62c6
VS
24005
24006
2b5f62a0
VZ
24007 else
24008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24010 fi
24011 fi
24012
24013 if test $succeeded = yes; then
e6cc62c6 24014
2b5f62a0 24015 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24016 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24017
2b5f62a0 24018 else
e6cc62c6
VS
24019
24020 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24021echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24022 { (exit 1); exit 1; }; }
24023
24024
2b5f62a0
VZ
24025 fi
24026
e6cc62c6 24027
2b5f62a0
VZ
24028 succeeded=no
24029
24030 if test -z "$PKG_CONFIG"; then
24031 # Extract the first word of "pkg-config", so it can be a program name with args.
24032set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24033echo "$as_me:$LINENO: checking for $ac_word" >&5
24034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24035if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24037else
e6cc62c6
VS
24038 case $PKG_CONFIG in
24039 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24041 ;;
2b5f62a0 24042 *)
e6cc62c6
VS
24043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24044for as_dir in $PATH
24045do
24046 IFS=$as_save_IFS
24047 test -z "$as_dir" && as_dir=.
24048 for ac_exec_ext in '' $ac_executable_extensions; do
24049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24052 break 2
24053 fi
24054done
24055done
24056
2b5f62a0
VZ
24057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24058 ;;
24059esac
24060fi
e6cc62c6
VS
24061PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24062
2b5f62a0 24063if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24064 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24065echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24066else
e6cc62c6
VS
24067 echo "$as_me:$LINENO: result: no" >&5
24068echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24069fi
24070
24071 fi
24072
24073 if test "$PKG_CONFIG" = "no" ; then
24074 echo "*** The pkg-config script could not be found. Make sure it is"
24075 echo "*** in your path, or set the PKG_CONFIG environment variable"
24076 echo "*** to the full path to pkg-config."
24077 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24078 else
24079 PKG_CONFIG_MIN_VERSION=0.9.0
24080 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24081 echo "$as_me:$LINENO: checking for pangoft2" >&5
24082echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24083
24084 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24085 echo "$as_me:$LINENO: result: yes" >&5
24086echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24087 succeeded=yes
24088
e6cc62c6
VS
24089 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24090echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24091 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24092 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24093echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24094
e6cc62c6
VS
24095 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24096echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24097 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24098 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24099echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24100 else
24101 PANGOFT2_CFLAGS=""
24102 PANGOFT2_LIBS=""
e6cc62c6 24103 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24104 ## do set a variable so people can do so.
24105 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24106
2b5f62a0
VZ
24107 fi
24108
e6cc62c6
VS
24109
24110
2b5f62a0
VZ
24111 else
24112 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24113 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24114 fi
24115 fi
24116
24117 if test $succeeded = yes; then
e6cc62c6 24118
2b5f62a0 24119 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24120 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24121
2b5f62a0 24122 else
e6cc62c6
VS
24123
24124 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24125echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24126 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24127
24128
2b5f62a0
VZ
24129 fi
24130
e6cc62c6 24131
2b5f62a0
VZ
24132 succeeded=no
24133
24134 if test -z "$PKG_CONFIG"; then
24135 # Extract the first word of "pkg-config", so it can be a program name with args.
24136set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24137echo "$as_me:$LINENO: checking for $ac_word" >&5
24138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24139if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24141else
e6cc62c6
VS
24142 case $PKG_CONFIG in
24143 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24145 ;;
2b5f62a0 24146 *)
e6cc62c6
VS
24147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24148for as_dir in $PATH
24149do
24150 IFS=$as_save_IFS
24151 test -z "$as_dir" && as_dir=.
24152 for ac_exec_ext in '' $ac_executable_extensions; do
24153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24156 break 2
24157 fi
24158done
24159done
24160
2b5f62a0
VZ
24161 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24162 ;;
24163esac
24164fi
e6cc62c6
VS
24165PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24166
2b5f62a0 24167if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24168 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24169echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24170else
e6cc62c6
VS
24171 echo "$as_me:$LINENO: result: no" >&5
24172echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24173fi
24174
24175 fi
24176
24177 if test "$PKG_CONFIG" = "no" ; then
24178 echo "*** The pkg-config script could not be found. Make sure it is"
24179 echo "*** in your path, or set the PKG_CONFIG environment variable"
24180 echo "*** to the full path to pkg-config."
24181 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24182 else
24183 PKG_CONFIG_MIN_VERSION=0.9.0
24184 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24185 echo "$as_me:$LINENO: checking for pangoxft" >&5
24186echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24187
24188 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24189 echo "$as_me:$LINENO: result: yes" >&5
24190echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24191 succeeded=yes
24192
e6cc62c6
VS
24193 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24194echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24195 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24196 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24197echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24198
e6cc62c6
VS
24199 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24200echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24201 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24202 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24203echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24204 else
24205 PANGOXFT_CFLAGS=""
24206 PANGOXFT_LIBS=""
e6cc62c6 24207 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24208 ## do set a variable so people can do so.
24209 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24210
2b5f62a0
VZ
24211 fi
24212
e6cc62c6
VS
24213
24214
2b5f62a0
VZ
24215 else
24216 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24217 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24218 fi
24219 fi
24220
24221 if test $succeeded = yes; then
e6cc62c6 24222
2b5f62a0 24223 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24224 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24225
2b5f62a0 24226 else
e6cc62c6
VS
24227
24228 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24229echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24230
24231
2b5f62a0
VZ
24232 fi
24233
24234 fi
24235
24236 wxUSE_UNIVERSAL="yes"
24237
24238 if test "$wxUSE_NANOX" = "yes"; then
24239 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24240 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"
2b5f62a0
VZ
24241 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24242 else
93a543aa 24243 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24244 fi
24245
24246 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24247 TOOLKIT=X11
24248 GUIDIST=X11_DIST
24249 fi
24250
21d1c967
GD
24251 if test "$wxUSE_MOTIF" = 1; then
24252 if test "$no_x" = yes; then
24253 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24254
24255cat >>confdefs.h <<\_ACEOF
21d1c967 24256#define X_DISPLAY_MISSING 1
e6cc62c6 24257_ACEOF
21d1c967
GD
24258
24259 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24260else
24261 if test -n "$x_includes"; then
24262 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24263 fi
24264
21d1c967
GD
24265 # It would also be nice to do this for all -L options, not just this one.
24266 if test -n "$x_libraries"; then
24267 X_LIBS="$X_LIBS -L$x_libraries"
24268 # For Solaris; some versions of Sun CC require a space after -R and
24269 # others require no space. Words are not sufficient . . . .
e6cc62c6 24270 case `(uname -sr) 2>/dev/null` in
21d1c967 24271 "SunOS 5"*)
e6cc62c6
VS
24272 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24273echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24274 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24275 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24276/* confdefs.h. */
24277_ACEOF
24278cat confdefs.h >>conftest.$ac_ext
24279cat >>conftest.$ac_ext <<_ACEOF
24280/* end confdefs.h. */
24281
24282int
24283main ()
24284{
21d1c967 24285
e6cc62c6
VS
24286 ;
24287 return 0;
24288}
24289_ACEOF
24290rm -f conftest.$ac_objext conftest$ac_exeext
24291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24292 (eval $ac_link) 2>conftest.er1
e6cc62c6 24293 ac_status=$?
eea650d8
VS
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
e6cc62c6
VS
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } &&
eea650d8
VS
24299 { ac_try='test -z "$ac_c_werror_flag"
24300 || test ! -s conftest.err'
24301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302 (eval $ac_try) 2>&5
24303 ac_status=$?
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); }; } &&
24306 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
21d1c967 24312 ac_R_nospace=yes
698dcdb6 24313else
e6cc62c6
VS
24314 echo "$as_me: failed program was:" >&5
24315sed 's/^/| /' conftest.$ac_ext >&5
24316
24317ac_R_nospace=no
10f2d63a 24318fi
eea650d8
VS
24319rm -f conftest.err conftest.$ac_objext \
24320 conftest$ac_exeext conftest.$ac_ext
21d1c967 24321 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24322 echo "$as_me:$LINENO: result: no" >&5
24323echo "${ECHO_T}no" >&6
21d1c967
GD
24324 X_LIBS="$X_LIBS -R$x_libraries"
24325 else
24326 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24327 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
24333
24334int
24335main ()
24336{
f0c87536 24337
e6cc62c6
VS
24338 ;
24339 return 0;
24340}
24341_ACEOF
24342rm -f conftest.$ac_objext conftest$ac_exeext
24343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24344 (eval $ac_link) 2>conftest.er1
e6cc62c6 24345 ac_status=$?
eea650d8
VS
24346 grep -v '^ *+' conftest.er1 >conftest.err
24347 rm -f conftest.er1
24348 cat conftest.err >&5
e6cc62c6
VS
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } &&
eea650d8
VS
24351 { ac_try='test -z "$ac_c_werror_flag"
24352 || test ! -s conftest.err'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; } &&
24358 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; }; then
21d1c967
GD
24364 ac_R_space=yes
24365else
e6cc62c6
VS
24366 echo "$as_me: failed program was:" >&5
24367sed 's/^/| /' conftest.$ac_ext >&5
24368
24369ac_R_space=no
21d1c967 24370fi
eea650d8
VS
24371rm -f conftest.err conftest.$ac_objext \
24372 conftest$ac_exeext conftest.$ac_ext
21d1c967 24373 if test $ac_R_space = yes; then
e6cc62c6
VS
24374 echo "$as_me:$LINENO: result: yes" >&5
24375echo "${ECHO_T}yes" >&6
21d1c967
GD
24376 X_LIBS="$X_LIBS -R $x_libraries"
24377 else
e6cc62c6
VS
24378 echo "$as_me:$LINENO: result: neither works" >&5
24379echo "${ECHO_T}neither works" >&6
21d1c967
GD
24380 fi
24381 fi
e6cc62c6 24382 LIBS=$ac_xsave_LIBS
21d1c967
GD
24383 esac
24384 fi
90dd450c 24385
21d1c967
GD
24386 # Check for system-dependent libraries X programs must link with.
24387 # Do this before checking for the system-independent R6 libraries
24388 # (-lICE), since we may need -lsocket or whatever for X linking.
24389
24390 if test "$ISC" = yes; then
24391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24392 else
e6cc62c6
VS
24393 # Martyn Johnson says this is needed for Ultrix, if the X
24394 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24395 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24396 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24397 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24398/* confdefs.h. */
24399_ACEOF
24400cat confdefs.h >>conftest.$ac_ext
24401cat >>conftest.$ac_ext <<_ACEOF
24402/* end confdefs.h. */
24403
247f5006 24404/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24405#ifdef __cplusplus
24406extern "C"
24407#endif
247f5006 24408/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24409 builtin and then its argument prototype would still apply. */
24410char XOpenDisplay ();
24411int
24412main ()
24413{
24414XOpenDisplay ();
24415 ;
24416 return 0;
24417}
24418_ACEOF
24419rm -f conftest.$ac_objext conftest$ac_exeext
24420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24421 (eval $ac_link) 2>conftest.er1
e6cc62c6 24422 ac_status=$?
eea650d8
VS
24423 grep -v '^ *+' conftest.er1 >conftest.err
24424 rm -f conftest.er1
24425 cat conftest.err >&5
e6cc62c6
VS
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } &&
eea650d8
VS
24428 { ac_try='test -z "$ac_c_werror_flag"
24429 || test ! -s conftest.err'
24430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431 (eval $ac_try) 2>&5
24432 ac_status=$?
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; } &&
24435 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; }; then
24441 :
24442else
24443 echo "$as_me: failed program was:" >&5
24444sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 24445
e6cc62c6
VS
24446echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24447echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24448if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24450else
e6cc62c6
VS
24451 ac_check_lib_save_LIBS=$LIBS
24452LIBS="-ldnet $LIBS"
24453cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24454/* confdefs.h. */
24455_ACEOF
24456cat confdefs.h >>conftest.$ac_ext
24457cat >>conftest.$ac_ext <<_ACEOF
24458/* end confdefs.h. */
a0b9e27f 24459
e6cc62c6
VS
24460/* Override any gcc2 internal prototype to avoid an error. */
24461#ifdef __cplusplus
24462extern "C"
24463#endif
24464/* We use char because int might match the return type of a gcc2
24465 builtin and then its argument prototype would still apply. */
24466char dnet_ntoa ();
24467int
24468main ()
24469{
24470dnet_ntoa ();
24471 ;
24472 return 0;
24473}
24474_ACEOF
24475rm -f conftest.$ac_objext conftest$ac_exeext
24476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24477 (eval $ac_link) 2>conftest.er1
e6cc62c6 24478 ac_status=$?
eea650d8
VS
24479 grep -v '^ *+' conftest.er1 >conftest.err
24480 rm -f conftest.er1
24481 cat conftest.err >&5
e6cc62c6
VS
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } &&
eea650d8
VS
24484 { ac_try='test -z "$ac_c_werror_flag"
24485 || test ! -s conftest.err'
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; } &&
24491 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493 (eval $ac_try) 2>&5
24494 ac_status=$?
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); }; }; then
24497 ac_cv_lib_dnet_dnet_ntoa=yes
24498else
24499 echo "$as_me: failed program was:" >&5
24500sed 's/^/| /' conftest.$ac_ext >&5
24501
24502ac_cv_lib_dnet_dnet_ntoa=no
24503fi
eea650d8
VS
24504rm -f conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24506LIBS=$ac_check_lib_save_LIBS
24507fi
24508echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24509echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24510if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 24511 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 24512fi
0fb0dd83 24513
21d1c967 24514 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
24515 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24516echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24517if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24519else
e6cc62c6 24520 ac_check_lib_save_LIBS=$LIBS
21d1c967 24521LIBS="-ldnet_stub $LIBS"
e6cc62c6 24522cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24523/* confdefs.h. */
24524_ACEOF
24525cat confdefs.h >>conftest.$ac_ext
24526cat >>conftest.$ac_ext <<_ACEOF
24527/* end confdefs.h. */
24528
21d1c967 24529/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24530#ifdef __cplusplus
24531extern "C"
24532#endif
21d1c967 24533/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24534 builtin and then its argument prototype would still apply. */
24535char dnet_ntoa ();
24536int
24537main ()
24538{
24539dnet_ntoa ();
24540 ;
24541 return 0;
24542}
24543_ACEOF
24544rm -f conftest.$ac_objext conftest$ac_exeext
24545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24546 (eval $ac_link) 2>conftest.er1
e6cc62c6 24547 ac_status=$?
eea650d8
VS
24548 grep -v '^ *+' conftest.er1 >conftest.err
24549 rm -f conftest.er1
24550 cat conftest.err >&5
e6cc62c6
VS
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } &&
eea650d8
VS
24553 { ac_try='test -z "$ac_c_werror_flag"
24554 || test ! -s conftest.err'
24555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556 (eval $ac_try) 2>&5
24557 ac_status=$?
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; } &&
24560 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; }; then
24566 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24567else
24568 echo "$as_me: failed program was:" >&5
24569sed 's/^/| /' conftest.$ac_ext >&5
24570
24571ac_cv_lib_dnet_stub_dnet_ntoa=no
24572fi
eea650d8
VS
24573rm -f conftest.err conftest.$ac_objext \
24574 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24575LIBS=$ac_check_lib_save_LIBS
24576fi
24577echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24578echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24579if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 24580 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
24581fi
24582
21d1c967 24583 fi
e6cc62c6 24584fi
eea650d8
VS
24585rm -f conftest.err conftest.$ac_objext \
24586 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 24587 LIBS="$ac_xsave_LIBS"
90dd450c 24588
21d1c967
GD
24589 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24590 # to get the SysV transport functions.
e6cc62c6 24591 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
24592 # needs -lnsl.
24593 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
24594 # on Irix 5.2, according to T.E. Dickey.
24595 # The functions gethostbyname, getservbyname, and inet_addr are
24596 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24597 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24598echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24599if test "${ac_cv_func_gethostbyname+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24601else
24602 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24603/* confdefs.h. */
24604_ACEOF
24605cat confdefs.h >>conftest.$ac_ext
24606cat >>conftest.$ac_ext <<_ACEOF
24607/* end confdefs.h. */
eea650d8
VS
24608/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24610#define gethostbyname innocuous_gethostbyname
24611
21d1c967 24612/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24613 which can conflict with char gethostbyname (); below.
24614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24615 <limits.h> exists even on freestanding compilers. */
eea650d8 24616
e6cc62c6
VS
24617#ifdef __STDC__
24618# include <limits.h>
24619#else
24620# include <assert.h>
24621#endif
eea650d8
VS
24622
24623#undef gethostbyname
24624
21d1c967 24625/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24626#ifdef __cplusplus
24627extern "C"
24628{
24629#endif
21d1c967 24630/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24631 builtin and then its argument prototype would still apply. */
24632char gethostbyname ();
21d1c967
GD
24633/* The GNU C library defines this for functions which it implements
24634 to always fail with ENOSYS. Some functions are actually named
24635 something starting with __ and the normal name is an alias. */
24636#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24637choke me
24638#else
e6cc62c6
VS
24639char (*f) () = gethostbyname;
24640#endif
24641#ifdef __cplusplus
24642}
21d1c967 24643#endif
90dd450c 24644
e6cc62c6
VS
24645int
24646main ()
24647{
24648return f != gethostbyname;
24649 ;
24650 return 0;
24651}
24652_ACEOF
24653rm -f conftest.$ac_objext conftest$ac_exeext
24654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24655 (eval $ac_link) 2>conftest.er1
e6cc62c6 24656 ac_status=$?
eea650d8
VS
24657 grep -v '^ *+' conftest.er1 >conftest.err
24658 rm -f conftest.er1
24659 cat conftest.err >&5
e6cc62c6
VS
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
eea650d8
VS
24662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 ac_cv_func_gethostbyname=yes
24676else
24677 echo "$as_me: failed program was:" >&5
24678sed 's/^/| /' conftest.$ac_ext >&5
24679
24680ac_cv_func_gethostbyname=no
24681fi
eea650d8
VS
24682rm -f conftest.err conftest.$ac_objext \
24683 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24684fi
24685echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24686echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 24687
21d1c967 24688 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
24689 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24690echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24691if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24692 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24693else
e6cc62c6 24694 ac_check_lib_save_LIBS=$LIBS
21d1c967 24695LIBS="-lnsl $LIBS"
e6cc62c6 24696cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24697/* confdefs.h. */
24698_ACEOF
24699cat confdefs.h >>conftest.$ac_ext
24700cat >>conftest.$ac_ext <<_ACEOF
24701/* end confdefs.h. */
24702
21d1c967 24703/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24704#ifdef __cplusplus
24705extern "C"
24706#endif
21d1c967 24707/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24708 builtin and then its argument prototype would still apply. */
24709char gethostbyname ();
24710int
24711main ()
24712{
24713gethostbyname ();
24714 ;
24715 return 0;
24716}
24717_ACEOF
24718rm -f conftest.$ac_objext conftest$ac_exeext
24719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24720 (eval $ac_link) 2>conftest.er1
e6cc62c6 24721 ac_status=$?
eea650d8
VS
24722 grep -v '^ *+' conftest.er1 >conftest.err
24723 rm -f conftest.er1
24724 cat conftest.err >&5
e6cc62c6
VS
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } &&
eea650d8
VS
24727 { ac_try='test -z "$ac_c_werror_flag"
24728 || test ! -s conftest.err'
24729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730 (eval $ac_try) 2>&5
24731 ac_status=$?
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; } &&
24734 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736 (eval $ac_try) 2>&5
24737 ac_status=$?
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); }; }; then
24740 ac_cv_lib_nsl_gethostbyname=yes
24741else
24742 echo "$as_me: failed program was:" >&5
24743sed 's/^/| /' conftest.$ac_ext >&5
24744
24745ac_cv_lib_nsl_gethostbyname=no
24746fi
eea650d8
VS
24747rm -f conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24749LIBS=$ac_check_lib_save_LIBS
24750fi
24751echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24752echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24753if test $ac_cv_lib_nsl_gethostbyname = yes; then
24754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 24755fi
247f5006 24756
e6cc62c6 24757 if test $ac_cv_lib_nsl_gethostbyname = no; then
eea650d8 24758 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
24759echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24760if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24762else
e6cc62c6
VS
24763 ac_check_lib_save_LIBS=$LIBS
24764LIBS="-lbsd $LIBS"
24765cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24766/* confdefs.h. */
24767_ACEOF
24768cat confdefs.h >>conftest.$ac_ext
24769cat >>conftest.$ac_ext <<_ACEOF
24770/* end confdefs.h. */
24771
24772/* Override any gcc2 internal prototype to avoid an error. */
24773#ifdef __cplusplus
24774extern "C"
24775#endif
24776/* We use char because int might match the return type of a gcc2
24777 builtin and then its argument prototype would still apply. */
24778char gethostbyname ();
24779int
24780main ()
24781{
24782gethostbyname ();
24783 ;
24784 return 0;
24785}
24786_ACEOF
24787rm -f conftest.$ac_objext conftest$ac_exeext
24788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24789 (eval $ac_link) 2>conftest.er1
e6cc62c6 24790 ac_status=$?
eea650d8
VS
24791 grep -v '^ *+' conftest.er1 >conftest.err
24792 rm -f conftest.er1
24793 cat conftest.err >&5
e6cc62c6
VS
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } &&
eea650d8
VS
24796 { ac_try='test -z "$ac_c_werror_flag"
24797 || test ! -s conftest.err'
24798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799 (eval $ac_try) 2>&5
24800 ac_status=$?
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; } &&
24803 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; }; then
24809 ac_cv_lib_bsd_gethostbyname=yes
24810else
24811 echo "$as_me: failed program was:" >&5
24812sed 's/^/| /' conftest.$ac_ext >&5
24813
24814ac_cv_lib_bsd_gethostbyname=no
24815fi
eea650d8
VS
24816rm -f conftest.err conftest.$ac_objext \
24817 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24818LIBS=$ac_check_lib_save_LIBS
24819fi
24820echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24821echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24822if test $ac_cv_lib_bsd_gethostbyname = yes; then
24823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 24824fi
90dd450c 24825
e6cc62c6 24826 fi
90dd450c
VZ
24827 fi
24828
21d1c967
GD
24829 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24830 # socket/setsockopt and other routines are undefined under SCO ODT
24831 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24832 # on later versions), says Simon Leinen: it contains gethostby*
24833 # variants that don't use the name server (or something). -lsocket
24834 # must be given before -lnsl if both are needed. We assume that
24835 # if connect needs -lnsl, so does gethostbyname.
24836 echo "$as_me:$LINENO: checking for connect" >&5
24837echo $ECHO_N "checking for connect... $ECHO_C" >&6
24838if test "${ac_cv_func_connect+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24840else
24841 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24842/* confdefs.h. */
24843_ACEOF
24844cat confdefs.h >>conftest.$ac_ext
24845cat >>conftest.$ac_ext <<_ACEOF
24846/* end confdefs.h. */
eea650d8
VS
24847/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24849#define connect innocuous_connect
24850
21d1c967 24851/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24852 which can conflict with char connect (); below.
24853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24854 <limits.h> exists even on freestanding compilers. */
eea650d8 24855
e6cc62c6
VS
24856#ifdef __STDC__
24857# include <limits.h>
24858#else
24859# include <assert.h>
24860#endif
eea650d8
VS
24861
24862#undef connect
24863
21d1c967 24864/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24865#ifdef __cplusplus
24866extern "C"
24867{
24868#endif
21d1c967 24869/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24870 builtin and then its argument prototype would still apply. */
24871char connect ();
21d1c967
GD
24872/* The GNU C library defines this for functions which it implements
24873 to always fail with ENOSYS. Some functions are actually named
24874 something starting with __ and the normal name is an alias. */
24875#if defined (__stub_connect) || defined (__stub___connect)
24876choke me
24877#else
e6cc62c6
VS
24878char (*f) () = connect;
24879#endif
24880#ifdef __cplusplus
24881}
21d1c967 24882#endif
90dd450c 24883
e6cc62c6
VS
24884int
24885main ()
24886{
24887return f != connect;
24888 ;
24889 return 0;
24890}
24891_ACEOF
24892rm -f conftest.$ac_objext conftest$ac_exeext
24893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24894 (eval $ac_link) 2>conftest.er1
e6cc62c6 24895 ac_status=$?
eea650d8
VS
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
e6cc62c6
VS
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
eea650d8
VS
24901 { ac_try='test -z "$ac_c_werror_flag"
24902 || test ! -s conftest.err'
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 ac_cv_func_connect=yes
24915else
24916 echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919ac_cv_func_connect=no
24920fi
eea650d8
VS
24921rm -f conftest.err conftest.$ac_objext \
24922 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24923fi
24924echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24925echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 24926
21d1c967 24927 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24928 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24929echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24930if test "${ac_cv_lib_socket_connect+set}" = set; then
24931 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 24932else
e6cc62c6 24933 ac_check_lib_save_LIBS=$LIBS
21d1c967 24934LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24935cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24936/* confdefs.h. */
24937_ACEOF
24938cat confdefs.h >>conftest.$ac_ext
24939cat >>conftest.$ac_ext <<_ACEOF
24940/* end confdefs.h. */
24941
21d1c967 24942/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24943#ifdef __cplusplus
24944extern "C"
24945#endif
21d1c967 24946/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24947 builtin and then its argument prototype would still apply. */
24948char connect ();
24949int
24950main ()
24951{
24952connect ();
24953 ;
24954 return 0;
24955}
24956_ACEOF
24957rm -f conftest.$ac_objext conftest$ac_exeext
24958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24959 (eval $ac_link) 2>conftest.er1
e6cc62c6 24960 ac_status=$?
eea650d8
VS
24961 grep -v '^ *+' conftest.er1 >conftest.err
24962 rm -f conftest.er1
24963 cat conftest.err >&5
e6cc62c6
VS
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } &&
eea650d8
VS
24966 { ac_try='test -z "$ac_c_werror_flag"
24967 || test ! -s conftest.err'
24968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; } &&
24973 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24975 (eval $ac_try) 2>&5
24976 ac_status=$?
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); }; }; then
24979 ac_cv_lib_socket_connect=yes
24980else
24981 echo "$as_me: failed program was:" >&5
24982sed 's/^/| /' conftest.$ac_ext >&5
24983
24984ac_cv_lib_socket_connect=no
24985fi
eea650d8
VS
24986rm -f conftest.err conftest.$ac_objext \
24987 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24988LIBS=$ac_check_lib_save_LIBS
24989fi
24990echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24991echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24992if test $ac_cv_lib_socket_connect = yes; then
21d1c967 24993 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 24994fi
90dd450c 24995
21d1c967 24996 fi
90dd450c 24997
e6cc62c6
VS
24998 # Guillermo Gomez says -lposix is necessary on A/UX.
24999 echo "$as_me:$LINENO: checking for remove" >&5
25000echo $ECHO_N "checking for remove... $ECHO_C" >&6
25001if test "${ac_cv_func_remove+set}" = set; then
25002 echo $ECHO_N "(cached) $ECHO_C" >&6
25003else
25004 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25005/* confdefs.h. */
25006_ACEOF
25007cat confdefs.h >>conftest.$ac_ext
25008cat >>conftest.$ac_ext <<_ACEOF
25009/* end confdefs.h. */
eea650d8
VS
25010/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25012#define remove innocuous_remove
25013
21d1c967 25014/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25015 which can conflict with char remove (); below.
25016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25017 <limits.h> exists even on freestanding compilers. */
eea650d8 25018
e6cc62c6
VS
25019#ifdef __STDC__
25020# include <limits.h>
25021#else
25022# include <assert.h>
25023#endif
eea650d8
VS
25024
25025#undef remove
25026
21d1c967 25027/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25028#ifdef __cplusplus
25029extern "C"
25030{
25031#endif
21d1c967 25032/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25033 builtin and then its argument prototype would still apply. */
25034char remove ();
21d1c967
GD
25035/* The GNU C library defines this for functions which it implements
25036 to always fail with ENOSYS. Some functions are actually named
25037 something starting with __ and the normal name is an alias. */
25038#if defined (__stub_remove) || defined (__stub___remove)
25039choke me
25040#else
e6cc62c6
VS
25041char (*f) () = remove;
25042#endif
25043#ifdef __cplusplus
25044}
21d1c967 25045#endif
90dd450c 25046
e6cc62c6
VS
25047int
25048main ()
25049{
25050return f != remove;
25051 ;
25052 return 0;
25053}
25054_ACEOF
25055rm -f conftest.$ac_objext conftest$ac_exeext
25056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25057 (eval $ac_link) 2>conftest.er1
e6cc62c6 25058 ac_status=$?
eea650d8
VS
25059 grep -v '^ *+' conftest.er1 >conftest.err
25060 rm -f conftest.er1
25061 cat conftest.err >&5
e6cc62c6
VS
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } &&
eea650d8
VS
25064 { ac_try='test -z "$ac_c_werror_flag"
25065 || test ! -s conftest.err'
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; } &&
25071 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25074 ac_status=$?
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077 ac_cv_func_remove=yes
25078else
25079 echo "$as_me: failed program was:" >&5
25080sed 's/^/| /' conftest.$ac_ext >&5
25081
25082ac_cv_func_remove=no
25083fi
eea650d8
VS
25084rm -f conftest.err conftest.$ac_objext \
25085 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25086fi
25087echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25088echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25089
21d1c967 25090 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25091 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25092echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25093if test "${ac_cv_lib_posix_remove+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25095else
e6cc62c6 25096 ac_check_lib_save_LIBS=$LIBS
21d1c967 25097LIBS="-lposix $LIBS"
e6cc62c6 25098cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25099/* confdefs.h. */
25100_ACEOF
25101cat confdefs.h >>conftest.$ac_ext
25102cat >>conftest.$ac_ext <<_ACEOF
25103/* end confdefs.h. */
25104
21d1c967 25105/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25106#ifdef __cplusplus
25107extern "C"
25108#endif
21d1c967 25109/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25110 builtin and then its argument prototype would still apply. */
25111char remove ();
25112int
25113main ()
25114{
25115remove ();
25116 ;
25117 return 0;
25118}
25119_ACEOF
25120rm -f conftest.$ac_objext conftest$ac_exeext
25121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25122 (eval $ac_link) 2>conftest.er1
e6cc62c6 25123 ac_status=$?
eea650d8
VS
25124 grep -v '^ *+' conftest.er1 >conftest.err
25125 rm -f conftest.er1
25126 cat conftest.err >&5
e6cc62c6
VS
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } &&
eea650d8
VS
25129 { ac_try='test -z "$ac_c_werror_flag"
25130 || test ! -s conftest.err'
25131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132 (eval $ac_try) 2>&5
25133 ac_status=$?
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; } &&
25136 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25142 ac_cv_lib_posix_remove=yes
25143else
25144 echo "$as_me: failed program was:" >&5
25145sed 's/^/| /' conftest.$ac_ext >&5
25146
25147ac_cv_lib_posix_remove=no
25148fi
eea650d8
VS
25149rm -f conftest.err conftest.$ac_objext \
25150 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25151LIBS=$ac_check_lib_save_LIBS
25152fi
25153echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25154echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25155if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25156 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25157fi
19bc6aad 25158
90dd450c 25159 fi
19bc6aad 25160
21d1c967 25161 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25162 echo "$as_me:$LINENO: checking for shmat" >&5
25163echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25164if test "${ac_cv_func_shmat+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25166else
25167 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
eea650d8
VS
25173/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25175#define shmat innocuous_shmat
25176
21d1c967 25177/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25178 which can conflict with char shmat (); below.
25179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25180 <limits.h> exists even on freestanding compilers. */
eea650d8 25181
e6cc62c6
VS
25182#ifdef __STDC__
25183# include <limits.h>
25184#else
25185# include <assert.h>
25186#endif
eea650d8
VS
25187
25188#undef shmat
25189
21d1c967 25190/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25191#ifdef __cplusplus
25192extern "C"
25193{
25194#endif
21d1c967 25195/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25196 builtin and then its argument prototype would still apply. */
25197char shmat ();
21d1c967
GD
25198/* The GNU C library defines this for functions which it implements
25199 to always fail with ENOSYS. Some functions are actually named
25200 something starting with __ and the normal name is an alias. */
25201#if defined (__stub_shmat) || defined (__stub___shmat)
25202choke me
25203#else
e6cc62c6
VS
25204char (*f) () = shmat;
25205#endif
25206#ifdef __cplusplus
25207}
21d1c967 25208#endif
90dd450c 25209
e6cc62c6
VS
25210int
25211main ()
25212{
25213return f != shmat;
25214 ;
25215 return 0;
25216}
25217_ACEOF
25218rm -f conftest.$ac_objext conftest$ac_exeext
25219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25220 (eval $ac_link) 2>conftest.er1
e6cc62c6 25221 ac_status=$?
eea650d8
VS
25222 grep -v '^ *+' conftest.er1 >conftest.err
25223 rm -f conftest.er1
25224 cat conftest.err >&5
e6cc62c6
VS
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
eea650d8
VS
25227 { ac_try='test -z "$ac_c_werror_flag"
25228 || test ! -s conftest.err'
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_cv_func_shmat=yes
25241else
25242 echo "$as_me: failed program was:" >&5
25243sed 's/^/| /' conftest.$ac_ext >&5
25244
25245ac_cv_func_shmat=no
25246fi
eea650d8
VS
25247rm -f conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25249fi
25250echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25251echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25252
21d1c967 25253 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25254 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25255echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25256if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25257 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25258else
e6cc62c6 25259 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25260LIBS="-lipc $LIBS"
e6cc62c6 25261cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25262/* confdefs.h. */
25263_ACEOF
25264cat confdefs.h >>conftest.$ac_ext
25265cat >>conftest.$ac_ext <<_ACEOF
25266/* end confdefs.h. */
25267
5c6fa7d2 25268/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25269#ifdef __cplusplus
25270extern "C"
25271#endif
5c6fa7d2 25272/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25273 builtin and then its argument prototype would still apply. */
25274char shmat ();
25275int
25276main ()
25277{
25278shmat ();
25279 ;
25280 return 0;
25281}
25282_ACEOF
25283rm -f conftest.$ac_objext conftest$ac_exeext
25284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25285 (eval $ac_link) 2>conftest.er1
e6cc62c6 25286 ac_status=$?
eea650d8
VS
25287 grep -v '^ *+' conftest.er1 >conftest.err
25288 rm -f conftest.er1
25289 cat conftest.err >&5
e6cc62c6
VS
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); } &&
eea650d8
VS
25292 { ac_try='test -z "$ac_c_werror_flag"
25293 || test ! -s conftest.err'
25294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; } &&
25299 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301 (eval $ac_try) 2>&5
25302 ac_status=$?
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); }; }; then
25305 ac_cv_lib_ipc_shmat=yes
25306else
25307 echo "$as_me: failed program was:" >&5
25308sed 's/^/| /' conftest.$ac_ext >&5
25309
25310ac_cv_lib_ipc_shmat=no
25311fi
eea650d8
VS
25312rm -f conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25314LIBS=$ac_check_lib_save_LIBS
25315fi
25316echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25317echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25318if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25320fi
90dd450c 25321
90dd450c 25322 fi
21d1c967 25323 fi
10f2d63a 25324
21d1c967 25325 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25326 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25327 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25328 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25329 # check for ICE first), but we must link in the order -lSM -lICE or
25330 # we get undefined symbols. So assume we have SM if we have ICE.
25331 # These have to be linked with before -lX11, unlike the other
25332 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25333 # John Interrante, Karl Berry
25334 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25335echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25336if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25338else
25339 ac_check_lib_save_LIBS=$LIBS
f09359cf 25340LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25341cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25342/* confdefs.h. */
25343_ACEOF
25344cat confdefs.h >>conftest.$ac_ext
25345cat >>conftest.$ac_ext <<_ACEOF
25346/* end confdefs.h. */
25347
21d1c967 25348/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25349#ifdef __cplusplus
25350extern "C"
25351#endif
21d1c967 25352/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25353 builtin and then its argument prototype would still apply. */
25354char IceConnectionNumber ();
25355int
25356main ()
25357{
25358IceConnectionNumber ();
25359 ;
25360 return 0;
25361}
25362_ACEOF
25363rm -f conftest.$ac_objext conftest$ac_exeext
25364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25365 (eval $ac_link) 2>conftest.er1
e6cc62c6 25366 ac_status=$?
eea650d8
VS
25367 grep -v '^ *+' conftest.er1 >conftest.err
25368 rm -f conftest.er1
25369 cat conftest.err >&5
e6cc62c6
VS
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); } &&
eea650d8
VS
25372 { ac_try='test -z "$ac_c_werror_flag"
25373 || test ! -s conftest.err'
25374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375 (eval $ac_try) 2>&5
25376 ac_status=$?
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); }; } &&
25379 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25382 ac_status=$?
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; }; then
25385 ac_cv_lib_ICE_IceConnectionNumber=yes
25386else
25387 echo "$as_me: failed program was:" >&5
25388sed 's/^/| /' conftest.$ac_ext >&5
25389
25390ac_cv_lib_ICE_IceConnectionNumber=no
25391fi
eea650d8
VS
25392rm -f conftest.err conftest.$ac_objext \
25393 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25394LIBS=$ac_check_lib_save_LIBS
25395fi
25396echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25397echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25398if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 25399 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 25400fi
21d1c967 25401
e6cc62c6 25402 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 25403
10f2d63a
VZ
25404fi
25405
8284b0c5 25406
21d1c967 25407 if test "$no_x" = "yes"; then
e6cc62c6
VS
25408 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25409echo "$as_me: error: X11 not found" >&2;}
25410 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
25411 fi
25412
2b5f62a0
VZ
25413 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25414 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
25415 AFMINSTALL=afminstall
25416 COMPILED_X_PROGRAM=0
25417
e6cc62c6
VS
25418 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25419echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25420
21d1c967 25421ac_find_includes=
2b5f62a0 25422for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
25423 do
25424 if test -f "$ac_dir/Xm/Xm.h"; then
25425 ac_find_includes=$ac_dir
25426 break
25427 fi
25428 done
25429
25430 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
25431 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25432echo "${ECHO_T}found in $ac_find_includes" >&6
25433
2b5f62a0 25434 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
25435 ac_path_to_include=""
25436 else
2b5f62a0
VZ
25437 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25438 result=$?
25439 if test $result = 0; then
25440 ac_path_to_include=""
25441 else
25442 ac_path_to_include=" -I$ac_find_includes"
25443 fi
dd0e4a90
VZ
25444 fi
25445
25446 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 25447 else
e6cc62c6 25448 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25449/* confdefs.h. */
25450_ACEOF
25451cat confdefs.h >>conftest.$ac_ext
25452cat >>conftest.$ac_ext <<_ACEOF
25453/* end confdefs.h. */
21d1c967
GD
25454
25455 #include <Xm/Xm.h>
e6cc62c6
VS
25456
25457int
25458main ()
25459{
21d1c967
GD
25460
25461 int version;
25462 version = xmUseVersion;
e6cc62c6
VS
25463
25464 ;
25465 return 0;
25466}
25467_ACEOF
25468rm -f conftest.$ac_objext
25469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25470 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25471 ac_status=$?
eea650d8
VS
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
e6cc62c6
VS
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } &&
eea650d8
VS
25477 { ac_try='test -z "$ac_c_werror_flag"
25478 || test ! -s conftest.err'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; } &&
25484 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; }; then
25490
25491 echo "$as_me:$LINENO: result: found in default search path" >&5
25492echo "${ECHO_T}found in default search path" >&6
21d1c967 25493 COMPILED_X_PROGRAM=1
e6cc62c6 25494
10f2d63a 25495else
e6cc62c6
VS
25496 echo "$as_me: failed program was:" >&5
25497sed 's/^/| /' conftest.$ac_ext >&5
25498
25499
25500 echo "$as_me:$LINENO: result: no" >&5
25501echo "${ECHO_T}no" >&6
25502 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25503echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25504 { (exit 1); exit 1; }; }
25505
25506
10f2d63a 25507fi
eea650d8 25508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 25509 fi
10f2d63a 25510
21d1c967 25511 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
25512 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25513echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25514
21d1c967 25515ac_find_libraries=
2b5f62a0 25516for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25517 do
25518 for ac_extension in a so sl dylib; do
25519 if test -f "$ac_dir/libXm.$ac_extension"; then
25520 ac_find_libraries=$ac_dir
25521 break 2
25522 fi
25523 done
25524 done
25525
25526 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
25527 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25528echo "${ECHO_T}found at $ac_find_libraries" >&6
25529
21d1c967 25530
21d1c967
GD
25531 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25532 result=$?
25533 if test $result = 0; then
25534 ac_path_to_link=""
25535 else
25536 ac_path_to_link=" -L$ac_find_libraries"
25537 fi
25538
21d1c967 25539 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 25540 else
dd0e4a90
VZ
25541 save_CFLAGS=$CFLAGS
25542 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25543
e6cc62c6 25544 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25545/* confdefs.h. */
25546_ACEOF
25547cat confdefs.h >>conftest.$ac_ext
25548cat >>conftest.$ac_ext <<_ACEOF
25549/* end confdefs.h. */
21d1c967
GD
25550
25551 #include <Xm/Xm.h>
e6cc62c6
VS
25552
25553int
25554main ()
25555{
21d1c967
GD
25556
25557 int version;
25558 version = xmUseVersion;
e6cc62c6
VS
25559
25560 ;
25561 return 0;
25562}
25563_ACEOF
25564rm -f conftest.$ac_objext
25565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25566 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25567 ac_status=$?
eea650d8
VS
25568 grep -v '^ *+' conftest.er1 >conftest.err
25569 rm -f conftest.er1
25570 cat conftest.err >&5
e6cc62c6
VS
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } &&
eea650d8
VS
25573 { ac_try='test -z "$ac_c_werror_flag"
25574 || test ! -s conftest.err'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; } &&
25580 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
25586
25587 echo "$as_me:$LINENO: result: found in default search path" >&5
25588echo "${ECHO_T}found in default search path" >&6
21d1c967 25589 COMPILED_X_PROGRAM=1
e6cc62c6 25590
d836ee96 25591else
e6cc62c6
VS
25592 echo "$as_me: failed program was:" >&5
25593sed 's/^/| /' conftest.$ac_ext >&5
25594
25595
25596 echo "$as_me:$LINENO: result: no" >&5
25597echo "${ECHO_T}no" >&6
25598 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25599echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25600 { (exit 1); exit 1; }; }
25601
25602
d836ee96 25603fi
eea650d8 25604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
25605
25606 CFLAGS=$save_CFLAGS
21d1c967
GD
25607 fi
25608 fi
25609
e6cc62c6
VS
25610 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25611echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
25612 libp_link=""
25613 libsm_ice_link=""
25614 libs_found=0
25615 for libp in "" " -lXp"; do
25616 if test "$libs_found" = "0"; then
7015ef3a 25617 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 25618 if test "$libs_found" = "0"; then
6a30f1c8 25619 save_LIBS="$LIBS"
93a543aa 25620 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
25621 save_CFLAGS=$CFLAGS
25622 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25623
e6cc62c6 25624 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25625/* confdefs.h. */
25626_ACEOF
25627cat confdefs.h >>conftest.$ac_ext
25628cat >>conftest.$ac_ext <<_ACEOF
25629/* end confdefs.h. */
17234b26 25630
6a30f1c8
MB
25631 #include <Xm/Xm.h>
25632 #include <Xm/List.h>
e6cc62c6
VS
25633
25634int
25635main ()
25636{
6a30f1c8
MB
25637
25638 XmString string = NULL;
25639 Widget w = NULL;
25640 int position = 0;
25641 XmListAddItem(w, string, position);
e6cc62c6
VS
25642
25643 ;
25644 return 0;
25645}
25646_ACEOF
25647rm -f conftest.$ac_objext conftest$ac_exeext
25648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25649 (eval $ac_link) 2>conftest.er1
e6cc62c6 25650 ac_status=$?
eea650d8
VS
25651 grep -v '^ *+' conftest.er1 >conftest.err
25652 rm -f conftest.er1
25653 cat conftest.err >&5
e6cc62c6
VS
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); } &&
eea650d8
VS
25656 { ac_try='test -z "$ac_c_werror_flag"
25657 || test ! -s conftest.err'
25658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); }; } &&
25663 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
25669
6a30f1c8
MB
25670 libp_link="$libp"
25671 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
25672 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25673echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 25674 libs_found=1
e6cc62c6 25675
6a30f1c8 25676else
e6cc62c6
VS
25677 echo "$as_me: failed program was:" >&5
25678sed 's/^/| /' conftest.$ac_ext >&5
25679
25680
25681
6a30f1c8 25682fi
eea650d8
VS
25683rm -f conftest.err conftest.$ac_objext \
25684 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 25685
6a30f1c8 25686 LIBS="$save_LIBS"
dd0e4a90 25687 CFLAGS=$save_CFLAGS
6a30f1c8
MB
25688 fi
25689 done
25690 fi
25691 done
25692
25693 if test "$libs_found" = "0"; then
e6cc62c6
VS
25694 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25695echo "${ECHO_T}can't find the right libraries" >&6
25696 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25697echo "$as_me: error: can't link a simple motif program" >&2;}
25698 { (exit 1); exit 1; }; }
6a30f1c8
MB
25699 fi
25700
da494b40
MB
25701 save_CFLAGS=$CFLAGS
25702 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
25703 echo "$as_me:$LINENO: checking for Motif 2" >&5
25704echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25705 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25706/* confdefs.h. */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h. */
da494b40
MB
25711
25712 #include <Xm/Xm.h>
e6cc62c6
VS
25713
25714int
25715main ()
25716{
da494b40
MB
25717
25718 #if XmVersion < 2000
25719 #error "Not Motif 2"
25720 #endif
e6cc62c6
VS
25721
25722 ;
25723 return 0;
25724}
25725_ACEOF
25726rm -f conftest.$ac_objext
25727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25728 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25729 ac_status=$?
eea650d8
VS
25730 grep -v '^ *+' conftest.er1 >conftest.err
25731 rm -f conftest.er1
25732 cat conftest.err >&5
e6cc62c6
VS
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } &&
eea650d8
VS
25735 { ac_try='test -z "$ac_c_werror_flag"
25736 || test ! -s conftest.err'
25737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); }; } &&
25742 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; }; then
25748
25749 cat >>confdefs.h <<\_ACEOF
da494b40 25750#define __WXMOTIF20__ 1
e6cc62c6
VS
25751_ACEOF
25752
25753 echo "$as_me:$LINENO: result: found" >&5
25754echo "${ECHO_T}found" >&6
da494b40 25755
da494b40 25756else
e6cc62c6
VS
25757 echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760
25761 cat >>confdefs.h <<\_ACEOF
da494b40 25762#define __WXMOTIF20__ 0
e6cc62c6
VS
25763_ACEOF
25764
25765 echo "$as_me:$LINENO: result: not found" >&5
25766echo "${ECHO_T}not found" >&6
da494b40 25767
da494b40 25768fi
eea650d8 25769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
25770 CFLAGS=$save_CFLAGS
25771
93a543aa 25772 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 25773 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
25774 TOOLKIT=MOTIF
25775 GUIDIST=MOTIF_DIST
f7f78039
MB
25776 fi
25777
89fe663f
VZ
25778 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25779 if test "$wxUSE_LIBXPM" = "sys"; then
25780 echo "$as_me:$LINENO: checking for Xpm library" >&5
25781echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25782
25783ac_find_libraries=
25784for ac_dir in $SEARCH_LIB /usr/lib;
25785 do
25786 for ac_extension in a so sl dylib; do
25787 if test -f "$ac_dir/libXpm.$ac_extension"; then
25788 ac_find_libraries=$ac_dir
25789 break 2
25790 fi
25791 done
25792 done
25793
25794 if test "$ac_find_libraries" != "" ; then
25795
25796 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25797 result=$?
25798 if test $result = 0; then
25799 ac_path_to_link=""
25800 else
25801 ac_path_to_link=" -L$ac_find_libraries"
25802 fi
25803
25804 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25805 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25806echo "${ECHO_T}found at $ac_find_libraries" >&6
25807
25808 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25809echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25810if test "${wx_cv_x11_xpm_h+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25812else
25813
25814 save_CFLAGS=$CFLAGS
25815 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25816
25817 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25818/* confdefs.h. */
25819_ACEOF
25820cat confdefs.h >>conftest.$ac_ext
25821cat >>conftest.$ac_ext <<_ACEOF
25822/* end confdefs.h. */
25823
25824 #include <X11/xpm.h>
25825
25826int
25827main ()
25828{
25829
25830 int version;
25831 version = XpmLibraryVersion();
25832
25833 ;
25834 return 0;
25835}
25836_ACEOF
25837rm -f conftest.$ac_objext
25838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25839 (eval $ac_compile) 2>conftest.er1
89fe663f 25840 ac_status=$?
eea650d8
VS
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
89fe663f
VZ
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
eea650d8
VS
25846 { ac_try='test -z "$ac_c_werror_flag"
25847 || test ! -s conftest.err'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; } &&
25853 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; }; then
25859 wx_cv_x11_xpm_h=yes
25860else
25861 echo "$as_me: failed program was:" >&5
25862sed 's/^/| /' conftest.$ac_ext >&5
25863
25864wx_cv_x11_xpm_h=no
25865
25866fi
eea650d8 25867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
25868
25869 CFLAGS=$save_CFLAGS
25870
25871
25872fi
25873echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25874echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25875
25876 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 25877 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
25878 cat >>confdefs.h <<\_ACEOF
25879#define wxHAVE_LIB_XPM 1
25880_ACEOF
25881
25882 else
25883 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25884echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25885 fi
25886 fi
25887
25888 fi
f7f78039 25889
89fe663f
VZ
25890 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25891echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25892if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25893 echo $ECHO_N "(cached) $ECHO_C" >&6
25894else
25895 ac_check_lib_save_LIBS=$LIBS
25896LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25897cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25898/* confdefs.h. */
25899_ACEOF
25900cat confdefs.h >>conftest.$ac_ext
25901cat >>conftest.$ac_ext <<_ACEOF
25902/* end confdefs.h. */
25903
25904/* Override any gcc2 internal prototype to avoid an error. */
25905#ifdef __cplusplus
25906extern "C"
25907#endif
25908/* We use char because int might match the return type of a gcc2
25909 builtin and then its argument prototype would still apply. */
25910char XShapeQueryExtension ();
25911int
25912main ()
25913{
25914XShapeQueryExtension ();
25915 ;
25916 return 0;
25917}
25918_ACEOF
25919rm -f conftest.$ac_objext conftest$ac_exeext
25920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25921 (eval $ac_link) 2>conftest.er1
89fe663f 25922 ac_status=$?
eea650d8
VS
25923 grep -v '^ *+' conftest.er1 >conftest.err
25924 rm -f conftest.er1
25925 cat conftest.err >&5
89fe663f
VZ
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } &&
eea650d8
VS
25928 { ac_try='test -z "$ac_c_werror_flag"
25929 || test ! -s conftest.err'
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; } &&
25935 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
25941 ac_cv_lib_Xext_XShapeQueryExtension=yes
25942else
25943 echo "$as_me: failed program was:" >&5
25944sed 's/^/| /' conftest.$ac_ext >&5
25945
25946ac_cv_lib_Xext_XShapeQueryExtension=no
25947fi
eea650d8
VS
25948rm -f conftest.err conftest.$ac_objext \
25949 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
25950LIBS=$ac_check_lib_save_LIBS
25951fi
25952echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25953echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25954if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25955
25956 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25957 wxHAVE_XEXT_LIB=1
25958
25959fi
25960
25961
25962 if test "$wxHAVE_XEXT_LIB" = 1; then
25963 save_CFLAGS="$CFLAGS"
25964 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25965
25966 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 25967echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 25968 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25969/* confdefs.h. */
25970_ACEOF
25971cat confdefs.h >>conftest.$ac_ext
25972cat >>conftest.$ac_ext <<_ACEOF
25973/* end confdefs.h. */
25974
89fe663f
VZ
25975 #include <X11/Xlib.h>
25976 #include <X11/extensions/shape.h>
e6cc62c6
VS
25977
25978int
25979main ()
25980{
f7f78039 25981
89fe663f
VZ
25982 int dummy1, dummy2;
25983 XShapeQueryExtension((Display*)NULL,
25984 (int*)NULL, (int*)NULL);
e6cc62c6
VS
25985
25986 ;
25987 return 0;
25988}
25989_ACEOF
25990rm -f conftest.$ac_objext
25991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25992 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25993 ac_status=$?
eea650d8
VS
25994 grep -v '^ *+' conftest.er1 >conftest.err
25995 rm -f conftest.er1
25996 cat conftest.err >&5
e6cc62c6
VS
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } &&
eea650d8
VS
25999 { ac_try='test -z "$ac_c_werror_flag"
26000 || test ! -s conftest.err'
26001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; } &&
26006 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; }; then
26012
89fe663f 26013 cat >>confdefs.h <<\_ACEOF
f7f78039 26014#define HAVE_XSHAPE 1
e6cc62c6
VS
26015_ACEOF
26016
89fe663f 26017 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26018echo "${ECHO_T}found" >&6
f7f78039 26019
f7f78039 26020else
e6cc62c6
VS
26021 echo "$as_me: failed program was:" >&5
26022sed 's/^/| /' conftest.$ac_ext >&5
26023
26024
89fe663f 26025 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26026echo "${ECHO_T}not found" >&6
26027
f7f78039 26028fi
eea650d8 26029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26030 CFLAGS="$save_CFLAGS"
26031
26032 fi
21d1c967
GD
26033 fi
26034
26035 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26036 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26037echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26038 if test "$GCC" = yes; then
26039 echo "$as_me:$LINENO: result: gcc" >&5
26040echo "${ECHO_T}gcc" >&6
26041 CPPFLAGS_PASCAL="-fpascal-strings"
26042 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26043 echo "$as_me:$LINENO: result: xlc" >&5
26044echo "${ECHO_T}xlc" >&6
26045 CPPFLAGS_PASCAL="-qmacpstr"
26046 else
26047 echo "$as_me:$LINENO: result: none" >&5
26048echo "${ECHO_T}none" >&6
26049 fi
26050
26051 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26052
0c98a14e 26053 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26054 TOOLKIT=MAC
26055 GUIDIST=MACX_DIST
cf615ebb 26056 WXBASEPORT="_carbon"
21d1c967
GD
26057 fi
26058
ac0c4cc3
DE
26059 if test "$wxUSE_COCOA" = 1; then
26060 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26061 TOOLKIT=COCOA
26062 GUIDIST=COCOA_DIST
26063 fi
26064
21d1c967
GD
26065 if test "$wxUSE_PM" = 1; then
26066 TOOLKIT=PM
26067 GUIDIST=GTK_DIST
26068 fi
26069
26070 if test "$TOOLKIT" = "PM" ; then
26071 TOOLKIT_DIR="os2"
26072 else
26073 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26074 fi
26075
26076 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26077
26078 if test "$wxUSE_UNIVERSAL" = "yes"; then
26079 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26080
26081 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26082 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26083
26084 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26085 if test "$wxUSE_X11" = 1; then
26086 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26087 else
26088 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26089 fi
26090 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26091 WIDGET_SET=univ
26092 else
26093 ALL_OBJECTS="\$(GUIOBJS)"
26094 ALL_SOURCES="\$(ALL_SOURCES)"
26095 ALL_HEADERS="\$(ALL_HEADERS)"
26096 fi
26097
26098 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26099
26100 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26101 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26102 fi
26103
26104 if test "$wxUSE_HTML" = "yes"; then
26105 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26106 fi
26107
26108 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26109 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26110 fi
26111 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26112 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26113 fi
26114 if test "$wxUSE_LIBPNG" = "builtin" ; then
26115 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26116 fi
26117
26118 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26119 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26120else
21d1c967
GD
26121 USE_GUI=0
26122
26123 TOOLKIT_DIR="base"
26124
26125 if test "$USE_WIN32" = 1 ; then
26126 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26127 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26128
26129 TOOLKIT="MSW"
26130 else
26131 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26132 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26133 fi
26134
26135 ALL_SOURCES="\$(ALL_SOURCES)"
26136 ALL_HEADERS="\$(ALL_HEADERS)"
26137
26138 PORT_FILES="\${top_srcdir}/src/files.lst"
26139
26140 GUIDIST="BASE_DIST"
26141 DISTDIR="wxBase"
d836ee96
VZ
26142fi
26143
8284b0c5 26144
8647bec6
RG
26145
26146
26147IODBC_C_SRC=""
26148
26149
26150if test "$TOOLKIT" != "MSW" ; then
26151
bb41dcbe 26152 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26153
bb41dcbe 26154 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26155 echo "$as_me:$LINENO: checking for sql.h" >&5
26156echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26157if test "${ac_cv_header_sql_h+set}" = set; then
26158 echo $ECHO_N "(cached) $ECHO_C" >&6
26159fi
26160echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26161echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26162else
26163 # Is the header compilable?
26164echo "$as_me:$LINENO: checking sql.h usability" >&5
26165echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26166cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26167/* confdefs.h. */
26168_ACEOF
26169cat confdefs.h >>conftest.$ac_ext
26170cat >>conftest.$ac_ext <<_ACEOF
26171/* end confdefs.h. */
26172$ac_includes_default
8647bec6 26173#include <sql.h>
e6cc62c6
VS
26174_ACEOF
26175rm -f conftest.$ac_objext
26176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 26177 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26178 ac_status=$?
eea650d8
VS
26179 grep -v '^ *+' conftest.er1 >conftest.err
26180 rm -f conftest.er1
26181 cat conftest.err >&5
e6cc62c6
VS
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); } &&
eea650d8
VS
26184 { ac_try='test -z "$ac_c_werror_flag"
26185 || test ! -s conftest.err'
26186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; } &&
26191 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26194 ac_status=$?
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; }; then
26197 ac_header_compiler=yes
26198else
26199 echo "$as_me: failed program was:" >&5
26200sed 's/^/| /' conftest.$ac_ext >&5
26201
26202ac_header_compiler=no
26203fi
eea650d8 26204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26206echo "${ECHO_T}$ac_header_compiler" >&6
26207
26208# Is the header present?
26209echo "$as_me:$LINENO: checking sql.h presence" >&5
26210echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26211cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26212/* confdefs.h. */
26213_ACEOF
26214cat confdefs.h >>conftest.$ac_ext
26215cat >>conftest.$ac_ext <<_ACEOF
26216/* end confdefs.h. */
26217#include <sql.h>
26218_ACEOF
26219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26221 ac_status=$?
26222 grep -v '^ *+' conftest.er1 >conftest.err
26223 rm -f conftest.er1
26224 cat conftest.err >&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } >/dev/null; then
26227 if test -s conftest.err; then
26228 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 26229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26230 else
26231 ac_cpp_err=
26232 fi
26233else
26234 ac_cpp_err=yes
26235fi
26236if test -z "$ac_cpp_err"; then
26237 ac_header_preproc=yes
26238else
26239 echo "$as_me: failed program was:" >&5
26240sed 's/^/| /' conftest.$ac_ext >&5
26241
26242 ac_header_preproc=no
26243fi
26244rm -f conftest.err conftest.$ac_ext
26245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26246echo "${ECHO_T}$ac_header_preproc" >&6
26247
26248# So? What about this header?
eea650d8
VS
26249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26250 yes:no: )
e6cc62c6
VS
26251 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26252echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
26253 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26254echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26255 ac_header_preproc=yes
e6cc62c6 26256 ;;
eea650d8 26257 no:yes:* )
e6cc62c6
VS
26258 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26259echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
eea650d8
VS
26260 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26261echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26262 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26263echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26264 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26265echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26266 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26267echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
26268 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26269echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26270 (
26271 cat <<\_ASBOX
eea650d8
VS
26272## ----------------------------------------- ##
26273## Report this to wx-dev@lists.wxwindows.org ##
26274## ----------------------------------------- ##
e6cc62c6
VS
26275_ASBOX
26276 ) |
26277 sed "s/^/$as_me: WARNING: /" >&2
26278 ;;
26279esac
26280echo "$as_me:$LINENO: checking for sql.h" >&5
26281echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26282if test "${ac_cv_header_sql_h+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26284else
e6cc62c6
VS
26285 ac_cv_header_sql_h=$ac_header_preproc
26286fi
26287echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26288echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26289
bb41dcbe
VS
26290fi
26291if test $ac_cv_header_sql_h = yes; then
26292 found_sql_h=1
8647bec6
RG
26293fi
26294
e6cc62c6 26295
bb41dcbe 26296 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26297 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26298echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26299if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26300 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26301else
bb41dcbe 26302 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26303LIBS="-liodbc $LIBS"
e6cc62c6 26304cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310
8647bec6 26311/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26312#ifdef __cplusplus
26313extern "C"
26314#endif
8647bec6 26315/* We use char because int might match the return type of a gcc2
e6cc62c6 26316 builtin and then its argument prototype would still apply. */
e46d2a18 26317char SQLAllocEnv ();
e6cc62c6
VS
26318int
26319main ()
26320{
e46d2a18 26321SQLAllocEnv ();
e6cc62c6
VS
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext conftest$ac_exeext
26327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26328 (eval $ac_link) 2>conftest.er1
e6cc62c6 26329 ac_status=$?
eea650d8
VS
26330 grep -v '^ *+' conftest.er1 >conftest.err
26331 rm -f conftest.er1
26332 cat conftest.err >&5
e6cc62c6
VS
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
eea650d8
VS
26335 { ac_try='test -z "$ac_c_werror_flag"
26336 || test ! -s conftest.err'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26339 ac_status=$?
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; } &&
26342 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; }; then
e46d2a18 26348 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26349else
e6cc62c6
VS
26350 echo "$as_me: failed program was:" >&5
26351sed 's/^/| /' conftest.$ac_ext >&5
26352
e46d2a18 26353ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26354fi
eea650d8
VS
26355rm -f conftest.err conftest.$ac_objext \
26356 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26357LIBS=$ac_check_lib_save_LIBS
26358fi
e46d2a18
VS
26359echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26360echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26361if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26362 ODBC_LINK=" -liodbc"
26363else
26364
e46d2a18
VS
26365 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26366echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26367if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26368 echo $ECHO_N "(cached) $ECHO_C" >&6
26369else
26370 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26371LIBS="-lunixodbc $LIBS"
bb41dcbe 26372cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26373/* confdefs.h. */
26374_ACEOF
26375cat confdefs.h >>conftest.$ac_ext
26376cat >>conftest.$ac_ext <<_ACEOF
26377/* end confdefs.h. */
26378
8647bec6 26379/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26380#ifdef __cplusplus
26381extern "C"
26382#endif
8647bec6 26383/* We use char because int might match the return type of a gcc2
e6cc62c6 26384 builtin and then its argument prototype would still apply. */
e46d2a18 26385char SQLAllocEnv ();
e6cc62c6
VS
26386int
26387main ()
26388{
e46d2a18 26389SQLAllocEnv ();
e6cc62c6
VS
26390 ;
26391 return 0;
26392}
26393_ACEOF
26394rm -f conftest.$ac_objext conftest$ac_exeext
26395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26396 (eval $ac_link) 2>conftest.er1
e6cc62c6 26397 ac_status=$?
eea650d8
VS
26398 grep -v '^ *+' conftest.er1 >conftest.err
26399 rm -f conftest.er1
26400 cat conftest.err >&5
e6cc62c6
VS
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); } &&
eea650d8
VS
26403 { ac_try='test -z "$ac_c_werror_flag"
26404 || test ! -s conftest.err'
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
26410 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26413 ac_status=$?
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; }; then
e46d2a18 26416 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 26417else
e6cc62c6
VS
26418 echo "$as_me: failed program was:" >&5
26419sed 's/^/| /' conftest.$ac_ext >&5
26420
e46d2a18 26421ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 26422fi
eea650d8
VS
26423rm -f conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 26425LIBS=$ac_check_lib_save_LIBS
e6cc62c6 26426fi
e46d2a18
VS
26427echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26428echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26429if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26430 ODBC_LINK=" -lunixodbc"
26431else
26432
e46d2a18
VS
26433 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26434echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26435if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26437else
26438 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26439LIBS="-lodbc $LIBS"
bb41dcbe 26440cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
26441/* confdefs.h. */
26442_ACEOF
26443cat confdefs.h >>conftest.$ac_ext
26444cat >>conftest.$ac_ext <<_ACEOF
26445/* end confdefs.h. */
e6cc62c6 26446
bb41dcbe
VS
26447/* Override any gcc2 internal prototype to avoid an error. */
26448#ifdef __cplusplus
26449extern "C"
26450#endif
26451/* We use char because int might match the return type of a gcc2
26452 builtin and then its argument prototype would still apply. */
e46d2a18 26453char SQLAllocEnv ();
bb41dcbe
VS
26454int
26455main ()
26456{
e46d2a18 26457SQLAllocEnv ();
bb41dcbe
VS
26458 ;
26459 return 0;
26460}
26461_ACEOF
26462rm -f conftest.$ac_objext conftest$ac_exeext
26463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26464 (eval $ac_link) 2>conftest.er1
bb41dcbe 26465 ac_status=$?
eea650d8
VS
26466 grep -v '^ *+' conftest.er1 >conftest.err
26467 rm -f conftest.er1
26468 cat conftest.err >&5
bb41dcbe
VS
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); } &&
eea650d8
VS
26471 { ac_try='test -z "$ac_c_werror_flag"
26472 || test ! -s conftest.err'
26473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26474 (eval $ac_try) 2>&5
26475 ac_status=$?
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); }; } &&
26478 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; }; then
e46d2a18 26484 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 26485else
bb41dcbe
VS
26486 echo "$as_me: failed program was:" >&5
26487sed 's/^/| /' conftest.$ac_ext >&5
26488
e46d2a18 26489ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 26490fi
eea650d8
VS
26491rm -f conftest.err conftest.$ac_objext \
26492 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26493LIBS=$ac_check_lib_save_LIBS
26494fi
e46d2a18
VS
26495echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26496echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26497if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26498 ODBC_LINK=" -lodbc"
26499fi
26500
26501
26502fi
e6cc62c6 26503
e6cc62c6 26504
8647bec6 26505fi
e6cc62c6 26506
fd3d7534 26507 fi
bb41dcbe
VS
26508 if test "x$ODBC_LINK" = "x" ; then
26509 if test "$wxUSE_ODBC" = "sys" ; then
26510 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26511echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26512 { (exit 1); exit 1; }; }
26513 else
26514 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26515echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26516 wxUSE_ODBC=builtin
26517 fi
26518 else
26519 wxUSE_ODBC=sys
8647bec6 26520 fi
8647bec6 26521 fi
bb41dcbe
VS
26522 if test "$wxUSE_ODBC" != "no" ; then
26523 cat >>confdefs.h <<\_ACEOF
26524#define wxUSE_ODBC 1
26525_ACEOF
e6cc62c6 26526
0bdb08e7
VS
26527 if test "$wxUSE_ODBC" = "builtin" ; then
26528 cat >>confdefs.h <<\_ACEOF
26529#define wxUSE_BUILTIN_IODBC 1
26530_ACEOF
26531
26532 fi
bb41dcbe
VS
26533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26534
26535 WXODBCFLAG="-D_IODBC_"
26536 fi
6232543b 26537fi
21d1c967
GD
26538
26539if test "$wxUSE_REGEX" = "builtin" ; then
26540 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 26541fi
21d1c967
GD
26542if test "$wxUSE_ZLIB" = "builtin" ; then
26543 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
26544fi
26545
8284b0c5 26546
4d264332 26547USE_OPENGL=0
21d1c967 26548if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 26549 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
26550 OPENGL_LIBS="-framework OpenGL -framework AGL"
26551 elif test "$wxUSE_MSW" = 1; then
26552 OPENGL_LIBS="-lopengl32 -lglu32"
26553 else
01aa5863
VS
26554
26555
26556ac_find_includes=
26557for ac_dir in $SEARCH_INCLUDE /usr/include;
26558 do
26559 if test -f "$ac_dir/GL/gl.h"; then
26560 ac_find_includes=$ac_dir
26561 break
26562 fi
26563 done
26564
26565 if test "$ac_find_includes" != "" ; then
26566 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26567echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
26568
26569 if test "x$ac_find_includes" = "x/usr/include"; then
26570 ac_path_to_include=""
26571 else
26572 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26573 result=$?
26574 if test $result = 0; then
26575 ac_path_to_include=""
26576 else
26577 ac_path_to_include=" -I$ac_find_includes"
26578 fi
26579 fi
26580
26581 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
26582 fi
26583
e6cc62c6
VS
26584 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26585 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26586echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26587if test "${ac_cv_header_GL_gl_h+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589fi
26590echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26591echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26592else
26593 # Is the header compilable?
26594echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26595echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26596cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26597/* confdefs.h. */
26598_ACEOF
26599cat confdefs.h >>conftest.$ac_ext
26600cat >>conftest.$ac_ext <<_ACEOF
26601/* end confdefs.h. */
26602$ac_includes_default
21d1c967 26603#include <GL/gl.h>
e6cc62c6
VS
26604_ACEOF
26605rm -f conftest.$ac_objext
26606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 26607 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26608 ac_status=$?
eea650d8
VS
26609 grep -v '^ *+' conftest.er1 >conftest.err
26610 rm -f conftest.er1
26611 cat conftest.err >&5
e6cc62c6
VS
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); } &&
eea650d8
VS
26614 { ac_try='test -z "$ac_c_werror_flag"
26615 || test ! -s conftest.err'
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; } &&
26621 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); }; }; then
26627 ac_header_compiler=yes
26628else
26629 echo "$as_me: failed program was:" >&5
26630sed 's/^/| /' conftest.$ac_ext >&5
26631
26632ac_header_compiler=no
26633fi
eea650d8 26634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26636echo "${ECHO_T}$ac_header_compiler" >&6
26637
26638# Is the header present?
26639echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26640echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26641cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26642/* confdefs.h. */
26643_ACEOF
26644cat confdefs.h >>conftest.$ac_ext
26645cat >>conftest.$ac_ext <<_ACEOF
26646/* end confdefs.h. */
26647#include <GL/gl.h>
26648_ACEOF
26649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26651 ac_status=$?
26652 grep -v '^ *+' conftest.er1 >conftest.err
26653 rm -f conftest.er1
26654 cat conftest.err >&5
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } >/dev/null; then
26657 if test -s conftest.err; then
26658 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 26659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26660 else
26661 ac_cpp_err=
26662 fi
26663else
26664 ac_cpp_err=yes
26665fi
26666if test -z "$ac_cpp_err"; then
26667 ac_header_preproc=yes
26668else
26669 echo "$as_me: failed program was:" >&5
26670sed 's/^/| /' conftest.$ac_ext >&5
26671
26672 ac_header_preproc=no
26673fi
26674rm -f conftest.err conftest.$ac_ext
26675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26676echo "${ECHO_T}$ac_header_preproc" >&6
26677
26678# So? What about this header?
eea650d8
VS
26679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26680 yes:no: )
e6cc62c6
VS
26681 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26682echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
26683 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26684echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26685 ac_header_preproc=yes
e6cc62c6 26686 ;;
eea650d8 26687 no:yes:* )
e6cc62c6
VS
26688 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26689echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
eea650d8
VS
26690 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26691echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
26692 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26693echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26694 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
26695echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26696 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26697echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
26698 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26699echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26700 (
26701 cat <<\_ASBOX
eea650d8
VS
26702## ----------------------------------------- ##
26703## Report this to wx-dev@lists.wxwindows.org ##
26704## ----------------------------------------- ##
e6cc62c6
VS
26705_ASBOX
26706 ) |
26707 sed "s/^/$as_me: WARNING: /" >&2
26708 ;;
26709esac
26710echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26711echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26712if test "${ac_cv_header_GL_gl_h+set}" = set; then
26713 echo $ECHO_N "(cached) $ECHO_C" >&6
26714else
26715 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 26716fi
e6cc62c6
VS
26717echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26718echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26719
698dcdb6 26720fi
e6cc62c6
VS
26721if test $ac_cv_header_GL_gl_h = yes; then
26722
89e3b3e4
VZ
26723 found_gl=0
26724
e6cc62c6
VS
26725 echo "$as_me:$LINENO: checking for -lGL" >&5
26726echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26727
21d1c967 26728ac_find_libraries=
2b5f62a0 26729for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26730 do
26731 for ac_extension in a so sl dylib; do
26732 if test -f "$ac_dir/libGL.$ac_extension"; then
26733 ac_find_libraries=$ac_dir
26734 break 2
26735 fi
26736 done
26737 done
26738
26739 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26740
21d1c967
GD
26741 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26742 result=$?
26743 if test $result = 0; then
26744 ac_path_to_link=""
26745 else
26746 ac_path_to_link=" -L$ac_find_libraries"
26747 fi
26748
89e3b3e4
VZ
26749 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26750 LDFLAGS_GL="$ac_path_to_link"
21d1c967 26751 fi
89e3b3e4 26752
e6cc62c6 26753
89e3b3e4
VZ
26754ac_find_libraries=
26755for ac_dir in $SEARCH_LIB /usr/lib;
26756 do
26757 for ac_extension in a so sl dylib; do
26758 if test -f "$ac_dir/libGLU.$ac_extension"; then
26759 ac_find_libraries=$ac_dir
26760 break 2
26761 fi
26762 done
26763 done
26764
26765 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26766
89e3b3e4
VZ
26767 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26768 result=$?
26769 if test $result = 0; then
26770 ac_path_to_link=""
26771 else
26772 ac_path_to_link=" -L$ac_find_libraries"
26773 fi
26774
26775 if test "$ac_path_to_link" != " -L/usr/lib" -a \
26776 "$ac_path_to_link" != "$LDFLAGS_GL"; then
26777 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26778 fi
26779
26780 found_gl=1
26781 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
26782 echo "$as_me:$LINENO: result: yes" >&5
26783echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
26784 fi
26785 fi
26786
bb41dcbe 26787 if test "$found_gl" != 1; then
e6cc62c6
VS
26788 echo "$as_me:$LINENO: result: no" >&5
26789echo "${ECHO_T}no" >&6
26790 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26791echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26792
21d1c967 26793ac_find_libraries=
2b5f62a0 26794for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26795 do
26796 for ac_extension in a so sl dylib; do
26797 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26798 ac_find_libraries=$ac_dir
26799 break 2
26800 fi
26801 done
26802 done
26803
26804 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26805
21d1c967
GD
26806 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26807 result=$?
26808 if test $result = 0; then
26809 ac_path_to_link=""
26810 else
26811 ac_path_to_link=" -L$ac_find_libraries"
26812 fi
26813
26814 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26815 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
26816 echo "$as_me:$LINENO: result: yes" >&5
26817echo "${ECHO_T}yes" >&6
21d1c967 26818 else
e6cc62c6
VS
26819 echo "$as_me:$LINENO: result: no" >&5
26820echo "${ECHO_T}no" >&6
21d1c967
GD
26821 fi
26822 fi
e6cc62c6 26823
5c6fa7d2 26824fi
52127426 26825
8284b0c5 26826
e6cc62c6 26827
21d1c967 26828 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
26829 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26830echo "$as_me: error: OpenGL libraries not available" >&2;}
26831 { (exit 1); exit 1; }; }
21d1c967
GD
26832 fi
26833 fi
90dd450c 26834
21d1c967 26835 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 26836 USE_OPENGL=1
e6cc62c6 26837 cat >>confdefs.h <<\_ACEOF
21d1c967 26838#define wxUSE_OPENGL 1
e6cc62c6 26839_ACEOF
21d1c967 26840
e6cc62c6 26841 cat >>confdefs.h <<\_ACEOF
21d1c967 26842#define wxUSE_GLCANVAS 1
e6cc62c6 26843_ACEOF
21d1c967 26844
520755bb 26845 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 26846 fi
10f2d63a 26847fi
21d1c967
GD
26848
26849if test -z "$TOOLKIT_VPATH" ; then
26850 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 26851fi
21d1c967
GD
26852
26853if test -n "$TOOLKIT" ; then
26854 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26855fi
26856
fe0895cf 26857UNICODE=0
21d1c967
GD
26858lib_unicode_suffix=
26859if test "$wxUSE_UNICODE" = "yes"; then
26860 lib_unicode_suffix=u
fe0895cf 26861 UNICODE=1
90dd450c 26862fi
698dcdb6 26863
21d1c967 26864lib_debug_suffix=
6c67131a 26865DEBUG_FLAG=0
21d1c967
GD
26866if test "$wxUSE_DEBUG_FLAG" = "yes"; then
26867 lib_debug_suffix=d
6c67131a
VS
26868 DEBUG_FLAG=1
26869fi
26870
26871DEBUG_INFO=0
26872if test "$wxUSE_DEBUG_INFO" = "yes"; then
26873 DEBUG_INFO=1
21d1c967 26874fi
698dcdb6 26875
1cbb95a2 26876WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
26877
26878TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
26879TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
26880
26881if test "$cross_compiling" = "yes"; then
26882 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
26883 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 26884 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
26885fi
26886
26887WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
26888WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
26889WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
26890WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
26891
26892WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26893WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26894
26895WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26896WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26897WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26898WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26899
26900case "${host}" in
26901 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
26902 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26903 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
26904 ;;
26905
26906 *-*-darwin* )
e6cc62c6 26907
05159a27
GD
26908 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26909 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26910
26911 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26912 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26913 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26914 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26915
21d1c967 26916 if test "$wxUSE_MAC" = 1; then
f346733b
GD
26917 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
26918 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
26919 fi
26920 ;;
26921esac
26922
26923WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26924WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26925
26926WXCONFIG_LIBS="-l${WX_LIBRARY}"
26927WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26928
26929if test "$wxUSE_OPENGL" = "yes"; then
26930 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26931 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26932fi
26933
8284b0c5
MB
26934
26935
21d1c967
GD
26936if test "$wxUSE_SHARED" = "yes"; then
26937 case "${host}" in
26938 *-pc-os2_emx | *-pc-os2-emx | \
26939 *-pc-msdosdjgpp )
26940 wxUSE_SHARED=no
e6cc62c6
VS
26941 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26942echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
26943 ;;
26944 esac
26945fi
26946
fe0895cf 26947SHARED=0
2b5f62a0 26948if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 26949 SHARED=1
2b5f62a0 26950
e6cc62c6 26951
2b5f62a0
VZ
26952 found_versioning=no
26953
e6cc62c6 26954
2b5f62a0 26955 if test $found_versioning = no ; then
e6cc62c6
VS
26956 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26957echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26958if test "${wx_cv_version_script+set}" = set; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 26960else
e6cc62c6 26961
2b5f62a0
VZ
26962 echo "VER_1 { *; };" >conftest.sym
26963 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 26964
2b5f62a0
VZ
26965 if { ac_try='
26966 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
26967 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; } ; then
2b5f62a0
VZ
26973 if test -s conftest.stderr ; then
26974 wx_cv_version_script=no
26975 else
26976 wx_cv_version_script=yes
26977 fi
26978 else
26979 wx_cv_version_script=no
26980 fi
26981 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 26982
e6cc62c6
VS
26983fi
26984echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26985echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 26986 if test $wx_cv_version_script = yes ; then
e6cc62c6 26987 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
26988 fi
26989 fi
21d1c967 26990
21d1c967 26991
21d1c967 26992 case "${host}" in
fe0895cf 26993 *-*-linux* | *-*-gnu* )
e6cc62c6 26994 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 26995 ;;
21d1c967
GD
26996
26997 *-*-solaris2* )
26998 if test "$GCC" = yes ; then
26999 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27000
27001 saveLdflags="$LDFLAGS"
27002 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27003 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27004echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27005 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27006/* confdefs.h. */
27007_ACEOF
27008cat confdefs.h >>conftest.$ac_ext
27009cat >>conftest.$ac_ext <<_ACEOF
27010/* end confdefs.h. */
27011
27012int
27013main ()
27014{
fe0895cf 27015
e6cc62c6
VS
27016 ;
27017 return 0;
27018}
27019_ACEOF
27020rm -f conftest.$ac_objext conftest$ac_exeext
27021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 27022 (eval $ac_link) 2>conftest.er1
e6cc62c6 27023 ac_status=$?
eea650d8
VS
27024 grep -v '^ *+' conftest.er1 >conftest.err
27025 rm -f conftest.er1
27026 cat conftest.err >&5
e6cc62c6
VS
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
eea650d8
VS
27029 { ac_try='test -z "$ac_c_werror_flag"
27030 || test ! -s conftest.err'
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27033 ac_status=$?
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; } &&
27036 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27038 (eval $ac_try) 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
27042
27043 echo "$as_me:$LINENO: result: yes" >&5
27044echo "${ECHO_T}yes" >&6
27045 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27046
27047else
27048 echo "$as_me: failed program was:" >&5
27049sed 's/^/| /' conftest.$ac_ext >&5
27050
27051
27052 echo "$as_me:$LINENO: result: no" >&5
27053echo "${ECHO_T}no" >&6
27054 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27055echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27056 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27057 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27058/* confdefs.h. */
27059_ACEOF
27060cat confdefs.h >>conftest.$ac_ext
27061cat >>conftest.$ac_ext <<_ACEOF
27062/* end confdefs.h. */
27063
27064int
27065main ()
27066{
27067
27068 ;
27069 return 0;
27070}
27071_ACEOF
27072rm -f conftest.$ac_objext conftest$ac_exeext
27073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 27074 (eval $ac_link) 2>conftest.er1
e6cc62c6 27075 ac_status=$?
eea650d8
VS
27076 grep -v '^ *+' conftest.er1 >conftest.err
27077 rm -f conftest.er1
27078 cat conftest.err >&5
e6cc62c6
VS
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); } &&
eea650d8
VS
27081 { ac_try='test -z "$ac_c_werror_flag"
27082 || test ! -s conftest.err'
27083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084 (eval $ac_try) 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; } &&
27088 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090 (eval $ac_try) 2>&5
27091 ac_status=$?
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); }; }; then
27094
27095 echo "$as_me:$LINENO: result: yes" >&5
27096echo "${ECHO_T}yes" >&6
27097 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27098else
27099 echo "$as_me: failed program was:" >&5
27100sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27101
fe0895cf 27102
e6cc62c6
VS
27103 echo "$as_me:$LINENO: result: no" >&5
27104echo "${ECHO_T}no" >&6
27105
fe0895cf 27106fi
eea650d8
VS
27107rm -f conftest.err conftest.$ac_objext \
27108 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27109
27110fi
eea650d8
VS
27111rm -f conftest.err conftest.$ac_objext \
27112 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27113 LDFLAGS="$saveLdflags"
21d1c967
GD
27114 else
27115 SHARED_LD="${CXX} -G -o"
27116 PIC_FLAG="-KPIC"
e6cc62c6 27117 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27118 fi
27119 ;;
0f1bc9c2
VS
27120
27121 powerpc-*-darwin* )
ef0add05
VS
27122 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27123 cat <<EOF >change-install-names
27124#!/bin/sh
27125libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27126inst_cmd="install_name_tool "
27127for i in \${libnames} ; do
27128 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27129done
27130\${inst_cmd} \${3}
27131EOF
27132 chmod +x change-install-names
0f1bc9c2
VS
27133 ;;
27134
21d1c967
GD
27135 esac
27136
27137 if test "x$WX_TARGET_LIBRARY" = "x"; then
27138 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27139 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27140 fi
27141
27142 WX_TARGET_LIBRARY_TYPE="so"
27143 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27144fi
10f2d63a 27145
21d1c967
GD
27146if test "$wxUSE_SHARED" = "no"; then
27147
27148 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27149 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27150 fi
27151
ac0c4cc3 27152 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27153 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27154 fi
27155
27156 if test "$wxUSE_OPENGL" = "yes"; then
27157 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27158 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27159 else
27160 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27161 fi
27162
27163 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27164 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27165
27166 WX_TARGET_LIBRARY_TYPE="a"
27167 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27168
27169 STATIC_FLAG="yes"
27170else
27171 STATIC_FLAG="no"
90dd450c 27172fi
1e487827 27173
93fac604
VZ
27174MACRESCOMP="@#"
27175MACSETFILE="@#"
36825681 27176MACRESWXCONFIG="#"
21d1c967 27177if test "$wxUSE_MAC" = 1; then
e6cc62c6 27178 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27179 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27180 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27181 # Extract the first word of "Rez", so it can be a program name with args.
27182set dummy Rez; ac_word=$2
e6cc62c6
VS
27183echo "$as_me:$LINENO: checking for $ac_word" >&5
27184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27185if test "${ac_cv_prog_RESCOMP+set}" = set; then
27186 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27187else
21d1c967
GD
27188 if test -n "$RESCOMP"; then
27189 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27190else
e6cc62c6
VS
27191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27192for as_dir in $PATH
27193do
27194 IFS=$as_save_IFS
27195 test -z "$as_dir" && as_dir=.
27196 for ac_exec_ext in '' $ac_executable_extensions; do
27197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27198 ac_cv_prog_RESCOMP="Rez"
27199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27200 break 2
27201 fi
27202done
27203done
27204
21d1c967 27205 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27206fi
b93d0d08 27207fi
e6cc62c6 27208RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27209if test -n "$RESCOMP"; then
e6cc62c6
VS
27210 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27211echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27212else
e6cc62c6
VS
27213 echo "$as_me:$LINENO: result: no" >&5
27214echo "${ECHO_T}no" >&6
90dd450c 27215fi
b93d0d08 27216
21d1c967
GD
27217 # Extract the first word of "DeRez", so it can be a program name with args.
27218set dummy DeRez; ac_word=$2
e6cc62c6
VS
27219echo "$as_me:$LINENO: checking for $ac_word" >&5
27220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27221if test "${ac_cv_prog_DEREZ+set}" = set; then
27222 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27223else
21d1c967
GD
27224 if test -n "$DEREZ"; then
27225 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27226else
e6cc62c6
VS
27227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27228for as_dir in $PATH
27229do
27230 IFS=$as_save_IFS
27231 test -z "$as_dir" && as_dir=.
27232 for ac_exec_ext in '' $ac_executable_extensions; do
27233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27234 ac_cv_prog_DEREZ="DeRez"
27235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27236 break 2
27237 fi
27238done
27239done
27240
21d1c967 27241 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27242fi
90dd450c 27243fi
e6cc62c6 27244DEREZ=$ac_cv_prog_DEREZ
21d1c967 27245if test -n "$DEREZ"; then
e6cc62c6
VS
27246 echo "$as_me:$LINENO: result: $DEREZ" >&5
27247echo "${ECHO_T}$DEREZ" >&6
90dd450c 27248else
e6cc62c6
VS
27249 echo "$as_me:$LINENO: result: no" >&5
27250echo "${ECHO_T}no" >&6
3a922bb4 27251fi
698dcdb6 27252
36825681
GD
27253 # Extract the first word of "SetFile", so it can be a program name with args.
27254set dummy SetFile; ac_word=$2
e6cc62c6
VS
27255echo "$as_me:$LINENO: checking for $ac_word" >&5
27256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27257if test "${ac_cv_prog_SETFILE+set}" = set; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27259else
27260 if test -n "$SETFILE"; then
27261 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27262else
e6cc62c6
VS
27263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27264for as_dir in $PATH
27265do
27266 IFS=$as_save_IFS
27267 test -z "$as_dir" && as_dir=.
27268 for ac_exec_ext in '' $ac_executable_extensions; do
27269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27270 ac_cv_prog_SETFILE="SetFile"
27271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27272 break 2
27273 fi
27274done
27275done
27276
36825681
GD
27277 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27278fi
27279fi
e6cc62c6 27280SETFILE=$ac_cv_prog_SETFILE
36825681 27281if test -n "$SETFILE"; then
e6cc62c6
VS
27282 echo "$as_me:$LINENO: result: $SETFILE" >&5
27283echo "${ECHO_T}$SETFILE" >&6
36825681 27284else
e6cc62c6
VS
27285 echo "$as_me:$LINENO: result: no" >&5
27286echo "${ECHO_T}no" >&6
36825681
GD
27287fi
27288
21d1c967 27289 MACOSX_BUNDLE="bundle"
36825681
GD
27290 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27291 MACSETFILE="\$(SETFILE)"
9711d31e 27292 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
27293elif test "$wxUSE_COCOA" = 1; then
27294 # Extract the first word of "Rez", so it can be a program name with args.
27295set dummy Rez; ac_word=$2
e6cc62c6
VS
27296echo "$as_me:$LINENO: checking for $ac_word" >&5
27297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27298if test "${ac_cv_prog_RESCOMP+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27300else
27301 if test -n "$RESCOMP"; then
27302 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27303else
e6cc62c6
VS
27304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27305for as_dir in $PATH
27306do
27307 IFS=$as_save_IFS
27308 test -z "$as_dir" && as_dir=.
27309 for ac_exec_ext in '' $ac_executable_extensions; do
27310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27311 ac_cv_prog_RESCOMP="Rez"
27312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27313 break 2
27314 fi
27315done
27316done
27317
64440d77
DE
27318 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27319fi
27320fi
e6cc62c6 27321RESCOMP=$ac_cv_prog_RESCOMP
64440d77 27322if test -n "$RESCOMP"; then
e6cc62c6
VS
27323 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27324echo "${ECHO_T}$RESCOMP" >&6
64440d77 27325else
e6cc62c6
VS
27326 echo "$as_me:$LINENO: result: no" >&5
27327echo "${ECHO_T}no" >&6
64440d77
DE
27328fi
27329
27330 # Extract the first word of "DeRez", so it can be a program name with args.
27331set dummy DeRez; ac_word=$2
e6cc62c6
VS
27332echo "$as_me:$LINENO: checking for $ac_word" >&5
27333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27334if test "${ac_cv_prog_DEREZ+set}" = set; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27336else
27337 if test -n "$DEREZ"; then
27338 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27339else
e6cc62c6
VS
27340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27341for as_dir in $PATH
27342do
27343 IFS=$as_save_IFS
27344 test -z "$as_dir" && as_dir=.
27345 for ac_exec_ext in '' $ac_executable_extensions; do
27346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27347 ac_cv_prog_DEREZ="DeRez"
27348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27349 break 2
27350 fi
27351done
27352done
27353
64440d77
DE
27354 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27355fi
27356fi
e6cc62c6 27357DEREZ=$ac_cv_prog_DEREZ
64440d77 27358if test -n "$DEREZ"; then
e6cc62c6
VS
27359 echo "$as_me:$LINENO: result: $DEREZ" >&5
27360echo "${ECHO_T}$DEREZ" >&6
64440d77 27361else
e6cc62c6
VS
27362 echo "$as_me:$LINENO: result: no" >&5
27363echo "${ECHO_T}no" >&6
64440d77
DE
27364fi
27365
27366 # Extract the first word of "SetFile", so it can be a program name with args.
27367set dummy SetFile; ac_word=$2
e6cc62c6
VS
27368echo "$as_me:$LINENO: checking for $ac_word" >&5
27369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27370if test "${ac_cv_prog_SETFILE+set}" = set; then
27371 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27372else
27373 if test -n "$SETFILE"; then
27374 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27375else
e6cc62c6
VS
27376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377for as_dir in $PATH
27378do
27379 IFS=$as_save_IFS
27380 test -z "$as_dir" && as_dir=.
27381 for ac_exec_ext in '' $ac_executable_extensions; do
27382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27383 ac_cv_prog_SETFILE="SetFile"
27384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27385 break 2
27386 fi
27387done
27388done
27389
64440d77
DE
27390 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27391fi
27392fi
e6cc62c6 27393SETFILE=$ac_cv_prog_SETFILE
64440d77 27394if test -n "$SETFILE"; then
e6cc62c6
VS
27395 echo "$as_me:$LINENO: result: $SETFILE" >&5
27396echo "${ECHO_T}$SETFILE" >&6
64440d77 27397else
e6cc62c6
VS
27398 echo "$as_me:$LINENO: result: no" >&5
27399echo "${ECHO_T}no" >&6
64440d77
DE
27400fi
27401
27402 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27403 MACSETFILE="\$(SETFILE)"
9711d31e 27404 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
27405else
27406 if test "$wxUSE_PM" = 1; then
36825681 27407 MACRESCOMP="emxbind -ep"
90dd450c 27408 fi
4f14bcd8 27409fi
10f2d63a 27410
8284b0c5 27411
e6cc62c6
VS
27412echo "$as_me:$LINENO: checking for mode_t" >&5
27413echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27414if test "${ac_cv_type_mode_t+set}" = set; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 27416else
e6cc62c6 27417 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27418/* confdefs.h. */
27419_ACEOF
27420cat confdefs.h >>conftest.$ac_ext
27421cat >>conftest.$ac_ext <<_ACEOF
27422/* end confdefs.h. */
27423$ac_includes_default
27424int
27425main ()
27426{
27427if ((mode_t *) 0)
27428 return 0;
27429if (sizeof (mode_t))
27430 return 0;
27431 ;
27432 return 0;
27433}
27434_ACEOF
27435rm -f conftest.$ac_objext
27436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27437 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27438 ac_status=$?
eea650d8
VS
27439 grep -v '^ *+' conftest.er1 >conftest.err
27440 rm -f conftest.er1
27441 cat conftest.err >&5
e6cc62c6
VS
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } &&
eea650d8
VS
27444 { ac_try='test -z "$ac_c_werror_flag"
27445 || test ! -s conftest.err'
27446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447 (eval $ac_try) 2>&5
27448 ac_status=$?
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; } &&
27451 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
27457 ac_cv_type_mode_t=yes
a0b9e27f 27458else
e6cc62c6
VS
27459 echo "$as_me: failed program was:" >&5
27460sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27461
e6cc62c6 27462ac_cv_type_mode_t=no
a0b9e27f 27463fi
eea650d8 27464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 27465fi
e6cc62c6
VS
27466echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27467echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27468if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
27469 :
27470else
a0b9e27f 27471
e6cc62c6
VS
27472cat >>confdefs.h <<_ACEOF
27473#define mode_t int
27474_ACEOF
8284b0c5
MB
27475
27476fi
27477
e6cc62c6
VS
27478echo "$as_me:$LINENO: checking for off_t" >&5
27479echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27480if test "${ac_cv_type_off_t+set}" = set; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27482else
e6cc62c6 27483 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27484/* confdefs.h. */
27485_ACEOF
27486cat confdefs.h >>conftest.$ac_ext
27487cat >>conftest.$ac_ext <<_ACEOF
27488/* end confdefs.h. */
27489$ac_includes_default
27490int
27491main ()
27492{
27493if ((off_t *) 0)
27494 return 0;
27495if (sizeof (off_t))
27496 return 0;
27497 ;
27498 return 0;
27499}
27500_ACEOF
27501rm -f conftest.$ac_objext
27502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27503 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27504 ac_status=$?
eea650d8
VS
27505 grep -v '^ *+' conftest.er1 >conftest.err
27506 rm -f conftest.er1
27507 cat conftest.err >&5
e6cc62c6
VS
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); } &&
eea650d8
VS
27510 { ac_try='test -z "$ac_c_werror_flag"
27511 || test ! -s conftest.err'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27514 ac_status=$?
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; } &&
27517 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; }; then
27523 ac_cv_type_off_t=yes
5c6fa7d2 27524else
e6cc62c6
VS
27525 echo "$as_me: failed program was:" >&5
27526sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27527
e6cc62c6 27528ac_cv_type_off_t=no
8284b0c5 27529fi
eea650d8 27530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 27531fi
e6cc62c6
VS
27532echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27533echo "${ECHO_T}$ac_cv_type_off_t" >&6
27534if test $ac_cv_type_off_t = yes; then
27535 :
247f5006
VZ
27536else
27537
e6cc62c6 27538cat >>confdefs.h <<_ACEOF
90dd450c 27539#define off_t long
e6cc62c6 27540_ACEOF
10f2d63a 27541
90dd450c 27542fi
10f2d63a 27543
e6cc62c6
VS
27544echo "$as_me:$LINENO: checking for pid_t" >&5
27545echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27546if test "${ac_cv_type_pid_t+set}" = set; then
27547 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27548else
e6cc62c6 27549 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27550/* confdefs.h. */
27551_ACEOF
27552cat confdefs.h >>conftest.$ac_ext
27553cat >>conftest.$ac_ext <<_ACEOF
27554/* end confdefs.h. */
27555$ac_includes_default
27556int
27557main ()
27558{
27559if ((pid_t *) 0)
27560 return 0;
27561if (sizeof (pid_t))
27562 return 0;
27563 ;
27564 return 0;
27565}
27566_ACEOF
27567rm -f conftest.$ac_objext
27568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27569 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27570 ac_status=$?
eea650d8
VS
27571 grep -v '^ *+' conftest.er1 >conftest.err
27572 rm -f conftest.er1
27573 cat conftest.err >&5
e6cc62c6
VS
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); } &&
eea650d8
VS
27576 { ac_try='test -z "$ac_c_werror_flag"
27577 || test ! -s conftest.err'
27578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27580 ac_status=$?
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; } &&
27583 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
90dd450c 27589 ac_cv_type_pid_t=yes
698dcdb6 27590else
e6cc62c6
VS
27591 echo "$as_me: failed program was:" >&5
27592sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27593
e6cc62c6
VS
27594ac_cv_type_pid_t=no
27595fi
eea650d8 27596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27597fi
e6cc62c6
VS
27598echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27599echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27600if test $ac_cv_type_pid_t = yes; then
27601 :
27602else
27603
27604cat >>confdefs.h <<_ACEOF
90dd450c 27605#define pid_t int
e6cc62c6 27606_ACEOF
10f2d63a 27607
7b4a847f
RR
27608fi
27609
e6cc62c6
VS
27610echo "$as_me:$LINENO: checking for size_t" >&5
27611echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27612if test "${ac_cv_type_size_t+set}" = set; then
27613 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 27614else
e6cc62c6 27615 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27616/* confdefs.h. */
27617_ACEOF
27618cat confdefs.h >>conftest.$ac_ext
27619cat >>conftest.$ac_ext <<_ACEOF
27620/* end confdefs.h. */
27621$ac_includes_default
27622int
27623main ()
27624{
27625if ((size_t *) 0)
27626 return 0;
27627if (sizeof (size_t))
27628 return 0;
27629 ;
27630 return 0;
27631}
27632_ACEOF
27633rm -f conftest.$ac_objext
27634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27635 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27636 ac_status=$?
eea650d8
VS
27637 grep -v '^ *+' conftest.er1 >conftest.err
27638 rm -f conftest.er1
27639 cat conftest.err >&5
e6cc62c6
VS
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); } &&
eea650d8
VS
27642 { ac_try='test -z "$ac_c_werror_flag"
27643 || test ! -s conftest.err'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; } &&
27649 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651 (eval $ac_try) 2>&5
27652 ac_status=$?
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); }; }; then
90dd450c 27655 ac_cv_type_size_t=yes
18dbb1f6 27656else
e6cc62c6
VS
27657 echo "$as_me: failed program was:" >&5
27658sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27659
e6cc62c6 27660ac_cv_type_size_t=no
a0b9e27f 27661fi
eea650d8 27662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27663fi
27664echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27665echo "${ECHO_T}$ac_cv_type_size_t" >&6
27666if test $ac_cv_type_size_t = yes; then
27667 :
27668else
27669
27670cat >>confdefs.h <<_ACEOF
90dd450c 27671#define size_t unsigned
e6cc62c6 27672_ACEOF
90dd450c
VZ
27673
27674fi
27675
e6cc62c6
VS
27676echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27677echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27678if test "${ac_cv_type_uid_t+set}" = set; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 27680else
e6cc62c6 27681 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27682/* confdefs.h. */
27683_ACEOF
27684cat confdefs.h >>conftest.$ac_ext
27685cat >>conftest.$ac_ext <<_ACEOF
27686/* end confdefs.h. */
90dd450c 27687#include <sys/types.h>
e6cc62c6
VS
27688
27689_ACEOF
90dd450c 27690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 27691 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 27692 ac_cv_type_uid_t=yes
b3e8d00a 27693else
90dd450c 27694 ac_cv_type_uid_t=no
b3e8d00a 27695fi
90dd450c 27696rm -f conftest*
b3e8d00a 27697
4f14bcd8 27698fi
e6cc62c6
VS
27699echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27700echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 27701if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
27702
27703cat >>confdefs.h <<\_ACEOF
90dd450c 27704#define uid_t int
e6cc62c6 27705_ACEOF
247f5006 27706
e6cc62c6
VS
27707
27708cat >>confdefs.h <<\_ACEOF
90dd450c 27709#define gid_t int
e6cc62c6 27710_ACEOF
4f14bcd8 27711
b3e8d00a 27712fi
b3e8d00a 27713
8284b0c5
MB
27714
27715
e6cc62c6
VS
27716
27717ac_ext=cc
4f14bcd8 27718ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27722
27723echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27724echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27725if test "${wx_cv_size_t_is_uint+set}" = set; then
27726 echo $ECHO_N "(cached) $ECHO_C" >&6
27727else
27728
27729 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27730/* confdefs.h. */
27731_ACEOF
27732cat confdefs.h >>conftest.$ac_ext
27733cat >>conftest.$ac_ext <<_ACEOF
27734/* end confdefs.h. */
90dd450c 27735#include <stddef.h>
e6cc62c6
VS
27736int
27737main ()
27738{
90dd450c
VZ
27739
27740 return 0; }
27741
27742 struct Foo { void foo(size_t); void foo(unsigned int); };
27743
27744 int bar() {
e6cc62c6
VS
27745
27746 ;
27747 return 0;
27748}
27749_ACEOF
27750rm -f conftest.$ac_objext
27751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27752 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27753 ac_status=$?
eea650d8
VS
27754 grep -v '^ *+' conftest.er1 >conftest.err
27755 rm -f conftest.er1
27756 cat conftest.err >&5
e6cc62c6
VS
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); } &&
eea650d8
VS
27759 { ac_try='test -z "$ac_cxx_werror_flag"
27760 || test ! -s conftest.err'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768 (eval $ac_try) 2>&5
27769 ac_status=$?
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; }; then
90dd450c 27772 wx_cv_size_t_is_uint=no
698dcdb6 27773else
e6cc62c6
VS
27774 echo "$as_me: failed program was:" >&5
27775sed 's/^/| /' conftest.$ac_ext >&5
27776
27777wx_cv_size_t_is_uint=yes
8284b0c5 27778
247f5006 27779fi
eea650d8 27780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 27781
a0b9e27f 27782
e6cc62c6
VS
27783fi
27784echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27785echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 27786
90dd450c 27787if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 27788 cat >>confdefs.h <<\_ACEOF
90dd450c 27789#define wxSIZE_T_IS_UINT 1
e6cc62c6 27790_ACEOF
698dcdb6 27791
90dd450c 27792else
e6cc62c6
VS
27793 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27794echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27795if test "${wx_cv_size_t_is_ulong+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 27797else
e6cc62c6 27798 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27799/* confdefs.h. */
27800_ACEOF
27801cat confdefs.h >>conftest.$ac_ext
27802cat >>conftest.$ac_ext <<_ACEOF
27803/* end confdefs.h. */
90dd450c 27804#include <stddef.h>
e6cc62c6
VS
27805int
27806main ()
27807{
90dd450c
VZ
27808
27809 return 0; }
27810
27811 struct Foo { void foo(size_t); void foo(unsigned long); };
27812
27813 int bar() {
e6cc62c6
VS
27814
27815 ;
27816 return 0;
27817}
27818_ACEOF
27819rm -f conftest.$ac_objext
27820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27821 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27822 ac_status=$?
eea650d8
VS
27823 grep -v '^ *+' conftest.er1 >conftest.err
27824 rm -f conftest.er1
27825 cat conftest.err >&5
e6cc62c6
VS
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } &&
eea650d8
VS
27828 { ac_try='test -z "$ac_cxx_werror_flag"
27829 || test ! -s conftest.err'
27830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831 (eval $ac_try) 2>&5
27832 ac_status=$?
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); }; } &&
27835 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
90dd450c 27841 wx_cv_size_t_is_ulong=no
698dcdb6 27842else
e6cc62c6
VS
27843 echo "$as_me: failed program was:" >&5
27844sed 's/^/| /' conftest.$ac_ext >&5
27845
27846wx_cv_size_t_is_ulong=yes
27847
247f5006 27848fi
eea650d8 27849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27850
e6cc62c6
VS
27851fi
27852echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27853echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 27854
90dd450c 27855 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 27856 cat >>confdefs.h <<\_ACEOF
90dd450c 27857#define wxSIZE_T_IS_ULONG 1
e6cc62c6 27858_ACEOF
4f14bcd8
GD
27859
27860 fi
90dd450c 27861fi
1e487827 27862
90dd450c 27863ac_ext=c
4f14bcd8 27864ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27867ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 27868
5c6fa7d2 27869
8284b0c5 27870
e6cc62c6
VS
27871echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
27872echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
27873if test "${wx_cv_struct_pw_gecos+set}" = set; then
27874 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27875else
e6cc62c6
VS
27876
27877 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27878/* confdefs.h. */
27879_ACEOF
27880cat confdefs.h >>conftest.$ac_ext
27881cat >>conftest.$ac_ext <<_ACEOF
27882/* end confdefs.h. */
90dd450c 27883#include <pwd.h>
e6cc62c6
VS
27884int
27885main ()
27886{
f6bcfd97 27887
90dd450c
VZ
27888 char *p;
27889 struct passwd *pw;
27890 p = pw->pw_gecos;
e6cc62c6
VS
27891
27892 ;
27893 return 0;
27894}
27895_ACEOF
27896rm -f conftest.$ac_objext
27897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27898 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27899 ac_status=$?
eea650d8
VS
27900 grep -v '^ *+' conftest.er1 >conftest.err
27901 rm -f conftest.er1
27902 cat conftest.err >&5
e6cc62c6
VS
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } &&
eea650d8
VS
27905 { ac_try='test -z "$ac_c_werror_flag"
27906 || test ! -s conftest.err'
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; } &&
27912 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; }; then
27918
90dd450c 27919 wx_cv_struct_pw_gecos=yes
e6cc62c6 27920
10f2d63a 27921else
e6cc62c6
VS
27922 echo "$as_me: failed program was:" >&5
27923sed 's/^/| /' conftest.$ac_ext >&5
27924
27925
90dd450c 27926 wx_cv_struct_pw_gecos=no
e6cc62c6 27927
247f5006
VZ
27928
27929fi
eea650d8 27930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27931
e6cc62c6
VS
27932
27933fi
27934echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
27935echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 27936
90dd450c 27937if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 27938 cat >>confdefs.h <<\_ACEOF
90dd450c 27939#define HAVE_PW_GECOS 1
e6cc62c6 27940_ACEOF
c521c494 27941
90dd450c 27942fi
4f14bcd8 27943
8284b0c5 27944
d29b553b 27945if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 27946 cat >>confdefs.h <<\_ACEOF
d74f4b5a 27947#define wxUSE_WCHAR_T 1
e6cc62c6 27948_ACEOF
d74f4b5a 27949
8284b0c5 27950
d74f4b5a
VZ
27951 WCSLEN_FOUND=0
27952 WCHAR_LINK=
e6cc62c6
VS
27953
27954for ac_func in wcslen
7a30264c 27955do
e6cc62c6
VS
27956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27957echo "$as_me:$LINENO: checking for $ac_func" >&5
27958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27959if eval "test \"\${$as_ac_var+set}\" = set"; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
27961else
27962 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27963/* confdefs.h. */
27964_ACEOF
27965cat confdefs.h >>conftest.$ac_ext
27966cat >>conftest.$ac_ext <<_ACEOF
27967/* end confdefs.h. */
eea650d8
VS
27968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27970#define $ac_func innocuous_$ac_func
27971
7a30264c 27972/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27973 which can conflict with char $ac_func (); below.
27974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27975 <limits.h> exists even on freestanding compilers. */
eea650d8 27976
e6cc62c6
VS
27977#ifdef __STDC__
27978# include <limits.h>
27979#else
27980# include <assert.h>
27981#endif
eea650d8
VS
27982
27983#undef $ac_func
27984
4f14bcd8 27985/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27986#ifdef __cplusplus
27987extern "C"
27988{
27989#endif
4f14bcd8 27990/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27991 builtin and then its argument prototype would still apply. */
27992char $ac_func ();
7a30264c
VZ
27993/* The GNU C library defines this for functions which it implements
27994 to always fail with ENOSYS. Some functions are actually named
27995 something starting with __ and the normal name is an alias. */
27996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27997choke me
27998#else
e6cc62c6
VS
27999char (*f) () = $ac_func;
28000#endif
28001#ifdef __cplusplus
28002}
7a30264c
VZ
28003#endif
28004
e6cc62c6
VS
28005int
28006main ()
28007{
28008return f != $ac_func;
28009 ;
28010 return 0;
28011}
28012_ACEOF
28013rm -f conftest.$ac_objext conftest$ac_exeext
28014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28015 (eval $ac_link) 2>conftest.er1
e6cc62c6 28016 ac_status=$?
eea650d8
VS
28017 grep -v '^ *+' conftest.er1 >conftest.err
28018 rm -f conftest.er1
28019 cat conftest.err >&5
e6cc62c6
VS
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); } &&
eea650d8
VS
28022 { ac_try='test -z "$ac_c_werror_flag"
28023 || test ! -s conftest.err'
28024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025 (eval $ac_try) 2>&5
28026 ac_status=$?
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); }; } &&
28029 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031 (eval $ac_try) 2>&5
28032 ac_status=$?
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; }; then
28035 eval "$as_ac_var=yes"
28036else
28037 echo "$as_me: failed program was:" >&5
28038sed 's/^/| /' conftest.$ac_ext >&5
28039
28040eval "$as_ac_var=no"
28041fi
eea650d8
VS
28042rm -f conftest.err conftest.$ac_objext \
28043 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28044fi
28045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28047if test `eval echo '${'$as_ac_var'}'` = yes; then
28048 cat >>confdefs.h <<_ACEOF
28049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28050_ACEOF
d74f4b5a 28051 WCSLEN_FOUND=1
7a30264c
VZ
28052fi
28053done
9d8deca0 28054
8284b0c5 28055
d74f4b5a 28056 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28057 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28058 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28059echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28060if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28061 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28062else
e6cc62c6 28063 ac_check_lib_save_LIBS=$LIBS
7a30264c 28064LIBS="-lmsvcrt $LIBS"
e6cc62c6 28065cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28066/* confdefs.h. */
28067_ACEOF
28068cat confdefs.h >>conftest.$ac_ext
28069cat >>conftest.$ac_ext <<_ACEOF
28070/* end confdefs.h. */
28071
4f14bcd8 28072/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28073#ifdef __cplusplus
28074extern "C"
28075#endif
4f14bcd8 28076/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28077 builtin and then its argument prototype would still apply. */
28078char wcslen ();
28079int
28080main ()
28081{
28082wcslen ();
28083 ;
28084 return 0;
28085}
28086_ACEOF
28087rm -f conftest.$ac_objext conftest$ac_exeext
28088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28089 (eval $ac_link) 2>conftest.er1
e6cc62c6 28090 ac_status=$?
eea650d8
VS
28091 grep -v '^ *+' conftest.er1 >conftest.err
28092 rm -f conftest.er1
28093 cat conftest.err >&5
e6cc62c6
VS
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
eea650d8
VS
28096 { ac_try='test -z "$ac_c_werror_flag"
28097 || test ! -s conftest.err'
28098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28099 (eval $ac_try) 2>&5
28100 ac_status=$?
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; } &&
28103 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105 (eval $ac_try) 2>&5
28106 ac_status=$?
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); }; }; then
28109 ac_cv_lib_msvcrt_wcslen=yes
28110else
28111 echo "$as_me: failed program was:" >&5
28112sed 's/^/| /' conftest.$ac_ext >&5
28113
28114ac_cv_lib_msvcrt_wcslen=no
28115fi
eea650d8
VS
28116rm -f conftest.err conftest.$ac_objext \
28117 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28118LIBS=$ac_check_lib_save_LIBS
28119fi
28120echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28121echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28122if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28123 WCHAR_OK=1
d29b553b 28124fi
698dcdb6 28125
7a30264c 28126 else
e6cc62c6
VS
28127 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28128echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28129if test "${ac_cv_lib_w_wcslen+set}" = set; then
28130 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28131else
e6cc62c6 28132 ac_check_lib_save_LIBS=$LIBS
7a30264c 28133LIBS="-lw $LIBS"
e6cc62c6 28134cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28135/* confdefs.h. */
28136_ACEOF
28137cat confdefs.h >>conftest.$ac_ext
28138cat >>conftest.$ac_ext <<_ACEOF
28139/* end confdefs.h. */
28140
4f14bcd8 28141/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28142#ifdef __cplusplus
28143extern "C"
28144#endif
4f14bcd8 28145/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28146 builtin and then its argument prototype would still apply. */
28147char wcslen ();
28148int
28149main ()
28150{
28151wcslen ();
28152 ;
28153 return 0;
28154}
28155_ACEOF
28156rm -f conftest.$ac_objext conftest$ac_exeext
28157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28158 (eval $ac_link) 2>conftest.er1
e6cc62c6 28159 ac_status=$?
eea650d8
VS
28160 grep -v '^ *+' conftest.er1 >conftest.err
28161 rm -f conftest.er1
28162 cat conftest.err >&5
e6cc62c6
VS
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } &&
eea650d8
VS
28165 { ac_try='test -z "$ac_c_werror_flag"
28166 || test ! -s conftest.err'
28167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28168 (eval $ac_try) 2>&5
28169 ac_status=$?
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); }; } &&
28172 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174 (eval $ac_try) 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; }; then
28178 ac_cv_lib_w_wcslen=yes
28179else
28180 echo "$as_me: failed program was:" >&5
28181sed 's/^/| /' conftest.$ac_ext >&5
28182
28183ac_cv_lib_w_wcslen=no
28184fi
eea650d8
VS
28185rm -f conftest.err conftest.$ac_objext \
28186 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28187LIBS=$ac_check_lib_save_LIBS
28188fi
28189echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28190echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28191if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28192
7a30264c 28193 WCHAR_LINK=" -lw"
d74f4b5a 28194 WCSLEN_FOUND=1
e6cc62c6 28195
4f14bcd8 28196fi
10f2d63a 28197
7a30264c 28198 fi
d29b553b 28199 fi
95c8801c 28200
d74f4b5a 28201 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28202 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28203#define HAVE_WCSLEN 1
e6cc62c6 28204_ACEOF
10f2d63a 28205
d74f4b5a 28206 fi
52127426 28207
e6cc62c6
VS
28208
28209for ac_func in wcsrtombs
eb4efbdc 28210do
e6cc62c6
VS
28211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28212echo "$as_me:$LINENO: checking for $ac_func" >&5
28213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28214if eval "test \"\${$as_ac_var+set}\" = set"; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28216else
28217 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28218/* confdefs.h. */
28219_ACEOF
28220cat confdefs.h >>conftest.$ac_ext
28221cat >>conftest.$ac_ext <<_ACEOF
28222/* end confdefs.h. */
eea650d8
VS
28223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28225#define $ac_func innocuous_$ac_func
28226
eb4efbdc 28227/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28228 which can conflict with char $ac_func (); below.
28229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28230 <limits.h> exists even on freestanding compilers. */
eea650d8 28231
e6cc62c6
VS
28232#ifdef __STDC__
28233# include <limits.h>
28234#else
28235# include <assert.h>
28236#endif
eea650d8
VS
28237
28238#undef $ac_func
28239
eb4efbdc 28240/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28241#ifdef __cplusplus
28242extern "C"
28243{
28244#endif
4f14bcd8 28245/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28246 builtin and then its argument prototype would still apply. */
28247char $ac_func ();
10f2d63a
VZ
28248/* The GNU C library defines this for functions which it implements
28249 to always fail with ENOSYS. Some functions are actually named
28250 something starting with __ and the normal name is an alias. */
247f5006 28251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28252choke me
28253#else
e6cc62c6
VS
28254char (*f) () = $ac_func;
28255#endif
28256#ifdef __cplusplus
28257}
10f2d63a
VZ
28258#endif
28259
e6cc62c6
VS
28260int
28261main ()
28262{
28263return f != $ac_func;
28264 ;
28265 return 0;
28266}
28267_ACEOF
28268rm -f conftest.$ac_objext conftest$ac_exeext
28269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28270 (eval $ac_link) 2>conftest.er1
e6cc62c6 28271 ac_status=$?
eea650d8
VS
28272 grep -v '^ *+' conftest.er1 >conftest.err
28273 rm -f conftest.er1
28274 cat conftest.err >&5
e6cc62c6
VS
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
eea650d8
VS
28277 { ac_try='test -z "$ac_c_werror_flag"
28278 || test ! -s conftest.err'
28279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; } &&
28284 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286 (eval $ac_try) 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 eval "$as_ac_var=yes"
28291else
28292 echo "$as_me: failed program was:" >&5
28293sed 's/^/| /' conftest.$ac_ext >&5
28294
28295eval "$as_ac_var=no"
28296fi
eea650d8
VS
28297rm -f conftest.err conftest.$ac_objext \
28298 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28299fi
28300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28302if test `eval echo '${'$as_ac_var'}'` = yes; then
28303 cat >>confdefs.h <<_ACEOF
28304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28305_ACEOF
270a909e 28306
4f14bcd8 28307fi
247f5006 28308done
1e487827 28309
af15babd 28310else
e6cc62c6
VS
28311 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28312echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28313fi
52127426 28314
8284b0c5 28315
e6cc62c6
VS
28316
28317ac_ext=cc
247f5006 28318ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28322
af15babd 28323
247f5006
VZ
28324
28325for ac_func in vsnprintf
28326do
e6cc62c6
VS
28327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28328echo "$as_me:$LINENO: checking for $ac_func" >&5
28329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28330if eval "test \"\${$as_ac_var+set}\" = set"; then
28331 echo $ECHO_N "(cached) $ECHO_C" >&6
28332else
28333 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28334/* confdefs.h. */
28335_ACEOF
28336cat confdefs.h >>conftest.$ac_ext
28337cat >>conftest.$ac_ext <<_ACEOF
28338/* end confdefs.h. */
eea650d8
VS
28339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28341#define $ac_func innocuous_$ac_func
28342
247f5006 28343/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28344 which can conflict with char $ac_func (); below.
28345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28346 <limits.h> exists even on freestanding compilers. */
eea650d8 28347
e6cc62c6
VS
28348#ifdef __STDC__
28349# include <limits.h>
28350#else
28351# include <assert.h>
28352#endif
eea650d8
VS
28353
28354#undef $ac_func
28355
247f5006
VZ
28356/* Override any gcc2 internal prototype to avoid an error. */
28357#ifdef __cplusplus
28358extern "C"
e6cc62c6 28359{
247f5006
VZ
28360#endif
28361/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28362 builtin and then its argument prototype would still apply. */
28363char $ac_func ();
247f5006
VZ
28364/* The GNU C library defines this for functions which it implements
28365 to always fail with ENOSYS. Some functions are actually named
28366 something starting with __ and the normal name is an alias. */
28367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28368choke me
28369#else
e6cc62c6
VS
28370char (*f) () = $ac_func;
28371#endif
28372#ifdef __cplusplus
28373}
247f5006 28374#endif
af15babd 28375
e6cc62c6
VS
28376int
28377main ()
28378{
28379return f != $ac_func;
28380 ;
28381 return 0;
28382}
28383_ACEOF
28384rm -f conftest.$ac_objext conftest$ac_exeext
28385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28386 (eval $ac_link) 2>conftest.er1
e6cc62c6 28387 ac_status=$?
eea650d8
VS
28388 grep -v '^ *+' conftest.er1 >conftest.err
28389 rm -f conftest.er1
28390 cat conftest.err >&5
e6cc62c6
VS
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); } &&
eea650d8
VS
28393 { ac_try='test -z "$ac_cxx_werror_flag"
28394 || test ! -s conftest.err'
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; } &&
28400 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28403 ac_status=$?
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; }; then
28406 eval "$as_ac_var=yes"
28407else
28408 echo "$as_me: failed program was:" >&5
28409sed 's/^/| /' conftest.$ac_ext >&5
28410
28411eval "$as_ac_var=no"
28412fi
eea650d8
VS
28413rm -f conftest.err conftest.$ac_objext \
28414 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28415fi
28416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28417echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28418if test `eval echo '${'$as_ac_var'}'` = yes; then
28419 cat >>confdefs.h <<_ACEOF
28420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28421_ACEOF
52127426 28422
5c6fa7d2 28423fi
247f5006 28424done
8284b0c5 28425
4f14bcd8 28426
8d90d2f2 28427if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
28428 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28429echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28430if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28431 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 28432else
e6cc62c6
VS
28433
28434 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28435/* confdefs.h. */
28436_ACEOF
28437cat confdefs.h >>conftest.$ac_ext
28438cat >>conftest.$ac_ext <<_ACEOF
28439/* end confdefs.h. */
8d90d2f2
VZ
28440
28441 #include <stdio.h>
28442 #include <stdarg.h>
e6cc62c6
VS
28443
28444int
28445main ()
28446{
8d90d2f2
VZ
28447
28448 char *buf;
28449 va_list ap;
28450 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
28451
28452 ;
28453 return 0;
28454}
28455_ACEOF
28456rm -f conftest.$ac_objext
28457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28458 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28459 ac_status=$?
eea650d8
VS
28460 grep -v '^ *+' conftest.er1 >conftest.err
28461 rm -f conftest.er1
28462 cat conftest.err >&5
e6cc62c6
VS
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } &&
eea650d8
VS
28465 { ac_try='test -z "$ac_cxx_werror_flag"
28466 || test ! -s conftest.err'
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; } &&
28472 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474 (eval $ac_try) 2>&5
28475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; }; then
8d90d2f2
VZ
28478 wx_cv_func_vsnprintf_decl=yes
28479else
e6cc62c6
VS
28480 echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
28483wx_cv_func_vsnprintf_decl=no
28484
8d90d2f2 28485fi
eea650d8 28486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28487
8d90d2f2 28488
e6cc62c6
VS
28489fi
28490echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28491echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
28492
28493 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 28494 cat >>confdefs.h <<\_ACEOF
8d90d2f2 28495#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 28496_ACEOF
8d90d2f2
VZ
28497
28498 fi
28499fi
28500
247f5006 28501if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
28502
28503
28504
28505for ac_func in fputwc wprintf vswprintf
d74f4b5a 28506do
e6cc62c6
VS
28507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28508echo "$as_me:$LINENO: checking for $ac_func" >&5
28509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28510if eval "test \"\${$as_ac_var+set}\" = set"; then
28511 echo $ECHO_N "(cached) $ECHO_C" >&6
28512else
28513 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28514/* confdefs.h. */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h. */
eea650d8
VS
28519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28521#define $ac_func innocuous_$ac_func
28522
d74f4b5a 28523/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28524 which can conflict with char $ac_func (); below.
28525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28526 <limits.h> exists even on freestanding compilers. */
eea650d8 28527
e6cc62c6
VS
28528#ifdef __STDC__
28529# include <limits.h>
28530#else
28531# include <assert.h>
28532#endif
eea650d8
VS
28533
28534#undef $ac_func
28535
d74f4b5a 28536/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28537#ifdef __cplusplus
28538extern "C"
e6cc62c6 28539{
247f5006 28540#endif
d74f4b5a 28541/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28542 builtin and then its argument prototype would still apply. */
28543char $ac_func ();
d74f4b5a
VZ
28544/* The GNU C library defines this for functions which it implements
28545 to always fail with ENOSYS. Some functions are actually named
28546 something starting with __ and the normal name is an alias. */
28547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28548choke me
28549#else
e6cc62c6
VS
28550char (*f) () = $ac_func;
28551#endif
28552#ifdef __cplusplus
28553}
d74f4b5a
VZ
28554#endif
28555
e6cc62c6
VS
28556int
28557main ()
28558{
28559return f != $ac_func;
28560 ;
28561 return 0;
28562}
28563_ACEOF
28564rm -f conftest.$ac_objext conftest$ac_exeext
28565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28566 (eval $ac_link) 2>conftest.er1
e6cc62c6 28567 ac_status=$?
eea650d8
VS
28568 grep -v '^ *+' conftest.er1 >conftest.err
28569 rm -f conftest.er1
28570 cat conftest.err >&5
e6cc62c6
VS
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
eea650d8
VS
28573 { ac_try='test -z "$ac_cxx_werror_flag"
28574 || test ! -s conftest.err'
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_exeext'
e6cc62c6
VS
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 eval "$as_ac_var=yes"
28587else
28588 echo "$as_me: failed program was:" >&5
28589sed 's/^/| /' conftest.$ac_ext >&5
28590
28591eval "$as_ac_var=no"
28592fi
eea650d8
VS
28593rm -f conftest.err conftest.$ac_objext \
28594 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28595fi
28596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28598if test `eval echo '${'$as_ac_var'}'` = yes; then
28599 cat >>confdefs.h <<_ACEOF
28600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28601_ACEOF
d74f4b5a 28602
d74f4b5a
VZ
28603fi
28604done
28605
8d90d2f2 28606
e6cc62c6
VS
28607 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28608echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28609 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28610/* confdefs.h. */
28611_ACEOF
28612cat confdefs.h >>conftest.$ac_ext
28613cat >>conftest.$ac_ext <<_ACEOF
28614/* end confdefs.h. */
79668cae 28615#include <wchar.h>
e6cc62c6
VS
28616int
28617main ()
28618{
79668cae 28619&_vsnwprintf;
e6cc62c6
VS
28620 ;
28621 return 0;
28622}
28623_ACEOF
28624rm -f conftest.$ac_objext
28625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28626 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28627 ac_status=$?
eea650d8
VS
28628 grep -v '^ *+' conftest.er1 >conftest.err
28629 rm -f conftest.er1
28630 cat conftest.err >&5
e6cc62c6
VS
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } &&
eea650d8
VS
28633 { ac_try='test -z "$ac_cxx_werror_flag"
28634 || test ! -s conftest.err'
28635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636 (eval $ac_try) 2>&5
28637 ac_status=$?
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; } &&
28640 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642 (eval $ac_try) 2>&5
28643 ac_status=$?
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); }; }; then
28646 echo "$as_me:$LINENO: result: yes" >&5
28647echo "${ECHO_T}yes" >&6
28648 cat >>confdefs.h <<\_ACEOF
79668cae 28649#define HAVE__VSNWPRINTF 1
e6cc62c6 28650_ACEOF
79668cae
MB
28651
28652else
e6cc62c6
VS
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656echo "$as_me:$LINENO: result: no" >&5
28657echo "${ECHO_T}no" >&6
79668cae 28658fi
eea650d8 28659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
28660fi
28661
247f5006
VZ
28662ac_ext=c
28663ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28666ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
28667
28668
28669
28670
4f14bcd8 28671if test "$TOOLKIT" != "MSW"; then
af15babd 28672
8284b0c5
MB
28673
28674
e6cc62c6
VS
28675
28676ac_ext=cc
4f14bcd8 28677ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 28681
52127426 28682
e6cc62c6
VS
28683
28684
28685# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
28686if test "${with_libiconv_prefix+set}" = set; then
28687 withval="$with_libiconv_prefix"
e6cc62c6 28688
b040e242
VS
28689 for dir in `echo "$withval" | tr : ' '`; do
28690 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28691 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28692 done
b040e242 28693
e6cc62c6 28694fi;
b040e242 28695
e6cc62c6
VS
28696 echo "$as_me:$LINENO: checking for iconv" >&5
28697echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28698if test "${am_cv_func_iconv+set}" = set; then
28699 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 28700else
e6cc62c6 28701
b040e242
VS
28702 am_cv_func_iconv="no, consider installing GNU libiconv"
28703 am_cv_lib_iconv=no
e6cc62c6 28704 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28705/* confdefs.h. */
28706_ACEOF
28707cat confdefs.h >>conftest.$ac_ext
28708cat >>conftest.$ac_ext <<_ACEOF
28709/* end confdefs.h. */
b040e242 28710#include <stdlib.h>
4f14bcd8 28711#include <iconv.h>
e6cc62c6
VS
28712int
28713main ()
28714{
b040e242
VS
28715iconv_t cd = iconv_open("","");
28716 iconv(cd,NULL,NULL,NULL,NULL);
28717 iconv_close(cd);
e6cc62c6
VS
28718 ;
28719 return 0;
28720}
28721_ACEOF
28722rm -f conftest.$ac_objext conftest$ac_exeext
28723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28724 (eval $ac_link) 2>conftest.er1
e6cc62c6 28725 ac_status=$?
eea650d8
VS
28726 grep -v '^ *+' conftest.er1 >conftest.err
28727 rm -f conftest.er1
28728 cat conftest.err >&5
e6cc62c6
VS
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); } &&
eea650d8
VS
28731 { ac_try='test -z "$ac_cxx_werror_flag"
28732 || test ! -s conftest.err'
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740 (eval $ac_try) 2>&5
28741 ac_status=$?
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; }; then
b040e242 28744 am_cv_func_iconv=yes
af15babd 28745else
e6cc62c6
VS
28746 echo "$as_me: failed program was:" >&5
28747sed 's/^/| /' conftest.$ac_ext >&5
28748
b040e242 28749fi
eea650d8
VS
28750rm -f conftest.err conftest.$ac_objext \
28751 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28752 if test "$am_cv_func_iconv" != yes; then
28753 am_save_LIBS="$LIBS"
28754 LIBS="$LIBS -liconv"
e6cc62c6 28755 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28756/* confdefs.h. */
28757_ACEOF
28758cat confdefs.h >>conftest.$ac_ext
28759cat >>conftest.$ac_ext <<_ACEOF
28760/* end confdefs.h. */
b040e242
VS
28761#include <stdlib.h>
28762#include <iconv.h>
e6cc62c6
VS
28763int
28764main ()
28765{
b040e242
VS
28766iconv_t cd = iconv_open("","");
28767 iconv(cd,NULL,NULL,NULL,NULL);
28768 iconv_close(cd);
e6cc62c6
VS
28769 ;
28770 return 0;
28771}
28772_ACEOF
28773rm -f conftest.$ac_objext conftest$ac_exeext
28774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28775 (eval $ac_link) 2>conftest.er1
e6cc62c6 28776 ac_status=$?
eea650d8
VS
28777 grep -v '^ *+' conftest.er1 >conftest.err
28778 rm -f conftest.er1
28779 cat conftest.err >&5
e6cc62c6
VS
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } &&
eea650d8
VS
28782 { ac_try='test -z "$ac_cxx_werror_flag"
28783 || test ! -s conftest.err'
28784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785 (eval $ac_try) 2>&5
28786 ac_status=$?
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; } &&
28789 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791 (eval $ac_try) 2>&5
28792 ac_status=$?
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; }; then
b040e242
VS
28795 am_cv_lib_iconv=yes
28796 am_cv_func_iconv=yes
28797else
e6cc62c6
VS
28798 echo "$as_me: failed program was:" >&5
28799sed 's/^/| /' conftest.$ac_ext >&5
28800
af15babd 28801fi
eea650d8
VS
28802rm -f conftest.err conftest.$ac_objext \
28803 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28804 LIBS="$am_save_LIBS"
28805 fi
247f5006 28806
e6cc62c6
VS
28807fi
28808echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28809echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 28810 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
28811
28812cat >>confdefs.h <<\_ACEOF
b040e242 28813#define HAVE_ICONV 1
e6cc62c6 28814_ACEOF
b040e242 28815
e6cc62c6
VS
28816 echo "$as_me:$LINENO: checking if iconv needs const" >&5
28817echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28818if test "${wx_cv_func_iconv_const+set}" = set; then
28819 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 28820else
e6cc62c6 28821 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28822/* confdefs.h. */
28823_ACEOF
28824cat confdefs.h >>conftest.$ac_ext
28825cat >>conftest.$ac_ext <<_ACEOF
28826/* end confdefs.h. */
b040e242
VS
28827
28828#include <stdlib.h>
28829#include <iconv.h>
28830extern
28831#ifdef __cplusplus
28832"C"
28833#endif
28834#if defined(__STDC__) || defined(__cplusplus)
28835size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28836#else
28837size_t iconv();
28838#endif
af15babd 28839
e6cc62c6
VS
28840int
28841main ()
28842{
28843
28844 ;
28845 return 0;
28846}
28847_ACEOF
28848rm -f conftest.$ac_objext
28849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28850 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28851 ac_status=$?
eea650d8
VS
28852 grep -v '^ *+' conftest.er1 >conftest.err
28853 rm -f conftest.er1
28854 cat conftest.err >&5
e6cc62c6
VS
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
eea650d8
VS
28857 { ac_try='test -z "$ac_cxx_werror_flag"
28858 || test ! -s conftest.err'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28861 ac_status=$?
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
b7043674 28870 wx_cv_func_iconv_const="no"
b040e242 28871else
e6cc62c6
VS
28872 echo "$as_me: failed program was:" >&5
28873sed 's/^/| /' conftest.$ac_ext >&5
28874
28875wx_cv_func_iconv_const="yes"
28876
247f5006 28877fi
eea650d8 28878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28879
e6cc62c6
VS
28880fi
28881echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
28882echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
28883
28884 iconv_const=
1c405bb5 28885 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
28886 iconv_const="const"
28887 fi
28888
e6cc62c6
VS
28889
28890cat >>confdefs.h <<_ACEOF
f09359cf 28891#define ICONV_CONST $iconv_const
e6cc62c6 28892_ACEOF
b040e242
VS
28893
28894 fi
28895 LIBICONV=
28896 if test "$am_cv_lib_iconv" = yes; then
28897 LIBICONV="-liconv"
28898 fi
e6cc62c6 28899
b040e242
VS
28900
28901LIBS="$LIBICONV $LIBS"
4f14bcd8 28902ac_ext=c
4f14bcd8 28903ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28907
5c6fa7d2 28908
8284b0c5 28909if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
28910
28911for ac_func in sigaction
af15babd 28912do
e6cc62c6
VS
28913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28914echo "$as_me:$LINENO: checking for $ac_func" >&5
28915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28916if eval "test \"\${$as_ac_var+set}\" = set"; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28918else
28919 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28920/* confdefs.h. */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h. */
eea650d8
VS
28925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28927#define $ac_func innocuous_$ac_func
28928
af15babd 28929/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28930 which can conflict with char $ac_func (); below.
28931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28932 <limits.h> exists even on freestanding compilers. */
eea650d8 28933
e6cc62c6
VS
28934#ifdef __STDC__
28935# include <limits.h>
28936#else
28937# include <assert.h>
28938#endif
eea650d8
VS
28939
28940#undef $ac_func
28941
af15babd 28942/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28943#ifdef __cplusplus
28944extern "C"
28945{
28946#endif
af15babd 28947/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28948 builtin and then its argument prototype would still apply. */
28949char $ac_func ();
af15babd
VZ
28950/* The GNU C library defines this for functions which it implements
28951 to always fail with ENOSYS. Some functions are actually named
28952 something starting with __ and the normal name is an alias. */
28953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28954choke me
28955#else
e6cc62c6
VS
28956char (*f) () = $ac_func;
28957#endif
28958#ifdef __cplusplus
28959}
af15babd
VZ
28960#endif
28961
e6cc62c6
VS
28962int
28963main ()
28964{
28965return f != $ac_func;
28966 ;
28967 return 0;
28968}
28969_ACEOF
28970rm -f conftest.$ac_objext conftest$ac_exeext
28971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28972 (eval $ac_link) 2>conftest.er1
e6cc62c6 28973 ac_status=$?
eea650d8
VS
28974 grep -v '^ *+' conftest.er1 >conftest.err
28975 rm -f conftest.er1
28976 cat conftest.err >&5
e6cc62c6
VS
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } &&
eea650d8
VS
28979 { ac_try='test -z "$ac_c_werror_flag"
28980 || test ! -s conftest.err'
28981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982 (eval $ac_try) 2>&5
28983 ac_status=$?
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; } &&
28986 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; }; then
28992 eval "$as_ac_var=yes"
28993else
28994 echo "$as_me: failed program was:" >&5
28995sed 's/^/| /' conftest.$ac_ext >&5
28996
28997eval "$as_ac_var=no"
28998fi
eea650d8
VS
28999rm -f conftest.err conftest.$ac_objext \
29000 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29001fi
29002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29004if test `eval echo '${'$as_ac_var'}'` = yes; then
29005 cat >>confdefs.h <<_ACEOF
29006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29007_ACEOF
7b4a847f 29008
4f14bcd8
GD
29009fi
29010done
29011
8284b0c5 29012
4f14bcd8 29013 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29014 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29015echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29016 wxUSE_ON_FATAL_EXCEPTION=no
29017 fi
29018
29019 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29020
29021
29022 ac_ext=cc
5c6fa7d2 29023ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29027
5c6fa7d2 29028
e6cc62c6
VS
29029 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29030echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29031if test "${wx_cv_type_sa_handler+set}" = set; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29033else
e6cc62c6
VS
29034
29035 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29036/* confdefs.h. */
29037_ACEOF
29038cat confdefs.h >>conftest.$ac_ext
29039cat >>conftest.$ac_ext <<_ACEOF
29040/* end confdefs.h. */
4f14bcd8 29041#include <signal.h>
e6cc62c6
VS
29042int
29043main ()
29044{
4f14bcd8
GD
29045
29046 extern void testSigHandler(int);
29047
29048 struct sigaction sa;
29049 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29050
29051 ;
29052 return 0;
29053}
29054_ACEOF
29055rm -f conftest.$ac_objext
29056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29057 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29058 ac_status=$?
eea650d8
VS
29059 grep -v '^ *+' conftest.er1 >conftest.err
29060 rm -f conftest.er1
29061 cat conftest.err >&5
e6cc62c6
VS
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); } &&
eea650d8
VS
29064 { ac_try='test -z "$ac_cxx_werror_flag"
29065 || test ! -s conftest.err'
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; } &&
29071 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 (eval $ac_try) 2>&5
29074 ac_status=$?
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
29077
4f14bcd8 29078 wx_cv_type_sa_handler=int
e6cc62c6 29079
af15babd 29080else
e6cc62c6
VS
29081 echo "$as_me: failed program was:" >&5
29082sed 's/^/| /' conftest.$ac_ext >&5
29083
29084
4f14bcd8 29085 wx_cv_type_sa_handler=void
e6cc62c6 29086
247f5006 29087fi
eea650d8 29088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29089
e6cc62c6
VS
29090fi
29091echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29092echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29093
29094 ac_ext=c
4f14bcd8 29095ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29098ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29099
8284b0c5 29100
e6cc62c6 29101 cat >>confdefs.h <<_ACEOF
4f14bcd8 29102#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29103_ACEOF
af15babd 29104
4f14bcd8
GD
29105 fi
29106fi
af15babd 29107
e6cc62c6
VS
29108
29109
a1d22ad7 29110for ac_func in mkstemp mktemp
af15babd 29111do
e6cc62c6
VS
29112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29113echo "$as_me:$LINENO: checking for $ac_func" >&5
29114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29115if eval "test \"\${$as_ac_var+set}\" = set"; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29117else
29118 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29119/* confdefs.h. */
29120_ACEOF
29121cat confdefs.h >>conftest.$ac_ext
29122cat >>conftest.$ac_ext <<_ACEOF
29123/* end confdefs.h. */
eea650d8
VS
29124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29126#define $ac_func innocuous_$ac_func
29127
af15babd 29128/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29129 which can conflict with char $ac_func (); below.
29130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29131 <limits.h> exists even on freestanding compilers. */
eea650d8 29132
e6cc62c6
VS
29133#ifdef __STDC__
29134# include <limits.h>
29135#else
29136# include <assert.h>
29137#endif
eea650d8
VS
29138
29139#undef $ac_func
29140
af15babd 29141/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29142#ifdef __cplusplus
29143extern "C"
29144{
29145#endif
af15babd 29146/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29147 builtin and then its argument prototype would still apply. */
29148char $ac_func ();
af15babd
VZ
29149/* The GNU C library defines this for functions which it implements
29150 to always fail with ENOSYS. Some functions are actually named
29151 something starting with __ and the normal name is an alias. */
29152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29153choke me
29154#else
e6cc62c6
VS
29155char (*f) () = $ac_func;
29156#endif
29157#ifdef __cplusplus
29158}
af15babd
VZ
29159#endif
29160
e6cc62c6
VS
29161int
29162main ()
29163{
29164return f != $ac_func;
29165 ;
29166 return 0;
29167}
29168_ACEOF
29169rm -f conftest.$ac_objext conftest$ac_exeext
29170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29171 (eval $ac_link) 2>conftest.er1
e6cc62c6 29172 ac_status=$?
eea650d8
VS
29173 grep -v '^ *+' conftest.er1 >conftest.err
29174 rm -f conftest.er1
29175 cat conftest.err >&5
e6cc62c6
VS
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); } &&
eea650d8
VS
29178 { ac_try='test -z "$ac_c_werror_flag"
29179 || test ! -s conftest.err'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } &&
29185 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187 (eval $ac_try) 2>&5
29188 ac_status=$?
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 eval "$as_ac_var=yes"
29192else
29193 echo "$as_me: failed program was:" >&5
29194sed 's/^/| /' conftest.$ac_ext >&5
29195
29196eval "$as_ac_var=no"
29197fi
eea650d8
VS
29198rm -f conftest.err conftest.$ac_objext \
29199 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29200fi
29201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29203if test `eval echo '${'$as_ac_var'}'` = yes; then
29204 cat >>confdefs.h <<_ACEOF
29205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29206_ACEOF
ade35f11 29207 break
ade35f11
VZ
29208fi
29209done
29210
8284b0c5 29211
e6cc62c6
VS
29212echo "$as_me:$LINENO: checking for statfs" >&5
29213echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29214if test "${wx_cv_func_statfs+set}" = set; then
29215 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29216else
e6cc62c6 29217 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29218/* confdefs.h. */
29219_ACEOF
29220cat confdefs.h >>conftest.$ac_ext
29221cat >>conftest.$ac_ext <<_ACEOF
29222/* end confdefs.h. */
4f14bcd8
GD
29223
29224 #if defined(__BSD__)
29225 #include <sys/param.h>
29226 #include <sys/mount.h>
29227 #else
29228 #include <sys/vfs.h>
29229 #endif
e6cc62c6
VS
29230
29231int
29232main ()
29233{
4f14bcd8
GD
29234
29235 long l;
29236 struct statfs fs;
29237 statfs("/", &fs);
29238 l = fs.f_bsize;
29239 l += fs.f_blocks;
29240 l += fs.f_bavail;
e6cc62c6
VS
29241
29242 ;
29243 return 0;
29244}
29245_ACEOF
29246rm -f conftest.$ac_objext
29247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29248 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29249 ac_status=$?
eea650d8
VS
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
e6cc62c6
VS
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
eea650d8
VS
29255 { ac_try='test -z "$ac_c_werror_flag"
29256 || test ! -s conftest.err'
29257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258 (eval $ac_try) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; } &&
29262 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29265 ac_status=$?
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; }; then
29268
4f14bcd8 29269 wx_cv_func_statfs=yes
e6cc62c6 29270
4f14bcd8 29271else
e6cc62c6
VS
29272 echo "$as_me: failed program was:" >&5
29273sed 's/^/| /' conftest.$ac_ext >&5
29274
29275
4f14bcd8 29276 wx_cv_func_statfs=no
e6cc62c6 29277
8284b0c5 29278
247f5006 29279fi
eea650d8 29280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29281
e6cc62c6
VS
29282fi
29283echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29284echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29285
29286if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29287 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29288 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29289#define HAVE_STATFS 1
e6cc62c6 29290_ACEOF
4f14bcd8
GD
29291
29292else
e6cc62c6
VS
29293 echo "$as_me:$LINENO: checking for statvfs" >&5
29294echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29295if test "${wx_cv_func_statvfs+set}" = set; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29297else
e6cc62c6 29298 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29299/* confdefs.h. */
29300_ACEOF
29301cat confdefs.h >>conftest.$ac_ext
29302cat >>conftest.$ac_ext <<_ACEOF
29303/* end confdefs.h. */
af15babd 29304
54ab82b3
VZ
29305 #include <stddef.h>
29306 #include <sys/statvfs.h>
e6cc62c6
VS
29307
29308int
29309main ()
29310{
af15babd 29311
54ab82b3 29312 statvfs("/", NULL);
e6cc62c6
VS
29313
29314 ;
29315 return 0;
29316}
29317_ACEOF
29318rm -f conftest.$ac_objext
29319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29320 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29321 ac_status=$?
eea650d8
VS
29322 grep -v '^ *+' conftest.er1 >conftest.err
29323 rm -f conftest.er1
29324 cat conftest.err >&5
e6cc62c6
VS
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } &&
eea650d8
VS
29327 { ac_try='test -z "$ac_c_werror_flag"
29328 || test ! -s conftest.err'
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; } &&
29334 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; }; then
54ab82b3 29340 wx_cv_func_statvfs=yes
af15babd 29341else
e6cc62c6
VS
29342 echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
29345wx_cv_func_statvfs=no
29346
247f5006 29347fi
eea650d8 29348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29349
e6cc62c6
VS
29350fi
29351echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29352echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29353
4f14bcd8 29354 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29355
29356
29357 ac_ext=cc
54ab82b3 29358ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29362
29363
e6cc62c6
VS
29364 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29365echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29366if test "${wx_cv_type_statvfs_t+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 29368else
e6cc62c6 29369 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29370/* confdefs.h. */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h. */
54ab82b3
VZ
29375
29376 #include <sys/statvfs.h>
e6cc62c6
VS
29377
29378int
29379main ()
29380{
54ab82b3
VZ
29381
29382 long l;
29383 statvfs_t fs;
29384 statvfs("/", &fs);
29385 l = fs.f_bsize;
29386 l += fs.f_blocks;
29387 l += fs.f_bavail;
e6cc62c6
VS
29388
29389 ;
29390 return 0;
29391}
29392_ACEOF
29393rm -f conftest.$ac_objext
29394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29395 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29396 ac_status=$?
eea650d8
VS
29397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
e6cc62c6
VS
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
eea650d8
VS
29402 { ac_try='test -z "$ac_cxx_werror_flag"
29403 || test ! -s conftest.err'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29406 ac_status=$?
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
54ab82b3
VZ
29415 wx_cv_type_statvfs_t=statvfs_t
29416else
e6cc62c6
VS
29417 echo "$as_me: failed program was:" >&5
29418sed 's/^/| /' conftest.$ac_ext >&5
29419
29420
29421 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29422/* confdefs.h. */
29423_ACEOF
29424cat confdefs.h >>conftest.$ac_ext
29425cat >>conftest.$ac_ext <<_ACEOF
29426/* end confdefs.h. */
54ab82b3
VZ
29427
29428 #include <sys/statvfs.h>
e6cc62c6
VS
29429
29430int
29431main ()
29432{
54ab82b3
VZ
29433
29434 long l;
65d8ef1e 29435 struct statvfs fs;
54ab82b3
VZ
29436 statvfs("/", &fs);
29437 l = fs.f_bsize;
29438 l += fs.f_blocks;
29439 l += fs.f_bavail;
e6cc62c6
VS
29440
29441 ;
29442 return 0;
29443}
29444_ACEOF
29445rm -f conftest.$ac_objext
29446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29447 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29448 ac_status=$?
eea650d8
VS
29449 grep -v '^ *+' conftest.er1 >conftest.err
29450 rm -f conftest.er1
29451 cat conftest.err >&5
e6cc62c6
VS
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } &&
eea650d8
VS
29454 { ac_try='test -z "$ac_cxx_werror_flag"
29455 || test ! -s conftest.err'
29456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457 (eval $ac_try) 2>&5
29458 ac_status=$?
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; } &&
29461 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; }; then
54ab82b3
VZ
29467 wx_cv_type_statvfs_t="struct statvfs"
29468else
e6cc62c6
VS
29469 echo "$as_me: failed program was:" >&5
29470sed 's/^/| /' conftest.$ac_ext >&5
29471
29472wx_cv_type_statvfs_t="unknown"
29473
54ab82b3 29474fi
eea650d8 29475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29476
29477
54ab82b3 29478fi
eea650d8 29479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 29480
e6cc62c6
VS
29481fi
29482echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29483echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
29484
29485 ac_ext=c
54ab82b3 29486ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29489ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
29490
29491
29492 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29493 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29494#define HAVE_STATVFS 1
e6cc62c6 29495_ACEOF
af15babd 29496
54ab82b3 29497 fi
4f14bcd8 29498 else
54ab82b3 29499 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
29500 fi
29501fi
af15babd 29502
54ab82b3 29503if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29504 cat >>confdefs.h <<_ACEOF
54ab82b3 29505#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 29506_ACEOF
54ab82b3
VZ
29507
29508else
e6cc62c6
VS
29509 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29510echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
29511fi
29512
4f14bcd8 29513if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
29514
29515
29516for ac_func in fcntl flock
af15babd 29517do
e6cc62c6
VS
29518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29519echo "$as_me:$LINENO: checking for $ac_func" >&5
29520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29521if eval "test \"\${$as_ac_var+set}\" = set"; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29523else
29524 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29525/* confdefs.h. */
29526_ACEOF
29527cat confdefs.h >>conftest.$ac_ext
29528cat >>conftest.$ac_ext <<_ACEOF
29529/* end confdefs.h. */
eea650d8
VS
29530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29532#define $ac_func innocuous_$ac_func
29533
af15babd 29534/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29535 which can conflict with char $ac_func (); below.
29536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29537 <limits.h> exists even on freestanding compilers. */
eea650d8 29538
e6cc62c6
VS
29539#ifdef __STDC__
29540# include <limits.h>
29541#else
29542# include <assert.h>
29543#endif
eea650d8
VS
29544
29545#undef $ac_func
29546
af15babd 29547/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29548#ifdef __cplusplus
29549extern "C"
29550{
29551#endif
af15babd 29552/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29553 builtin and then its argument prototype would still apply. */
29554char $ac_func ();
af15babd
VZ
29555/* The GNU C library defines this for functions which it implements
29556 to always fail with ENOSYS. Some functions are actually named
29557 something starting with __ and the normal name is an alias. */
29558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29559choke me
29560#else
e6cc62c6
VS
29561char (*f) () = $ac_func;
29562#endif
29563#ifdef __cplusplus
29564}
af15babd
VZ
29565#endif
29566
e6cc62c6
VS
29567int
29568main ()
29569{
29570return f != $ac_func;
29571 ;
29572 return 0;
29573}
29574_ACEOF
29575rm -f conftest.$ac_objext conftest$ac_exeext
29576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29577 (eval $ac_link) 2>conftest.er1
e6cc62c6 29578 ac_status=$?
eea650d8
VS
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
e6cc62c6
VS
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
eea650d8
VS
29584 { ac_try='test -z "$ac_c_werror_flag"
29585 || test ! -s conftest.err'
29586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29587 (eval $ac_try) 2>&5
29588 ac_status=$?
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); }; } &&
29591 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593 (eval $ac_try) 2>&5
29594 ac_status=$?
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; }; then
29597 eval "$as_ac_var=yes"
29598else
29599 echo "$as_me: failed program was:" >&5
29600sed 's/^/| /' conftest.$ac_ext >&5
29601
29602eval "$as_ac_var=no"
29603fi
eea650d8
VS
29604rm -f conftest.err conftest.$ac_objext \
29605 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29606fi
29607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29609if test `eval echo '${'$as_ac_var'}'` = yes; then
29610 cat >>confdefs.h <<_ACEOF
29611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29612_ACEOF
4f14bcd8 29613 break
af15babd
VZ
29614fi
29615done
29616
8284b0c5 29617
4f14bcd8 29618 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
29619 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29620echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
29621 wxUSE_SNGLINST_CHECKER=no
29622 fi
29623fi
af15babd 29624
e6cc62c6 29625
4f14bcd8 29626for ac_func in timegm
af15babd 29627do
e6cc62c6
VS
29628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29629echo "$as_me:$LINENO: checking for $ac_func" >&5
29630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29631if eval "test \"\${$as_ac_var+set}\" = set"; then
29632 echo $ECHO_N "(cached) $ECHO_C" >&6
29633else
29634 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29635/* confdefs.h. */
29636_ACEOF
29637cat confdefs.h >>conftest.$ac_ext
29638cat >>conftest.$ac_ext <<_ACEOF
29639/* end confdefs.h. */
eea650d8
VS
29640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29642#define $ac_func innocuous_$ac_func
29643
af15babd 29644/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29645 which can conflict with char $ac_func (); below.
29646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29647 <limits.h> exists even on freestanding compilers. */
eea650d8 29648
e6cc62c6
VS
29649#ifdef __STDC__
29650# include <limits.h>
29651#else
29652# include <assert.h>
29653#endif
eea650d8
VS
29654
29655#undef $ac_func
29656
af15babd 29657/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29658#ifdef __cplusplus
29659extern "C"
29660{
29661#endif
af15babd 29662/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29663 builtin and then its argument prototype would still apply. */
29664char $ac_func ();
af15babd
VZ
29665/* The GNU C library defines this for functions which it implements
29666 to always fail with ENOSYS. Some functions are actually named
29667 something starting with __ and the normal name is an alias. */
247f5006
VZ
29668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29669choke me
29670#else
e6cc62c6
VS
29671char (*f) () = $ac_func;
29672#endif
29673#ifdef __cplusplus
29674}
247f5006
VZ
29675#endif
29676
e6cc62c6
VS
29677int
29678main ()
29679{
29680return f != $ac_func;
29681 ;
29682 return 0;
29683}
29684_ACEOF
29685rm -f conftest.$ac_objext conftest$ac_exeext
29686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29687 (eval $ac_link) 2>conftest.er1
e6cc62c6 29688 ac_status=$?
eea650d8
VS
29689 grep -v '^ *+' conftest.er1 >conftest.err
29690 rm -f conftest.er1
29691 cat conftest.err >&5
e6cc62c6
VS
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); } &&
eea650d8
VS
29694 { ac_try='test -z "$ac_c_werror_flag"
29695 || test ! -s conftest.err'
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; } &&
29701 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; }; then
29707 eval "$as_ac_var=yes"
29708else
29709 echo "$as_me: failed program was:" >&5
29710sed 's/^/| /' conftest.$ac_ext >&5
29711
29712eval "$as_ac_var=no"
29713fi
eea650d8
VS
29714rm -f conftest.err conftest.$ac_objext \
29715 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29716fi
29717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29719if test `eval echo '${'$as_ac_var'}'` = yes; then
29720 cat >>confdefs.h <<_ACEOF
29721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29722_ACEOF
703e0a69 29723
af15babd
VZ
29724fi
29725done
29726
8284b0c5 29727
e6cc62c6
VS
29728
29729
4f14bcd8 29730for ac_func in putenv setenv
10f2d63a 29731do
e6cc62c6
VS
29732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29733echo "$as_me:$LINENO: checking for $ac_func" >&5
29734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29735if eval "test \"\${$as_ac_var+set}\" = set"; then
29736 echo $ECHO_N "(cached) $ECHO_C" >&6
29737else
29738 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29739/* confdefs.h. */
29740_ACEOF
29741cat confdefs.h >>conftest.$ac_ext
29742cat >>conftest.$ac_ext <<_ACEOF
29743/* end confdefs.h. */
eea650d8
VS
29744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29746#define $ac_func innocuous_$ac_func
29747
af15babd 29748/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29749 which can conflict with char $ac_func (); below.
29750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29751 <limits.h> exists even on freestanding compilers. */
eea650d8 29752
e6cc62c6
VS
29753#ifdef __STDC__
29754# include <limits.h>
29755#else
29756# include <assert.h>
29757#endif
eea650d8
VS
29758
29759#undef $ac_func
29760
af15babd 29761/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29762#ifdef __cplusplus
29763extern "C"
29764{
29765#endif
af15babd 29766/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29767 builtin and then its argument prototype would still apply. */
29768char $ac_func ();
af15babd
VZ
29769/* The GNU C library defines this for functions which it implements
29770 to always fail with ENOSYS. Some functions are actually named
29771 something starting with __ and the normal name is an alias. */
29772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29773choke me
29774#else
e6cc62c6
VS
29775char (*f) () = $ac_func;
29776#endif
29777#ifdef __cplusplus
29778}
af15babd
VZ
29779#endif
29780
e6cc62c6
VS
29781int
29782main ()
29783{
29784return f != $ac_func;
29785 ;
29786 return 0;
29787}
29788_ACEOF
29789rm -f conftest.$ac_objext conftest$ac_exeext
29790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29791 (eval $ac_link) 2>conftest.er1
e6cc62c6 29792 ac_status=$?
eea650d8
VS
29793 grep -v '^ *+' conftest.er1 >conftest.err
29794 rm -f conftest.er1
29795 cat conftest.err >&5
e6cc62c6
VS
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); } &&
eea650d8
VS
29798 { ac_try='test -z "$ac_c_werror_flag"
29799 || test ! -s conftest.err'
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); }; } &&
29805 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29807 (eval $ac_try) 2>&5
29808 ac_status=$?
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); }; }; then
29811 eval "$as_ac_var=yes"
29812else
29813 echo "$as_me: failed program was:" >&5
29814sed 's/^/| /' conftest.$ac_ext >&5
29815
29816eval "$as_ac_var=no"
29817fi
eea650d8
VS
29818rm -f conftest.err conftest.$ac_objext \
29819 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29820fi
29821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29823if test `eval echo '${'$as_ac_var'}'` = yes; then
29824 cat >>confdefs.h <<_ACEOF
29825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29826_ACEOF
4f14bcd8 29827 break
af15babd 29828fi
af15babd
VZ
29829done
29830
8284b0c5 29831
4f14bcd8
GD
29832HAVE_SOME_SLEEP_FUNC=0
29833if test "$USE_BEOS" = 1; then
e6cc62c6 29834 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29835#define HAVE_SLEEP 1
e6cc62c6 29836_ACEOF
af15babd 29837
4f14bcd8 29838 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29839fi
29840
4f14bcd8 29841if test "$USE_DARWIN" = 1; then
e6cc62c6 29842 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29843#define HAVE_USLEEP 1
e6cc62c6 29844_ACEOF
10f2d63a 29845
4f14bcd8 29846 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29847fi
29848
4f14bcd8
GD
29849if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29850 POSIX4_LINK=
e6cc62c6
VS
29851
29852for ac_func in nanosleep
4f14bcd8 29853do
e6cc62c6
VS
29854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29855echo "$as_me:$LINENO: checking for $ac_func" >&5
29856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29857if eval "test \"\${$as_ac_var+set}\" = set"; then
29858 echo $ECHO_N "(cached) $ECHO_C" >&6
29859else
29860 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29861/* confdefs.h. */
29862_ACEOF
29863cat confdefs.h >>conftest.$ac_ext
29864cat >>conftest.$ac_ext <<_ACEOF
29865/* end confdefs.h. */
eea650d8
VS
29866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29868#define $ac_func innocuous_$ac_func
29869
4f14bcd8 29870/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29871 which can conflict with char $ac_func (); below.
29872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29873 <limits.h> exists even on freestanding compilers. */
eea650d8 29874
e6cc62c6
VS
29875#ifdef __STDC__
29876# include <limits.h>
29877#else
29878# include <assert.h>
29879#endif
eea650d8
VS
29880
29881#undef $ac_func
29882
10f2d63a 29883/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29884#ifdef __cplusplus
29885extern "C"
29886{
29887#endif
10f2d63a 29888/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29889 builtin and then its argument prototype would still apply. */
29890char $ac_func ();
4f14bcd8
GD
29891/* The GNU C library defines this for functions which it implements
29892 to always fail with ENOSYS. Some functions are actually named
29893 something starting with __ and the normal name is an alias. */
29894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29895choke me
29896#else
e6cc62c6
VS
29897char (*f) () = $ac_func;
29898#endif
29899#ifdef __cplusplus
29900}
4f14bcd8
GD
29901#endif
29902
e6cc62c6
VS
29903int
29904main ()
29905{
29906return f != $ac_func;
29907 ;
29908 return 0;
29909}
29910_ACEOF
29911rm -f conftest.$ac_objext conftest$ac_exeext
29912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29913 (eval $ac_link) 2>conftest.er1
e6cc62c6 29914 ac_status=$?
eea650d8
VS
29915 grep -v '^ *+' conftest.er1 >conftest.err
29916 rm -f conftest.er1
29917 cat conftest.err >&5
e6cc62c6
VS
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } &&
eea650d8
VS
29920 { ac_try='test -z "$ac_c_werror_flag"
29921 || test ! -s conftest.err'
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); }; } &&
29927 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929 (eval $ac_try) 2>&5
29930 ac_status=$?
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); }; }; then
29933 eval "$as_ac_var=yes"
29934else
29935 echo "$as_me: failed program was:" >&5
29936sed 's/^/| /' conftest.$ac_ext >&5
29937
29938eval "$as_ac_var=no"
29939fi
eea650d8
VS
29940rm -f conftest.err conftest.$ac_objext \
29941 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29942fi
29943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29945if test `eval echo '${'$as_ac_var'}'` = yes; then
29946 cat >>confdefs.h <<_ACEOF
29947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29948_ACEOF
29949 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29950#define HAVE_NANOSLEEP 1
e6cc62c6 29951_ACEOF
4f14bcd8 29952
10f2d63a 29953else
e6cc62c6
VS
29954
29955 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
29956echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
29957if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 29959else
e6cc62c6 29960 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29961LIBS="-lposix4 $LIBS"
e6cc62c6 29962cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29963/* confdefs.h. */
29964_ACEOF
29965cat confdefs.h >>conftest.$ac_ext
29966cat >>conftest.$ac_ext <<_ACEOF
29967/* end confdefs.h. */
29968
10f2d63a 29969/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29970#ifdef __cplusplus
29971extern "C"
29972#endif
10f2d63a 29973/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29974 builtin and then its argument prototype would still apply. */
29975char nanosleep ();
29976int
29977main ()
29978{
29979nanosleep ();
29980 ;
29981 return 0;
29982}
29983_ACEOF
29984rm -f conftest.$ac_objext conftest$ac_exeext
29985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29986 (eval $ac_link) 2>conftest.er1
e6cc62c6 29987 ac_status=$?
eea650d8
VS
29988 grep -v '^ *+' conftest.er1 >conftest.err
29989 rm -f conftest.er1
29990 cat conftest.err >&5
e6cc62c6
VS
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } &&
eea650d8
VS
29993 { ac_try='test -z "$ac_c_werror_flag"
29994 || test ! -s conftest.err'
29995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996 (eval $ac_try) 2>&5
29997 ac_status=$?
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
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); }; }; then
30006 ac_cv_lib_posix4_nanosleep=yes
30007else
30008 echo "$as_me: failed program was:" >&5
30009sed 's/^/| /' conftest.$ac_ext >&5
30010
30011ac_cv_lib_posix4_nanosleep=no
30012fi
eea650d8
VS
30013rm -f conftest.err conftest.$ac_objext \
30014 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30015LIBS=$ac_check_lib_save_LIBS
30016fi
30017echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30018echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30019if test $ac_cv_lib_posix4_nanosleep = yes; then
30020
30021 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30022#define HAVE_NANOSLEEP 1
e6cc62c6 30023_ACEOF
4f14bcd8 30024
3d63bc3a 30025 POSIX4_LINK=" -lposix4"
e6cc62c6 30026
10f2d63a 30027else
10f2d63a 30028
e6cc62c6
VS
30029
30030for ac_func in usleep
4f14bcd8 30031do
e6cc62c6
VS
30032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30033echo "$as_me:$LINENO: checking for $ac_func" >&5
30034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30035if eval "test \"\${$as_ac_var+set}\" = set"; then
30036 echo $ECHO_N "(cached) $ECHO_C" >&6
30037else
30038 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30039/* confdefs.h. */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h. */
eea650d8
VS
30044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30046#define $ac_func innocuous_$ac_func
30047
4f14bcd8 30048/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30049 which can conflict with char $ac_func (); below.
30050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30051 <limits.h> exists even on freestanding compilers. */
eea650d8 30052
e6cc62c6
VS
30053#ifdef __STDC__
30054# include <limits.h>
30055#else
30056# include <assert.h>
30057#endif
eea650d8
VS
30058
30059#undef $ac_func
30060
4f14bcd8 30061/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30062#ifdef __cplusplus
30063extern "C"
30064{
30065#endif
4f14bcd8 30066/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30067 builtin and then its argument prototype would still apply. */
30068char $ac_func ();
4f14bcd8
GD
30069/* The GNU C library defines this for functions which it implements
30070 to always fail with ENOSYS. Some functions are actually named
30071 something starting with __ and the normal name is an alias. */
30072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30073choke me
30074#else
e6cc62c6
VS
30075char (*f) () = $ac_func;
30076#endif
30077#ifdef __cplusplus
30078}
4f14bcd8
GD
30079#endif
30080
e6cc62c6
VS
30081int
30082main ()
30083{
30084return f != $ac_func;
30085 ;
30086 return 0;
30087}
30088_ACEOF
30089rm -f conftest.$ac_objext conftest$ac_exeext
30090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30091 (eval $ac_link) 2>conftest.er1
e6cc62c6 30092 ac_status=$?
eea650d8
VS
30093 grep -v '^ *+' conftest.er1 >conftest.err
30094 rm -f conftest.er1
30095 cat conftest.err >&5
e6cc62c6
VS
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); } &&
eea650d8
VS
30098 { ac_try='test -z "$ac_c_werror_flag"
30099 || test ! -s conftest.err'
30100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30101 (eval $ac_try) 2>&5
30102 ac_status=$?
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); }; } &&
30105 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 eval "$as_ac_var=yes"
30112else
30113 echo "$as_me: failed program was:" >&5
30114sed 's/^/| /' conftest.$ac_ext >&5
30115
30116eval "$as_ac_var=no"
30117fi
eea650d8
VS
30118rm -f conftest.err conftest.$ac_objext \
30119 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30120fi
30121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30123if test `eval echo '${'$as_ac_var'}'` = yes; then
30124 cat >>confdefs.h <<_ACEOF
30125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30126_ACEOF
30127 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30128#define HAVE_USLEEP 1
e6cc62c6 30129_ACEOF
4f14bcd8 30130
698dcdb6 30131else
e6cc62c6
VS
30132 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30133echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30134
10f2d63a 30135fi
4f14bcd8 30136done
10f2d63a 30137
e6cc62c6
VS
30138
30139
6232543b 30140fi
10f2d63a 30141
e6cc62c6
VS
30142
30143
1e487827 30144fi
4f14bcd8 30145done
703e0a69 30146
10f2d63a
VZ
30147fi
30148
e6cc62c6
VS
30149
30150
4f14bcd8 30151for ac_func in uname gethostname
70846f0a 30152do
e6cc62c6
VS
30153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30154echo "$as_me:$LINENO: checking for $ac_func" >&5
30155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30156if eval "test \"\${$as_ac_var+set}\" = set"; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30158else
30159 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30160/* confdefs.h. */
30161_ACEOF
30162cat confdefs.h >>conftest.$ac_ext
30163cat >>conftest.$ac_ext <<_ACEOF
30164/* end confdefs.h. */
eea650d8
VS
30165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30167#define $ac_func innocuous_$ac_func
30168
70846f0a 30169/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30170 which can conflict with char $ac_func (); below.
30171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30172 <limits.h> exists even on freestanding compilers. */
eea650d8 30173
e6cc62c6
VS
30174#ifdef __STDC__
30175# include <limits.h>
30176#else
30177# include <assert.h>
30178#endif
eea650d8
VS
30179
30180#undef $ac_func
30181
70846f0a 30182/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30183#ifdef __cplusplus
30184extern "C"
30185{
30186#endif
70846f0a 30187/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30188 builtin and then its argument prototype would still apply. */
30189char $ac_func ();
70846f0a
VZ
30190/* The GNU C library defines this for functions which it implements
30191 to always fail with ENOSYS. Some functions are actually named
30192 something starting with __ and the normal name is an alias. */
30193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30194choke me
30195#else
e6cc62c6
VS
30196char (*f) () = $ac_func;
30197#endif
30198#ifdef __cplusplus
30199}
70846f0a
VZ
30200#endif
30201
e6cc62c6
VS
30202int
30203main ()
30204{
30205return f != $ac_func;
30206 ;
30207 return 0;
30208}
30209_ACEOF
30210rm -f conftest.$ac_objext conftest$ac_exeext
30211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30212 (eval $ac_link) 2>conftest.er1
e6cc62c6 30213 ac_status=$?
eea650d8
VS
30214 grep -v '^ *+' conftest.er1 >conftest.err
30215 rm -f conftest.er1
30216 cat conftest.err >&5
e6cc62c6
VS
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); } &&
eea650d8
VS
30219 { ac_try='test -z "$ac_c_werror_flag"
30220 || test ! -s conftest.err'
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; } &&
30226 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228 (eval $ac_try) 2>&5
30229 ac_status=$?
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; }; then
30232 eval "$as_ac_var=yes"
30233else
30234 echo "$as_me: failed program was:" >&5
30235sed 's/^/| /' conftest.$ac_ext >&5
30236
30237eval "$as_ac_var=no"
30238fi
eea650d8
VS
30239rm -f conftest.err conftest.$ac_objext \
30240 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30241fi
30242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30244if test `eval echo '${'$as_ac_var'}'` = yes; then
30245 cat >>confdefs.h <<_ACEOF
30246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30247_ACEOF
4f14bcd8 30248 break
70846f0a
VZ
30249fi
30250done
30251
8284b0c5
MB
30252
30253
e6cc62c6
VS
30254
30255ac_ext=cc
4f14bcd8 30256ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30260
8284b0c5 30261
4f14bcd8
GD
30262
30263for ac_func in strtok_r
10f2d63a 30264do
e6cc62c6
VS
30265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30266echo "$as_me:$LINENO: checking for $ac_func" >&5
30267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30268if eval "test \"\${$as_ac_var+set}\" = set"; then
30269 echo $ECHO_N "(cached) $ECHO_C" >&6
30270else
30271 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30272/* confdefs.h. */
30273_ACEOF
30274cat confdefs.h >>conftest.$ac_ext
30275cat >>conftest.$ac_ext <<_ACEOF
30276/* end confdefs.h. */
eea650d8
VS
30277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30279#define $ac_func innocuous_$ac_func
30280
4f14bcd8 30281/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30282 which can conflict with char $ac_func (); below.
30283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30284 <limits.h> exists even on freestanding compilers. */
eea650d8 30285
e6cc62c6
VS
30286#ifdef __STDC__
30287# include <limits.h>
30288#else
30289# include <assert.h>
30290#endif
eea650d8
VS
30291
30292#undef $ac_func
30293
4f14bcd8
GD
30294/* Override any gcc2 internal prototype to avoid an error. */
30295#ifdef __cplusplus
30296extern "C"
e6cc62c6 30297{
4f14bcd8
GD
30298#endif
30299/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30300 builtin and then its argument prototype would still apply. */
30301char $ac_func ();
4f14bcd8
GD
30302/* The GNU C library defines this for functions which it implements
30303 to always fail with ENOSYS. Some functions are actually named
30304 something starting with __ and the normal name is an alias. */
30305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30306choke me
30307#else
e6cc62c6
VS
30308char (*f) () = $ac_func;
30309#endif
30310#ifdef __cplusplus
30311}
4f14bcd8
GD
30312#endif
30313
e6cc62c6
VS
30314int
30315main ()
30316{
30317return f != $ac_func;
30318 ;
30319 return 0;
30320}
30321_ACEOF
30322rm -f conftest.$ac_objext conftest$ac_exeext
30323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30324 (eval $ac_link) 2>conftest.er1
e6cc62c6 30325 ac_status=$?
eea650d8
VS
30326 grep -v '^ *+' conftest.er1 >conftest.err
30327 rm -f conftest.er1
30328 cat conftest.err >&5
e6cc62c6
VS
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); } &&
eea650d8
VS
30331 { ac_try='test -z "$ac_cxx_werror_flag"
30332 || test ! -s conftest.err'
30333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30335 ac_status=$?
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; } &&
30338 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
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); }; }; then
30344 eval "$as_ac_var=yes"
30345else
30346 echo "$as_me: failed program was:" >&5
30347sed 's/^/| /' conftest.$ac_ext >&5
30348
30349eval "$as_ac_var=no"
30350fi
eea650d8
VS
30351rm -f conftest.err conftest.$ac_objext \
30352 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30353fi
30354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30356if test `eval echo '${'$as_ac_var'}'` = yes; then
30357 cat >>confdefs.h <<_ACEOF
30358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30359_ACEOF
4f14bcd8 30360
10f2d63a
VZ
30361fi
30362done
30363
8284b0c5 30364
4f14bcd8 30365ac_ext=c
4f14bcd8 30366ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30369ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 30370
5c6fa7d2 30371
8284b0c5 30372INET_LINK=
e6cc62c6 30373
4f14bcd8
GD
30374for ac_func in inet_addr
30375do
e6cc62c6
VS
30376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30377echo "$as_me:$LINENO: checking for $ac_func" >&5
30378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30379if eval "test \"\${$as_ac_var+set}\" = set"; then
30380 echo $ECHO_N "(cached) $ECHO_C" >&6
30381else
30382 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30383/* confdefs.h. */
30384_ACEOF
30385cat confdefs.h >>conftest.$ac_ext
30386cat >>conftest.$ac_ext <<_ACEOF
30387/* end confdefs.h. */
eea650d8
VS
30388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30390#define $ac_func innocuous_$ac_func
30391
4f14bcd8 30392/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30393 which can conflict with char $ac_func (); below.
30394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30395 <limits.h> exists even on freestanding compilers. */
eea650d8 30396
e6cc62c6
VS
30397#ifdef __STDC__
30398# include <limits.h>
30399#else
30400# include <assert.h>
30401#endif
eea650d8
VS
30402
30403#undef $ac_func
30404
10f2d63a 30405/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30406#ifdef __cplusplus
30407extern "C"
30408{
30409#endif
10f2d63a 30410/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30411 builtin and then its argument prototype would still apply. */
30412char $ac_func ();
4f14bcd8
GD
30413/* The GNU C library defines this for functions which it implements
30414 to always fail with ENOSYS. Some functions are actually named
30415 something starting with __ and the normal name is an alias. */
30416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30417choke me
30418#else
e6cc62c6
VS
30419char (*f) () = $ac_func;
30420#endif
30421#ifdef __cplusplus
30422}
4f14bcd8
GD
30423#endif
30424
e6cc62c6
VS
30425int
30426main ()
30427{
30428return f != $ac_func;
30429 ;
30430 return 0;
30431}
30432_ACEOF
30433rm -f conftest.$ac_objext conftest$ac_exeext
30434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30435 (eval $ac_link) 2>conftest.er1
e6cc62c6 30436 ac_status=$?
eea650d8
VS
30437 grep -v '^ *+' conftest.er1 >conftest.err
30438 rm -f conftest.er1
30439 cat conftest.err >&5
e6cc62c6
VS
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); } &&
eea650d8
VS
30442 { ac_try='test -z "$ac_c_werror_flag"
30443 || test ! -s conftest.err'
30444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445 (eval $ac_try) 2>&5
30446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; } &&
30449 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30451 (eval $ac_try) 2>&5
30452 ac_status=$?
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); }; }; then
30455 eval "$as_ac_var=yes"
30456else
30457 echo "$as_me: failed program was:" >&5
30458sed 's/^/| /' conftest.$ac_ext >&5
30459
30460eval "$as_ac_var=no"
30461fi
eea650d8
VS
30462rm -f conftest.err conftest.$ac_objext \
30463 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30464fi
30465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30466echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30467if test `eval echo '${'$as_ac_var'}'` = yes; then
30468 cat >>confdefs.h <<_ACEOF
30469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30470_ACEOF
30471 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30472#define HAVE_INET_ADDR 1
e6cc62c6 30473_ACEOF
10f2d63a
VZ
30474
30475else
e6cc62c6
VS
30476
30477 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30478echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30479if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30481else
e6cc62c6 30482 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30483LIBS="-lnsl $LIBS"
e6cc62c6 30484cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30485/* confdefs.h. */
30486_ACEOF
30487cat confdefs.h >>conftest.$ac_ext
30488cat >>conftest.$ac_ext <<_ACEOF
30489/* end confdefs.h. */
30490
10f2d63a 30491/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30492#ifdef __cplusplus
30493extern "C"
30494#endif
10f2d63a 30495/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30496 builtin and then its argument prototype would still apply. */
30497char inet_addr ();
30498int
30499main ()
30500{
30501inet_addr ();
30502 ;
30503 return 0;
30504}
30505_ACEOF
30506rm -f conftest.$ac_objext conftest$ac_exeext
30507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30508 (eval $ac_link) 2>conftest.er1
e6cc62c6 30509 ac_status=$?
eea650d8
VS
30510 grep -v '^ *+' conftest.er1 >conftest.err
30511 rm -f conftest.er1
30512 cat conftest.err >&5
e6cc62c6
VS
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); } &&
eea650d8
VS
30515 { ac_try='test -z "$ac_c_werror_flag"
30516 || test ! -s conftest.err'
30517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30518 (eval $ac_try) 2>&5
30519 ac_status=$?
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); }; } &&
30522 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30524 (eval $ac_try) 2>&5
30525 ac_status=$?
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }; }; then
30528 ac_cv_lib_nsl_inet_addr=yes
30529else
30530 echo "$as_me: failed program was:" >&5
30531sed 's/^/| /' conftest.$ac_ext >&5
30532
30533ac_cv_lib_nsl_inet_addr=no
30534fi
eea650d8
VS
30535rm -f conftest.err conftest.$ac_objext \
30536 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30537LIBS=$ac_check_lib_save_LIBS
30538fi
30539echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30540echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30541if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 30542 INET_LINK="nsl"
10f2d63a 30543else
0e012a93
VZ
30544
30545 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
30546echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30547if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30548 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30549else
e6cc62c6 30550 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30551LIBS="-lresolv $LIBS"
e6cc62c6 30552cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30553/* confdefs.h. */
30554_ACEOF
30555cat confdefs.h >>conftest.$ac_ext
30556cat >>conftest.$ac_ext <<_ACEOF
30557/* end confdefs.h. */
30558
5c6fa7d2 30559/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30560#ifdef __cplusplus
30561extern "C"
30562#endif
5c6fa7d2 30563/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30564 builtin and then its argument prototype would still apply. */
30565char inet_addr ();
30566int
30567main ()
30568{
30569inet_addr ();
30570 ;
30571 return 0;
30572}
30573_ACEOF
30574rm -f conftest.$ac_objext conftest$ac_exeext
30575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30576 (eval $ac_link) 2>conftest.er1
e6cc62c6 30577 ac_status=$?
eea650d8
VS
30578 grep -v '^ *+' conftest.er1 >conftest.err
30579 rm -f conftest.er1
30580 cat conftest.err >&5
e6cc62c6
VS
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); } &&
eea650d8
VS
30583 { ac_try='test -z "$ac_c_werror_flag"
30584 || test ! -s conftest.err'
30585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30586 (eval $ac_try) 2>&5
30587 ac_status=$?
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); }; } &&
30590 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592 (eval $ac_try) 2>&5
30593 ac_status=$?
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; }; then
30596 ac_cv_lib_resolv_inet_addr=yes
30597else
30598 echo "$as_me: failed program was:" >&5
30599sed 's/^/| /' conftest.$ac_ext >&5
30600
30601ac_cv_lib_resolv_inet_addr=no
30602fi
eea650d8
VS
30603rm -f conftest.err conftest.$ac_objext \
30604 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30605LIBS=$ac_check_lib_save_LIBS
30606fi
30607echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30608echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30609if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 30610 INET_LINK="resolv"
698dcdb6 30611else
0e012a93
VZ
30612
30613 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
30614echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30615if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30616 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 30617else
e6cc62c6 30618 ac_check_lib_save_LIBS=$LIBS
3c011993 30619LIBS="-lsocket $LIBS"
e6cc62c6 30620cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30621/* confdefs.h. */
30622_ACEOF
30623cat confdefs.h >>conftest.$ac_ext
30624cat >>conftest.$ac_ext <<_ACEOF
30625/* end confdefs.h. */
30626
3c011993 30627/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30628#ifdef __cplusplus
30629extern "C"
30630#endif
3c011993 30631/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30632 builtin and then its argument prototype would still apply. */
30633char inet_addr ();
30634int
30635main ()
30636{
30637inet_addr ();
30638 ;
30639 return 0;
30640}
30641_ACEOF
30642rm -f conftest.$ac_objext conftest$ac_exeext
30643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30644 (eval $ac_link) 2>conftest.er1
e6cc62c6 30645 ac_status=$?
eea650d8
VS
30646 grep -v '^ *+' conftest.er1 >conftest.err
30647 rm -f conftest.er1
30648 cat conftest.err >&5
e6cc62c6
VS
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); } &&
eea650d8
VS
30651 { ac_try='test -z "$ac_c_werror_flag"
30652 || test ! -s conftest.err'
30653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654 (eval $ac_try) 2>&5
30655 ac_status=$?
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; } &&
30658 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660 (eval $ac_try) 2>&5
30661 ac_status=$?
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); }; }; then
30664 ac_cv_lib_socket_inet_addr=yes
30665else
30666 echo "$as_me: failed program was:" >&5
30667sed 's/^/| /' conftest.$ac_ext >&5
30668
30669ac_cv_lib_socket_inet_addr=no
30670fi
eea650d8
VS
30671rm -f conftest.err conftest.$ac_objext \
30672 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30673LIBS=$ac_check_lib_save_LIBS
30674fi
30675echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30676echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30677if test $ac_cv_lib_socket_inet_addr = yes; then
30678 INET_LINK="socket"
4f14bcd8 30679
8284b0c5 30680fi
e6cc62c6 30681
698dcdb6 30682
0e012a93 30683
7b4a847f 30684fi
e6cc62c6
VS
30685
30686
0e012a93 30687
a0b9e27f 30688fi
579d8138 30689
e6cc62c6
VS
30690
30691
5c6fa7d2 30692fi
e6cc62c6
VS
30693done
30694
30695
30696
30697for ac_func in inet_aton
30698do
30699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30700echo "$as_me:$LINENO: checking for $ac_func" >&5
30701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30702if eval "test \"\${$as_ac_var+set}\" = set"; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30706/* confdefs.h. */
30707_ACEOF
30708cat confdefs.h >>conftest.$ac_ext
30709cat >>conftest.$ac_ext <<_ACEOF
30710/* end confdefs.h. */
eea650d8
VS
30711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30713#define $ac_func innocuous_$ac_func
30714
e6cc62c6
VS
30715/* System header to define __stub macros and hopefully few prototypes,
30716 which can conflict with char $ac_func (); below.
30717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30718 <limits.h> exists even on freestanding compilers. */
eea650d8 30719
e6cc62c6
VS
30720#ifdef __STDC__
30721# include <limits.h>
30722#else
30723# include <assert.h>
30724#endif
eea650d8
VS
30725
30726#undef $ac_func
30727
e6cc62c6
VS
30728/* Override any gcc2 internal prototype to avoid an error. */
30729#ifdef __cplusplus
30730extern "C"
30731{
30732#endif
30733/* We use char because int might match the return type of a gcc2
30734 builtin and then its argument prototype would still apply. */
30735char $ac_func ();
30736/* The GNU C library defines this for functions which it implements
30737 to always fail with ENOSYS. Some functions are actually named
30738 something starting with __ and the normal name is an alias. */
30739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30740choke me
30741#else
30742char (*f) () = $ac_func;
30743#endif
30744#ifdef __cplusplus
30745}
30746#endif
30747
30748int
30749main ()
30750{
30751return f != $ac_func;
30752 ;
30753 return 0;
30754}
30755_ACEOF
30756rm -f conftest.$ac_objext conftest$ac_exeext
30757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30758 (eval $ac_link) 2>conftest.er1
e6cc62c6 30759 ac_status=$?
eea650d8
VS
30760 grep -v '^ *+' conftest.er1 >conftest.err
30761 rm -f conftest.er1
30762 cat conftest.err >&5
e6cc62c6
VS
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } &&
eea650d8
VS
30765 { ac_try='test -z "$ac_c_werror_flag"
30766 || test ! -s conftest.err'
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774 (eval $ac_try) 2>&5
30775 ac_status=$?
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; }; then
30778 eval "$as_ac_var=yes"
30779else
30780 echo "$as_me: failed program was:" >&5
30781sed 's/^/| /' conftest.$ac_ext >&5
30782
30783eval "$as_ac_var=no"
30784fi
eea650d8
VS
30785rm -f conftest.err conftest.$ac_objext \
30786 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30787fi
30788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30790if test `eval echo '${'$as_ac_var'}'` = yes; then
30791 cat >>confdefs.h <<_ACEOF
30792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30793_ACEOF
30794 cat >>confdefs.h <<\_ACEOF
30795#define HAVE_INET_ATON 1
30796_ACEOF
30797
30798else
30799
30800 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30801echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30802echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30803if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30804 echo $ECHO_N "(cached) $ECHO_C" >&6
30805else
30806 ac_check_lib_save_LIBS=$LIBS
30807LIBS="-l$INET_LINK $LIBS"
30808cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30809/* confdefs.h. */
30810_ACEOF
30811cat confdefs.h >>conftest.$ac_ext
30812cat >>conftest.$ac_ext <<_ACEOF
30813/* end confdefs.h. */
30814
30815/* Override any gcc2 internal prototype to avoid an error. */
30816#ifdef __cplusplus
30817extern "C"
30818#endif
30819/* We use char because int might match the return type of a gcc2
30820 builtin and then its argument prototype would still apply. */
30821char inet_aton ();
30822int
30823main ()
30824{
30825inet_aton ();
30826 ;
30827 return 0;
30828}
30829_ACEOF
30830rm -f conftest.$ac_objext conftest$ac_exeext
30831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30832 (eval $ac_link) 2>conftest.er1
e6cc62c6 30833 ac_status=$?
eea650d8
VS
30834 grep -v '^ *+' conftest.er1 >conftest.err
30835 rm -f conftest.er1
30836 cat conftest.err >&5
e6cc62c6
VS
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); } &&
eea650d8
VS
30839 { ac_try='test -z "$ac_c_werror_flag"
30840 || test ! -s conftest.err'
30841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30842 (eval $ac_try) 2>&5
30843 ac_status=$?
30844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845 (exit $ac_status); }; } &&
30846 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848 (eval $ac_try) 2>&5
30849 ac_status=$?
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; }; then
30852 eval "$as_ac_Lib=yes"
30853else
30854 echo "$as_me: failed program was:" >&5
30855sed 's/^/| /' conftest.$ac_ext >&5
30856
30857eval "$as_ac_Lib=no"
30858fi
eea650d8
VS
30859rm -f conftest.err conftest.$ac_objext \
30860 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30861LIBS=$ac_check_lib_save_LIBS
30862fi
30863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30864echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30865if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30866 cat >>confdefs.h <<\_ACEOF
30867#define HAVE_INET_ATON 1
30868_ACEOF
52127426 30869
a0b9e27f 30870fi
247f5006 30871
8284b0c5 30872
698dcdb6 30873fi
4f14bcd8
GD
30874done
30875
8284b0c5 30876
e6cc62c6
VS
30877if test "x$INET_LINK" != "x"; then
30878 cat >>confdefs.h <<\_ACEOF
30879#define HAVE_INET_ADDR 1
30880_ACEOF
30881
30882 INET_LINK=" -l$INET_LINK"
30883fi
30884
30885fi
a0b9e27f 30886
a0b9e27f 30887
4f14bcd8 30888
edd891e2
VS
30889EXTRALIBS_ESD=
30890echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
30891echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
30892if test "${ac_cv_lib_esd_esd_close+set}" = set; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30894else
30895 ac_check_lib_save_LIBS=$LIBS
30896LIBS="-lesd $LIBS"
30897cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
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 esd_close ();
30911int
30912main ()
30913{
30914esd_close ();
30915 ;
30916 return 0;
30917}
30918_ACEOF
30919rm -f conftest.$ac_objext conftest$ac_exeext
30920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30921 (eval $ac_link) 2>conftest.er1
edd891e2 30922 ac_status=$?
eea650d8
VS
30923 grep -v '^ *+' conftest.er1 >conftest.err
30924 rm -f conftest.er1
30925 cat conftest.err >&5
edd891e2
VS
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); } &&
eea650d8
VS
30928 { ac_try='test -z "$ac_c_werror_flag"
30929 || test ! -s conftest.err'
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'
edd891e2
VS
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_esd_esd_close=yes
30942else
30943 echo "$as_me: failed program was:" >&5
30944sed 's/^/| /' conftest.$ac_ext >&5
30945
30946ac_cv_lib_esd_esd_close=no
30947fi
eea650d8
VS
30948rm -f conftest.err conftest.$ac_objext \
30949 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
30950LIBS=$ac_check_lib_save_LIBS
30951fi
30952echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
30953echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
30954if test $ac_cv_lib_esd_esd_close = yes; then
30955
30956
30957for ac_header in esd.h
30958do
30959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30960if eval "test \"\${$as_ac_Header+set}\" = set"; then
30961 echo "$as_me:$LINENO: checking for $ac_header" >&5
30962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30963if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
30964 echo $ECHO_N "(cached) $ECHO_C" >&6
30965fi
edd891e2
VS
30966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
30968else
30969 # Is the header compilable?
edd891e2
VS
30970echo "$as_me:$LINENO: checking $ac_header usability" >&5
30971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 30972cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30973/* confdefs.h. */
30974_ACEOF
30975cat confdefs.h >>conftest.$ac_ext
30976cat >>conftest.$ac_ext <<_ACEOF
30977/* end confdefs.h. */
30978$ac_includes_default
edd891e2 30979#include <$ac_header>
e6cc62c6
VS
30980_ACEOF
30981rm -f conftest.$ac_objext
30982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 30983 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30984 ac_status=$?
eea650d8
VS
30985 grep -v '^ *+' conftest.er1 >conftest.err
30986 rm -f conftest.er1
30987 cat conftest.err >&5
e6cc62c6
VS
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } &&
eea650d8
VS
30990 { ac_try='test -z "$ac_c_werror_flag"
30991 || test ! -s conftest.err'
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; } &&
30997 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 ac_header_compiler=yes
31004else
31005 echo "$as_me: failed program was:" >&5
31006sed 's/^/| /' conftest.$ac_ext >&5
31007
31008ac_header_compiler=no
31009fi
eea650d8 31010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31012echo "${ECHO_T}$ac_header_compiler" >&6
31013
31014# Is the header present?
edd891e2
VS
31015echo "$as_me:$LINENO: checking $ac_header presence" >&5
31016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31017cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31018/* confdefs.h. */
31019_ACEOF
31020cat confdefs.h >>conftest.$ac_ext
31021cat >>conftest.$ac_ext <<_ACEOF
31022/* end confdefs.h. */
edd891e2 31023#include <$ac_header>
e6cc62c6
VS
31024_ACEOF
31025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31026 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
31033 if test -s conftest.err; then
31034 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 31035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31036 else
31037 ac_cpp_err=
31038 fi
a0b9e27f 31039else
e6cc62c6
VS
31040 ac_cpp_err=yes
31041fi
31042if test -z "$ac_cpp_err"; then
31043 ac_header_preproc=yes
31044else
31045 echo "$as_me: failed program was:" >&5
31046sed 's/^/| /' conftest.$ac_ext >&5
31047
31048 ac_header_preproc=no
31049fi
31050rm -f conftest.err conftest.$ac_ext
31051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31052echo "${ECHO_T}$ac_header_preproc" >&6
31053
31054# So? What about this header?
eea650d8
VS
31055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31056 yes:no: )
edd891e2
VS
31057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
31059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31061 ac_header_preproc=yes
e6cc62c6 31062 ;;
eea650d8 31063 no:yes:* )
edd891e2
VS
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
31066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
31074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31076 (
31077 cat <<\_ASBOX
eea650d8
VS
31078## ----------------------------------------- ##
31079## Report this to wx-dev@lists.wxwindows.org ##
31080## ----------------------------------------- ##
e6cc62c6
VS
31081_ASBOX
31082 ) |
31083 sed "s/^/$as_me: WARNING: /" >&2
31084 ;;
31085esac
edd891e2
VS
31086echo "$as_me:$LINENO: checking for $ac_header" >&5
31087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31088if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31089 echo $ECHO_N "(cached) $ECHO_C" >&6
31090else
eea650d8 31091 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31092fi
edd891e2
VS
31093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31095
e6cc62c6 31096fi
edd891e2
VS
31097if test `eval echo '${'$as_ac_Header'}'` = yes; then
31098 cat >>confdefs.h <<_ACEOF
31099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31100_ACEOF
e6cc62c6 31101
edd891e2 31102 EXTRALIBS_ESD="-lesd"
4f14bcd8 31103
a0b9e27f 31104fi
247f5006 31105
edd891e2 31106done
8284b0c5 31107
4f14bcd8 31108
6232543b 31109fi
10f2d63a 31110
703e0a69 31111
8284b0c5 31112
d19d1899
MB
31113echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31114echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31115cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31116/* confdefs.h. */
31117_ACEOF
31118cat confdefs.h >>conftest.$ac_ext
31119cat >>conftest.$ac_ext <<_ACEOF
31120/* end confdefs.h. */
31121#ifdef __linux__
31122 #include <linux/cdrom.h>
31123 #else
31124 /* For Solaris */
31125 #include <sys/cdio.h>
31126 #endif
31127
31128int
31129main ()
31130{
31131struct cdrom_tocentry entry, old_entry;
31132 ;
31133 return 0;
31134}
31135_ACEOF
31136rm -f conftest.$ac_objext
31137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31138 (eval $ac_compile) 2>conftest.er1
d19d1899 31139 ac_status=$?
eea650d8
VS
31140 grep -v '^ *+' conftest.er1 >conftest.err
31141 rm -f conftest.er1
31142 cat conftest.err >&5
d19d1899
MB
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); } &&
eea650d8
VS
31145 { ac_try='test -z "$ac_c_werror_flag"
31146 || test ! -s conftest.err'
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; } &&
31152 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 echo "$as_me:$LINENO: result: yes" >&5
31159echo "${ECHO_T}yes" >&6
31160 cat >>confdefs.h <<\_ACEOF
31161#define HAVE_KNOWN_CDROM_INTERFACE 1
31162_ACEOF
31163
31164else
31165 echo "$as_me: failed program was:" >&5
31166sed 's/^/| /' conftest.$ac_ext >&5
31167
31168echo "$as_me:$LINENO: result: no" >&5
31169echo "${ECHO_T}no" >&6
31170fi
eea650d8 31171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31172
31173
31174cat >confcache <<\_ACEOF
4f14bcd8
GD
31175# This file is a shell script that caches the results of configure
31176# tests run on this system so they can be shared between configure
e6cc62c6
VS
31177# scripts and configure runs, see configure's option --config-cache.
31178# It is not useful on other systems. If it contains results you don't
31179# want to keep, you may remove or edit it.
4f14bcd8 31180#
e6cc62c6
VS
31181# config.status only pays attention to the cache file if you give it
31182# the --recheck option to rerun configure.
4f14bcd8 31183#
e6cc62c6
VS
31184# `ac_cv_env_foo' variables (set or unset) will be overridden when
31185# loading this file, other *unset* `ac_cv_foo' will be assigned the
31186# following values.
31187
31188_ACEOF
31189
4f14bcd8
GD
31190# The following way of writing the cache mishandles newlines in values,
31191# but we know of no workaround that is simple, portable, and efficient.
31192# So, don't put newlines in cache variables' values.
31193# Ultrix sh set writes to stderr and can't be redirected directly,
31194# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31195{
31196 (set) 2>&1 |
31197 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31198 *ac_space=\ *)
31199 # `set' does not quote correctly, so add quotes (double-quote
31200 # substitution turns \\\\ into \\, and sed turns \\ into \).
31201 sed -n \
eea650d8
VS
31202 "s/'/'\\\\''/g;
31203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31204 ;;
31205 *)
31206 # `set' quotes correctly as required by POSIX, so do not add quotes.
31207 sed -n \
eea650d8 31208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31209 ;;
31210 esac;
31211} |
31212 sed '
31213 t clear
31214 : clear
31215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31216 t end
31217 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31218 : end' >>confcache
31219if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31220 if test -w $cache_file; then
e6cc62c6
VS
31221 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31222 cat confcache >$cache_file
f6bcfd97 31223 else
4f14bcd8 31224 echo "not updating unwritable cache $cache_file"
f6bcfd97 31225 fi
4f14bcd8
GD
31226fi
31227rm -f confcache
f6bcfd97 31228
8284b0c5 31229
009fead0 31230CPP_MT_FLAG=
73d617c9 31231if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31232
e6cc62c6 31233
7274f1c7 31234 THREADS_LINK=
009fead0 31235 THREADS_CFLAGS=
7274f1c7
RL
31236
31237 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31238 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31239 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31240echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31241 wxUSE_THREADS="no"
31242 fi
4f14bcd8 31243 fi
4f14bcd8 31244
7274f1c7 31245 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31246
31247
009fead0
VZ
31248 THREAD_OPTS="-pthread"
31249 case "${host}" in
31250 *-*-solaris2* | *-*-sunos4* )
31251 if test "x$GCC" = "xyes"; then
126be6b4 31252 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31253 else
31254 THREAD_OPTS="-mt $THREAD_OPTS"
31255 fi
31256 ;;
31257 *-*-freebsd*)
31258 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31259 ;;
17234b26
MB
31260 *-*-darwin* | *-*-cygwin* )
31261 THREAD_OPTS=""
4101db81 31262 ;;
8f4a9a10 31263 *-*-aix*)
009fead0
VZ
31264 THREAD_OPTS="pthreads"
31265 ;;
4f5a7f74
VZ
31266 *-hp-hpux* )
31267 if test "x$GCC" != "xyes"; then
31268 THREAD_OPTS=""
31269 fi
89e3b3e4
VZ
31270 ;;
31271
31272 *-*-irix* )
31273 if test "x$GCC" = "xyes"; then
31274 THREAD_OPTS=""
31275 fi
31276 ;;
31277
31278 *-*-*UnixWare*)
31279 if test "x$GCC" != "xyes"; then
31280 THREAD_OPTS="-Ethread"
31281 fi
31282 ;;
009fead0 31283 esac
4f14bcd8 31284
02a1dfba 31285 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31286
009fead0
VZ
31287 THREADS_OK=no
31288 for flag in $THREAD_OPTS; do
31289 case $flag in
31290 none)
e6cc62c6
VS
31291 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31292echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31293 ;;
698dcdb6 31294
009fead0 31295 -*)
e6cc62c6
VS
31296 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31297echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31298 THREADS_CFLAGS="$flag"
31299 ;;
698dcdb6 31300
009fead0 31301 *)
e6cc62c6
VS
31302 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31303echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31304 THREADS_LINK="-l$flag"
31305 ;;
31306 esac
10f2d63a 31307
009fead0
VZ
31308 save_LIBS="$LIBS"
31309 save_CFLAGS="$CFLAGS"
31310 LIBS="$THREADS_LINK $LIBS"
04727afd 31311 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31312
e6cc62c6 31313 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31314/* confdefs.h. */
31315_ACEOF
31316cat confdefs.h >>conftest.$ac_ext
31317cat >>conftest.$ac_ext <<_ACEOF
31318/* end confdefs.h. */
009fead0 31319#include <pthread.h>
e6cc62c6
VS
31320int
31321main ()
31322{
009fead0 31323pthread_create(0,0,0,0);
e6cc62c6
VS
31324 ;
31325 return 0;
31326}
31327_ACEOF
31328rm -f conftest.$ac_objext conftest$ac_exeext
31329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31330 (eval $ac_link) 2>conftest.er1
e6cc62c6 31331 ac_status=$?
eea650d8
VS
31332 grep -v '^ *+' conftest.er1 >conftest.err
31333 rm -f conftest.er1
31334 cat conftest.err >&5
e6cc62c6
VS
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); } &&
eea650d8
VS
31337 { ac_try='test -z "$ac_c_werror_flag"
31338 || test ! -s conftest.err'
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; } &&
31344 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; }; then
009fead0 31350 THREADS_OK=yes
10f2d63a 31351else
e6cc62c6
VS
31352 echo "$as_me: failed program was:" >&5
31353sed 's/^/| /' conftest.$ac_ext >&5
31354
6232543b 31355fi
eea650d8
VS
31356rm -f conftest.err conftest.$ac_objext \
31357 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31358
009fead0
VZ
31359 LIBS="$save_LIBS"
31360 CFLAGS="$save_CFLAGS"
d9b9876f 31361
e6cc62c6
VS
31362 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31363echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31364 if test "x$THREADS_OK" = "xyes"; then
31365 break;
31366 fi
d9b9876f 31367
009fead0
VZ
31368 THREADS_LINK=""
31369 THREADS_CFLAGS=""
31370 done
4f14bcd8 31371
009fead0
VZ
31372 if test "x$THREADS_OK" != "xyes"; then
31373 wxUSE_THREADS=no
e6cc62c6
VS
31374 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31375echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 31376 else
db82f09e
VZ
31377 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31378 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 31379
e6cc62c6
VS
31380 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31381echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
31382 flag=no
31383 case "${host}" in
2b5f62a0
VZ
31384 *-aix*)
31385 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31386 flag="-D_THREAD_SAFE"
31387 ;;
31388 *-freebsd*)
009fead0
VZ
31389 flag="-D_THREAD_SAFE"
31390 ;;
06313569
GD
31391 *-hp-hpux* )
31392 flag="-D_REENTRANT"
4f5a7f74
VZ
31393 if test "x$GCC" != "xyes"; then
31394 flag="$flag -D_RWSTD_MULTI_THREAD"
31395 fi
06313569 31396 ;;
009fead0
VZ
31397 *solaris* | alpha*-osf*)
31398 flag="-D_REENTRANT"
31399 ;;
31400 esac
e6cc62c6
VS
31401 echo "$as_me:$LINENO: result: ${flag}" >&5
31402echo "${ECHO_T}${flag}" >&6
009fead0 31403 if test "x$flag" != xno; then
04727afd 31404 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
31405 fi
31406
009fead0 31407 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 31408 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
31409 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31410 fi
31411 fi
4f14bcd8 31412 fi
4f14bcd8 31413
7274f1c7 31414 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31415
31416for ac_func in thr_setconcurrency
4f14bcd8 31417do
e6cc62c6
VS
31418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31419echo "$as_me:$LINENO: checking for $ac_func" >&5
31420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31421if eval "test \"\${$as_ac_var+set}\" = set"; then
31422 echo $ECHO_N "(cached) $ECHO_C" >&6
31423else
31424 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31425/* confdefs.h. */
31426_ACEOF
31427cat confdefs.h >>conftest.$ac_ext
31428cat >>conftest.$ac_ext <<_ACEOF
31429/* end confdefs.h. */
eea650d8
VS
31430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31432#define $ac_func innocuous_$ac_func
31433
4f14bcd8 31434/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31435 which can conflict with char $ac_func (); below.
31436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31437 <limits.h> exists even on freestanding compilers. */
eea650d8 31438
e6cc62c6
VS
31439#ifdef __STDC__
31440# include <limits.h>
31441#else
31442# include <assert.h>
31443#endif
eea650d8
VS
31444
31445#undef $ac_func
31446
4f14bcd8 31447/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31448#ifdef __cplusplus
31449extern "C"
31450{
31451#endif
4f14bcd8 31452/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31453 builtin and then its argument prototype would still apply. */
31454char $ac_func ();
4f14bcd8
GD
31455/* The GNU C library defines this for functions which it implements
31456 to always fail with ENOSYS. Some functions are actually named
31457 something starting with __ and the normal name is an alias. */
31458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31459choke me
31460#else
e6cc62c6
VS
31461char (*f) () = $ac_func;
31462#endif
31463#ifdef __cplusplus
31464}
4f14bcd8
GD
31465#endif
31466
e6cc62c6
VS
31467int
31468main ()
31469{
31470return f != $ac_func;
31471 ;
31472 return 0;
31473}
31474_ACEOF
31475rm -f conftest.$ac_objext conftest$ac_exeext
31476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31477 (eval $ac_link) 2>conftest.er1
e6cc62c6 31478 ac_status=$?
eea650d8
VS
31479 grep -v '^ *+' conftest.er1 >conftest.err
31480 rm -f conftest.er1
31481 cat conftest.err >&5
e6cc62c6
VS
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } &&
eea650d8
VS
31484 { ac_try='test -z "$ac_c_werror_flag"
31485 || test ! -s conftest.err'
31486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; } &&
31491 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31494 ac_status=$?
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; }; then
31497 eval "$as_ac_var=yes"
31498else
31499 echo "$as_me: failed program was:" >&5
31500sed 's/^/| /' conftest.$ac_ext >&5
31501
31502eval "$as_ac_var=no"
31503fi
eea650d8
VS
31504rm -f conftest.err conftest.$ac_objext \
31505 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31506fi
31507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31509if test `eval echo '${'$as_ac_var'}'` = yes; then
31510 cat >>confdefs.h <<_ACEOF
31511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31512_ACEOF
698dcdb6 31513
10f2d63a 31514fi
4f14bcd8 31515done
10f2d63a 31516
8284b0c5 31517
e6cc62c6
VS
31518
31519for ac_header in sched.h
4f14bcd8 31520do
e6cc62c6
VS
31521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31522if eval "test \"\${$as_ac_Header+set}\" = set"; then
31523 echo "$as_me:$LINENO: checking for $ac_header" >&5
31524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31525if eval "test \"\${$as_ac_Header+set}\" = set"; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527fi
31528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31530else
31531 # Is the header compilable?
31532echo "$as_me:$LINENO: checking $ac_header usability" >&5
31533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31534cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31535/* confdefs.h. */
31536_ACEOF
31537cat confdefs.h >>conftest.$ac_ext
31538cat >>conftest.$ac_ext <<_ACEOF
31539/* end confdefs.h. */
31540$ac_includes_default
31541#include <$ac_header>
31542_ACEOF
31543rm -f conftest.$ac_objext
31544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31545 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31546 ac_status=$?
eea650d8
VS
31547 grep -v '^ *+' conftest.er1 >conftest.err
31548 rm -f conftest.er1
31549 cat conftest.err >&5
e6cc62c6
VS
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); } &&
eea650d8
VS
31552 { ac_try='test -z "$ac_c_werror_flag"
31553 || test ! -s conftest.err'
31554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31555 (eval $ac_try) 2>&5
31556 ac_status=$?
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); }; } &&
31559 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561 (eval $ac_try) 2>&5
31562 ac_status=$?
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); }; }; then
31565 ac_header_compiler=yes
31566else
31567 echo "$as_me: failed program was:" >&5
31568sed 's/^/| /' conftest.$ac_ext >&5
31569
31570ac_header_compiler=no
31571fi
eea650d8 31572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31574echo "${ECHO_T}$ac_header_compiler" >&6
31575
31576# Is the header present?
31577echo "$as_me:$LINENO: checking $ac_header presence" >&5
31578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31579cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31580/* confdefs.h. */
31581_ACEOF
31582cat confdefs.h >>conftest.$ac_ext
31583cat >>conftest.$ac_ext <<_ACEOF
31584/* end confdefs.h. */
31585#include <$ac_header>
31586_ACEOF
31587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31589 ac_status=$?
31590 grep -v '^ *+' conftest.er1 >conftest.err
31591 rm -f conftest.er1
31592 cat conftest.err >&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } >/dev/null; then
31595 if test -s conftest.err; then
31596 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 31597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31598 else
31599 ac_cpp_err=
31600 fi
31601else
31602 ac_cpp_err=yes
31603fi
31604if test -z "$ac_cpp_err"; then
31605 ac_header_preproc=yes
31606else
31607 echo "$as_me: failed program was:" >&5
31608sed 's/^/| /' conftest.$ac_ext >&5
31609
31610 ac_header_preproc=no
31611fi
31612rm -f conftest.err conftest.$ac_ext
31613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31614echo "${ECHO_T}$ac_header_preproc" >&6
31615
31616# So? What about this header?
eea650d8
VS
31617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31618 yes:no: )
e6cc62c6
VS
31619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
31621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31623 ac_header_preproc=yes
e6cc62c6 31624 ;;
eea650d8 31625 no:yes:* )
e6cc62c6
VS
31626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
31628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
31634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
31636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31638 (
31639 cat <<\_ASBOX
eea650d8
VS
31640## ----------------------------------------- ##
31641## Report this to wx-dev@lists.wxwindows.org ##
31642## ----------------------------------------- ##
e6cc62c6
VS
31643_ASBOX
31644 ) |
31645 sed "s/^/$as_me: WARNING: /" >&2
31646 ;;
31647esac
31648echo "$as_me:$LINENO: checking for $ac_header" >&5
31649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31650if eval "test \"\${$as_ac_Header+set}\" = set"; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31652else
eea650d8 31653 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 31654fi
e6cc62c6
VS
31655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31657
10f2d63a 31658fi
e6cc62c6
VS
31659if test `eval echo '${'$as_ac_Header'}'` = yes; then
31660 cat >>confdefs.h <<_ACEOF
31661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31662_ACEOF
31663
f6bcfd97 31664fi
e6cc62c6 31665
4f14bcd8 31666done
f6bcfd97 31667
009fead0 31668 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
31669 echo "$as_me:$LINENO: checking for sched_yield" >&5
31670echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31671if test "${ac_cv_func_sched_yield+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
31674 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31675/* confdefs.h. */
31676_ACEOF
31677cat confdefs.h >>conftest.$ac_ext
31678cat >>conftest.$ac_ext <<_ACEOF
31679/* end confdefs.h. */
eea650d8
VS
31680/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31682#define sched_yield innocuous_sched_yield
31683
009fead0 31684/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31685 which can conflict with char sched_yield (); below.
31686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31687 <limits.h> exists even on freestanding compilers. */
eea650d8 31688
e6cc62c6
VS
31689#ifdef __STDC__
31690# include <limits.h>
31691#else
31692# include <assert.h>
31693#endif
eea650d8
VS
31694
31695#undef sched_yield
31696
4f14bcd8 31697/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31698#ifdef __cplusplus
31699extern "C"
31700{
31701#endif
4f14bcd8 31702/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31703 builtin and then its argument prototype would still apply. */
31704char sched_yield ();
009fead0
VZ
31705/* The GNU C library defines this for functions which it implements
31706 to always fail with ENOSYS. Some functions are actually named
31707 something starting with __ and the normal name is an alias. */
31708#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
31709choke me
31710#else
e6cc62c6
VS
31711char (*f) () = sched_yield;
31712#endif
31713#ifdef __cplusplus
31714}
009fead0
VZ
31715#endif
31716
e6cc62c6
VS
31717int
31718main ()
31719{
31720return f != sched_yield;
31721 ;
31722 return 0;
31723}
31724_ACEOF
31725rm -f conftest.$ac_objext conftest$ac_exeext
31726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31727 (eval $ac_link) 2>conftest.er1
e6cc62c6 31728 ac_status=$?
eea650d8
VS
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
e6cc62c6
VS
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
eea650d8
VS
31734 { ac_try='test -z "$ac_c_werror_flag"
31735 || test ! -s conftest.err'
31736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737 (eval $ac_try) 2>&5
31738 ac_status=$?
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; } &&
31741 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
31747 ac_cv_func_sched_yield=yes
31748else
31749 echo "$as_me: failed program was:" >&5
31750sed 's/^/| /' conftest.$ac_ext >&5
31751
31752ac_cv_func_sched_yield=no
31753fi
eea650d8
VS
31754rm -f conftest.err conftest.$ac_objext \
31755 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31756fi
31757echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
31758echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
31759if test $ac_cv_func_sched_yield = yes; then
31760 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31761#define HAVE_SCHED_YIELD 1
e6cc62c6 31762_ACEOF
10f2d63a 31763
4f14bcd8 31764else
009fead0 31765
e6cc62c6
VS
31766 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
31767echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
31768if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
31769 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 31770else
e6cc62c6 31771 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31772LIBS="-lposix4 $LIBS"
e6cc62c6 31773cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31774/* confdefs.h. */
31775_ACEOF
31776cat confdefs.h >>conftest.$ac_ext
31777cat >>conftest.$ac_ext <<_ACEOF
31778/* end confdefs.h. */
31779
4f14bcd8 31780/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31781#ifdef __cplusplus
31782extern "C"
31783#endif
4f14bcd8 31784/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31785 builtin and then its argument prototype would still apply. */
31786char sched_yield ();
31787int
31788main ()
31789{
31790sched_yield ();
31791 ;
31792 return 0;
31793}
31794_ACEOF
31795rm -f conftest.$ac_objext conftest$ac_exeext
31796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31797 (eval $ac_link) 2>conftest.er1
e6cc62c6 31798 ac_status=$?
eea650d8
VS
31799 grep -v '^ *+' conftest.er1 >conftest.err
31800 rm -f conftest.er1
31801 cat conftest.err >&5
e6cc62c6
VS
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); } &&
eea650d8
VS
31804 { ac_try='test -z "$ac_c_werror_flag"
31805 || test ! -s conftest.err'
31806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807 (eval $ac_try) 2>&5
31808 ac_status=$?
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); }; } &&
31811 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31813 (eval $ac_try) 2>&5
31814 ac_status=$?
31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816 (exit $ac_status); }; }; then
31817 ac_cv_lib_posix4_sched_yield=yes
31818else
31819 echo "$as_me: failed program was:" >&5
31820sed 's/^/| /' conftest.$ac_ext >&5
31821
31822ac_cv_lib_posix4_sched_yield=no
31823fi
eea650d8
VS
31824rm -f conftest.err conftest.$ac_objext \
31825 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31826LIBS=$ac_check_lib_save_LIBS
31827fi
31828echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31829echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31830if test $ac_cv_lib_posix4_sched_yield = yes; then
31831 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31832#define HAVE_SCHED_YIELD 1
e6cc62c6 31833_ACEOF
3d63bc3a 31834 POSIX4_LINK=" -lposix4"
4f14bcd8 31835else
e6cc62c6
VS
31836 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31837echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31838
54276ccf
VZ
31839fi
31840
e6cc62c6
VS
31841
31842
4f14bcd8 31843fi
698dcdb6 31844
009fead0 31845 fi
10f2d63a 31846
7274f1c7 31847 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
31848 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31849echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31850if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31852else
31853 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31854/* confdefs.h. */
31855_ACEOF
31856cat confdefs.h >>conftest.$ac_ext
31857cat >>conftest.$ac_ext <<_ACEOF
31858/* end confdefs.h. */
eea650d8
VS
31859/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
31860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31861#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
31862
009fead0 31863/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31864 which can conflict with char pthread_attr_getschedpolicy (); below.
31865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31866 <limits.h> exists even on freestanding compilers. */
eea650d8 31867
e6cc62c6
VS
31868#ifdef __STDC__
31869# include <limits.h>
31870#else
31871# include <assert.h>
31872#endif
eea650d8
VS
31873
31874#undef pthread_attr_getschedpolicy
31875
4f14bcd8 31876/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31877#ifdef __cplusplus
31878extern "C"
31879{
31880#endif
4f14bcd8 31881/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31882 builtin and then its argument prototype would still apply. */
31883char pthread_attr_getschedpolicy ();
009fead0
VZ
31884/* The GNU C library defines this for functions which it implements
31885 to always fail with ENOSYS. Some functions are actually named
31886 something starting with __ and the normal name is an alias. */
31887#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
31888choke me
31889#else
e6cc62c6
VS
31890char (*f) () = pthread_attr_getschedpolicy;
31891#endif
31892#ifdef __cplusplus
31893}
009fead0
VZ
31894#endif
31895
e6cc62c6
VS
31896int
31897main ()
31898{
31899return f != pthread_attr_getschedpolicy;
31900 ;
31901 return 0;
31902}
31903_ACEOF
31904rm -f conftest.$ac_objext conftest$ac_exeext
31905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31906 (eval $ac_link) 2>conftest.er1
e6cc62c6 31907 ac_status=$?
eea650d8
VS
31908 grep -v '^ *+' conftest.er1 >conftest.err
31909 rm -f conftest.er1
31910 cat conftest.err >&5
e6cc62c6
VS
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); } &&
eea650d8
VS
31913 { ac_try='test -z "$ac_c_werror_flag"
31914 || test ! -s conftest.err'
31915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31916 (eval $ac_try) 2>&5
31917 ac_status=$?
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; } &&
31920 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922 (eval $ac_try) 2>&5
31923 ac_status=$?
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); }; }; then
31926 ac_cv_func_pthread_attr_getschedpolicy=yes
31927else
31928 echo "$as_me: failed program was:" >&5
31929sed 's/^/| /' conftest.$ac_ext >&5
31930
31931ac_cv_func_pthread_attr_getschedpolicy=no
31932fi
eea650d8
VS
31933rm -f conftest.err conftest.$ac_objext \
31934 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31935fi
31936echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
31937echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
31938if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
31939 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
31940echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
31941if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
31942 echo $ECHO_N "(cached) $ECHO_C" >&6
31943else
31944 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31945/* confdefs.h. */
31946_ACEOF
31947cat confdefs.h >>conftest.$ac_ext
31948cat >>conftest.$ac_ext <<_ACEOF
31949/* end confdefs.h. */
eea650d8
VS
31950/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
31951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31952#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
31953
a0b9e27f 31954/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31955 which can conflict with char pthread_attr_setschedparam (); below.
31956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31957 <limits.h> exists even on freestanding compilers. */
eea650d8 31958
e6cc62c6
VS
31959#ifdef __STDC__
31960# include <limits.h>
31961#else
31962# include <assert.h>
31963#endif
eea650d8
VS
31964
31965#undef pthread_attr_setschedparam
31966
422107f9 31967/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31968#ifdef __cplusplus
31969extern "C"
31970{
31971#endif
422107f9 31972/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31973 builtin and then its argument prototype would still apply. */
31974char pthread_attr_setschedparam ();
009fead0
VZ
31975/* The GNU C library defines this for functions which it implements
31976 to always fail with ENOSYS. Some functions are actually named
31977 something starting with __ and the normal name is an alias. */
31978#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
31979choke me
31980#else
e6cc62c6
VS
31981char (*f) () = pthread_attr_setschedparam;
31982#endif
31983#ifdef __cplusplus
31984}
009fead0
VZ
31985#endif
31986
e6cc62c6
VS
31987int
31988main ()
31989{
31990return f != pthread_attr_setschedparam;
31991 ;
31992 return 0;
31993}
31994_ACEOF
31995rm -f conftest.$ac_objext conftest$ac_exeext
31996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31997 (eval $ac_link) 2>conftest.er1
e6cc62c6 31998 ac_status=$?
eea650d8
VS
31999 grep -v '^ *+' conftest.er1 >conftest.err
32000 rm -f conftest.er1
32001 cat conftest.err >&5
e6cc62c6
VS
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
eea650d8
VS
32004 { ac_try='test -z "$ac_c_werror_flag"
32005 || test ! -s conftest.err'
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32008 ac_status=$?
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; } &&
32011 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
32014 ac_status=$?
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; }; then
32017 ac_cv_func_pthread_attr_setschedparam=yes
32018else
32019 echo "$as_me: failed program was:" >&5
32020sed 's/^/| /' conftest.$ac_ext >&5
32021
32022ac_cv_func_pthread_attr_setschedparam=no
32023fi
eea650d8
VS
32024rm -f conftest.err conftest.$ac_objext \
32025 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32026fi
32027echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32028echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32029if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32030 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32031echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32032if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32033 echo $ECHO_N "(cached) $ECHO_C" >&6
32034else
32035 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32036/* confdefs.h. */
32037_ACEOF
32038cat confdefs.h >>conftest.$ac_ext
32039cat >>conftest.$ac_ext <<_ACEOF
32040/* end confdefs.h. */
eea650d8
VS
32041/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32043#define sched_get_priority_max innocuous_sched_get_priority_max
32044
ef33c576 32045/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32046 which can conflict with char sched_get_priority_max (); below.
32047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32048 <limits.h> exists even on freestanding compilers. */
eea650d8 32049
e6cc62c6
VS
32050#ifdef __STDC__
32051# include <limits.h>
32052#else
32053# include <assert.h>
32054#endif
eea650d8
VS
32055
32056#undef sched_get_priority_max
32057
4f14bcd8 32058/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32059#ifdef __cplusplus
32060extern "C"
32061{
32062#endif
4f14bcd8 32063/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32064 builtin and then its argument prototype would still apply. */
32065char sched_get_priority_max ();
009fead0
VZ
32066/* The GNU C library defines this for functions which it implements
32067 to always fail with ENOSYS. Some functions are actually named
32068 something starting with __ and the normal name is an alias. */
32069#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32070choke me
32071#else
e6cc62c6
VS
32072char (*f) () = sched_get_priority_max;
32073#endif
32074#ifdef __cplusplus
32075}
009fead0
VZ
32076#endif
32077
e6cc62c6
VS
32078int
32079main ()
32080{
32081return f != sched_get_priority_max;
32082 ;
32083 return 0;
32084}
32085_ACEOF
32086rm -f conftest.$ac_objext conftest$ac_exeext
32087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32088 (eval $ac_link) 2>conftest.er1
e6cc62c6 32089 ac_status=$?
eea650d8
VS
32090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
e6cc62c6
VS
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
eea650d8
VS
32095 { ac_try='test -z "$ac_c_werror_flag"
32096 || test ! -s conftest.err'
32097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098 (eval $ac_try) 2>&5
32099 ac_status=$?
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); }; } &&
32102 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104 (eval $ac_try) 2>&5
32105 ac_status=$?
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; }; then
32108 ac_cv_func_sched_get_priority_max=yes
32109else
32110 echo "$as_me: failed program was:" >&5
32111sed 's/^/| /' conftest.$ac_ext >&5
32112
32113ac_cv_func_sched_get_priority_max=no
32114fi
eea650d8
VS
32115rm -f conftest.err conftest.$ac_objext \
32116 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32117fi
32118echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32119echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32120if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32121 HAVE_PRIOR_FUNCS=1
32122else
e6cc62c6
VS
32123 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32124echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32125if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32127else
e6cc62c6 32128 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32129LIBS="-lposix4 $LIBS"
e6cc62c6 32130cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32131/* confdefs.h. */
32132_ACEOF
32133cat confdefs.h >>conftest.$ac_ext
32134cat >>conftest.$ac_ext <<_ACEOF
32135/* end confdefs.h. */
32136
422107f9 32137/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32138#ifdef __cplusplus
32139extern "C"
32140#endif
422107f9 32141/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32142 builtin and then its argument prototype would still apply. */
32143char sched_get_priority_max ();
32144int
32145main ()
32146{
32147sched_get_priority_max ();
32148 ;
32149 return 0;
32150}
32151_ACEOF
32152rm -f conftest.$ac_objext conftest$ac_exeext
32153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32154 (eval $ac_link) 2>conftest.er1
e6cc62c6 32155 ac_status=$?
eea650d8
VS
32156 grep -v '^ *+' conftest.er1 >conftest.err
32157 rm -f conftest.er1
32158 cat conftest.err >&5
e6cc62c6
VS
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); } &&
eea650d8
VS
32161 { ac_try='test -z "$ac_c_werror_flag"
32162 || test ! -s conftest.err'
32163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164 (eval $ac_try) 2>&5
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; } &&
32168 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32170 (eval $ac_try) 2>&5
32171 ac_status=$?
32172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); }; }; then
32174 ac_cv_lib_posix4_sched_get_priority_max=yes
32175else
32176 echo "$as_me: failed program was:" >&5
32177sed 's/^/| /' conftest.$ac_ext >&5
32178
32179ac_cv_lib_posix4_sched_get_priority_max=no
32180fi
eea650d8
VS
32181rm -f conftest.err conftest.$ac_objext \
32182 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32183LIBS=$ac_check_lib_save_LIBS
32184fi
32185echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32186echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32187if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32188
7274f1c7
RL
32189 HAVE_PRIOR_FUNCS=1
32190 POSIX4_LINK=" -lposix4"
e6cc62c6 32191
4f14bcd8 32192fi
463abc64 32193
e6cc62c6 32194
328a083c 32195fi
463abc64 32196
e6cc62c6 32197
7b4a847f 32198fi
579d8138 32199
e6cc62c6 32200
5c6fa7d2 32201fi
52127426 32202
8284b0c5 32203
7274f1c7 32204 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32205 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32206#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32207_ACEOF
463abc64 32208
7274f1c7 32209 else
e6cc62c6
VS
32210 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32211echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32212 fi
463abc64 32213
e6cc62c6
VS
32214 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32215echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32216if test "${ac_cv_func_pthread_cancel+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32218else
32219 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32220/* confdefs.h. */
32221_ACEOF
32222cat confdefs.h >>conftest.$ac_ext
32223cat >>conftest.$ac_ext <<_ACEOF
32224/* end confdefs.h. */
eea650d8
VS
32225/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32227#define pthread_cancel innocuous_pthread_cancel
32228
009fead0 32229/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32230 which can conflict with char pthread_cancel (); below.
32231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32232 <limits.h> exists even on freestanding compilers. */
eea650d8 32233
e6cc62c6
VS
32234#ifdef __STDC__
32235# include <limits.h>
32236#else
32237# include <assert.h>
32238#endif
eea650d8
VS
32239
32240#undef pthread_cancel
32241
422107f9 32242/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32243#ifdef __cplusplus
32244extern "C"
32245{
32246#endif
422107f9 32247/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32248 builtin and then its argument prototype would still apply. */
32249char pthread_cancel ();
009fead0
VZ
32250/* The GNU C library defines this for functions which it implements
32251 to always fail with ENOSYS. Some functions are actually named
32252 something starting with __ and the normal name is an alias. */
32253#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32254choke me
32255#else
e6cc62c6
VS
32256char (*f) () = pthread_cancel;
32257#endif
32258#ifdef __cplusplus
32259}
009fead0
VZ
32260#endif
32261
e6cc62c6
VS
32262int
32263main ()
32264{
32265return f != pthread_cancel;
32266 ;
32267 return 0;
32268}
32269_ACEOF
32270rm -f conftest.$ac_objext conftest$ac_exeext
32271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32272 (eval $ac_link) 2>conftest.er1
e6cc62c6 32273 ac_status=$?
eea650d8
VS
32274 grep -v '^ *+' conftest.er1 >conftest.err
32275 rm -f conftest.er1
32276 cat conftest.err >&5
e6cc62c6
VS
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } &&
eea650d8
VS
32279 { ac_try='test -z "$ac_c_werror_flag"
32280 || test ! -s conftest.err'
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32283 ac_status=$?
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; } &&
32286 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; }; then
32292 ac_cv_func_pthread_cancel=yes
32293else
32294 echo "$as_me: failed program was:" >&5
32295sed 's/^/| /' conftest.$ac_ext >&5
32296
32297ac_cv_func_pthread_cancel=no
32298fi
eea650d8
VS
32299rm -f conftest.err conftest.$ac_objext \
32300 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32301fi
32302echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32303echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32304if test $ac_cv_func_pthread_cancel = yes; then
32305 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32306#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32307_ACEOF
4f14bcd8 32308
698dcdb6 32309else
e6cc62c6
VS
32310 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32311echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32312fi
32313
5c6fa7d2 32314
4f14bcd8 32315
e6cc62c6
VS
32316
32317 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32318echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32319if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32321else
e6cc62c6
VS
32322
32323 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32324/* confdefs.h. */
32325_ACEOF
32326cat confdefs.h >>conftest.$ac_ext
32327cat >>conftest.$ac_ext <<_ACEOF
32328/* end confdefs.h. */
4f14bcd8 32329#include <pthread.h>
e6cc62c6
VS
32330int
32331main ()
32332{
4f14bcd8 32333
7274f1c7
RL
32334 pthread_mutexattr_t attr;
32335 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32336
32337 ;
32338 return 0;
32339}
32340_ACEOF
32341rm -f conftest.$ac_objext
32342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32343 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32344 ac_status=$?
eea650d8
VS
32345 grep -v '^ *+' conftest.er1 >conftest.err
32346 rm -f conftest.er1
32347 cat conftest.err >&5
e6cc62c6
VS
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); } &&
eea650d8
VS
32350 { ac_try='test -z "$ac_c_werror_flag"
32351 || test ! -s conftest.err'
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32354 ac_status=$?
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; } &&
32357 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359 (eval $ac_try) 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; }; then
32363
7274f1c7 32364 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32365
3fed1840 32366else
e6cc62c6
VS
32367 echo "$as_me: failed program was:" >&5
32368sed 's/^/| /' conftest.$ac_ext >&5
32369
32370
7274f1c7 32371 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
32372
32373
247f5006 32374fi
eea650d8 32375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32376
e6cc62c6
VS
32377fi
32378echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32379echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 32380
7274f1c7 32381 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 32382 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32383#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 32384_ACEOF
4f14bcd8 32385
7274f1c7 32386 else
e6cc62c6
VS
32387 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32388echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32389if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32391else
32392
32393 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32394/* confdefs.h. */
32395_ACEOF
32396cat confdefs.h >>conftest.$ac_ext
32397cat >>conftest.$ac_ext <<_ACEOF
32398/* end confdefs.h. */
4f14bcd8 32399#include <pthread.h>
e6cc62c6
VS
32400int
32401main ()
32402{
4f14bcd8 32403
7274f1c7 32404 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
32405
32406 ;
32407 return 0;
32408}
32409_ACEOF
32410rm -f conftest.$ac_objext
32411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32412 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32413 ac_status=$?
eea650d8
VS
32414 grep -v '^ *+' conftest.er1 >conftest.err
32415 rm -f conftest.er1
32416 cat conftest.err >&5
e6cc62c6
VS
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); } &&
eea650d8
VS
32419 { ac_try='test -z "$ac_c_werror_flag"
32420 || test ! -s conftest.err'
32421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32422 (eval $ac_try) 2>&5
32423 ac_status=$?
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; } &&
32426 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32428 (eval $ac_try) 2>&5
32429 ac_status=$?
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; }; then
32432
7274f1c7 32433 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 32434
698dcdb6 32435else
e6cc62c6
VS
32436 echo "$as_me: failed program was:" >&5
32437sed 's/^/| /' conftest.$ac_ext >&5
32438
32439
7274f1c7 32440 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
32441
32442
247f5006 32443fi
eea650d8 32444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32445
e6cc62c6
VS
32446fi
32447echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32448echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 32449 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 32450 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32451#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 32452_ACEOF
3fed1840 32453
7274f1c7 32454 else
e6cc62c6
VS
32455 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32456echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
32457 fi
32458 fi
7274f1c7 32459 fi
3fed1840 32460
a0b9e27f
MB
32461else
32462 if test "$wxUSE_THREADS" = "yes" ; then
32463 case "${host}" in
32464 *-*-mingw32* )
e6cc62c6
VS
32465 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32466echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32467if test "${wx_cv_cflags_mthread+set}" = set; then
32468 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 32469else
e6cc62c6 32470
ca8e52b3
VZ
32471 CFLAGS_OLD="$CFLAGS"
32472 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 32473 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32474/* confdefs.h. */
32475_ACEOF
32476cat confdefs.h >>conftest.$ac_ext
32477cat >>conftest.$ac_ext <<_ACEOF
32478/* end confdefs.h. */
32479
32480int
32481main ()
32482{
ca8e52b3 32483
e6cc62c6
VS
32484 ;
32485 return 0;
32486}
32487_ACEOF
32488rm -f conftest.$ac_objext
32489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32490 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32491 ac_status=$?
eea650d8
VS
32492 grep -v '^ *+' conftest.er1 >conftest.err
32493 rm -f conftest.er1
32494 cat conftest.err >&5
e6cc62c6
VS
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } &&
eea650d8
VS
32497 { ac_try='test -z "$ac_c_werror_flag"
32498 || test ! -s conftest.err'
32499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500 (eval $ac_try) 2>&5
32501 ac_status=$?
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); }; } &&
32504 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506 (eval $ac_try) 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
ca8e52b3
VZ
32510 wx_cv_cflags_mthread=yes
32511else
e6cc62c6
VS
32512 echo "$as_me: failed program was:" >&5
32513sed 's/^/| /' conftest.$ac_ext >&5
32514
32515wx_cv_cflags_mthread=no
32516
ca8e52b3 32517fi
eea650d8 32518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32519
ca8e52b3 32520
e6cc62c6
VS
32521fi
32522echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32523echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
32524
32525 if test "$wx_cv_cflags_mthread" = "yes"; then
32526 CXXFLAGS="$CXXFLAGS -mthreads"
32527 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32528 LDFLAGS="$LDFLAGS -mthreads"
32529 else
32530 CFLAGS="$CFLAGS_OLD"
32531 fi
a0b9e27f 32532 ;;
73d617c9
MB
32533 *-pc-os2*emx )
32534 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32535 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32536 LDFLAGS="$LDFLAGS -Zmt"
32537 ;;
a0b9e27f
MB
32538 esac
32539 fi
4f14bcd8
GD
32540fi
32541
32542if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 32543 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32544#define wxUSE_THREADS 1
e6cc62c6 32545_ACEOF
7b6058cd 32546
8284b0c5 32547
4f14bcd8 32548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 32549else
4f14bcd8 32550 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
32551 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32552echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
32553 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32554 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
32555 echo "$as_me:$LINENO: result: yes" >&5
32556echo "${ECHO_T}yes" >&6
4f14bcd8 32557 else
e6cc62c6
VS
32558 echo "$as_me:$LINENO: result: no" >&5
32559echo "${ECHO_T}no" >&6
4f14bcd8
GD
32560 fi
32561 fi
32562fi
32563
32564if test "$WXGTK20" = 1 ; then
e6cc62c6 32565 cat >>confdefs.h <<_ACEOF
4f14bcd8 32566#define __WXGTK20__ $WXGTK20
e6cc62c6 32567_ACEOF
4f14bcd8
GD
32568
32569 WXGTK12=1
10f2d63a 32570fi
4f14bcd8
GD
32571
32572if test "$WXGTK12" = 1 ; then
e6cc62c6 32573 cat >>confdefs.h <<_ACEOF
4f14bcd8 32574#define __WXGTK12__ $WXGTK12
e6cc62c6 32575_ACEOF
4f14bcd8 32576
10f2d63a 32577fi
698dcdb6 32578
4f14bcd8 32579if test "$WXGTK127" = 1 ; then
e6cc62c6 32580 cat >>confdefs.h <<_ACEOF
4f14bcd8 32581#define __WXGTK127__ $WXGTK127
e6cc62c6 32582_ACEOF
4f14bcd8 32583
698dcdb6 32584fi
10f2d63a 32585
4f14bcd8
GD
32586WXDEBUG=
32587
32588if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32589 WXDEBUG="-g"
32590 wxUSE_OPTIMISE=no
698dcdb6 32591fi
4f14bcd8
GD
32592
32593if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32594 wxUSE_DEBUG_INFO=yes
32595 WXDEBUG="-ggdb"
10f2d63a
VZ
32596fi
32597
4f14bcd8 32598if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 32599 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32600#define WXDEBUG 1
e6cc62c6 32601_ACEOF
4f14bcd8
GD
32602
32603 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 32604else
4f14bcd8
GD
32605 if test "$wxUSE_GTK" = 1 ; then
32606 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32607 fi
32608fi
32609
32610if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 32611 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32612#define wxUSE_MEMORY_TRACING 1
e6cc62c6 32613_ACEOF
4f14bcd8 32614
e6cc62c6 32615 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32616#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 32617_ACEOF
4f14bcd8 32618
e6cc62c6 32619 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32620#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 32621_ACEOF
4f14bcd8
GD
32622
32623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32624fi
32625
32626if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 32627 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
32628fi
32629
32630PROFILE=
32631if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 32632 PROFILE=" -pg"
10f2d63a
VZ
32633fi
32634
009fead0
VZ
32635CODE_GEN_FLAGS=
32636CODE_GEN_FLAGS_CXX=
88e30f2b 32637if test "$GCC" = "yes" ; then
4f14bcd8
GD
32638 if test "$wxUSE_NO_RTTI" = "yes" ; then
32639 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 32640 fi
4f14bcd8
GD
32641 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32642 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32643 fi
32644 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32645 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32646 fi
1d1b75ac 32647
2b5f62a0 32648 case "${host}" in
1d1b75ac
VZ
32649 powerpc*-*-aix* )
32650 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32651 ;;
2b5f62a0
VZ
32652 *-hppa* )
32653 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32654 ;;
1d1b75ac 32655 esac
4f14bcd8
GD
32656fi
32657
af7b5345 32658OPTIMISE=
4f14bcd8 32659if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
32660 if test "$GCC" = yes ; then
32661 OPTIMISE="-O0"
32662 fi
4f14bcd8
GD
32663else
32664 if test "$GCC" = yes ; then
32665 OPTIMISE="-O2"
af7b5345
VZ
32666
32667 case "${host}" in
4f14bcd8
GD
32668 i586-*-*|i686-*-* )
32669 OPTIMISE="${OPTIMISE} "
32670 ;;
32671 esac
32672 else
32673 OPTIMISE="-O"
32674 fi
32675fi
32676
8d90d2f2 32677
65d8ef1e 32678if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 32679 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32680#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 32681_ACEOF
4f14bcd8 32682
8d90d2f2
VZ
32683
32684 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
32685fi
32686
65d8ef1e 32687if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 32688 cat >>confdefs.h <<\_ACEOF
65d8ef1e 32689#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 32690_ACEOF
65d8ef1e
VS
32691
32692fi
32693
8284b0c5 32694
10f2d63a 32695if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 32696 cat >>confdefs.h <<\_ACEOF
10f2d63a 32697#define wxUSE_GUI 1
e6cc62c6 32698_ACEOF
10f2d63a 32699
8284b0c5 32700
10f2d63a 32701 else
e6cc62c6 32702 cat >>confdefs.h <<\_ACEOF
10f2d63a 32703#define wxUSE_NOGUI 1
e6cc62c6 32704_ACEOF
10f2d63a
VZ
32705
32706fi
32707
8284b0c5 32708
10f2d63a 32709if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 32710 cat >>confdefs.h <<\_ACEOF
10f2d63a 32711#define wxUSE_UNIX 1
e6cc62c6 32712_ACEOF
10f2d63a
VZ
32713
32714fi
32715
8284b0c5 32716
df5168c4
MB
32717if test "$wxUSE_STL" = "yes"; then
32718 cat >>confdefs.h <<\_ACEOF
32719#define wxUSE_STL 1
32720_ACEOF
32721
32722fi
32723
10f2d63a 32724if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 32725 cat >>confdefs.h <<\_ACEOF
10f2d63a 32726#define wxUSE_APPLE_IEEE 1
e6cc62c6 32727_ACEOF
10f2d63a
VZ
32728
32729fi
32730
1e6feb95 32731if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 32732 cat >>confdefs.h <<\_ACEOF
1e6feb95 32733#define wxUSE_TIMER 1
e6cc62c6 32734_ACEOF
1e6feb95
VZ
32735
32736fi
32737
10f2d63a 32738if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 32739 cat >>confdefs.h <<\_ACEOF
10f2d63a 32740#define wxUSE_WAVE 1
e6cc62c6 32741_ACEOF
10f2d63a
VZ
32742
32743fi
32744
1e6feb95 32745if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 32746 cat >>confdefs.h <<\_ACEOF
1e6feb95 32747#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 32748_ACEOF
1e6feb95
VZ
32749
32750fi
32751
32752if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 32753 cat >>confdefs.h <<\_ACEOF
1e6feb95 32754#define wxUSE_STOPWATCH 1
e6cc62c6 32755_ACEOF
1e6feb95
VZ
32756
32757fi
32758
32759if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 32760 cat >>confdefs.h <<\_ACEOF
1e6feb95 32761#define wxUSE_DATETIME 1
e6cc62c6 32762_ACEOF
1e6feb95
VZ
32763
32764fi
32765
10f2d63a 32766if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 32767 cat >>confdefs.h <<\_ACEOF
10f2d63a 32768#define wxUSE_FILE 1
e6cc62c6 32769_ACEOF
10f2d63a
VZ
32770
32771fi
32772
1e6feb95 32773if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 32774 cat >>confdefs.h <<\_ACEOF
1e6feb95 32775#define wxUSE_FFILE 1
e6cc62c6 32776_ACEOF
1e6feb95
VZ
32777
32778fi
32779
24528b0c 32780if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 32781 cat >>confdefs.h <<\_ACEOF
24528b0c 32782#define wxUSE_FILESYSTEM 1
e6cc62c6 32783_ACEOF
24528b0c
VS
32784
32785fi
32786
10f2d63a 32787if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 32788 cat >>confdefs.h <<\_ACEOF
10f2d63a 32789#define wxUSE_FS_ZIP 1
e6cc62c6 32790_ACEOF
10f2d63a
VZ
32791
32792fi
32793
32794if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 32795 cat >>confdefs.h <<\_ACEOF
10f2d63a 32796#define wxUSE_ZIPSTREAM 1
e6cc62c6 32797_ACEOF
10f2d63a
VZ
32798
32799fi
32800
7015ef3a
VZ
32801if test "$wxUSE_GZSTREAM" = "yes"; then
32802 cat >>confdefs.h <<\_ACEOF
32803#define wxUSE_GZSTREAM 1
32804_ACEOF
32805
32806fi
32807
eb4efbdc 32808if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 32809 cat >>confdefs.h <<\_ACEOF
eb4efbdc 32810#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 32811_ACEOF
eb4efbdc
VZ
32812
32813fi
32814
4f3c5f06 32815if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 32816 cat >>confdefs.h <<\_ACEOF
4f3c5f06 32817#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 32818_ACEOF
4f3c5f06
VZ
32819
32820fi
32821
10f2d63a 32822if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 32823 cat >>confdefs.h <<\_ACEOF
10f2d63a 32824#define wxUSE_BUSYINFO 1
e6cc62c6 32825_ACEOF
10f2d63a
VZ
32826
32827fi
32828
32829if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 32830 cat >>confdefs.h <<\_ACEOF
10f2d63a 32831#define wxUSE_STD_IOSTREAM 1
e6cc62c6 32832_ACEOF
10f2d63a
VZ
32833
32834fi
32835
a3a584a7 32836if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 32837 cat >>confdefs.h <<\_ACEOF
a3a584a7 32838#define wxUSE_TEXTBUFFER 1
e6cc62c6 32839_ACEOF
a3a584a7
VZ
32840
32841fi
32842
10f2d63a 32843if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 32844 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
32845 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32846echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 32847 else
e6cc62c6 32848 cat >>confdefs.h <<\_ACEOF
10f2d63a 32849#define wxUSE_TEXTFILE 1
e6cc62c6 32850_ACEOF
10f2d63a
VZ
32851
32852 fi
32853fi
32854
32855if test "$wxUSE_CONFIG" = "yes" ; then
32856 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
32857 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32858echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 32859 else
e6cc62c6 32860 cat >>confdefs.h <<\_ACEOF
10f2d63a 32861#define wxUSE_CONFIG 1
e6cc62c6 32862_ACEOF
10f2d63a
VZ
32863
32864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32865 fi
32866fi
32867
32868if test "$wxUSE_INTL" = "yes" ; then
32869 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
32870 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32871echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 32872 else
e6cc62c6 32873 cat >>confdefs.h <<\_ACEOF
10f2d63a 32874#define wxUSE_INTL 1
e6cc62c6 32875_ACEOF
10f2d63a
VZ
32876
32877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 32878 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
32879 fi
32880fi
32881
32882if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 32883 cat >>confdefs.h <<\_ACEOF
10f2d63a 32884#define wxUSE_LOG 1
e6cc62c6 32885_ACEOF
10f2d63a 32886
8284b0c5 32887
d73be714 32888 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 32889 cat >>confdefs.h <<\_ACEOF
d73be714 32890#define wxUSE_LOGGUI 1
e6cc62c6 32891_ACEOF
d73be714
VZ
32892
32893 fi
32894
32895 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 32896 cat >>confdefs.h <<\_ACEOF
d73be714 32897#define wxUSE_LOGWINDOW 1
e6cc62c6 32898_ACEOF
69d27ff7
MB
32899
32900 fi
32901
32902 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 32903 cat >>confdefs.h <<\_ACEOF
69d27ff7 32904#define wxUSE_LOG_DIALOG 1
e6cc62c6 32905_ACEOF
d73be714
VZ
32906
32907 fi
10f2d63a
VZ
32908fi
32909
32910if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 32911 cat >>confdefs.h <<\_ACEOF
10f2d63a 32912#define wxUSE_LONGLONG 1
e6cc62c6 32913_ACEOF
10f2d63a
VZ
32914
32915fi
32916
e8f65ba6 32917if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 32918 cat >>confdefs.h <<\_ACEOF
e8f65ba6 32919#define wxUSE_GEOMETRY 1
e6cc62c6 32920_ACEOF
e8f65ba6
RR
32921
32922fi
32923
10f2d63a 32924if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 32925 cat >>confdefs.h <<\_ACEOF
10f2d63a 32926#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 32927_ACEOF
10f2d63a 32928
70f7a477 32929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
32930fi
32931
32932if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 32933 cat >>confdefs.h <<\_ACEOF
10f2d63a 32934#define wxUSE_STREAMS 1
e6cc62c6 32935_ACEOF
10f2d63a
VZ
32936
32937fi
32938
5c6fa7d2 32939
8284b0c5 32940if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
32941
32942for ac_func in strptime
83307f33 32943do
e6cc62c6
VS
32944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32945echo "$as_me:$LINENO: checking for $ac_func" >&5
32946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32947if eval "test \"\${$as_ac_var+set}\" = set"; then
32948 echo $ECHO_N "(cached) $ECHO_C" >&6
32949else
32950 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32951/* confdefs.h. */
32952_ACEOF
32953cat confdefs.h >>conftest.$ac_ext
32954cat >>conftest.$ac_ext <<_ACEOF
32955/* end confdefs.h. */
eea650d8
VS
32956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32958#define $ac_func innocuous_$ac_func
32959
83307f33 32960/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32961 which can conflict with char $ac_func (); below.
32962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32963 <limits.h> exists even on freestanding compilers. */
eea650d8 32964
e6cc62c6
VS
32965#ifdef __STDC__
32966# include <limits.h>
32967#else
32968# include <assert.h>
32969#endif
eea650d8
VS
32970
32971#undef $ac_func
32972
83307f33 32973/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32974#ifdef __cplusplus
32975extern "C"
32976{
32977#endif
83307f33 32978/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32979 builtin and then its argument prototype would still apply. */
32980char $ac_func ();
83307f33
VZ
32981/* The GNU C library defines this for functions which it implements
32982 to always fail with ENOSYS. Some functions are actually named
32983 something starting with __ and the normal name is an alias. */
32984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32985choke me
32986#else
e6cc62c6
VS
32987char (*f) () = $ac_func;
32988#endif
32989#ifdef __cplusplus
32990}
83307f33
VZ
32991#endif
32992
e6cc62c6
VS
32993int
32994main ()
32995{
32996return f != $ac_func;
32997 ;
32998 return 0;
32999}
33000_ACEOF
33001rm -f conftest.$ac_objext conftest$ac_exeext
33002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33003 (eval $ac_link) 2>conftest.er1
e6cc62c6 33004 ac_status=$?
eea650d8
VS
33005 grep -v '^ *+' conftest.er1 >conftest.err
33006 rm -f conftest.er1
33007 cat conftest.err >&5
e6cc62c6
VS
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); } &&
eea650d8
VS
33010 { ac_try='test -z "$ac_c_werror_flag"
33011 || test ! -s conftest.err'
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019 (eval $ac_try) 2>&5
33020 ac_status=$?
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); }; }; then
33023 eval "$as_ac_var=yes"
33024else
33025 echo "$as_me: failed program was:" >&5
33026sed 's/^/| /' conftest.$ac_ext >&5
33027
33028eval "$as_ac_var=no"
33029fi
eea650d8
VS
33030rm -f conftest.err conftest.$ac_objext \
33031 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33032fi
33033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33034echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33035if test `eval echo '${'$as_ac_var'}'` = yes; then
33036 cat >>confdefs.h <<_ACEOF
33037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33038_ACEOF
83307f33 33039
83307f33
VZ
33040fi
33041done
33042
5c6fa7d2 33043
e6cc62c6
VS
33044 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
33045echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
33046if test "${wx_cv_var_timezone+set}" = set; then
33047 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 33048else
e6cc62c6
VS
33049
33050 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33051/* confdefs.h. */
33052_ACEOF
33053cat confdefs.h >>conftest.$ac_ext
33054cat >>conftest.$ac_ext <<_ACEOF
33055/* end confdefs.h. */
360d6699 33056
b4085ce6 33057 #include <time.h>
e6cc62c6
VS
33058
33059int
33060main ()
33061{
360d6699
VZ
33062
33063 int tz;
4f11a343 33064 tz = timezone;
e6cc62c6
VS
33065
33066 ;
33067 return 0;
33068}
33069_ACEOF
33070rm -f conftest.$ac_objext
33071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33072 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33073 ac_status=$?
eea650d8
VS
33074 grep -v '^ *+' conftest.er1 >conftest.err
33075 rm -f conftest.er1
33076 cat conftest.err >&5
e6cc62c6
VS
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); } &&
eea650d8
VS
33079 { ac_try='test -z "$ac_c_werror_flag"
33080 || test ! -s conftest.err'
33081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 (eval $ac_try) 2>&5
33083 ac_status=$?
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; } &&
33086 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33088 (eval $ac_try) 2>&5
33089 ac_status=$?
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); }; }; then
33092
4f11a343 33093 wx_cv_var_timezone=timezone
e6cc62c6 33094
360d6699 33095else
e6cc62c6
VS
33096 echo "$as_me: failed program was:" >&5
33097sed 's/^/| /' conftest.$ac_ext >&5
33098
33099
33100 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33101/* confdefs.h. */
33102_ACEOF
33103cat confdefs.h >>conftest.$ac_ext
33104cat >>conftest.$ac_ext <<_ACEOF
33105/* end confdefs.h. */
360d6699 33106
b4085ce6 33107 #include <time.h>
e6cc62c6
VS
33108
33109int
33110main ()
33111{
360d6699
VZ
33112
33113 int tz;
33114 tz = _timezone;
e6cc62c6
VS
33115
33116 ;
33117 return 0;
33118}
33119_ACEOF
33120rm -f conftest.$ac_objext
33121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33122 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33123 ac_status=$?
eea650d8
VS
33124 grep -v '^ *+' conftest.er1 >conftest.err
33125 rm -f conftest.er1
33126 cat conftest.err >&5
e6cc62c6
VS
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); } &&
eea650d8
VS
33129 { ac_try='test -z "$ac_c_werror_flag"
33130 || test ! -s conftest.err'
33131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132 (eval $ac_try) 2>&5
33133 ac_status=$?
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); }; } &&
33136 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138 (eval $ac_try) 2>&5
33139 ac_status=$?
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; }; then
33142
360d6699 33143 wx_cv_var_timezone=_timezone
e6cc62c6 33144
5357c8e8 33145else
e6cc62c6
VS
33146 echo "$as_me: failed program was:" >&5
33147sed 's/^/| /' conftest.$ac_ext >&5
33148
33149
33150 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33151/* confdefs.h. */
33152_ACEOF
33153cat confdefs.h >>conftest.$ac_ext
33154cat >>conftest.$ac_ext <<_ACEOF
33155/* end confdefs.h. */
5357c8e8 33156
b4085ce6 33157 #include <time.h>
e6cc62c6
VS
33158
33159int
33160main ()
33161{
5357c8e8
VZ
33162
33163 int tz;
4f11a343 33164 tz = __timezone;
e6cc62c6
VS
33165
33166 ;
33167 return 0;
33168}
33169_ACEOF
33170rm -f conftest.$ac_objext
33171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33172 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33173 ac_status=$?
eea650d8
VS
33174 grep -v '^ *+' conftest.er1 >conftest.err
33175 rm -f conftest.er1
33176 cat conftest.err >&5
e6cc62c6
VS
33177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178 (exit $ac_status); } &&
eea650d8
VS
33179 { ac_try='test -z "$ac_c_werror_flag"
33180 || test ! -s conftest.err'
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33188 (eval $ac_try) 2>&5
33189 ac_status=$?
33190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191 (exit $ac_status); }; }; then
33192
4f11a343 33193 wx_cv_var_timezone=__timezone
e6cc62c6 33194
360d6699 33195else
e6cc62c6
VS
33196 echo "$as_me: failed program was:" >&5
33197sed 's/^/| /' conftest.$ac_ext >&5
33198
33199
f9bc1684 33200 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
33201 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
33202echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 33203 fi
e6cc62c6
VS
33204
33205
7b4a847f 33206fi
eea650d8 33207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33208
33209
5c6fa7d2 33210fi
eea650d8 33211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33212
33213
247f5006 33214fi
eea650d8 33215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33216
e6cc62c6
VS
33217
33218fi
33219echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
33220echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 33221
f9bc1684 33222 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 33223 cat >>confdefs.h <<_ACEOF
360d6699 33224#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 33225_ACEOF
360d6699 33226
f9bc1684 33227 fi
698dcdb6 33228
e6cc62c6
VS
33229
33230for ac_func in localtime
afc31813 33231do
e6cc62c6
VS
33232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33233echo "$as_me:$LINENO: checking for $ac_func" >&5
33234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33235if eval "test \"\${$as_ac_var+set}\" = set"; then
33236 echo $ECHO_N "(cached) $ECHO_C" >&6
33237else
33238 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33239/* confdefs.h. */
33240_ACEOF
33241cat confdefs.h >>conftest.$ac_ext
33242cat >>conftest.$ac_ext <<_ACEOF
33243/* end confdefs.h. */
eea650d8
VS
33244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33246#define $ac_func innocuous_$ac_func
33247
afc31813 33248/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33249 which can conflict with char $ac_func (); below.
33250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33251 <limits.h> exists even on freestanding compilers. */
eea650d8 33252
e6cc62c6
VS
33253#ifdef __STDC__
33254# include <limits.h>
33255#else
33256# include <assert.h>
33257#endif
eea650d8
VS
33258
33259#undef $ac_func
33260
afc31813 33261/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33262#ifdef __cplusplus
33263extern "C"
33264{
33265#endif
afc31813 33266/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33267 builtin and then its argument prototype would still apply. */
33268char $ac_func ();
afc31813
VZ
33269/* The GNU C library defines this for functions which it implements
33270 to always fail with ENOSYS. Some functions are actually named
33271 something starting with __ and the normal name is an alias. */
33272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33273choke me
33274#else
e6cc62c6
VS
33275char (*f) () = $ac_func;
33276#endif
33277#ifdef __cplusplus
33278}
afc31813
VZ
33279#endif
33280
e6cc62c6
VS
33281int
33282main ()
33283{
33284return f != $ac_func;
33285 ;
33286 return 0;
33287}
33288_ACEOF
33289rm -f conftest.$ac_objext conftest$ac_exeext
33290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33291 (eval $ac_link) 2>conftest.er1
e6cc62c6 33292 ac_status=$?
eea650d8
VS
33293 grep -v '^ *+' conftest.er1 >conftest.err
33294 rm -f conftest.er1
33295 cat conftest.err >&5
e6cc62c6
VS
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); } &&
eea650d8
VS
33298 { ac_try='test -z "$ac_c_werror_flag"
33299 || test ! -s conftest.err'
33300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301 (eval $ac_try) 2>&5
33302 ac_status=$?
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); }; } &&
33305 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33307 (eval $ac_try) 2>&5
33308 ac_status=$?
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); }; }; then
33311 eval "$as_ac_var=yes"
33312else
33313 echo "$as_me: failed program was:" >&5
33314sed 's/^/| /' conftest.$ac_ext >&5
33315
33316eval "$as_ac_var=no"
33317fi
eea650d8
VS
33318rm -f conftest.err conftest.$ac_objext \
33319 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33320fi
33321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33323if test `eval echo '${'$as_ac_var'}'` = yes; then
33324 cat >>confdefs.h <<_ACEOF
33325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33326_ACEOF
afc31813 33327
afc31813
VZ
33328fi
33329done
33330
5c6fa7d2 33331
8284b0c5 33332 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
33333 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
33334echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
33335if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
33336 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33337else
e6cc62c6
VS
33338
33339 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33340/* confdefs.h. */
33341_ACEOF
33342cat confdefs.h >>conftest.$ac_ext
33343cat >>conftest.$ac_ext <<_ACEOF
33344/* end confdefs.h. */
0470b1e6 33345
b4085ce6 33346 #include <time.h>
e6cc62c6
VS
33347
33348int
33349main ()
33350{
0470b1e6
VZ
33351
33352 struct tm tm;
33353 tm.tm_gmtoff++;
e6cc62c6
VS
33354
33355 ;
33356 return 0;
33357}
33358_ACEOF
33359rm -f conftest.$ac_objext
33360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33361 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33362 ac_status=$?
eea650d8
VS
33363 grep -v '^ *+' conftest.er1 >conftest.err
33364 rm -f conftest.er1
33365 cat conftest.err >&5
e6cc62c6
VS
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); } &&
eea650d8
VS
33368 { ac_try='test -z "$ac_c_werror_flag"
33369 || test ! -s conftest.err'
33370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371 (eval $ac_try) 2>&5
33372 ac_status=$?
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); }; } &&
33375 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33377 (eval $ac_try) 2>&5
33378 ac_status=$?
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; }; then
33381
f03a98d8 33382 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 33383
0470b1e6 33384else
e6cc62c6
VS
33385 echo "$as_me: failed program was:" >&5
33386sed 's/^/| /' conftest.$ac_ext >&5
33387
33388wx_cv_struct_tm_has_gmtoff=no
33389
247f5006 33390fi
eea650d8 33391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33392
e6cc62c6
VS
33393fi
33394echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
33395echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
33396 fi
33397
33398 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 33399 cat >>confdefs.h <<\_ACEOF
6232543b 33400#define WX_GMTOFF_IN_TM 1
e6cc62c6 33401_ACEOF
0470b1e6 33402
3fcdd07b
VZ
33403 fi
33404
e6cc62c6
VS
33405
33406
33407for ac_func in gettimeofday ftime
3fcdd07b 33408do
e6cc62c6
VS
33409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33410echo "$as_me:$LINENO: checking for $ac_func" >&5
33411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33412if eval "test \"\${$as_ac_var+set}\" = set"; then
33413 echo $ECHO_N "(cached) $ECHO_C" >&6
33414else
33415 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33416/* confdefs.h. */
33417_ACEOF
33418cat confdefs.h >>conftest.$ac_ext
33419cat >>conftest.$ac_ext <<_ACEOF
33420/* end confdefs.h. */
eea650d8
VS
33421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33423#define $ac_func innocuous_$ac_func
33424
3fcdd07b 33425/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33426 which can conflict with char $ac_func (); below.
33427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33428 <limits.h> exists even on freestanding compilers. */
eea650d8 33429
e6cc62c6
VS
33430#ifdef __STDC__
33431# include <limits.h>
33432#else
33433# include <assert.h>
33434#endif
eea650d8
VS
33435
33436#undef $ac_func
33437
3fcdd07b 33438/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33439#ifdef __cplusplus
33440extern "C"
33441{
33442#endif
3fcdd07b 33443/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33444 builtin and then its argument prototype would still apply. */
33445char $ac_func ();
3fcdd07b
VZ
33446/* The GNU C library defines this for functions which it implements
33447 to always fail with ENOSYS. Some functions are actually named
33448 something starting with __ and the normal name is an alias. */
33449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33450choke me
33451#else
e6cc62c6
VS
33452char (*f) () = $ac_func;
33453#endif
33454#ifdef __cplusplus
33455}
3fcdd07b
VZ
33456#endif
33457
e6cc62c6
VS
33458int
33459main ()
33460{
33461return f != $ac_func;
33462 ;
33463 return 0;
33464}
33465_ACEOF
33466rm -f conftest.$ac_objext conftest$ac_exeext
33467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33468 (eval $ac_link) 2>conftest.er1
e6cc62c6 33469 ac_status=$?
eea650d8
VS
33470 grep -v '^ *+' conftest.er1 >conftest.err
33471 rm -f conftest.er1
33472 cat conftest.err >&5
e6cc62c6
VS
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
eea650d8
VS
33475 { ac_try='test -z "$ac_c_werror_flag"
33476 || test ! -s conftest.err'
33477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478 (eval $ac_try) 2>&5
33479 ac_status=$?
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); }; } &&
33482 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484 (eval $ac_try) 2>&5
33485 ac_status=$?
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; }; then
33488 eval "$as_ac_var=yes"
33489else
33490 echo "$as_me: failed program was:" >&5
33491sed 's/^/| /' conftest.$ac_ext >&5
33492
33493eval "$as_ac_var=no"
33494fi
eea650d8
VS
33495rm -f conftest.err conftest.$ac_objext \
33496 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33497fi
33498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33500if test `eval echo '${'$as_ac_var'}'` = yes; then
33501 cat >>confdefs.h <<_ACEOF
33502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33503_ACEOF
3fcdd07b 33504 break
3fcdd07b
VZ
33505fi
33506done
33507
698dcdb6 33508
8284b0c5 33509 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
33510 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33511echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33512if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33513 echo $ECHO_N "(cached) $ECHO_C" >&6
33514else
33515
33516
33517
33518 ac_ext=cc
5c6fa7d2 33519ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
33520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 33523
8284b0c5 33524
e6cc62c6 33525 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33526/* confdefs.h. */
33527_ACEOF
33528cat confdefs.h >>conftest.$ac_ext
33529cat >>conftest.$ac_ext <<_ACEOF
33530/* end confdefs.h. */
afc31813
VZ
33531
33532 #include <sys/time.h>
33533 #include <unistd.h>
e6cc62c6
VS
33534
33535int
33536main ()
33537{
afc31813
VZ
33538
33539 struct timeval tv;
776862b4 33540 gettimeofday(&tv, NULL);
e6cc62c6
VS
33541
33542 ;
33543 return 0;
33544}
33545_ACEOF
33546rm -f conftest.$ac_objext
33547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33548 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33549 ac_status=$?
eea650d8
VS
33550 grep -v '^ *+' conftest.er1 >conftest.err
33551 rm -f conftest.er1
33552 cat conftest.err >&5
e6cc62c6
VS
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); } &&
eea650d8
VS
33555 { ac_try='test -z "$ac_cxx_werror_flag"
33556 || test ! -s conftest.err'
33557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558 (eval $ac_try) 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; } &&
33562 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33564 (eval $ac_try) 2>&5
33565 ac_status=$?
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); }; }; then
afc31813 33568 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 33569else
e6cc62c6
VS
33570 echo "$as_me: failed program was:" >&5
33571sed 's/^/| /' conftest.$ac_ext >&5
33572
33573cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33574/* confdefs.h. */
33575_ACEOF
33576cat confdefs.h >>conftest.$ac_ext
33577cat >>conftest.$ac_ext <<_ACEOF
33578/* end confdefs.h. */
afc31813
VZ
33579
33580 #include <sys/time.h>
33581 #include <unistd.h>
e6cc62c6
VS
33582
33583int
33584main ()
33585{
afc31813
VZ
33586
33587 struct timeval tv;
33588 gettimeofday(&tv);
e6cc62c6
VS
33589
33590 ;
33591 return 0;
33592}
33593_ACEOF
33594rm -f conftest.$ac_objext
33595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33596 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33597 ac_status=$?
eea650d8
VS
33598 grep -v '^ *+' conftest.er1 >conftest.err
33599 rm -f conftest.er1
33600 cat conftest.err >&5
e6cc62c6
VS
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } &&
eea650d8
VS
33603 { ac_try='test -z "$ac_cxx_werror_flag"
33604 || test ! -s conftest.err'
33605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33606 (eval $ac_try) 2>&5
33607 ac_status=$?
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); }; } &&
33610 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; }; then
afc31813 33616 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 33617else
e6cc62c6
VS
33618 echo "$as_me: failed program was:" >&5
33619sed 's/^/| /' conftest.$ac_ext >&5
33620
33621
33622 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33623echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 33624 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
33625
33626
10f2d63a 33627fi
eea650d8 33628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33629
10f2d63a 33630fi
eea650d8 33631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
afc31813 33632 ac_ext=c
10f2d63a 33633ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
33634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33636ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 33637
a0b9e27f 33638
e6cc62c6
VS
33639fi
33640echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33641echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 33642
afc31813 33643 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 33644 cat >>confdefs.h <<\_ACEOF
afc31813 33645#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 33646_ACEOF
afc31813
VZ
33647
33648 fi
33649 fi
33650
afc31813
VZ
33651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33652fi
33653
8284b0c5 33654
52127426 33655if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 33656 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
33657 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33658echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33659 wxUSE_SOCKETS="no"
33660 fi
3879ecda
VZ
33661 if test "$wxUSE_COCOA" = "1"; then
33662 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
33663echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
33664 wxUSE_SOCKETS="no"
33665 fi
0feee163 33666fi
b089607b 33667
0feee163
VZ
33668if test "$wxUSE_SOCKETS" = "yes"; then
33669 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33670 echo "$as_me:$LINENO: checking for socket" >&5
33671echo $ECHO_N "checking for socket... $ECHO_C" >&6
33672if test "${ac_cv_func_socket+set}" = set; then
33673 echo $ECHO_N "(cached) $ECHO_C" >&6
33674else
33675 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33676/* confdefs.h. */
33677_ACEOF
33678cat confdefs.h >>conftest.$ac_ext
33679cat >>conftest.$ac_ext <<_ACEOF
33680/* end confdefs.h. */
eea650d8
VS
33681/* Define socket to an innocuous variant, in case <limits.h> declares socket.
33682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33683#define socket innocuous_socket
33684
c63c7106 33685/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33686 which can conflict with char socket (); below.
33687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33688 <limits.h> exists even on freestanding compilers. */
eea650d8 33689
e6cc62c6
VS
33690#ifdef __STDC__
33691# include <limits.h>
33692#else
33693# include <assert.h>
33694#endif
eea650d8
VS
33695
33696#undef socket
33697
c63c7106 33698/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33699#ifdef __cplusplus
33700extern "C"
33701{
33702#endif
c63c7106 33703/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33704 builtin and then its argument prototype would still apply. */
33705char socket ();
c63c7106
VZ
33706/* The GNU C library defines this for functions which it implements
33707 to always fail with ENOSYS. Some functions are actually named
33708 something starting with __ and the normal name is an alias. */
33709#if defined (__stub_socket) || defined (__stub___socket)
33710choke me
33711#else
e6cc62c6
VS
33712char (*f) () = socket;
33713#endif
33714#ifdef __cplusplus
33715}
c63c7106
VZ
33716#endif
33717
e6cc62c6
VS
33718int
33719main ()
33720{
33721return f != socket;
33722 ;
33723 return 0;
33724}
33725_ACEOF
33726rm -f conftest.$ac_objext conftest$ac_exeext
33727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33728 (eval $ac_link) 2>conftest.er1
e6cc62c6 33729 ac_status=$?
eea650d8
VS
33730 grep -v '^ *+' conftest.er1 >conftest.err
33731 rm -f conftest.er1
33732 cat conftest.err >&5
e6cc62c6
VS
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); } &&
eea650d8
VS
33735 { ac_try='test -z "$ac_c_werror_flag"
33736 || test ! -s conftest.err'
33737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33738 (eval $ac_try) 2>&5
33739 ac_status=$?
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); }; } &&
33742 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744 (eval $ac_try) 2>&5
33745 ac_status=$?
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); }; }; then
33748 ac_cv_func_socket=yes
33749else
33750 echo "$as_me: failed program was:" >&5
33751sed 's/^/| /' conftest.$ac_ext >&5
33752
33753ac_cv_func_socket=no
33754fi
eea650d8
VS
33755rm -f conftest.err conftest.$ac_objext \
33756 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33757fi
33758echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33759echo "${ECHO_T}$ac_cv_func_socket" >&6
33760if test $ac_cv_func_socket = yes; then
c63c7106
VZ
33761 :
33762else
0e012a93
VZ
33763
33764 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
33765echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33766if test "${ac_cv_lib_socket_socket+set}" = set; then
33767 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 33768else
e6cc62c6 33769 ac_check_lib_save_LIBS=$LIBS
c63c7106 33770LIBS="-lsocket $LIBS"
e6cc62c6 33771cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33772/* confdefs.h. */
33773_ACEOF
33774cat confdefs.h >>conftest.$ac_ext
33775cat >>conftest.$ac_ext <<_ACEOF
33776/* end confdefs.h. */
33777
c63c7106 33778/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33779#ifdef __cplusplus
33780extern "C"
33781#endif
c63c7106 33782/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33783 builtin and then its argument prototype would still apply. */
33784char socket ();
33785int
33786main ()
33787{
33788socket ();
33789 ;
33790 return 0;
33791}
33792_ACEOF
33793rm -f conftest.$ac_objext conftest$ac_exeext
33794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33795 (eval $ac_link) 2>conftest.er1
e6cc62c6 33796 ac_status=$?
eea650d8
VS
33797 grep -v '^ *+' conftest.er1 >conftest.err
33798 rm -f conftest.er1
33799 cat conftest.err >&5
e6cc62c6
VS
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
eea650d8
VS
33802 { ac_try='test -z "$ac_c_werror_flag"
33803 || test ! -s conftest.err'
33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805 (eval $ac_try) 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } &&
33809 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811 (eval $ac_try) 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; }; then
33815 ac_cv_lib_socket_socket=yes
33816else
33817 echo "$as_me: failed program was:" >&5
33818sed 's/^/| /' conftest.$ac_ext >&5
33819
33820ac_cv_lib_socket_socket=no
33821fi
eea650d8
VS
33822rm -f conftest.err conftest.$ac_objext \
33823 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33824LIBS=$ac_check_lib_save_LIBS
33825fi
33826echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33827echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33828if test $ac_cv_lib_socket_socket = yes; then
d558c907 33829 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
33830 INET_LINK="$INET_LINK -lsocket"
33831 fi
c63c7106 33832else
afc31813 33833
0e012a93 33834 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 33835echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 33836 wxUSE_SOCKETS=no
e6cc62c6
VS
33837
33838
6232543b 33839fi
b089607b 33840
e6cc62c6 33841
0e012a93 33842
1e487827 33843fi
afc31813 33844
3a922bb4 33845 fi
0feee163 33846fi
51a9faba 33847
0feee163
VZ
33848if test "$wxUSE_SOCKETS" = "yes" ; then
33849 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33850 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33851echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33852if test "${wx_cv_type_getsockname3+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33854else
e6cc62c6
VS
33855
33856 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33857/* confdefs.h. */
33858_ACEOF
33859cat confdefs.h >>conftest.$ac_ext
33860cat >>conftest.$ac_ext <<_ACEOF
33861/* end confdefs.h. */
51a9faba 33862
3a922bb4
RL
33863 #include <sys/types.h>
33864 #include <sys/socket.h>
e6cc62c6
VS
33865
33866int
33867main ()
33868{
51a9faba 33869
3a922bb4
RL
33870 socklen_t len;
33871 getsockname(0, 0, &len);
e6cc62c6
VS
33872
33873 ;
33874 return 0;
33875}
33876_ACEOF
33877rm -f conftest.$ac_objext
33878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33879 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33880 ac_status=$?
eea650d8
VS
33881 grep -v '^ *+' conftest.er1 >conftest.err
33882 rm -f conftest.er1
33883 cat conftest.err >&5
e6cc62c6
VS
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } &&
eea650d8
VS
33886 { ac_try='test -z "$ac_c_werror_flag"
33887 || test ! -s conftest.err'
33888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33889 (eval $ac_try) 2>&5
33890 ac_status=$?
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); }; } &&
33893 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33895 (eval $ac_try) 2>&5
33896 ac_status=$?
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); }; }; then
51a9faba 33899 wx_cv_type_getsockname3=socklen_t
afc31813 33900else
e6cc62c6
VS
33901 echo "$as_me: failed program was:" >&5
33902sed 's/^/| /' conftest.$ac_ext >&5
33903
33904
9711d31e
GD
33905 CFLAGS_OLD="$CFLAGS"
33906 if test "$GCC" = yes ; then
33907 CFLAGS="$CFLAGS -Werror"
33908 fi
33909
e6cc62c6 33910 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33911/* confdefs.h. */
33912_ACEOF
33913cat confdefs.h >>conftest.$ac_ext
33914cat >>conftest.$ac_ext <<_ACEOF
33915/* end confdefs.h. */
51a9faba 33916
9711d31e
GD
33917 #include <sys/types.h>
33918 #include <sys/socket.h>
e6cc62c6
VS
33919
33920int
33921main ()
33922{
51a9faba 33923
9711d31e
GD
33924 size_t len;
33925 getsockname(0, 0, &len);
e6cc62c6
VS
33926
33927 ;
33928 return 0;
33929}
33930_ACEOF
33931rm -f conftest.$ac_objext
33932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33933 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33934 ac_status=$?
eea650d8
VS
33935 grep -v '^ *+' conftest.er1 >conftest.err
33936 rm -f conftest.er1
33937 cat conftest.err >&5
e6cc62c6
VS
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); } &&
eea650d8
VS
33940 { ac_try='test -z "$ac_c_werror_flag"
33941 || test ! -s conftest.err'
33942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33943 (eval $ac_try) 2>&5
33944 ac_status=$?
33945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946 (exit $ac_status); }; } &&
33947 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949 (eval $ac_try) 2>&5
33950 ac_status=$?
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); }; }; then
51a9faba 33953 wx_cv_type_getsockname3=size_t
afc31813 33954else
e6cc62c6
VS
33955 echo "$as_me: failed program was:" >&5
33956sed 's/^/| /' conftest.$ac_ext >&5
33957
33958cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33959/* confdefs.h. */
33960_ACEOF
33961cat confdefs.h >>conftest.$ac_ext
33962cat >>conftest.$ac_ext <<_ACEOF
33963/* end confdefs.h. */
51a9faba 33964
9711d31e
GD
33965 #include <sys/types.h>
33966 #include <sys/socket.h>
e6cc62c6
VS
33967
33968int
33969main ()
33970{
51a9faba 33971
9711d31e
GD
33972 int len;
33973 getsockname(0, 0, &len);
e6cc62c6
VS
33974
33975 ;
33976 return 0;
33977}
33978_ACEOF
33979rm -f conftest.$ac_objext
33980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33981 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33982 ac_status=$?
eea650d8
VS
33983 grep -v '^ *+' conftest.er1 >conftest.err
33984 rm -f conftest.er1
33985 cat conftest.err >&5
e6cc62c6
VS
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); } &&
eea650d8
VS
33988 { ac_try='test -z "$ac_c_werror_flag"
33989 || test ! -s conftest.err'
33990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33991 (eval $ac_try) 2>&5
33992 ac_status=$?
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); }; } &&
33995 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33997 (eval $ac_try) 2>&5
33998 ac_status=$?
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; }; then
51a9faba 34001 wx_cv_type_getsockname3=int
afc31813 34002else
e6cc62c6
VS
34003 echo "$as_me: failed program was:" >&5
34004sed 's/^/| /' conftest.$ac_ext >&5
34005
34006wx_cv_type_getsockname3=unknown
34007
afc31813 34008fi
eea650d8 34009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34010
afc31813 34011fi
eea650d8 34012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
34013
34014 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
34015
34016
247f5006 34017fi
eea650d8 34018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 34019
e6cc62c6
VS
34020fi
34021echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
34022echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 34023
3a922bb4
RL
34024 if test "$wx_cv_type_getsockname3" = "unknown"; then
34025 wxUSE_SOCKETS=no
e6cc62c6
VS
34026 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
34027echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 34028 else
e6cc62c6 34029 cat >>confdefs.h <<_ACEOF
51a9faba 34030#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 34031_ACEOF
51a9faba 34032
3a922bb4 34033 fi
51a9faba
VZ
34034 fi
34035fi
afc31813 34036
51a9faba 34037if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 34038 cat >>confdefs.h <<\_ACEOF
afc31813 34039#define wxUSE_SOCKETS 1
e6cc62c6 34040_ACEOF
afc31813 34041
70f7a477 34042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
34043fi
34044
3879ecda
VZ
34045if test "$wxUSE_PROTOCOL" = "yes"; then
34046 if test "$wxUSE_SOCKETS" != "yes"; then
34047 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
34048echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
34049 wxUSE_PROTOCOL=no
34050 fi
34051fi
34052
34053if test "$wxUSE_PROTOCOL" = "yes"; then
34054 cat >>confdefs.h <<\_ACEOF
34055#define wxUSE_PROTOCOL 1
34056_ACEOF
34057
34058
34059 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
34060 cat >>confdefs.h <<\_ACEOF
34061#define wxUSE_PROTOCOL_HTTP 1
34062_ACEOF
34063
34064 fi
34065 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
34066 cat >>confdefs.h <<\_ACEOF
34067#define wxUSE_PROTOCOL_FTP 1
34068_ACEOF
34069
34070 fi
34071 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
34072 cat >>confdefs.h <<\_ACEOF
34073#define wxUSE_PROTOCOL_FILE 1
34074_ACEOF
34075
34076 fi
34077else
34078 if test "$wxUSE_FS_INET" = "yes"; then
34079 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
34080echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
34081 wxUSE_FS_INET="no"
34082 fi
34083fi
34084
34085if test "$wxUSE_URL" = "yes"; then
34086 if test "$wxUSE_PROTOCOL" != "yes"; then
34087 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
34088echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
34089 wxUSE_URL=no
34090 fi
34091 if test "$wxUSE_URL" = "yes"; then
34092 cat >>confdefs.h <<\_ACEOF
34093#define wxUSE_URL 1
34094_ACEOF
34095
34096 fi
34097fi
34098
34099if test "$wxUSE_FS_INET" = "yes"; then
34100 cat >>confdefs.h <<\_ACEOF
34101#define wxUSE_FS_INET 1
34102_ACEOF
34103
34104fi
34105
8284b0c5 34106
dc3d889d
VZ
34107if test "$wxUSE_GUI" = "yes"; then
34108
ac0c4cc3 34109 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
34110 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
34111echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 34112 wxUSE_JOYSTICK=no
156b2523
GD
34113 fi
34114
131f235d 34115 if test "$TOOLKIT" != "MSW"; then
3a922bb4 34116 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
34117
34118for ac_header in linux/joystick.h
10f2d63a 34119do
e6cc62c6
VS
34120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34121if eval "test \"\${$as_ac_Header+set}\" = set"; then
34122 echo "$as_me:$LINENO: checking for $ac_header" >&5
34123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34124if eval "test \"\${$as_ac_Header+set}\" = set"; then
34125 echo $ECHO_N "(cached) $ECHO_C" >&6
34126fi
34127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34129else
34130 # Is the header compilable?
34131echo "$as_me:$LINENO: checking $ac_header usability" >&5
34132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34133cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34134/* confdefs.h. */
34135_ACEOF
34136cat confdefs.h >>conftest.$ac_ext
34137cat >>conftest.$ac_ext <<_ACEOF
34138/* end confdefs.h. */
34139$ac_includes_default
34140#include <$ac_header>
34141_ACEOF
34142rm -f conftest.$ac_objext
34143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34144 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34145 ac_status=$?
eea650d8
VS
34146 grep -v '^ *+' conftest.er1 >conftest.err
34147 rm -f conftest.er1
34148 cat conftest.err >&5
e6cc62c6
VS
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); } &&
eea650d8
VS
34151 { ac_try='test -z "$ac_c_werror_flag"
34152 || test ! -s conftest.err'
34153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154 (eval $ac_try) 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; } &&
34158 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160 (eval $ac_try) 2>&5
34161 ac_status=$?
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; }; then
34164 ac_header_compiler=yes
34165else
34166 echo "$as_me: failed program was:" >&5
34167sed 's/^/| /' conftest.$ac_ext >&5
34168
34169ac_header_compiler=no
34170fi
eea650d8 34171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
34172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34173echo "${ECHO_T}$ac_header_compiler" >&6
34174
34175# Is the header present?
34176echo "$as_me:$LINENO: checking $ac_header presence" >&5
34177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34178cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34179/* confdefs.h. */
34180_ACEOF
34181cat confdefs.h >>conftest.$ac_ext
34182cat >>conftest.$ac_ext <<_ACEOF
34183/* end confdefs.h. */
34184#include <$ac_header>
34185_ACEOF
34186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34188 ac_status=$?
34189 grep -v '^ *+' conftest.er1 >conftest.err
34190 rm -f conftest.er1
34191 cat conftest.err >&5
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); } >/dev/null; then
34194 if test -s conftest.err; then
34195 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 34196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
34197 else
34198 ac_cpp_err=
34199 fi
34200else
34201 ac_cpp_err=yes
34202fi
34203if test -z "$ac_cpp_err"; then
34204 ac_header_preproc=yes
34205else
34206 echo "$as_me: failed program was:" >&5
34207sed 's/^/| /' conftest.$ac_ext >&5
34208
34209 ac_header_preproc=no
34210fi
34211rm -f conftest.err conftest.$ac_ext
34212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34213echo "${ECHO_T}$ac_header_preproc" >&6
34214
34215# So? What about this header?
eea650d8
VS
34216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34217 yes:no: )
e6cc62c6
VS
34218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
34220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34221echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34222 ac_header_preproc=yes
e6cc62c6 34223 ;;
eea650d8 34224 no:yes:* )
e6cc62c6
VS
34225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
34227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34230echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34232echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
34233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
34235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34236echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
34237 (
34238 cat <<\_ASBOX
eea650d8
VS
34239## ----------------------------------------- ##
34240## Report this to wx-dev@lists.wxwindows.org ##
34241## ----------------------------------------- ##
e6cc62c6
VS
34242_ASBOX
34243 ) |
34244 sed "s/^/$as_me: WARNING: /" >&2
34245 ;;
34246esac
34247echo "$as_me:$LINENO: checking for $ac_header" >&5
34248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34249if eval "test \"\${$as_ac_Header+set}\" = set"; then
34250 echo $ECHO_N "(cached) $ECHO_C" >&6
34251else
eea650d8 34252 eval "$as_ac_Header=\$ac_header_preproc"
247f5006 34253fi
e6cc62c6
VS
34254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34256
10f2d63a 34257fi
e6cc62c6
VS
34258if test `eval echo '${'$as_ac_Header'}'` = yes; then
34259 cat >>confdefs.h <<_ACEOF
34260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34261_ACEOF
34262
247f5006 34263fi
e6cc62c6 34264
10f2d63a
VZ
34265done
34266
3a922bb4
RL
34267 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
34268 wxUSE_JOYSTICK=no
e6cc62c6
VS
34269 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
34270echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
34271 fi
34272 fi
34273 fi
b089607b 34274
3a922bb4 34275 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 34276 cat >>confdefs.h <<\_ACEOF
10f2d63a 34277#define wxUSE_JOYSTICK 1
e6cc62c6 34278_ACEOF
10f2d63a 34279
3a922bb4
RL
34280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
34281 fi
dc3d889d
VZ
34282fi
34283
8284b0c5 34284
73d617c9 34285if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 34286
3a922bb4
RL
34287 HAVE_DL_FUNCS=0
34288 HAVE_SHL_FUNCS=0
0b9ab0bd 34289 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
34290 if test "$USE_DARWIN" = 1; then
34291 HAVE_DL_FUNCS=1
34292 else
e6cc62c6
VS
34293
34294for ac_func in dlopen
10f2d63a 34295do
e6cc62c6
VS
34296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34297echo "$as_me:$LINENO: checking for $ac_func" >&5
34298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34299if eval "test \"\${$as_ac_var+set}\" = set"; then
34300 echo $ECHO_N "(cached) $ECHO_C" >&6
34301else
34302 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34303/* confdefs.h. */
34304_ACEOF
34305cat confdefs.h >>conftest.$ac_ext
34306cat >>conftest.$ac_ext <<_ACEOF
34307/* end confdefs.h. */
eea650d8
VS
34308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34310#define $ac_func innocuous_$ac_func
34311
10f2d63a 34312/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34313 which can conflict with char $ac_func (); below.
34314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34315 <limits.h> exists even on freestanding compilers. */
eea650d8 34316
e6cc62c6
VS
34317#ifdef __STDC__
34318# include <limits.h>
34319#else
34320# include <assert.h>
34321#endif
eea650d8
VS
34322
34323#undef $ac_func
34324
10f2d63a 34325/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34326#ifdef __cplusplus
34327extern "C"
34328{
34329#endif
10f2d63a 34330/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34331 builtin and then its argument prototype would still apply. */
34332char $ac_func ();
10f2d63a
VZ
34333/* The GNU C library defines this for functions which it implements
34334 to always fail with ENOSYS. Some functions are actually named
34335 something starting with __ and the normal name is an alias. */
34336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34337choke me
34338#else
e6cc62c6
VS
34339char (*f) () = $ac_func;
34340#endif
34341#ifdef __cplusplus
34342}
10f2d63a
VZ
34343#endif
34344
e6cc62c6
VS
34345int
34346main ()
34347{
34348return f != $ac_func;
34349 ;
34350 return 0;
34351}
34352_ACEOF
34353rm -f conftest.$ac_objext conftest$ac_exeext
34354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34355 (eval $ac_link) 2>conftest.er1
e6cc62c6 34356 ac_status=$?
eea650d8
VS
34357 grep -v '^ *+' conftest.er1 >conftest.err
34358 rm -f conftest.er1
34359 cat conftest.err >&5
e6cc62c6
VS
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 (exit $ac_status); } &&
eea650d8
VS
34362 { ac_try='test -z "$ac_c_werror_flag"
34363 || test ! -s conftest.err'
34364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34365 (eval $ac_try) 2>&5
34366 ac_status=$?
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); }; } &&
34369 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371 (eval $ac_try) 2>&5
34372 ac_status=$?
34373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 (exit $ac_status); }; }; then
34375 eval "$as_ac_var=yes"
34376else
34377 echo "$as_me: failed program was:" >&5
34378sed 's/^/| /' conftest.$ac_ext >&5
34379
34380eval "$as_ac_var=no"
34381fi
eea650d8
VS
34382rm -f conftest.err conftest.$ac_objext \
34383 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34384fi
34385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34387if test `eval echo '${'$as_ac_var'}'` = yes; then
34388 cat >>confdefs.h <<_ACEOF
34389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34390_ACEOF
34391
34392 cat >>confdefs.h <<\_ACEOF
10f2d63a 34393#define HAVE_DLOPEN 1
e6cc62c6 34394_ACEOF
10f2d63a 34395
3a922bb4 34396 HAVE_DL_FUNCS=1
e6cc62c6 34397
10f2d63a 34398else
e6cc62c6
VS
34399
34400 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34401echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34402if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34403 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34404else
e6cc62c6 34405 ac_check_lib_save_LIBS=$LIBS
10f2d63a 34406LIBS="-ldl $LIBS"
e6cc62c6 34407cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34408/* confdefs.h. */
34409_ACEOF
34410cat confdefs.h >>conftest.$ac_ext
34411cat >>conftest.$ac_ext <<_ACEOF
34412/* end confdefs.h. */
34413
10f2d63a 34414/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34415#ifdef __cplusplus
34416extern "C"
34417#endif
10f2d63a 34418/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34419 builtin and then its argument prototype would still apply. */
34420char dlopen ();
34421int
34422main ()
34423{
34424dlopen ();
34425 ;
34426 return 0;
34427}
34428_ACEOF
34429rm -f conftest.$ac_objext conftest$ac_exeext
34430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34431 (eval $ac_link) 2>conftest.er1
e6cc62c6 34432 ac_status=$?
eea650d8
VS
34433 grep -v '^ *+' conftest.er1 >conftest.err
34434 rm -f conftest.er1
34435 cat conftest.err >&5
e6cc62c6
VS
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); } &&
eea650d8
VS
34438 { ac_try='test -z "$ac_c_werror_flag"
34439 || test ! -s conftest.err'
34440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441 (eval $ac_try) 2>&5
34442 ac_status=$?
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); }; } &&
34445 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447 (eval $ac_try) 2>&5
34448 ac_status=$?
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); }; }; then
34451 ac_cv_lib_dl_dlopen=yes
34452else
34453 echo "$as_me: failed program was:" >&5
34454sed 's/^/| /' conftest.$ac_ext >&5
34455
34456ac_cv_lib_dl_dlopen=no
34457fi
eea650d8
VS
34458rm -f conftest.err conftest.$ac_objext \
34459 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34460LIBS=$ac_check_lib_save_LIBS
34461fi
34462echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34463echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34464if test $ac_cv_lib_dl_dlopen = yes; then
34465
34466 cat >>confdefs.h <<\_ACEOF
10f2d63a 34467#define HAVE_DLOPEN 1
e6cc62c6 34468_ACEOF
10f2d63a 34469
3a922bb4 34470 HAVE_DL_FUNCS=1
3d63bc3a 34471 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 34472
10f2d63a 34473else
10f2d63a 34474
e6cc62c6
VS
34475
34476for ac_func in shl_load
10f2d63a 34477do
e6cc62c6
VS
34478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34479echo "$as_me:$LINENO: checking for $ac_func" >&5
34480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34481if eval "test \"\${$as_ac_var+set}\" = set"; then
34482 echo $ECHO_N "(cached) $ECHO_C" >&6
34483else
34484 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34485/* confdefs.h. */
34486_ACEOF
34487cat confdefs.h >>conftest.$ac_ext
34488cat >>conftest.$ac_ext <<_ACEOF
34489/* end confdefs.h. */
eea650d8
VS
34490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34492#define $ac_func innocuous_$ac_func
34493
10f2d63a 34494/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34495 which can conflict with char $ac_func (); below.
34496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34497 <limits.h> exists even on freestanding compilers. */
eea650d8 34498
e6cc62c6
VS
34499#ifdef __STDC__
34500# include <limits.h>
34501#else
34502# include <assert.h>
34503#endif
eea650d8
VS
34504
34505#undef $ac_func
34506
10f2d63a 34507/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34508#ifdef __cplusplus
34509extern "C"
34510{
34511#endif
10f2d63a 34512/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34513 builtin and then its argument prototype would still apply. */
34514char $ac_func ();
10f2d63a
VZ
34515/* The GNU C library defines this for functions which it implements
34516 to always fail with ENOSYS. Some functions are actually named
34517 something starting with __ and the normal name is an alias. */
34518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34519choke me
34520#else
e6cc62c6
VS
34521char (*f) () = $ac_func;
34522#endif
34523#ifdef __cplusplus
34524}
10f2d63a
VZ
34525#endif
34526
e6cc62c6
VS
34527int
34528main ()
34529{
34530return f != $ac_func;
34531 ;
34532 return 0;
34533}
34534_ACEOF
34535rm -f conftest.$ac_objext conftest$ac_exeext
34536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34537 (eval $ac_link) 2>conftest.er1
e6cc62c6 34538 ac_status=$?
eea650d8
VS
34539 grep -v '^ *+' conftest.er1 >conftest.err
34540 rm -f conftest.er1
34541 cat conftest.err >&5
e6cc62c6
VS
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); } &&
eea650d8
VS
34544 { ac_try='test -z "$ac_c_werror_flag"
34545 || test ! -s conftest.err'
34546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547 (eval $ac_try) 2>&5
34548 ac_status=$?
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; } &&
34551 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34554 ac_status=$?
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; }; then
34557 eval "$as_ac_var=yes"
34558else
34559 echo "$as_me: failed program was:" >&5
34560sed 's/^/| /' conftest.$ac_ext >&5
34561
34562eval "$as_ac_var=no"
34563fi
eea650d8
VS
34564rm -f conftest.err conftest.$ac_objext \
34565 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34566fi
34567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34569if test `eval echo '${'$as_ac_var'}'` = yes; then
34570 cat >>confdefs.h <<_ACEOF
34571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34572_ACEOF
34573
34574 cat >>confdefs.h <<\_ACEOF
10f2d63a 34575#define HAVE_SHL_LOAD 1
e6cc62c6 34576_ACEOF
10f2d63a 34577
3a922bb4 34578 HAVE_SHL_FUNCS=1
e6cc62c6 34579
10f2d63a 34580else
e6cc62c6
VS
34581
34582 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34583echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34584if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34585 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34586else
e6cc62c6 34587 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34588LIBS="-lshl_load $LIBS"
e6cc62c6 34589cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34590/* confdefs.h. */
34591_ACEOF
34592cat confdefs.h >>conftest.$ac_ext
34593cat >>conftest.$ac_ext <<_ACEOF
34594/* end confdefs.h. */
34595
8284b0c5 34596/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34597#ifdef __cplusplus
34598extern "C"
34599#endif
f6bcfd97 34600/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34601 builtin and then its argument prototype would still apply. */
34602char dld ();
34603int
34604main ()
34605{
34606dld ();
34607 ;
34608 return 0;
34609}
34610_ACEOF
34611rm -f conftest.$ac_objext conftest$ac_exeext
34612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34613 (eval $ac_link) 2>conftest.er1
e6cc62c6 34614 ac_status=$?
eea650d8
VS
34615 grep -v '^ *+' conftest.er1 >conftest.err
34616 rm -f conftest.er1
34617 cat conftest.err >&5
e6cc62c6
VS
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } &&
eea650d8
VS
34620 { ac_try='test -z "$ac_c_werror_flag"
34621 || test ! -s conftest.err'
34622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34623 (eval $ac_try) 2>&5
34624 ac_status=$?
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); }; } &&
34627 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34629 (eval $ac_try) 2>&5
34630 ac_status=$?
34631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632 (exit $ac_status); }; }; then
34633 ac_cv_lib_shl_load_dld=yes
34634else
34635 echo "$as_me: failed program was:" >&5
34636sed 's/^/| /' conftest.$ac_ext >&5
34637
34638ac_cv_lib_shl_load_dld=no
34639fi
eea650d8
VS
34640rm -f conftest.err conftest.$ac_objext \
34641 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34642LIBS=$ac_check_lib_save_LIBS
34643fi
34644echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34645echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34646if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 34647
3a922bb4 34648 HAVE_SHL_FUNCS=1
3d63bc3a 34649 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 34650
f6bcfd97
BP
34651fi
34652
e6cc62c6 34653
10f2d63a
VZ
34654fi
34655done
34656
e6cc62c6 34657
10f2d63a
VZ
34658fi
34659
e6cc62c6 34660
10f2d63a
VZ
34661fi
34662done
34663
5c6fa7d2 34664
8284b0c5 34665 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
34666
34667for ac_func in dlerror
f6bcfd97 34668do
e6cc62c6
VS
34669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34670echo "$as_me:$LINENO: checking for $ac_func" >&5
34671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34672if eval "test \"\${$as_ac_var+set}\" = set"; then
34673 echo $ECHO_N "(cached) $ECHO_C" >&6
34674else
34675 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34676/* confdefs.h. */
34677_ACEOF
34678cat confdefs.h >>conftest.$ac_ext
34679cat >>conftest.$ac_ext <<_ACEOF
34680/* end confdefs.h. */
eea650d8
VS
34681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34683#define $ac_func innocuous_$ac_func
34684
f6bcfd97 34685/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34686 which can conflict with char $ac_func (); below.
34687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34688 <limits.h> exists even on freestanding compilers. */
eea650d8 34689
e6cc62c6
VS
34690#ifdef __STDC__
34691# include <limits.h>
34692#else
34693# include <assert.h>
34694#endif
eea650d8
VS
34695
34696#undef $ac_func
34697
f6bcfd97 34698/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34699#ifdef __cplusplus
34700extern "C"
34701{
34702#endif
f6bcfd97 34703/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34704 builtin and then its argument prototype would still apply. */
34705char $ac_func ();
f6bcfd97
BP
34706/* The GNU C library defines this for functions which it implements
34707 to always fail with ENOSYS. Some functions are actually named
34708 something starting with __ and the normal name is an alias. */
34709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34710choke me
34711#else
e6cc62c6
VS
34712char (*f) () = $ac_func;
34713#endif
34714#ifdef __cplusplus
34715}
f6bcfd97
BP
34716#endif
34717
e6cc62c6
VS
34718int
34719main ()
34720{
34721return f != $ac_func;
34722 ;
34723 return 0;
34724}
34725_ACEOF
34726rm -f conftest.$ac_objext conftest$ac_exeext
34727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34728 (eval $ac_link) 2>conftest.er1
e6cc62c6 34729 ac_status=$?
eea650d8
VS
34730 grep -v '^ *+' conftest.er1 >conftest.err
34731 rm -f conftest.er1
34732 cat conftest.err >&5
e6cc62c6
VS
34733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734 (exit $ac_status); } &&
eea650d8
VS
34735 { ac_try='test -z "$ac_c_werror_flag"
34736 || test ! -s conftest.err'
34737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34738 (eval $ac_try) 2>&5
34739 ac_status=$?
34740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741 (exit $ac_status); }; } &&
34742 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34744 (eval $ac_try) 2>&5
34745 ac_status=$?
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); }; }; then
34748 eval "$as_ac_var=yes"
34749else
34750 echo "$as_me: failed program was:" >&5
34751sed 's/^/| /' conftest.$ac_ext >&5
34752
34753eval "$as_ac_var=no"
34754fi
eea650d8
VS
34755rm -f conftest.err conftest.$ac_objext \
34756 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34757fi
34758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34760if test `eval echo '${'$as_ac_var'}'` = yes; then
34761 cat >>confdefs.h <<_ACEOF
34762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34763_ACEOF
34764 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34765#define HAVE_DLERROR 1
e6cc62c6 34766_ACEOF
f6bcfd97
BP
34767
34768else
0e012a93
VZ
34769
34770 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
34771echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34772if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34773 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34774else
e6cc62c6 34775 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34776LIBS="-ldl $LIBS"
e6cc62c6 34777cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34778/* confdefs.h. */
34779_ACEOF
34780cat confdefs.h >>conftest.$ac_ext
34781cat >>conftest.$ac_ext <<_ACEOF
34782/* end confdefs.h. */
34783
f6bcfd97 34784/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34785#ifdef __cplusplus
34786extern "C"
34787#endif
f6bcfd97 34788/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34789 builtin and then its argument prototype would still apply. */
34790char dlerror ();
34791int
34792main ()
34793{
34794dlerror ();
34795 ;
34796 return 0;
34797}
34798_ACEOF
34799rm -f conftest.$ac_objext conftest$ac_exeext
34800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34801 (eval $ac_link) 2>conftest.er1
e6cc62c6 34802 ac_status=$?
eea650d8
VS
34803 grep -v '^ *+' conftest.er1 >conftest.err
34804 rm -f conftest.er1
34805 cat conftest.err >&5
e6cc62c6
VS
34806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); } &&
eea650d8
VS
34808 { ac_try='test -z "$ac_c_werror_flag"
34809 || test ! -s conftest.err'
34810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811 (eval $ac_try) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; } &&
34815 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817 (eval $ac_try) 2>&5
34818 ac_status=$?
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); }; }; then
34821 ac_cv_lib_dl_dlerror=yes
34822else
34823 echo "$as_me: failed program was:" >&5
34824sed 's/^/| /' conftest.$ac_ext >&5
34825
34826ac_cv_lib_dl_dlerror=no
34827fi
eea650d8
VS
34828rm -f conftest.err conftest.$ac_objext \
34829 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34830LIBS=$ac_check_lib_save_LIBS
34831fi
34832echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34833echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34834if test $ac_cv_lib_dl_dlerror = yes; then
34835 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34836#define HAVE_DLERROR 1
e6cc62c6 34837_ACEOF
f6bcfd97 34838
f6bcfd97
BP
34839fi
34840
0e012a93
VZ
34841
34842
f6bcfd97
BP
34843fi
34844done
34845
3a922bb4
RL
34846 fi
34847 fi
f6bcfd97 34848
3a922bb4
RL
34849 if test "$HAVE_DL_FUNCS" = 0; then
34850 if test "$HAVE_SHL_FUNCS" = 0; then
34851 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
34852 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34853echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 34854 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
34855 wxUSE_DYNLIB_CLASS=no
34856 else
e6cc62c6
VS
34857 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34858echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
34859 fi
34860 fi
10f2d63a
VZ
34861 fi
34862 fi
34863fi
34864
0b9ab0bd 34865if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 34866 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 34867#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 34868_ACEOF
0b9ab0bd 34869
1948bb32
VS
34870fi
34871if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 34872 cat >>confdefs.h <<\_ACEOF
10f2d63a 34873#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 34874_ACEOF
10f2d63a
VZ
34875
34876fi
34877
8284b0c5 34878
1e6feb95 34879if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 34880 cat >>confdefs.h <<\_ACEOF
1e6feb95 34881#define wxUSE_FONTMAP 1
e6cc62c6 34882_ACEOF
1e6feb95
VZ
34883
34884fi
34885
10f2d63a 34886if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 34887 cat >>confdefs.h <<\_ACEOF
10f2d63a 34888#define wxUSE_UNICODE 1
e6cc62c6 34889_ACEOF
10f2d63a 34890
8284b0c5 34891
eb854003 34892 if test "$USE_WIN32" != 1; then
bbc3925a
VS
34893 wxUSE_UNICODE_MSLU=no
34894 fi
a72a4bfa 34895
eb854003 34896 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
34897 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
34898echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
34899if test "${ac_cv_lib_unicows_main+set}" = set; then
34900 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 34901else
e6cc62c6 34902 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 34903LIBS="-lunicows $LIBS"
e6cc62c6 34904cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34905/* confdefs.h. */
34906_ACEOF
34907cat confdefs.h >>conftest.$ac_ext
34908cat >>conftest.$ac_ext <<_ACEOF
34909/* end confdefs.h. */
a72a4bfa 34910
8284b0c5 34911
e6cc62c6
VS
34912int
34913main ()
34914{
34915main ();
34916 ;
34917 return 0;
34918}
34919_ACEOF
34920rm -f conftest.$ac_objext conftest$ac_exeext
34921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34922 (eval $ac_link) 2>conftest.er1
e6cc62c6 34923 ac_status=$?
eea650d8
VS
34924 grep -v '^ *+' conftest.er1 >conftest.err
34925 rm -f conftest.er1
34926 cat conftest.err >&5
e6cc62c6
VS
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); } &&
eea650d8
VS
34929 { ac_try='test -z "$ac_c_werror_flag"
34930 || test ! -s conftest.err'
34931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932 (eval $ac_try) 2>&5
34933 ac_status=$?
34934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935 (exit $ac_status); }; } &&
34936 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34938 (eval $ac_try) 2>&5
34939 ac_status=$?
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); }; }; then
34942 ac_cv_lib_unicows_main=yes
34943else
34944 echo "$as_me: failed program was:" >&5
34945sed 's/^/| /' conftest.$ac_ext >&5
34946
34947ac_cv_lib_unicows_main=no
34948fi
eea650d8
VS
34949rm -f conftest.err conftest.$ac_objext \
34950 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34951LIBS=$ac_check_lib_save_LIBS
34952fi
34953echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
34954echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
34955if test $ac_cv_lib_unicows_main = yes; then
34956
34957 cat >>confdefs.h <<\_ACEOF
a72a4bfa 34958#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
34959_ACEOF
34960
a72a4bfa 34961
a72a4bfa 34962else
a72a4bfa 34963
e6cc62c6
VS
34964 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
34965 Applications will only run on Windows NT/2000/XP!" >&5
34966echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
34967 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 34968 wxUSE_UNICODE_MSLU=no
e6cc62c6 34969
a72a4bfa
VS
34970fi
34971
34972 fi
10f2d63a
VZ
34973fi
34974
10f2d63a 34975if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 34976 cat >>confdefs.h <<\_ACEOF
10f2d63a 34977#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 34978_ACEOF
10f2d63a
VZ
34979
34980fi
34981
8284b0c5 34982
10f2d63a 34983if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 34984 cat >>confdefs.h <<\_ACEOF
10f2d63a 34985#define wxUSE_POSTSCRIPT 1
e6cc62c6 34986_ACEOF
10f2d63a
VZ
34987
34988fi
34989
e6cc62c6 34990cat >>confdefs.h <<\_ACEOF
10f2d63a 34991#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 34992_ACEOF
10f2d63a 34993
8284b0c5 34994
e6cc62c6 34995cat >>confdefs.h <<\_ACEOF
10f2d63a 34996#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 34997_ACEOF
10f2d63a 34998
8284b0c5
MB
34999
35000
10f2d63a 35001if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 35002 cat >>confdefs.h <<\_ACEOF
10f2d63a 35003#define wxUSE_CONSTRAINTS 1
e6cc62c6 35004_ACEOF
10f2d63a
VZ
35005
35006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35007fi
35008
3879ecda 35009if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 35010 cat >>confdefs.h <<\_ACEOF
10f2d63a 35011#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 35012_ACEOF
10f2d63a 35013
1772d20c 35014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
35015fi
35016
35017if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 35018 cat >>confdefs.h <<\_ACEOF
10f2d63a 35019#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 35020_ACEOF
10f2d63a
VZ
35021
35022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35023 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35025 fi
35026fi
35027
35028if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 35029 cat >>confdefs.h <<\_ACEOF
10f2d63a 35030#define wxUSE_HELP 1
e6cc62c6 35031_ACEOF
10f2d63a
VZ
35032
35033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 35034
77e13408 35035 if test "$wxUSE_MSW" = 1; then
031d8228 35036 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 35037 cat >>confdefs.h <<\_ACEOF
29fd3c0c 35038#define wxUSE_MS_HTML_HELP 1
e6cc62c6 35039_ACEOF
29fd3c0c 35040
3e44f09d 35041 fi
3379ed37 35042 fi
031d8228
VS
35043
35044 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35045 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 35046 cat >>confdefs.h <<\_ACEOF
031d8228 35047#define wxUSE_WXHTML_HELP 1
e6cc62c6 35048_ACEOF
031d8228
VS
35049
35050 else
e6cc62c6
VS
35051 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35052echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
35053 wxUSE_WXHTML_HELP=no
35054 fi
35055 fi
10f2d63a
VZ
35056fi
35057
35058if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35059 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
35060 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35061echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 35062 else
e6cc62c6 35063 cat >>confdefs.h <<\_ACEOF
10f2d63a 35064#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 35065_ACEOF
10f2d63a
VZ
35066
35067 fi
35068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35069fi
35070
e6cc62c6
VS
35071if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35072 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35073echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35074 { (exit 1); exit 1; }; }
35075fi
35076
35077
35078if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35079 -o "$wxUSE_CLIPBOARD" = "yes" \
35080 -o "$wxUSE_OLE" = "yes" \
35081 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35082
35083for ac_header in ole2.h
35084do
35085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35086if eval "test \"\${$as_ac_Header+set}\" = set"; then
35087 echo "$as_me:$LINENO: checking for $ac_header" >&5
35088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35089if eval "test \"\${$as_ac_Header+set}\" = set"; then
35090 echo $ECHO_N "(cached) $ECHO_C" >&6
35091fi
35092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35094else
35095 # Is the header compilable?
35096echo "$as_me:$LINENO: checking $ac_header usability" >&5
35097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35098cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35099/* confdefs.h. */
35100_ACEOF
35101cat confdefs.h >>conftest.$ac_ext
35102cat >>conftest.$ac_ext <<_ACEOF
35103/* end confdefs.h. */
35104$ac_includes_default
35105#include <$ac_header>
35106_ACEOF
35107rm -f conftest.$ac_objext
35108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 35109 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35110 ac_status=$?
eea650d8
VS
35111 grep -v '^ *+' conftest.er1 >conftest.err
35112 rm -f conftest.er1
35113 cat conftest.err >&5
e6cc62c6
VS
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } &&
eea650d8
VS
35116 { ac_try='test -z "$ac_c_werror_flag"
35117 || test ! -s conftest.err'
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; } &&
35123 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125 (eval $ac_try) 2>&5
35126 ac_status=$?
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); }; }; then
35129 ac_header_compiler=yes
35130else
35131 echo "$as_me: failed program was:" >&5
35132sed 's/^/| /' conftest.$ac_ext >&5
35133
35134ac_header_compiler=no
35135fi
eea650d8 35136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
35137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35138echo "${ECHO_T}$ac_header_compiler" >&6
35139
35140# Is the header present?
35141echo "$as_me:$LINENO: checking $ac_header presence" >&5
35142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35143cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35144/* confdefs.h. */
35145_ACEOF
35146cat confdefs.h >>conftest.$ac_ext
35147cat >>conftest.$ac_ext <<_ACEOF
35148/* end confdefs.h. */
35149#include <$ac_header>
35150_ACEOF
35151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35153 ac_status=$?
35154 grep -v '^ *+' conftest.er1 >conftest.err
35155 rm -f conftest.er1
35156 cat conftest.err >&5
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); } >/dev/null; then
35159 if test -s conftest.err; then
35160 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 35161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
35162 else
35163 ac_cpp_err=
35164 fi
35165else
35166 ac_cpp_err=yes
35167fi
35168if test -z "$ac_cpp_err"; then
35169 ac_header_preproc=yes
35170else
35171 echo "$as_me: failed program was:" >&5
35172sed 's/^/| /' conftest.$ac_ext >&5
35173
35174 ac_header_preproc=no
35175fi
35176rm -f conftest.err conftest.$ac_ext
35177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35178echo "${ECHO_T}$ac_header_preproc" >&6
35179
35180# So? What about this header?
eea650d8
VS
35181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35182 yes:no: )
e6cc62c6
VS
35183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
35185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35187 ac_header_preproc=yes
e6cc62c6 35188 ;;
eea650d8 35189 no:yes:* )
e6cc62c6
VS
35190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
35192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
35198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
35200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
35202 (
35203 cat <<\_ASBOX
eea650d8
VS
35204## ----------------------------------------- ##
35205## Report this to wx-dev@lists.wxwindows.org ##
35206## ----------------------------------------- ##
e6cc62c6
VS
35207_ASBOX
35208 ) |
35209 sed "s/^/$as_me: WARNING: /" >&2
35210 ;;
35211esac
35212echo "$as_me:$LINENO: checking for $ac_header" >&5
35213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35214if eval "test \"\${$as_ac_Header+set}\" = set"; then
35215 echo $ECHO_N "(cached) $ECHO_C" >&6
35216else
eea650d8 35217 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
35218fi
35219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35221
10f2d63a 35222fi
e6cc62c6
VS
35223if test `eval echo '${'$as_ac_Header'}'` = yes; then
35224 cat >>confdefs.h <<_ACEOF
35225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35226_ACEOF
10f2d63a 35227
10f2d63a 35228fi
e6cc62c6 35229
10f2d63a
VZ
35230done
35231
8284b0c5 35232
2b9bdf71
VZ
35233 if test "$ac_cv_header_ole2_h" = "yes" ; then
35234 if test "$GCC" = yes ; then
8284b0c5
MB
35235
35236
e6cc62c6
VS
35237 ac_ext=cc
35238ac_cpp='$CXXCPP $CPPFLAGS'
35239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35242
35243
35244 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
35245echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
35246 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35247/* confdefs.h. */
35248_ACEOF
35249cat confdefs.h >>conftest.$ac_ext
35250cat >>conftest.$ac_ext <<_ACEOF
35251/* end confdefs.h. */
8284b0c5
MB
35252#include <windows.h>
35253 #include <ole2.h>
e6cc62c6
VS
35254int
35255main ()
35256{
8284b0c5 35257
e6cc62c6
VS
35258 ;
35259 return 0;
35260}
35261_ACEOF
35262rm -f conftest.$ac_objext
35263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 35264 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35265 ac_status=$?
eea650d8
VS
35266 grep -v '^ *+' conftest.er1 >conftest.err
35267 rm -f conftest.er1
35268 cat conftest.err >&5
e6cc62c6
VS
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); } &&
eea650d8
VS
35271 { ac_try='test -z "$ac_cxx_werror_flag"
35272 || test ! -s conftest.err'
35273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35274 (eval $ac_try) 2>&5
35275 ac_status=$?
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); }; } &&
35278 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280 (eval $ac_try) 2>&5
35281 ac_status=$?
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; }; then
35284 echo "$as_me:$LINENO: result: no" >&5
35285echo "${ECHO_T}no" >&6
35286else
35287 echo "$as_me: failed program was:" >&5
35288sed 's/^/| /' conftest.$ac_ext >&5
35289
35290echo "$as_me:$LINENO: result: yes" >&5
35291echo "${ECHO_T}yes" >&6
8284b0c5
MB
35292 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
35293fi
eea650d8 35294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 35295 ac_ext=c
8284b0c5 35296ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
35297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35299ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 35300
2b9bdf71 35301 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 35302 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 35303 cat >>confdefs.h <<\_ACEOF
4f11a343 35304#define wxUSE_OLE 1
e6cc62c6 35305_ACEOF
4f11a343 35306
8284b0c5 35307
2b9bdf71
VZ
35308 fi
35309
e6cc62c6 35310 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35311#define wxUSE_DATAOBJ 1
e6cc62c6 35312_ACEOF
2b9bdf71
VZ
35313
35314 else
e6cc62c6
VS
35315 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
35316echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
35317
35318 wxUSE_CLIPBOARD=no
35319 wxUSE_DRAG_AND_DROP=no
35320 wxUSE_DATAOBJ=no
3bce6687
JS
35321 wxUSE_OLE=no
35322 fi
35323
35324 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35325 cat >>confdefs.h <<\_ACEOF
3bce6687 35326#define wxUSE_METAFILE 1
e6cc62c6 35327_ACEOF
3bce6687
JS
35328
35329
e6cc62c6 35330 cat >>confdefs.h <<\_ACEOF
3bce6687 35331#define wxUSE_ENH_METAFILE 1
e6cc62c6 35332_ACEOF
3bce6687
JS
35333
35334 fi
35335fi
35336
2b9bdf71
VZ
35337if test "$wxUSE_IPC" = "yes"; then
35338 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
35339 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
35340echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
35341 fi
35342
e6cc62c6 35343 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35344#define wxUSE_IPC 1
e6cc62c6 35345_ACEOF
2b9bdf71
VZ
35346
35347fi
35348
35349if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 35350 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35351 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
35352echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35353 wxUSE_CLIPBOARD=no
35354 fi
35355
35356 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 35357 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35358#define wxUSE_CLIPBOARD 1
e6cc62c6 35359_ACEOF
2b9bdf71 35360
8284b0c5 35361
e6cc62c6 35362 cat >>confdefs.h <<\_ACEOF
673f4220 35363#define wxUSE_DATAOBJ 1
e6cc62c6 35364_ACEOF
673f4220 35365
6c657b52 35366 fi
2b9bdf71
VZ
35367fi
35368
35369if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
35370 if test "$wxUSE_GTK" = 1; then
35371 if test "$WXGTK12" != 1; then
e6cc62c6
VS
35372 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
35373echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
35374 wxUSE_DRAG_AND_DROP=no
35375 fi
35376 fi
35377
2b9bdf71 35378 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35379 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
35380echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
35381 wxUSE_DRAG_AND_DROP=no
35382 fi
35383
f79bd02d 35384 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
35385 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
35386echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
35387 wxUSE_DRAG_AND_DROP=no
35388 fi
35389
6c657b52 35390 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35391 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
35392echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35393 wxUSE_DRAG_AND_DROP=no
35394 fi
35395
10f2d63a 35396 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 35397 cat >>confdefs.h <<\_ACEOF
10f2d63a 35398#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 35399_ACEOF
10f2d63a
VZ
35400
35401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
35402 fi
35403
35404fi
35405
35406if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 35407 cat >>confdefs.h <<\_ACEOF
10f2d63a 35408#define wxUSE_SPLINES 1
e6cc62c6 35409_ACEOF
10f2d63a
VZ
35410
35411fi
35412
8284b0c5 35413
1e6feb95
VZ
35414USES_CONTROLS=0
35415if test "$wxUSE_CONTROLS" = "yes"; then
35416 USES_CONTROLS=1
35417fi
35418
10f2d63a 35419if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 35420 cat >>confdefs.h <<\_ACEOF
10f2d63a 35421#define wxUSE_ACCEL 1
e6cc62c6 35422_ACEOF
10f2d63a 35423
1e6feb95
VZ
35424 USES_CONTROLS=1
35425fi
35426
35427if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 35428 cat >>confdefs.h <<\_ACEOF
1e6feb95 35429#define wxUSE_BUTTON 1
e6cc62c6 35430_ACEOF
1e6feb95
VZ
35431
35432 USES_CONTROLS=1
35433fi
35434
35435if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 35436 cat >>confdefs.h <<\_ACEOF
1e6feb95 35437#define wxUSE_BMPBUTTON 1
e6cc62c6 35438_ACEOF
1e6feb95
VZ
35439
35440 USES_CONTROLS=1
35441fi
35442
35443if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 35444 cat >>confdefs.h <<\_ACEOF
1e6feb95 35445#define wxUSE_CALENDARCTRL 1
e6cc62c6 35446_ACEOF
1e6feb95
VZ
35447
35448 USES_CONTROLS=1
35449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
35450fi
35451
35452if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 35453 cat >>confdefs.h <<\_ACEOF
10f2d63a 35454#define wxUSE_CARET 1
e6cc62c6 35455_ACEOF
10f2d63a 35456
1e6feb95 35457 USES_CONTROLS=1
10f2d63a
VZ
35458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
35459fi
35460
35461if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 35462 cat >>confdefs.h <<\_ACEOF
10f2d63a 35463#define wxUSE_COMBOBOX 1
e6cc62c6 35464_ACEOF
10f2d63a 35465
1e6feb95 35466 USES_CONTROLS=1
10f2d63a
VZ
35467fi
35468
35469if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 35470 cat >>confdefs.h <<\_ACEOF
10f2d63a 35471#define wxUSE_CHOICE 1
e6cc62c6 35472_ACEOF
10f2d63a 35473
1e6feb95 35474 USES_CONTROLS=1
10f2d63a
VZ
35475fi
35476
35477if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 35478 cat >>confdefs.h <<\_ACEOF
10f2d63a 35479#define wxUSE_CHECKBOX 1
e6cc62c6 35480_ACEOF
10f2d63a 35481
1e6feb95 35482 USES_CONTROLS=1
10f2d63a
VZ
35483fi
35484
35485if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 35486 cat >>confdefs.h <<\_ACEOF
10f2d63a 35487#define wxUSE_CHECKLISTBOX 1
e6cc62c6 35488_ACEOF
10f2d63a 35489
1e6feb95 35490 USES_CONTROLS=1
10f2d63a
VZ
35491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
35492fi
35493
da494b40 35494if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 35495 cat >>confdefs.h <<\_ACEOF
da494b40 35496#define wxUSE_DISPLAY 1
e6cc62c6 35497_ACEOF
da494b40
MB
35498
35499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
35500fi
35501
10f2d63a 35502if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 35503 cat >>confdefs.h <<\_ACEOF
10f2d63a 35504#define wxUSE_GAUGE 1
e6cc62c6 35505_ACEOF
10f2d63a 35506
1e6feb95 35507 USES_CONTROLS=1
10f2d63a
VZ
35508fi
35509
d6a55c4b 35510if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 35511 cat >>confdefs.h <<\_ACEOF
d6a55c4b 35512#define wxUSE_GRID 1
e6cc62c6 35513_ACEOF
10f2d63a 35514
1e6feb95 35515 USES_CONTROLS=1
d6a55c4b 35516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
35517fi
35518
35519if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35520 cat >>confdefs.h <<\_ACEOF
10f2d63a 35521#define wxUSE_IMAGLIST 1
e6cc62c6 35522_ACEOF
10f2d63a
VZ
35523
35524fi
35525
0e012a93
VZ
35526if test "$wxUSE_LISTBOOK" = "yes"; then
35527 cat >>confdefs.h <<\_ACEOF
35528#define wxUSE_LISTBOOK 1
35529_ACEOF
35530
35531 USES_CONTROLS=1
35532fi
35533
10f2d63a 35534if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 35535 cat >>confdefs.h <<\_ACEOF
10f2d63a 35536#define wxUSE_LISTBOX 1
e6cc62c6 35537_ACEOF
10f2d63a 35538
1e6feb95 35539 USES_CONTROLS=1
10f2d63a
VZ
35540fi
35541
35542if test "$wxUSE_LISTCTRL" = "yes"; then
35543 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35544 cat >>confdefs.h <<\_ACEOF
10f2d63a 35545#define wxUSE_LISTCTRL 1
e6cc62c6 35546_ACEOF
10f2d63a 35547
1e6feb95 35548 USES_CONTROLS=1
10f2d63a
VZ
35549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
35550 else
e6cc62c6
VS
35551 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
35552echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35553 fi
35554fi
35555
35556if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 35557 cat >>confdefs.h <<\_ACEOF
10f2d63a 35558#define wxUSE_NOTEBOOK 1
e6cc62c6 35559_ACEOF
10f2d63a 35560
1e6feb95 35561 USES_CONTROLS=1
10f2d63a
VZ
35562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
35563fi
35564
24176f2c 35565
10f2d63a 35566if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 35567 cat >>confdefs.h <<\_ACEOF
10f2d63a 35568#define wxUSE_RADIOBOX 1
e6cc62c6 35569_ACEOF
10f2d63a 35570
1e6feb95 35571 USES_CONTROLS=1
10f2d63a
VZ
35572fi
35573
35574if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 35575 cat >>confdefs.h <<\_ACEOF
10f2d63a 35576#define wxUSE_RADIOBTN 1
e6cc62c6 35577_ACEOF
10f2d63a 35578
1e6feb95 35579 USES_CONTROLS=1
10f2d63a
VZ
35580fi
35581
35582if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 35583 cat >>confdefs.h <<\_ACEOF
10f2d63a 35584#define wxUSE_SASH 1
e6cc62c6 35585_ACEOF
10f2d63a
VZ
35586
35587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
35588fi
35589
35590if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 35591 cat >>confdefs.h <<\_ACEOF
10f2d63a 35592#define wxUSE_SCROLLBAR 1
e6cc62c6 35593_ACEOF
10f2d63a 35594
1e6feb95 35595 USES_CONTROLS=1
741a9306 35596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
35597fi
35598
35599if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 35600 cat >>confdefs.h <<\_ACEOF
10f2d63a 35601#define wxUSE_SLIDER 1
e6cc62c6 35602_ACEOF
10f2d63a 35603
1e6feb95 35604 USES_CONTROLS=1
10f2d63a
VZ
35605fi
35606
35607if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 35608 cat >>confdefs.h <<\_ACEOF
10f2d63a 35609#define wxUSE_SPINBTN 1
e6cc62c6 35610_ACEOF
10f2d63a 35611
1e6feb95 35612 USES_CONTROLS=1
10f2d63a
VZ
35613fi
35614
56cfaa52 35615if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 35616 cat >>confdefs.h <<\_ACEOF
56cfaa52 35617#define wxUSE_SPINCTRL 1
e6cc62c6 35618_ACEOF
56cfaa52 35619
1e6feb95 35620 USES_CONTROLS=1
56cfaa52
RR
35621fi
35622
10f2d63a 35623if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 35624 cat >>confdefs.h <<\_ACEOF
10f2d63a 35625#define wxUSE_SPLITTER 1
e6cc62c6 35626_ACEOF
10f2d63a
VZ
35627
35628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
35629fi
35630
35631if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 35632 cat >>confdefs.h <<\_ACEOF
10f2d63a 35633#define wxUSE_STATBMP 1
e6cc62c6 35634_ACEOF
10f2d63a 35635
1e6feb95 35636 USES_CONTROLS=1
10f2d63a
VZ
35637fi
35638
35639if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 35640 cat >>confdefs.h <<\_ACEOF
10f2d63a 35641#define wxUSE_STATBOX 1
e6cc62c6 35642_ACEOF
10f2d63a 35643
1e6feb95
VZ
35644 USES_CONTROLS=1
35645fi
35646
35647if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 35648 cat >>confdefs.h <<\_ACEOF
1e6feb95 35649#define wxUSE_STATTEXT 1
e6cc62c6 35650_ACEOF
1e6feb95
VZ
35651
35652 USES_CONTROLS=1
10f2d63a
VZ
35653fi
35654
35655if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 35656 cat >>confdefs.h <<\_ACEOF
10f2d63a 35657#define wxUSE_STATLINE 1
e6cc62c6 35658_ACEOF
10f2d63a 35659
89e6bf6d 35660 USES_CONTROLS=1
10f2d63a
VZ
35661fi
35662
35663if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 35664 cat >>confdefs.h <<\_ACEOF
10f2d63a 35665#define wxUSE_STATUSBAR 1
e6cc62c6 35666_ACEOF
10f2d63a 35667
1e6feb95 35668 USES_CONTROLS=1
698dcdb6 35669
2286341c 35670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
35671fi
35672
35673if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 35674 cat >>confdefs.h <<\_ACEOF
10f2d63a 35675#define wxUSE_TAB_DIALOG 1
e6cc62c6 35676_ACEOF
10f2d63a
VZ
35677
35678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
35679fi
35680
1e6feb95 35681if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 35682 cat >>confdefs.h <<\_ACEOF
1e6feb95 35683#define wxUSE_TEXTCTRL 1
e6cc62c6 35684_ACEOF
1e6feb95
VZ
35685
35686 USES_CONTROLS=1
35687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
35688fi
35689
1db8dc4a 35690if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 35691 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35692 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
35693echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
35694 wxUSE_TOGGLEBTN=no
35695 fi
35696 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35697 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
35698echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
35699 wxUSE_TOGGLEBTN=no
35700 fi
35701
35702 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 35703 cat >>confdefs.h <<\_ACEOF
1db8dc4a 35704#define wxUSE_TOGGLEBTN 1
e6cc62c6 35705_ACEOF
1db8dc4a 35706
1e6feb95 35707 USES_CONTROLS=1
a45d7ab7 35708 fi
1db8dc4a
VZ
35709fi
35710
360d6699 35711if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 35712 cat >>confdefs.h <<\_ACEOF
360d6699 35713#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 35714_ACEOF
360d6699
VZ
35715
35716 wxUSE_TOOLBAR="yes"
1e6feb95 35717 USES_CONTROLS=1
360d6699
VZ
35718fi
35719
10f2d63a 35720if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 35721 cat >>confdefs.h <<\_ACEOF
10f2d63a 35722#define wxUSE_TOOLBAR 1
e6cc62c6 35723_ACEOF
10f2d63a 35724
1e6feb95 35725 USES_CONTROLS=1
698dcdb6 35726
360d6699
VZ
35727 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
35728 wxUSE_TOOLBAR_NATIVE="yes"
35729 fi
35730
1e6feb95 35731 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 35732 cat >>confdefs.h <<\_ACEOF
360d6699 35733#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 35734_ACEOF
360d6699 35735
1e6feb95
VZ
35736 USES_CONTROLS=1
35737 fi
35738
35739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
35740fi
35741
10f2d63a
VZ
35742if test "$wxUSE_TOOLTIPS" = "yes"; then
35743 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35744 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
35745echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 35746 else
89e6bf6d 35747 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35748 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
35749echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 35750 else
e6cc62c6 35751 cat >>confdefs.h <<\_ACEOF
10f2d63a 35752#define wxUSE_TOOLTIPS 1
e6cc62c6 35753_ACEOF
10f2d63a
VZ
35754
35755 fi
35756 fi
35757fi
35758
35759if test "$wxUSE_TREECTRL" = "yes"; then
35760 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35761 cat >>confdefs.h <<\_ACEOF
10f2d63a 35762#define wxUSE_TREECTRL 1
e6cc62c6 35763_ACEOF
10f2d63a 35764
1e6feb95 35765 USES_CONTROLS=1
10f2d63a
VZ
35766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
35767 else
e6cc62c6
VS
35768 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
35769echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35770 fi
35771fi
35772
9f41d601 35773if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 35774 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35775 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
35776echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 35777 else
833a51f6
MB
35778 if test "$wxUSE_PM" = 1; then
35779 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 35780echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
35781 else
35782 cat >>confdefs.h <<\_ACEOF
9f41d601 35783#define wxUSE_POPUPWIN 1
e6cc62c6 35784_ACEOF
9f41d601 35785
8284b0c5 35786
833a51f6 35787 USES_CONTROLS=1
485cf710 35788 fi
6abe4b65 35789 fi
9f41d601
RR
35790fi
35791
dd964dcc 35792if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 35793 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
35794 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
35795echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 35796 else
e6cc62c6 35797 cat >>confdefs.h <<\_ACEOF
dd964dcc 35798#define wxUSE_TIPWINDOW 1
e6cc62c6 35799_ACEOF
dd964dcc 35800
3c011993 35801 fi
dd964dcc
VZ
35802fi
35803
1e6feb95 35804if test "$USES_CONTROLS" = 1; then
e6cc62c6 35805 cat >>confdefs.h <<\_ACEOF
1e6feb95 35806#define wxUSE_CONTROLS 1
e6cc62c6 35807_ACEOF
10f2d63a 35808
10f2d63a
VZ
35809fi
35810
8284b0c5 35811
e46d2a18
VS
35812if test "$wxUSE_ACCESSIBILITY" = "yes"; then
35813 cat >>confdefs.h <<\_ACEOF
35814#define wxUSE_ACCESSIBILITY 1
35815_ACEOF
35816
35817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
35818fi
1e6feb95 35819
24fd6d87 35820if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 35821 cat >>confdefs.h <<\_ACEOF
24fd6d87 35822#define wxUSE_DRAGIMAGE 1
e6cc62c6 35823_ACEOF
24fd6d87
VZ
35824
35825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
35826fi
35827
e46d2a18 35828if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 35829 cat >>confdefs.h <<\_ACEOF
e46d2a18 35830#define wxUSE_EXCEPTIONS 1
e6cc62c6 35831_ACEOF
7bb2947d 35832
e46d2a18
VS
35833fi
35834
35835USE_HTML=0
35836if test "$wxUSE_HTML" = "yes"; then
35837 cat >>confdefs.h <<\_ACEOF
35838#define wxUSE_HTML 1
35839_ACEOF
35840
35841 USE_HTML=1
35842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
35843fi
35844
1e6feb95 35845if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 35846 cat >>confdefs.h <<\_ACEOF
1e6feb95 35847#define wxUSE_MENUS 1
e6cc62c6 35848_ACEOF
10f2d63a 35849
1e6feb95 35850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
35851fi
35852
1e6feb95 35853if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35854 cat >>confdefs.h <<\_ACEOF
1e6feb95 35855#define wxUSE_METAFILE 1
e6cc62c6 35856_ACEOF
10f2d63a 35857
10f2d63a
VZ
35858fi
35859
1e6feb95 35860if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 35861 cat >>confdefs.h <<\_ACEOF
1e6feb95 35862#define wxUSE_MIMETYPE 1
e6cc62c6 35863_ACEOF
10f2d63a 35864
10f2d63a
VZ
35865fi
35866
35867if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 35868 cat >>confdefs.h <<\_ACEOF
10f2d63a 35869#define wxUSE_MINIFRAME 1
e6cc62c6 35870_ACEOF
10f2d63a
VZ
35871
35872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
35873fi
35874
e46d2a18 35875if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 35876 cat >>confdefs.h <<\_ACEOF
e46d2a18 35877#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 35878_ACEOF
10f2d63a 35879
e46d2a18
VS
35880 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
35881 "$TOOLKIT" = "MOTIF"; then
35882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
35883 fi
10f2d63a
VZ
35884fi
35885
e46d2a18 35886
10f2d63a 35887if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 35888 cat >>confdefs.h <<\_ACEOF
1e487827 35889#define wxUSE_VALIDATORS 1
e6cc62c6 35890_ACEOF
703e0a69 35891
698dcdb6
VZ
35892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
35893fi
35894
edae8572 35895if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 35896 cat >>confdefs.h <<\_ACEOF
edae8572 35897#define wxUSE_PALETTE 1
e6cc62c6 35898_ACEOF
edae8572
VZ
35899
35900fi
35901
e46d2a18
VS
35902if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
35903 LIBS=" -lunicows $LIBS"
35904fi
35905
35906
698dcdb6 35907if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 35908 cat >>confdefs.h <<\_ACEOF
698dcdb6 35909#define wxUSE_IMAGE 1
e6cc62c6 35910_ACEOF
698dcdb6 35911
698dcdb6 35912
e46d2a18
VS
35913 if test "$wxUSE_GIF" = "yes" ; then
35914 cat >>confdefs.h <<\_ACEOF
698dcdb6 35915#define wxUSE_GIF 1
e6cc62c6 35916_ACEOF
698dcdb6 35917
e46d2a18 35918 fi
698dcdb6 35919
e46d2a18
VS
35920 if test "$wxUSE_PCX" = "yes" ; then
35921 cat >>confdefs.h <<\_ACEOF
698dcdb6 35922#define wxUSE_PCX 1
e6cc62c6 35923_ACEOF
698dcdb6 35924
e46d2a18 35925 fi
698dcdb6 35926
e46d2a18
VS
35927 if test "$wxUSE_IFF" = "yes" ; then
35928 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 35929#define wxUSE_IFF 1
e6cc62c6 35930_ACEOF
4b6b4dfc 35931
e46d2a18 35932 fi
4b6b4dfc 35933
e46d2a18
VS
35934 if test "$wxUSE_PNM" = "yes" ; then
35935 cat >>confdefs.h <<\_ACEOF
698dcdb6 35936#define wxUSE_PNM 1
e6cc62c6 35937_ACEOF
698dcdb6 35938
e46d2a18 35939 fi
698dcdb6 35940
e46d2a18
VS
35941 if test "$wxUSE_XPM" = "yes" ; then
35942 cat >>confdefs.h <<\_ACEOF
698dcdb6 35943#define wxUSE_XPM 1
e6cc62c6 35944_ACEOF
698dcdb6 35945
e46d2a18 35946 fi
698dcdb6 35947
e46d2a18
VS
35948 if test "$wxUSE_ICO_CUR" = "yes" ; then
35949 cat >>confdefs.h <<\_ACEOF
658974ae 35950#define wxUSE_ICO_CUR 1
e6cc62c6 35951_ACEOF
658974ae 35952
e46d2a18 35953 fi
a72a4bfa
VS
35954fi
35955
8284b0c5 35956
1e6feb95 35957if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 35958 cat >>confdefs.h <<\_ACEOF
1e6feb95 35959#define wxUSE_CHOICEDLG 1
e6cc62c6 35960_ACEOF
1e6feb95
VZ
35961
35962fi
35963
35964if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 35965 cat >>confdefs.h <<\_ACEOF
1e6feb95 35966#define wxUSE_COLOURDLG 1
e6cc62c6 35967_ACEOF
1e6feb95
VZ
35968
35969fi
35970
35971if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 35972 cat >>confdefs.h <<\_ACEOF
1e6feb95 35973#define wxUSE_FILEDLG 1
e6cc62c6 35974_ACEOF
1e6feb95
VZ
35975
35976fi
35977
8db37e06 35978if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 35979 cat >>confdefs.h <<\_ACEOF
8db37e06 35980#define wxUSE_FINDREPLDLG 1
e6cc62c6 35981_ACEOF
8db37e06
VZ
35982
35983fi
35984
1e6feb95 35985if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 35986 cat >>confdefs.h <<\_ACEOF
1e6feb95 35987#define wxUSE_FONTDLG 1
e6cc62c6 35988_ACEOF
1e6feb95
VZ
35989
35990fi
35991
35992if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 35993 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
35994 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
35995echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 35996 else
e6cc62c6 35997 cat >>confdefs.h <<\_ACEOF
1e6feb95 35998#define wxUSE_DIRDLG 1
e6cc62c6 35999_ACEOF
1e6feb95 36000
1e6feb95
VZ
36001 fi
36002fi
36003
36004if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 36005 cat >>confdefs.h <<\_ACEOF
1e6feb95 36006#define wxUSE_MSGDLG 1
e6cc62c6 36007_ACEOF
1e6feb95
VZ
36008
36009fi
36010
36011if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 36012 cat >>confdefs.h <<\_ACEOF
1e6feb95 36013#define wxUSE_NUMBERDLG 1
e6cc62c6 36014_ACEOF
1e6feb95
VZ
36015
36016fi
36017
36018if test "$wxUSE_PROGRESSDLG" = "yes"; then
36019 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36020 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36021echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 36022 else
e6cc62c6 36023 cat >>confdefs.h <<\_ACEOF
1e6feb95 36024#define wxUSE_PROGRESSDLG 1
e6cc62c6 36025_ACEOF
1e6feb95
VZ
36026
36027 fi
36028fi
36029
cbca9943 36030if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 36031 cat >>confdefs.h <<\_ACEOF
cbca9943 36032#define wxUSE_SPLASH 1
e6cc62c6 36033_ACEOF
cbca9943
VZ
36034
36035fi
36036
1e6feb95
VZ
36037if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36038 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36039 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36040echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 36041 else
e6cc62c6 36042 cat >>confdefs.h <<\_ACEOF
1e6feb95 36043#define wxUSE_STARTUP_TIPS 1
e6cc62c6 36044_ACEOF
1e6feb95 36045
7b4a847f
RR
36046 fi
36047fi
579d8138 36048
8284b0c5 36049if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 36050 cat >>confdefs.h <<\_ACEOF
8284b0c5 36051#define wxUSE_TEXTDLG 1
e6cc62c6 36052_ACEOF
8284b0c5
MB
36053
36054fi
36055
36056if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 36057 cat >>confdefs.h <<\_ACEOF
8284b0c5 36058#define wxUSE_WIZARDDLG 1
e6cc62c6 36059_ACEOF
8284b0c5
MB
36060
36061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36062fi
36063
36064
36065if test "$cross_compiling" = "yes"; then
36066 OSINFO="\"$host\""
36067else
36068 OSINFO=`uname -s -r -m`
36069 OSINFO="\"$OSINFO\""
36070fi
36071
e6cc62c6 36072cat >>confdefs.h <<_ACEOF
8284b0c5 36073#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 36074_ACEOF
8284b0c5
MB
36075
36076
36077
36078if test "x$prefix" != "xNONE"; then
36079 wxPREFIX=$prefix
36080else
36081 wxPREFIX=$ac_default_prefix
36082fi
36083
e6cc62c6 36084cat >>confdefs.h <<_ACEOF
8284b0c5 36085#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 36086_ACEOF
8284b0c5
MB
36087
36088
e6cc62c6 36089top_builddir_wxconfig=`pwd`
52c71b80 36090
8284b0c5
MB
36091
36092
edd891e2
VS
36093CORE_BASE_LIBS="net base"
36094CORE_GUI_LIBS="adv core"
36095
36096if test "$wxUSE_XML" = "yes" ; then
36097 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36098fi
45293562
VS
36099if test "$wxUSE_ODBC" != "no" ; then
36100 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36101 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
36102fi
36103if test "$wxUSE_HTML" = "yes" ; then
36104 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36105fi
36106
57e7d4ac
VS
36107if test "$wxUSE_GUI" != "yes"; then
36108 CORE_GUI_LIBS=""
36109fi
36110
edd891e2
VS
36111
36112
36113
36114
36115
36116
8284b0c5
MB
36117
36118if test "$wxUSE_MAC" = 1 ; then
36119 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
36120fi
ac0c4cc3
DE
36121if test "$wxUSE_COCOA" = 1 ; then
36122 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36123fi
8284b0c5
MB
36124
36125
2b5f62a0
VZ
36126LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
36127
36128have_cos=0
36129have_floor=0
e6cc62c6 36130
2b5f62a0
VZ
36131for ac_func in cos
36132do
e6cc62c6
VS
36133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36134echo "$as_me:$LINENO: checking for $ac_func" >&5
36135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36136if eval "test \"\${$as_ac_var+set}\" = set"; then
36137 echo $ECHO_N "(cached) $ECHO_C" >&6
36138else
36139 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36140/* confdefs.h. */
36141_ACEOF
36142cat confdefs.h >>conftest.$ac_ext
36143cat >>conftest.$ac_ext <<_ACEOF
36144/* end confdefs.h. */
eea650d8
VS
36145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36147#define $ac_func innocuous_$ac_func
36148
2b5f62a0 36149/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36150 which can conflict with char $ac_func (); below.
36151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36152 <limits.h> exists even on freestanding compilers. */
eea650d8 36153
e6cc62c6
VS
36154#ifdef __STDC__
36155# include <limits.h>
36156#else
36157# include <assert.h>
36158#endif
eea650d8
VS
36159
36160#undef $ac_func
36161
2b5f62a0 36162/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36163#ifdef __cplusplus
36164extern "C"
36165{
36166#endif
2b5f62a0 36167/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36168 builtin and then its argument prototype would still apply. */
36169char $ac_func ();
2b5f62a0
VZ
36170/* The GNU C library defines this for functions which it implements
36171 to always fail with ENOSYS. Some functions are actually named
36172 something starting with __ and the normal name is an alias. */
36173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36174choke me
36175#else
e6cc62c6
VS
36176char (*f) () = $ac_func;
36177#endif
36178#ifdef __cplusplus
36179}
2b5f62a0
VZ
36180#endif
36181
e6cc62c6
VS
36182int
36183main ()
36184{
36185return f != $ac_func;
36186 ;
36187 return 0;
36188}
36189_ACEOF
36190rm -f conftest.$ac_objext conftest$ac_exeext
36191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36192 (eval $ac_link) 2>conftest.er1
e6cc62c6 36193 ac_status=$?
eea650d8
VS
36194 grep -v '^ *+' conftest.er1 >conftest.err
36195 rm -f conftest.er1
36196 cat conftest.err >&5
e6cc62c6
VS
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); } &&
eea650d8
VS
36199 { ac_try='test -z "$ac_c_werror_flag"
36200 || test ! -s conftest.err'
36201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36202 (eval $ac_try) 2>&5
36203 ac_status=$?
36204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); }; } &&
36206 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208 (eval $ac_try) 2>&5
36209 ac_status=$?
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); }; }; then
36212 eval "$as_ac_var=yes"
36213else
36214 echo "$as_me: failed program was:" >&5
36215sed 's/^/| /' conftest.$ac_ext >&5
36216
36217eval "$as_ac_var=no"
36218fi
eea650d8
VS
36219rm -f conftest.err conftest.$ac_objext \
36220 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36221fi
36222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36224if test `eval echo '${'$as_ac_var'}'` = yes; then
36225 cat >>confdefs.h <<_ACEOF
36226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36227_ACEOF
2b5f62a0 36228 have_cos=1
2b5f62a0
VZ
36229fi
36230done
36231
e6cc62c6 36232
2b5f62a0
VZ
36233for ac_func in floor
36234do
e6cc62c6
VS
36235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36236echo "$as_me:$LINENO: checking for $ac_func" >&5
36237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36238if eval "test \"\${$as_ac_var+set}\" = set"; then
36239 echo $ECHO_N "(cached) $ECHO_C" >&6
36240else
36241 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36242/* confdefs.h. */
36243_ACEOF
36244cat confdefs.h >>conftest.$ac_ext
36245cat >>conftest.$ac_ext <<_ACEOF
36246/* end confdefs.h. */
eea650d8
VS
36247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36249#define $ac_func innocuous_$ac_func
36250
2b5f62a0 36251/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36252 which can conflict with char $ac_func (); below.
36253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36254 <limits.h> exists even on freestanding compilers. */
eea650d8 36255
e6cc62c6
VS
36256#ifdef __STDC__
36257# include <limits.h>
36258#else
36259# include <assert.h>
36260#endif
eea650d8
VS
36261
36262#undef $ac_func
36263
2b5f62a0 36264/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36265#ifdef __cplusplus
36266extern "C"
36267{
36268#endif
2b5f62a0 36269/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36270 builtin and then its argument prototype would still apply. */
36271char $ac_func ();
2b5f62a0
VZ
36272/* The GNU C library defines this for functions which it implements
36273 to always fail with ENOSYS. Some functions are actually named
36274 something starting with __ and the normal name is an alias. */
36275#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36276choke me
36277#else
e6cc62c6
VS
36278char (*f) () = $ac_func;
36279#endif
36280#ifdef __cplusplus
36281}
2b5f62a0
VZ
36282#endif
36283
e6cc62c6
VS
36284int
36285main ()
36286{
36287return f != $ac_func;
36288 ;
36289 return 0;
36290}
36291_ACEOF
36292rm -f conftest.$ac_objext conftest$ac_exeext
36293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36294 (eval $ac_link) 2>conftest.er1
e6cc62c6 36295 ac_status=$?
eea650d8
VS
36296 grep -v '^ *+' conftest.er1 >conftest.err
36297 rm -f conftest.er1
36298 cat conftest.err >&5
e6cc62c6
VS
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); } &&
eea650d8
VS
36301 { ac_try='test -z "$ac_c_werror_flag"
36302 || test ! -s conftest.err'
36303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304 (eval $ac_try) 2>&5
36305 ac_status=$?
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); }; } &&
36308 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36310 (eval $ac_try) 2>&5
36311 ac_status=$?
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); }; }; then
36314 eval "$as_ac_var=yes"
36315else
36316 echo "$as_me: failed program was:" >&5
36317sed 's/^/| /' conftest.$ac_ext >&5
36318
36319eval "$as_ac_var=no"
36320fi
eea650d8
VS
36321rm -f conftest.err conftest.$ac_objext \
36322 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36323fi
36324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36326if test `eval echo '${'$as_ac_var'}'` = yes; then
36327 cat >>confdefs.h <<_ACEOF
36328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36329_ACEOF
2b5f62a0 36330 have_floor=1
2b5f62a0
VZ
36331fi
36332done
36333
e6cc62c6
VS
36334echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
36335echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 36336if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
36337 echo "$as_me:$LINENO: result: yes" >&5
36338echo "${ECHO_T}yes" >&6
2b5f62a0 36339else
e6cc62c6
VS
36340 echo "$as_me:$LINENO: result: no" >&5
36341echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36342 LIBS="$LIBS -lm"
36343 # use different functions to avoid configure caching
36344 have_sin=0
36345 have_ceil=0
e6cc62c6
VS
36346
36347for ac_func in sin
2b5f62a0 36348do
e6cc62c6
VS
36349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36350echo "$as_me:$LINENO: checking for $ac_func" >&5
36351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36352if eval "test \"\${$as_ac_var+set}\" = set"; then
36353 echo $ECHO_N "(cached) $ECHO_C" >&6
36354else
36355 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36356/* confdefs.h. */
36357_ACEOF
36358cat confdefs.h >>conftest.$ac_ext
36359cat >>conftest.$ac_ext <<_ACEOF
36360/* end confdefs.h. */
eea650d8
VS
36361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36363#define $ac_func innocuous_$ac_func
36364
2b5f62a0 36365/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36366 which can conflict with char $ac_func (); below.
36367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36368 <limits.h> exists even on freestanding compilers. */
eea650d8 36369
e6cc62c6
VS
36370#ifdef __STDC__
36371# include <limits.h>
36372#else
36373# include <assert.h>
36374#endif
eea650d8
VS
36375
36376#undef $ac_func
36377
2b5f62a0 36378/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36379#ifdef __cplusplus
36380extern "C"
36381{
36382#endif
2b5f62a0 36383/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36384 builtin and then its argument prototype would still apply. */
36385char $ac_func ();
2b5f62a0
VZ
36386/* The GNU C library defines this for functions which it implements
36387 to always fail with ENOSYS. Some functions are actually named
36388 something starting with __ and the normal name is an alias. */
36389#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36390choke me
36391#else
e6cc62c6
VS
36392char (*f) () = $ac_func;
36393#endif
36394#ifdef __cplusplus
36395}
2b5f62a0
VZ
36396#endif
36397
e6cc62c6
VS
36398int
36399main ()
36400{
36401return f != $ac_func;
36402 ;
36403 return 0;
36404}
36405_ACEOF
36406rm -f conftest.$ac_objext conftest$ac_exeext
36407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36408 (eval $ac_link) 2>conftest.er1
e6cc62c6 36409 ac_status=$?
eea650d8
VS
36410 grep -v '^ *+' conftest.er1 >conftest.err
36411 rm -f conftest.er1
36412 cat conftest.err >&5
e6cc62c6
VS
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); } &&
eea650d8
VS
36415 { ac_try='test -z "$ac_c_werror_flag"
36416 || test ! -s conftest.err'
36417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36418 (eval $ac_try) 2>&5
36419 ac_status=$?
36420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421 (exit $ac_status); }; } &&
36422 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36424 (eval $ac_try) 2>&5
36425 ac_status=$?
36426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427 (exit $ac_status); }; }; then
36428 eval "$as_ac_var=yes"
36429else
36430 echo "$as_me: failed program was:" >&5
36431sed 's/^/| /' conftest.$ac_ext >&5
36432
36433eval "$as_ac_var=no"
36434fi
eea650d8
VS
36435rm -f conftest.err conftest.$ac_objext \
36436 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36437fi
36438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36440if test `eval echo '${'$as_ac_var'}'` = yes; then
36441 cat >>confdefs.h <<_ACEOF
36442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36443_ACEOF
2b5f62a0 36444 have_sin=1
2b5f62a0
VZ
36445fi
36446done
36447
e6cc62c6
VS
36448
36449for ac_func in ceil
2b5f62a0 36450do
e6cc62c6
VS
36451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36452echo "$as_me:$LINENO: checking for $ac_func" >&5
36453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36454if eval "test \"\${$as_ac_var+set}\" = set"; then
36455 echo $ECHO_N "(cached) $ECHO_C" >&6
36456else
36457 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36458/* confdefs.h. */
36459_ACEOF
36460cat confdefs.h >>conftest.$ac_ext
36461cat >>conftest.$ac_ext <<_ACEOF
36462/* end confdefs.h. */
eea650d8
VS
36463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36465#define $ac_func innocuous_$ac_func
36466
2b5f62a0 36467/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36468 which can conflict with char $ac_func (); below.
36469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36470 <limits.h> exists even on freestanding compilers. */
eea650d8 36471
e6cc62c6
VS
36472#ifdef __STDC__
36473# include <limits.h>
36474#else
36475# include <assert.h>
36476#endif
eea650d8
VS
36477
36478#undef $ac_func
36479
2b5f62a0 36480/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36481#ifdef __cplusplus
36482extern "C"
36483{
36484#endif
2b5f62a0 36485/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36486 builtin and then its argument prototype would still apply. */
36487char $ac_func ();
2b5f62a0
VZ
36488/* The GNU C library defines this for functions which it implements
36489 to always fail with ENOSYS. Some functions are actually named
36490 something starting with __ and the normal name is an alias. */
36491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36492choke me
36493#else
e6cc62c6
VS
36494char (*f) () = $ac_func;
36495#endif
36496#ifdef __cplusplus
36497}
2b5f62a0
VZ
36498#endif
36499
e6cc62c6
VS
36500int
36501main ()
36502{
36503return f != $ac_func;
36504 ;
36505 return 0;
36506}
36507_ACEOF
36508rm -f conftest.$ac_objext conftest$ac_exeext
36509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36510 (eval $ac_link) 2>conftest.er1
e6cc62c6 36511 ac_status=$?
eea650d8
VS
36512 grep -v '^ *+' conftest.er1 >conftest.err
36513 rm -f conftest.er1
36514 cat conftest.err >&5
e6cc62c6
VS
36515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516 (exit $ac_status); } &&
eea650d8
VS
36517 { ac_try='test -z "$ac_c_werror_flag"
36518 || test ! -s conftest.err'
36519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36520 (eval $ac_try) 2>&5
36521 ac_status=$?
36522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523 (exit $ac_status); }; } &&
36524 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36526 (eval $ac_try) 2>&5
36527 ac_status=$?
36528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529 (exit $ac_status); }; }; then
36530 eval "$as_ac_var=yes"
36531else
36532 echo "$as_me: failed program was:" >&5
36533sed 's/^/| /' conftest.$ac_ext >&5
36534
36535eval "$as_ac_var=no"
36536fi
eea650d8
VS
36537rm -f conftest.err conftest.$ac_objext \
36538 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36539fi
36540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36542if test `eval echo '${'$as_ac_var'}'` = yes; then
36543 cat >>confdefs.h <<_ACEOF
36544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36545_ACEOF
2b5f62a0 36546 have_ceil=1
2b5f62a0
VZ
36547fi
36548done
36549
e6cc62c6
VS
36550 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
36551echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 36552 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
36553 echo "$as_me:$LINENO: result: yes" >&5
36554echo "${ECHO_T}yes" >&6
2b5f62a0 36555 else
e6cc62c6
VS
36556 echo "$as_me:$LINENO: result: no" >&5
36557echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36558 # not sure we should warn the user, crash, etc.
36559 fi
36560fi
8284b0c5
MB
36561
36562if test "$wxUSE_GUI" = "yes"; then
36563
e6cc62c6 36564
8284b0c5
MB
36565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
36566 drawing dynamic erase event exec font image \
1dd02ac0 36567 minimal propsize rotate shaped widgets render"
b625909c
VS
36568
36569 if test "$wxUSE_MONOLITHIC" != "yes"; then
36570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
36571 fi
8284b0c5
MB
36572else
36573 SAMPLES_SUBDIRS="console"
36574fi
36575
36576
e6cc62c6 36577INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 36578-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 36579
fddeb06b
VS
36580if test "$GXX" = yes ; then
36581 CXXWARNINGS="-Wall"
36582 fi
36583
36584EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
36585
95318f7d 36586CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
36587CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
36588CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
36589
36590
fddeb06b 36591LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 36592EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 36593EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 36594EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 36595EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
36596if test "$wxUSE_GUI" = "yes"; then
36597 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
36598fi
34b08d2c
VS
36599if test "$wxUSE_OPENGL" = "yes"; then
36600 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
36601fi
fddeb06b
VS
36602
36603LDFLAGS="$LDFLAGS $PROFILE"
36604
8284b0c5
MB
36605if test "$wxUSE_GTK" = 1; then
36606 WXCONFIG_INCLUDE=
36607else
36608 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
36609fi
36610
67c13b6c
VS
36611WXCONFIG_EXTRALIBS="$LIBS"
36612
36613if test "$wxUSE_REGEX" = "builtin" ; then
36614 wxconfig_3rdparty="$wxconfig_3rdparty regex"
36615fi
36616if test "$wxUSE_EXPAT" = "builtin" ; then
36617 wxconfig_3rdparty="$wxconfig_3rdparty expat"
36618fi
36619if test "$wxUSE_ODBC" = "builtin" ; then
36620 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36621fi
36622if test "$wxUSE_LIBTIFF" = "builtin" ; then
36623 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
36624fi
36625if test "$wxUSE_LIBJPEG" = "builtin" ; then
36626 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
36627fi
36628if test "$wxUSE_LIBPNG" = "builtin" ; then
36629 wxconfig_3rdparty="$wxconfig_3rdparty png"
36630fi
36631if test "$wxUSE_ZLIB" = "builtin" ; then
36632 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
36633fi
bb41dcbe
VS
36634if test "$wxUSE_ODBC" = "builtin" ; then
36635 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36636fi
67c13b6c
VS
36637
36638for i in $wxconfig_3rdparty ; do
36639 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
36640done
36641
36642
fe0895cf
VS
36643if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
36644 WXUNIV=1
36645else
36646 WXUNIV=0
8284b0c5
MB
36647fi
36648
8284b0c5
MB
36649
36650
36651
36652
36653
36654
36655
672abd7a 36656
9747f85d
VS
36657if test $wxUSE_MONOLITHIC = "yes" ; then
36658 MONOLITHIC=1
36659else
36660 MONOLITHIC=0
36661fi
8284b0c5 36662
bb41dcbe
VS
36663if test $wxUSE_ODBC != "no" ; then
36664 USE_ODBC=1
36665else
36666 USE_ODBC=0
36667fi
36668
029b47ad
VS
36669if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
36670 OFFICIAL_BUILD=1
36671else
36672 OFFICIAL_BUILD=0
36673fi
36674
8ee2dd05
VS
36675
36676
36677
8284b0c5
MB
36678
36679
36680
36681
36682
36683
c74dc163 36684
34b08d2c 36685
672abd7a 36686
cf615ebb 36687
6c67131a
VS
36688
36689
bb41dcbe 36690
3527f29c 36691
89fe663f 36692TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
36693
36694
36695
36696
36697
ea66c762 36698
0f1bc9c2 36699
fe0895cf 36700 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
36701
36702 if test -n "$ac_tool_prefix"; then
36703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36704set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36705echo "$as_me:$LINENO: checking for $ac_word" >&5
36706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36707if test "${ac_cv_prog_RANLIB+set}" = set; then
36708 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 36709else
fe0895cf
VS
36710 if test -n "$RANLIB"; then
36711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 36712else
e6cc62c6
VS
36713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36714for as_dir in $PATH
36715do
36716 IFS=$as_save_IFS
36717 test -z "$as_dir" && as_dir=.
36718 for ac_exec_ext in '' $ac_executable_extensions; do
36719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36722 break 2
36723 fi
36724done
36725done
36726
10f2d63a 36727fi
10f2d63a 36728fi
e6cc62c6 36729RANLIB=$ac_cv_prog_RANLIB
fe0895cf 36730if test -n "$RANLIB"; then
e6cc62c6
VS
36731 echo "$as_me:$LINENO: result: $RANLIB" >&5
36732echo "${ECHO_T}$RANLIB" >&6
36733else
36734 echo "$as_me:$LINENO: result: no" >&5
36735echo "${ECHO_T}no" >&6
36736fi
36737
36738fi
36739if test -z "$ac_cv_prog_RANLIB"; then
36740 ac_ct_RANLIB=$RANLIB
36741 # Extract the first word of "ranlib", so it can be a program name with args.
36742set dummy ranlib; ac_word=$2
36743echo "$as_me:$LINENO: checking for $ac_word" >&5
36744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36745if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36746 echo $ECHO_N "(cached) $ECHO_C" >&6
36747else
36748 if test -n "$ac_ct_RANLIB"; then
36749 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36750else
36751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36752for as_dir in $PATH
36753do
36754 IFS=$as_save_IFS
36755 test -z "$as_dir" && as_dir=.
36756 for ac_exec_ext in '' $ac_executable_extensions; do
36757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36758 ac_cv_prog_ac_ct_RANLIB="ranlib"
36759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36760 break 2
36761 fi
36762done
36763done
36764
36765 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
36766fi
36767fi
36768ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36769if test -n "$ac_ct_RANLIB"; then
36770 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36771echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 36772else
e6cc62c6
VS
36773 echo "$as_me:$LINENO: result: no" >&5
36774echo "${ECHO_T}no" >&6
36775fi
36776
36777 RANLIB=$ac_ct_RANLIB
36778else
36779 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 36780fi
665bbe97 36781
fe0895cf
VS
36782 # Find a good install program. We prefer a C program (faster),
36783# so one script is as good as another. But avoid the broken or
36784# incompatible versions:
36785# SysV /etc/install, /usr/sbin/install
36786# SunOS /usr/etc/install
36787# IRIX /sbin/install
36788# AIX /bin/install
e6cc62c6 36789# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
36790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36791# AFS /usr/afsws/bin/install, which mishandles nonexistent args
36792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
eea650d8 36793# OS/2's system install, which has a completely different semantic
fe0895cf 36794# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
36795echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36796echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 36797if test -z "$INSTALL"; then
e6cc62c6
VS
36798if test "${ac_cv_path_install+set}" = set; then
36799 echo $ECHO_N "(cached) $ECHO_C" >&6
36800else
36801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36802for as_dir in $PATH
36803do
36804 IFS=$as_save_IFS
36805 test -z "$as_dir" && as_dir=.
36806 # Account for people who put trailing slashes in PATH elements.
36807case $as_dir/ in
36808 ./ | .// | /cC/* | \
36809 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
eea650d8 36810 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
36811 /usr/ucb/* ) ;;
36812 *)
36813 # OSF1 and SCO ODT 3.0 have their own names for install.
36814 # Don't use installbsd from OSF since it installs stuff as root
36815 # by default.
36816 for ac_prog in ginstall scoinst install; do
36817 for ac_exec_ext in '' $ac_executable_extensions; do
eea650d8
VS
36818 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36819 if test $ac_prog = install &&
36820 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36821 # AIX install. It has an incompatible calling convention.
36822 :
36823 elif test $ac_prog = install &&
36824 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36825 # program-specific install script used by HP pwplus--don't use.
36826 :
36827 else
36828 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36829 break 3
36830 fi
36831 fi
fe0895cf 36832 done
e6cc62c6
VS
36833 done
36834 ;;
36835esac
36836done
36837
fe0895cf
VS
36838
36839fi
36840 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 36841 INSTALL=$ac_cv_path_install
fe0895cf
VS
36842 else
36843 # As a last resort, use the slow shell script. We don't cache a
36844 # path for INSTALL within a source directory, because that will
36845 # break other packages using the cache if that directory is
36846 # removed, or if the path is relative.
e6cc62c6 36847 INSTALL=$ac_install_sh
fe0895cf
VS
36848 fi
36849fi
e6cc62c6
VS
36850echo "$as_me:$LINENO: result: $INSTALL" >&5
36851echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
36852
36853# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36854# It thinks the first close brace ends the variable substitution.
36855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36856
e6cc62c6 36857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
36858
36859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36860
e6cc62c6
VS
36861 echo "$as_me:$LINENO: checking whether ln -s works" >&5
36862echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
36863LN_S=$as_ln_s
36864if test "$LN_S" = "ln -s"; then
36865 echo "$as_me:$LINENO: result: yes" >&5
36866echo "${ECHO_T}yes" >&6
fe0895cf 36867else
e6cc62c6
VS
36868 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
36869echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
36870fi
36871
36872
e6cc62c6
VS
36873 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36874echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
eea650d8 36875set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
36876if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36877 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 36878else
e6cc62c6 36879 cat >conftest.make <<\_ACEOF
fe0895cf 36880all:
e6cc62c6
VS
36881 @echo 'ac_maketemp="$(MAKE)"'
36882_ACEOF
fe0895cf 36883# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 36884eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
36885if test -n "$ac_maketemp"; then
36886 eval ac_cv_prog_make_${ac_make}_set=yes
36887else
36888 eval ac_cv_prog_make_${ac_make}_set=no
36889fi
e6cc62c6 36890rm -f conftest.make
fe0895cf
VS
36891fi
36892if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
36893 echo "$as_me:$LINENO: result: yes" >&5
36894echo "${ECHO_T}yes" >&6
fe0895cf
VS
36895 SET_MAKE=
36896else
e6cc62c6
VS
36897 echo "$as_me:$LINENO: result: no" >&5
36898echo "${ECHO_T}no" >&6
fe0895cf
VS
36899 SET_MAKE="MAKE=${MAKE-make}"
36900fi
36901
e6cc62c6
VS
36902
36903
874d12cf
VS
36904 if test -n "$ac_tool_prefix"; then
36905 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36906set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
36907echo "$as_me:$LINENO: checking for $ac_word" >&5
36908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36909if test "${ac_cv_prog_AR+set}" = set; then
36910 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36911else
36912 if test -n "$AR"; then
36913 ac_cv_prog_AR="$AR" # Let the user override the test.
36914else
e6cc62c6
VS
36915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36916for as_dir in $PATH
36917do
36918 IFS=$as_save_IFS
36919 test -z "$as_dir" && as_dir=.
36920 for ac_exec_ext in '' $ac_executable_extensions; do
36921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 36922 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
36923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36924 break 2
36925 fi
36926done
36927done
36928
fe0895cf
VS
36929fi
36930fi
e6cc62c6 36931AR=$ac_cv_prog_AR
fe0895cf 36932if test -n "$AR"; then
e6cc62c6
VS
36933 echo "$as_me:$LINENO: result: $AR" >&5
36934echo "${ECHO_T}$AR" >&6
fe0895cf 36935else
e6cc62c6
VS
36936 echo "$as_me:$LINENO: result: no" >&5
36937echo "${ECHO_T}no" >&6
fe0895cf
VS
36938fi
36939
874d12cf
VS
36940fi
36941if test -z "$ac_cv_prog_AR"; then
36942 ac_ct_AR=$AR
36943 # Extract the first word of "ar", so it can be a program name with args.
36944set dummy ar; ac_word=$2
36945echo "$as_me:$LINENO: checking for $ac_word" >&5
36946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36947if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36948 echo $ECHO_N "(cached) $ECHO_C" >&6
36949else
36950 if test -n "$ac_ct_AR"; then
36951 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36952else
36953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36954for as_dir in $PATH
36955do
36956 IFS=$as_save_IFS
36957 test -z "$as_dir" && as_dir=.
36958 for ac_exec_ext in '' $ac_executable_extensions; do
36959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36960 ac_cv_prog_ac_ct_AR="ar"
36961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36962 break 2
36963 fi
36964done
36965done
36966
36967 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
36968fi
36969fi
36970ac_ct_AR=$ac_cv_prog_ac_ct_AR
36971if test -n "$ac_ct_AR"; then
36972 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
36973echo "${ECHO_T}$ac_ct_AR" >&6
36974else
36975 echo "$as_me:$LINENO: result: no" >&5
36976echo "${ECHO_T}no" >&6
36977fi
36978
36979 AR=$ac_ct_AR
36980else
36981 AR="$ac_cv_prog_AR"
36982fi
36983
36984 if test -n "$ac_tool_prefix"; then
36985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
36986set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
36987echo "$as_me:$LINENO: checking for $ac_word" >&5
36988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36989if test "${ac_cv_prog_STRIP+set}" = set; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36991else
36992 if test -n "$STRIP"; then
36993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
36994else
e6cc62c6
VS
36995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36996for as_dir in $PATH
36997do
36998 IFS=$as_save_IFS
36999 test -z "$as_dir" && as_dir=.
37000 for ac_exec_ext in '' $ac_executable_extensions; do
37001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
37003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37004 break 2
37005 fi
37006done
37007done
37008
fe0895cf
VS
37009fi
37010fi
e6cc62c6 37011STRIP=$ac_cv_prog_STRIP
fe0895cf 37012if test -n "$STRIP"; then
e6cc62c6
VS
37013 echo "$as_me:$LINENO: result: $STRIP" >&5
37014echo "${ECHO_T}$STRIP" >&6
fe0895cf 37015else
e6cc62c6
VS
37016 echo "$as_me:$LINENO: result: no" >&5
37017echo "${ECHO_T}no" >&6
fe0895cf
VS
37018fi
37019
874d12cf
VS
37020fi
37021if test -z "$ac_cv_prog_STRIP"; then
37022 ac_ct_STRIP=$STRIP
37023 # Extract the first word of "strip", so it can be a program name with args.
37024set dummy strip; ac_word=$2
37025echo "$as_me:$LINENO: checking for $ac_word" >&5
37026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37027if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37028 echo $ECHO_N "(cached) $ECHO_C" >&6
37029else
37030 if test -n "$ac_ct_STRIP"; then
37031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37032else
37033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37034for as_dir in $PATH
37035do
37036 IFS=$as_save_IFS
37037 test -z "$as_dir" && as_dir=.
37038 for ac_exec_ext in '' $ac_executable_extensions; do
37039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37040 ac_cv_prog_ac_ct_STRIP="strip"
37041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37042 break 2
37043 fi
37044done
37045done
37046
37047 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37048fi
37049fi
37050ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37051if test -n "$ac_ct_STRIP"; then
37052 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37053echo "${ECHO_T}$ac_ct_STRIP" >&6
37054else
37055 echo "$as_me:$LINENO: result: no" >&5
37056echo "${ECHO_T}no" >&6
37057fi
37058
37059 STRIP=$ac_ct_STRIP
37060else
37061 STRIP="$ac_cv_prog_STRIP"
37062fi
37063
37064 if test -n "$ac_tool_prefix"; then
37065 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37066set dummy ${ac_tool_prefix}nm; ac_word=$2
37067echo "$as_me:$LINENO: checking for $ac_word" >&5
37068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37069if test "${ac_cv_prog_NM+set}" = set; then
37070 echo $ECHO_N "(cached) $ECHO_C" >&6
37071else
37072 if test -n "$NM"; then
37073 ac_cv_prog_NM="$NM" # Let the user override the test.
37074else
37075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37076for as_dir in $PATH
37077do
37078 IFS=$as_save_IFS
37079 test -z "$as_dir" && as_dir=.
37080 for ac_exec_ext in '' $ac_executable_extensions; do
37081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37082 ac_cv_prog_NM="${ac_tool_prefix}nm"
37083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37084 break 2
37085 fi
37086done
37087done
37088
37089fi
37090fi
37091NM=$ac_cv_prog_NM
37092if test -n "$NM"; then
37093 echo "$as_me:$LINENO: result: $NM" >&5
37094echo "${ECHO_T}$NM" >&6
37095else
37096 echo "$as_me:$LINENO: result: no" >&5
37097echo "${ECHO_T}no" >&6
37098fi
37099
37100fi
37101if test -z "$ac_cv_prog_NM"; then
37102 ac_ct_NM=$NM
37103 # Extract the first word of "nm", so it can be a program name with args.
37104set dummy nm; ac_word=$2
37105echo "$as_me:$LINENO: checking for $ac_word" >&5
37106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37107if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
37108 echo $ECHO_N "(cached) $ECHO_C" >&6
37109else
37110 if test -n "$ac_ct_NM"; then
37111 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37112else
37113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37114for as_dir in $PATH
37115do
37116 IFS=$as_save_IFS
37117 test -z "$as_dir" && as_dir=.
37118 for ac_exec_ext in '' $ac_executable_extensions; do
37119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37120 ac_cv_prog_ac_ct_NM="nm"
37121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37122 break 2
37123 fi
37124done
37125done
37126
37127 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
37128fi
37129fi
37130ac_ct_NM=$ac_cv_prog_ac_ct_NM
37131if test -n "$ac_ct_NM"; then
37132 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
37133echo "${ECHO_T}$ac_ct_NM" >&6
37134else
37135 echo "$as_me:$LINENO: result: no" >&5
37136echo "${ECHO_T}no" >&6
37137fi
37138
37139 NM=$ac_ct_NM
37140else
37141 NM="$ac_cv_prog_NM"
37142fi
37143
fe0895cf
VS
37144
37145 case ${host} in
37146 *-hp-hpux* )
37147 INSTALL_DIR="mkdir"
37148 ;;
37149 *) INSTALL_DIR="$INSTALL -d"
37150 ;;
37151 esac
e6cc62c6 37152
fe0895cf 37153
6b9d41a5
VS
37154 LDFLAGS_GUI=
37155 case ${host} in
37156 *-*-cygwin* | *-*-mingw32* )
37157 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
37158 esac
37159
37160
fe0895cf 37161 fi
e6cc62c6
VS
37162
37163 echo "$as_me:$LINENO: checking if make is GNU make" >&5
37164echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 37165if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 37166 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37167else
e6cc62c6 37168
fe0895cf
VS
37169 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
37170 egrep -s GNU > /dev/null); then
37171 bakefile_cv_prog_makeisgnu="yes"
37172 else
37173 bakefile_cv_prog_makeisgnu="no"
37174 fi
fe0895cf 37175
e6cc62c6 37176fi
49b0a3aa
VS
37177echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
37178echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
37179
37180 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
37181 IF_GNU_MAKE=""
37182 else
37183 IF_GNU_MAKE="#"
37184 fi
fe0895cf 37185
e6cc62c6
VS
37186
37187
fe0895cf
VS
37188 PLATFORM_UNIX=0
37189 PLATFORM_WIN32=0
37190 PLATFORM_MSDOS=0
37191 PLATFORM_MAC=0
37192 PLATFORM_MACOSX=0
96c1699d 37193 PLATFORM_OS2=0
e6cc62c6 37194
fe0895cf
VS
37195 case "${host}" in
37196 *-*-cygwin* | *-*-mingw32* )
37197 PLATFORM_WIN32=1
37198 ;;
96c1699d 37199 *-pc-msdosdjgpp )
fe0895cf
VS
37200 PLATFORM_MSDOS=1
37201 ;;
96c1699d
VS
37202 *-pc-os2_emx | *-pc-os2-emx )
37203 PLATFORM_OS2=1
37204 ;;
fe0895cf
VS
37205 powerpc-*-darwin* )
37206 PLATFORM_MAC=1
37207 PLATFORM_MACOSX=1
37208 ;;
37209 * )
37210 PLATFORM_UNIX=1
37211 ;;
37212 esac
37213
fe0895cf 37214
e6cc62c6
VS
37215
37216
37217
37218
37219
37220
96c1699d 37221
fe0895cf 37222 SO_SUFFIX="so"
131f235d 37223 SO_SUFFIX_MODULE="so"
fe0895cf 37224 EXEEXT=""
4b1f6360 37225 LIBPREFIX=lib
fe0895cf 37226 DLLPREFIX=lib
131f235d 37227 DLLPREFIX_MODULE=
e6cc62c6 37228
fe0895cf
VS
37229 case "${host}" in
37230 *-hp-hpux* )
37231 SO_SUFFIX="sl"
131f235d 37232 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
37233 ;;
37234 *-*-aix* )
37235 SO_SUFFIX="a"
131f235d 37236 SO_SUFFIX_MODULE="a"
fe0895cf
VS
37237 ;;
37238 *-*-cygwin* | *-*-mingw32* )
37239 SO_SUFFIX="dll"
131f235d 37240 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
37241 EXEEXT=".exe"
37242 DLLPREFIX=""
37243 ;;
4b1f6360
VS
37244 *-pc-msdosdjgpp )
37245 EXEEXT=".exe"
37246 DLLPREFIX=""
37247 ;;
37248 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
37249 EXEEXT=".exe"
37250 DLLPREFIX=""
4b1f6360 37251 LIBPREFIX=""
fe0895cf
VS
37252 ;;
37253 powerpc-*-darwin* )
37254 SO_SUFFIX="dylib"
131f235d 37255 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
37256 ;;
37257 esac
37258
fe0895cf 37259
e6cc62c6
VS
37260
37261
37262
37263
131f235d
VS
37264
37265
4b1f6360 37266
fe0895cf
VS
37267 SHARED_LD_CC="\$(CC) -shared -o"
37268 SHARED_LD_CXX="\$(CXX) -shared -o"
37269
37270 if test "x$GCC" = "xyes"; then
37271 PIC_FLAG="-fPIC"
37272 fi
37273
37274 case "${host}" in
37275 *-hp-hpux* )
37276 if test "x$GCC" = "xyes"; then
37277 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
37278 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
37279 else
37280 LDFLAGS="$LDFLAGS -L/usr/lib"
37281
37282 SHARED_LD_CC="${CC} -b -o"
37283 SHARED_LD_CXX="${CXX} -b -o"
37284 PIC_FLAG="+Z"
37285 fi
37286 ;;
37287
37288 *-*-linux* )
37289 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
37290 echo "$as_me:$LINENO: checking for Intel compiler" >&5
37291echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
37292if test "${bakefile_cv_prog_icc+set}" = set; then
37293 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37294else
fe0895cf 37295
e6cc62c6 37296 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37297/* confdefs.h. */
37298_ACEOF
37299cat confdefs.h >>conftest.$ac_ext
37300cat >>conftest.$ac_ext <<_ACEOF
37301/* end confdefs.h. */
37302
37303int
37304main ()
37305{
fe0895cf
VS
37306
37307 #ifndef __INTEL_COMPILER
37308 #error Not icc
37309 #endif
e6cc62c6
VS
37310
37311 ;
37312 return 0;
37313}
37314_ACEOF
37315rm -f conftest.$ac_objext
37316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 37317 (eval $ac_compile) 2>conftest.er1
e6cc62c6 37318 ac_status=$?
eea650d8
VS
37319 grep -v '^ *+' conftest.er1 >conftest.err
37320 rm -f conftest.er1
37321 cat conftest.err >&5
e6cc62c6
VS
37322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); } &&
eea650d8
VS
37324 { ac_try='test -z "$ac_c_werror_flag"
37325 || test ! -s conftest.err'
37326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327 (eval $ac_try) 2>&5
37328 ac_status=$?
37329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330 (exit $ac_status); }; } &&
37331 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
37332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37333 (eval $ac_try) 2>&5
37334 ac_status=$?
37335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37336 (exit $ac_status); }; }; then
fe0895cf
VS
37337 bakefile_cv_prog_icc=yes
37338else
e6cc62c6
VS
37339 echo "$as_me: failed program was:" >&5
37340sed 's/^/| /' conftest.$ac_ext >&5
37341
37342bakefile_cv_prog_icc=no
37343
fe0895cf 37344fi
eea650d8 37345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 37346
e6cc62c6
VS
37347fi
37348echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
37349echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
37350 if test "$bakefile_cv_prog_icc" = "yes"; then
37351 PIC_FLAG="-KPIC"
37352 fi
37353 fi
37354 ;;
37355
37356 *-*-solaris2* )
37357 if test "x$GCC" != xyes ; then
37358 SHARED_LD_CC="${CC} -G -o"
37359 SHARED_LD_CXX="${CXX} -G -o"
37360 PIC_FLAG="-KPIC"
37361 fi
37362 ;;
37363
37364 *-*-darwin* )
37365 CFLAGS="$CFLAGS -fno-common"
37366 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
37367
37368
2a879853 37369 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
37370echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
37371if test "${wx_cv_gcc31+set}" = set; then
37372 echo $ECHO_N "(cached) $ECHO_C" >&6
37373else
37374
2a879853 37375 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
37376/* confdefs.h. */
37377_ACEOF
37378cat confdefs.h >>conftest.$ac_ext
37379cat >>conftest.$ac_ext <<_ACEOF
37380/* end confdefs.h. */
37381
37382int
37383main ()
37384{
37385
2a879853
VS
37386 #if (__GNUC__ < 3) || \
37387 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
37388 #error old gcc
37389 #endif
43948499
RD
37390
37391 ;
37392 return 0;
37393}
37394_ACEOF
37395rm -f conftest.$ac_objext
37396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 37397 (eval $ac_compile) 2>conftest.er1
43948499 37398 ac_status=$?
eea650d8
VS
37399 grep -v '^ *+' conftest.er1 >conftest.err
37400 rm -f conftest.er1
37401 cat conftest.err >&5
43948499
RD
37402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403 (exit $ac_status); } &&
eea650d8
VS
37404 { ac_try='test -z "$ac_c_werror_flag"
37405 || test ! -s conftest.err'
37406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37407 (eval $ac_try) 2>&5
37408 ac_status=$?
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); }; } &&
37411 { ac_try='test -s conftest.$ac_objext'
43948499
RD
37412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413 (eval $ac_try) 2>&5
37414 ac_status=$?
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); }; }; then
37417
2a879853 37418 wx_cv_gcc31=yes
43948499
RD
37419
37420else
37421 echo "$as_me: failed program was:" >&5
37422sed 's/^/| /' conftest.$ac_ext >&5
37423
37424
2a879853 37425 wx_cv_gcc31=no
43948499
RD
37426
37427
37428fi
eea650d8 37429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
37430
37431fi
37432echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
37433echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 37434 if test "$wx_cv_gcc31" = "no"; then
43948499 37435 cat <<EOF >shared-ld-sh
fe0895cf
VS
37436#!/bin/sh
37437#-----------------------------------------------------------------------------
37438#-- Name: distrib/mac/shared-ld-sh
37439#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
37440#-- Author: Gilles Depeyrot
37441#-- Copyright: (c) 2002 Gilles Depeyrot
37442#-- Licence: any use permitted
37443#-----------------------------------------------------------------------------
37444
37445verbose=0
37446args=""
37447objects=""
131f235d 37448linking_flag="-dynamiclib"
fe0895cf
VS
37449
37450while test \${#} -gt 0; do
37451 case \${1} in
37452
37453 -v)
37454 verbose=1
37455 ;;
37456
37457 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
37458 # collect these options and values
37459 args="\${args} \${1} \${2}"
37460 shift
37461 ;;
37462
37463 -l*|-L*|-flat_namespace)
37464 # collect these options
37465 args="\${args} \${1}"
37466 ;;
37467
131f235d
VS
37468 -dynamiclib|-bundle)
37469 linking_flag="\${1}"
fe0895cf
VS
37470 ;;
37471
37472 -*)
37473 echo "shared-ld: unhandled option '\${1}'"
37474 exit 1
37475 ;;
37476
4d264332 37477 *.o | *.a | *.dylib)
fe0895cf
VS
37478 # collect object files
37479 objects="\${objects} \${1}"
37480 ;;
37481
37482 *)
37483 echo "shared-ld: unhandled argument '\${1}'"
37484 exit 1
37485 ;;
37486
37487 esac
37488 shift
37489done
37490
37491#
37492# Link one module containing all the others
37493#
37494if test \${verbose} = 1; then
37495 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
37496fi
37497c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
37498status=\$?
37499if test \${status} != 0; then
37500 exit \${status}
37501fi
37502
37503#
37504# Link the shared library from the single module created
37505#
37506if test \${verbose} = 1; then
2a879853 37507 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 37508fi
131f235d 37509c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
37510status=\$?
37511if test \${status} != 0; then
37512 exit \${status}
37513fi
37514
37515#
37516# Remove intermediate module
37517#
37518rm -f master.\$\$.o
37519
37520exit 0
37521EOF
43948499 37522 chmod +x shared-ld-sh
fe0895cf 37523
7f523214
VS
37524 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
37525 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
37526 SHARED_LD_CXX="$SHARED_LD_CC"
37527 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
37528 else
7f523214
VS
37529 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
37530 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
37531 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
37532 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
37533 fi
37534
fe0895cf 37535 PIC_FLAG="-dynamic -fPIC"
2a879853 37536 ;;
fe0895cf
VS
37537
37538 *-*-aix* )
37539 if test "x$GCC" != "xyes"; then
37540 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
37541set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
37542echo "$as_me:$LINENO: checking for $ac_word" >&5
37543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37544if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
37545 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37546else
37547 if test -n "$AIX_CXX_LD"; then
37548 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
37549else
e6cc62c6
VS
37550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37551for as_dir in $PATH
37552do
37553 IFS=$as_save_IFS
37554 test -z "$as_dir" && as_dir=.
37555 for ac_exec_ext in '' $ac_executable_extensions; do
37556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37557 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
37558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37559 break 2
37560 fi
37561done
37562done
37563
fe0895cf
VS
37564 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
37565fi
37566fi
e6cc62c6 37567AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 37568if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
37569 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
37570echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 37571else
e6cc62c6
VS
37572 echo "$as_me:$LINENO: result: no" >&5
37573echo "${ECHO_T}no" >&6
fe0895cf
VS
37574fi
37575
37576 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
37577 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
37578 fi
37579 ;;
37580
37581 *-*-beos* )
37582 SHARED_LD_CC="${LD} -shared -o"
37583 SHARED_LD_CXX="${LD} -shared -o"
37584 ;;
37585
37586 *-*-irix* )
37587 if test "x$GCC" != "xyes"; then
37588 PIC_FLAG="-KPIC"
37589 fi
37590 ;;
e6cc62c6 37591
fe0895cf
VS
37592 *-*-cygwin* | *-*-mingw32* )
37593 PIC_FLAG=""
37594 ;;
e6cc62c6 37595
fe0895cf
VS
37596 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
37597 *-*-sunos4* | \
37598 *-*-osf* | \
37599 *-*-dgux5* | \
4b1f6360 37600 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
37601 *-*-sysv5* )
37602 ;;
37603
37604 *)
e6cc62c6
VS
37605 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
37606echo "$as_me: error: unknown system type $host." >&2;}
37607 { (exit 1); exit 1; }; }
fe0895cf
VS
37608 esac
37609
131f235d
VS
37610 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
37611 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
37612 fi
37613 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 37614 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
37615 fi
37616
37617
37618
fe0895cf 37619
e6cc62c6
VS
37620
37621
37622
37623
fe0895cf
VS
37624 USE_SOVERSION=0
37625 USE_SOVERLINUX=0
37626 USE_SOVERSOLARIS=0
37627 USE_SOSYMLINKS=0
37628 USE_MACVERSION=0
37629 SONAME_FLAG=
37630
37631 case "${host}" in
37632 *-*-linux* )
37633 SONAME_FLAG="-Wl,-soname,"
37634 USE_SOVERSION=1
37635 USE_SOVERLINUX=1
37636 USE_SOSYMLINKS=1
37637 ;;
37638
37639 *-*-solaris2* )
37640 SONAME_FLAG="-h "
37641 USE_SOVERSION=1
37642 USE_SOVERSOLARIS=1
37643 USE_SOSYMLINKS=1
37644 ;;
37645
37646 *-*-darwin* )
37647 USE_MACVERSION=1
37648 USE_SOVERSION=1
37649 USE_SOSYMLINKS=1
e6cc62c6 37650 ;;
fe0895cf
VS
37651 esac
37652
fe0895cf 37653
e6cc62c6
VS
37654
37655
37656
37657
37658
37659
37660
49b0a3aa
VS
37661 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
37662echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
37663 DEPS_TRACKING=0
37664
fe0895cf 37665 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
37666 DEPSMODE=gcc
37667 DEPS_TRACKING=1
3e5c3c83
VS
37668 case "${host}" in
37669 powerpc-*-darwin* )
37670 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
37671 ;;
37672 * )
37673 DEPSFLAG_GCC="-MMD"
37674 ;;
37675 esac
49b0a3aa
VS
37676 echo "$as_me:$LINENO: result: gcc" >&5
37677echo "${ECHO_T}gcc" >&6
37678 else
37679 echo "$as_me:$LINENO: result: none" >&5
37680echo "${ECHO_T}none" >&6
37681 fi
37682
37683 if test $DEPS_TRACKING = 1 ; then
37684 cat <<EOF >bk-deps
37685#!/bin/sh
37686
45842500
VS
37687# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37688# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
37689#
37690# Permission is given to use this file in any way.
37691
37692DEPSMODE=$DEPSMODE
37693DEPSDIR=.deps
3e5c3c83 37694DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
37695
37696mkdir -p \$DEPSDIR
37697
37698if test \$DEPSMODE = gcc ; then
3e5c3c83 37699 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
37700 status=\${?}
37701 if test \${status} != 0 ; then
37702 exit \${status}
37703 fi
37704 # move created file to the location we want it in:
37705 while test \${#} -gt 0; do
37706 case "\${1}" in
37707 -o )
37708 shift
37709 objfile=\${1}
37710 ;;
37711 -* )
37712 ;;
37713 * )
37714 srcfile=\${1}
37715 ;;
37716 esac
37717 shift
37718 done
37719 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
37720 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
37721 if test -f \$depfile ; then
37722 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37723 rm -f \$depfile
37724 else
37725 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
37726 if test -f \$depfile ; then
9d0be83a 37727 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
37728 rm -f \$depfile
37729 fi
37730 fi
49b0a3aa
VS
37731 exit 0
37732else
37733 \${*}
37734 exit \${?}
37735fi
37736EOF
37737 chmod +x bk-deps
fe0895cf 37738 fi
fe0895cf 37739
e6cc62c6
VS
37740
37741
37742
fe0895cf
VS
37743 RESCOMP=
37744 SETFILE=
37745
e6cc62c6 37746 case ${host} in
fe0895cf
VS
37747 *-*-cygwin* | *-*-mingw32* )
37748 if test "$build" != "$host" ; then
37749 RESCOMP=$host_alias-windres
37750 else
37751 # Extract the first word of "windres", so it can be a program name with args.
37752set dummy windres; ac_word=$2
e6cc62c6
VS
37753echo "$as_me:$LINENO: checking for $ac_word" >&5
37754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37755if test "${ac_cv_prog_RESCOMP+set}" = set; then
37756 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37757else
37758 if test -n "$RESCOMP"; then
37759 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37760else
e6cc62c6
VS
37761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37762for as_dir in $PATH
37763do
37764 IFS=$as_save_IFS
37765 test -z "$as_dir" && as_dir=.
37766 for ac_exec_ext in '' $ac_executable_extensions; do
37767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37768 ac_cv_prog_RESCOMP="windres"
37769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37770 break 2
37771 fi
37772done
37773done
37774
fe0895cf
VS
37775 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37776fi
37777fi
e6cc62c6 37778RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37779if test -n "$RESCOMP"; then
e6cc62c6
VS
37780 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37781echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37782else
e6cc62c6
VS
37783 echo "$as_me:$LINENO: result: no" >&5
37784echo "${ECHO_T}no" >&6
fe0895cf
VS
37785fi
37786
37787 fi
37788 ;;
e6cc62c6 37789
fe0895cf
VS
37790 *-*-darwin* )
37791 # Extract the first word of "Rez", so it can be a program name with args.
37792set dummy Rez; ac_word=$2
e6cc62c6
VS
37793echo "$as_me:$LINENO: checking for $ac_word" >&5
37794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37795if test "${ac_cv_prog_RESCOMP+set}" = set; then
37796 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37797else
37798 if test -n "$RESCOMP"; then
37799 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37800else
e6cc62c6
VS
37801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37802for as_dir in $PATH
37803do
37804 IFS=$as_save_IFS
37805 test -z "$as_dir" && as_dir=.
37806 for ac_exec_ext in '' $ac_executable_extensions; do
37807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37808 ac_cv_prog_RESCOMP="Rez"
37809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37810 break 2
37811 fi
37812done
37813done
37814
fe0895cf
VS
37815 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37816fi
37817fi
e6cc62c6 37818RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37819if test -n "$RESCOMP"; then
e6cc62c6
VS
37820 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37821echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37822else
e6cc62c6
VS
37823 echo "$as_me:$LINENO: result: no" >&5
37824echo "${ECHO_T}no" >&6
fe0895cf
VS
37825fi
37826
37827 # Extract the first word of "SetFile", so it can be a program name with args.
37828set dummy SetFile; ac_word=$2
e6cc62c6
VS
37829echo "$as_me:$LINENO: checking for $ac_word" >&5
37830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37831if test "${ac_cv_prog_SETFILE+set}" = set; then
37832 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37833else
37834 if test -n "$SETFILE"; then
37835 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37836else
e6cc62c6
VS
37837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37838for as_dir in $PATH
37839do
37840 IFS=$as_save_IFS
37841 test -z "$as_dir" && as_dir=.
37842 for ac_exec_ext in '' $ac_executable_extensions; do
37843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37844 ac_cv_prog_SETFILE="SetFile"
37845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37846 break 2
37847 fi
37848done
37849done
37850
fe0895cf
VS
37851 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37852fi
37853fi
e6cc62c6 37854SETFILE=$ac_cv_prog_SETFILE
fe0895cf 37855if test -n "$SETFILE"; then
e6cc62c6
VS
37856 echo "$as_me:$LINENO: result: $SETFILE" >&5
37857echo "${ECHO_T}$SETFILE" >&6
fe0895cf 37858else
e6cc62c6
VS
37859 echo "$as_me:$LINENO: result: no" >&5
37860echo "${ECHO_T}no" >&6
fe0895cf
VS
37861fi
37862
37863 ;;
37864 esac
37865
fe0895cf
VS
37866
37867
e6cc62c6
VS
37868
37869
37870
37871
45842500 37872
45842500
VS
37873 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37874if test "${enable_precomp_headers+set}" = set; then
37875 enableval="$enable_precomp_headers"
37876 bk_use_pch="$enableval"
37877fi;
37878
37879 GCC_PCH=0
37880
37881 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37882 if test "x$GCC" = "xyes"; then
37883 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37884echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37885 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
37886/* confdefs.h. */
37887_ACEOF
37888cat confdefs.h >>conftest.$ac_ext
37889cat >>conftest.$ac_ext <<_ACEOF
37890/* end confdefs.h. */
37891
37892int
37893main ()
37894{
37895
8bcf2d20
VS
37896 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37897 #error "no pch support"
37898 #endif
37899 #if (__GNUC__ < 3)
37900 #error "no pch support"
37901 #endif
37902 #if (__GNUC__ == 3) && \
37903 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37904 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37905 #error "no pch support"
45842500
VS
37906 #endif
37907
37908 ;
37909 return 0;
37910}
37911_ACEOF
37912rm -f conftest.$ac_objext
37913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 37914 (eval $ac_compile) 2>conftest.er1
45842500 37915 ac_status=$?
eea650d8
VS
37916 grep -v '^ *+' conftest.er1 >conftest.err
37917 rm -f conftest.er1
37918 cat conftest.err >&5
45842500
VS
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); } &&
eea650d8
VS
37921 { ac_try='test -z "$ac_c_werror_flag"
37922 || test ! -s conftest.err'
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37925 ac_status=$?
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; } &&
37928 { ac_try='test -s conftest.$ac_objext'
45842500
VS
37929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930 (eval $ac_try) 2>&5
37931 ac_status=$?
37932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933 (exit $ac_status); }; }; then
37934
37935 echo "$as_me:$LINENO: result: yes" >&5
37936echo "${ECHO_T}yes" >&6
37937 CPPFLAGS="-fpch-deps $CPPFLAGS"
37938 GCC_PCH=1
37939
37940else
37941 echo "$as_me: failed program was:" >&5
37942sed 's/^/| /' conftest.$ac_ext >&5
37943
37944
37945 echo "$as_me:$LINENO: result: no" >&5
37946echo "${ECHO_T}no" >&6
37947
37948fi
eea650d8 37949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
37950 if test $GCC_PCH = 1 ; then
37951 cat <<EOF >bk-make-pch
37952#!/bin/sh
37953
37954# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37955# script. It is used to generated precompiled headers.
37956#
37957# Permission is given to use this file in any way.
37958
37959outfile="\${1}"
37960header="\${2}"
37961shift
37962shift
37963
37964compiler=
37965headerfile=
37966while test \${#} -gt 0; do
37967 case "\${1}" in
37968 -I* )
37969 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
37970 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
37971 headerfile="\${incdir}/\${header}"
37972 fi
37973 ;;
37974 esac
37975 compiler="\${compiler} \${1}"
37976 shift
37977done
37978
37979if test "x\${headerfile}" = "x" ; then
37980 echo "error: can't find header \${header} in include paths" >2
37981else
37982 if test -f \${outfile} ; then
37983 rm -f \${outfile}
37984 else
37985 mkdir -p \`dirname \${outfile}\`
37986 fi
37987 depsfile=".deps/\`basename \${outfile}\`.d"
37988 mkdir -p .deps
37989 # can do this because gcc is >= 3.4:
37990 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
37991 exit \${?}
37992fi
37993EOF
37994 chmod +x bk-make-pch
37995 fi
37996 fi
37997 fi
37998
37999
38000
38001
38002
d78c94f2 38003 COND_BUILD_DEBUG="#"
6f628073 38004 if test "x$BUILD" = "xdebug" ; then
d78c94f2 38005 COND_BUILD_DEBUG=""
6f628073
VS
38006 fi
38007
6c67131a
VS
38008 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38009 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38010 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38011 fi
38012
38013 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38014 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38015 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38016 fi
38017
d78c94f2 38018 COND_BUILD_RELEASE="#"
6f628073 38019 if test "x$BUILD" = "xrelease" ; then
d78c94f2 38020 COND_BUILD_RELEASE=""
6b9d41a5
VS
38021 fi
38022
6c67131a
VS
38023 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38024 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38025 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38026 fi
38027
38028 COND_DEBUG_FLAG_1="#"
38029 if test "x$DEBUG_FLAG" = "x1" ; then
38030 COND_DEBUG_FLAG_1=""
38031 fi
38032
38033 COND_DEBUG_INFO_0="#"
38034 if test "x$DEBUG_INFO" = "x0" ; then
38035 COND_DEBUG_INFO_0=""
38036 fi
38037
38038 COND_DEBUG_INFO_1="#"
38039 if test "x$DEBUG_INFO" = "x1" ; then
38040 COND_DEBUG_INFO_1=""
38041 fi
38042
f95cd8fa
VS
38043 COND_DEPS_TRACKING_0="#"
38044 if test "x$DEPS_TRACKING" = "x0" ; then
38045 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
38046 fi
38047
8ee2dd05
VS
38048 COND_DEPS_TRACKING_1="#"
38049 if test "x$DEPS_TRACKING" = "x1" ; then
38050 COND_DEPS_TRACKING_1=""
38051 fi
38052
45842500
VS
38053 COND_GCC_PCH_1="#"
38054 if test "x$GCC_PCH" = "x1" ; then
38055 COND_GCC_PCH_1=""
38056 fi
38057
6f628073
VS
38058 COND_MONOLITHIC_0="#"
38059 if test "x$MONOLITHIC" = "x0" ; then
38060 COND_MONOLITHIC_0=""
6b9d41a5
VS
38061 fi
38062
6f628073
VS
38063 COND_MONOLITHIC_0_SHARED_0="#"
38064 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38065 COND_MONOLITHIC_0_SHARED_0=""
38066 fi
38067
38068 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38069 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38070 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 38071 fi
e6cc62c6 38072
8772a1a7
VS
38073 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38074 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38075 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38076 fi
38077
250700e4
RD
38078 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38079 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38080 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38081 fi
38082
eb69fda5
VS
38083 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38084 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38085 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38086 fi
38087
8ee2dd05
VS
38088 COND_MONOLITHIC_0_SHARED_1="#"
38089 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38090 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 38091 fi
e6cc62c6 38092
6f628073
VS
38093 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38094 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38095 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38096 fi
38097
8772a1a7
VS
38098 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38099 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38100 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38101 fi
38102
250700e4
RD
38103 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38104 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38105 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38106 fi
38107
eb69fda5
VS
38108 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38109 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38110 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38111 fi
38112
3af038c0
VS
38113 COND_MONOLITHIC_1="#"
38114 if test "x$MONOLITHIC" = "x1" ; then
38115 COND_MONOLITHIC_1=""
38116 fi
38117
6f628073
VS
38118 COND_MONOLITHIC_1_SHARED_0="#"
38119 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38120 COND_MONOLITHIC_1_SHARED_0=""
38121 fi
38122
38123 COND_MONOLITHIC_1_SHARED_1="#"
38124 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38125 COND_MONOLITHIC_1_SHARED_1=""
38126 fi
38127
3af038c0
VS
38128 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38129 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38130 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38131 fi
38132
38133 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38134 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38135 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38136 fi
38137
6f628073
VS
38138 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38139 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38140 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38141 fi
38142
3af038c0
VS
38143 COND_PLATFORM_MACOSX_1="#"
38144 if test "x$PLATFORM_MACOSX" = "x1" ; then
38145 COND_PLATFORM_MACOSX_1=""
38146 fi
38147
250700e4
RD
38148 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38149 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38150 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38151 fi
38152
38153 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38154 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38155 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38156 fi
38157
38158 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38159 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38160 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38161 fi
38162
3527f29c
VS
38163 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38164 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38165 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38166 fi
38167
8ee2dd05
VS
38168 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38169 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38170 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38171 fi
38172
45842500
VS
38173 COND_PLATFORM_MAC_1="#"
38174 if test "x$PLATFORM_MAC" = "x1" ; then
38175 COND_PLATFORM_MAC_1=""
38176 fi
38177
3d8c1de0
VS
38178 COND_PLATFORM_OS2_1="#"
38179 if test "x$PLATFORM_OS2" = "x1" ; then
38180 COND_PLATFORM_OS2_1=""
38181 fi
38182
8772a1a7
VS
38183 COND_PLATFORM_UNIX_0="#"
38184 if test "x$PLATFORM_UNIX" = "x0" ; then
38185 COND_PLATFORM_UNIX_0=""
38186 fi
38187
3af038c0
VS
38188 COND_PLATFORM_UNIX_1="#"
38189 if test "x$PLATFORM_UNIX" = "x1" ; then
38190 COND_PLATFORM_UNIX_1=""
38191 fi
38192
3527f29c
VS
38193 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38194 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38195 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38196 fi
38197
3af038c0
VS
38198 COND_PLATFORM_WIN32_0="#"
38199 if test "x$PLATFORM_WIN32" = "x0" ; then
38200 COND_PLATFORM_WIN32_0=""
38201 fi
38202
38203 COND_PLATFORM_WIN32_1="#"
38204 if test "x$PLATFORM_WIN32" = "x1" ; then
38205 COND_PLATFORM_WIN32_1=""
38206 fi
38207
45842500
VS
38208 COND_SHARED_0="#"
38209 if test "x$SHARED" = "x0" ; then
38210 COND_SHARED_0=""
38211 fi
38212
250700e4
RD
38213 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38214 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38215 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38216 fi
38217
52a5a009
VS
38218 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38219 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38220 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38221 fi
38222
38223 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38224 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38225 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38226 fi
38227
38228 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38229 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38230 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38231 fi
38232
38233 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38234 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38235 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38236 fi
38237
38238 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38239 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38240 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38241 fi
38242
38243 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38244 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38245 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38246 fi
38247
38248 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38249 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38250 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38251 fi
38252
45842500
VS
38253 COND_SHARED_1="#"
38254 if test "x$SHARED" = "x1" ; then
38255 COND_SHARED_1=""
38256 fi
38257
250700e4
RD
38258 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38259 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38260 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38261 fi
38262
6f628073
VS
38263 COND_TOOLKIT_COCOA="#"
38264 if test "x$TOOLKIT" = "xCOCOA" ; then
38265 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
38266 fi
38267
6f628073
VS
38268 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38269 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38270 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38271 fi
38272
6f628073
VS
38273 COND_TOOLKIT_GTK="#"
38274 if test "x$TOOLKIT" = "xGTK" ; then
38275 COND_TOOLKIT_GTK=""
f95cd8fa
VS
38276 fi
38277
6f628073
VS
38278 COND_TOOLKIT_GTK_USE_GUI_1="#"
38279 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38280 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
38281 fi
38282
6f628073
VS
38283 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38284 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38285 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38286 fi
38287
3af038c0
VS
38288 COND_TOOLKIT_MAC="#"
38289 if test "x$TOOLKIT" = "xMAC" ; then
38290 COND_TOOLKIT_MAC=""
38291 fi
38292
8772a1a7
VS
38293 COND_TOOLKIT_MAC_USE_GUI_1="#"
38294 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38295 COND_TOOLKIT_MAC_USE_GUI_1=""
38296 fi
38297
6f628073
VS
38298 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38299 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38300 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38301 fi
38302
6f628073
VS
38303 COND_TOOLKIT_MGL="#"
38304 if test "x$TOOLKIT" = "xMGL" ; then
38305 COND_TOOLKIT_MGL=""
8ee2dd05
VS
38306 fi
38307
6f628073
VS
38308 COND_TOOLKIT_MGL_USE_GUI_1="#"
38309 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38310 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
38311 fi
38312
6f628073
VS
38313 COND_TOOLKIT_MOTIF="#"
38314 if test "x$TOOLKIT" = "xMOTIF" ; then
38315 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
38316 fi
38317
6f628073
VS
38318 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38319 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38320 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 38321 fi
e6cc62c6 38322
6f628073
VS
38323 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38324 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38325 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38326 fi
38327
6f628073
VS
38328 COND_TOOLKIT_MSW="#"
38329 if test "x$TOOLKIT" = "xMSW" ; then
38330 COND_TOOLKIT_MSW=""
8ee2dd05
VS
38331 fi
38332
6f628073
VS
38333 COND_TOOLKIT_MSW_USE_GUI_1="#"
38334 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38335 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 38336 fi
e6cc62c6 38337
6f628073
VS
38338 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38339 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38340 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 38341 fi
e6cc62c6 38342
96c1699d
VS
38343 COND_TOOLKIT_PM="#"
38344 if test "x$TOOLKIT" = "xPM" ; then
38345 COND_TOOLKIT_PM=""
38346 fi
38347
38348 COND_TOOLKIT_PM_USE_GUI_1="#"
38349 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38350 COND_TOOLKIT_PM_USE_GUI_1=""
38351 fi
38352
38353 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38354 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38355 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38356 fi
38357
6f628073
VS
38358 COND_TOOLKIT_X11="#"
38359 if test "x$TOOLKIT" = "xX11" ; then
38360 COND_TOOLKIT_X11=""
9747f85d
VS
38361 fi
38362
6f628073
VS
38363 COND_TOOLKIT_X11_USE_GUI_1="#"
38364 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38365 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
38366 fi
38367
3af038c0
VS
38368 COND_UNICODE_1="#"
38369 if test "x$UNICODE" = "x1" ; then
38370 COND_UNICODE_1=""
38371 fi
38372
7015ef3a
VZ
38373 COND_USE_EXCEPTIONS_0="#"
38374 if test "x$USE_EXCEPTIONS" = "x0" ; then
38375 COND_USE_EXCEPTIONS_0=""
38376 fi
38377
38378 COND_USE_EXCEPTIONS_1="#"
38379 if test "x$USE_EXCEPTIONS" = "x1" ; then
38380 COND_USE_EXCEPTIONS_1=""
38381 fi
38382
3af038c0
VS
38383 COND_USE_GUI_0="#"
38384 if test "x$USE_GUI" = "x0" ; then
38385 COND_USE_GUI_0=""
38386 fi
38387
38388 COND_USE_GUI_1="#"
38389 if test "x$USE_GUI" = "x1" ; then
38390 COND_USE_GUI_1=""
38391 fi
38392
e6cc62c6 38393 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
38394 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38395 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 38396 fi
e6cc62c6
VS
38397
38398 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
38399 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38400 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
38401 fi
38402
66a96744
VS
38403 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38404 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38405 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38406 fi
38407
38408 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38409 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38410 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38411 fi
38412
38413 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38414 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38415 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38416 fi
38417
57e7d4ac
VS
38418 COND_USE_ODBC_1="#"
38419 if test "x$USE_ODBC" = "x1" ; then
38420 COND_USE_ODBC_1=""
38421 fi
38422
6f628073
VS
38423 COND_USE_SOSYMLINKS_1="#"
38424 if test "x$USE_SOSYMLINKS" = "x1" ; then
38425 COND_USE_SOSYMLINKS_1=""
b625909c
VS
38426 fi
38427
6f628073
VS
38428 COND_USE_SOVERLINUX_1="#"
38429 if test "x$USE_SOVERLINUX" = "x1" ; then
38430 COND_USE_SOVERLINUX_1=""
b625909c
VS
38431 fi
38432
6f628073
VS
38433 COND_USE_SOVERSION_0="#"
38434 if test "x$USE_SOVERSION" = "x0" ; then
38435 COND_USE_SOVERSION_0=""
fddeb06b 38436 fi
fe0895cf 38437
6f628073
VS
38438 COND_USE_SOVERSOLARIS_1="#"
38439 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38440 COND_USE_SOVERSOLARIS_1=""
fddeb06b 38441 fi
fe0895cf 38442
3af038c0
VS
38443 COND_WXUNIV_1="#"
38444 if test "x$WXUNIV" = "x1" ; then
38445 COND_WXUNIV_1=""
38446 fi
38447
66a96744
VS
38448 COND_WXUSE_EXPAT_BUILTIN="#"
38449 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38450 COND_WXUSE_EXPAT_BUILTIN=""
38451 fi
38452
02980527
VS
38453 COND_WXUSE_LIBJPEG_BUILTIN="#"
38454 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38455 COND_WXUSE_LIBJPEG_BUILTIN=""
38456 fi
38457
38458 COND_WXUSE_LIBPNG_BUILTIN="#"
38459 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38460 COND_WXUSE_LIBPNG_BUILTIN=""
38461 fi
38462
38463 COND_WXUSE_LIBTIFF_BUILTIN="#"
38464 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38465 COND_WXUSE_LIBTIFF_BUILTIN=""
38466 fi
38467
38468 COND_WXUSE_ODBC_BUILTIN="#"
38469 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38470 COND_WXUSE_ODBC_BUILTIN=""
38471 fi
38472
38473 COND_WXUSE_REGEX_BUILTIN="#"
38474 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38475 COND_WXUSE_REGEX_BUILTIN=""
38476 fi
38477
38478 COND_WXUSE_ZLIB_BUILTIN="#"
38479 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38480 COND_WXUSE_ZLIB_BUILTIN=""
38481 fi
38482
1772d20c 38483
fe0895cf 38484
fe0895cf 38485
fe0895cf 38486
45842500 38487if test $GCC_PCH = 1 ; then
130711ba 38488 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
38489 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38490else
38491 case "${host}" in
38492 powerpc-*-darwin* )
130711ba
VS
38493 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38494 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 38495 ;;
45842500
VS
38496 esac
38497fi
fe0895cf
VS
38498
38499
fddeb06b 38500SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
38501
38502
38503
38504
38505
38506
38507
38508
38509
38510
38511
38512
38513
38514
38515
38516
38517
38518
38519
38520
38521
38522
38523
38524
38525
38526
38527
38528
38529
38530
38531
38532
38533
38534
38535
38536
38537
38538
38539
38540
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
fe0895cf 38595
f0290fca
VS
38596
38597
67c13b6c 38598
e6cc62c6
VS
38599
38600
38601echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38602echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
eea650d8 38603set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
38604if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38605 echo $ECHO_N "(cached) $ECHO_C" >&6
38606else
38607 cat >conftest.make <<\_ACEOF
38608all:
38609 @echo 'ac_maketemp="$(MAKE)"'
38610_ACEOF
38611# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38612eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38613if test -n "$ac_maketemp"; then
38614 eval ac_cv_prog_make_${ac_make}_set=yes
38615else
38616 eval ac_cv_prog_make_${ac_make}_set=no
38617fi
38618rm -f conftest.make
38619fi
38620if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38621 echo "$as_me:$LINENO: result: yes" >&5
38622echo "${ECHO_T}yes" >&6
38623 SET_MAKE=
38624else
38625 echo "$as_me:$LINENO: result: no" >&5
38626echo "${ECHO_T}no" >&6
38627 SET_MAKE="MAKE=${MAKE-make}"
38628fi
38629
38630
38631if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
38632 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
38633fi
38634
38635 ac_config_headers="$ac_config_headers setup.h"
38636
38637
81345eef 38638 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
38639
38640
38641 ac_config_commands="$ac_config_commands default"
38642
38643
9de9b8f0 38644
6c3e36af
VZ
38645if test "$wxUSE_GUI" = "yes"; then
38646 SUBDIRS="samples demos utils contrib"
38647else SUBDIRS="samples utils"
38648fi
e6cc62c6 38649
166263e6 38650for subdir in `echo $SUBDIRS`; do
9747f85d 38651 if test -d ${srcdir}/${subdir} ; then
6c3e36af 38652 if test "$wxUSE_GUI" = "yes"; then
166263e6 38653 if test ${subdir} = "samples"; then
8772a1a7
VS
38654 makefiles="samples/Makefile.in $makefiles"
38655 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
38656 if test -d $srcdir/samples/$sample; then
38657 makefiles="samples/$sample/Makefile.in $makefiles"
38658 fi
38659 done
38660 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38661 fi
6c3e36af 38662 else if test ${subdir} = "samples"; then
8772a1a7 38663 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 38664 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
38665 utils/HelpGen/src/Makefile.in \
38666 utils/tex2rtf/Makefile.in \
38667 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
38668 fi
38669 fi
38670
9747f85d
VS
38671 for mkin in $makefiles ; do
38672 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
38673 ac_config_files="$ac_config_files $mk"
e6cc62c6 38674
9747f85d
VS
38675 done
38676 fi
38677done
e6cc62c6 38678
9de9b8f0 38679
e6cc62c6
VS
38680cat >confcache <<\_ACEOF
38681# This file is a shell script that caches the results of configure
38682# tests run on this system so they can be shared between configure
38683# scripts and configure runs, see configure's option --config-cache.
38684# It is not useful on other systems. If it contains results you don't
38685# want to keep, you may remove or edit it.
38686#
38687# config.status only pays attention to the cache file if you give it
38688# the --recheck option to rerun configure.
38689#
38690# `ac_cv_env_foo' variables (set or unset) will be overridden when
38691# loading this file, other *unset* `ac_cv_foo' will be assigned the
38692# following values.
38693
38694_ACEOF
38695
38696# The following way of writing the cache mishandles newlines in values,
38697# but we know of no workaround that is simple, portable, and efficient.
38698# So, don't put newlines in cache variables' values.
38699# Ultrix sh set writes to stderr and can't be redirected directly,
38700# and sets the high bit in the cache file unless we assign to the vars.
38701{
38702 (set) 2>&1 |
38703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38704 *ac_space=\ *)
38705 # `set' does not quote correctly, so add quotes (double-quote
38706 # substitution turns \\\\ into \\, and sed turns \\ into \).
38707 sed -n \
eea650d8
VS
38708 "s/'/'\\\\''/g;
38709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
38710 ;;
38711 *)
38712 # `set' quotes correctly as required by POSIX, so do not add quotes.
38713 sed -n \
eea650d8 38714 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
38715 ;;
38716 esac;
38717} |
38718 sed '
38719 t clear
38720 : clear
38721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38722 t end
38723 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38724 : end' >>confcache
38725if diff $cache_file confcache >/dev/null 2>&1; then :; else
38726 if test -w $cache_file; then
38727 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38728 cat confcache >$cache_file
38729 else
38730 echo "not updating unwritable cache $cache_file"
38731 fi
38732fi
38733rm -f confcache
38734
38735test "x$prefix" = xNONE && prefix=$ac_default_prefix
38736# Let make expand exec_prefix.
38737test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38738
38739# VPATH may cause trouble with some makes, so we remove $(srcdir),
38740# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38741# trailing colons and then remove the whole line if VPATH becomes empty
38742# (actually we leave an empty line to preserve line numbers).
38743if test "x$srcdir" = x.; then
eea650d8 38744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
38745s/:*\$(srcdir):*/:/;
38746s/:*\${srcdir}:*/:/;
38747s/:*@srcdir@:*/:/;
eea650d8 38748s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 38749s/:*$//;
eea650d8 38750s/^[^=]*=[ ]*$//;
e6cc62c6
VS
38751}'
38752fi
38753
38754DEFS=-DHAVE_CONFIG_H
38755
38756ac_libobjs=
38757ac_ltlibobjs=
38758for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38759 # 1. Remove the extension, and $U if already installed.
38760 ac_i=`echo "$ac_i" |
eea650d8 38761 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
38762 # 2. Add them.
38763 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38764 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38765done
38766LIBOBJS=$ac_libobjs
38767
38768LTLIBOBJS=$ac_ltlibobjs
38769
38770
38771
38772: ${CONFIG_STATUS=./config.status}
38773ac_clean_files_save=$ac_clean_files
38774ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38775{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38776echo "$as_me: creating $CONFIG_STATUS" >&6;}
38777cat >$CONFIG_STATUS <<_ACEOF
38778#! $SHELL
38779# Generated by $as_me.
38780# Run this file to recreate the current configuration.
38781# Compiler output produced by configure, useful for debugging
38782# configure, is in config.log if it exists.
38783
38784debug=false
38785ac_cs_recheck=false
38786ac_cs_silent=false
38787SHELL=\${CONFIG_SHELL-$SHELL}
38788_ACEOF
38789
38790cat >>$CONFIG_STATUS <<\_ACEOF
38791## --------------------- ##
38792## M4sh Initialization. ##
38793## --------------------- ##
38794
38795# Be Bourne compatible
38796if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38797 emulate sh
38798 NULLCMD=:
38799 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38800 # is contrary to our usage. Disable this feature.
38801 alias -g '${1+"$@"}'='"$@"'
38802elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38803 set -o posix
38804fi
eea650d8 38805DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
38806
38807# Support unset when possible.
eea650d8 38808if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
38809 as_unset=unset
38810else
38811 as_unset=false
38812fi
38813
38814
38815# Work around bugs in pre-3.0 UWIN ksh.
38816$as_unset ENV MAIL MAILPATH
38817PS1='$ '
38818PS2='> '
38819PS4='+ '
38820
38821# NLS nuisances.
38822for as_var in \
38823 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38824 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38825 LC_TELEPHONE LC_TIME
38826do
eea650d8 38827 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
38828 eval $as_var=C; export $as_var
38829 else
38830 $as_unset $as_var
38831 fi
38832done
38833
38834# Required to use basename.
38835if expr a : '\(a\)' >/dev/null 2>&1; then
38836 as_expr=expr
38837else
38838 as_expr=false
38839fi
38840
38841if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38842 as_basename=basename
38843else
38844 as_basename=false
38845fi
38846
38847
38848# Name of the executable.
38849as_me=`$as_basename "$0" ||
38850$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38851 X"$0" : 'X\(//\)$' \| \
38852 X"$0" : 'X\(/\)$' \| \
38853 . : '\(.\)' 2>/dev/null ||
38854echo X/"$0" |
38855 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38856 /^X\/\(\/\/\)$/{ s//\1/; q; }
38857 /^X\/\(\/\).*/{ s//\1/; q; }
38858 s/.*/./; q'`
38859
38860
38861# PATH needs CR, and LINENO needs CR and PATH.
38862# Avoid depending upon Character Ranges.
38863as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38864as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38865as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38866as_cr_digits='0123456789'
38867as_cr_alnum=$as_cr_Letters$as_cr_digits
38868
38869# The user is always right.
38870if test "${PATH_SEPARATOR+set}" != set; then
38871 echo "#! /bin/sh" >conf$$.sh
38872 echo "exit 0" >>conf$$.sh
38873 chmod +x conf$$.sh
38874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38875 PATH_SEPARATOR=';'
38876 else
38877 PATH_SEPARATOR=:
38878 fi
38879 rm -f conf$$.sh
38880fi
38881
38882
38883 as_lineno_1=$LINENO
38884 as_lineno_2=$LINENO
38885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38886 test "x$as_lineno_1" != "x$as_lineno_2" &&
38887 test "x$as_lineno_3" = "x$as_lineno_2" || {
38888 # Find who we are. Look in the path if we contain no path at all
38889 # relative or not.
38890 case $0 in
38891 *[\\/]* ) as_myself=$0 ;;
38892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38893for as_dir in $PATH
38894do
38895 IFS=$as_save_IFS
38896 test -z "$as_dir" && as_dir=.
38897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38898done
38899
38900 ;;
38901 esac
38902 # We did not find ourselves, most probably we were run as `sh COMMAND'
38903 # in which case we are not to be found in the path.
38904 if test "x$as_myself" = x; then
38905 as_myself=$0
38906 fi
38907 if test ! -f "$as_myself"; then
38908 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
38909echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
38910 { (exit 1); exit 1; }; }
38911 fi
38912 case $CONFIG_SHELL in
38913 '')
38914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38915for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
38916do
38917 IFS=$as_save_IFS
38918 test -z "$as_dir" && as_dir=.
38919 for as_base in sh bash ksh sh5; do
38920 case $as_dir in
38921 /*)
38922 if ("$as_dir/$as_base" -c '
38923 as_lineno_1=$LINENO
38924 as_lineno_2=$LINENO
38925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38926 test "x$as_lineno_1" != "x$as_lineno_2" &&
38927 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
38928 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
38929 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
38930 CONFIG_SHELL=$as_dir/$as_base
38931 export CONFIG_SHELL
38932 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
38933 fi;;
38934 esac
38935 done
38936done
38937;;
38938 esac
38939
38940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38941 # uniformly replaced by the line number. The first 'sed' inserts a
38942 # line-number line before each line; the second 'sed' does the real
38943 # work. The second script uses 'N' to pair each line-number line
38944 # with the numbered line, and appends trailing '-' during
38945 # substitution so that $LINENO is not a special case at line end.
38946 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38947 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
38948 sed '=' <$as_myself |
38949 sed '
38950 N
38951 s,$,-,
38952 : loop
38953 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
38954 t loop
38955 s,-$,,
38956 s,^['$as_cr_digits']*\n,,
38957 ' >$as_me.lineno &&
38958 chmod +x $as_me.lineno ||
38959 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
38960echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
38961 { (exit 1); exit 1; }; }
38962
38963 # Don't try to exec as it changes $[0], causing all sort of problems
38964 # (the dirname of $[0] is not the place where we might find the
38965 # original and so on. Autoconf is especially sensible to this).
38966 . ./$as_me.lineno
38967 # Exit status is that of the last command.
38968 exit
38969}
38970
38971
38972case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
38973 *c*,-n*) ECHO_N= ECHO_C='
38974' ECHO_T=' ' ;;
38975 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
38976 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
38977esac
38978
38979if expr a : '\(a\)' >/dev/null 2>&1; then
38980 as_expr=expr
38981else
38982 as_expr=false
38983fi
38984
38985rm -f conf$$ conf$$.exe conf$$.file
38986echo >conf$$.file
38987if ln -s conf$$.file conf$$ 2>/dev/null; then
38988 # We could just check for DJGPP; but this test a) works b) is more generic
38989 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
38990 if test -f conf$$.exe; then
38991 # Don't use ln at all; we don't have any links
38992 as_ln_s='cp -p'
38993 else
38994 as_ln_s='ln -s'
38995 fi
38996elif ln conf$$.file conf$$ 2>/dev/null; then
38997 as_ln_s=ln
38998else
38999 as_ln_s='cp -p'
39000fi
39001rm -f conf$$ conf$$.exe conf$$.file
39002
39003if mkdir -p . 2>/dev/null; then
39004 as_mkdir_p=:
39005else
eea650d8 39006 test -d ./-p && rmdir ./-p
e6cc62c6
VS
39007 as_mkdir_p=false
39008fi
39009
39010as_executable_p="test -f"
39011
39012# Sed expression to map a string onto a valid CPP name.
eea650d8 39013as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39014
39015# Sed expression to map a string onto a valid variable name.
eea650d8 39016as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39017
39018
39019# IFS
39020# We need space, tab and new line, in precisely that order.
39021as_nl='
39022'
39023IFS=" $as_nl"
39024
39025# CDPATH.
39026$as_unset CDPATH
39027
39028exec 6>&1
39029
39030# Open the log real soon, to keep \$[0] and so on meaningful, and to
39031# report actual input values of CONFIG_FILES etc. instead of their
39032# values after options handling. Logging --version etc. is OK.
39033exec 5>>config.log
39034{
39035 echo
39036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39037## Running $as_me. ##
39038_ASBOX
39039} >&5
39040cat >&5 <<_CSEOF
39041
e46d2a18 39042This file was extended by wxWindows $as_me 2.5.1, which was
eea650d8 39043generated by GNU Autoconf 2.58. Invocation command line was
e6cc62c6
VS
39044
39045 CONFIG_FILES = $CONFIG_FILES
39046 CONFIG_HEADERS = $CONFIG_HEADERS
39047 CONFIG_LINKS = $CONFIG_LINKS
39048 CONFIG_COMMANDS = $CONFIG_COMMANDS
39049 $ $0 $@
39050
39051_CSEOF
39052echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39053echo >&5
39054_ACEOF
39055
39056# Files that config.status was made for.
39057if test -n "$ac_config_files"; then
39058 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39059fi
39060
39061if test -n "$ac_config_headers"; then
39062 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39063fi
39064
39065if test -n "$ac_config_links"; then
39066 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39067fi
39068
39069if test -n "$ac_config_commands"; then
39070 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39071fi
39072
39073cat >>$CONFIG_STATUS <<\_ACEOF
39074
39075ac_cs_usage="\
39076\`$as_me' instantiates files from templates according to the
39077current configuration.
39078
39079Usage: $0 [OPTIONS] [FILE]...
39080
39081 -h, --help print this help, then exit
39082 -V, --version print version number, then exit
39083 -q, --quiet do not print progress messages
39084 -d, --debug don't remove temporary files
39085 --recheck update $as_me by reconfiguring in the same conditions
39086 --file=FILE[:TEMPLATE]
eea650d8 39087 instantiate the configuration file FILE
e6cc62c6 39088 --header=FILE[:TEMPLATE]
eea650d8 39089 instantiate the configuration header FILE
e6cc62c6
VS
39090
39091Configuration files:
39092$config_files
39093
39094Configuration headers:
39095$config_headers
39096
39097Configuration commands:
39098$config_commands
39099
39100Report bugs to <bug-autoconf@gnu.org>."
39101_ACEOF
39102
39103cat >>$CONFIG_STATUS <<_ACEOF
39104ac_cs_version="\\
e46d2a18 39105wxWindows config.status 2.5.1
eea650d8 39106configured by $0, generated by GNU Autoconf 2.58,
e6cc62c6
VS
39107 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39108
eea650d8 39109Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
39110This config.status script is free software; the Free Software Foundation
39111gives unlimited permission to copy, distribute and modify it."
39112srcdir=$srcdir
39113INSTALL="$INSTALL"
39114_ACEOF
39115
39116cat >>$CONFIG_STATUS <<\_ACEOF
39117# If no file are specified by the user, then we need to provide default
39118# value. By we need to know if files were specified by the user.
39119ac_need_defaults=:
39120while test $# != 0
39121do
39122 case $1 in
39123 --*=*)
39124 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39125 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39126 ac_shift=:
39127 ;;
39128 -*)
39129 ac_option=$1
39130 ac_optarg=$2
39131 ac_shift=shift
39132 ;;
39133 *) # This is not an option, so the user has probably given explicit
39134 # arguments.
39135 ac_option=$1
39136 ac_need_defaults=false;;
39137 esac
39138
39139 case $ac_option in
39140 # Handling of the options.
39141_ACEOF
39142cat >>$CONFIG_STATUS <<\_ACEOF
39143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39144 ac_cs_recheck=: ;;
39145 --version | --vers* | -V )
39146 echo "$ac_cs_version"; exit 0 ;;
39147 --he | --h)
39148 # Conflict between --help and --header
39149 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39150Try \`$0 --help' for more information." >&5
39151echo "$as_me: error: ambiguous option: $1
39152Try \`$0 --help' for more information." >&2;}
39153 { (exit 1); exit 1; }; };;
39154 --help | --hel | -h )
39155 echo "$ac_cs_usage"; exit 0 ;;
39156 --debug | --d* | -d )
39157 debug=: ;;
39158 --file | --fil | --fi | --f )
39159 $ac_shift
39160 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39161 ac_need_defaults=false;;
39162 --header | --heade | --head | --hea )
39163 $ac_shift
39164 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39165 ac_need_defaults=false;;
39166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39167 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39168 ac_cs_silent=: ;;
39169
39170 # This is an error.
39171 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39172Try \`$0 --help' for more information." >&5
39173echo "$as_me: error: unrecognized option: $1
39174Try \`$0 --help' for more information." >&2;}
39175 { (exit 1); exit 1; }; } ;;
39176
39177 *) ac_config_targets="$ac_config_targets $1" ;;
39178
39179 esac
39180 shift
39181done
39182
39183ac_configure_extra_args=
39184
39185if $ac_cs_silent; then
39186 exec 6>/dev/null
39187 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
39188fi
39189
e6cc62c6
VS
39190_ACEOF
39191cat >>$CONFIG_STATUS <<_ACEOF
39192if \$ac_cs_recheck; then
39193 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39194 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
39195fi
39196
e6cc62c6 39197_ACEOF
fe0895cf 39198
e6cc62c6 39199cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 39200#
e6cc62c6 39201# INIT-COMMANDS section.
10f2d63a 39202#
10f2d63a 39203
a0b9e27f 39204
e6cc62c6
VS
39205 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39206 LN_S="${LN_S}"
10f2d63a 39207
10f2d63a 39208
10f2d63a 39209
e6cc62c6 39210_ACEOF
8284b0c5 39211
52127426 39212
247f5006 39213
e6cc62c6
VS
39214cat >>$CONFIG_STATUS <<\_ACEOF
39215for ac_config_target in $ac_config_targets
247f5006 39216do
e6cc62c6
VS
39217 case "$ac_config_target" in
39218 # Handling of arguments.
81345eef
VZ
39219 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39220 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39221 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 39222 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
39223 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39224 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39225 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39226echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39227 { (exit 1); exit 1; }; };;
247f5006
VZ
39228 esac
39229done
39230
e6cc62c6
VS
39231# If the user did not use the arguments to specify the items to instantiate,
39232# then the envvar interface is used. Set only those that are not.
39233# We use the long form for the default assignment because of an extremely
39234# bizarre bug on SunOS 4.1.3.
39235if $ac_need_defaults; then
39236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39238 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39239fi
39240
39241# Have a temporary directory for convenience. Make it in the build tree
39242# simply because there is no reason to put it here, and in addition,
39243# creating and moving files from /tmp can sometimes cause problems.
39244# Create a temporary directory, and hook for its removal unless debugging.
39245$debug ||
39246{
39247 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39248 trap '{ (exit 1); exit 1; }' 1 2 13 15
39249}
247f5006 39250
e6cc62c6 39251# Create a (secure) tmp directory for tmp files.
247f5006 39252
e6cc62c6
VS
39253{
39254 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39255 test -n "$tmp" && test -d "$tmp"
39256} ||
39257{
39258 tmp=./confstat$$-$RANDOM
39259 (umask 077 && mkdir $tmp)
39260} ||
39261{
39262 echo "$me: cannot create a temporary directory in ." >&2
39263 { (exit 1); exit 1; }
39264}
39265
39266_ACEOF
39267
39268cat >>$CONFIG_STATUS <<_ACEOF
39269
39270#
39271# CONFIG_FILES section.
39272#
247f5006 39273
e6cc62c6
VS
39274# No need to generate the scripts if there are no CONFIG_FILES.
39275# This happens for instance when ./config.status config.h
39276if test -n "\$CONFIG_FILES"; then
39277 # Protect against being on the right side of a sed subst in config.status.
39278 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39279 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39280s,@SHELL@,$SHELL,;t t
39281s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39282s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39283s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39284s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39285s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39286s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39287s,@exec_prefix@,$exec_prefix,;t t
39288s,@prefix@,$prefix,;t t
39289s,@program_transform_name@,$program_transform_name,;t t
39290s,@bindir@,$bindir,;t t
39291s,@sbindir@,$sbindir,;t t
39292s,@libexecdir@,$libexecdir,;t t
39293s,@datadir@,$datadir,;t t
39294s,@sysconfdir@,$sysconfdir,;t t
39295s,@sharedstatedir@,$sharedstatedir,;t t
39296s,@localstatedir@,$localstatedir,;t t
39297s,@libdir@,$libdir,;t t
39298s,@includedir@,$includedir,;t t
39299s,@oldincludedir@,$oldincludedir,;t t
39300s,@infodir@,$infodir,;t t
39301s,@mandir@,$mandir,;t t
39302s,@build_alias@,$build_alias,;t t
39303s,@host_alias@,$host_alias,;t t
39304s,@target_alias@,$target_alias,;t t
39305s,@DEFS@,$DEFS,;t t
39306s,@ECHO_C@,$ECHO_C,;t t
39307s,@ECHO_N@,$ECHO_N,;t t
39308s,@ECHO_T@,$ECHO_T,;t t
39309s,@LIBS@,$LIBS,;t t
39310s,@build@,$build,;t t
39311s,@build_cpu@,$build_cpu,;t t
39312s,@build_vendor@,$build_vendor,;t t
39313s,@build_os@,$build_os,;t t
39314s,@host@,$host,;t t
39315s,@host_cpu@,$host_cpu,;t t
39316s,@host_vendor@,$host_vendor,;t t
39317s,@host_os@,$host_os,;t t
39318s,@target@,$target,;t t
39319s,@target_cpu@,$target_cpu,;t t
39320s,@target_vendor@,$target_vendor,;t t
39321s,@target_os@,$target_os,;t t
39322s,@CC@,$CC,;t t
39323s,@CFLAGS@,$CFLAGS,;t t
39324s,@LDFLAGS@,$LDFLAGS,;t t
39325s,@CPPFLAGS@,$CPPFLAGS,;t t
39326s,@ac_ct_CC@,$ac_ct_CC,;t t
39327s,@EXEEXT@,$EXEEXT,;t t
39328s,@OBJEXT@,$OBJEXT,;t t
39329s,@CPP@,$CPP,;t t
39330s,@EGREP@,$EGREP,;t t
39331s,@CXX@,$CXX,;t t
39332s,@CXXFLAGS@,$CXXFLAGS,;t t
39333s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39334s,@RANLIB@,$RANLIB,;t t
39335s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39336s,@AR@,$AR,;t t
39337s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39338s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39339s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39340s,@STRIP@,$STRIP,;t t
39341s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
39342s,@LN_S@,$LN_S,;t t
39343s,@CXXCPP@,$CXXCPP,;t t
672abd7a 39344s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
39345s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39346s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39347s,@GTK_LIBS@,$GTK_LIBS,;t t
39348s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39349s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39350s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39351s,@X_CFLAGS@,$X_CFLAGS,;t t
39352s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39353s,@X_LIBS@,$X_LIBS,;t t
39354s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39355s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39356s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39357s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39358s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
39359s,@RESCOMP@,$RESCOMP,;t t
39360s,@DEREZ@,$DEREZ,;t t
39361s,@SETFILE@,$SETFILE,;t t
39362s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
39363s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39364s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39365s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
39366s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39367s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 39368s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
39369s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39370s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39371s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39372s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
39373s,@VENDOR@,$VENDOR,;t t
39374s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
39375s,@WXUNIV@,$WXUNIV,;t t
39376s,@MONOLITHIC@,$MONOLITHIC,;t t
39377s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 39378s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 39379s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 39380s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 39381s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 39382s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
39383s,@UNICODE@,$UNICODE,;t t
39384s,@BUILD@,$BUILD,;t t
6c67131a
VS
39385s,@DEBUG_INFO@,$DEBUG_INFO,;t t
39386s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
39387s,@SHARED@,$SHARED,;t t
39388s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
39389s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
39390s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 39391s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 39392s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
39393s,@SET_MAKE@,$SET_MAKE,;t t
39394s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
39395s,@ac_ct_AR@,$ac_ct_AR,;t t
39396s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39397s,@NM@,$NM,;t t
39398s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 39399s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 39400s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
39401s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
39402s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
39403s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
39404s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
39405s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 39406s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 39407s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 39408s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 39409s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 39410s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 39411s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 39412s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
39413s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
39414s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
39415s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
39416s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
39417s,@PIC_FLAG@,$PIC_FLAG,;t t
39418s,@USE_SOVERSION@,$USE_SOVERSION,;t t
39419s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
39420s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
39421s,@USE_MACVERSION@,$USE_MACVERSION,;t t
39422s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
39423s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 39424s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 39425s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 39426s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
39427s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
39428s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 39429s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
39430s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
39431s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
39432s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
39433s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 39434s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 39435s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 39436s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 39437s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
39438s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
39439s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 39440s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
250700e4 39441s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 39442s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 39443s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 39444s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 39445s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
250700e4 39446s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 39447s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 39448s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
39449s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
39450s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
39451s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
39452s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 39453s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 39454s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
39455s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
39456s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
39457s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 39458s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 39459s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 39460s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 39461s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 39462s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 39463s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 39464s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
3af038c0
VS
39465s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
39466s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 39467s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 39468s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
39469s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39470s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39471s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39472s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
39473s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
39474s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
39475s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 39476s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 39477s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
39478s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
39479s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
39480s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
39481s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 39482s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 39483s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 39484s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
39485s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
39486s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
39487s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
39488s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
39489s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
39490s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 39491s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
39492s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
39493s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
39494s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
39495s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
39496s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
39497s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
39498s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 39499s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
39500s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
39501s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
39502s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
39503s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
39504s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
39505s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
39506s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39507s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39508s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 39509s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
6f628073
VS
39510s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
39511s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
39512s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
39513s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 39514s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 39515s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
39516s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
39517s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
39518s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
39519s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
39520s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
39521s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
39522s,@PATH_IFS@,$PATH_IFS,;t t
39523s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
39524s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
39525s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
39526s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
39527s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
39528s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
39529s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
39530s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
39531s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
39532s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
39533s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
39534s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
39535s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
39536s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
39537s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
39538s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
39539s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
39540s,@WX_ALL@,$WX_ALL,;t t
39541s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
39542s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
39543s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
39544s,@STATIC_FLAG@,$STATIC_FLAG,;t t
39545s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
39546s,@USE_GUI@,$USE_GUI,;t t
39547s,@AFMINSTALL@,$AFMINSTALL,;t t
39548s,@WIN32INSTALL@,$WIN32INSTALL,;t t
39549s,@TOOLKIT@,$TOOLKIT,;t t
39550s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
39551s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
39552s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
39553s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
39554s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
39555s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
39556s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 39557s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
39558s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
39559s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
39560s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
39561s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
39562s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
39563s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 39564s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 39565s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
39566s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
39567s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
39568s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
39569s,@ALL_HEADERS@,$ALL_HEADERS,;t t
39570s,@ALL_SOURCES@,$ALL_SOURCES,;t t
39571s,@GUIDIST@,$GUIDIST,;t t
39572s,@PORT_FILES@,$PORT_FILES,;t t
39573s,@DISTDIR@,$DISTDIR,;t t
39574s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
39575s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
39576s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
39577s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
39578s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
39579s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
39580s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
39581s,@RESFLAGS@,$RESFLAGS,;t t
39582s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
39583s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
39584s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
39585s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
39586s,@LIBWXMACRES@,$LIBWXMACRES,;t t
39587s,@MACRESCOMP@,$MACRESCOMP,;t t
39588s,@MACSETFILE@,$MACSETFILE,;t t
39589s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
39590s,@GCC@,$GCC,;t t
39591s,@DLLTOOL@,$DLLTOOL,;t t
39592s,@AS@,$AS,;t t
e6cc62c6
VS
39593s,@LD@,$LD,;t t
39594s,@MAKEINFO@,$MAKEINFO,;t t
39595s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
39596s,@LIBOBJS@,$LIBOBJS,;t t
39597s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
39598CEOF
39599
e6cc62c6
VS
39600_ACEOF
39601
39602 cat >>$CONFIG_STATUS <<\_ACEOF
39603 # Split the substitutions into bite-sized pieces for seds with
39604 # small command number limits, like on Digital OSF/1 and HP-UX.
39605 ac_max_sed_lines=48
39606 ac_sed_frag=1 # Number of current file.
39607 ac_beg=1 # First line for current file.
39608 ac_end=$ac_max_sed_lines # Line after last line for current file.
39609 ac_more_lines=:
39610 ac_sed_cmds=
39611 while $ac_more_lines; do
39612 if test $ac_beg -gt 1; then
39613 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 39614 else
e6cc62c6
VS
39615 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39616 fi
39617 if test ! -s $tmp/subs.frag; then
39618 ac_more_lines=false
39619 else
39620 # The purpose of the label and of the branching condition is to
39621 # speed up the sed processing (if there are no `@' at all, there
39622 # is no need to browse any of the substitutions).
39623 # These are the two extra sed commands mentioned above.
39624 (echo ':t
39625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39626 if test -z "$ac_sed_cmds"; then
eea650d8 39627 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 39628 else
eea650d8 39629 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
39630 fi
39631 ac_sed_frag=`expr $ac_sed_frag + 1`
39632 ac_beg=$ac_end
39633 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 39634 fi
e6cc62c6
VS
39635 done
39636 if test -z "$ac_sed_cmds"; then
39637 ac_sed_cmds=cat
10f2d63a 39638 fi
e6cc62c6 39639fi # test -n "$CONFIG_FILES"
10f2d63a 39640
e6cc62c6
VS
39641_ACEOF
39642cat >>$CONFIG_STATUS <<\_ACEOF
39643for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 39644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39645 case $ac_file in
39646 - | *:- | *:-:* ) # input from stdin
eea650d8
VS
39647 cat >$tmp/stdin
39648 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39650 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
eea650d8 39651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39652 * ) ac_file_in=$ac_file.in ;;
10f2d63a 39653 esac
247f5006 39654
e6cc62c6
VS
39655 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39656 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39657$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
39658 X"$ac_file" : 'X\(//\)[^/]' \| \
39659 X"$ac_file" : 'X\(//\)$' \| \
39660 X"$ac_file" : 'X\(/\)' \| \
39661 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39662echo X"$ac_file" |
39663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39665 /^X\(\/\/\)$/{ s//\1/; q; }
39666 /^X\(\/\).*/{ s//\1/; q; }
39667 s/.*/./; q'`
39668 { if $as_mkdir_p; then
39669 mkdir -p "$ac_dir"
a0b9e27f 39670 else
e6cc62c6
VS
39671 as_dir="$ac_dir"
39672 as_dirs=
39673 while test ! -d "$as_dir"; do
39674 as_dirs="$as_dir $as_dirs"
39675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
39677 X"$as_dir" : 'X\(//\)[^/]' \| \
39678 X"$as_dir" : 'X\(//\)$' \| \
39679 X"$as_dir" : 'X\(/\)' \| \
39680 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39681echo X"$as_dir" |
39682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39684 /^X\(\/\/\)$/{ s//\1/; q; }
39685 /^X\(\/\).*/{ s//\1/; q; }
39686 s/.*/./; q'`
39687 done
39688 test ! -n "$as_dirs" || mkdir $as_dirs
39689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39690echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39691 { (exit 1); exit 1; }; }; }
39692
39693 ac_builddir=.
39694
39695if test "$ac_dir" != .; then
39696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39697 # A "../" for each directory in $ac_dir_suffix.
39698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39699else
39700 ac_dir_suffix= ac_top_builddir=
39701fi
247f5006 39702
e6cc62c6
VS
39703case $srcdir in
39704 .) # No --srcdir option. We are building in place.
39705 ac_srcdir=.
39706 if test -z "$ac_top_builddir"; then
39707 ac_top_srcdir=.
39708 else
39709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39710 fi ;;
39711 [\\/]* | ?:[\\/]* ) # Absolute path.
39712 ac_srcdir=$srcdir$ac_dir_suffix;
39713 ac_top_srcdir=$srcdir ;;
247f5006 39714 *) # Relative path.
e6cc62c6
VS
39715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39717esac
eea650d8
VS
39718case "$ac_dir" in
39719.) ac_abs_builddir=$ac_builddir;;
39720*)
39721 case $ac_builddir in
39722 .) ac_abs_builddir="$ac_dir";;
39723 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
39724 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
39725 esac;;
39726esac
39727case "$ac_dir" in
39728.) ac_abs_top_builddir=${ac_top_builddir}.;;
39729*)
39730 case ${ac_top_builddir}. in
39731 .) ac_abs_top_builddir="$ac_dir";;
39732 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39733 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
39734 esac;;
39735esac
39736case "$ac_dir" in
39737.) ac_abs_srcdir=$ac_srcdir;;
39738*)
39739 case $ac_srcdir in
39740 .) ac_abs_srcdir="$ac_dir";;
39741 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39742 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
39743 esac;;
39744esac
39745case "$ac_dir" in
39746.) ac_abs_top_srcdir=$ac_top_srcdir;;
39747*)
39748 case $ac_top_srcdir in
39749 .) ac_abs_top_srcdir="$ac_dir";;
39750 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39751 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
39752 esac;;
39753esac
10f2d63a 39754
247f5006 39755
e6cc62c6
VS
39756 case $INSTALL in
39757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39758 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 39759 esac
247f5006 39760
e6cc62c6
VS
39761 if test x"$ac_file" != x-; then
39762 { echo "$as_me:$LINENO: creating $ac_file" >&5
39763echo "$as_me: creating $ac_file" >&6;}
39764 rm -f "$ac_file"
39765 fi
39766 # Let's still pretend it is `configure' which instantiates (i.e., don't
39767 # use $as_me), people would be surprised to read:
39768 # /* config.h. Generated by config.status. */
39769 if test x"$ac_file" = x-; then
39770 configure_input=
39771 else
39772 configure_input="$ac_file. "
39773 fi
39774 configure_input=$configure_input"Generated from `echo $ac_file_in |
eea650d8 39775 sed 's,.*/,,'` by configure."
e6cc62c6
VS
39776
39777 # First look for the input files in the build tree, otherwise in the
39778 # src tree.
39779 ac_file_inputs=`IFS=:
39780 for f in $ac_file_in; do
39781 case $f in
39782 -) echo $tmp/stdin ;;
39783 [\\/$]*)
eea650d8
VS
39784 # Absolute (can't be DOS-style, as IFS=:)
39785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39786echo "$as_me: error: cannot find input file: $f" >&2;}
39787 { (exit 1); exit 1; }; }
eea650d8 39788 echo "$f";;
e6cc62c6 39789 *) # Relative
eea650d8
VS
39790 if test -f "$f"; then
39791 # Build tree
39792 echo "$f"
39793 elif test -f "$srcdir/$f"; then
39794 # Source tree
39795 echo "$srcdir/$f"
39796 else
39797 # /dev/null tree
39798 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39799echo "$as_me: error: cannot find input file: $f" >&2;}
39800 { (exit 1); exit 1; }; }
eea650d8 39801 fi;;
e6cc62c6
VS
39802 esac
39803 done` || { (exit 1); exit 1; }
39804_ACEOF
39805cat >>$CONFIG_STATUS <<_ACEOF
39806 sed "$ac_vpsub
39807$extrasub
39808_ACEOF
39809cat >>$CONFIG_STATUS <<\_ACEOF
39810:t
39811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39812s,@configure_input@,$configure_input,;t t
39813s,@srcdir@,$ac_srcdir,;t t
39814s,@abs_srcdir@,$ac_abs_srcdir,;t t
39815s,@top_srcdir@,$ac_top_srcdir,;t t
39816s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39817s,@builddir@,$ac_builddir,;t t
39818s,@abs_builddir@,$ac_abs_builddir,;t t
39819s,@top_builddir@,$ac_top_builddir,;t t
39820s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39821s,@INSTALL@,$ac_INSTALL,;t t
39822" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39823 rm -f $tmp/stdin
39824 if test x"$ac_file" != x-; then
39825 mv $tmp/out $ac_file
39826 else
39827 cat $tmp/out
39828 rm -f $tmp/out
39829 fi
39830
39831done
39832_ACEOF
39833cat >>$CONFIG_STATUS <<\_ACEOF
39834
39835#
39836# CONFIG_HEADER section.
39837#
10f2d63a
VZ
39838
39839# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39840# NAME is the cpp macro being defined and VALUE is the value it is being given.
39841#
39842# ac_d sets the value in "#define NAME VALUE" lines.
eea650d8
VS
39843ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
39844ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
39845ac_dC=' '
39846ac_dD=',;t'
39847# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
eea650d8 39848ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 39849ac_uB='$,\1#\2define\3'
10f2d63a 39850ac_uC=' '
e6cc62c6
VS
39851ac_uD=',;t'
39852
39853for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 39854 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39855 case $ac_file in
39856 - | *:- | *:-:* ) # input from stdin
eea650d8
VS
39857 cat >$tmp/stdin
39858 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39859 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39860 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
eea650d8 39861 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39862 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
39863 esac
39864
e6cc62c6
VS
39865 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
39866echo "$as_me: creating $ac_file" >&6;}
39867
39868 # First look for the input files in the build tree, otherwise in the
39869 # src tree.
39870 ac_file_inputs=`IFS=:
39871 for f in $ac_file_in; do
39872 case $f in
39873 -) echo $tmp/stdin ;;
39874 [\\/$]*)
eea650d8
VS
39875 # Absolute (can't be DOS-style, as IFS=:)
39876 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39877echo "$as_me: error: cannot find input file: $f" >&2;}
39878 { (exit 1); exit 1; }; }
eea650d8
VS
39879 # Do quote $f, to prevent DOS paths from being IFS'd.
39880 echo "$f";;
e6cc62c6 39881 *) # Relative
eea650d8
VS
39882 if test -f "$f"; then
39883 # Build tree
39884 echo "$f"
39885 elif test -f "$srcdir/$f"; then
39886 # Source tree
39887 echo "$srcdir/$f"
39888 else
39889 # /dev/null tree
39890 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39891echo "$as_me: error: cannot find input file: $f" >&2;}
39892 { (exit 1); exit 1; }; }
eea650d8 39893 fi;;
e6cc62c6
VS
39894 esac
39895 done` || { (exit 1); exit 1; }
39896 # Remove the trailing spaces.
eea650d8 39897 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
39898
39899_ACEOF
39900
39901# Transform confdefs.h into two sed scripts, `conftest.defines' and
39902# `conftest.undefs', that substitutes the proper values into
39903# config.h.in to produce config.h. The first handles `#define'
39904# templates, and the second `#undef' templates.
39905# And first: Protect against being on the right side of a sed subst in
39906# config.status. Protect against being in an unquoted here document
39907# in config.status.
39908rm -f conftest.defines conftest.undefs
39909# Using a here document instead of a string reduces the quoting nightmare.
39910# Putting comments in sed scripts is not portable.
39911#
39912# `end' is used to avoid that the second main sed command (meant for
39913# 0-ary CPP macros) applies to n-ary macro definitions.
39914# See the Autoconf documentation for `clear'.
39915cat >confdef2sed.sed <<\_ACEOF
39916s/[\\&,]/\\&/g
39917s,[\\$`],\\&,g
39918t clear
39919: clear
eea650d8 39920s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 39921t end
eea650d8 39922s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
39923: end
39924_ACEOF
39925# If some macros were called several times there might be several times
39926# the same #defines, which is useless. Nevertheless, we may not want to
39927# sort them, since we want the *last* AC-DEFINE to be honored.
39928uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
39929sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
39930rm -f confdef2sed.sed
10f2d63a
VZ
39931
39932# This sed command replaces #undef with comments. This is necessary, for
39933# example, in the case of _POSIX_SOURCE, which is predefined and required
39934# on some systems where configure will not decide to define it.
e6cc62c6 39935cat >>conftest.undefs <<\_ACEOF
eea650d8 39936s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
39937_ACEOF
39938
39939# Break up conftest.defines because some shells have a limit on the size
39940# of here documents, and old seds have small limits too (100 cmds).
39941echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
eea650d8 39942echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
39943echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
39944echo ' :' >>$CONFIG_STATUS
39945rm -f conftest.tail
39946while grep . conftest.defines >/dev/null
39947do
39948 # Write a limited-size here document to $tmp/defines.sed.
39949 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
39950 # Speed up: don't consider the non `#define' lines.
eea650d8 39951 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
39952 # Work around the forget-to-reset-the-flag bug.
39953 echo 't clr' >>$CONFIG_STATUS
39954 echo ': clr' >>$CONFIG_STATUS
39955 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
39956 echo 'CEOF
39957 sed -f $tmp/defines.sed $tmp/in >$tmp/out
39958 rm -f $tmp/in
39959 mv $tmp/out $tmp/in
39960' >>$CONFIG_STATUS
39961 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
39962 rm -f conftest.defines
39963 mv conftest.tail conftest.defines
39964done
39965rm -f conftest.defines
39966echo ' fi # grep' >>$CONFIG_STATUS
39967echo >>$CONFIG_STATUS
10f2d63a 39968
e6cc62c6
VS
39969# Break up conftest.undefs because some shells have a limit on the size
39970# of here documents, and old seds have small limits too (100 cmds).
39971echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 39972rm -f conftest.tail
e6cc62c6 39973while grep . conftest.undefs >/dev/null
10f2d63a 39974do
e6cc62c6
VS
39975 # Write a limited-size here document to $tmp/undefs.sed.
39976 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
39977 # Speed up: don't consider the non `#undef'
eea650d8 39978 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
39979 # Work around the forget-to-reset-the-flag bug.
39980 echo 't clr' >>$CONFIG_STATUS
39981 echo ': clr' >>$CONFIG_STATUS
39982 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 39983 echo 'CEOF
e6cc62c6
VS
39984 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
39985 rm -f $tmp/in
39986 mv $tmp/out $tmp/in
39987' >>$CONFIG_STATUS
39988 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
39989 rm -f conftest.undefs
39990 mv conftest.tail conftest.undefs
10f2d63a 39991done
e6cc62c6
VS
39992rm -f conftest.undefs
39993
39994cat >>$CONFIG_STATUS <<\_ACEOF
39995 # Let's still pretend it is `configure' which instantiates (i.e., don't
39996 # use $as_me), people would be surprised to read:
39997 # /* config.h. Generated by config.status. */
39998 if test x"$ac_file" = x-; then
39999 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 40000 else
e6cc62c6 40001 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 40002 fi
e6cc62c6
VS
40003 cat $tmp/in >>$tmp/config.h
40004 rm -f $tmp/in
40005 if test x"$ac_file" != x-; then
40006 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40007 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40008echo "$as_me: $ac_file is unchanged" >&6;}
40009 else
40010 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40012 X"$ac_file" : 'X\(//\)[^/]' \| \
40013 X"$ac_file" : 'X\(//\)$' \| \
40014 X"$ac_file" : 'X\(/\)' \| \
40015 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40016echo X"$ac_file" |
40017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40019 /^X\(\/\/\)$/{ s//\1/; q; }
40020 /^X\(\/\).*/{ s//\1/; q; }
40021 s/.*/./; q'`
40022 { if $as_mkdir_p; then
40023 mkdir -p "$ac_dir"
40024 else
40025 as_dir="$ac_dir"
40026 as_dirs=
40027 while test ! -d "$as_dir"; do
40028 as_dirs="$as_dir $as_dirs"
40029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40031 X"$as_dir" : 'X\(//\)[^/]' \| \
40032 X"$as_dir" : 'X\(//\)$' \| \
40033 X"$as_dir" : 'X\(/\)' \| \
40034 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40035echo X"$as_dir" |
40036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40038 /^X\(\/\/\)$/{ s//\1/; q; }
40039 /^X\(\/\).*/{ s//\1/; q; }
40040 s/.*/./; q'`
40041 done
40042 test ! -n "$as_dirs" || mkdir $as_dirs
40043 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40044echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40045 { (exit 1); exit 1; }; }; }
a0b9e27f 40046
e6cc62c6
VS
40047 rm -f $ac_file
40048 mv $tmp/config.h $ac_file
40049 fi
40050 else
40051 cat $tmp/config.h
40052 rm -f $tmp/config.h
40053 fi
40054done
40055_ACEOF
40056cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 40057
e6cc62c6
VS
40058#
40059# CONFIG_COMMANDS section.
40060#
40061for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40062 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40063 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40064 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40065$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40066 X"$ac_dest" : 'X\(//\)[^/]' \| \
40067 X"$ac_dest" : 'X\(//\)$' \| \
40068 X"$ac_dest" : 'X\(/\)' \| \
40069 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40070echo X"$ac_dest" |
40071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40073 /^X\(\/\/\)$/{ s//\1/; q; }
40074 /^X\(\/\).*/{ s//\1/; q; }
40075 s/.*/./; q'`
eea650d8
VS
40076 { if $as_mkdir_p; then
40077 mkdir -p "$ac_dir"
40078 else
40079 as_dir="$ac_dir"
40080 as_dirs=
40081 while test ! -d "$as_dir"; do
40082 as_dirs="$as_dir $as_dirs"
40083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40085 X"$as_dir" : 'X\(//\)[^/]' \| \
40086 X"$as_dir" : 'X\(//\)$' \| \
40087 X"$as_dir" : 'X\(/\)' \| \
40088 . : '\(.\)' 2>/dev/null ||
40089echo X"$as_dir" |
40090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40092 /^X\(\/\/\)$/{ s//\1/; q; }
40093 /^X\(\/\).*/{ s//\1/; q; }
40094 s/.*/./; q'`
40095 done
40096 test ! -n "$as_dirs" || mkdir $as_dirs
40097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40098echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40099 { (exit 1); exit 1; }; }; }
40100
e6cc62c6
VS
40101 ac_builddir=.
40102
40103if test "$ac_dir" != .; then
40104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40105 # A "../" for each directory in $ac_dir_suffix.
40106 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40107else
40108 ac_dir_suffix= ac_top_builddir=
40109fi
40110
40111case $srcdir in
40112 .) # No --srcdir option. We are building in place.
40113 ac_srcdir=.
40114 if test -z "$ac_top_builddir"; then
40115 ac_top_srcdir=.
40116 else
40117 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40118 fi ;;
40119 [\\/]* | ?:[\\/]* ) # Absolute path.
40120 ac_srcdir=$srcdir$ac_dir_suffix;
40121 ac_top_srcdir=$srcdir ;;
40122 *) # Relative path.
40123 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40124 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40125esac
eea650d8
VS
40126case "$ac_dir" in
40127.) ac_abs_builddir=$ac_builddir;;
40128*)
40129 case $ac_builddir in
40130 .) ac_abs_builddir="$ac_dir";;
40131 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40132 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40133 esac;;
40134esac
40135case "$ac_dir" in
40136.) ac_abs_top_builddir=${ac_top_builddir}.;;
40137*)
40138 case ${ac_top_builddir}. in
40139 .) ac_abs_top_builddir="$ac_dir";;
40140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40141 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40142 esac;;
40143esac
40144case "$ac_dir" in
40145.) ac_abs_srcdir=$ac_srcdir;;
40146*)
40147 case $ac_srcdir in
40148 .) ac_abs_srcdir="$ac_dir";;
40149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40150 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40151 esac;;
40152esac
40153case "$ac_dir" in
40154.) ac_abs_top_srcdir=$ac_top_srcdir;;
40155*)
40156 case $ac_top_srcdir in
40157 .) ac_abs_top_srcdir="$ac_dir";;
40158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40159 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40160 esac;;
40161esac
e6cc62c6
VS
40162
40163
40164 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40165echo "$as_me: executing $ac_dest commands" >&6;}
40166 case $ac_dest in
40167 default )
652d930d 40168 if test ! -h wx-config; then
991a5759 40169 chmod +x wx-config
3a922bb4
RL
40170 mv wx-config wx${TOOLCHAIN_NAME}-config
40171 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 40172 fi
665bbe97 40173
00cf1208
RR
40174 if test ! -d lib; then
40175 mkdir lib
40176 fi
40177 if test ! -d lib/wx; then
40178 mkdir lib/wx
40179 fi
40180 if test ! -d lib/wx/include; then
40181 mkdir lib/wx/include
40182 fi
3a922bb4
RL
40183 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40184 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 40185 fi
3a922bb4
RL
40186 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40187 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
40188 fi
40189 if test -f setup.h; then
3a922bb4 40190 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 40191 fi
e6cc62c6
VS
40192 ;;
40193 esac
40194done
40195_ACEOF
2224580a 40196
e6cc62c6 40197cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 40198
e6cc62c6
VS
40199{ (exit 0); exit 0; }
40200_ACEOF
40201chmod +x $CONFIG_STATUS
40202ac_clean_files=$ac_clean_files_save
40203
40204
40205# configure is writing to config.log, and then calls config.status.
40206# config.status does its own redirection, appending to config.log.
40207# Unfortunately, on DOS this fails, as config.log is still kept open
40208# by configure, so config.status won't be able to write to it; its
40209# output is simply discarded. So we exec the FD to /dev/null,
40210# effectively closing config.log, so it can be properly (re)opened and
40211# appended to by config.status. When coming back to configure, we
40212# need to make the FD available again.
40213if test "$no_create" != yes; then
40214 ac_cs_success=:
40215 ac_config_status_args=
40216 test "$silent" = yes &&
40217 ac_config_status_args="$ac_config_status_args --quiet"
40218 exec 5>/dev/null
40219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40220 exec 5>>config.log
40221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40222 # would make configure fail if this is the last instruction.
40223 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
40224fi
40225
672abd7a
VS
40226#
40227# CONFIG_SUBDIRS section.
40228#
40229if test "$no_recursion" != yes; then
40230
40231 # Remove --cache-file and --srcdir arguments so they do not pile up.
40232 ac_sub_configure_args=
40233 ac_prev=
40234 for ac_arg in $ac_configure_args; do
40235 if test -n "$ac_prev"; then
40236 ac_prev=
40237 continue
40238 fi
40239 case $ac_arg in
40240 -cache-file | --cache-file | --cache-fil | --cache-fi \
40241 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40242 ac_prev=cache_file ;;
40243 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40244 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40245 | --c=*)
40246 ;;
40247 --config-cache | -C)
40248 ;;
40249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40250 ac_prev=srcdir ;;
40251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40252 ;;
40253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40254 ac_prev=prefix ;;
40255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40256 ;;
40257 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40258 esac
40259 done
40260
40261 # Always prepend --prefix to ensure using the same prefix
40262 # in subdir configurations.
40263 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40264
40265 ac_popdir=`pwd`
40266 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40267
40268 # Do not complain, so a configure script can configure whichever
40269 # parts of a large source tree are present.
40270 test -d $srcdir/$ac_dir || continue
40271
40272 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40273echo "$as_me: configuring in $ac_dir" >&6;}
40274 { if $as_mkdir_p; then
40275 mkdir -p "$ac_dir"
40276 else
40277 as_dir="$ac_dir"
40278 as_dirs=
40279 while test ! -d "$as_dir"; do
40280 as_dirs="$as_dir $as_dirs"
40281 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40283 X"$as_dir" : 'X\(//\)[^/]' \| \
40284 X"$as_dir" : 'X\(//\)$' \| \
40285 X"$as_dir" : 'X\(/\)' \| \
40286 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
40287echo X"$as_dir" |
40288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40290 /^X\(\/\/\)$/{ s//\1/; q; }
40291 /^X\(\/\).*/{ s//\1/; q; }
40292 s/.*/./; q'`
40293 done
40294 test ! -n "$as_dirs" || mkdir $as_dirs
40295 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40296echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40297 { (exit 1); exit 1; }; }; }
40298
40299 ac_builddir=.
40300
40301if test "$ac_dir" != .; then
40302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40303 # A "../" for each directory in $ac_dir_suffix.
40304 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40305else
40306 ac_dir_suffix= ac_top_builddir=
40307fi
40308
40309case $srcdir in
40310 .) # No --srcdir option. We are building in place.
40311 ac_srcdir=.
40312 if test -z "$ac_top_builddir"; then
40313 ac_top_srcdir=.
40314 else
40315 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40316 fi ;;
40317 [\\/]* | ?:[\\/]* ) # Absolute path.
40318 ac_srcdir=$srcdir$ac_dir_suffix;
40319 ac_top_srcdir=$srcdir ;;
40320 *) # Relative path.
40321 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40322 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40323esac
eea650d8
VS
40324case "$ac_dir" in
40325.) ac_abs_builddir=$ac_builddir;;
40326*)
40327 case $ac_builddir in
40328 .) ac_abs_builddir="$ac_dir";;
40329 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40330 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40331 esac;;
40332esac
40333case "$ac_dir" in
40334.) ac_abs_top_builddir=${ac_top_builddir}.;;
40335*)
40336 case ${ac_top_builddir}. in
40337 .) ac_abs_top_builddir="$ac_dir";;
40338 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40339 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40340 esac;;
40341esac
40342case "$ac_dir" in
40343.) ac_abs_srcdir=$ac_srcdir;;
40344*)
40345 case $ac_srcdir in
40346 .) ac_abs_srcdir="$ac_dir";;
40347 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40348 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40349 esac;;
40350esac
40351case "$ac_dir" in
40352.) ac_abs_top_srcdir=$ac_top_srcdir;;
40353*)
40354 case $ac_top_srcdir in
40355 .) ac_abs_top_srcdir="$ac_dir";;
40356 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40357 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40358 esac;;
40359esac
672abd7a
VS
40360
40361
40362 cd $ac_dir
40363
40364 # Check for guested configure; otherwise get Cygnus style configure.
40365 if test -f $ac_srcdir/configure.gnu; then
40366 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40367 elif test -f $ac_srcdir/configure; then
40368 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40369 elif test -f $ac_srcdir/configure.in; then
40370 ac_sub_configure=$ac_configure
40371 else
40372 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40373echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40374 ac_sub_configure=
40375 fi
40376
40377 # The recursion is here.
40378 if test -n "$ac_sub_configure"; then
40379 # Make the cache file name correct relative to the subdirectory.
40380 case $cache_file in
40381 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40382 *) # Relative path.
eea650d8 40383 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
40384 esac
40385
40386 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40387echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40388 # The eval makes quoting arguments work.
40389 eval $ac_sub_configure $ac_sub_configure_args \
eea650d8
VS
40390 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40391 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
40392echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40393 { (exit 1); exit 1; }; }
40394 fi
40395
40396 cd $ac_popdir
40397 done
40398fi
40399
8284b0c5 40400
2b5f62a0
VZ
40401echo
40402echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
40403echo ""
89fe663f 40404echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 40405echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
40406
40407echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
40408echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
40409echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
40410
0c98a14e 40411echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
40412echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
40413echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 40414
2b5f62a0
VZ
40415echo " Which libraries should wxWindows use?"
40416echo " jpeg ${wxUSE_LIBJPEG-none}"
40417echo " png ${wxUSE_LIBPNG-none}"
40418echo " regex ${wxUSE_REGEX}"
40419echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
40420if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40421echo " xpm ${wxUSE_LIBXPM-none}"
40422fi
2b5f62a0 40423echo " zlib ${wxUSE_ZLIB}"
fd3d7534 40424echo " odbc ${wxUSE_ODBC}"
5f0b6dff 40425echo " expat ${wxUSE_EXPAT}"
3527f29c 40426echo " libmspack ${wxUSE_LIBMSPACK}"
2b5f62a0
VZ
40427
40428echo ""
40429