]> git.saurik.com Git - wxWidgets.git/blame - configure
don't use char hook to handle Esc in the dialogs, it is too blunt and prevents us...
[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.
789c5f4a 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
789c5f4a
VZ
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6 27# Support unset when possible.
789c5f4a 28if (FOO=FOO; unset FOO) >/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
789c5f4a 47 if (set +x; test -n "`(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
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6 229# Sed expression to map a string onto a valid CPP name.
789c5f4a 230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6 232# Sed expression to map a string onto a valid variable name.
789c5f4a 233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
f93ca9fd 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX 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_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
789c5f4a 674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
e46d2a18 796\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
789c5f4a 821 [$ac_default_prefix]
e6cc62c6 822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
789c5f4a 823 [PREFIX]
e6cc62c6
VS
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
e46d2a18 862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
f93ca9fd
VS
870 --enable-monolithic build wxWindows as single library
871 --enable-plugins build parts of wxWindows as loadable components
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
002ed9af 930 --enable-sound use wxSound 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
f93ca9fd 1034 --disable-sdltest Do not try to compile and run a test SDL program
45842500 1035 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1036
1037Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gtk use GTK+
1041 --with-motif use Motif/Lesstif
1042 --with-mac use Mac OS X
1043 --with-cocoa use Cocoa
1044 --with-wine use Wine
1045 --with-msw use MS-Windows
1046 --with-pm use OS/2 Presentation Manager
1047 --with-mgl use SciTech MGL
1048 --with-microwin use MicroWindows
1049 --with-x11 use X11
1050 --with-libpng use libpng (PNG image format)
1051 --with-libjpeg use libjpeg (JPEG file format)
1052 --with-libtiff use libtiff (TIFF file format)
89fe663f 1053 --with-libxpm use libxpm (XPM file format)
3527f29c 1054 --with-libmspack use libmspack (CHM help files loading)
f93ca9fd 1055 --with-sdl use SDL for audio on Unix
e6cc62c6
VS
1056 --with-opengl use OpenGL (or Mesa)
1057 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1058 --with-regex enable support for wxRegEx class
1059 --with-zlib use zlib for LZW compression
1060 --with-odbc use the IODBC and wxODBC classes
672abd7a 1061 --with-expat enable XML support using expat parser
e6cc62c6
VS
1062 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1063 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1064 --with-x use the X Window System
1065 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
f93ca9fd
VS
1066 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1067 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
e6cc62c6
VS
1068
1069Some influential environment variables:
1070 CC C compiler command
1071 CFLAGS C compiler flags
1072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1073 nonstandard directory <lib dir>
1074 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075 headers in a nonstandard directory <include dir>
1076 CPP C preprocessor
1077 CXX C++ compiler command
1078 CXXFLAGS C++ compiler flags
1079 CXXCPP C++ preprocessor
1080
1081Use these variables to override the choices made by `configure' or to help
1082it to find libraries and programs with nonstandard names/locations.
1083
1084Report bugs to <wx-dev@lists.wxwindows.org>.
1085_ACEOF
1086fi
1087
1088if test "$ac_init_help" = "recursive"; then
1089 # If there are subdirs, report their specific --help.
1090 ac_popdir=`pwd`
1091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092 test -d $ac_dir || continue
1093 ac_builddir=.
1094
1095if test "$ac_dir" != .; then
1096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097 # A "../" for each directory in $ac_dir_suffix.
1098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099else
1100 ac_dir_suffix= ac_top_builddir=
1101fi
1102
1103case $srcdir in
1104 .) # No --srcdir option. We are building in place.
1105 ac_srcdir=.
1106 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=.
1108 else
1109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 fi ;;
1111 [\\/]* | ?:[\\/]* ) # Absolute path.
1112 ac_srcdir=$srcdir$ac_dir_suffix;
1113 ac_top_srcdir=$srcdir ;;
1114 *) # Relative path.
1115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117esac
789c5f4a
VZ
1118# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1119# absolute.
1120ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1121ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1122ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1123ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
789c5f4a 1134 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142fi
8284b0c5 1143
e6cc62c6
VS
1144test -n "$ac_init_help" && exit 0
1145if $ac_init_version; then
1146 cat <<\_ACEOF
e46d2a18 1147wxWindows configure 2.5.1
789c5f4a 1148generated by GNU Autoconf 2.57
10f2d63a 1149
789c5f4a
VZ
1150Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1151Free Software Foundation, Inc.
e6cc62c6
VS
1152This configure script is free software; the Free Software Foundation
1153gives unlimited permission to copy, distribute and modify it.
1154_ACEOF
1155 exit 0
7c66a493 1156fi
e6cc62c6
VS
1157exec 5>config.log
1158cat >&5 <<_ACEOF
1159This file contains any messages produced by compilers while
1160running configure, to aid debugging if configure makes a mistake.
1161
e46d2a18 1162It was created by wxWindows $as_me 2.5.1, which was
789c5f4a 1163generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
1164
1165 $ $0 $@
1166
1167_ACEOF
1168{
1169cat <<_ASUNAME
1170## --------- ##
1171## Platform. ##
1172## --------- ##
1173
1174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1175uname -m = `(uname -m) 2>/dev/null || echo unknown`
1176uname -r = `(uname -r) 2>/dev/null || echo unknown`
1177uname -s = `(uname -s) 2>/dev/null || echo unknown`
1178uname -v = `(uname -v) 2>/dev/null || echo unknown`
1179
1180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1182
1183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1186hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1190
1191_ASUNAME
1192
1193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194for as_dir in $PATH
1195do
1196 IFS=$as_save_IFS
1197 test -z "$as_dir" && as_dir=.
1198 echo "PATH: $as_dir"
1199done
1200
1201} >&5
1202
1203cat >&5 <<_ACEOF
1204
1205
1206## ----------- ##
1207## Core tests. ##
1208## ----------- ##
1209
1210_ACEOF
1211
1212
1213# Keep a trace of the command line.
1214# Strip out --no-create and --no-recursion so they do not pile up.
1215# Strip out --silent because we don't want to record it for future runs.
1216# Also quote any args containing shell meta-characters.
1217# Make two passes to allow for proper duplicate-argument suppression.
1218ac_configure_args=
1219ac_configure_args0=
1220ac_configure_args1=
1221ac_sep=
1222ac_must_keep_next=false
1223for ac_pass in 1 2
1224do
1225 for ac_arg
1226 do
1227 case $ac_arg in
1228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 continue ;;
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 esac
1235 case $ac_pass in
1236 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1237 2)
1238 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1239 if test $ac_must_keep_next = true; then
789c5f4a 1240 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1241 else
789c5f4a
VZ
1242 case $ac_arg in
1243 *=* | --config-cache | -C | -disable-* | --disable-* \
1244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1246 | -with-* | --with-* | -without-* | --without-* | --x)
1247 case "$ac_configure_args0 " in
1248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1249 esac
1250 ;;
1251 -* ) ac_must_keep_next=true ;;
1252 esac
e6cc62c6
VS
1253 fi
1254 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1255 # Get rid of the leading space.
1256 ac_sep=" "
1257 ;;
1258 esac
1259 done
1260done
1261$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1262$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1263
1264# When interrupted or exit'd, cleanup temporary files, and complete
1265# config.log. We remove comments because anyway the quotes in there
1266# would cause problems or look ugly.
1267# WARNING: Be sure not to use single quotes in there, as some shells,
1268# such as our DU 5.0 friend, will then `close' the trap.
1269trap 'exit_status=$?
1270 # Save into config.log some information that might help in debugging.
1271 {
1272 echo
1273
1274 cat <<\_ASBOX
1275## ---------------- ##
1276## Cache variables. ##
1277## ---------------- ##
1278_ASBOX
1279 echo
1280 # The following way of writing the cache mishandles newlines in values,
1281{
1282 (set) 2>&1 |
1283 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1284 *ac_space=\ *)
1285 sed -n \
789c5f4a
VZ
1286 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1288 ;;
1289 *)
1290 sed -n \
789c5f4a 1291 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1292 ;;
1293 esac;
1294}
1295 echo
1296
1297 cat <<\_ASBOX
1298## ----------------- ##
1299## Output variables. ##
1300## ----------------- ##
1301_ASBOX
1302 echo
1303 for ac_var in $ac_subst_vars
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309
1310 if test -n "$ac_subst_files"; then
1311 cat <<\_ASBOX
1312## ------------- ##
1313## Output files. ##
1314## ------------- ##
1315_ASBOX
1316 echo
1317 for ac_var in $ac_subst_files
1318 do
1319 eval ac_val=$`echo $ac_var`
789c5f4a 1320 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1321 done | sort
1322 echo
1323 fi
1324
1325 if test -s confdefs.h; then
1326 cat <<\_ASBOX
1327## ----------- ##
1328## confdefs.h. ##
1329## ----------- ##
1330_ASBOX
1331 echo
1332 sed "/^$/d" confdefs.h | sort
1333 echo
1334 fi
1335 test "$ac_signal" != 0 &&
1336 echo "$as_me: caught signal $ac_signal"
1337 echo "$as_me: exit $exit_status"
1338 } >&5
789c5f4a 1339 rm -f core core.* *.core &&
e6cc62c6
VS
1340 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1341 exit $exit_status
1342 ' 0
1343for ac_signal in 1 2 13 15; do
1344 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345done
1346ac_signal=0
1347
1348# confdefs.h avoids OS command line length limits that DEFS can exceed.
1349rm -rf conftest* confdefs.h
1350# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1351echo >confdefs.h
1352
1353# Predefined preprocessor variables.
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_NAME "$PACKAGE_NAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_VERSION "$PACKAGE_VERSION"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_STRING "$PACKAGE_STRING"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377_ACEOF
1378
1379
1380# Let the site file select an alternate cache file if it wants to.
1381# Prefer explicitly selected file to automatically selected ones.
1382if test -z "$CONFIG_SITE"; then
1383 if test "x$prefix" != xNONE; then
1384 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1385 else
1386 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1387 fi
1388fi
1389for ac_site_file in $CONFIG_SITE; do
1390 if test -r "$ac_site_file"; then
1391 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1392echo "$as_me: loading site script $ac_site_file" >&6;}
1393 sed 's/^/| /' "$ac_site_file" >&5
1394 . "$ac_site_file"
1395 fi
1396done
1397
1398if test -r "$cache_file"; then
1399 # Some versions of bash will fail to source /dev/null (special
1400 # files actually), so we avoid doing that.
1401 if test -f "$cache_file"; then
1402 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1403echo "$as_me: loading cache $cache_file" >&6;}
1404 case $cache_file in
1405 [\\/]* | ?:[\\/]* ) . $cache_file;;
1406 *) . ./$cache_file;;
1407 esac
1408 fi
1409else
1410 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1411echo "$as_me: creating cache $cache_file" >&6;}
1412 >$cache_file
1413fi
1414
1415# Check that the precious variables saved in the cache have kept the same
1416# value.
1417ac_cache_corrupted=false
1418for ac_var in `(set) 2>&1 |
789c5f4a 1419 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1421 eval ac_new_set=\$ac_env_${ac_var}_set
1422 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1423 eval ac_new_val="\$ac_env_${ac_var}_value"
1424 case $ac_old_set,$ac_new_set in
1425 set,)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,set)
1430 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1431echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1432 ac_cache_corrupted=: ;;
1433 ,);;
1434 *)
1435 if test "x$ac_old_val" != "x$ac_new_val"; then
789c5f4a 1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
789c5f4a 1438 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1439echo "$as_me: former value: $ac_old_val" >&2;}
789c5f4a 1440 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1441echo "$as_me: current value: $ac_new_val" >&2;}
789c5f4a 1442 ac_cache_corrupted=:
e6cc62c6
VS
1443 fi;;
1444 esac
1445 # Pass precious variables to config.status.
1446 if test "$ac_new_set" = set; then
1447 case $ac_new_val in
1448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1450 *) ac_arg=$ac_var=$ac_new_val ;;
1451 esac
1452 case " $ac_configure_args " in
1453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1454 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455 esac
1456 fi
1457done
1458if $ac_cache_corrupted; then
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464fi
1465
1466ac_ext=c
1467ac_cpp='$CPP $CPPFLAGS'
1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
698dcdb6 1488
8284b0c5 1489
7c66a493 1490
a0b9e27f
MB
1491
1492
a0b9e27f 1493
a0b9e27f 1494
a0b9e27f 1495
a0b9e27f 1496
a0b9e27f 1497
a0b9e27f 1498
e6cc62c6
VS
1499
1500
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516done
1517if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
7c66a493
VZ
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
8284b0c5
MB
1608
1609
a0b9e27f 1610
10f2d63a 1611WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1612WX_MINOR_VERSION_NUMBER=5
e46d2a18 1613WX_RELEASE_NUMBER=1
10f2d63a 1614
10f2d63a 1615WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1616WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1617
978f1259
RL
1618WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1619
7015ef3a 1620WX_CURRENT=1
6426998c
RL
1621WX_REVISION=0
1622WX_AGE=0
1623
8284b0c5
MB
1624
1625
10f2d63a 1626USE_UNIX=1
73d617c9 1627USE_OS2=0
10f2d63a 1628USE_WIN32=0
f9bc1684 1629USE_DOS=0
b12915c1 1630USE_BEOS=0
1216f52d 1631USE_MAC=0
b12915c1 1632
10f2d63a 1633USE_AIX=
fe0895cf
VS
1634USE_BSD= USE_DARWIN= USE_FREEBSD=
1635USE_GNU= USE_HPUX=
89e3b3e4 1636USE_LINUX=
f6bcfd97 1637USE_NETBSD=
89e3b3e4 1638USE_OPENBSD=
fe0895cf
VS
1639USE_OSF= USE_SGI=
1640USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1641USE_ULTRIX=
89e3b3e4
VZ
1642USE_UNIXWARE=
1643
1644USE_ALPHA=
10f2d63a 1645
ab9b9eab
VZ
1646NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1647
ac0c4cc3 1648ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1649
ac0c4cc3 1650DEFAULT_wxUSE_COCOA=0
10f2d63a 1651DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1652DEFAULT_wxUSE_MAC=0
1653DEFAULT_wxUSE_MGL=0
1725144d 1654DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1655DEFAULT_wxUSE_MOTIF=0
1656DEFAULT_wxUSE_MSW=0
e07802fc 1657DEFAULT_wxUSE_PM=0
f79bd02d 1658DEFAULT_wxUSE_X11=0
10f2d63a 1659
ac0c4cc3 1660DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1661DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1662DEFAULT_DEFAULT_wxUSE_MAC=0
1663DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1664DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1665DEFAULT_DEFAULT_wxUSE_MOTIF=0
1666DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1667DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1668DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1669
d6a55c4b 1670PROGRAM_EXT=
3a922bb4 1671SO_SUFFIX=so
fe0895cf 1672SAMPLES_RPATH_FLAG=
0f1bc9c2 1673SAMPLES_RPATH_POSTLINK=
d6a55c4b 1674
10f2d63a
VZ
1675case "${host}" in
1676 *-hp-hpux* )
1677 USE_HPUX=1
1678 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1679 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1680 SO_SUFFIX=sl
e6cc62c6 1681 cat >>confdefs.h <<\_ACEOF
10f2d63a 1682#define __HPUX__ 1
e6cc62c6 1683_ACEOF
10f2d63a
VZ
1684
1685 ;;
1686 *-*-linux* )
1687 USE_LINUX=1
e6cc62c6 1688 cat >>confdefs.h <<\_ACEOF
10f2d63a 1689#define __LINUX__ 1
e6cc62c6 1690_ACEOF
10f2d63a
VZ
1691
1692 TMP=`uname -m`
1693 if test "x$TMP" = "xalpha"; then
1694 USE_ALPHA=1
e6cc62c6 1695 cat >>confdefs.h <<\_ACEOF
10f2d63a 1696#define __ALPHA__ 1
e6cc62c6 1697_ACEOF
fe0895cf
VS
1698
1699 fi
1700 DEFAULT_DEFAULT_wxUSE_GTK=1
1701 ;;
1702 *-*-gnu* )
1703 USE_GNU=1
e6cc62c6 1704 cat >>confdefs.h <<\_ACEOF
fe0895cf 1705#define __GNU__ 1
e6cc62c6 1706_ACEOF
fe0895cf
VS
1707
1708 TMP=`uname -m`
1709 if test "x$TMP" = "xalpha"; then
1710 USE_ALPHA=1
e6cc62c6 1711 cat >>confdefs.h <<\_ACEOF
fe0895cf 1712#define __ALPHA__ 1
e6cc62c6 1713_ACEOF
10f2d63a
VZ
1714
1715 fi
1716 DEFAULT_DEFAULT_wxUSE_GTK=1
1717 ;;
1718 *-*-irix5* | *-*-irix6* )
1719 USE_SGI=1
1720 USE_SVR4=1
e6cc62c6 1721 cat >>confdefs.h <<\_ACEOF
10f2d63a 1722#define __SGI__ 1
e6cc62c6 1723_ACEOF
10f2d63a 1724
e6cc62c6 1725 cat >>confdefs.h <<\_ACEOF
10f2d63a 1726#define __SVR4__ 1
e6cc62c6 1727_ACEOF
10f2d63a
VZ
1728
1729 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1730 ;;
1731 *-*-solaris2* )
1732 USE_SUN=1
1733 USE_SOLARIS=1
1734 USE_SVR4=1
e6cc62c6 1735 cat >>confdefs.h <<\_ACEOF
10f2d63a 1736#define __SUN__ 1
e6cc62c6 1737_ACEOF
10f2d63a 1738
e6cc62c6 1739 cat >>confdefs.h <<\_ACEOF
10f2d63a 1740#define __SOLARIS__ 1
e6cc62c6 1741_ACEOF
10f2d63a 1742
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
10f2d63a 1744#define __SVR4__ 1
e6cc62c6 1745_ACEOF
10f2d63a
VZ
1746
1747 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1748 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1749 ;;
1750 *-*-sunos4* )
1751 USE_SUN=1
1752 USE_SUNOS=1
1753 USE_BSD=1
e6cc62c6 1754 cat >>confdefs.h <<\_ACEOF
10f2d63a 1755#define __SUN__ 1
e6cc62c6 1756_ACEOF
10f2d63a 1757
e6cc62c6 1758 cat >>confdefs.h <<\_ACEOF
10f2d63a 1759#define __SUNOS__ 1
e6cc62c6 1760_ACEOF
10f2d63a 1761
e6cc62c6 1762 cat >>confdefs.h <<\_ACEOF
10f2d63a 1763#define __BSD__ 1
e6cc62c6 1764_ACEOF
10f2d63a
VZ
1765
1766 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1767 ;;
f6bcfd97 1768 *-*-freebsd*)
10f2d63a
VZ
1769 USE_BSD=1
1770 USE_FREEBSD=1
e6cc62c6 1771 cat >>confdefs.h <<\_ACEOF
10f2d63a 1772#define __FREEBSD__ 1
e6cc62c6 1773_ACEOF
10f2d63a 1774
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
10f2d63a 1776#define __BSD__ 1
e6cc62c6 1777_ACEOF
95c8801c
VS
1778
1779 DEFAULT_DEFAULT_wxUSE_GTK=1
1780 ;;
1781 *-*-openbsd*)
1782 USE_BSD=1
1783 USE_OPENBSD=1
e6cc62c6 1784 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1785#define __OPENBSD__ 1
e6cc62c6 1786_ACEOF
95c8801c 1787
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1789#define __BSD__ 1
e6cc62c6 1790_ACEOF
f6bcfd97
BP
1791
1792 DEFAULT_DEFAULT_wxUSE_GTK=1
1793 ;;
1794 *-*-netbsd*)
1795 USE_BSD=1
1796 USE_NETBSD=1
e6cc62c6 1797 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1798#define __NETBSD__ 1
e6cc62c6 1799_ACEOF
f6bcfd97 1800
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1802#define __BSD__ 1
e6cc62c6 1803_ACEOF
10f2d63a
VZ
1804
1805 DEFAULT_DEFAULT_wxUSE_GTK=1
1806 ;;
1807 *-*-osf* )
1808 USE_ALPHA=1
1809 USE_OSF=1
e6cc62c6 1810 cat >>confdefs.h <<\_ACEOF
10f2d63a 1811#define __ALPHA__ 1
e6cc62c6 1812_ACEOF
10f2d63a 1813
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
10f2d63a 1815#define __OSF__ 1
e6cc62c6 1816_ACEOF
10f2d63a
VZ
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1819 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1820 ;;
1821 *-*-dgux5* )
1822 USE_ALPHA=1
1823 USE_SVR4=1
e6cc62c6 1824 cat >>confdefs.h <<\_ACEOF
10f2d63a 1825#define __ALPHA__ 1
e6cc62c6 1826_ACEOF
10f2d63a 1827
e6cc62c6 1828 cat >>confdefs.h <<\_ACEOF
10f2d63a 1829#define __SVR4__ 1
e6cc62c6 1830_ACEOF
10f2d63a
VZ
1831
1832 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1833 ;;
1834 *-*-sysv5* )
1835 USE_SYSV=1
1836 USE_SVR4=1
e6cc62c6 1837 cat >>confdefs.h <<\_ACEOF
10f2d63a 1838#define __SYSV__ 1
e6cc62c6 1839_ACEOF
10f2d63a 1840
e6cc62c6 1841 cat >>confdefs.h <<\_ACEOF
10f2d63a 1842#define __SVR4__ 1
e6cc62c6 1843_ACEOF
10f2d63a
VZ
1844
1845 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1846 ;;
1847 *-*-aix* )
1848 USE_AIX=1
1849 USE_SYSV=1
1850 USE_SVR4=1
2b5f62a0 1851 SO_SUFFIX=a
e6cc62c6 1852 cat >>confdefs.h <<\_ACEOF
10f2d63a 1853#define __AIX__ 1
e6cc62c6 1854_ACEOF
10f2d63a 1855
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
10f2d63a 1857#define __SYSV__ 1
e6cc62c6 1858_ACEOF
10f2d63a 1859
e6cc62c6 1860 cat >>confdefs.h <<\_ACEOF
10f2d63a 1861#define __SVR4__ 1
e6cc62c6 1862_ACEOF
10f2d63a
VZ
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 ;;
1866
89e3b3e4
VZ
1867 *-*-*UnixWare*)
1868 USE_SYSV=1
1869 USE_SVR4=1
1870 USE_UNIXWARE=1
e6cc62c6 1871 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1872#define __UNIXWARE__ 1
e6cc62c6 1873_ACEOF
89e3b3e4
VZ
1874
1875 ;;
1876
1c8183e2 1877 *-*-cygwin* | *-*-mingw32* )
17234b26 1878 SO_SUFFIX=dll
cf27ef00 1879 PROGRAM_EXT=".exe"
7b7a7637 1880 RESCOMP=windres
10f2d63a
VZ
1881 DEFAULT_DEFAULT_wxUSE_MSW=1
1882 ;;
1883
f9bc1684
VS
1884 *-pc-msdosdjgpp )
1885 USE_UNIX=0
1886 USE_DOS=1
e6cc62c6 1887 cat >>confdefs.h <<\_ACEOF
f9bc1684 1888#define __DOS__ 1
e6cc62c6 1889_ACEOF
f9bc1684
VS
1890
1891 PROGRAM_EXT=".exe"
1892 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1893 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1894 ;;
1895
6fa882bd 1896 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1897 cat >>confdefs.h <<\_ACEOF
10f2d63a 1898#define __EMX__ 1
e6cc62c6 1899_ACEOF
10f2d63a 1900
73d617c9 1901 USE_OS2=1
7015ef3a
VZ
1902 cat >>confdefs.h <<\_ACEOF
1903#define __OS2__ 1
1904_ACEOF
1905
cf27ef00 1906 PROGRAM_EXT=".exe"
e07802fc 1907 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1908 CXX=gcc
73d617c9 1909 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1910 ac_executable_extensions=".exe"
1911 export ac_executable_extensions
1912 ac_save_IFS="$IFS"
e46d2a18 1913 IFS='\\'
d5fc095c
VS
1914 ac_TEMP_PATH=
1915 for ac_dir in $PATH; do
1916 IFS=$ac_save_IFS
1917 if test -z "$ac_TEMP_PATH"; then
1918 ac_TEMP_PATH="$ac_dir"
1919 else
1920 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1921 fi
1922 done
1923 export PATH="$ac_TEMP_PATH"
1924 unset ac_TEMP_PATH
10f2d63a
VZ
1925 ;;
1926
d08b457b
GD
1927 powerpc-*-darwin* )
1928 USE_BSD=1
f11bdd03 1929 USE_DARWIN=1
3a922bb4 1930 SO_SUFFIX=dylib
e6cc62c6 1931 cat >>confdefs.h <<\_ACEOF
f11bdd03 1932#define __BSD__ 1
e6cc62c6 1933_ACEOF
b4085ce6 1934
e6cc62c6 1935 cat >>confdefs.h <<\_ACEOF
f11bdd03 1936#define __DARWIN__ 1
e6cc62c6 1937_ACEOF
d08b457b 1938
e6cc62c6 1939 cat >>confdefs.h <<\_ACEOF
d08b457b 1940#define __POWERPC__ 1
e6cc62c6 1941_ACEOF
82d43113 1942
e6cc62c6 1943 cat >>confdefs.h <<\_ACEOF
82d43113 1944#define TARGET_CARBON 1
e6cc62c6 1945_ACEOF
b4085ce6
GD
1946
1947 DEFAULT_DEFAULT_wxUSE_MAC=1
1948 ;;
1949
b12915c1
VZ
1950 *-*-beos* )
1951 USE_BEOS=1
e6cc62c6 1952 cat >>confdefs.h <<\_ACEOF
b12915c1 1953#define __BEOS__ 1
e6cc62c6 1954_ACEOF
b12915c1
VZ
1955
1956 ;;
1957
10f2d63a 1958 *)
e6cc62c6
VS
1959 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1960echo "$as_me: error: unknown system type ${host}." >&2;}
1961 { (exit 1); exit 1; }; }
10f2d63a
VZ
1962esac
1963
8284b0c5
MB
1964
1965
1966
1967 wx_arg_cache_file="configarg.cache"
1968 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1969 rm -f ${wx_arg_cache_file}.tmp
1970 touch ${wx_arg_cache_file}.tmp
1971 touch ${wx_arg_cache_file}
e6cc62c6 1972
10f2d63a
VZ
1973
1974DEBUG_CONFIGURE=0
1975if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1976 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1977 DEFAULT_wxUSE_STL=no
1e6feb95 1978
d8356fa3
VZ
1979 DEFAULT_wxUSE_NANOX=no
1980
10f2d63a
VZ
1981 DEFAULT_wxUSE_THREADS=yes
1982
1983 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1984 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1985 DEFAULT_wxUSE_PROFILE=no
1986 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1987 DEFAULT_wxUSE_NO_RTTI=no
1988 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1989 DEFAULT_wxUSE_PERMISSIVE=no
1990 DEFAULT_wxUSE_DEBUG_FLAG=yes
1991 DEFAULT_wxUSE_DEBUG_INFO=yes
1992 DEFAULT_wxUSE_DEBUG_GDB=yes
1993 DEFAULT_wxUSE_MEM_TRACING=no
1994 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1995 DEFAULT_wxUSE_DMALLOC=no
1996 DEFAULT_wxUSE_APPLE_IEEE=no
1997
e46d2a18 1998 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1999 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2000 DEFAULT_wxUSE_LOGWINDOW=no
2001 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2002 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2003
2004 DEFAULT_wxUSE_GUI=yes
1e6feb95 2005 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2006
3e44f09d 2007 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2008 DEFAULT_wxUSE_XML=no
2009 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2010 DEFAULT_wxUSE_ZLIB=no
2011 DEFAULT_wxUSE_LIBPNG=no
2012 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2013 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2014 DEFAULT_wxUSE_LIBXPM=no
f93ca9fd
VS
2015 DEFAULT_wxUSE_LIBMSPACK=no
2016 DEFAULT_wxUSE_LIBSDL=no
10f2d63a 2017 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2018 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2019
eb4efbdc 2020 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2021 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2022 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2023 DEFAULT_wxUSE_CMDLINE_PARSER=no
2024 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2025 DEFAULT_wxUSE_TIMER=no
2026 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2027 DEFAULT_wxUSE_FILE=no
1e6feb95 2028 DEFAULT_wxUSE_FFILE=no
a3a584a7 2029 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2030 DEFAULT_wxUSE_TEXTFILE=no
002ed9af 2031 DEFAULT_wxUSE_SOUND=no
10f2d63a
VZ
2032 DEFAULT_wxUSE_INTL=no
2033 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2034 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2035 DEFAULT_wxUSE_STREAMS=no
2036 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2037 DEFAULT_wxUSE_OLE=no
2038 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2039 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2040 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2041 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2042 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2043 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2044 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2045
2046 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2047 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2048 DEFAULT_wxUSE_POSTSCRIPT=no
2049
10f2d63a
VZ
2050 DEFAULT_wxUSE_CLIPBOARD=no
2051 DEFAULT_wxUSE_TOOLTIPS=no
2052 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2053 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_SPLINES=no
2055
2056 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2057 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2058 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2059
10f2d63a
VZ
2060 DEFAULT_wxUSE_RESOURCES=no
2061 DEFAULT_wxUSE_CONSTRAINTS=no
2062 DEFAULT_wxUSE_IPC=no
2063 DEFAULT_wxUSE_HELP=no
29fd3c0c 2064 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2065 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2066 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2067 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2068 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2069 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2070 DEFAULT_wxUSE_PROTOCOL=no
2071 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2072 DEFAULT_wxUSE_PROTOCOL_FTP=no
2073 DEFAULT_wxUSE_PROTOCOL_FILE=no
2074 DEFAULT_wxUSE_URL=no
3bd8fb5f 2075
10f2d63a 2076 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2077 DEFAULT_wxUSE_CHOICEDLG=no
2078 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2079 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2080 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2081 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2082 DEFAULT_wxUSE_FONTDLG=no
2083 DEFAULT_wxUSE_MSGDLG=no
2084 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2085 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2086 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2087 DEFAULT_wxUSE_STARTUP_TIPS=no
2088 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2089 DEFAULT_wxUSE_WIZARDDLG=no
2090
1e6feb95 2091 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2092 DEFAULT_wxUSE_MINIFRAME=no
2093 DEFAULT_wxUSE_HTML=no
24528b0c 2094 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2095 DEFAULT_wxUSE_FS_INET=no
2096 DEFAULT_wxUSE_FS_ZIP=no
2097 DEFAULT_wxUSE_BUSYINFO=no
2098 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2099 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2100 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2101
2102 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2103 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2104 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2105 DEFAULT_wxUSE_CALCTRL=no
2106 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_CHECKBOX=no
2108 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2109 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2110 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2111 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2112 DEFAULT_wxUSE_GAUGE=no
2113 DEFAULT_wxUSE_GRID=no
10f2d63a 2114 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2115 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2116 DEFAULT_wxUSE_LISTBOX=no
2117 DEFAULT_wxUSE_LISTCTRL=no
2118 DEFAULT_wxUSE_NOTEBOOK=no
2119 DEFAULT_wxUSE_RADIOBOX=no
2120 DEFAULT_wxUSE_RADIOBTN=no
2121 DEFAULT_wxUSE_SASH=no
2122 DEFAULT_wxUSE_SCROLLBAR=no
2123 DEFAULT_wxUSE_SLIDER=no
2124 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2125 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2126 DEFAULT_wxUSE_SPLITTER=no
2127 DEFAULT_wxUSE_STATBMP=no
2128 DEFAULT_wxUSE_STATBOX=no
2129 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2130 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2131 DEFAULT_wxUSE_STATUSBAR=yes
2132 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2133 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2134 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2135 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2136 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2137 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2138 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2139 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2140 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2141
2142 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2143 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2144 DEFAULT_wxUSE_WCSRTOMBS=no
2145
edae8572 2146 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2147 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2148 DEFAULT_wxUSE_GIF=no
2149 DEFAULT_wxUSE_PCX=no
2150 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2151 DEFAULT_wxUSE_IFF=no
0046ff7c 2152 DEFAULT_wxUSE_XPM=no
658974ae 2153 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2154 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2155
e9e0dc15 2156 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2157 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2158 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2159else
1e6feb95 2160 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2161 DEFAULT_wxUSE_STL=no
1e6feb95 2162
d8356fa3
VZ
2163 DEFAULT_wxUSE_NANOX=no
2164
10f2d63a
VZ
2165 DEFAULT_wxUSE_THREADS=yes
2166
2167 DEFAULT_wxUSE_SHARED=yes
2168 DEFAULT_wxUSE_OPTIMISE=yes
2169 DEFAULT_wxUSE_PROFILE=no
2170 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2171 DEFAULT_wxUSE_NO_RTTI=no
2172 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2173 DEFAULT_wxUSE_PERMISSIVE=no
2174 DEFAULT_wxUSE_DEBUG_FLAG=no
2175 DEFAULT_wxUSE_DEBUG_INFO=no
2176 DEFAULT_wxUSE_DEBUG_GDB=no
2177 DEFAULT_wxUSE_MEM_TRACING=no
2178 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2179 DEFAULT_wxUSE_DMALLOC=no
2180 DEFAULT_wxUSE_APPLE_IEEE=yes
2181
e46d2a18 2182 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2183 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2184 DEFAULT_wxUSE_LOGWINDOW=yes
2185 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2186 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2187
2188 DEFAULT_wxUSE_GUI=yes
2189
aa2d9ecc 2190 DEFAULT_wxUSE_REGEX=yes
672abd7a 2191 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2192 DEFAULT_wxUSE_EXPAT=yes
2193 DEFAULT_wxUSE_ZLIB=yes
2194 DEFAULT_wxUSE_LIBPNG=yes
2195 DEFAULT_wxUSE_LIBJPEG=yes
2196 DEFAULT_wxUSE_LIBTIFF=yes
2197 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2198 DEFAULT_wxUSE_LIBMSPACK=yes
f93ca9fd 2199 DEFAULT_wxUSE_LIBSDL=no
16b52fa1 2200 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2201 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2202
eb4efbdc 2203 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2204 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2205 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2206 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2207 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2208 DEFAULT_wxUSE_TIMER=yes
2209 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2210 DEFAULT_wxUSE_FILE=yes
1e6feb95 2211 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2212 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2213 DEFAULT_wxUSE_TEXTFILE=yes
002ed9af 2214 DEFAULT_wxUSE_SOUND=yes
10f2d63a
VZ
2215 DEFAULT_wxUSE_INTL=yes
2216 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2217 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2218 DEFAULT_wxUSE_STREAMS=yes
2219 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2220 DEFAULT_wxUSE_OLE=yes
2221 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2222 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2223 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2224 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2225 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2226 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2227 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2228
2229 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2230 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2231 DEFAULT_wxUSE_POSTSCRIPT=yes
2232
10f2d63a
VZ
2233 DEFAULT_wxUSE_CLIPBOARD=yes
2234 DEFAULT_wxUSE_TOOLTIPS=yes
2235 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2236 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2237 DEFAULT_wxUSE_SPLINES=yes
2238
2239 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2240 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2241 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2242
2b5f62a0 2243 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2244 DEFAULT_wxUSE_CONSTRAINTS=yes
2245 DEFAULT_wxUSE_IPC=yes
2246 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2247 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2248 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2249 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2250 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2251 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2252 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2253 DEFAULT_wxUSE_PROTOCOL=yes
2254 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2255 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2256 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2257 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2258
2259 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2260 DEFAULT_wxUSE_CHOICEDLG=yes
2261 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2262 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2263 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2264 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2265 DEFAULT_wxUSE_FONTDLG=yes
2266 DEFAULT_wxUSE_MSGDLG=yes
2267 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2268 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2269 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2270 DEFAULT_wxUSE_STARTUP_TIPS=yes
2271 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2272 DEFAULT_wxUSE_WIZARDDLG=yes
2273
1e6feb95 2274 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2275 DEFAULT_wxUSE_MINIFRAME=yes
2276 DEFAULT_wxUSE_HTML=yes
24528b0c 2277 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2278 DEFAULT_wxUSE_FS_INET=yes
2279 DEFAULT_wxUSE_FS_ZIP=yes
2280 DEFAULT_wxUSE_BUSYINFO=yes
2281 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2282 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2283 DEFAULT_wxUSE_VALIDATORS=yes
2284
2285 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2286 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2287 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2288 DEFAULT_wxUSE_CALCTRL=yes
2289 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2290 DEFAULT_wxUSE_CHECKBOX=yes
2291 DEFAULT_wxUSE_CHECKLST=yes
2292 DEFAULT_wxUSE_CHOICE=yes
2293 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2294 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2295 DEFAULT_wxUSE_GAUGE=yes
2296 DEFAULT_wxUSE_GRID=yes
10f2d63a 2297 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2298 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_LISTBOX=yes
2300 DEFAULT_wxUSE_LISTCTRL=yes
2301 DEFAULT_wxUSE_NOTEBOOK=yes
2302 DEFAULT_wxUSE_RADIOBOX=yes
2303 DEFAULT_wxUSE_RADIOBTN=yes
2304 DEFAULT_wxUSE_SASH=yes
2305 DEFAULT_wxUSE_SCROLLBAR=yes
2306 DEFAULT_wxUSE_SLIDER=yes
2307 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2308 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2309 DEFAULT_wxUSE_SPLITTER=yes
2310 DEFAULT_wxUSE_STATBMP=yes
2311 DEFAULT_wxUSE_STATBOX=yes
2312 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2313 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2314 DEFAULT_wxUSE_STATUSBAR=yes
2315 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2316 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2317 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2318 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2319 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2320 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2321 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2322 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2323 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2324
2325 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2326 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2327 DEFAULT_wxUSE_WCSRTOMBS=no
2328
edae8572 2329 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2330 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2331 DEFAULT_wxUSE_GIF=yes
2332 DEFAULT_wxUSE_PCX=yes
cc0e8480 2333 DEFAULT_wxUSE_IFF=no
10f2d63a 2334 DEFAULT_wxUSE_PNM=yes
0046ff7c 2335 DEFAULT_wxUSE_XPM=yes
658974ae 2336 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2337 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2338
e9e0dc15 2339 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2340 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2341 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2342fi
2343
8284b0c5
MB
2344
2345
10f2d63a 2346for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2347 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2348 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2349 has_toolkit_in_cache=1
2350 eval "DEFAULT_$LINE"
2351 eval "CACHE_$toolkit=1"
2352 fi
2353done
2354
8284b0c5
MB
2355
2356
5005acfe 2357 enablestring=
e6cc62c6
VS
2358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2359echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2360 no_cache=0
2361 # Check whether --enable-gui or --disable-gui was given.
2362if test "${enable_gui+set}" = set; then
2363 enableval="$enable_gui"
e6cc62c6 2364
10f2d63a
VZ
2365 if test "$enableval" = yes; then
2366 ac_cv_use_gui='wxUSE_GUI=yes'
2367 else
2368 ac_cv_use_gui='wxUSE_GUI=no'
2369 fi
e6cc62c6 2370
10f2d63a 2371else
e6cc62c6 2372
10f2d63a
VZ
2373 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2374 if test "x$LINE" != x ; then
2375 eval "DEFAULT_$LINE"
2376 else
2377 no_cache=1
2378 fi
2379
2380 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2381
e6cc62c6 2382fi;
10f2d63a
VZ
2383
2384 eval "$ac_cv_use_gui"
2385 if test "$no_cache" != 1; then
2386 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2387 fi
2388
2389 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2390 echo "$as_me:$LINENO: result: yes" >&5
2391echo "${ECHO_T}yes" >&6
10f2d63a 2392 else
e6cc62c6
VS
2393 echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6
10f2d63a 2395 fi
e6cc62c6 2396
10f2d63a 2397
9747f85d
VS
2398 enablestring=
2399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2400echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2401 no_cache=0
2402 # Check whether --enable-monolithic or --disable-monolithic was given.
2403if test "${enable_monolithic+set}" = set; then
2404 enableval="$enable_monolithic"
2405
2406 if test "$enableval" = yes; then
2407 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2408 else
2409 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2410 fi
2411
2412else
2413
2414 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2422
2423fi;
2424
2425 eval "$ac_cv_use_monolithic"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_MONOLITHIC" = yes; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
2436 fi
2437
2438
f93ca9fd
VS
2439 enablestring=
2440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2441echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2442 no_cache=0
2443 # Check whether --enable-plugins or --disable-plugins was given.
2444if test "${enable_plugins+set}" = set; then
2445 enableval="$enable_plugins"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2449 else
2450 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2463
2464fi;
2465
2466 eval "$ac_cv_use_plugins"
2467 if test "$no_cache" != 1; then
2468 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2469 fi
2470
2471 if test "$wxUSE_PLUGINS" = yes; then
2472 echo "$as_me:$LINENO: result: yes" >&5
2473echo "${ECHO_T}yes" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477 fi
2478
2479
b12915c1 2480if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2481
8284b0c5 2482
5005acfe 2483 enablestring=
e6cc62c6
VS
2484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2485echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2486 no_cache=0
2487 # Check whether --enable-universal or --disable-universal was given.
2488if test "${enable_universal+set}" = set; then
2489 enableval="$enable_universal"
e6cc62c6 2490
1e6feb95
VZ
2491 if test "$enableval" = yes; then
2492 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2493 else
2494 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2495 fi
e6cc62c6 2496
1e6feb95 2497else
e6cc62c6 2498
1e6feb95
VZ
2499 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2507
e6cc62c6 2508fi;
1e6feb95
VZ
2509
2510 eval "$ac_cv_use_universal"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2516 echo "$as_me:$LINENO: result: yes" >&5
2517echo "${ECHO_T}yes" >&6
1e6feb95 2518 else
e6cc62c6
VS
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
1e6feb95 2521 fi
e6cc62c6
VS
2522
2523
10f2d63a
VZ
2524# Check whether --with-gtk or --without-gtk was given.
2525if test "${with_gtk+set}" = set; then
2526 withval="$with_gtk"
2527 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2528fi;
10f2d63a
VZ
2529
2530# Check whether --with-motif or --without-motif was given.
2531if test "${with_motif+set}" = set; then
2532 withval="$with_motif"
2533 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2534fi;
10f2d63a 2535
b4085ce6
GD
2536# Check whether --with-mac or --without-mac was given.
2537if test "${with_mac+set}" = set; then
2538 withval="$with_mac"
2539 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2540fi;
b4085ce6 2541
ac0c4cc3
DE
2542# Check whether --with-cocoa or --without-cocoa was given.
2543if test "${with_cocoa+set}" = set; then
2544 withval="$with_cocoa"
2545 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2546fi;
ac0c4cc3 2547
10f2d63a
VZ
2548# Check whether --with-wine or --without-wine was given.
2549if test "${with_wine+set}" = set; then
2550 withval="$with_wine"
89e6bf6d 2551 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2552fi;
10f2d63a 2553
77e13408
RL
2554# Check whether --with-msw or --without-msw was given.
2555if test "${with_msw+set}" = set; then
2556 withval="$with_msw"
b4efce5e 2557 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2558fi;
10f2d63a 2559
e07802fc
VZ
2560# Check whether --with-pm or --without-pm was given.
2561if test "${with_pm+set}" = set; then
2562 withval="$with_pm"
2563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2564fi;
698dcdb6 2565
1e6feb95
VZ
2566# Check whether --with-mgl or --without-mgl was given.
2567if test "${with_mgl+set}" = set; then
2568 withval="$with_mgl"
6c657b52 2569 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2570fi;
1e6feb95 2571
1725144d
RR
2572# Check whether --with-microwin or --without-microwin was given.
2573if test "${with_microwin+set}" = set; then
2574 withval="$with_microwin"
2575 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2576fi;
1725144d 2577
f79bd02d
JS
2578# Check whether --with-x11 or --without-x11 was given.
2579if test "${with_x11+set}" = set; then
2580 withval="$with_x11"
3c011993 2581 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2582fi;
a0b9e27f 2583
5005acfe 2584 enablestring=
e6cc62c6
VS
2585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2586echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2587 no_cache=0
ba875e66
VZ
2588 # Check whether --enable-nanox or --disable-nanox was given.
2589if test "${enable_nanox+set}" = set; then
2590 enableval="$enable_nanox"
e6cc62c6 2591
d8356fa3 2592 if test "$enableval" = yes; then
ba875e66 2593 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2594 else
ba875e66 2595 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2596 fi
e6cc62c6 2597
d8356fa3 2598else
e6cc62c6 2599
d8356fa3
VZ
2600 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
ba875e66 2607 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2608
e6cc62c6 2609fi;
d8356fa3 2610
ba875e66 2611 eval "$ac_cv_use_nanox"
d8356fa3 2612 if test "$no_cache" != 1; then
ba875e66 2613 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2614 fi
2615
2616 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
d8356fa3 2619 else
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6
d8356fa3 2622 fi
e6cc62c6 2623
8284b0c5 2624
d74f4b5a 2625
5005acfe 2626 enablestring=
e6cc62c6
VS
2627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2628echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2629 no_cache=0
2630 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2631if test "${enable_gtk2+set}" = set; then
2632 enableval="$enable_gtk2"
e6cc62c6 2633
d74f4b5a
VZ
2634 if test "$enableval" = yes; then
2635 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2636 else
2637 ac_cv_use_gtk2='wxUSE_GTK2=no'
2638 fi
e6cc62c6 2639
10f2d63a 2640else
e6cc62c6 2641
d74f4b5a
VZ
2642 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2650
e6cc62c6 2651fi;
328a083c 2652
d74f4b5a
VZ
2653 eval "$ac_cv_use_gtk2"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2659 echo "$as_me:$LINENO: result: yes" >&5
2660echo "${ECHO_T}yes" >&6
d74f4b5a 2661 else
e6cc62c6
VS
2662 echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
d74f4b5a 2664 fi
d74f4b5a 2665
5c6fa7d2 2666
e6cc62c6
VS
2667
2668 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2669echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2670 no_cache=0
e6cc62c6
VS
2671
2672# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2673if test "${with_libpng+set}" = set; then
2674 withval="$with_libpng"
e6cc62c6 2675
10f2d63a 2676 if test "$withval" = yes; then
b12915c1 2677 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2678 elif test "$withval" = no; then
b12915c1 2679 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2680 elif test "$withval" = sys; then
2681 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2682 elif test "$withval" = builtin; then
2683 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2684 else
e6cc62c6
VS
2685 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2686echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2687 { (exit 1); exit 1; }; }
10f2d63a 2688 fi
e6cc62c6 2689
10f2d63a 2690else
e6cc62c6 2691
b12915c1 2692 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2693 if test "x$LINE" != x ; then
2694 eval "DEFAULT_$LINE"
2695 else
2696 no_cache=1
2697 fi
2698
b12915c1 2699 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2700
e6cc62c6 2701fi;
10f2d63a 2702
b12915c1 2703 eval "$ac_cv_use_libpng"
10f2d63a 2704 if test "$no_cache" != 1; then
b12915c1 2705 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2706 fi
2707
b12915c1 2708 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2709 echo "$as_me:$LINENO: result: yes" >&5
2710echo "${ECHO_T}yes" >&6
422107f9 2711 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2712 echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
422107f9 2714 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2715 echo "$as_me:$LINENO: result: system version" >&5
2716echo "${ECHO_T}system version" >&6
4f14bcd8 2717 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2718 echo "$as_me:$LINENO: result: builtin version" >&5
2719echo "${ECHO_T}builtin version" >&6
422107f9 2720 else
e6cc62c6
VS
2721 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2722echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2723 { (exit 1); exit 1; }; }
10f2d63a 2724 fi
10f2d63a 2725
e6cc62c6
VS
2726
2727 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2728echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2729 no_cache=0
e6cc62c6
VS
2730
2731# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2732if test "${with_libjpeg+set}" = set; then
2733 withval="$with_libjpeg"
e6cc62c6 2734
10f2d63a 2735 if test "$withval" = yes; then
b12915c1 2736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2737 elif test "$withval" = no; then
b12915c1 2738 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2739 elif test "$withval" = sys; then
2740 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2741 elif test "$withval" = builtin; then
2742 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2743 else
e6cc62c6
VS
2744 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2745echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2746 { (exit 1); exit 1; }; }
10f2d63a 2747 fi
e6cc62c6 2748
10f2d63a 2749else
e6cc62c6 2750
b12915c1 2751 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
b12915c1 2758 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2759
e6cc62c6 2760fi;
10f2d63a 2761
b12915c1 2762 eval "$ac_cv_use_libjpeg"
10f2d63a 2763 if test "$no_cache" != 1; then
b12915c1 2764 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2765 fi
2766
b12915c1 2767 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
422107f9 2770 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
422107f9 2773 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2774 echo "$as_me:$LINENO: result: system version" >&5
2775echo "${ECHO_T}system version" >&6
4f14bcd8 2776 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2777 echo "$as_me:$LINENO: result: builtin version" >&5
2778echo "${ECHO_T}builtin version" >&6
422107f9 2779 else
e6cc62c6
VS
2780 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2781echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2782 { (exit 1); exit 1; }; }
10f2d63a 2783 fi
10f2d63a 2784
e6cc62c6
VS
2785
2786 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2787echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2788 no_cache=0
e6cc62c6
VS
2789
2790# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2791if test "${with_libtiff+set}" = set; then
2792 withval="$with_libtiff"
e6cc62c6 2793
10f2d63a 2794 if test "$withval" = yes; then
b12915c1 2795 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2796 elif test "$withval" = no; then
b12915c1 2797 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2798 elif test "$withval" = sys; then
2799 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2800 elif test "$withval" = builtin; then
2801 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2802 else
e6cc62c6
VS
2803 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2804echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2805 { (exit 1); exit 1; }; }
10f2d63a 2806 fi
e6cc62c6 2807
10f2d63a 2808else
e6cc62c6 2809
b12915c1 2810 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
b12915c1 2817 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2818
e6cc62c6 2819fi;
10f2d63a 2820
b12915c1 2821 eval "$ac_cv_use_libtiff"
10f2d63a 2822 if test "$no_cache" != 1; then
b12915c1 2823 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2824 fi
2825
b12915c1 2826 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2827 echo "$as_me:$LINENO: result: yes" >&5
2828echo "${ECHO_T}yes" >&6
0dcf9893 2829 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2830 echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
0dcf9893 2832 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2833 echo "$as_me:$LINENO: result: system version" >&5
2834echo "${ECHO_T}system version" >&6
4f14bcd8 2835 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2836 echo "$as_me:$LINENO: result: builtin version" >&5
2837echo "${ECHO_T}builtin version" >&6
0dcf9893 2838 else
e6cc62c6
VS
2839 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2840echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2841 { (exit 1); exit 1; }; }
10f2d63a 2842 fi
10f2d63a 2843
e6cc62c6 2844
89fe663f
VZ
2845 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2846echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2847 no_cache=0
2848
2849# Check whether --with-libxpm or --without-libxpm was given.
2850if test "${with_libxpm+set}" = set; then
2851 withval="$with_libxpm"
2852
2853 if test "$withval" = yes; then
2854 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2855 elif test "$withval" = no; then
2856 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2857 elif test "$withval" = sys; then
2858 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2859 elif test "$withval" = builtin; then
2860 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867else
2868
2869 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2877
2878fi;
2879
2880 eval "$ac_cv_use_libxpm"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_LIBXPM" = yes; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
2888 elif test "$wxUSE_LIBXPM" = no; then
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 elif test "$wxUSE_LIBXPM" = sys; then
2892 echo "$as_me:$LINENO: result: system version" >&5
2893echo "${ECHO_T}system version" >&6
2894 elif test "$wxUSE_LIBXPM" = builtin; then
2895 echo "$as_me:$LINENO: result: builtin version" >&5
2896echo "${ECHO_T}builtin version" >&6
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2899echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903
3527f29c
VS
2904 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2905echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2906 no_cache=0
2907
2908# Check whether --with-libmspack or --without-libmspack was given.
2909if test "${with_libmspack+set}" = set; then
2910 withval="$with_libmspack"
2911
2912 if test "$withval" = yes; then
2913 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2914 else
2915 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2916 fi
2917
2918else
2919
2920 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2921 if test "x$LINE" != x ; then
2922 eval "DEFAULT_$LINE"
2923 else
2924 no_cache=1
2925 fi
2926
2927 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2928
2929fi;
2930
2931 eval "$ac_cv_use_libmspack"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_LIBMSPACK" = yes; then
2937 echo "$as_me:$LINENO: result: yes" >&5
2938echo "${ECHO_T}yes" >&6
2939 else
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942 fi
2943
2944
f93ca9fd
VS
2945 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2946echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2947 no_cache=0
2948
2949# Check whether --with-sdl or --without-sdl was given.
2950if test "${with_sdl+set}" = set; then
2951 withval="$with_sdl"
2952
2953 if test "$withval" = yes; then
2954 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2955 else
2956 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2957 fi
2958
2959else
2960
2961 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
2969
2970fi;
2971
2972 eval "$ac_cv_use_sdl"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_LIBSDL" = yes; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983 fi
2984
2985
e6cc62c6
VS
2986 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2987echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2988 no_cache=0
e6cc62c6
VS
2989
2990# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2991if test "${with_opengl+set}" = set; then
2992 withval="$with_opengl"
e6cc62c6 2993
10f2d63a 2994 if test "$withval" = yes; then
b12915c1 2995 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2996 else
b12915c1 2997 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2998 fi
e6cc62c6 2999
10f2d63a 3000else
e6cc62c6 3001
b12915c1 3002 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
b12915c1 3009 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 3010
e6cc62c6 3011fi;
10f2d63a 3012
b12915c1 3013 eval "$ac_cv_use_opengl"
10f2d63a 3014 if test "$no_cache" != 1; then
b12915c1 3015 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3016 fi
3017
b12915c1 3018 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
10f2d63a 3021 else
e6cc62c6
VS
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
10f2d63a 3024 fi
e6cc62c6 3025
10f2d63a 3026
b12915c1
VZ
3027fi
3028
5c6fa7d2 3029
e6cc62c6
VS
3030 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3031echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 3032 no_cache=0
e6cc62c6
VS
3033
3034# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
3035if test "${with_dmalloc+set}" = set; then
3036 withval="$with_dmalloc"
e6cc62c6 3037
c7a2bf27 3038 if test "$withval" = yes; then
b12915c1 3039 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 3040 else
b12915c1 3041 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 3042 fi
e6cc62c6 3043
c7a2bf27 3044else
e6cc62c6 3045
b12915c1 3046 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
b12915c1 3053 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 3054
e6cc62c6 3055fi;
c7a2bf27 3056
b12915c1 3057 eval "$ac_cv_use_dmalloc"
c7a2bf27 3058 if test "$no_cache" != 1; then
b12915c1 3059 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3060 fi
3061
b12915c1 3062 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3063 echo "$as_me:$LINENO: result: yes" >&5
3064echo "${ECHO_T}yes" >&6
c7a2bf27 3065 else
e6cc62c6
VS
3066 echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
c7a2bf27 3068 fi
c7a2bf27 3069
e6cc62c6
VS
3070
3071 echo "$as_me:$LINENO: checking for --with-regex" >&5
3072echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3073 no_cache=0
e6cc62c6
VS
3074
3075# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3076if test "${with_regex+set}" = set; then
3077 withval="$with_regex"
e6cc62c6 3078
3e44f09d
VZ
3079 if test "$withval" = yes; then
3080 ac_cv_use_regex='wxUSE_REGEX=yes'
3081 elif test "$withval" = no; then
3082 ac_cv_use_regex='wxUSE_REGEX=no'
3083 elif test "$withval" = sys; then
3084 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3087 else
e6cc62c6
VS
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3e44f09d 3091 fi
e6cc62c6 3092
3e44f09d 3093else
e6cc62c6 3094
3e44f09d
VZ
3095 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3103
e6cc62c6 3104fi;
3e44f09d
VZ
3105
3106 eval "$ac_cv_use_regex"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3e44f09d 3114 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3e44f09d 3117 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: system version" >&5
3119echo "${ECHO_T}system version" >&6
4f14bcd8 3120 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122echo "${ECHO_T}builtin version" >&6
3e44f09d 3123 else
e6cc62c6
VS
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3125echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
3e44f09d 3127 fi
3e44f09d 3128
e6cc62c6
VS
3129
3130 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3131echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3132 no_cache=0
e6cc62c6
VS
3133
3134# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3135if test "${with_zlib+set}" = set; then
3136 withval="$with_zlib"
e6cc62c6 3137
10f2d63a 3138 if test "$withval" = yes; then
b12915c1 3139 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3140 elif test "$withval" = no; then
b12915c1 3141 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3142 elif test "$withval" = sys; then
3143 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3146 else
e6cc62c6
VS
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
10f2d63a 3150 fi
e6cc62c6 3151
10f2d63a 3152else
e6cc62c6 3153
b12915c1 3154 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
b12915c1 3161 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3162
e6cc62c6 3163fi;
10f2d63a 3164
b12915c1 3165 eval "$ac_cv_use_zlib"
10f2d63a 3166 if test "$no_cache" != 1; then
b12915c1 3167 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3168 fi
3169
b12915c1 3170 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
422107f9 3173 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
422107f9 3176 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3177 echo "$as_me:$LINENO: result: system version" >&5
3178echo "${ECHO_T}system version" >&6
4f14bcd8 3179 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181echo "${ECHO_T}builtin version" >&6
422107f9 3182 else
e6cc62c6
VS
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3184echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
10f2d63a 3186 fi
10f2d63a 3187
e6cc62c6
VS
3188
3189 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3190echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3191 no_cache=0
e6cc62c6
VS
3192
3193# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3194if test "${with_odbc+set}" = set; then
3195 withval="$with_odbc"
e6cc62c6 3196
10f2d63a
VZ
3197 if test "$withval" = yes; then
3198 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3199 elif test "$withval" = no; then
10f2d63a 3200 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3201 elif test "$withval" = sys; then
3202 ac_cv_use_odbc='wxUSE_ODBC=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3205 else
e6cc62c6
VS
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
10f2d63a 3209 fi
e6cc62c6 3210
10f2d63a 3211else
e6cc62c6 3212
10f2d63a
VZ
3213 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3221
e6cc62c6 3222fi;
10f2d63a
VZ
3223
3224 eval "$ac_cv_use_odbc"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3230 echo "$as_me:$LINENO: result: yes" >&5
3231echo "${ECHO_T}yes" >&6
8647bec6 3232 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
8647bec6 3235 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3236 echo "$as_me:$LINENO: result: system version" >&5
3237echo "${ECHO_T}system version" >&6
8647bec6 3238 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240echo "${ECHO_T}builtin version" >&6
8647bec6 3241 else
e6cc62c6
VS
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3243echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
10f2d63a 3245 fi
e6cc62c6 3246
52127426 3247
672abd7a
VS
3248 echo "$as_me:$LINENO: checking for --with-expat" >&5
3249echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3250 no_cache=0
3251
3252# Check whether --with-expat or --without-expat was given.
3253if test "${with_expat+set}" = set; then
3254 withval="$with_expat"
3255
3256 if test "$withval" = yes; then
3257 ac_cv_use_expat='wxUSE_EXPAT=yes'
3258 elif test "$withval" = no; then
3259 ac_cv_use_expat='wxUSE_EXPAT=no'
3260 elif test "$withval" = sys; then
3261 ac_cv_use_expat='wxUSE_EXPAT=sys'
3262 elif test "$withval" = builtin; then
3263 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3266echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270else
3271
3272 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3273 if test "x$LINE" != x ; then
3274 eval "DEFAULT_$LINE"
3275 else
3276 no_cache=1
3277 fi
3278
3279 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3280
3281fi;
3282
3283 eval "$ac_cv_use_expat"
3284 if test "$no_cache" != 1; then
3285 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3286 fi
3287
3288 if test "$wxUSE_EXPAT" = yes; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290echo "${ECHO_T}yes" >&6
3291 elif test "$wxUSE_EXPAT" = no; then
3292 echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294 elif test "$wxUSE_EXPAT" = sys; then
3295 echo "$as_me:$LINENO: result: system version" >&5
3296echo "${ECHO_T}system version" >&6
3297 elif test "$wxUSE_EXPAT" = builtin; then
3298 echo "$as_me:$LINENO: result: builtin version" >&5
3299echo "${ECHO_T}builtin version" >&6
3300 else
3301 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3302echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3303 { (exit 1); exit 1; }; }
3304 fi
3305
3306
8284b0c5
MB
3307
3308
5005acfe 3309 enablestring=
e6cc62c6
VS
3310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3311echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3312 no_cache=0
3313 # Check whether --enable-shared or --disable-shared was given.
3314if test "${enable_shared+set}" = set; then
3315 enableval="$enable_shared"
e6cc62c6 3316
10f2d63a
VZ
3317 if test "$enableval" = yes; then
3318 ac_cv_use_shared='wxUSE_SHARED=yes'
3319 else
3320 ac_cv_use_shared='wxUSE_SHARED=no'
3321 fi
e6cc62c6 3322
10f2d63a 3323else
e6cc62c6 3324
10f2d63a
VZ
3325 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3333
e6cc62c6 3334fi;
10f2d63a
VZ
3335
3336 eval "$ac_cv_use_shared"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3342 echo "$as_me:$LINENO: result: yes" >&5
3343echo "${ECHO_T}yes" >&6
10f2d63a 3344 else
e6cc62c6
VS
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
10f2d63a 3347 fi
e6cc62c6 3348
10f2d63a 3349
5005acfe 3350 enablestring=
e6cc62c6
VS
3351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3352echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3353 no_cache=0
3354 # Check whether --enable-optimise or --disable-optimise was given.
3355if test "${enable_optimise+set}" = set; then
3356 enableval="$enable_optimise"
e6cc62c6 3357
10f2d63a
VZ
3358 if test "$enableval" = yes; then
3359 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3360 else
3361 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3362 fi
e6cc62c6 3363
10f2d63a 3364else
e6cc62c6 3365
10f2d63a
VZ
3366 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3374
e6cc62c6 3375fi;
10f2d63a
VZ
3376
3377 eval "$ac_cv_use_optimise"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3383 echo "$as_me:$LINENO: result: yes" >&5
3384echo "${ECHO_T}yes" >&6
10f2d63a 3385 else
e6cc62c6
VS
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
10f2d63a 3388 fi
e6cc62c6 3389
10f2d63a 3390
5005acfe 3391 enablestring=
e6cc62c6
VS
3392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3393echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3394 no_cache=0
3395 # Check whether --enable-debug or --disable-debug was given.
3396if test "${enable_debug+set}" = set; then
3397 enableval="$enable_debug"
e6cc62c6 3398
10f2d63a
VZ
3399 if test "$enableval" = yes; then
3400 ac_cv_use_debug='wxUSE_DEBUG=yes'
3401 else
3402 ac_cv_use_debug='wxUSE_DEBUG=no'
3403 fi
e6cc62c6 3404
10f2d63a 3405else
e6cc62c6 3406
10f2d63a
VZ
3407 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3415
e6cc62c6 3416fi;
10f2d63a
VZ
3417
3418 eval "$ac_cv_use_debug"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
10f2d63a 3426 else
e6cc62c6
VS
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
10f2d63a 3429 fi
e6cc62c6 3430
52127426 3431
df5168c4
MB
3432 enablestring=
3433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3434echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3435 no_cache=0
3436 # Check whether --enable-stl or --disable-stl was given.
3437if test "${enable_stl+set}" = set; then
3438 enableval="$enable_stl"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_stl='wxUSE_STL=yes'
3442 else
3443 ac_cv_use_stl='wxUSE_STL=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3456
3457fi;
3458
3459 eval "$ac_cv_use_stl"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_STL" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470 fi
3471
3472
10f2d63a
VZ
3473if test "$wxUSE_DEBUG" = "yes"; then
3474 DEFAULT_wxUSE_DEBUG_FLAG=yes
3475 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3476 BUILD=debug
10f2d63a
VZ
3477elif test "$wxUSE_DEBUG" = "no"; then
3478 DEFAULT_wxUSE_DEBUG_FLAG=no
3479 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3480 BUILD=release
10f2d63a
VZ
3481fi
3482
8284b0c5 3483
5005acfe 3484 enablestring=
e6cc62c6
VS
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3487 no_cache=0
3488 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3489if test "${enable_debug_flag+set}" = set; then
3490 enableval="$enable_debug_flag"
e6cc62c6 3491
10f2d63a
VZ
3492 if test "$enableval" = yes; then
3493 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3494 else
3495 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3496 fi
e6cc62c6 3497
10f2d63a 3498else
e6cc62c6 3499
10f2d63a
VZ
3500 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3508
e6cc62c6 3509fi;
10f2d63a
VZ
3510
3511 eval "$ac_cv_use_debug_flag"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
10f2d63a 3519 else
e6cc62c6
VS
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
10f2d63a 3522 fi
e6cc62c6 3523
10f2d63a 3524
5005acfe 3525 enablestring=
e6cc62c6
VS
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3528 no_cache=0
3529 # Check whether --enable-debug_info or --disable-debug_info was given.
3530if test "${enable_debug_info+set}" = set; then
3531 enableval="$enable_debug_info"
e6cc62c6 3532
10f2d63a
VZ
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3535 else
3536 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3537 fi
e6cc62c6 3538
10f2d63a 3539else
e6cc62c6 3540
10f2d63a
VZ
3541 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3549
e6cc62c6 3550fi;
10f2d63a
VZ
3551
3552 eval "$ac_cv_use_debug_info"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
10f2d63a 3560 else
e6cc62c6
VS
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
10f2d63a 3563 fi
e6cc62c6 3564
10f2d63a 3565
5005acfe 3566 enablestring=
e6cc62c6
VS
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3569 no_cache=0
3570 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3571if test "${enable_debug_gdb+set}" = set; then
3572 enableval="$enable_debug_gdb"
e6cc62c6 3573
10f2d63a
VZ
3574 if test "$enableval" = yes; then
3575 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3576 else
3577 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3578 fi
e6cc62c6 3579
10f2d63a 3580else
e6cc62c6 3581
10f2d63a
VZ
3582 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3590
e6cc62c6 3591fi;
10f2d63a
VZ
3592
3593 eval "$ac_cv_use_debug_gdb"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
10f2d63a 3601 else
e6cc62c6
VS
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
10f2d63a 3604 fi
e6cc62c6 3605
10f2d63a 3606
5005acfe 3607 enablestring=
e6cc62c6
VS
3608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3609echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3610 no_cache=0
3611 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3612if test "${enable_debug_cntxt+set}" = set; then
3613 enableval="$enable_debug_cntxt"
e6cc62c6 3614
10f2d63a
VZ
3615 if test "$enableval" = yes; then
3616 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3617 else
3618 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3619 fi
e6cc62c6 3620
10f2d63a 3621else
e6cc62c6 3622
10f2d63a
VZ
3623 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3631
e6cc62c6 3632fi;
10f2d63a
VZ
3633
3634 eval "$ac_cv_use_debug_cntxt"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
10f2d63a 3642 else
e6cc62c6
VS
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
10f2d63a 3645 fi
e6cc62c6 3646
10f2d63a 3647
5005acfe 3648 enablestring=
e6cc62c6
VS
3649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3650echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3651 no_cache=0
3652 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3653if test "${enable_mem_tracing+set}" = set; then
3654 enableval="$enable_mem_tracing"
e6cc62c6 3655
10f2d63a
VZ
3656 if test "$enableval" = yes; then
3657 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3658 else
3659 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3660 fi
e6cc62c6 3661
10f2d63a 3662else
e6cc62c6 3663
10f2d63a
VZ
3664 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3672
e6cc62c6 3673fi;
10f2d63a
VZ
3674
3675 eval "$ac_cv_use_mem_tracing"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3681 echo "$as_me:$LINENO: result: yes" >&5
3682echo "${ECHO_T}yes" >&6
10f2d63a 3683 else
e6cc62c6
VS
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
10f2d63a 3686 fi
e6cc62c6 3687
10f2d63a 3688
5005acfe 3689 enablestring=
e6cc62c6
VS
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3691echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3692 no_cache=0
3693 # Check whether --enable-profile or --disable-profile was given.
3694if test "${enable_profile+set}" = set; then
3695 enableval="$enable_profile"
e6cc62c6 3696
10f2d63a
VZ
3697 if test "$enableval" = yes; then
3698 ac_cv_use_profile='wxUSE_PROFILE=yes'
3699 else
3700 ac_cv_use_profile='wxUSE_PROFILE=no'
3701 fi
e6cc62c6 3702
10f2d63a 3703else
e6cc62c6 3704
10f2d63a
VZ
3705 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3713
e6cc62c6 3714fi;
10f2d63a
VZ
3715
3716 eval "$ac_cv_use_profile"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3722 echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
10f2d63a 3724 else
e6cc62c6
VS
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
10f2d63a 3727 fi
e6cc62c6 3728
10f2d63a 3729
5005acfe 3730 enablestring=
e6cc62c6
VS
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3733 no_cache=0
3734 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3735if test "${enable_no_rtti+set}" = set; then
3736 enableval="$enable_no_rtti"
e6cc62c6 3737
10f2d63a
VZ
3738 if test "$enableval" = yes; then
3739 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3740 else
3741 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3742 fi
e6cc62c6 3743
10f2d63a 3744else
e6cc62c6 3745
10f2d63a
VZ
3746 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3754
e6cc62c6 3755fi;
10f2d63a
VZ
3756
3757 eval "$ac_cv_use_no_rtti"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
10f2d63a 3765 else
e6cc62c6
VS
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
10f2d63a 3768 fi
e6cc62c6 3769
10f2d63a 3770
5005acfe 3771 enablestring=
e6cc62c6
VS
3772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3773echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3774 no_cache=0
3775 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3776if test "${enable_no_exceptions+set}" = set; then
3777 enableval="$enable_no_exceptions"
e6cc62c6 3778
10f2d63a
VZ
3779 if test "$enableval" = yes; then
3780 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3781 else
3782 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3783 fi
e6cc62c6 3784
10f2d63a 3785else
e6cc62c6 3786
10f2d63a
VZ
3787 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3795
e6cc62c6 3796fi;
10f2d63a
VZ
3797
3798 eval "$ac_cv_use_no_exceptions"
3799 if test "$no_cache" != 1; then
3800 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3801 fi
3802
3803 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3804 echo "$as_me:$LINENO: result: yes" >&5
3805echo "${ECHO_T}yes" >&6
10f2d63a 3806 else
e6cc62c6
VS
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
10f2d63a 3809 fi
e6cc62c6 3810
10f2d63a 3811
5005acfe 3812 enablestring=
e6cc62c6
VS
3813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3814echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3815 no_cache=0
3816 # Check whether --enable-permissive or --disable-permissive was given.
3817if test "${enable_permissive+set}" = set; then
3818 enableval="$enable_permissive"
e6cc62c6 3819
10f2d63a
VZ
3820 if test "$enableval" = yes; then
3821 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3822 else
3823 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3824 fi
e6cc62c6 3825
10f2d63a 3826else
e6cc62c6 3827
10f2d63a
VZ
3828 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3829 if test "x$LINE" != x ; then
3830 eval "DEFAULT_$LINE"
3831 else
3832 no_cache=1
3833 fi
3834
3835 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3836
e6cc62c6 3837fi;
10f2d63a
VZ
3838
3839 eval "$ac_cv_use_permissive"
3840 if test "$no_cache" != 1; then
3841 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3842 fi
3843
3844 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3845 echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6
10f2d63a 3847 else
e6cc62c6
VS
3848 echo "$as_me:$LINENO: result: no" >&5
3849echo "${ECHO_T}no" >&6
10f2d63a 3850 fi
e6cc62c6 3851
10f2d63a 3852
5005acfe 3853 enablestring=
e6cc62c6
VS
3854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3855echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3856 no_cache=0
3857 # Check whether --enable-no_deps or --disable-no_deps was given.
3858if test "${enable_no_deps+set}" = set; then
3859 enableval="$enable_no_deps"
e6cc62c6 3860
10f2d63a
VZ
3861 if test "$enableval" = yes; then
3862 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3863 else
3864 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3865 fi
e6cc62c6 3866
10f2d63a 3867else
e6cc62c6 3868
10f2d63a
VZ
3869 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3877
e6cc62c6 3878fi;
10f2d63a
VZ
3879
3880 eval "$ac_cv_use_no_deps"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3886 echo "$as_me:$LINENO: result: yes" >&5
3887echo "${ECHO_T}yes" >&6
10f2d63a 3888 else
e6cc62c6
VS
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
10f2d63a 3891 fi
e6cc62c6 3892
52127426 3893
8284b0c5 3894
65d8ef1e 3895 enablestring=
e6cc62c6
VS
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3898 no_cache=0
3899 # Check whether --enable-compat22 or --disable-compat22 was given.
3900if test "${enable_compat22+set}" = set; then
3901 enableval="$enable_compat22"
e6cc62c6 3902
54276ccf
VZ
3903 if test "$enableval" = yes; then
3904 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3905 else
3906 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3907 fi
e6cc62c6 3908
54276ccf 3909else
e6cc62c6 3910
54276ccf
VZ
3911 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3919
e6cc62c6 3920fi;
54276ccf
VZ
3921
3922 eval "$ac_cv_use_compat22"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
54276ccf 3930 else
e6cc62c6
VS
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
54276ccf 3933 fi
e6cc62c6 3934
54276ccf 3935
65d8ef1e 3936 enablestring=disable
e6cc62c6
VS
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3939 no_cache=0
3940 # Check whether --enable-compat24 or --disable-compat24 was given.
3941if test "${enable_compat24+set}" = set; then
3942 enableval="$enable_compat24"
e6cc62c6 3943
65d8ef1e
VS
3944 if test "$enableval" = yes; then
3945 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3946 else
3947 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3948 fi
e6cc62c6 3949
65d8ef1e 3950else
e6cc62c6 3951
65d8ef1e
VS
3952 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3960
e6cc62c6 3961fi;
65d8ef1e
VS
3962
3963 eval "$ac_cv_use_compat24"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
65d8ef1e 3971 else
e6cc62c6
VS
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
65d8ef1e 3974 fi
e6cc62c6 3975
65d8ef1e 3976
3bd8fb5f
RD
3977# Check whether --enable-rpath or --disable-rpath was given.
3978if test "${enable_rpath+set}" = set; then
3979 enableval="$enable_rpath"
3980 wxRPATH_DIR="$enableval"
e6cc62c6 3981fi;
3bd8fb5f
RD
3982
3983if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3984 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3985fi
3986
8284b0c5
MB
3987
3988
3989
5005acfe 3990 enablestring=
e6cc62c6
VS
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3993 no_cache=0
3994 # Check whether --enable-intl or --disable-intl was given.
3995if test "${enable_intl+set}" = set; then
3996 enableval="$enable_intl"
e6cc62c6 3997
10f2d63a
VZ
3998 if test "$enableval" = yes; then
3999 ac_cv_use_intl='wxUSE_INTL=yes'
4000 else
4001 ac_cv_use_intl='wxUSE_INTL=no'
4002 fi
e6cc62c6 4003
10f2d63a 4004else
e6cc62c6 4005
10f2d63a
VZ
4006 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 4014
e6cc62c6 4015fi;
10f2d63a
VZ
4016
4017 eval "$ac_cv_use_intl"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
10f2d63a 4025 else
e6cc62c6
VS
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
10f2d63a 4028 fi
e6cc62c6 4029
10f2d63a 4030
5005acfe 4031 enablestring=
e6cc62c6
VS
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
4034 no_cache=0
4035 # Check whether --enable-config or --disable-config was given.
4036if test "${enable_config+set}" = set; then
4037 enableval="$enable_config"
e6cc62c6 4038
10f2d63a
VZ
4039 if test "$enableval" = yes; then
4040 ac_cv_use_config='wxUSE_CONFIG=yes'
4041 else
4042 ac_cv_use_config='wxUSE_CONFIG=no'
4043 fi
e6cc62c6 4044
10f2d63a 4045else
e6cc62c6 4046
10f2d63a
VZ
4047 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 4055
e6cc62c6 4056fi;
10f2d63a
VZ
4057
4058 eval "$ac_cv_use_config"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
10f2d63a 4066 else
e6cc62c6
VS
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
10f2d63a 4069 fi
e6cc62c6 4070
52127426 4071
8284b0c5 4072
5005acfe 4073 enablestring=
e6cc62c6
VS
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4076 no_cache=0
4077 # Check whether --enable-protocols or --disable-protocols was given.
4078if test "${enable_protocols+set}" = set; then
4079 enableval="$enable_protocols"
e6cc62c6 4080
a1622950
VZ
4081 if test "$enableval" = yes; then
4082 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4083 else
4084 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4085 fi
e6cc62c6 4086
a1622950 4087else
e6cc62c6 4088
a1622950
VZ
4089 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4097
e6cc62c6 4098fi;
a1622950
VZ
4099
4100 eval "$ac_cv_use_protocols"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
a1622950 4108 else
e6cc62c6
VS
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
a1622950 4111 fi
e6cc62c6 4112
a1622950 4113
5005acfe 4114 enablestring=
e6cc62c6
VS
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4117 no_cache=0
4118 # Check whether --enable-ftp or --disable-ftp was given.
4119if test "${enable_ftp+set}" = set; then
4120 enableval="$enable_ftp"
e6cc62c6 4121
a1622950
VZ
4122 if test "$enableval" = yes; then
4123 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4124 else
4125 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4126 fi
e6cc62c6 4127
a1622950 4128else
e6cc62c6 4129
a1622950
VZ
4130 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4138
e6cc62c6 4139fi;
a1622950
VZ
4140
4141 eval "$ac_cv_use_ftp"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
a1622950 4149 else
e6cc62c6
VS
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
a1622950 4152 fi
e6cc62c6 4153
a1622950 4154
5005acfe 4155 enablestring=
e6cc62c6
VS
4156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4157echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4158 no_cache=0
4159 # Check whether --enable-http or --disable-http was given.
4160if test "${enable_http+set}" = set; then
4161 enableval="$enable_http"
e6cc62c6 4162
a1622950
VZ
4163 if test "$enableval" = yes; then
4164 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4165 else
4166 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4167 fi
e6cc62c6 4168
a1622950 4169else
e6cc62c6 4170
a1622950
VZ
4171 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4179
e6cc62c6 4180fi;
a1622950
VZ
4181
4182 eval "$ac_cv_use_http"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4188 echo "$as_me:$LINENO: result: yes" >&5
4189echo "${ECHO_T}yes" >&6
a1622950 4190 else
e6cc62c6
VS
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
a1622950 4193 fi
e6cc62c6 4194
a1622950 4195
5005acfe 4196 enablestring=
e6cc62c6
VS
4197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4198echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4199 no_cache=0
4200 # Check whether --enable-fileproto or --disable-fileproto was given.
4201if test "${enable_fileproto+set}" = set; then
4202 enableval="$enable_fileproto"
e6cc62c6 4203
a1622950
VZ
4204 if test "$enableval" = yes; then
4205 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4206 else
4207 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4208 fi
e6cc62c6 4209
a1622950 4210else
e6cc62c6 4211
a1622950
VZ
4212 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4213 if test "x$LINE" != x ; then
4214 eval "DEFAULT_$LINE"
4215 else
4216 no_cache=1
4217 fi
4218
4219 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4220
e6cc62c6 4221fi;
a1622950
VZ
4222
4223 eval "$ac_cv_use_fileproto"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4229 echo "$as_me:$LINENO: result: yes" >&5
4230echo "${ECHO_T}yes" >&6
a1622950 4231 else
e6cc62c6
VS
4232 echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6
a1622950 4234 fi
e6cc62c6 4235
a1622950 4236
5005acfe 4237 enablestring=
e6cc62c6
VS
4238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4239echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4240 no_cache=0
4241 # Check whether --enable-sockets or --disable-sockets was given.
4242if test "${enable_sockets+set}" = set; then
4243 enableval="$enable_sockets"
e6cc62c6 4244
10f2d63a
VZ
4245 if test "$enableval" = yes; then
4246 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4247 else
4248 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4249 fi
e6cc62c6 4250
10f2d63a 4251else
e6cc62c6 4252
10f2d63a
VZ
4253 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4254 if test "x$LINE" != x ; then
4255 eval "DEFAULT_$LINE"
4256 else
4257 no_cache=1
4258 fi
4259
4260 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4261
e6cc62c6 4262fi;
10f2d63a
VZ
4263
4264 eval "$ac_cv_use_sockets"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4270 echo "$as_me:$LINENO: result: yes" >&5
4271echo "${ECHO_T}yes" >&6
10f2d63a 4272 else
e6cc62c6
VS
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
10f2d63a 4275 fi
e6cc62c6 4276
8284b0c5 4277
5005acfe 4278 enablestring=
e6cc62c6
VS
4279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4280echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4281 no_cache=0
4282 # Check whether --enable-ole or --disable-ole was given.
4283if test "${enable_ole+set}" = set; then
4284 enableval="$enable_ole"
e6cc62c6 4285
3bce6687
JS
4286 if test "$enableval" = yes; then
4287 ac_cv_use_ole='wxUSE_OLE=yes'
4288 else
4289 ac_cv_use_ole='wxUSE_OLE=no'
4290 fi
e6cc62c6 4291
3bce6687 4292else
e6cc62c6 4293
3bce6687
JS
4294 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
4301 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4302
e6cc62c6 4303fi;
3bce6687
JS
4304
4305 eval "$ac_cv_use_ole"
4306 if test "$no_cache" != 1; then
4307 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4308 fi
4309
4310 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4311 echo "$as_me:$LINENO: result: yes" >&5
4312echo "${ECHO_T}yes" >&6
3bce6687 4313 else
e6cc62c6
VS
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
3bce6687 4316 fi
e6cc62c6 4317
3bce6687 4318
5005acfe 4319 enablestring=
e6cc62c6
VS
4320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4321echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4322 no_cache=0
4323 # Check whether --enable-dataobj or --disable-dataobj was given.
4324if test "${enable_dataobj+set}" = set; then
4325 enableval="$enable_dataobj"
e6cc62c6 4326
3bce6687
JS
4327 if test "$enableval" = yes; then
4328 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4329 else
4330 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4331 fi
e6cc62c6 4332
3bce6687 4333else
e6cc62c6 4334
3bce6687
JS
4335 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4343
e6cc62c6 4344fi;
3bce6687
JS
4345
4346 eval "$ac_cv_use_dataobj"
4347 if test "$no_cache" != 1; then
4348 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4349 fi
4350
4351 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4352 echo "$as_me:$LINENO: result: yes" >&5
4353echo "${ECHO_T}yes" >&6
3bce6687 4354 else
e6cc62c6
VS
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
3bce6687 4357 fi
e6cc62c6 4358
3bce6687 4359
52127426 4360
5005acfe 4361 enablestring=
e6cc62c6
VS
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4364 no_cache=0
eb4efbdc
VZ
4365 # Check whether --enable-ipc or --disable-ipc was given.
4366if test "${enable_ipc+set}" = set; then
4367 enableval="$enable_ipc"
e6cc62c6 4368
10f2d63a 4369 if test "$enableval" = yes; then
eb4efbdc 4370 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4371 else
eb4efbdc 4372 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4373 fi
e6cc62c6 4374
10f2d63a 4375else
e6cc62c6 4376
eb4efbdc 4377 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
eb4efbdc 4384 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4385
e6cc62c6 4386fi;
10f2d63a 4387
eb4efbdc 4388 eval "$ac_cv_use_ipc"
10f2d63a 4389 if test "$no_cache" != 1; then
eb4efbdc 4390 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4391 fi
4392
eb4efbdc 4393 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
10f2d63a 4396 else
e6cc62c6
VS
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
10f2d63a 4399 fi
e6cc62c6 4400
52127426 4401
8284b0c5 4402
5005acfe 4403 enablestring=
e46d2a18
VS
4404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4405echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4406 no_cache=0
e46d2a18
VS
4407 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4408if test "${enable_apple_ieee+set}" = set; then
4409 enableval="$enable_apple_ieee"
e6cc62c6 4410
10f2d63a 4411 if test "$enableval" = yes; then
e46d2a18 4412 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4413 else
e46d2a18 4414 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4415 fi
e6cc62c6 4416
10f2d63a 4417else
e6cc62c6 4418
e46d2a18 4419 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
e46d2a18 4426 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4427
e6cc62c6 4428fi;
10f2d63a 4429
e46d2a18 4430 eval "$ac_cv_use_apple_ieee"
10f2d63a 4431 if test "$no_cache" != 1; then
e46d2a18 4432 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4433 fi
4434
e46d2a18 4435 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4436 echo "$as_me:$LINENO: result: yes" >&5
4437echo "${ECHO_T}yes" >&6
10f2d63a 4438 else
e6cc62c6
VS
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
10f2d63a 4441 fi
e6cc62c6 4442
10f2d63a 4443
5005acfe 4444 enablestring=
e46d2a18
VS
4445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4446echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4447 no_cache=0
e46d2a18
VS
4448 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4449if test "${enable_catch_segvs+set}" = set; then
4450 enableval="$enable_catch_segvs"
e6cc62c6 4451
10f2d63a 4452 if test "$enableval" = yes; then
e46d2a18 4453 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4454 else
e46d2a18 4455 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4456 fi
e6cc62c6 4457
10f2d63a 4458else
e6cc62c6 4459
e46d2a18 4460 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
e46d2a18 4467 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4468
e6cc62c6 4469fi;
10f2d63a 4470
e46d2a18 4471 eval "$ac_cv_use_catch_segvs"
10f2d63a 4472 if test "$no_cache" != 1; then
e46d2a18 4473 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4474 fi
4475
e46d2a18 4476 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4477 echo "$as_me:$LINENO: result: yes" >&5
4478echo "${ECHO_T}yes" >&6
10f2d63a 4479 else
e6cc62c6
VS
4480 echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6
10f2d63a 4482 fi
e6cc62c6 4483
10f2d63a 4484
5005acfe 4485 enablestring=
e46d2a18
VS
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4488 no_cache=0
e46d2a18
VS
4489 # Check whether --enable-cmdline or --disable-cmdline was given.
4490if test "${enable_cmdline+set}" = set; then
4491 enableval="$enable_cmdline"
e6cc62c6 4492
10f2d63a 4493 if test "$enableval" = yes; then
e46d2a18 4494 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4495 else
e46d2a18 4496 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4497 fi
e6cc62c6 4498
10f2d63a 4499else
e6cc62c6 4500
e46d2a18 4501 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
e46d2a18 4508 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4509
e6cc62c6 4510fi;
10f2d63a 4511
e46d2a18 4512 eval "$ac_cv_use_cmdline"
10f2d63a 4513 if test "$no_cache" != 1; then
e46d2a18 4514 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4515 fi
4516
e46d2a18 4517 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
10f2d63a 4520 else
e6cc62c6
VS
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
10f2d63a 4523 fi
e6cc62c6 4524
10f2d63a 4525
5005acfe 4526 enablestring=
e46d2a18
VS
4527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4528echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4529 no_cache=0
e46d2a18
VS
4530 # Check whether --enable-datetime or --disable-datetime was given.
4531if test "${enable_datetime+set}" = set; then
4532 enableval="$enable_datetime"
e6cc62c6 4533
10f2d63a 4534 if test "$enableval" = yes; then
e46d2a18 4535 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4536 else
e46d2a18 4537 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4538 fi
e6cc62c6 4539
10f2d63a 4540else
e6cc62c6 4541
e46d2a18 4542 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
e46d2a18 4549 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4550
e6cc62c6 4551fi;
10f2d63a 4552
e46d2a18 4553 eval "$ac_cv_use_datetime"
10f2d63a 4554 if test "$no_cache" != 1; then
e46d2a18 4555 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4556 fi
4557
e46d2a18 4558 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4559 echo "$as_me:$LINENO: result: yes" >&5
4560echo "${ECHO_T}yes" >&6
10f2d63a 4561 else
e6cc62c6
VS
4562 echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
10f2d63a 4564 fi
e6cc62c6 4565
10f2d63a 4566
5005acfe 4567 enablestring=
e46d2a18
VS
4568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4569echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4570 no_cache=0
e46d2a18
VS
4571 # Check whether --enable-dialupman or --disable-dialupman was given.
4572if test "${enable_dialupman+set}" = set; then
4573 enableval="$enable_dialupman"
e6cc62c6 4574
10f2d63a 4575 if test "$enableval" = yes; then
e46d2a18 4576 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4577 else
e46d2a18 4578 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4579 fi
e6cc62c6 4580
10f2d63a 4581else
e6cc62c6 4582
e46d2a18 4583 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
e46d2a18 4590 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4591
e6cc62c6 4592fi;
10f2d63a 4593
e46d2a18 4594 eval "$ac_cv_use_dialupman"
10f2d63a 4595 if test "$no_cache" != 1; then
e46d2a18 4596 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4597 fi
4598
e46d2a18 4599 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4600 echo "$as_me:$LINENO: result: yes" >&5
4601echo "${ECHO_T}yes" >&6
10f2d63a 4602 else
e6cc62c6
VS
4603 echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
10f2d63a 4605 fi
e6cc62c6 4606
10f2d63a 4607
5005acfe 4608 enablestring=
e6cc62c6
VS
4609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4610echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4611 no_cache=0
4612 # Check whether --enable-dynlib or --disable-dynlib was given.
4613if test "${enable_dynlib+set}" = set; then
4614 enableval="$enable_dynlib"
e6cc62c6 4615
10f2d63a
VZ
4616 if test "$enableval" = yes; then
4617 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4618 else
4619 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4620 fi
e6cc62c6 4621
10f2d63a 4622else
e6cc62c6 4623
10f2d63a
VZ
4624 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4632
e6cc62c6 4633fi;
10f2d63a
VZ
4634
4635 eval "$ac_cv_use_dynlib"
4636 if test "$no_cache" != 1; then
4637 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4638 fi
4639
4640 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4641 echo "$as_me:$LINENO: result: yes" >&5
4642echo "${ECHO_T}yes" >&6
10f2d63a 4643 else
e6cc62c6
VS
4644 echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6
10f2d63a 4646 fi
e6cc62c6 4647
10f2d63a 4648
5005acfe 4649 enablestring=
e6cc62c6
VS
4650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4651echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4652 no_cache=0
4653 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4654if test "${enable_dynamicloader+set}" = set; then
4655 enableval="$enable_dynamicloader"
e6cc62c6 4656
0b9ab0bd
RL
4657 if test "$enableval" = yes; then
4658 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4659 else
4660 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4661 fi
e6cc62c6 4662
0b9ab0bd 4663else
e6cc62c6 4664
0b9ab0bd
RL
4665 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4673
e6cc62c6 4674fi;
0b9ab0bd
RL
4675
4676 eval "$ac_cv_use_dynamicloader"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4682 echo "$as_me:$LINENO: result: yes" >&5
4683echo "${ECHO_T}yes" >&6
0b9ab0bd 4684 else
e6cc62c6
VS
4685 echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6
0b9ab0bd 4687 fi
e6cc62c6 4688
0b9ab0bd 4689
5005acfe 4690 enablestring=
e46d2a18
VS
4691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4692echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4693 no_cache=0
e46d2a18
VS
4694 # Check whether --enable-exceptions or --disable-exceptions was given.
4695if test "${enable_exceptions+set}" = set; then
4696 enableval="$enable_exceptions"
e6cc62c6 4697
10f2d63a 4698 if test "$enableval" = yes; then
e46d2a18 4699 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4700 else
e46d2a18 4701 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4702 fi
e6cc62c6 4703
10f2d63a 4704else
e6cc62c6 4705
e46d2a18 4706 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
e46d2a18 4713 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4714
e6cc62c6 4715fi;
10f2d63a 4716
e46d2a18 4717 eval "$ac_cv_use_exceptions"
10f2d63a 4718 if test "$no_cache" != 1; then
e46d2a18 4719 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4720 fi
4721
e46d2a18 4722 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4723 echo "$as_me:$LINENO: result: yes" >&5
4724echo "${ECHO_T}yes" >&6
10f2d63a 4725 else
e6cc62c6
VS
4726 echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6
10f2d63a 4728 fi
e6cc62c6 4729
10f2d63a 4730
5005acfe 4731 enablestring=
e46d2a18
VS
4732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4733echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4734 no_cache=0
e46d2a18
VS
4735 # Check whether --enable-ffile or --disable-ffile was given.
4736if test "${enable_ffile+set}" = set; then
4737 enableval="$enable_ffile"
e6cc62c6 4738
e8f65ba6 4739 if test "$enableval" = yes; then
e46d2a18 4740 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4741 else
e46d2a18 4742 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4743 fi
e6cc62c6 4744
e8f65ba6 4745else
e6cc62c6 4746
e46d2a18 4747 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
e46d2a18 4754 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4755
e6cc62c6 4756fi;
e8f65ba6 4757
e46d2a18 4758 eval "$ac_cv_use_ffile"
e8f65ba6 4759 if test "$no_cache" != 1; then
e46d2a18 4760 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4761 fi
4762
e46d2a18 4763 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4764 echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6
e8f65ba6 4766 else
e6cc62c6
VS
4767 echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6
e8f65ba6 4769 fi
e6cc62c6 4770
e8f65ba6 4771
5005acfe 4772 enablestring=
e46d2a18
VS
4773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4774echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4775 no_cache=0
e46d2a18
VS
4776 # Check whether --enable-file or --disable-file was given.
4777if test "${enable_file+set}" = set; then
4778 enableval="$enable_file"
e6cc62c6 4779
10f2d63a 4780 if test "$enableval" = yes; then
e46d2a18 4781 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4782 else
e46d2a18 4783 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4784 fi
e6cc62c6 4785
10f2d63a 4786else
e6cc62c6 4787
e46d2a18 4788 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
e46d2a18 4795 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4796
e6cc62c6 4797fi;
10f2d63a 4798
e46d2a18 4799 eval "$ac_cv_use_file"
10f2d63a 4800 if test "$no_cache" != 1; then
e46d2a18 4801 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4802 fi
4803
e46d2a18 4804 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4805 echo "$as_me:$LINENO: result: yes" >&5
4806echo "${ECHO_T}yes" >&6
10f2d63a 4807 else
e6cc62c6
VS
4808 echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
10f2d63a 4810 fi
e6cc62c6 4811
10f2d63a 4812
5005acfe 4813 enablestring=
e46d2a18
VS
4814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4815echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4816 no_cache=0
e46d2a18
VS
4817 # Check whether --enable-filesystem or --disable-filesystem was given.
4818if test "${enable_filesystem+set}" = set; then
4819 enableval="$enable_filesystem"
e6cc62c6 4820
10f2d63a 4821 if test "$enableval" = yes; then
e46d2a18 4822 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4823 else
e46d2a18 4824 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4825 fi
e6cc62c6 4826
10f2d63a 4827else
e6cc62c6 4828
e46d2a18 4829 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4830 if test "x$LINE" != x ; then
4831 eval "DEFAULT_$LINE"
4832 else
4833 no_cache=1
4834 fi
4835
e46d2a18 4836 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4837
e6cc62c6 4838fi;
10f2d63a 4839
e46d2a18 4840 eval "$ac_cv_use_filesystem"
10f2d63a 4841 if test "$no_cache" != 1; then
e46d2a18 4842 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4843 fi
4844
e46d2a18 4845 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4846 echo "$as_me:$LINENO: result: yes" >&5
4847echo "${ECHO_T}yes" >&6
10f2d63a 4848 else
e6cc62c6
VS
4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
10f2d63a 4851 fi
e6cc62c6 4852
10f2d63a 4853
5005acfe 4854 enablestring=
e46d2a18
VS
4855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4856echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4857 no_cache=0
e46d2a18
VS
4858 # Check whether --enable-fontmap or --disable-fontmap was given.
4859if test "${enable_fontmap+set}" = set; then
4860 enableval="$enable_fontmap"
e6cc62c6 4861
10f2d63a 4862 if test "$enableval" = yes; then
e46d2a18 4863 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4864 else
e46d2a18 4865 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4866 fi
e6cc62c6 4867
10f2d63a 4868else
e6cc62c6 4869
e46d2a18 4870 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
e46d2a18 4877 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4878
e6cc62c6 4879fi;
10f2d63a 4880
e46d2a18 4881 eval "$ac_cv_use_fontmap"
10f2d63a 4882 if test "$no_cache" != 1; then
e46d2a18 4883 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4884 fi
4885
e46d2a18 4886 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4887 echo "$as_me:$LINENO: result: yes" >&5
4888echo "${ECHO_T}yes" >&6
10f2d63a 4889 else
e6cc62c6
VS
4890 echo "$as_me:$LINENO: result: no" >&5
4891echo "${ECHO_T}no" >&6
10f2d63a 4892 fi
e6cc62c6 4893
10f2d63a 4894
5005acfe 4895 enablestring=
e46d2a18
VS
4896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4897echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4898 no_cache=0
e46d2a18
VS
4899 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4900if test "${enable_fs_inet+set}" = set; then
4901 enableval="$enable_fs_inet"
e6cc62c6 4902
10f2d63a 4903 if test "$enableval" = yes; then
e46d2a18 4904 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4905 else
e46d2a18 4906 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4907 fi
e6cc62c6 4908
10f2d63a 4909else
e6cc62c6 4910
e46d2a18 4911 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4912 if test "x$LINE" != x ; then
4913 eval "DEFAULT_$LINE"
4914 else
4915 no_cache=1
4916 fi
4917
e46d2a18 4918 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4919
e6cc62c6 4920fi;
10f2d63a 4921
e46d2a18 4922 eval "$ac_cv_use_fs_inet"
10f2d63a 4923 if test "$no_cache" != 1; then
e46d2a18 4924 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4925 fi
4926
e46d2a18 4927 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4928 echo "$as_me:$LINENO: result: yes" >&5
4929echo "${ECHO_T}yes" >&6
10f2d63a 4930 else
e6cc62c6
VS
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
10f2d63a 4933 fi
e6cc62c6 4934
10f2d63a 4935
5005acfe 4936 enablestring=
e46d2a18
VS
4937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4938echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4939 no_cache=0
e46d2a18
VS
4940 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4941if test "${enable_fs_zip+set}" = set; then
4942 enableval="$enable_fs_zip"
e6cc62c6 4943
a3a584a7 4944 if test "$enableval" = yes; then
e46d2a18 4945 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4946 else
e46d2a18 4947 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4948 fi
e6cc62c6 4949
a3a584a7 4950else
e6cc62c6 4951
e46d2a18 4952 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
e46d2a18 4959 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4960
e6cc62c6 4961fi;
a3a584a7 4962
e46d2a18 4963 eval "$ac_cv_use_fs_zip"
a3a584a7 4964 if test "$no_cache" != 1; then
e46d2a18 4965 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4966 fi
4967
e46d2a18 4968 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
a3a584a7 4971 else
e6cc62c6
VS
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
a3a584a7 4974 fi
e6cc62c6 4975
a3a584a7 4976
5005acfe 4977 enablestring=
e46d2a18
VS
4978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4979echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4980 no_cache=0
e46d2a18
VS
4981 # Check whether --enable-geometry or --disable-geometry was given.
4982if test "${enable_geometry+set}" = set; then
4983 enableval="$enable_geometry"
e6cc62c6 4984
10f2d63a 4985 if test "$enableval" = yes; then
e46d2a18 4986 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4987 else
e46d2a18 4988 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4989 fi
e6cc62c6 4990
10f2d63a 4991else
e6cc62c6 4992
e46d2a18 4993 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
e46d2a18 5000 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 5001
e6cc62c6 5002fi;
10f2d63a 5003
e46d2a18 5004 eval "$ac_cv_use_geometry"
10f2d63a 5005 if test "$no_cache" != 1; then
e46d2a18 5006 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5007 fi
5008
e46d2a18 5009 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
5010 echo "$as_me:$LINENO: result: yes" >&5
5011echo "${ECHO_T}yes" >&6
10f2d63a 5012 else
e6cc62c6
VS
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
10f2d63a 5015 fi
e6cc62c6 5016
10f2d63a 5017
5005acfe 5018 enablestring=
e46d2a18
VS
5019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5020echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 5021 no_cache=0
e46d2a18
VS
5022 # Check whether --enable-log or --disable-log was given.
5023if test "${enable_log+set}" = set; then
5024 enableval="$enable_log"
e6cc62c6 5025
10f2d63a 5026 if test "$enableval" = yes; then
e46d2a18 5027 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 5028 else
e46d2a18 5029 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 5030 fi
e6cc62c6 5031
10f2d63a 5032else
e6cc62c6 5033
e46d2a18 5034 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
5035 if test "x$LINE" != x ; then
5036 eval "DEFAULT_$LINE"
5037 else
5038 no_cache=1
5039 fi
5040
e46d2a18 5041 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 5042
e6cc62c6 5043fi;
10f2d63a 5044
e46d2a18 5045 eval "$ac_cv_use_log"
10f2d63a 5046 if test "$no_cache" != 1; then
e46d2a18 5047 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5048 fi
5049
e46d2a18 5050 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
5051 echo "$as_me:$LINENO: result: yes" >&5
5052echo "${ECHO_T}yes" >&6
10f2d63a 5053 else
e6cc62c6
VS
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
10f2d63a 5056 fi
e6cc62c6 5057
10f2d63a 5058
5005acfe 5059 enablestring=
e46d2a18
VS
5060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5061echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5062 no_cache=0
e46d2a18
VS
5063 # Check whether --enable-longlong or --disable-longlong was given.
5064if test "${enable_longlong+set}" = set; then
5065 enableval="$enable_longlong"
e6cc62c6 5066
1e6feb95 5067 if test "$enableval" = yes; then
e46d2a18 5068 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5069 else
e46d2a18 5070 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5071 fi
e6cc62c6 5072
1e6feb95 5073else
e6cc62c6 5074
e46d2a18 5075 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
e46d2a18 5082 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5083
e6cc62c6 5084fi;
1e6feb95 5085
e46d2a18 5086 eval "$ac_cv_use_longlong"
1e6feb95 5087 if test "$no_cache" != 1; then
e46d2a18 5088 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5089 fi
5090
e46d2a18
VS
5091 if test "$wxUSE_LONGLONG" = yes; then
5092 echo "$as_me:$LINENO: result: yes" >&5
5093echo "${ECHO_T}yes" >&6
5094 else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097 fi
5098
5099
5100 enablestring=
5101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5102echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5103 no_cache=0
5104 # Check whether --enable-mimetype or --disable-mimetype was given.
5105if test "${enable_mimetype+set}" = set; then
5106 enableval="$enable_mimetype"
5107
5108 if test "$enableval" = yes; then
5109 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5110 else
5111 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5112 fi
5113
5114else
5115
5116 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5117 if test "x$LINE" != x ; then
5118 eval "DEFAULT_$LINE"
5119 else
5120 no_cache=1
5121 fi
5122
5123 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5124
5125fi;
5126
5127 eval "$ac_cv_use_mimetype"
5128 if test "$no_cache" != 1; then
5129 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5130 fi
5131
5132 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5133 echo "$as_me:$LINENO: result: yes" >&5
5134echo "${ECHO_T}yes" >&6
1e6feb95 5135 else
e6cc62c6
VS
5136 echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
1e6feb95 5138 fi
e6cc62c6 5139
1e6feb95 5140
5005acfe 5141 enablestring=
e6cc62c6
VS
5142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5143echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5144 no_cache=0
5145 # Check whether --enable-mslu or --disable-mslu was given.
5146if test "${enable_mslu+set}" = set; then
5147 enableval="$enable_mslu"
e6cc62c6 5148
a72a4bfa
VS
5149 if test "$enableval" = yes; then
5150 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5151 else
5152 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5153 fi
e6cc62c6 5154
a72a4bfa 5155else
e6cc62c6 5156
a72a4bfa
VS
5157 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5158 if test "x$LINE" != x ; then
5159 eval "DEFAULT_$LINE"
5160 else
5161 no_cache=1
5162 fi
5163
5164 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5165
e6cc62c6 5166fi;
a72a4bfa
VS
5167
5168 eval "$ac_cv_use_mslu"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5174 echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
a72a4bfa 5176 else
e6cc62c6
VS
5177 echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
a72a4bfa 5179 fi
e6cc62c6 5180
a72a4bfa 5181
5005acfe 5182 enablestring=
e46d2a18
VS
5183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5184echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5185 no_cache=0
e46d2a18
VS
5186 # Check whether --enable-snglinst or --disable-snglinst was given.
5187if test "${enable_snglinst+set}" = set; then
5188 enableval="$enable_snglinst"
e6cc62c6 5189
1e6feb95 5190 if test "$enableval" = yes; then
e46d2a18 5191 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5192 else
e46d2a18 5193 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5194 fi
e6cc62c6 5195
10f2d63a 5196else
e6cc62c6 5197
e46d2a18 5198 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5199 if test "x$LINE" != x ; then
5200 eval "DEFAULT_$LINE"
5201 else
5202 no_cache=1
5203 fi
5204
e46d2a18 5205 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5206
e6cc62c6 5207fi;
10f2d63a 5208
e46d2a18 5209 eval "$ac_cv_use_snglinst"
10f2d63a 5210 if test "$no_cache" != 1; then
e46d2a18 5211 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5212 fi
5213
e46d2a18
VS
5214 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5215 echo "$as_me:$LINENO: result: yes" >&5
5216echo "${ECHO_T}yes" >&6
5217 else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220 fi
5221
5222
5223 enablestring=
5224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5225echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5226 no_cache=0
5227 # Check whether --enable-streams or --disable-streams was given.
5228if test "${enable_streams+set}" = set; then
5229 enableval="$enable_streams"
5230
5231 if test "$enableval" = yes; then
5232 ac_cv_use_streams='wxUSE_STREAMS=yes'
5233 else
5234 ac_cv_use_streams='wxUSE_STREAMS=no'
5235 fi
5236
5237else
5238
5239 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5240 if test "x$LINE" != x ; then
5241 eval "DEFAULT_$LINE"
5242 else
5243 no_cache=1
5244 fi
5245
5246 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5247
5248fi;
5249
5250 eval "$ac_cv_use_streams"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5256 echo "$as_me:$LINENO: result: yes" >&5
5257echo "${ECHO_T}yes" >&6
10f2d63a 5258 else
e6cc62c6
VS
5259 echo "$as_me:$LINENO: result: no" >&5
5260echo "${ECHO_T}no" >&6
10f2d63a 5261 fi
e6cc62c6 5262
10f2d63a 5263
5005acfe 5264 enablestring=
e6cc62c6
VS
5265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5266echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5267 no_cache=0
5268 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5269if test "${enable_std_iostreams+set}" = set; then
5270 enableval="$enable_std_iostreams"
e6cc62c6 5271
10f2d63a
VZ
5272 if test "$enableval" = yes; then
5273 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5274 else
5275 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5276 fi
e6cc62c6 5277
10f2d63a 5278else
e6cc62c6 5279
10f2d63a
VZ
5280 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5281 if test "x$LINE" != x ; then
5282 eval "DEFAULT_$LINE"
5283 else
5284 no_cache=1
5285 fi
5286
5287 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5288
e6cc62c6 5289fi;
10f2d63a
VZ
5290
5291 eval "$ac_cv_use_std_iostreams"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5297 echo "$as_me:$LINENO: result: yes" >&5
5298echo "${ECHO_T}yes" >&6
10f2d63a 5299 else
e6cc62c6
VS
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
10f2d63a 5302 fi
e6cc62c6 5303
10f2d63a 5304
5005acfe 5305 enablestring=
e46d2a18
VS
5306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5307echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5308 no_cache=0
e46d2a18
VS
5309 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5310if test "${enable_stopwatch+set}" = set; then
5311 enableval="$enable_stopwatch"
e6cc62c6 5312
24528b0c 5313 if test "$enableval" = yes; then
e46d2a18 5314 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5315 else
e46d2a18 5316 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5317 fi
e6cc62c6 5318
24528b0c 5319else
e6cc62c6 5320
e46d2a18 5321 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
e46d2a18 5328 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5329
e6cc62c6 5330fi;
24528b0c 5331
e46d2a18 5332 eval "$ac_cv_use_stopwatch"
24528b0c 5333 if test "$no_cache" != 1; then
e46d2a18 5334 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5335 fi
5336
e46d2a18 5337 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5338 echo "$as_me:$LINENO: result: yes" >&5
5339echo "${ECHO_T}yes" >&6
24528b0c 5340 else
e6cc62c6
VS
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
24528b0c 5343 fi
e6cc62c6 5344
24528b0c 5345
5005acfe 5346 enablestring=
e46d2a18
VS
5347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5348echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5349 no_cache=0
e46d2a18
VS
5350 # Check whether --enable-system_options or --disable-system_options was given.
5351if test "${enable_system_options+set}" = set; then
5352 enableval="$enable_system_options"
e6cc62c6 5353
10f2d63a 5354 if test "$enableval" = yes; then
e46d2a18 5355 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5356 else
e46d2a18 5357 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5358 fi
e6cc62c6 5359
10f2d63a 5360else
e6cc62c6 5361
e46d2a18 5362 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5363 if test "x$LINE" != x ; then
5364 eval "DEFAULT_$LINE"
5365 else
5366 no_cache=1
5367 fi
5368
e46d2a18 5369 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5370
e6cc62c6 5371fi;
10f2d63a 5372
e46d2a18 5373 eval "$ac_cv_use_system_options"
10f2d63a 5374 if test "$no_cache" != 1; then
e46d2a18 5375 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5376 fi
5377
e46d2a18 5378 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5379 echo "$as_me:$LINENO: result: yes" >&5
5380echo "${ECHO_T}yes" >&6
10f2d63a 5381 else
e6cc62c6
VS
5382 echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6
10f2d63a 5384 fi
e6cc62c6 5385
10f2d63a 5386
5005acfe 5387 enablestring=
e46d2a18
VS
5388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5389echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5390 no_cache=0
e46d2a18
VS
5391 # Check whether --enable-textbuf or --disable-textbuf was given.
5392if test "${enable_textbuf+set}" = set; then
5393 enableval="$enable_textbuf"
e6cc62c6 5394
10f2d63a 5395 if test "$enableval" = yes; then
e46d2a18 5396 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5397 else
e46d2a18 5398 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5399 fi
e6cc62c6 5400
10f2d63a 5401else
e6cc62c6 5402
e46d2a18 5403 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
e46d2a18 5410 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5411
e6cc62c6 5412fi;
10f2d63a 5413
e46d2a18 5414 eval "$ac_cv_use_textbuf"
10f2d63a 5415 if test "$no_cache" != 1; then
e46d2a18 5416 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5417 fi
5418
e46d2a18 5419 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5420 echo "$as_me:$LINENO: result: yes" >&5
5421echo "${ECHO_T}yes" >&6
10f2d63a 5422 else
e6cc62c6
VS
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
10f2d63a 5425 fi
e6cc62c6 5426
10f2d63a 5427
5005acfe 5428 enablestring=
e46d2a18
VS
5429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5430echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5431 no_cache=0
e46d2a18
VS
5432 # Check whether --enable-textfile or --disable-textfile was given.
5433if test "${enable_textfile+set}" = set; then
5434 enableval="$enable_textfile"
e6cc62c6 5435
10f2d63a 5436 if test "$enableval" = yes; then
e46d2a18 5437 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5438 else
e46d2a18 5439 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5440 fi
e6cc62c6 5441
10f2d63a 5442else
e6cc62c6 5443
e46d2a18 5444 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5445 if test "x$LINE" != x ; then
5446 eval "DEFAULT_$LINE"
5447 else
5448 no_cache=1
5449 fi
5450
e46d2a18 5451 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5452
e6cc62c6 5453fi;
10f2d63a 5454
e46d2a18 5455 eval "$ac_cv_use_textfile"
10f2d63a 5456 if test "$no_cache" != 1; then
e46d2a18 5457 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5458 fi
5459
e46d2a18 5460 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5461 echo "$as_me:$LINENO: result: yes" >&5
5462echo "${ECHO_T}yes" >&6
10f2d63a 5463 else
e6cc62c6
VS
5464 echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6
10f2d63a 5466 fi
e6cc62c6 5467
8284b0c5 5468
5005acfe 5469 enablestring=
e46d2a18
VS
5470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5471echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5472 no_cache=0
e46d2a18
VS
5473 # Check whether --enable-timer or --disable-timer was given.
5474if test "${enable_timer+set}" = set; then
5475 enableval="$enable_timer"
e6cc62c6 5476
eb4efbdc 5477 if test "$enableval" = yes; then
e46d2a18 5478 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5479 else
e46d2a18 5480 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5481 fi
e6cc62c6 5482
eb4efbdc 5483else
e6cc62c6 5484
e46d2a18 5485 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
e46d2a18 5492 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5493
e6cc62c6 5494fi;
eb4efbdc 5495
e46d2a18 5496 eval "$ac_cv_use_timer"
eb4efbdc 5497 if test "$no_cache" != 1; then
e46d2a18 5498 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5499 fi
5500
e46d2a18 5501 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5502 echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6
eb4efbdc 5504 else
e6cc62c6
VS
5505 echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6
eb4efbdc 5507 fi
e6cc62c6 5508
eb4efbdc 5509
5005acfe 5510 enablestring=
e46d2a18
VS
5511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5512echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5513 no_cache=0
e46d2a18
VS
5514 # Check whether --enable-unicode or --disable-unicode was given.
5515if test "${enable_unicode+set}" = set; then
5516 enableval="$enable_unicode"
e6cc62c6 5517
4f3c5f06 5518 if test "$enableval" = yes; then
e46d2a18 5519 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5520 else
e46d2a18 5521 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5522 fi
e6cc62c6 5523
4f3c5f06 5524else
e6cc62c6 5525
e46d2a18 5526 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
e46d2a18 5533 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5534
e6cc62c6 5535fi;
4f3c5f06 5536
e46d2a18 5537 eval "$ac_cv_use_unicode"
4f3c5f06 5538 if test "$no_cache" != 1; then
e46d2a18 5539 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5540 fi
5541
e46d2a18 5542 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5543 echo "$as_me:$LINENO: result: yes" >&5
5544echo "${ECHO_T}yes" >&6
4f3c5f06 5545 else
e6cc62c6
VS
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
4f3c5f06 5548 fi
e6cc62c6 5549
52127426 5550
e46d2a18 5551 enablestring=
002ed9af
VS
5552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5553echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
e46d2a18 5554 no_cache=0
002ed9af
VS
5555 # Check whether --enable-sound or --disable-sound was given.
5556if test "${enable_sound+set}" = set; then
5557 enableval="$enable_sound"
e46d2a18
VS
5558
5559 if test "$enableval" = yes; then
002ed9af 5560 ac_cv_use_sound='wxUSE_SOUND=yes'
e46d2a18 5561 else
002ed9af 5562 ac_cv_use_sound='wxUSE_SOUND=no'
e46d2a18
VS
5563 fi
5564
5565else
5566
002ed9af 5567 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
e46d2a18
VS
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
002ed9af 5574 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
e46d2a18
VS
5575
5576fi;
5577
002ed9af 5578 eval "$ac_cv_use_sound"
e46d2a18 5579 if test "$no_cache" != 1; then
002ed9af 5580 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
e46d2a18
VS
5581 fi
5582
002ed9af 5583 if test "$wxUSE_SOUND" = yes; then
e46d2a18
VS
5584 echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589 fi
5590
8284b0c5 5591
5005acfe 5592 enablestring=
e46d2a18
VS
5593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5594echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5595 no_cache=0
e46d2a18
VS
5596 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5597if test "${enable_wxprintfv+set}" = set; then
5598 enableval="$enable_wxprintfv"
e6cc62c6 5599
1e6feb95 5600 if test "$enableval" = yes; then
e46d2a18 5601 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5602 else
e46d2a18 5603 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5604 fi
e6cc62c6 5605
1e6feb95 5606else
e6cc62c6 5607
e46d2a18 5608 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
e46d2a18 5615 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5616
e6cc62c6 5617fi;
1e6feb95 5618
e46d2a18 5619 eval "$ac_cv_use_wxprintfv"
1e6feb95 5620 if test "$no_cache" != 1; then
e46d2a18 5621 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5622 fi
5623
e46d2a18 5624 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5625 echo "$as_me:$LINENO: result: yes" >&5
5626echo "${ECHO_T}yes" >&6
1e6feb95 5627 else
e6cc62c6
VS
5628 echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6
1e6feb95 5630 fi
e6cc62c6 5631
1e6feb95 5632
5005acfe 5633 enablestring=
e46d2a18
VS
5634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5635echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5636 no_cache=0
e46d2a18
VS
5637 # Check whether --enable-zipstream or --disable-zipstream was given.
5638if test "${enable_zipstream+set}" = set; then
5639 enableval="$enable_zipstream"
e6cc62c6 5640
3e44f09d 5641 if test "$enableval" = yes; then
e46d2a18 5642 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5643 else
e46d2a18 5644 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5645 fi
e6cc62c6 5646
3e44f09d 5647else
e6cc62c6 5648
e46d2a18 5649 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
e46d2a18 5656 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5657
e6cc62c6 5658fi;
3e44f09d 5659
e46d2a18 5660 eval "$ac_cv_use_zipstream"
3e44f09d 5661 if test "$no_cache" != 1; then
e46d2a18 5662 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5663 fi
5664
e46d2a18 5665 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5666 echo "$as_me:$LINENO: result: yes" >&5
5667echo "${ECHO_T}yes" >&6
3e44f09d 5668 else
e6cc62c6
VS
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
3e44f09d 5671 fi
e6cc62c6 5672
8284b0c5 5673
7015ef3a
VZ
5674 enablestring=
5675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5676echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5677 no_cache=0
5678 # Check whether --enable-gzstream or --disable-gzstream was given.
5679if test "${enable_gzstream+set}" = set; then
5680 enableval="$enable_gzstream"
5681
5682 if test "$enableval" = yes; then
5683 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5684 else
5685 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5686 fi
5687
5688else
5689
5690 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5698
5699fi;
5700
5701 eval "$ac_cv_use_gzstream"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_GZSTREAM" = yes; then
5707 echo "$as_me:$LINENO: result: yes" >&5
5708echo "${ECHO_T}yes" >&6
5709 else
5710 echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712 fi
5713
5714
52127426 5715
5005acfe 5716 enablestring=
e6cc62c6
VS
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5719 no_cache=0
5720 # Check whether --enable-url or --disable-url was given.
5721if test "${enable_url+set}" = set; then
5722 enableval="$enable_url"
e6cc62c6 5723
4cdb0ab0
VS
5724 if test "$enableval" = yes; then
5725 ac_cv_use_url='wxUSE_URL=yes'
5726 else
5727 ac_cv_use_url='wxUSE_URL=no'
5728 fi
e6cc62c6 5729
4cdb0ab0 5730else
e6cc62c6 5731
4cdb0ab0
VS
5732 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5740
e6cc62c6 5741fi;
4cdb0ab0
VS
5742
5743 eval "$ac_cv_use_url"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
4cdb0ab0 5751 else
e6cc62c6
VS
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
4cdb0ab0 5754 fi
e6cc62c6 5755
4cdb0ab0 5756
5005acfe 5757 enablestring=
e6cc62c6
VS
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5760 no_cache=0
5761 # Check whether --enable-protocol or --disable-protocol was given.
5762if test "${enable_protocol+set}" = set; then
5763 enableval="$enable_protocol"
e6cc62c6 5764
4cdb0ab0
VS
5765 if test "$enableval" = yes; then
5766 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5767 else
5768 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5769 fi
e6cc62c6 5770
4cdb0ab0 5771else
e6cc62c6 5772
4cdb0ab0
VS
5773 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5781
e6cc62c6 5782fi;
4cdb0ab0
VS
5783
5784 eval "$ac_cv_use_protocol"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
4cdb0ab0 5792 else
e6cc62c6
VS
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
4cdb0ab0 5795 fi
e6cc62c6 5796
4cdb0ab0 5797
5005acfe 5798 enablestring=
e6cc62c6
VS
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5801 no_cache=0
5802 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5803if test "${enable_protocol_http+set}" = set; then
5804 enableval="$enable_protocol_http"
e6cc62c6 5805
4cdb0ab0
VS
5806 if test "$enableval" = yes; then
5807 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5808 else
5809 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5810 fi
e6cc62c6 5811
4cdb0ab0 5812else
e6cc62c6 5813
4cdb0ab0
VS
5814 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5822
e6cc62c6 5823fi;
4cdb0ab0
VS
5824
5825 eval "$ac_cv_use_protocol_http"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
4cdb0ab0 5833 else
e6cc62c6
VS
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
4cdb0ab0 5836 fi
e6cc62c6 5837
4cdb0ab0 5838
5005acfe 5839 enablestring=
e6cc62c6
VS
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5842 no_cache=0
5843 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5844if test "${enable_protocol_ftp+set}" = set; then
5845 enableval="$enable_protocol_ftp"
e6cc62c6 5846
4cdb0ab0
VS
5847 if test "$enableval" = yes; then
5848 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5849 else
5850 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5851 fi
e6cc62c6 5852
4cdb0ab0 5853else
e6cc62c6 5854
4cdb0ab0
VS
5855 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5863
e6cc62c6 5864fi;
4cdb0ab0
VS
5865
5866 eval "$ac_cv_use_protocol_ftp"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
4cdb0ab0 5874 else
e6cc62c6
VS
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
4cdb0ab0 5877 fi
e6cc62c6 5878
4cdb0ab0 5879
5005acfe 5880 enablestring=
e6cc62c6
VS
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5883 no_cache=0
5884 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5885if test "${enable_protocol_file+set}" = set; then
5886 enableval="$enable_protocol_file"
e6cc62c6 5887
4cdb0ab0
VS
5888 if test "$enableval" = yes; then
5889 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5890 else
5891 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5892 fi
e6cc62c6 5893
4cdb0ab0 5894else
e6cc62c6 5895
4cdb0ab0
VS
5896 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5904
e6cc62c6 5905fi;
4cdb0ab0
VS
5906
5907 eval "$ac_cv_use_protocol_file"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
4cdb0ab0 5915 else
e6cc62c6
VS
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
4cdb0ab0 5918 fi
e6cc62c6 5919
52127426 5920
8284b0c5
MB
5921
5922
5923
5005acfe 5924 enablestring=
e6cc62c6
VS
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5927 no_cache=0
5928 # Check whether --enable-threads or --disable-threads was given.
5929if test "${enable_threads+set}" = set; then
5930 enableval="$enable_threads"
e6cc62c6 5931
10f2d63a
VZ
5932 if test "$enableval" = yes; then
5933 ac_cv_use_threads='wxUSE_THREADS=yes'
5934 else
5935 ac_cv_use_threads='wxUSE_THREADS=no'
5936 fi
e6cc62c6 5937
10f2d63a 5938else
e6cc62c6 5939
10f2d63a
VZ
5940 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5948
e6cc62c6 5949fi;
10f2d63a
VZ
5950
5951 eval "$ac_cv_use_threads"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
10f2d63a 5959 else
e6cc62c6
VS
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
10f2d63a 5962 fi
e6cc62c6 5963
10f2d63a 5964
b12915c1
VZ
5965if test "$wxUSE_GUI" = "yes"; then
5966
8284b0c5
MB
5967
5968
5005acfe 5969 enablestring=
e6cc62c6
VS
5970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5971echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5972 no_cache=0
5973 # Check whether --enable-docview or --disable-docview was given.
5974if test "${enable_docview+set}" = set; then
5975 enableval="$enable_docview"
e6cc62c6 5976
10f2d63a
VZ
5977 if test "$enableval" = yes; then
5978 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5979 else
5980 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5981 fi
e6cc62c6 5982
10f2d63a 5983else
e6cc62c6 5984
10f2d63a
VZ
5985 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5993
e6cc62c6 5994fi;
10f2d63a
VZ
5995
5996 eval "$ac_cv_use_docview"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
6002 echo "$as_me:$LINENO: result: yes" >&5
6003echo "${ECHO_T}yes" >&6
10f2d63a 6004 else
e6cc62c6
VS
6005 echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6
10f2d63a 6007 fi
e6cc62c6 6008
10f2d63a 6009
5005acfe 6010 enablestring=
e6cc62c6
VS
6011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6012echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
6013 no_cache=0
6014 # Check whether --enable-help or --disable-help was given.
6015if test "${enable_help+set}" = set; then
6016 enableval="$enable_help"
e6cc62c6 6017
10f2d63a
VZ
6018 if test "$enableval" = yes; then
6019 ac_cv_use_help='wxUSE_HELP=yes'
6020 else
6021 ac_cv_use_help='wxUSE_HELP=no'
6022 fi
e6cc62c6 6023
10f2d63a 6024else
e6cc62c6 6025
10f2d63a
VZ
6026 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 6034
e6cc62c6 6035fi;
10f2d63a
VZ
6036
6037 eval "$ac_cv_use_help"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
6043 echo "$as_me:$LINENO: result: yes" >&5
6044echo "${ECHO_T}yes" >&6
10f2d63a 6045 else
e6cc62c6
VS
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
10f2d63a 6048 fi
e6cc62c6 6049
10f2d63a 6050
5005acfe 6051 enablestring=
e6cc62c6
VS
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6053echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
6054 no_cache=0
6055 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6056if test "${enable_mshtmlhelp+set}" = set; then
6057 enableval="$enable_mshtmlhelp"
e6cc62c6 6058
29fd3c0c
VS
6059 if test "$enableval" = yes; then
6060 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6061 else
6062 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6063 fi
e6cc62c6 6064
29fd3c0c 6065else
e6cc62c6 6066
29fd3c0c
VS
6067 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6075
e6cc62c6 6076fi;
29fd3c0c
VS
6077
6078 eval "$ac_cv_use_mshtmlhelp"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6084 echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6
29fd3c0c 6086 else
e6cc62c6
VS
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
29fd3c0c 6089 fi
e6cc62c6 6090
29fd3c0c 6091
5005acfe 6092 enablestring=
e6cc62c6
VS
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6094echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6095 no_cache=0
6096 # Check whether --enable-html or --disable-html was given.
6097if test "${enable_html+set}" = set; then
6098 enableval="$enable_html"
e6cc62c6 6099
3379ed37
VZ
6100 if test "$enableval" = yes; then
6101 ac_cv_use_html='wxUSE_HTML=yes'
6102 else
6103 ac_cv_use_html='wxUSE_HTML=no'
6104 fi
e6cc62c6 6105
3379ed37 6106else
e6cc62c6 6107
3379ed37
VZ
6108 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6116
e6cc62c6 6117fi;
3379ed37
VZ
6118
6119 eval "$ac_cv_use_html"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6125 echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
3379ed37 6127 else
e6cc62c6
VS
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
3379ed37 6130 fi
e6cc62c6 6131
3379ed37 6132
5005acfe 6133 enablestring=
e6cc62c6
VS
6134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6135echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6136 no_cache=0
6137 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6138if test "${enable_htmlhelp+set}" = set; then
6139 enableval="$enable_htmlhelp"
e6cc62c6 6140
3379ed37
VZ
6141 if test "$enableval" = yes; then
6142 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6143 else
6144 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6145 fi
e6cc62c6 6146
3379ed37 6147else
e6cc62c6 6148
3379ed37
VZ
6149 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6150 if test "x$LINE" != x ; then
6151 eval "DEFAULT_$LINE"
6152 else
6153 no_cache=1
6154 fi
6155
6156 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6157
e6cc62c6 6158fi;
3379ed37
VZ
6159
6160 eval "$ac_cv_use_htmlhelp"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6166 echo "$as_me:$LINENO: result: yes" >&5
6167echo "${ECHO_T}yes" >&6
3379ed37 6168 else
e6cc62c6
VS
6169 echo "$as_me:$LINENO: result: no" >&5
6170echo "${ECHO_T}no" >&6
3379ed37 6171 fi
e6cc62c6 6172
3379ed37 6173
5005acfe 6174 enablestring=
e6cc62c6
VS
6175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6176echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6177 no_cache=0
6178 # Check whether --enable-constraints or --disable-constraints was given.
6179if test "${enable_constraints+set}" = set; then
6180 enableval="$enable_constraints"
e6cc62c6 6181
10f2d63a
VZ
6182 if test "$enableval" = yes; then
6183 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6184 else
6185 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6186 fi
e6cc62c6 6187
10f2d63a 6188else
e6cc62c6 6189
10f2d63a
VZ
6190 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6191 if test "x$LINE" != x ; then
6192 eval "DEFAULT_$LINE"
6193 else
6194 no_cache=1
6195 fi
6196
6197 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6198
e6cc62c6 6199fi;
10f2d63a
VZ
6200
6201 eval "$ac_cv_use_constraints"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6207 echo "$as_me:$LINENO: result: yes" >&5
6208echo "${ECHO_T}yes" >&6
10f2d63a 6209 else
e6cc62c6
VS
6210 echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6
10f2d63a 6212 fi
e6cc62c6 6213
10f2d63a 6214
5005acfe 6215 enablestring=
e6cc62c6
VS
6216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6217echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6218 no_cache=0
6219 # Check whether --enable-printarch or --disable-printarch was given.
6220if test "${enable_printarch+set}" = set; then
6221 enableval="$enable_printarch"
e6cc62c6 6222
10f2d63a
VZ
6223 if test "$enableval" = yes; then
6224 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6225 else
6226 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6227 fi
e6cc62c6 6228
10f2d63a 6229else
e6cc62c6 6230
10f2d63a
VZ
6231 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
6238 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6239
e6cc62c6 6240fi;
10f2d63a
VZ
6241
6242 eval "$ac_cv_use_printarch"
6243 if test "$no_cache" != 1; then
6244 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6245 fi
6246
6247 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6248 echo "$as_me:$LINENO: result: yes" >&5
6249echo "${ECHO_T}yes" >&6
10f2d63a 6250 else
e6cc62c6
VS
6251 echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6
10f2d63a 6253 fi
e6cc62c6 6254
10f2d63a 6255
5005acfe 6256 enablestring=
e6cc62c6
VS
6257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6258echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6259 no_cache=0
6260 # Check whether --enable-mdi or --disable-mdi was given.
6261if test "${enable_mdi+set}" = set; then
6262 enableval="$enable_mdi"
e6cc62c6 6263
10f2d63a
VZ
6264 if test "$enableval" = yes; then
6265 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6266 else
6267 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6268 fi
e6cc62c6 6269
10f2d63a 6270else
e6cc62c6 6271
10f2d63a
VZ
6272 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6280
e6cc62c6 6281fi;
10f2d63a
VZ
6282
6283 eval "$ac_cv_use_mdi"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6289 echo "$as_me:$LINENO: result: yes" >&5
6290echo "${ECHO_T}yes" >&6
10f2d63a 6291 else
e6cc62c6
VS
6292 echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
10f2d63a 6294 fi
e6cc62c6 6295
698dcdb6 6296
5005acfe 6297 enablestring=
e6cc62c6
VS
6298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6299echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6300 no_cache=0
6301 # Check whether --enable-loggui or --disable-loggui was given.
6302if test "${enable_loggui+set}" = set; then
6303 enableval="$enable_loggui"
e6cc62c6 6304
1e6feb95
VZ
6305 if test "$enableval" = yes; then
6306 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6307 else
6308 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6309 fi
e6cc62c6 6310
1e6feb95 6311else
e6cc62c6 6312
1e6feb95
VZ
6313 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6314 if test "x$LINE" != x ; then
6315 eval "DEFAULT_$LINE"
6316 else
6317 no_cache=1
6318 fi
6319
6320 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6321
e6cc62c6 6322fi;
1e6feb95
VZ
6323
6324 eval "$ac_cv_use_loggui"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6330 echo "$as_me:$LINENO: result: yes" >&5
6331echo "${ECHO_T}yes" >&6
1e6feb95 6332 else
e6cc62c6
VS
6333 echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6
1e6feb95 6335 fi
e6cc62c6 6336
1e6feb95 6337
5005acfe 6338 enablestring=
e6cc62c6
VS
6339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6340echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6341 no_cache=0
6342 # Check whether --enable-logwin or --disable-logwin was given.
6343if test "${enable_logwin+set}" = set; then
6344 enableval="$enable_logwin"
e6cc62c6 6345
1e6feb95
VZ
6346 if test "$enableval" = yes; then
6347 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6348 else
6349 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6350 fi
e6cc62c6 6351
1e6feb95 6352else
e6cc62c6 6353
1e6feb95
VZ
6354 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
6361 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6362
e6cc62c6 6363fi;
1e6feb95
VZ
6364
6365 eval "$ac_cv_use_logwin"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6371 echo "$as_me:$LINENO: result: yes" >&5
6372echo "${ECHO_T}yes" >&6
1e6feb95 6373 else
e6cc62c6
VS
6374 echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6
1e6feb95 6376 fi
e6cc62c6 6377
1e6feb95 6378
5005acfe 6379 enablestring=
e6cc62c6
VS
6380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6381echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6382 no_cache=0
6383 # Check whether --enable-logdialog or --disable-logdialog was given.
6384if test "${enable_logdialog+set}" = set; then
6385 enableval="$enable_logdialog"
e6cc62c6 6386
69d27ff7
MB
6387 if test "$enableval" = yes; then
6388 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6389 else
6390 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6391 fi
e6cc62c6 6392
69d27ff7 6393else
e6cc62c6 6394
69d27ff7
MB
6395 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6403
e6cc62c6 6404fi;
69d27ff7
MB
6405
6406 eval "$ac_cv_use_logdialog"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6409 fi
6410
6411 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6412 echo "$as_me:$LINENO: result: yes" >&5
6413echo "${ECHO_T}yes" >&6
69d27ff7 6414 else
e6cc62c6
VS
6415 echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6
69d27ff7 6417 fi
e6cc62c6 6418
8284b0c5 6419
52127426 6420
5005acfe 6421 enablestring=
e6cc62c6
VS
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6423echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6424 no_cache=0
6425 # Check whether --enable-postscript or --disable-postscript was given.
6426if test "${enable_postscript+set}" = set; then
6427 enableval="$enable_postscript"
e6cc62c6 6428
10f2d63a
VZ
6429 if test "$enableval" = yes; then
6430 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6431 else
6432 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6433 fi
e6cc62c6 6434
10f2d63a 6435else
e6cc62c6 6436
10f2d63a
VZ
6437 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6445
e6cc62c6 6446fi;
10f2d63a
VZ
6447
6448 eval "$ac_cv_use_postscript"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6454 echo "$as_me:$LINENO: result: yes" >&5
6455echo "${ECHO_T}yes" >&6
10f2d63a 6456 else
e6cc62c6
VS
6457 echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6
10f2d63a 6459 fi
e6cc62c6 6460
8284b0c5
MB
6461
6462
52127426 6463
8284b0c5 6464
5005acfe 6465 enablestring=
e6cc62c6
VS
6466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6467echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6468 no_cache=0
3c907f20
VZ
6469 # Check whether --enable-prologio or --disable-prologio was given.
6470if test "${enable_prologio+set}" = set; then
6471 enableval="$enable_prologio"
e6cc62c6 6472
10f2d63a 6473 if test "$enableval" = yes; then
3c907f20 6474 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6475 else
3c907f20 6476 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6477 fi
e6cc62c6 6478
10f2d63a 6479else
e6cc62c6 6480
3c907f20 6481 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
3c907f20 6488 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6489
e6cc62c6 6490fi;
10f2d63a 6491
3c907f20 6492 eval "$ac_cv_use_prologio"
10f2d63a 6493 if test "$no_cache" != 1; then
3c907f20 6494 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6495 fi
6496
3c907f20 6497 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6498 echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
10f2d63a 6500 else
e6cc62c6
VS
6501 echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
10f2d63a 6503 fi
e6cc62c6 6504
8284b0c5 6505
5005acfe 6506 enablestring=
e6cc62c6
VS
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6508echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6509 no_cache=0
3c907f20
VZ
6510 # Check whether --enable-resources or --disable-resources was given.
6511if test "${enable_resources+set}" = set; then
6512 enableval="$enable_resources"
e6cc62c6 6513
10f2d63a 6514 if test "$enableval" = yes; then
3c907f20 6515 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6516 else
3c907f20 6517 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6518 fi
e6cc62c6 6519
10f2d63a 6520else
e6cc62c6 6521
3c907f20 6522 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
3c907f20 6529 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6530
e6cc62c6 6531fi;
10f2d63a 6532
3c907f20 6533 eval "$ac_cv_use_resources"
10f2d63a 6534 if test "$no_cache" != 1; then
3c907f20 6535 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6536 fi
6537
3c907f20 6538 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6539 echo "$as_me:$LINENO: result: yes" >&5
6540echo "${ECHO_T}yes" >&6
10f2d63a 6541 else
e6cc62c6
VS
6542 echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
10f2d63a 6544 fi
e6cc62c6 6545
8284b0c5
MB
6546
6547
52127426 6548
5005acfe 6549 enablestring=
e6cc62c6
VS
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6552 no_cache=0
6553 # Check whether --enable-clipboard or --disable-clipboard was given.
6554if test "${enable_clipboard+set}" = set; then
6555 enableval="$enable_clipboard"
e6cc62c6 6556
10f2d63a
VZ
6557 if test "$enableval" = yes; then
6558 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6559 else
6560 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6561 fi
e6cc62c6 6562
10f2d63a 6563else
e6cc62c6 6564
10f2d63a
VZ
6565 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6573
e6cc62c6 6574fi;
10f2d63a
VZ
6575
6576 eval "$ac_cv_use_clipboard"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
10f2d63a 6584 else
e6cc62c6
VS
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
10f2d63a 6587 fi
e6cc62c6 6588
10f2d63a 6589
5005acfe 6590 enablestring=
e6cc62c6
VS
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6593 no_cache=0
6594 # Check whether --enable-dnd or --disable-dnd was given.
6595if test "${enable_dnd+set}" = set; then
6596 enableval="$enable_dnd"
e6cc62c6 6597
10f2d63a
VZ
6598 if test "$enableval" = yes; then
6599 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6600 else
6601 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6602 fi
e6cc62c6 6603
10f2d63a 6604else
e6cc62c6 6605
10f2d63a
VZ
6606 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6614
e6cc62c6 6615fi;
10f2d63a
VZ
6616
6617 eval "$ac_cv_use_dnd"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
10f2d63a 6625 else
e6cc62c6
VS
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
10f2d63a 6628 fi
e6cc62c6 6629
10f2d63a 6630
5005acfe 6631 enablestring=
e6cc62c6
VS
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6634 no_cache=0
6635 # Check whether --enable-metafile or --disable-metafile was given.
6636if test "${enable_metafile+set}" = set; then
6637 enableval="$enable_metafile"
e6cc62c6 6638
b64f0a5f
RL
6639 if test "$enableval" = yes; then
6640 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6641 else
6642 ac_cv_use_metafile='wxUSE_METAFILE=no'
6643 fi
e6cc62c6 6644
b64f0a5f 6645else
e6cc62c6 6646
b64f0a5f
RL
6647 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6655
e6cc62c6 6656fi;
b64f0a5f
RL
6657
6658 eval "$ac_cv_use_metafile"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
b64f0a5f 6666 else
e6cc62c6
VS
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
b64f0a5f 6669 fi
e6cc62c6 6670
52127426 6671
8284b0c5 6672
52127426 6673
8284b0c5 6674
5005acfe 6675 enablestring=
e6cc62c6
VS
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6677echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6678 no_cache=0
6679 # Check whether --enable-controls or --disable-controls was given.
6680if test "${enable_controls+set}" = set; then
6681 enableval="$enable_controls"
e6cc62c6 6682
10f2d63a
VZ
6683 if test "$enableval" = yes; then
6684 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6685 else
6686 ac_cv_use_controls='wxUSE_CONTROLS=no'
6687 fi
e6cc62c6 6688
10f2d63a 6689else
e6cc62c6 6690
10f2d63a
VZ
6691 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6699
e6cc62c6 6700fi;
10f2d63a
VZ
6701
6702 eval "$ac_cv_use_controls"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6708 echo "$as_me:$LINENO: result: yes" >&5
6709echo "${ECHO_T}yes" >&6
10f2d63a 6710 else
e6cc62c6
VS
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
10f2d63a 6713 fi
e6cc62c6 6714
10f2d63a
VZ
6715
6716if test "$wxUSE_CONTROLS" = "yes"; then
6717 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6718 DEFAULT_wxUSE_BMPBUTTON=yes
6719 DEFAULT_wxUSE_BUTTON=yes
6720 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6721 DEFAULT_wxUSE_CARET=yes
6722 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6723 DEFAULT_wxUSE_CHECKBOX=yes
6724 DEFAULT_wxUSE_CHECKLISTBOX=yes
6725 DEFAULT_wxUSE_CHOICE=yes
6726 DEFAULT_wxUSE_GAUGE=yes
6727 DEFAULT_wxUSE_GRID=yes
10f2d63a 6728 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6729 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6730 DEFAULT_wxUSE_LISTBOX=yes
6731 DEFAULT_wxUSE_LISTCTRL=yes
6732 DEFAULT_wxUSE_NOTEBOOK=yes
6733 DEFAULT_wxUSE_RADIOBOX=yes
6734 DEFAULT_wxUSE_RADIOBTN=yes
6735 DEFAULT_wxUSE_SASH=yes
6736 DEFAULT_wxUSE_SCROLLBAR=yes
6737 DEFAULT_wxUSE_SLIDER=yes
6738 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6739 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6740 DEFAULT_wxUSE_SPLITTER=yes
6741 DEFAULT_wxUSE_STATBMP=yes
6742 DEFAULT_wxUSE_STATBOX=yes
6743 DEFAULT_wxUSE_STATLINE=yes
6744 DEFAULT_wxUSE_STATUSBAR=yes
6745 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6746 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6747 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6749 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6750 DEFAULT_wxUSE_TOOLTIPS=yes
6751 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6752 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6753 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6754elif test "$wxUSE_CONTROLS" = "no"; then
6755 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6756 DEFAULT_wxUSE_BMPBUTTON=no
6757 DEFAULT_wxUSE_BUTTON=no
6758 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6759 DEFAULT_wxUSE_CARET=no
6760 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6761 DEFAULT_wxUSE_CHECKBOX=no
6762 DEFAULT_wxUSE_CHECKLISTBOX=no
6763 DEFAULT_wxUSE_CHOICE=no
6764 DEFAULT_wxUSE_GAUGE=no
6765 DEFAULT_wxUSE_GRID=no
10f2d63a 6766 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6767 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6768 DEFAULT_wxUSE_LISTBOX=no
6769 DEFAULT_wxUSE_LISTCTRL=no
6770 DEFAULT_wxUSE_NOTEBOOK=no
6771 DEFAULT_wxUSE_RADIOBOX=no
6772 DEFAULT_wxUSE_RADIOBTN=no
6773 DEFAULT_wxUSE_SASH=no
6774 DEFAULT_wxUSE_SCROLLBAR=no
6775 DEFAULT_wxUSE_SLIDER=no
6776 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6777 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6778 DEFAULT_wxUSE_SPLITTER=no
6779 DEFAULT_wxUSE_STATBMP=no
6780 DEFAULT_wxUSE_STATBOX=no
6781 DEFAULT_wxUSE_STATLINE=no
6782 DEFAULT_wxUSE_STATUSBAR=no
6783 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6784 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6785 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6786 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6787 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6788 DEFAULT_wxUSE_TOOLTIPS=no
6789 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6790 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6791 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6792fi
6793
ac0c4cc3
DE
6794## FIXME: This is a blatant hack
6795if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6796 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6797 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6798 # Generic notebook requires tab dialog
6799 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6800 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6801 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6802 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6803fi
6804
8284b0c5 6805
5005acfe 6806 enablestring=
e6cc62c6
VS
6807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6808echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6809 no_cache=0
6810 # Check whether --enable-accel or --disable-accel was given.
6811if test "${enable_accel+set}" = set; then
6812 enableval="$enable_accel"
e6cc62c6 6813
10f2d63a
VZ
6814 if test "$enableval" = yes; then
6815 ac_cv_use_accel='wxUSE_ACCEL=yes'
6816 else
6817 ac_cv_use_accel='wxUSE_ACCEL=no'
6818 fi
e6cc62c6 6819
10f2d63a 6820else
e6cc62c6 6821
10f2d63a
VZ
6822 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6830
e6cc62c6 6831fi;
10f2d63a
VZ
6832
6833 eval "$ac_cv_use_accel"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6839 echo "$as_me:$LINENO: result: yes" >&5
6840echo "${ECHO_T}yes" >&6
10f2d63a 6841 else
e6cc62c6
VS
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
10f2d63a 6844 fi
e6cc62c6 6845
10f2d63a 6846
5005acfe 6847 enablestring=
e6cc62c6
VS
6848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6849echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6850 no_cache=0
1e6feb95
VZ
6851 # Check whether --enable-button or --disable-button was given.
6852if test "${enable_button+set}" = set; then
6853 enableval="$enable_button"
e6cc62c6 6854
10f2d63a 6855 if test "$enableval" = yes; then
1e6feb95 6856 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6857 else
1e6feb95 6858 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6859 fi
e6cc62c6 6860
10f2d63a 6861else
e6cc62c6 6862
1e6feb95 6863 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
1e6feb95 6870 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6871
e6cc62c6 6872fi;
10f2d63a 6873
1e6feb95 6874 eval "$ac_cv_use_button"
10f2d63a 6875 if test "$no_cache" != 1; then
1e6feb95 6876 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6877 fi
6878
1e6feb95 6879 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6880 echo "$as_me:$LINENO: result: yes" >&5
6881echo "${ECHO_T}yes" >&6
10f2d63a 6882 else
e6cc62c6
VS
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
10f2d63a 6885 fi
e6cc62c6 6886
10f2d63a 6887
5005acfe 6888 enablestring=
e6cc62c6
VS
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6891 no_cache=0
6892 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6893if test "${enable_bmpbutton+set}" = set; then
6894 enableval="$enable_bmpbutton"
e6cc62c6 6895
10f2d63a
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6898 else
6899 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6900 fi
e6cc62c6 6901
10f2d63a 6902else
e6cc62c6 6903
10f2d63a
VZ
6904 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6912
e6cc62c6 6913fi;
10f2d63a
VZ
6914
6915 eval "$ac_cv_use_bmpbutton"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
10f2d63a 6923 else
e6cc62c6
VS
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
10f2d63a 6926 fi
e6cc62c6 6927
10f2d63a 6928
5005acfe 6929 enablestring=
e6cc62c6
VS
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6932 no_cache=0
6933 # Check whether --enable-calendar or --disable-calendar was given.
6934if test "${enable_calendar+set}" = set; then
6935 enableval="$enable_calendar"
e6cc62c6 6936
1e6feb95
VZ
6937 if test "$enableval" = yes; then
6938 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6939 else
6940 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6941 fi
e6cc62c6 6942
1e6feb95 6943else
e6cc62c6 6944
1e6feb95
VZ
6945 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6953
e6cc62c6 6954fi;
1e6feb95
VZ
6955
6956 eval "$ac_cv_use_calendar"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
1e6feb95 6964 else
e6cc62c6
VS
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
1e6feb95 6967 fi
e6cc62c6 6968
1e6feb95 6969
5005acfe 6970 enablestring=
e6cc62c6
VS
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6973 no_cache=0
6974 # Check whether --enable-caret or --disable-caret was given.
6975if test "${enable_caret+set}" = set; then
6976 enableval="$enable_caret"
e6cc62c6 6977
1e6feb95
VZ
6978 if test "$enableval" = yes; then
6979 ac_cv_use_caret='wxUSE_CARET=yes'
6980 else
6981 ac_cv_use_caret='wxUSE_CARET=no'
6982 fi
e6cc62c6 6983
1e6feb95 6984else
e6cc62c6 6985
1e6feb95
VZ
6986 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6994
e6cc62c6 6995fi;
1e6feb95
VZ
6996
6997 eval "$ac_cv_use_caret"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
1e6feb95 7005 else
e6cc62c6
VS
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
1e6feb95 7008 fi
e6cc62c6 7009
1e6feb95 7010
5005acfe 7011 enablestring=
e6cc62c6
VS
7012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7013echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
7014 no_cache=0
7015 # Check whether --enable-checkbox or --disable-checkbox was given.
7016if test "${enable_checkbox+set}" = set; then
7017 enableval="$enable_checkbox"
e6cc62c6 7018
10f2d63a
VZ
7019 if test "$enableval" = yes; then
7020 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7021 else
7022 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7023 fi
e6cc62c6 7024
10f2d63a 7025else
e6cc62c6 7026
10f2d63a
VZ
7027 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7028 if test "x$LINE" != x ; then
7029 eval "DEFAULT_$LINE"
7030 else
7031 no_cache=1
7032 fi
7033
7034 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 7035
e6cc62c6 7036fi;
10f2d63a
VZ
7037
7038 eval "$ac_cv_use_checkbox"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
7044 echo "$as_me:$LINENO: result: yes" >&5
7045echo "${ECHO_T}yes" >&6
10f2d63a 7046 else
e6cc62c6
VS
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
10f2d63a 7049 fi
e6cc62c6 7050
10f2d63a 7051
5005acfe 7052 enablestring=
e6cc62c6
VS
7053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7054echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
7055 no_cache=0
7056 # Check whether --enable-checklst or --disable-checklst was given.
7057if test "${enable_checklst+set}" = set; then
7058 enableval="$enable_checklst"
e6cc62c6 7059
10f2d63a
VZ
7060 if test "$enableval" = yes; then
7061 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7062 else
7063 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7064 fi
e6cc62c6 7065
10f2d63a 7066else
e6cc62c6 7067
10f2d63a
VZ
7068 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7076
e6cc62c6 7077fi;
10f2d63a
VZ
7078
7079 eval "$ac_cv_use_checklst"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7085 echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6
10f2d63a 7087 else
e6cc62c6
VS
7088 echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6
10f2d63a 7090 fi
e6cc62c6 7091
10f2d63a 7092
5005acfe 7093 enablestring=
e6cc62c6
VS
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7096 no_cache=0
7097 # Check whether --enable-choice or --disable-choice was given.
7098if test "${enable_choice+set}" = set; then
7099 enableval="$enable_choice"
e6cc62c6 7100
10f2d63a
VZ
7101 if test "$enableval" = yes; then
7102 ac_cv_use_choice='wxUSE_CHOICE=yes'
7103 else
7104 ac_cv_use_choice='wxUSE_CHOICE=no'
7105 fi
e6cc62c6 7106
10f2d63a 7107else
e6cc62c6 7108
10f2d63a
VZ
7109 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7117
e6cc62c6 7118fi;
10f2d63a
VZ
7119
7120 eval "$ac_cv_use_choice"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
10f2d63a 7128 else
e6cc62c6
VS
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
10f2d63a 7131 fi
e6cc62c6 7132
10f2d63a 7133
5005acfe 7134 enablestring=
e6cc62c6
VS
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7137 no_cache=0
7138 # Check whether --enable-combobox or --disable-combobox was given.
7139if test "${enable_combobox+set}" = set; then
7140 enableval="$enable_combobox"
e6cc62c6 7141
10f2d63a
VZ
7142 if test "$enableval" = yes; then
7143 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7144 else
7145 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7146 fi
e6cc62c6 7147
10f2d63a 7148else
e6cc62c6 7149
10f2d63a
VZ
7150 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7158
e6cc62c6 7159fi;
10f2d63a
VZ
7160
7161 eval "$ac_cv_use_combobox"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
10f2d63a 7169 else
e6cc62c6
VS
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
10f2d63a 7172 fi
e6cc62c6 7173
10f2d63a 7174
da494b40 7175 enablestring=
e6cc62c6
VS
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7178 no_cache=0
7179 # Check whether --enable-display or --disable-display was given.
7180if test "${enable_display+set}" = set; then
7181 enableval="$enable_display"
e6cc62c6 7182
da494b40
MB
7183 if test "$enableval" = yes; then
7184 ac_cv_use_display='wxUSE_DISPLAY=yes'
7185 else
7186 ac_cv_use_display='wxUSE_DISPLAY=no'
7187 fi
e6cc62c6 7188
da494b40 7189else
e6cc62c6 7190
da494b40
MB
7191 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7199
e6cc62c6 7200fi;
da494b40
MB
7201
7202 eval "$ac_cv_use_display"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
da494b40 7210 else
e6cc62c6
VS
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
da494b40 7213 fi
e6cc62c6 7214
da494b40 7215
5005acfe 7216 enablestring=
e6cc62c6
VS
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7219 no_cache=0
7220 # Check whether --enable-gauge or --disable-gauge was given.
7221if test "${enable_gauge+set}" = set; then
7222 enableval="$enable_gauge"
e6cc62c6 7223
10f2d63a
VZ
7224 if test "$enableval" = yes; then
7225 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7226 else
7227 ac_cv_use_gauge='wxUSE_GAUGE=no'
7228 fi
e6cc62c6 7229
10f2d63a 7230else
e6cc62c6 7231
10f2d63a
VZ
7232 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7240
e6cc62c6 7241fi;
10f2d63a
VZ
7242
7243 eval "$ac_cv_use_gauge"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
10f2d63a 7251 else
e6cc62c6
VS
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
10f2d63a 7254 fi
e6cc62c6 7255
10f2d63a 7256
5005acfe 7257 enablestring=
e6cc62c6
VS
7258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7259echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7260 no_cache=0
7261 # Check whether --enable-grid or --disable-grid was given.
7262if test "${enable_grid+set}" = set; then
7263 enableval="$enable_grid"
e6cc62c6 7264
10f2d63a
VZ
7265 if test "$enableval" = yes; then
7266 ac_cv_use_grid='wxUSE_GRID=yes'
7267 else
7268 ac_cv_use_grid='wxUSE_GRID=no'
7269 fi
e6cc62c6 7270
10f2d63a 7271else
e6cc62c6 7272
10f2d63a
VZ
7273 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7281
e6cc62c6 7282fi;
10f2d63a
VZ
7283
7284 eval "$ac_cv_use_grid"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7290 echo "$as_me:$LINENO: result: yes" >&5
7291echo "${ECHO_T}yes" >&6
10f2d63a 7292 else
e6cc62c6
VS
7293 echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
10f2d63a 7295 fi
e6cc62c6 7296
10f2d63a 7297
5005acfe 7298 enablestring=
e6cc62c6
VS
7299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7300echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7301 no_cache=0
7302 # Check whether --enable-imaglist or --disable-imaglist was given.
7303if test "${enable_imaglist+set}" = set; then
7304 enableval="$enable_imaglist"
e6cc62c6 7305
10f2d63a
VZ
7306 if test "$enableval" = yes; then
7307 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7308 else
7309 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7310 fi
e6cc62c6 7311
10f2d63a 7312else
e6cc62c6 7313
10f2d63a
VZ
7314 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
7321 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7322
e6cc62c6 7323fi;
10f2d63a
VZ
7324
7325 eval "$ac_cv_use_imaglist"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7328 fi
7329
7330 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7331 echo "$as_me:$LINENO: result: yes" >&5
7332echo "${ECHO_T}yes" >&6
10f2d63a 7333 else
e6cc62c6
VS
7334 echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6
10f2d63a 7336 fi
e6cc62c6 7337
10f2d63a 7338
0e012a93
VZ
7339 enablestring=
7340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7341echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7342 no_cache=0
7343 # Check whether --enable-listbook or --disable-listbook was given.
7344if test "${enable_listbook+set}" = set; then
7345 enableval="$enable_listbook"
7346
7347 if test "$enableval" = yes; then
7348 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7349 else
7350 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7351 fi
7352
7353else
7354
7355 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7363
7364fi;
7365
7366 eval "$ac_cv_use_listbook"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7369 fi
7370
7371 if test "$wxUSE_LISTBOOK" = yes; then
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${ECHO_T}yes" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377 fi
7378
7379
5005acfe 7380 enablestring=
e6cc62c6
VS
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7382echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7383 no_cache=0
7384 # Check whether --enable-listbox or --disable-listbox was given.
7385if test "${enable_listbox+set}" = set; then
7386 enableval="$enable_listbox"
e6cc62c6 7387
10f2d63a
VZ
7388 if test "$enableval" = yes; then
7389 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7390 else
7391 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7392 fi
e6cc62c6 7393
10f2d63a 7394else
e6cc62c6 7395
10f2d63a
VZ
7396 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7404
e6cc62c6 7405fi;
10f2d63a
VZ
7406
7407 eval "$ac_cv_use_listbox"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
10f2d63a 7415 else
e6cc62c6
VS
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
10f2d63a 7418 fi
e6cc62c6 7419
10f2d63a 7420
5005acfe 7421 enablestring=
e6cc62c6
VS
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7423echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7424 no_cache=0
7425 # Check whether --enable-listctrl or --disable-listctrl was given.
7426if test "${enable_listctrl+set}" = set; then
7427 enableval="$enable_listctrl"
e6cc62c6 7428
10f2d63a
VZ
7429 if test "$enableval" = yes; then
7430 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7431 else
7432 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7433 fi
e6cc62c6 7434
10f2d63a 7435else
e6cc62c6 7436
10f2d63a
VZ
7437 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7445
e6cc62c6 7446fi;
10f2d63a
VZ
7447
7448 eval "$ac_cv_use_listctrl"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7454 echo "$as_me:$LINENO: result: yes" >&5
7455echo "${ECHO_T}yes" >&6
10f2d63a 7456 else
e6cc62c6
VS
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
10f2d63a 7459 fi
e6cc62c6 7460
10f2d63a 7461
5005acfe 7462 enablestring=
e6cc62c6
VS
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7464echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7465 no_cache=0
7466 # Check whether --enable-notebook or --disable-notebook was given.
7467if test "${enable_notebook+set}" = set; then
7468 enableval="$enable_notebook"
e6cc62c6 7469
10f2d63a
VZ
7470 if test "$enableval" = yes; then
7471 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7472 else
7473 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7474 fi
e6cc62c6 7475
10f2d63a 7476else
e6cc62c6 7477
10f2d63a
VZ
7478 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7486
e6cc62c6 7487fi;
10f2d63a
VZ
7488
7489 eval "$ac_cv_use_notebook"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
10f2d63a 7497 else
e6cc62c6
VS
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
10f2d63a 7500 fi
e6cc62c6 7501
10f2d63a 7502
5005acfe 7503 enablestring=
e6cc62c6
VS
7504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7505echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7506 no_cache=0
7507 # Check whether --enable-radiobox or --disable-radiobox was given.
7508if test "${enable_radiobox+set}" = set; then
7509 enableval="$enable_radiobox"
e6cc62c6 7510
10f2d63a
VZ
7511 if test "$enableval" = yes; then
7512 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7513 else
7514 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7515 fi
e6cc62c6 7516
10f2d63a 7517else
e6cc62c6 7518
10f2d63a
VZ
7519 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7527
e6cc62c6 7528fi;
10f2d63a
VZ
7529
7530 eval "$ac_cv_use_radiobox"
7531 if test "$no_cache" != 1; then
7532 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7533 fi
7534
7535 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
10f2d63a 7538 else
e6cc62c6
VS
7539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
10f2d63a 7541 fi
e6cc62c6 7542
10f2d63a 7543
5005acfe 7544 enablestring=
e6cc62c6
VS
7545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7546echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7547 no_cache=0
7548 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7549if test "${enable_radiobtn+set}" = set; then
7550 enableval="$enable_radiobtn"
e6cc62c6 7551
10f2d63a
VZ
7552 if test "$enableval" = yes; then
7553 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7554 else
7555 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7556 fi
e6cc62c6 7557
10f2d63a 7558else
e6cc62c6 7559
10f2d63a
VZ
7560 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
7567 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7568
e6cc62c6 7569fi;
10f2d63a
VZ
7570
7571 eval "$ac_cv_use_radiobtn"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7577 echo "$as_me:$LINENO: result: yes" >&5
7578echo "${ECHO_T}yes" >&6
10f2d63a 7579 else
e6cc62c6
VS
7580 echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6
10f2d63a 7582 fi
e6cc62c6 7583
10f2d63a 7584
5005acfe 7585 enablestring=
e6cc62c6
VS
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7587echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7588 no_cache=0
7589 # Check whether --enable-sash or --disable-sash was given.
7590if test "${enable_sash+set}" = set; then
7591 enableval="$enable_sash"
e6cc62c6 7592
10f2d63a
VZ
7593 if test "$enableval" = yes; then
7594 ac_cv_use_sash='wxUSE_SASH=yes'
7595 else
7596 ac_cv_use_sash='wxUSE_SASH=no'
7597 fi
e6cc62c6 7598
10f2d63a 7599else
e6cc62c6 7600
10f2d63a
VZ
7601 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7609
e6cc62c6 7610fi;
10f2d63a
VZ
7611
7612 eval "$ac_cv_use_sash"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7618 echo "$as_me:$LINENO: result: yes" >&5
7619echo "${ECHO_T}yes" >&6
10f2d63a 7620 else
e6cc62c6
VS
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
10f2d63a 7623 fi
e6cc62c6 7624
10f2d63a 7625
5005acfe 7626 enablestring=
e6cc62c6
VS
7627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7628echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7629 no_cache=0
7630 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7631if test "${enable_scrollbar+set}" = set; then
7632 enableval="$enable_scrollbar"
e6cc62c6 7633
10f2d63a
VZ
7634 if test "$enableval" = yes; then
7635 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7636 else
7637 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7638 fi
e6cc62c6 7639
10f2d63a 7640else
e6cc62c6 7641
10f2d63a
VZ
7642 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7650
e6cc62c6 7651fi;
10f2d63a
VZ
7652
7653 eval "$ac_cv_use_scrollbar"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7659 echo "$as_me:$LINENO: result: yes" >&5
7660echo "${ECHO_T}yes" >&6
10f2d63a 7661 else
e6cc62c6
VS
7662 echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
10f2d63a 7664 fi
e6cc62c6 7665
10f2d63a 7666
5005acfe 7667 enablestring=
e6cc62c6
VS
7668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7669echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7670 no_cache=0
7671 # Check whether --enable-slider or --disable-slider was given.
7672if test "${enable_slider+set}" = set; then
7673 enableval="$enable_slider"
e6cc62c6 7674
10f2d63a
VZ
7675 if test "$enableval" = yes; then
7676 ac_cv_use_slider='wxUSE_SLIDER=yes'
7677 else
7678 ac_cv_use_slider='wxUSE_SLIDER=no'
7679 fi
e6cc62c6 7680
10f2d63a 7681else
e6cc62c6 7682
10f2d63a
VZ
7683 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7691
e6cc62c6 7692fi;
10f2d63a
VZ
7693
7694 eval "$ac_cv_use_slider"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7700 echo "$as_me:$LINENO: result: yes" >&5
7701echo "${ECHO_T}yes" >&6
10f2d63a 7702 else
e6cc62c6
VS
7703 echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
10f2d63a 7705 fi
e6cc62c6 7706
10f2d63a 7707
5005acfe 7708 enablestring=
e6cc62c6
VS
7709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7710echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7711 no_cache=0
7712 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7713if test "${enable_spinbtn+set}" = set; then
7714 enableval="$enable_spinbtn"
e6cc62c6 7715
10f2d63a
VZ
7716 if test "$enableval" = yes; then
7717 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7718 else
7719 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7720 fi
e6cc62c6 7721
10f2d63a 7722else
e6cc62c6 7723
10f2d63a
VZ
7724 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7732
e6cc62c6 7733fi;
10f2d63a
VZ
7734
7735 eval "$ac_cv_use_spinbtn"
7736 if test "$no_cache" != 1; then
7737 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7738 fi
7739
7740 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7741 echo "$as_me:$LINENO: result: yes" >&5
7742echo "${ECHO_T}yes" >&6
10f2d63a 7743 else
e6cc62c6
VS
7744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
10f2d63a 7746 fi
e6cc62c6 7747
10f2d63a 7748
5005acfe 7749 enablestring=
e6cc62c6
VS
7750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7751echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7752 no_cache=0
7753 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7754if test "${enable_spinctrl+set}" = set; then
7755 enableval="$enable_spinctrl"
e6cc62c6 7756
56cfaa52
RR
7757 if test "$enableval" = yes; then
7758 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7759 else
7760 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7761 fi
e6cc62c6 7762
56cfaa52 7763else
e6cc62c6 7764
56cfaa52
RR
7765 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7766 if test "x$LINE" != x ; then
7767 eval "DEFAULT_$LINE"
7768 else
7769 no_cache=1
7770 fi
7771
7772 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7773
e6cc62c6 7774fi;
56cfaa52
RR
7775
7776 eval "$ac_cv_use_spinctrl"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7782 echo "$as_me:$LINENO: result: yes" >&5
7783echo "${ECHO_T}yes" >&6
56cfaa52 7784 else
e6cc62c6
VS
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
56cfaa52 7787 fi
e6cc62c6 7788
56cfaa52 7789
5005acfe 7790 enablestring=
e6cc62c6
VS
7791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7792echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7793 no_cache=0
7794 # Check whether --enable-splitter or --disable-splitter was given.
7795if test "${enable_splitter+set}" = set; then
7796 enableval="$enable_splitter"
e6cc62c6 7797
10f2d63a
VZ
7798 if test "$enableval" = yes; then
7799 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7800 else
7801 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7802 fi
e6cc62c6 7803
10f2d63a 7804else
e6cc62c6 7805
10f2d63a
VZ
7806 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7807 if test "x$LINE" != x ; then
7808 eval "DEFAULT_$LINE"
7809 else
7810 no_cache=1
7811 fi
7812
7813 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7814
e6cc62c6 7815fi;
10f2d63a
VZ
7816
7817 eval "$ac_cv_use_splitter"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7823 echo "$as_me:$LINENO: result: yes" >&5
7824echo "${ECHO_T}yes" >&6
10f2d63a 7825 else
e6cc62c6
VS
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
10f2d63a 7828 fi
e6cc62c6 7829
10f2d63a 7830
5005acfe 7831 enablestring=
e6cc62c6
VS
7832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7833echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7834 no_cache=0
7835 # Check whether --enable-statbmp or --disable-statbmp was given.
7836if test "${enable_statbmp+set}" = set; then
7837 enableval="$enable_statbmp"
e6cc62c6 7838
10f2d63a
VZ
7839 if test "$enableval" = yes; then
7840 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7841 else
7842 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7843 fi
e6cc62c6 7844
10f2d63a 7845else
e6cc62c6 7846
10f2d63a
VZ
7847 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7848 if test "x$LINE" != x ; then
7849 eval "DEFAULT_$LINE"
7850 else
7851 no_cache=1
7852 fi
7853
7854 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7855
e6cc62c6 7856fi;
10f2d63a
VZ
7857
7858 eval "$ac_cv_use_statbmp"
7859 if test "$no_cache" != 1; then
7860 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7861 fi
7862
7863 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7864 echo "$as_me:$LINENO: result: yes" >&5
7865echo "${ECHO_T}yes" >&6
10f2d63a 7866 else
e6cc62c6
VS
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
10f2d63a 7869 fi
e6cc62c6 7870
10f2d63a 7871
5005acfe 7872 enablestring=
e6cc62c6
VS
7873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7874echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7875 no_cache=0
7876 # Check whether --enable-statbox or --disable-statbox was given.
7877if test "${enable_statbox+set}" = set; then
7878 enableval="$enable_statbox"
e6cc62c6 7879
10f2d63a
VZ
7880 if test "$enableval" = yes; then
7881 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7882 else
7883 ac_cv_use_statbox='wxUSE_STATBOX=no'
7884 fi
e6cc62c6 7885
10f2d63a 7886else
e6cc62c6 7887
10f2d63a
VZ
7888 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7889 if test "x$LINE" != x ; then
7890 eval "DEFAULT_$LINE"
7891 else
7892 no_cache=1
7893 fi
7894
7895 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7896
e6cc62c6 7897fi;
10f2d63a
VZ
7898
7899 eval "$ac_cv_use_statbox"
7900 if test "$no_cache" != 1; then
7901 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7902 fi
7903
7904 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7905 echo "$as_me:$LINENO: result: yes" >&5
7906echo "${ECHO_T}yes" >&6
10f2d63a 7907 else
e6cc62c6
VS
7908 echo "$as_me:$LINENO: result: no" >&5
7909echo "${ECHO_T}no" >&6
10f2d63a 7910 fi
e6cc62c6 7911
10f2d63a 7912
5005acfe 7913 enablestring=
e6cc62c6
VS
7914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7915echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7916 no_cache=0
7917 # Check whether --enable-statline or --disable-statline was given.
7918if test "${enable_statline+set}" = set; then
7919 enableval="$enable_statline"
e6cc62c6 7920
10f2d63a
VZ
7921 if test "$enableval" = yes; then
7922 ac_cv_use_statline='wxUSE_STATLINE=yes'
7923 else
7924 ac_cv_use_statline='wxUSE_STATLINE=no'
7925 fi
e6cc62c6 7926
10f2d63a 7927else
e6cc62c6 7928
10f2d63a
VZ
7929 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7937
e6cc62c6 7938fi;
10f2d63a
VZ
7939
7940 eval "$ac_cv_use_statline"
7941 if test "$no_cache" != 1; then
7942 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7943 fi
7944
7945 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7946 echo "$as_me:$LINENO: result: yes" >&5
7947echo "${ECHO_T}yes" >&6
10f2d63a 7948 else
e6cc62c6
VS
7949 echo "$as_me:$LINENO: result: no" >&5
7950echo "${ECHO_T}no" >&6
10f2d63a 7951 fi
e6cc62c6 7952
10f2d63a 7953
5005acfe 7954 enablestring=
e6cc62c6
VS
7955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7956echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7957 no_cache=0
7958 # Check whether --enable-stattext or --disable-stattext was given.
7959if test "${enable_stattext+set}" = set; then
7960 enableval="$enable_stattext"
e6cc62c6 7961
1e6feb95
VZ
7962 if test "$enableval" = yes; then
7963 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7964 else
7965 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7966 fi
e6cc62c6 7967
1e6feb95 7968else
e6cc62c6 7969
1e6feb95
VZ
7970 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7971 if test "x$LINE" != x ; then
7972 eval "DEFAULT_$LINE"
7973 else
7974 no_cache=1
7975 fi
7976
7977 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7978
e6cc62c6 7979fi;
1e6feb95
VZ
7980
7981 eval "$ac_cv_use_stattext"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7987 echo "$as_me:$LINENO: result: yes" >&5
7988echo "${ECHO_T}yes" >&6
1e6feb95 7989 else
e6cc62c6
VS
7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
1e6feb95 7992 fi
e6cc62c6 7993
1e6feb95 7994
5005acfe 7995 enablestring=
e6cc62c6
VS
7996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7997echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7998 no_cache=0
7999 # Check whether --enable-statusbar or --disable-statusbar was given.
8000if test "${enable_statusbar+set}" = set; then
8001 enableval="$enable_statusbar"
e6cc62c6 8002
10f2d63a
VZ
8003 if test "$enableval" = yes; then
8004 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8005 else
8006 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8007 fi
e6cc62c6 8008
10f2d63a 8009else
e6cc62c6 8010
10f2d63a
VZ
8011 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
8018 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 8019
e6cc62c6 8020fi;
10f2d63a
VZ
8021
8022 eval "$ac_cv_use_statusbar"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
8028 echo "$as_me:$LINENO: result: yes" >&5
8029echo "${ECHO_T}yes" >&6
10f2d63a 8030 else
e6cc62c6
VS
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
10f2d63a 8033 fi
e6cc62c6 8034
10f2d63a 8035
5005acfe 8036 enablestring=
e6cc62c6
VS
8037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8038echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
8039 no_cache=0
8040 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8041if test "${enable_tabdialog+set}" = set; then
8042 enableval="$enable_tabdialog"
e6cc62c6 8043
10f2d63a
VZ
8044 if test "$enableval" = yes; then
8045 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8046 else
8047 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8048 fi
e6cc62c6 8049
10f2d63a 8050else
e6cc62c6 8051
10f2d63a
VZ
8052 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8060
e6cc62c6 8061fi;
10f2d63a
VZ
8062
8063 eval "$ac_cv_use_tabdialog"
8064 if test "$no_cache" != 1; then
8065 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8066 fi
8067
8068 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8069 echo "$as_me:$LINENO: result: yes" >&5
8070echo "${ECHO_T}yes" >&6
10f2d63a 8071 else
e6cc62c6
VS
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
10f2d63a 8074 fi
e6cc62c6 8075
10f2d63a 8076
5005acfe 8077 enablestring=
e6cc62c6
VS
8078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8079echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8080 no_cache=0
8081 # Check whether --enable-textctrl or --disable-textctrl was given.
8082if test "${enable_textctrl+set}" = set; then
8083 enableval="$enable_textctrl"
e6cc62c6 8084
1e6feb95
VZ
8085 if test "$enableval" = yes; then
8086 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8087 else
8088 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8089 fi
e6cc62c6 8090
1e6feb95 8091else
e6cc62c6 8092
1e6feb95
VZ
8093 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8094 if test "x$LINE" != x ; then
8095 eval "DEFAULT_$LINE"
8096 else
8097 no_cache=1
8098 fi
8099
8100 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8101
e6cc62c6 8102fi;
1e6feb95
VZ
8103
8104 eval "$ac_cv_use_textctrl"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8110 echo "$as_me:$LINENO: result: yes" >&5
8111echo "${ECHO_T}yes" >&6
1e6feb95 8112 else
e6cc62c6
VS
8113 echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6
1e6feb95 8115 fi
e6cc62c6 8116
1e6feb95 8117
5005acfe 8118 enablestring=
e6cc62c6
VS
8119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8120echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8121 no_cache=0
8122 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8123if test "${enable_togglebtn+set}" = set; then
8124 enableval="$enable_togglebtn"
e6cc62c6 8125
1db8dc4a
VZ
8126 if test "$enableval" = yes; then
8127 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8128 else
8129 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8130 fi
e6cc62c6 8131
1db8dc4a 8132else
e6cc62c6 8133
1db8dc4a
VZ
8134 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8135 if test "x$LINE" != x ; then
8136 eval "DEFAULT_$LINE"
8137 else
8138 no_cache=1
8139 fi
8140
8141 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8142
e6cc62c6 8143fi;
1db8dc4a
VZ
8144
8145 eval "$ac_cv_use_togglebtn"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8151 echo "$as_me:$LINENO: result: yes" >&5
8152echo "${ECHO_T}yes" >&6
1db8dc4a 8153 else
e6cc62c6
VS
8154 echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6
1db8dc4a 8156 fi
e6cc62c6 8157
1db8dc4a 8158
5005acfe 8159 enablestring=
e6cc62c6
VS
8160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8161echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8162 no_cache=0
8163 # Check whether --enable-toolbar or --disable-toolbar was given.
8164if test "${enable_toolbar+set}" = set; then
8165 enableval="$enable_toolbar"
e6cc62c6 8166
10f2d63a
VZ
8167 if test "$enableval" = yes; then
8168 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8169 else
8170 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8171 fi
e6cc62c6 8172
10f2d63a 8173else
e6cc62c6 8174
10f2d63a
VZ
8175 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8176 if test "x$LINE" != x ; then
8177 eval "DEFAULT_$LINE"
8178 else
8179 no_cache=1
8180 fi
8181
8182 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8183
e6cc62c6 8184fi;
10f2d63a
VZ
8185
8186 eval "$ac_cv_use_toolbar"
8187 if test "$no_cache" != 1; then
8188 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8189 fi
8190
8191 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8192 echo "$as_me:$LINENO: result: yes" >&5
8193echo "${ECHO_T}yes" >&6
10f2d63a 8194 else
e6cc62c6
VS
8195 echo "$as_me:$LINENO: result: no" >&5
8196echo "${ECHO_T}no" >&6
10f2d63a 8197 fi
e6cc62c6 8198
10f2d63a 8199
5005acfe 8200 enablestring=
e6cc62c6
VS
8201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8202echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8203 no_cache=0
8204 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8205if test "${enable_tbarnative+set}" = set; then
8206 enableval="$enable_tbarnative"
e6cc62c6 8207
360d6699
VZ
8208 if test "$enableval" = yes; then
8209 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8210 else
8211 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8212 fi
e6cc62c6 8213
360d6699 8214else
e6cc62c6 8215
360d6699
VZ
8216 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8217 if test "x$LINE" != x ; then
8218 eval "DEFAULT_$LINE"
8219 else
8220 no_cache=1
8221 fi
8222
8223 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8224
e6cc62c6 8225fi;
360d6699
VZ
8226
8227 eval "$ac_cv_use_tbarnative"
8228 if test "$no_cache" != 1; then
8229 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8230 fi
8231
8232 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8233 echo "$as_me:$LINENO: result: yes" >&5
8234echo "${ECHO_T}yes" >&6
360d6699 8235 else
e6cc62c6
VS
8236 echo "$as_me:$LINENO: result: no" >&5
8237echo "${ECHO_T}no" >&6
360d6699 8238 fi
e6cc62c6 8239
360d6699 8240
5005acfe 8241 enablestring=
e6cc62c6
VS
8242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8243echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8244 no_cache=0
8245 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8246if test "${enable_tbarsmpl+set}" = set; then
8247 enableval="$enable_tbarsmpl"
e6cc62c6 8248
360d6699
VZ
8249 if test "$enableval" = yes; then
8250 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8251 else
8252 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8253 fi
e6cc62c6 8254
360d6699 8255else
e6cc62c6 8256
360d6699
VZ
8257 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8258 if test "x$LINE" != x ; then
8259 eval "DEFAULT_$LINE"
8260 else
8261 no_cache=1
8262 fi
8263
8264 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8265
e6cc62c6 8266fi;
360d6699
VZ
8267
8268 eval "$ac_cv_use_tbarsmpl"
8269 if test "$no_cache" != 1; then
8270 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8271 fi
8272
8273 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8274 echo "$as_me:$LINENO: result: yes" >&5
8275echo "${ECHO_T}yes" >&6
360d6699 8276 else
e6cc62c6
VS
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
360d6699 8279 fi
e6cc62c6 8280
360d6699 8281
5005acfe 8282 enablestring=
e6cc62c6
VS
8283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8284echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8285 no_cache=0
8286 # Check whether --enable-treectrl or --disable-treectrl was given.
8287if test "${enable_treectrl+set}" = set; then
8288 enableval="$enable_treectrl"
e6cc62c6 8289
10f2d63a
VZ
8290 if test "$enableval" = yes; then
8291 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8292 else
8293 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8294 fi
e6cc62c6 8295
10f2d63a 8296else
e6cc62c6 8297
10f2d63a
VZ
8298 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8299 if test "x$LINE" != x ; then
8300 eval "DEFAULT_$LINE"
8301 else
8302 no_cache=1
8303 fi
8304
8305 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8306
e6cc62c6 8307fi;
10f2d63a 8308
1e6feb95
VZ
8309 eval "$ac_cv_use_treectrl"
8310 if test "$no_cache" != 1; then
8311 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8312 fi
8313
8314 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8315 echo "$as_me:$LINENO: result: yes" >&5
8316echo "${ECHO_T}yes" >&6
1e6feb95 8317 else
e6cc62c6
VS
8318 echo "$as_me:$LINENO: result: no" >&5
8319echo "${ECHO_T}no" >&6
1e6feb95 8320 fi
e6cc62c6 8321
1e6feb95 8322
5005acfe 8323 enablestring=
e6cc62c6
VS
8324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8325echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8326 no_cache=0
8327 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8328if test "${enable_tipwindow+set}" = set; then
8329 enableval="$enable_tipwindow"
e6cc62c6 8330
9926e4a4
VZ
8331 if test "$enableval" = yes; then
8332 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8333 else
8334 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8335 fi
e6cc62c6 8336
9926e4a4 8337else
e6cc62c6 8338
9926e4a4
VZ
8339 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8340 if test "x$LINE" != x ; then
8341 eval "DEFAULT_$LINE"
8342 else
8343 no_cache=1
8344 fi
8345
8346 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8347
e6cc62c6 8348fi;
9926e4a4
VZ
8349
8350 eval "$ac_cv_use_tipwindow"
8351 if test "$no_cache" != 1; then
8352 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8353 fi
8354
8355 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8356 echo "$as_me:$LINENO: result: yes" >&5
8357echo "${ECHO_T}yes" >&6
9926e4a4 8358 else
e6cc62c6
VS
8359 echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
9926e4a4 8361 fi
e6cc62c6 8362
9926e4a4 8363
5005acfe 8364 enablestring=
e6cc62c6
VS
8365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8366echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8367 no_cache=0
8368 # Check whether --enable-popupwin or --disable-popupwin was given.
8369if test "${enable_popupwin+set}" = set; then
8370 enableval="$enable_popupwin"
e6cc62c6 8371
9f41d601
RR
8372 if test "$enableval" = yes; then
8373 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8374 else
8375 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8376 fi
e6cc62c6 8377
9f41d601 8378else
e6cc62c6 8379
9f41d601
RR
8380 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8381 if test "x$LINE" != x ; then
8382 eval "DEFAULT_$LINE"
8383 else
8384 no_cache=1
8385 fi
8386
8387 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8388
e6cc62c6 8389fi;
9f41d601
RR
8390
8391 eval "$ac_cv_use_popupwin"
8392 if test "$no_cache" != 1; then
8393 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8394 fi
8395
8396 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8397 echo "$as_me:$LINENO: result: yes" >&5
8398echo "${ECHO_T}yes" >&6
9f41d601 8399 else
e6cc62c6
VS
8400 echo "$as_me:$LINENO: result: no" >&5
8401echo "${ECHO_T}no" >&6
9f41d601 8402 fi
e6cc62c6 8403
52127426 8404
8284b0c5
MB
8405
8406
5005acfe 8407 enablestring=
e6cc62c6
VS
8408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8409echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8410 no_cache=0
8411 # Check whether --enable-commondlg or --disable-commondlg was given.
8412if test "${enable_commondlg+set}" = set; then
8413 enableval="$enable_commondlg"
e6cc62c6 8414
1e6feb95
VZ
8415 if test "$enableval" = yes; then
8416 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8417 else
8418 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8419 fi
e6cc62c6 8420
1e6feb95 8421else
e6cc62c6 8422
1e6feb95
VZ
8423 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8424 if test "x$LINE" != x ; then
8425 eval "DEFAULT_$LINE"
8426 else
8427 no_cache=1
8428 fi
8429
8430 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8431
e6cc62c6 8432fi;
1e6feb95
VZ
8433
8434 eval "$ac_cv_use_commondlg"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8440 echo "$as_me:$LINENO: result: yes" >&5
8441echo "${ECHO_T}yes" >&6
1e6feb95 8442 else
e6cc62c6
VS
8443 echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6
1e6feb95 8445 fi
e6cc62c6 8446
1e6feb95 8447
5005acfe 8448 enablestring=
e6cc62c6
VS
8449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8450echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8451 no_cache=0
8452 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8453if test "${enable_choicedlg+set}" = set; then
8454 enableval="$enable_choicedlg"
e6cc62c6 8455
1e6feb95
VZ
8456 if test "$enableval" = yes; then
8457 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8458 else
8459 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8460 fi
e6cc62c6 8461
1e6feb95 8462else
e6cc62c6 8463
1e6feb95
VZ
8464 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8465 if test "x$LINE" != x ; then
8466 eval "DEFAULT_$LINE"
8467 else
8468 no_cache=1
8469 fi
8470
8471 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8472
e6cc62c6 8473fi;
1e6feb95
VZ
8474
8475 eval "$ac_cv_use_choicedlg"
8476 if test "$no_cache" != 1; then
8477 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8478 fi
8479
8480 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8481 echo "$as_me:$LINENO: result: yes" >&5
8482echo "${ECHO_T}yes" >&6
1e6feb95 8483 else
e6cc62c6
VS
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
1e6feb95 8486 fi
e6cc62c6 8487
1e6feb95 8488
5005acfe 8489 enablestring=
e6cc62c6
VS
8490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8491echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8492 no_cache=0
8493 # Check whether --enable-coldlg or --disable-coldlg was given.
8494if test "${enable_coldlg+set}" = set; then
8495 enableval="$enable_coldlg"
e6cc62c6 8496
1e6feb95
VZ
8497 if test "$enableval" = yes; then
8498 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8499 else
8500 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8501 fi
e6cc62c6 8502
1e6feb95 8503else
e6cc62c6 8504
1e6feb95
VZ
8505 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8506 if test "x$LINE" != x ; then
8507 eval "DEFAULT_$LINE"
8508 else
8509 no_cache=1
8510 fi
8511
8512 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8513
e6cc62c6 8514fi;
1e6feb95
VZ
8515
8516 eval "$ac_cv_use_coldlg"
8517 if test "$no_cache" != 1; then
8518 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8519 fi
8520
8521 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8522 echo "$as_me:$LINENO: result: yes" >&5
8523echo "${ECHO_T}yes" >&6
1e6feb95 8524 else
e6cc62c6
VS
8525 echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6
1e6feb95 8527 fi
e6cc62c6 8528
1e6feb95 8529
5005acfe 8530 enablestring=
e6cc62c6
VS
8531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8532echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8533 no_cache=0
8534 # Check whether --enable-filedlg or --disable-filedlg was given.
8535if test "${enable_filedlg+set}" = set; then
8536 enableval="$enable_filedlg"
e6cc62c6 8537
1e6feb95
VZ
8538 if test "$enableval" = yes; then
8539 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8540 else
8541 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8542 fi
e6cc62c6 8543
1e6feb95 8544else
e6cc62c6 8545
1e6feb95
VZ
8546 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8547 if test "x$LINE" != x ; then
8548 eval "DEFAULT_$LINE"
8549 else
8550 no_cache=1
8551 fi
8552
8553 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8554
e6cc62c6 8555fi;
1e6feb95
VZ
8556
8557 eval "$ac_cv_use_filedlg"
8558 if test "$no_cache" != 1; then
8559 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8560 fi
8561
8562 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8563 echo "$as_me:$LINENO: result: yes" >&5
8564echo "${ECHO_T}yes" >&6
1e6feb95 8565 else
e6cc62c6
VS
8566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
1e6feb95 8568 fi
e6cc62c6 8569
1e6feb95 8570
5005acfe 8571 enablestring=
e6cc62c6
VS
8572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8573echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8574 no_cache=0
69d27ff7
MB
8575 # Check whether --enable-finddlg or --disable-finddlg was given.
8576if test "${enable_finddlg+set}" = set; then
8577 enableval="$enable_finddlg"
e6cc62c6 8578
8db37e06 8579 if test "$enableval" = yes; then
69d27ff7 8580 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8581 else
69d27ff7 8582 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8583 fi
e6cc62c6 8584
8db37e06 8585else
e6cc62c6 8586
8db37e06
VZ
8587 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
69d27ff7 8594 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8595
e6cc62c6 8596fi;
8db37e06 8597
69d27ff7 8598 eval "$ac_cv_use_finddlg"
8db37e06 8599 if test "$no_cache" != 1; then
69d27ff7 8600 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8601 fi
8602
8603 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
8db37e06 8606 else
e6cc62c6
VS
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8db37e06 8609 fi
e6cc62c6 8610
8db37e06 8611
5005acfe 8612 enablestring=
e6cc62c6
VS
8613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8614echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8615 no_cache=0
8616 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8617if test "${enable_fontdlg+set}" = set; then
8618 enableval="$enable_fontdlg"
e6cc62c6 8619
1e6feb95
VZ
8620 if test "$enableval" = yes; then
8621 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8622 else
8623 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8624 fi
e6cc62c6 8625
1e6feb95 8626else
e6cc62c6 8627
1e6feb95
VZ
8628 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8629 if test "x$LINE" != x ; then
8630 eval "DEFAULT_$LINE"
8631 else
8632 no_cache=1
8633 fi
8634
8635 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8636
e6cc62c6 8637fi;
1e6feb95
VZ
8638
8639 eval "$ac_cv_use_fontdlg"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8645 echo "$as_me:$LINENO: result: yes" >&5
8646echo "${ECHO_T}yes" >&6
1e6feb95 8647 else
e6cc62c6
VS
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
1e6feb95 8650 fi
e6cc62c6 8651
1e6feb95 8652
5005acfe 8653 enablestring=
e6cc62c6
VS
8654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8655echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8656 no_cache=0
8657 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8658if test "${enable_dirdlg+set}" = set; then
8659 enableval="$enable_dirdlg"
e6cc62c6 8660
1e6feb95
VZ
8661 if test "$enableval" = yes; then
8662 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8663 else
8664 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8665 fi
e6cc62c6 8666
1e6feb95 8667else
e6cc62c6 8668
1e6feb95
VZ
8669 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8670 if test "x$LINE" != x ; then
8671 eval "DEFAULT_$LINE"
8672 else
8673 no_cache=1
8674 fi
8675
8676 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8677
e6cc62c6 8678fi;
1e6feb95
VZ
8679
8680 eval "$ac_cv_use_dirdlg"
10f2d63a 8681 if test "$no_cache" != 1; then
1e6feb95 8682 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8683 fi
8684
1e6feb95 8685 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8686 echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
10f2d63a 8688 else
e6cc62c6
VS
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
10f2d63a 8691 fi
e6cc62c6 8692
698dcdb6 8693
5005acfe 8694 enablestring=
e6cc62c6
VS
8695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8696echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8697 no_cache=0
1e6feb95
VZ
8698 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8699if test "${enable_msgdlg+set}" = set; then
8700 enableval="$enable_msgdlg"
e6cc62c6 8701
10f2d63a 8702 if test "$enableval" = yes; then
1e6feb95 8703 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8704 else
1e6feb95 8705 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8706 fi
e6cc62c6 8707
10f2d63a 8708else
e6cc62c6 8709
1e6feb95 8710 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
1e6feb95 8717 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8718
e6cc62c6 8719fi;
10f2d63a 8720
1e6feb95 8721 eval "$ac_cv_use_msgdlg"
10f2d63a 8722 if test "$no_cache" != 1; then
1e6feb95 8723 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8724 fi
8725
1e6feb95 8726 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8727 echo "$as_me:$LINENO: result: yes" >&5
8728echo "${ECHO_T}yes" >&6
10f2d63a 8729 else
e6cc62c6
VS
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
10f2d63a 8732 fi
e6cc62c6 8733
10f2d63a 8734
5005acfe 8735 enablestring=
e6cc62c6
VS
8736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8737echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8738 no_cache=0
1e6feb95
VZ
8739 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8740if test "${enable_numberdlg+set}" = set; then
8741 enableval="$enable_numberdlg"
e6cc62c6 8742
10f2d63a 8743 if test "$enableval" = yes; then
1e6feb95 8744 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8745 else
1e6feb95 8746 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8747 fi
e6cc62c6 8748
10f2d63a 8749else
e6cc62c6 8750
1e6feb95 8751 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8752 if test "x$LINE" != x ; then
8753 eval "DEFAULT_$LINE"
8754 else
8755 no_cache=1
8756 fi
8757
1e6feb95 8758 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8759
e6cc62c6 8760fi;
10f2d63a 8761
1e6feb95 8762 eval "$ac_cv_use_numberdlg"
10f2d63a 8763 if test "$no_cache" != 1; then
1e6feb95 8764 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8765 fi
8766
1e6feb95 8767 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8768 echo "$as_me:$LINENO: result: yes" >&5
8769echo "${ECHO_T}yes" >&6
10f2d63a 8770 else
e6cc62c6
VS
8771 echo "$as_me:$LINENO: result: no" >&5
8772echo "${ECHO_T}no" >&6
10f2d63a 8773 fi
e6cc62c6 8774
10f2d63a 8775
5005acfe 8776 enablestring=
e6cc62c6
VS
8777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8778echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8779 no_cache=0
8780 # Check whether --enable-splash or --disable-splash was given.
8781if test "${enable_splash+set}" = set; then
8782 enableval="$enable_splash"
e6cc62c6 8783
cbca9943
VZ
8784 if test "$enableval" = yes; then
8785 ac_cv_use_splash='wxUSE_SPLASH=yes'
8786 else
8787 ac_cv_use_splash='wxUSE_SPLASH=no'
8788 fi
e6cc62c6 8789
cbca9943 8790else
e6cc62c6 8791
cbca9943
VZ
8792 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8793 if test "x$LINE" != x ; then
8794 eval "DEFAULT_$LINE"
8795 else
8796 no_cache=1
8797 fi
8798
8799 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8800
e6cc62c6 8801fi;
cbca9943
VZ
8802
8803 eval "$ac_cv_use_splash"
8804 if test "$no_cache" != 1; then
8805 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8806 fi
8807
8808 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8809 echo "$as_me:$LINENO: result: yes" >&5
8810echo "${ECHO_T}yes" >&6
cbca9943 8811 else
e6cc62c6
VS
8812 echo "$as_me:$LINENO: result: no" >&5
8813echo "${ECHO_T}no" >&6
cbca9943 8814 fi
e6cc62c6 8815
cbca9943 8816
5005acfe 8817 enablestring=
e6cc62c6
VS
8818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8819echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8820 no_cache=0
8821 # Check whether --enable-textdlg or --disable-textdlg was given.
8822if test "${enable_textdlg+set}" = set; then
8823 enableval="$enable_textdlg"
e6cc62c6 8824
10f2d63a
VZ
8825 if test "$enableval" = yes; then
8826 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8827 else
8828 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8829 fi
e6cc62c6 8830
10f2d63a 8831else
e6cc62c6 8832
10f2d63a
VZ
8833 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8834 if test "x$LINE" != x ; then
8835 eval "DEFAULT_$LINE"
8836 else
8837 no_cache=1
8838 fi
8839
8840 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8841
e6cc62c6 8842fi;
10f2d63a
VZ
8843
8844 eval "$ac_cv_use_textdlg"
8845 if test "$no_cache" != 1; then
8846 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8847 fi
8848
8849 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8850 echo "$as_me:$LINENO: result: yes" >&5
8851echo "${ECHO_T}yes" >&6
10f2d63a 8852 else
e6cc62c6
VS
8853 echo "$as_me:$LINENO: result: no" >&5
8854echo "${ECHO_T}no" >&6
10f2d63a 8855 fi
e6cc62c6 8856
10f2d63a 8857
5005acfe 8858 enablestring=
e6cc62c6
VS
8859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8860echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8861 no_cache=0
8862 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8863if test "${enable_tipdlg+set}" = set; then
8864 enableval="$enable_tipdlg"
e6cc62c6 8865
10f2d63a
VZ
8866 if test "$enableval" = yes; then
8867 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8868 else
8869 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8870 fi
e6cc62c6 8871
10f2d63a 8872else
e6cc62c6 8873
10f2d63a
VZ
8874 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8875 if test "x$LINE" != x ; then
8876 eval "DEFAULT_$LINE"
8877 else
8878 no_cache=1
8879 fi
8880
8881 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8882
e6cc62c6 8883fi;
10f2d63a
VZ
8884
8885 eval "$ac_cv_use_tipdlg"
8886 if test "$no_cache" != 1; then
8887 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8888 fi
8889
8890 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8891 echo "$as_me:$LINENO: result: yes" >&5
8892echo "${ECHO_T}yes" >&6
10f2d63a 8893 else
e6cc62c6
VS
8894 echo "$as_me:$LINENO: result: no" >&5
8895echo "${ECHO_T}no" >&6
10f2d63a 8896 fi
e6cc62c6 8897
10f2d63a 8898
5005acfe 8899 enablestring=
e6cc62c6
VS
8900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8901echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8902 no_cache=0
8903 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8904if test "${enable_progressdlg+set}" = set; then
8905 enableval="$enable_progressdlg"
e6cc62c6 8906
10f2d63a
VZ
8907 if test "$enableval" = yes; then
8908 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8909 else
8910 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8911 fi
e6cc62c6 8912
10f2d63a 8913else
e6cc62c6 8914
10f2d63a
VZ
8915 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8916 if test "x$LINE" != x ; then
8917 eval "DEFAULT_$LINE"
8918 else
8919 no_cache=1
8920 fi
8921
8922 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8923
e6cc62c6 8924fi;
10f2d63a
VZ
8925
8926 eval "$ac_cv_use_progressdlg"
8927 if test "$no_cache" != 1; then
8928 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8929 fi
8930
8931 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8932 echo "$as_me:$LINENO: result: yes" >&5
8933echo "${ECHO_T}yes" >&6
10f2d63a 8934 else
e6cc62c6
VS
8935 echo "$as_me:$LINENO: result: no" >&5
8936echo "${ECHO_T}no" >&6
10f2d63a 8937 fi
e6cc62c6 8938
10f2d63a 8939
5005acfe 8940 enablestring=
e6cc62c6
VS
8941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8942echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8943 no_cache=0
8944 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8945if test "${enable_wizarddlg+set}" = set; then
8946 enableval="$enable_wizarddlg"
e6cc62c6 8947
b1f5d087
VZ
8948 if test "$enableval" = yes; then
8949 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8950 else
8951 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8952 fi
e6cc62c6 8953
b1f5d087 8954else
e6cc62c6 8955
b1f5d087
VZ
8956 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8957 if test "x$LINE" != x ; then
8958 eval "DEFAULT_$LINE"
8959 else
8960 no_cache=1
8961 fi
8962
8963 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8964
e6cc62c6 8965fi;
b1f5d087
VZ
8966
8967 eval "$ac_cv_use_wizarddlg"
8968 if test "$no_cache" != 1; then
8969 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8970 fi
8971
8972 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8973 echo "$as_me:$LINENO: result: yes" >&5
8974echo "${ECHO_T}yes" >&6
b1f5d087 8975 else
e6cc62c6
VS
8976 echo "$as_me:$LINENO: result: no" >&5
8977echo "${ECHO_T}no" >&6
b1f5d087 8978 fi
e6cc62c6 8979
8284b0c5
MB
8980
8981
52127426 8982
5005acfe 8983 enablestring=
e6cc62c6
VS
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8986 no_cache=0
8987 # Check whether --enable-menus or --disable-menus was given.
8988if test "${enable_menus+set}" = set; then
8989 enableval="$enable_menus"
e6cc62c6 8990
1e6feb95
VZ
8991 if test "$enableval" = yes; then
8992 ac_cv_use_menus='wxUSE_MENUS=yes'
8993 else
8994 ac_cv_use_menus='wxUSE_MENUS=no'
8995 fi
e6cc62c6 8996
1e6feb95 8997else
e6cc62c6 8998
1e6feb95
VZ
8999 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 9007
e6cc62c6 9008fi;
1e6feb95
VZ
9009
9010 eval "$ac_cv_use_menus"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
1e6feb95 9018 else
e6cc62c6
VS
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
1e6feb95 9021 fi
e6cc62c6 9022
1e6feb95 9023
5005acfe 9024 enablestring=
e6cc62c6
VS
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
9027 no_cache=0
9028 # Check whether --enable-miniframe or --disable-miniframe was given.
9029if test "${enable_miniframe+set}" = set; then
9030 enableval="$enable_miniframe"
e6cc62c6 9031
10f2d63a
VZ
9032 if test "$enableval" = yes; then
9033 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9034 else
9035 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9036 fi
e6cc62c6 9037
10f2d63a 9038else
e6cc62c6 9039
10f2d63a
VZ
9040 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 9048
e6cc62c6 9049fi;
10f2d63a
VZ
9050
9051 eval "$ac_cv_use_miniframe"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
10f2d63a 9059 else
e6cc62c6
VS
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
10f2d63a 9062 fi
e6cc62c6 9063
10f2d63a 9064
5005acfe 9065 enablestring=
e6cc62c6
VS
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9068 no_cache=0
9069 # Check whether --enable-tooltips or --disable-tooltips was given.
9070if test "${enable_tooltips+set}" = set; then
9071 enableval="$enable_tooltips"
e6cc62c6 9072
10f2d63a
VZ
9073 if test "$enableval" = yes; then
9074 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9075 else
9076 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9077 fi
e6cc62c6 9078
10f2d63a 9079else
e6cc62c6 9080
10f2d63a
VZ
9081 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9089
e6cc62c6 9090fi;
10f2d63a
VZ
9091
9092 eval "$ac_cv_use_tooltips"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
10f2d63a 9100 else
e6cc62c6
VS
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
10f2d63a 9103 fi
e6cc62c6 9104
10f2d63a 9105
5005acfe 9106 enablestring=
e6cc62c6
VS
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9109 no_cache=0
9110 # Check whether --enable-splines or --disable-splines was given.
9111if test "${enable_splines+set}" = set; then
9112 enableval="$enable_splines"
e6cc62c6 9113
10f2d63a
VZ
9114 if test "$enableval" = yes; then
9115 ac_cv_use_splines='wxUSE_SPLINES=yes'
9116 else
9117 ac_cv_use_splines='wxUSE_SPLINES=no'
9118 fi
e6cc62c6 9119
10f2d63a 9120else
e6cc62c6 9121
10f2d63a
VZ
9122 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9130
e6cc62c6 9131fi;
10f2d63a
VZ
9132
9133 eval "$ac_cv_use_splines"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
10f2d63a 9141 else
e6cc62c6
VS
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
10f2d63a 9144 fi
e6cc62c6 9145
10f2d63a 9146
5005acfe 9147 enablestring=
e6cc62c6
VS
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9150 no_cache=0
9151 # Check whether --enable-validators or --disable-validators was given.
9152if test "${enable_validators+set}" = set; then
9153 enableval="$enable_validators"
e6cc62c6 9154
10f2d63a
VZ
9155 if test "$enableval" = yes; then
9156 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9157 else
9158 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9159 fi
e6cc62c6 9160
10f2d63a 9161else
e6cc62c6 9162
10f2d63a
VZ
9163 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9171
e6cc62c6 9172fi;
10f2d63a
VZ
9173
9174 eval "$ac_cv_use_validators"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
10f2d63a 9182 else
e6cc62c6
VS
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
10f2d63a 9185 fi
e6cc62c6 9186
10f2d63a 9187
5005acfe 9188 enablestring=
e6cc62c6
VS
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9191 no_cache=0
9192 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9193if test "${enable_busyinfo+set}" = set; then
9194 enableval="$enable_busyinfo"
e6cc62c6 9195
10f2d63a
VZ
9196 if test "$enableval" = yes; then
9197 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9198 else
9199 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9200 fi
e6cc62c6 9201
10f2d63a 9202else
e6cc62c6 9203
10f2d63a
VZ
9204 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9212
e6cc62c6 9213fi;
10f2d63a
VZ
9214
9215 eval "$ac_cv_use_busyinfo"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
10f2d63a 9223 else
e6cc62c6
VS
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
10f2d63a 9226 fi
e6cc62c6 9227
10f2d63a 9228
5005acfe 9229 enablestring=
e6cc62c6
VS
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9232 no_cache=0
9233 # Check whether --enable-joystick or --disable-joystick was given.
9234if test "${enable_joystick+set}" = set; then
9235 enableval="$enable_joystick"
e6cc62c6 9236
f6bcfd97
BP
9237 if test "$enableval" = yes; then
9238 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9239 else
9240 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9241 fi
e6cc62c6 9242
f6bcfd97 9243else
e6cc62c6 9244
f6bcfd97
BP
9245 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9253
e6cc62c6 9254fi;
f6bcfd97
BP
9255
9256 eval "$ac_cv_use_joystick"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
f6bcfd97 9264 else
e6cc62c6
VS
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
f6bcfd97 9267 fi
e6cc62c6 9268
698dcdb6 9269
5005acfe 9270 enablestring=
e6cc62c6
VS
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9273 no_cache=0
9274 # Check whether --enable-metafile or --disable-metafile was given.
9275if test "${enable_metafile+set}" = set; then
9276 enableval="$enable_metafile"
e6cc62c6 9277
1e6feb95
VZ
9278 if test "$enableval" = yes; then
9279 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9280 else
9281 ac_cv_use_metafile='wxUSE_METAFILE=no'
9282 fi
e6cc62c6 9283
1e6feb95 9284else
e6cc62c6 9285
1e6feb95
VZ
9286 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9294
e6cc62c6 9295fi;
1e6feb95
VZ
9296
9297 eval "$ac_cv_use_metafile"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
1e6feb95 9305 else
e6cc62c6
VS
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
1e6feb95 9308 fi
e6cc62c6 9309
1e6feb95 9310
5005acfe 9311 enablestring=
e6cc62c6
VS
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9314 no_cache=0
9315 # Check whether --enable-dragimage or --disable-dragimage was given.
9316if test "${enable_dragimage+set}" = set; then
9317 enableval="$enable_dragimage"
e6cc62c6 9318
24fd6d87
VZ
9319 if test "$enableval" = yes; then
9320 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9321 else
9322 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9323 fi
e6cc62c6 9324
24fd6d87 9325else
e6cc62c6 9326
24fd6d87
VZ
9327 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9335
e6cc62c6 9336fi;
24fd6d87
VZ
9337
9338 eval "$ac_cv_use_dragimage"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
24fd6d87 9346 else
e6cc62c6
VS
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
24fd6d87 9349 fi
e6cc62c6 9350
52127426 9351
7bb2947d 9352 enablestring=
e6cc62c6
VS
9353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9354echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9355 no_cache=0
9356 # Check whether --enable-accessibility or --disable-accessibility was given.
9357if test "${enable_accessibility+set}" = set; then
9358 enableval="$enable_accessibility"
e6cc62c6 9359
7bb2947d
MB
9360 if test "$enableval" = yes; then
9361 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9362 else
9363 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9364 fi
e6cc62c6 9365
7bb2947d 9366else
e6cc62c6 9367
7bb2947d
MB
9368 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9369 if test "x$LINE" != x ; then
9370 eval "DEFAULT_$LINE"
9371 else
9372 no_cache=1
9373 fi
9374
9375 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9376
e6cc62c6 9377fi;
7bb2947d
MB
9378
9379 eval "$ac_cv_use_accessibility"
9380 if test "$no_cache" != 1; then
9381 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9382 fi
9383
9384 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9385 echo "$as_me:$LINENO: result: yes" >&5
9386echo "${ECHO_T}yes" >&6
7bb2947d 9387 else
e6cc62c6
VS
9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
7bb2947d 9390 fi
e6cc62c6 9391
7bb2947d 9392
8284b0c5
MB
9393
9394
5005acfe 9395 enablestring=
e6cc62c6
VS
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9398 no_cache=0
9399 # Check whether --enable-palette or --disable-palette was given.
9400if test "${enable_palette+set}" = set; then
9401 enableval="$enable_palette"
e6cc62c6 9402
edae8572
VZ
9403 if test "$enableval" = yes; then
9404 ac_cv_use_palette='wxUSE_PALETTE=yes'
9405 else
9406 ac_cv_use_palette='wxUSE_PALETTE=no'
9407 fi
e6cc62c6 9408
edae8572 9409else
e6cc62c6 9410
edae8572
VZ
9411 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9419
e6cc62c6 9420fi;
edae8572
VZ
9421
9422 eval "$ac_cv_use_palette"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
edae8572 9430 else
e6cc62c6
VS
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
edae8572 9433 fi
e6cc62c6 9434
edae8572 9435
5005acfe 9436 enablestring=
e6cc62c6
VS
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9439 no_cache=0
9440 # Check whether --enable-image or --disable-image was given.
9441if test "${enable_image+set}" = set; then
9442 enableval="$enable_image"
e6cc62c6 9443
0046ff7c
VS
9444 if test "$enableval" = yes; then
9445 ac_cv_use_image='wxUSE_IMAGE=yes'
9446 else
9447 ac_cv_use_image='wxUSE_IMAGE=no'
9448 fi
e6cc62c6 9449
0046ff7c 9450else
e6cc62c6 9451
0046ff7c
VS
9452 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9460
e6cc62c6 9461fi;
0046ff7c
VS
9462
9463 eval "$ac_cv_use_image"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
0046ff7c 9471 else
e6cc62c6
VS
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
0046ff7c 9474 fi
e6cc62c6 9475
0046ff7c 9476
5005acfe 9477 enablestring=
e6cc62c6
VS
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9480 no_cache=0
9481 # Check whether --enable-gif or --disable-gif was given.
9482if test "${enable_gif+set}" = set; then
9483 enableval="$enable_gif"
e6cc62c6 9484
10f2d63a
VZ
9485 if test "$enableval" = yes; then
9486 ac_cv_use_gif='wxUSE_GIF=yes'
9487 else
9488 ac_cv_use_gif='wxUSE_GIF=no'
9489 fi
e6cc62c6 9490
10f2d63a 9491else
e6cc62c6 9492
10f2d63a
VZ
9493 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9501
e6cc62c6 9502fi;
10f2d63a
VZ
9503
9504 eval "$ac_cv_use_gif"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
10f2d63a 9512 else
e6cc62c6
VS
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
10f2d63a 9515 fi
e6cc62c6 9516
10f2d63a 9517
5005acfe 9518 enablestring=
e6cc62c6
VS
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9521 no_cache=0
9522 # Check whether --enable-pcx or --disable-pcx was given.
9523if test "${enable_pcx+set}" = set; then
9524 enableval="$enable_pcx"
e6cc62c6 9525
10f2d63a
VZ
9526 if test "$enableval" = yes; then
9527 ac_cv_use_pcx='wxUSE_PCX=yes'
9528 else
9529 ac_cv_use_pcx='wxUSE_PCX=no'
9530 fi
e6cc62c6 9531
10f2d63a 9532else
e6cc62c6 9533
10f2d63a
VZ
9534 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9542
e6cc62c6 9543fi;
10f2d63a
VZ
9544
9545 eval "$ac_cv_use_pcx"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
10f2d63a 9553 else
e6cc62c6
VS
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
10f2d63a 9556 fi
e6cc62c6 9557
10f2d63a 9558
5005acfe 9559 enablestring=
e6cc62c6
VS
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9562 no_cache=0
9563 # Check whether --enable-iff or --disable-iff was given.
9564if test "${enable_iff+set}" = set; then
9565 enableval="$enable_iff"
e6cc62c6 9566
4b6b4dfc
RR
9567 if test "$enableval" = yes; then
9568 ac_cv_use_iff='wxUSE_IFF=yes'
9569 else
9570 ac_cv_use_iff='wxUSE_IFF=no'
9571 fi
e6cc62c6 9572
4b6b4dfc 9573else
e6cc62c6 9574
4b6b4dfc
RR
9575 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9583
e6cc62c6 9584fi;
4b6b4dfc
RR
9585
9586 eval "$ac_cv_use_iff"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
4b6b4dfc 9594 else
e6cc62c6
VS
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
4b6b4dfc 9597 fi
e6cc62c6 9598
4b6b4dfc 9599
5005acfe 9600 enablestring=
e6cc62c6
VS
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9602echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9603 no_cache=0
9604 # Check whether --enable-pnm or --disable-pnm was given.
9605if test "${enable_pnm+set}" = set; then
9606 enableval="$enable_pnm"
e6cc62c6 9607
10f2d63a
VZ
9608 if test "$enableval" = yes; then
9609 ac_cv_use_pnm='wxUSE_PNM=yes'
9610 else
9611 ac_cv_use_pnm='wxUSE_PNM=no'
9612 fi
e6cc62c6 9613
10f2d63a 9614else
e6cc62c6 9615
10f2d63a
VZ
9616 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9624
e6cc62c6 9625fi;
10f2d63a
VZ
9626
9627 eval "$ac_cv_use_pnm"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9633 echo "$as_me:$LINENO: result: yes" >&5
9634echo "${ECHO_T}yes" >&6
10f2d63a 9635 else
e6cc62c6
VS
9636 echo "$as_me:$LINENO: result: no" >&5
9637echo "${ECHO_T}no" >&6
10f2d63a 9638 fi
e6cc62c6 9639
10f2d63a 9640
5005acfe 9641 enablestring=
e6cc62c6
VS
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9644 no_cache=0
69d27ff7
MB
9645 # Check whether --enable-xpm or --disable-xpm was given.
9646if test "${enable_xpm+set}" = set; then
9647 enableval="$enable_xpm"
e6cc62c6 9648
0046ff7c 9649 if test "$enableval" = yes; then
69d27ff7 9650 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9651 else
69d27ff7 9652 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9653 fi
e6cc62c6 9654
0046ff7c 9655else
e6cc62c6 9656
0046ff7c
VS
9657 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
69d27ff7 9664 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9665
e6cc62c6 9666fi;
0046ff7c 9667
69d27ff7 9668 eval "$ac_cv_use_xpm"
0046ff7c 9669 if test "$no_cache" != 1; then
69d27ff7 9670 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9671 fi
9672
9673 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
0046ff7c 9676 else
e6cc62c6
VS
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
0046ff7c 9679 fi
e6cc62c6 9680
0046ff7c 9681
5005acfe 9682 enablestring=
e6cc62c6
VS
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9684echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9685 no_cache=0
c7206e64
VS
9686 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9687if test "${enable_ico_cur+set}" = set; then
9688 enableval="$enable_ico_cur"
e6cc62c6 9689
658974ae 9690 if test "$enableval" = yes; then
c7206e64 9691 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9692 else
c7206e64 9693 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9694 fi
e6cc62c6 9695
658974ae 9696else
e6cc62c6 9697
658974ae
VS
9698 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
c7206e64 9705 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9706
e6cc62c6 9707fi;
658974ae 9708
c7206e64 9709 eval "$ac_cv_use_ico_cur"
658974ae 9710 if test "$no_cache" != 1; then
c7206e64 9711 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9712 fi
9713
9714 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6
658974ae 9717 else
e6cc62c6
VS
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
658974ae 9720 fi
e6cc62c6 9721
658974ae 9722
b12915c1
VZ
9723fi
9724
029b47ad
VS
9725
9726
9727 enablestring=
9728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9729echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9730 no_cache=0
9731 # Check whether --enable-official_build or --disable-official_build was given.
9732if test "${enable_official_build+set}" = set; then
9733 enableval="$enable_official_build"
9734
9735 if test "$enableval" = yes; then
9736 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9737 else
9738 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9739 fi
9740
9741else
9742
9743 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9744 if test "x$LINE" != x ; then
9745 eval "DEFAULT_$LINE"
9746 else
9747 no_cache=1
9748 fi
9749
9750 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9751
9752fi;
9753
9754 eval "$ac_cv_use_official_build"
9755 if test "$no_cache" != 1; then
9756 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9757 fi
9758
9759 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9760 echo "$as_me:$LINENO: result: yes" >&5
9761echo "${ECHO_T}yes" >&6
9762 else
9763 echo "$as_me:$LINENO: result: no" >&5
9764echo "${ECHO_T}no" >&6
9765 fi
9766
9767# Check whether --enable-vendor or --disable-vendor was given.
9768if test "${enable_vendor+set}" = set; then
9769 enableval="$enable_vendor"
9770 VENDOR="$enableval"
9771fi;
9772if test "x$VENDOR" = "x"; then
9773 VENDOR="custom"
9774fi
9775
d558c907
VS
9776case "${host}" in
9777 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9778 PATH_IFS=';'
d558c907
VS
9779 ;;
9780 *)
9781 PATH_IFS=':'
d558c907
VS
9782 ;;
9783esac
9784
8284b0c5
MB
9785
9786
10f2d63a
VZ
9787 echo "saving argument cache $wx_arg_cache_file"
9788 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9789
8284b0c5 9790
e6cc62c6
VS
9791
9792echo "$as_me:$LINENO: checking for toolkit" >&5
9793echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9794
9795# In Wine, we need to default to MSW, not GTK or MOTIF
9796if test "$wxUSE_WINE" = "yes"; then
9797 DEFAULT_DEFAULT_wxUSE_GTK=0
9798 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9799 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9800 wxUSE_SHARED=no
89e6bf6d 9801fi
10f2d63a
VZ
9802
9803if test "$wxUSE_GUI" = "yes"; then
9804
3a922bb4 9805 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9806 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9807echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9808 { (exit 1); exit 1; }; }
3a922bb4 9809 fi
b12915c1 9810
3a922bb4
RL
9811 if test "$TOOLKIT_GIVEN" = 1; then
9812 for toolkit in `echo $ALL_TOOLKITS`; do
9813 var=wxUSE_$toolkit
9814 eval "value=\$${var}"
9815 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9816 done
10f2d63a 9817 else
3a922bb4
RL
9818 for toolkit in `echo $ALL_TOOLKITS`; do
9819 if test "$has_toolkit_in_cache" != 1; then
9820 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9821 else
9822 var=DEFAULT_wxUSE_$toolkit
9823 fi
9824 eval "wxUSE_$toolkit=\$${var}"
9825 done
10f2d63a 9826 fi
10f2d63a 9827
ac0c4cc3
DE
9828 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9829 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9830 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9831
d558c907 9832 case "${host}" in
6fa882bd 9833 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9834 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9835 esac
10f2d63a 9836
3a922bb4
RL
9837 case "$NUM_TOOLKITS" in
9838 1)
9839 ;;
9840 0)
e6cc62c6
VS
9841 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9842echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9843 { (exit 1); exit 1; }; }
3a922bb4
RL
9844 ;;
9845 *)
e6cc62c6
VS
9846 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9847echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9848 { (exit 1); exit 1; }; }
3a922bb4 9849 esac
10f2d63a 9850
3a922bb4
RL
9851 for toolkit in `echo $ALL_TOOLKITS`; do
9852 var=wxUSE_$toolkit
9853 eval "value=\$${var}"
9854 if test "x$value" != x; then
9855 cache_var=CACHE_$toolkit
9856 eval "cache=\$${cache_var}"
9857 if test "$cache" = 1; then
9858 echo "$var=$value" >> ${wx_arg_cache_file}
9859 fi
9860 if test "$value" = 1; then
89fe663f 9861 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9862 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9863echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9864 fi
9865 fi
9866 done
10f2d63a 9867else
9de9b8f0
VZ
9868 if test "x$host_alias" != "x"; then
9869 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9870echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9871 else
9872 echo "$as_me:$LINENO: result: base only" >&5
9873echo "${ECHO_T}base only" >&6
9874 fi
10f2d63a
VZ
9875fi
9876
43d99b6d
VS
9877wants_win32=0
9878doesnt_want_win32=0
17234b26
MB
9879case "${host}" in
9880 *-*-cygwin*)
9881 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9882 wants_win32=1
9883 else
9884 doesnt_want_win32=1
17234b26
MB
9885 fi
9886 ;;
9887 *-*-mingw*)
43d99b6d 9888 wants_win32=1
17234b26
MB
9889 ;;
9890esac
9891
89e6bf6d
VZ
9892if test "$wxUSE_WINE" = "yes"; then
9893 wants_win32=1
9894 CC=winegcc
9895 CXX=wineg++
9896 RESCOMP=wrc
30f2fa6c 9897 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9898fi
9899
43d99b6d 9900if test "$wants_win32" = 1 ; then
17234b26
MB
9901 USE_UNIX=0
9902 USE_WIN32=1
e6cc62c6 9903 cat >>confdefs.h <<\_ACEOF
17234b26 9904#define __WIN32__ 1
e6cc62c6 9905_ACEOF
17234b26 9906
e6cc62c6 9907 cat >>confdefs.h <<\_ACEOF
17234b26 9908#define __WIN95__ 1
e6cc62c6 9909_ACEOF
17234b26 9910
e6cc62c6 9911 cat >>confdefs.h <<\_ACEOF
17234b26 9912#define __WINDOWS__ 1
e6cc62c6 9913_ACEOF
17234b26 9914
e6cc62c6 9915 cat >>confdefs.h <<\_ACEOF
17234b26 9916#define __GNUWIN32__ 1
e6cc62c6 9917_ACEOF
17234b26 9918
e6cc62c6 9919 cat >>confdefs.h <<\_ACEOF
17234b26 9920#define STRICT 1
e6cc62c6 9921_ACEOF
17234b26 9922
e6cc62c6 9923 cat >>confdefs.h <<\_ACEOF
17234b26 9924#define WINVER 0x0400
e6cc62c6 9925_ACEOF
17234b26 9926
43d99b6d
VS
9927fi
9928if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9929 USE_UNIX=1
9930 USE_WIN32=0
9931fi
9932
9933if test "$USE_UNIX" = 1 ; then
9934 wxUSE_UNIX=yes
e6cc62c6 9935 cat >>confdefs.h <<\_ACEOF
17234b26 9936#define __UNIX__ 1
e6cc62c6 9937_ACEOF
17234b26
MB
9938
9939fi
9940
8284b0c5 9941
e6cc62c6 9942cat >confcache <<\_ACEOF
10f2d63a
VZ
9943# This file is a shell script that caches the results of configure
9944# tests run on this system so they can be shared between configure
e6cc62c6
VS
9945# scripts and configure runs, see configure's option --config-cache.
9946# It is not useful on other systems. If it contains results you don't
9947# want to keep, you may remove or edit it.
10f2d63a 9948#
e6cc62c6
VS
9949# config.status only pays attention to the cache file if you give it
9950# the --recheck option to rerun configure.
10f2d63a 9951#
e6cc62c6
VS
9952# `ac_cv_env_foo' variables (set or unset) will be overridden when
9953# loading this file, other *unset* `ac_cv_foo' will be assigned the
9954# following values.
9955
9956_ACEOF
9957
10f2d63a
VZ
9958# The following way of writing the cache mishandles newlines in values,
9959# but we know of no workaround that is simple, portable, and efficient.
9960# So, don't put newlines in cache variables' values.
9961# Ultrix sh set writes to stderr and can't be redirected directly,
9962# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9963{
9964 (set) 2>&1 |
9965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9966 *ac_space=\ *)
9967 # `set' does not quote correctly, so add quotes (double-quote
9968 # substitution turns \\\\ into \\, and sed turns \\ into \).
9969 sed -n \
789c5f4a
VZ
9970 "s/'/'\\\\''/g;
9971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9972 ;;
9973 *)
9974 # `set' quotes correctly as required by POSIX, so do not add quotes.
9975 sed -n \
789c5f4a 9976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9977 ;;
9978 esac;
9979} |
9980 sed '
9981 t clear
9982 : clear
9983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9984 t end
9985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9986 : end' >>confcache
9987if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9988 if test -w $cache_file; then
e6cc62c6
VS
9989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9990 cat confcache >$cache_file
10f2d63a
VZ
9991 else
9992 echo "not updating unwritable cache $cache_file"
9993 fi
9994fi
9995rm -f confcache
9996
e59890c3 9997if test "$build" != "$host" ; then
9d353d4a 9998 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9999 CC=$host_alias-gcc
10000 CXX=$host_alias-c++
10001 AR=$host_alias-ar
10002 RANLIB=$host_alias-ranlib
10003 DLLTOOL=$host_alias-dlltool
10004 RESCOMP=$host_alias-windres
10005 LD=$host_alias-ld
10006 NM=$host_alias-nm
10007 STRIP=$host_alias-strip
10008 else
e6cc62c6
VS
10009 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10010echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10011 { (exit 1); exit 1; }; }
3a922bb4 10012 fi
10f2d63a
VZ
10013fi
10014
ec603395 10015CFLAGS=${CFLAGS:=}
e6cc62c6
VS
10016ac_ext=c
10017ac_cpp='$CPP $CPPFLAGS'
10018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020ac_compiler_gnu=$ac_cv_c_compiler_gnu
10021if test -n "$ac_tool_prefix"; then
10022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10023set dummy ${ac_tool_prefix}gcc; ac_word=$2
10024echo "$as_me:$LINENO: checking for $ac_word" >&5
10025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10026if test "${ac_cv_prog_CC+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029 if test -n "$CC"; then
10030 ac_cv_prog_CC="$CC" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043done
10044done
10045
10046fi
10047fi
10048CC=$ac_cv_prog_CC
10049if test -n "$CC"; then
10050 echo "$as_me:$LINENO: result: $CC" >&5
10051echo "${ECHO_T}$CC" >&6
10052else
10053 echo "$as_me:$LINENO: result: no" >&5
10054echo "${ECHO_T}no" >&6
10055fi
10056
10057fi
10058if test -z "$ac_cv_prog_CC"; then
10059 ac_ct_CC=$CC
10060 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10061set dummy gcc; ac_word=$2
e6cc62c6
VS
10062echo "$as_me:$LINENO: checking for $ac_word" >&5
10063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067 if test -n "$ac_ct_CC"; then
10068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10069else
10070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077 ac_cv_prog_ac_ct_CC="gcc"
10078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10080 fi
10081done
10082done
10083
10084fi
10085fi
10086ac_ct_CC=$ac_cv_prog_ac_ct_CC
10087if test -n "$ac_ct_CC"; then
10088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10089echo "${ECHO_T}$ac_ct_CC" >&6
10090else
10091 echo "$as_me:$LINENO: result: no" >&5
10092echo "${ECHO_T}no" >&6
10093fi
10094
10095 CC=$ac_ct_CC
10096else
10097 CC="$ac_cv_prog_CC"
10098fi
10099
10100if test -z "$CC"; then
10101 if test -n "$ac_tool_prefix"; then
10102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10103set dummy ${ac_tool_prefix}cc; ac_word=$2
10104echo "$as_me:$LINENO: checking for $ac_word" >&5
10105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10106if test "${ac_cv_prog_CC+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10108else
10109 if test -n "$CC"; then
10110 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10111else
e6cc62c6
VS
10112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10119 ac_cv_prog_CC="${ac_tool_prefix}cc"
10120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123done
10124done
10125
10f2d63a 10126fi
6232543b 10127fi
e6cc62c6 10128CC=$ac_cv_prog_CC
6232543b 10129if test -n "$CC"; then
e6cc62c6
VS
10130 echo "$as_me:$LINENO: result: $CC" >&5
10131echo "${ECHO_T}$CC" >&6
10132else
10133 echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
10135fi
10136
10137fi
10138if test -z "$ac_cv_prog_CC"; then
10139 ac_ct_CC=$CC
10140 # Extract the first word of "cc", so it can be a program name with args.
10141set dummy cc; ac_word=$2
10142echo "$as_me:$LINENO: checking for $ac_word" >&5
10143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$ac_ct_CC"; then
10148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_ac_ct_CC="cc"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162done
10163
10164fi
10165fi
10166ac_ct_CC=$ac_cv_prog_ac_ct_CC
10167if test -n "$ac_ct_CC"; then
10168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10169echo "${ECHO_T}$ac_ct_CC" >&6
10170else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173fi
10174
10175 CC=$ac_ct_CC
247f5006 10176else
e6cc62c6 10177 CC="$ac_cv_prog_CC"
247f5006
VZ
10178fi
10179
e6cc62c6 10180fi
5c6fa7d2
RR
10181if test -z "$CC"; then
10182 # Extract the first word of "cc", so it can be a program name with args.
10183set dummy cc; ac_word=$2
e6cc62c6
VS
10184echo "$as_me:$LINENO: checking for $ac_word" >&5
10185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10186if test "${ac_cv_prog_CC+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10188else
10189 if test -n "$CC"; then
10190 ac_cv_prog_CC="$CC" # Let the user override the test.
10191else
10192 ac_prog_rejected=no
e6cc62c6
VS
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10201 ac_prog_rejected=yes
10202 continue
10203 fi
10204 ac_cv_prog_CC="cc"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209done
10210
328a083c
RR
10211if test $ac_prog_rejected = yes; then
10212 # We found a bogon in the path, so make sure we never use it.
10213 set dummy $ac_cv_prog_CC
10214 shift
e6cc62c6 10215 if test $# != 0; then
328a083c 10216 # We chose a different compiler from the bogus one.
1e487827
VS
10217 # However, it has the same basename, so the bogon will be chosen
10218 # first if we set CC to just the basename; use the full file name.
10219 shift
e6cc62c6 10220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10221 fi
1e487827
VS
10222fi
10223fi
10224fi
e6cc62c6 10225CC=$ac_cv_prog_CC
1e487827 10226if test -n "$CC"; then
e6cc62c6
VS
10227 echo "$as_me:$LINENO: result: $CC" >&5
10228echo "${ECHO_T}$CC" >&6
703e0a69 10229else
e6cc62c6
VS
10230 echo "$as_me:$LINENO: result: no" >&5
10231echo "${ECHO_T}no" >&6
703e0a69 10232fi
1e487827 10233
e6cc62c6
VS
10234fi
10235if test -z "$CC"; then
10236 if test -n "$ac_tool_prefix"; then
10237 for ac_prog in cl
10238 do
10239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10241echo "$as_me:$LINENO: checking for $ac_word" >&5
10242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10243if test "${ac_cv_prog_CC+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10245else
10246 if test -n "$CC"; then
10247 ac_cv_prog_CC="$CC" # Let the user override the test.
10248else
e6cc62c6
VS
10249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250for as_dir in $PATH
10251do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10259 fi
10260done
10261done
10262
f09359cf
VS
10263fi
10264fi
e6cc62c6 10265CC=$ac_cv_prog_CC
f09359cf 10266if test -n "$CC"; then
e6cc62c6
VS
10267 echo "$as_me:$LINENO: result: $CC" >&5
10268echo "${ECHO_T}$CC" >&6
f09359cf 10269else
e6cc62c6
VS
10270 echo "$as_me:$LINENO: result: no" >&5
10271echo "${ECHO_T}no" >&6
5c6fa7d2 10272fi
1e487827 10273
e6cc62c6
VS
10274 test -n "$CC" && break
10275 done
10276fi
10277if test -z "$CC"; then
10278 ac_ct_CC=$CC
10279 for ac_prog in cl
10280do
10281 # Extract the first word of "$ac_prog", so it can be a program name with args.
10282set dummy $ac_prog; ac_word=$2
10283echo "$as_me:$LINENO: checking for $ac_word" >&5
10284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10285if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 if test -n "$ac_ct_CC"; then
10289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10290else
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_ac_ct_CC="$ac_prog"
10299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302done
10303done
f09359cf 10304
e6cc62c6
VS
10305fi
10306fi
10307ac_ct_CC=$ac_cv_prog_ac_ct_CC
10308if test -n "$ac_ct_CC"; then
10309 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10310echo "${ECHO_T}$ac_ct_CC" >&6
10311else
10312 echo "$as_me:$LINENO: result: no" >&5
10313echo "${ECHO_T}no" >&6
10314fi
f09359cf 10315
e6cc62c6
VS
10316 test -n "$ac_ct_CC" && break
10317done
247f5006 10318
e6cc62c6
VS
10319 CC=$ac_ct_CC
10320fi
10321
10322fi
10323
10324
10325test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10326See \`config.log' for more details." >&5
10327echo "$as_me: error: no acceptable C compiler found in \$PATH
10328See \`config.log' for more details." >&2;}
10329 { (exit 1); exit 1; }; }
10330
10331# Provide some information about the compiler.
10332echo "$as_me:$LINENO:" \
10333 "checking for C compiler version" >&5
10334ac_compiler=`set X $ac_compile; echo $2`
10335{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10336 (eval $ac_compiler --version </dev/null >&5) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }
10340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10341 (eval $ac_compiler -v </dev/null >&5) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }
10345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10346 (eval $ac_compiler -V </dev/null >&5) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }
10350
10351cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10352#line $LINENO "configure"
e6cc62c6
VS
10353/* confdefs.h. */
10354_ACEOF
10355cat confdefs.h >>conftest.$ac_ext
10356cat >>conftest.$ac_ext <<_ACEOF
10357/* end confdefs.h. */
10358
10359int
10360main ()
10361{
247f5006 10362
e6cc62c6
VS
10363 ;
10364 return 0;
10365}
10366_ACEOF
10367ac_clean_files_save=$ac_clean_files
10368ac_clean_files="$ac_clean_files a.out a.exe b.out"
10369# Try to create an executable without -o first, disregard a.out.
10370# It will help us diagnose broken compilers, and finding out an intuition
10371# of exeext.
789c5f4a
VZ
10372echo "$as_me:$LINENO: checking for C compiler default output" >&5
10373echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
e6cc62c6
VS
10374ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10375if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10376 (eval $ac_link_default) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; then
10380 # Find the output, starting from the most likely. This scheme is
10381# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10382# resort.
10383
10384# Be careful to initialize this variable, since it used to be cached.
10385# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10386ac_cv_exeext=
10387# b.out is created by i960 compilers.
10388for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10389do
10390 test -f "$ac_file" || continue
10391 case $ac_file in
10392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
789c5f4a 10393 ;;
e6cc62c6 10394 conftest.$ac_ext )
789c5f4a
VZ
10395 # This is the source file.
10396 ;;
e6cc62c6 10397 [ab].out )
789c5f4a
VZ
10398 # We found the default executable, but exeext='' is most
10399 # certainly right.
10400 break;;
e6cc62c6 10401 *.* )
789c5f4a
VZ
10402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10403 # FIXME: I believe we export ac_cv_exeext for Libtool,
10404 # but it would be cool to find out if it's true. Does anybody
10405 # maintain Libtool? --akim.
10406 export ac_cv_exeext
10407 break;;
e6cc62c6 10408 * )
789c5f4a 10409 break;;
e6cc62c6
VS
10410 esac
10411done
10412else
10413 echo "$as_me: failed program was:" >&5
10414sed 's/^/| /' conftest.$ac_ext >&5
10415
10416{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10417See \`config.log' for more details." >&5
10418echo "$as_me: error: C compiler cannot create executables
10419See \`config.log' for more details." >&2;}
10420 { (exit 77); exit 77; }; }
10421fi
10422
10423ac_exeext=$ac_cv_exeext
10424echo "$as_me:$LINENO: result: $ac_file" >&5
10425echo "${ECHO_T}$ac_file" >&6
10426
10427# Check the compiler produces executables we can run. If not, either
10428# the compiler is broken, or we cross compile.
10429echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10430echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10431# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10432# If not cross compiling, check that we can run a simple program.
10433if test "$cross_compiling" != yes; then
10434 if { ac_try='./$ac_file'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 cross_compiling=no
698dcdb6 10441 else
e6cc62c6
VS
10442 if test "$cross_compiling" = maybe; then
10443 cross_compiling=yes
10444 else
10445 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10446If you meant to cross compile, use \`--host'.
10447See \`config.log' for more details." >&5
10448echo "$as_me: error: cannot run C compiled programs.
10449If you meant to cross compile, use \`--host'.
10450See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10452 fi
698dcdb6 10453 fi
52127426 10454fi
e6cc62c6
VS
10455echo "$as_me:$LINENO: result: yes" >&5
10456echo "${ECHO_T}yes" >&6
10457
10458rm -f a.out a.exe conftest$ac_cv_exeext b.out
10459ac_clean_files=$ac_clean_files_save
10460# Check the compiler produces executables we can run. If not, either
10461# the compiler is broken, or we cross compile.
10462echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10463echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10464echo "$as_me:$LINENO: result: $cross_compiling" >&5
10465echo "${ECHO_T}$cross_compiling" >&6
10466
10467echo "$as_me:$LINENO: checking for suffix of executables" >&5
10468echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; then
10474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10475# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10476# work properly (i.e., refer to `conftest.exe'), while it won't with
10477# `rm'.
10478for ac_file in conftest.exe conftest conftest.*; do
10479 test -f "$ac_file" || continue
10480 case $ac_file in
10481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
789c5f4a
VZ
10483 export ac_cv_exeext
10484 break;;
e6cc62c6
VS
10485 * ) break;;
10486 esac
10487done
5c6fa7d2 10488else
e6cc62c6
VS
10489 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10490See \`config.log' for more details." >&5
10491echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10492See \`config.log' for more details." >&2;}
10493 { (exit 1); exit 1; }; }
10494fi
10495
10496rm -f conftest$ac_cv_exeext
10497echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10498echo "${ECHO_T}$ac_cv_exeext" >&6
10499
10500rm -f conftest.$ac_ext
10501EXEEXT=$ac_cv_exeext
10502ac_exeext=$EXEEXT
10503echo "$as_me:$LINENO: checking for suffix of object files" >&5
10504echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10505if test "${ac_cv_objext+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10509#line $LINENO "configure"
e6cc62c6
VS
10510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
10515
10516int
10517main ()
10518{
f09359cf 10519
e6cc62c6
VS
10520 ;
10521 return 0;
10522}
10523_ACEOF
10524rm -f conftest.o conftest.obj
10525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; then
10530 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10531 case $ac_file in
10532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10534 break;;
10535 esac
10536done
a0b9e27f 10537else
e6cc62c6
VS
10538 echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10542See \`config.log' for more details." >&5
10543echo "$as_me: error: cannot compute suffix of object files: cannot compile
10544See \`config.log' for more details." >&2;}
10545 { (exit 1); exit 1; }; }
a0b9e27f 10546fi
247f5006 10547
e6cc62c6
VS
10548rm -f conftest.$ac_cv_objext conftest.$ac_ext
10549fi
10550echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10551echo "${ECHO_T}$ac_cv_objext" >&6
10552OBJEXT=$ac_cv_objext
10553ac_objext=$OBJEXT
10554echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10555echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10556if test "${ac_cv_c_compiler_gnu+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10558else
e6cc62c6 10559 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10560#line $LINENO "configure"
e6cc62c6
VS
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566
10567int
10568main ()
10569{
10570#ifndef __GNUC__
10571 choke me
10572#endif
10573
10574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10580 (eval $ac_compile) 2>&5
e6cc62c6
VS
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
789c5f4a 10584 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_compiler_gnu=yes
10591else
10592 echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595ac_compiler_gnu=no
10596fi
789c5f4a 10597rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10598ac_cv_c_compiler_gnu=$ac_compiler_gnu
10599
10600fi
10601echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10602echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10603GCC=`test $ac_compiler_gnu = yes && echo yes`
10604ac_test_CFLAGS=${CFLAGS+set}
10605ac_save_CFLAGS=$CFLAGS
10606CFLAGS="-g"
10607echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10608echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10609if test "${ac_cv_prog_cc_g+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10613#line $LINENO "configure"
e6cc62c6
VS
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619
10620int
10621main ()
10622{
10623
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext
10629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10630 (eval $ac_compile) 2>&5
e6cc62c6
VS
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
789c5f4a 10634 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10f2d63a
VZ
10640 ac_cv_prog_cc_g=yes
10641else
e6cc62c6
VS
10642 echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10644
e6cc62c6 10645ac_cv_prog_cc_g=no
10f2d63a 10646fi
789c5f4a 10647rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10648fi
10649echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10650echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10651if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10652 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10653elif test $ac_cv_prog_cc_g = yes; then
10654 if test "$GCC" = yes; then
10f2d63a
VZ
10655 CFLAGS="-g -O2"
10656 else
f09359cf 10657 CFLAGS="-g"
10f2d63a 10658 fi
5c0a20c3 10659else
f09359cf
VS
10660 if test "$GCC" = yes; then
10661 CFLAGS="-O2"
10662 else
10663 CFLAGS=
10664 fi
10f2d63a 10665fi
e6cc62c6
VS
10666echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10667echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10668if test "${ac_cv_prog_cc_stdc+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670else
10671 ac_cv_prog_cc_stdc=no
10672ac_save_CC=$CC
10673cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10674#line $LINENO "configure"
e6cc62c6
VS
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680#include <stdarg.h>
10681#include <stdio.h>
10682#include <sys/types.h>
10683#include <sys/stat.h>
10684/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10685struct buf { int x; };
10686FILE * (*rcsopen) (struct buf *, struct stat *, int);
10687static char *e (p, i)
10688 char **p;
10689 int i;
10690{
10691 return p[i];
10692}
10693static char *f (char * (*g) (char **, int), char **p, ...)
10694{
10695 char *s;
10696 va_list v;
10697 va_start (v,p);
10698 s = g (p, va_arg (v,int));
10699 va_end (v);
10700 return s;
10701}
10702int test (int i, double x);
10703struct s1 {int (*f) (int a);};
10704struct s2 {int (*f) (double a);};
10705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10706int argc;
10707char **argv;
10708int
10709main ()
10710{
10711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716# Don't try gcc -ansi; that turns off useful extensions and
10717# breaks some systems' header files.
10718# AIX -qlanglvl=ansi
10719# Ultrix and OSF/1 -std1
10720# HP-UX 10.20 and later -Ae
10721# HP-UX older versions -Aa -D_HPUX_SOURCE
10722# SVR4 -Xc -D__EXTENSIONS__
10723for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10724do
10725 CC="$ac_save_CC $ac_arg"
10726 rm -f conftest.$ac_objext
10727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10728 (eval $ac_compile) 2>&5
e6cc62c6
VS
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
789c5f4a 10732 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_prog_cc_stdc=$ac_arg
10739break
10740else
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744fi
789c5f4a 10745rm -f conftest.$ac_objext
e6cc62c6
VS
10746done
10747rm -f conftest.$ac_ext conftest.$ac_objext
10748CC=$ac_save_CC
10749
10750fi
10751
10752case "x$ac_cv_prog_cc_stdc" in
10753 x|xno)
10754 echo "$as_me:$LINENO: result: none needed" >&5
10755echo "${ECHO_T}none needed" >&6 ;;
10756 *)
10757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10758echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10759 CC="$CC $ac_cv_prog_cc_stdc" ;;
10760esac
10761
10762# Some people use a C++ compiler to compile C. Since we use `exit',
10763# in C++ we need to declare it. In case someone uses the same compiler
10764# for both compiling C and C++ we need to have the C++ compiler decide
10765# the declaration of exit, since it's the most demanding environment.
10766cat >conftest.$ac_ext <<_ACEOF
10767#ifndef __cplusplus
10768 choke me
10769#endif
10770_ACEOF
10771rm -f conftest.$ac_objext
10772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10773 (eval $ac_compile) 2>&5
e6cc62c6
VS
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
789c5f4a 10777 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 for ac_declaration in \
5a60a58a
RD
10784 ''\
10785 '#include <stdlib.h>' \
e6cc62c6
VS
10786 'extern "C" void std::exit (int) throw (); using std::exit;' \
10787 'extern "C" void std::exit (int); using std::exit;' \
10788 'extern "C" void exit (int) throw ();' \
10789 'extern "C" void exit (int);' \
10790 'void exit (int);'
10791do
10792 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10793#line $LINENO "configure"
e6cc62c6
VS
10794/* confdefs.h. */
10795_ACEOF
10796cat confdefs.h >>conftest.$ac_ext
10797cat >>conftest.$ac_ext <<_ACEOF
10798/* end confdefs.h. */
f95e4495 10799#include <stdlib.h>
5a60a58a 10800$ac_declaration
e6cc62c6
VS
10801int
10802main ()
10803{
10804exit (42);
10805 ;
10806 return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext
10810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10811 (eval $ac_compile) 2>&5
e6cc62c6
VS
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
789c5f4a 10815 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 :
10822else
10823 echo "$as_me: failed program was:" >&5
10824sed 's/^/| /' conftest.$ac_ext >&5
10825
10826continue
10827fi
789c5f4a 10828rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10829 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10830#line $LINENO "configure"
e6cc62c6
VS
10831/* confdefs.h. */
10832_ACEOF
10833cat confdefs.h >>conftest.$ac_ext
10834cat >>conftest.$ac_ext <<_ACEOF
10835/* end confdefs.h. */
10836$ac_declaration
10837int
10838main ()
10839{
10840exit (42);
10841 ;
10842 return 0;
10843}
10844_ACEOF
10845rm -f conftest.$ac_objext
10846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10847 (eval $ac_compile) 2>&5
e6cc62c6
VS
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
789c5f4a 10851 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 break
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862fi
789c5f4a 10863rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10864done
10865rm -f conftest*
10866if test -n "$ac_declaration"; then
10867 echo '#ifdef __cplusplus' >>confdefs.h
10868 echo $ac_declaration >>confdefs.h
10869 echo '#endif' >>confdefs.h
10870fi
10871
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876fi
789c5f4a 10877rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10878ac_ext=c
10879ac_cpp='$CPP $CPPFLAGS'
10880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10883
10884
e6cc62c6
VS
10885
10886ac_ext=c
10887ac_cpp='$CPP $CPPFLAGS'
10888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10892echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10893# On Suns, sometimes $CPP names a directory.
10894if test -n "$CPP" && test -d "$CPP"; then
10895 CPP=
10896fi
10897if test -z "$CPP"; then
e6cc62c6
VS
10898 if test "${ac_cv_prog_CPP+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901 # Double quotes because CPP needs to be expanded
10902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10903 do
10904 ac_preproc_ok=false
10905for ac_c_preproc_warn_flag in '' yes
10906do
10907 # Use a header file that comes with gcc, so configuring glibc
10908 # with a fresh cross-compiler works.
10909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 # <limits.h> exists even on freestanding compilers.
10f2d63a 10911 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10912 # not just through cpp. "Syntax error" is here to catch this case.
10913 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10914#line $LINENO "configure"
e6cc62c6
VS
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
10920#ifdef __STDC__
10921# include <limits.h>
10922#else
10923# include <assert.h>
10924#endif
789c5f4a 10925 Syntax error
e6cc62c6
VS
10926_ACEOF
10927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } >/dev/null; then
10935 if test -s conftest.err; then
10936 ac_cpp_err=$ac_c_preproc_warn_flag
10937 else
10938 ac_cpp_err=
10939 fi
10f2d63a 10940else
e6cc62c6
VS
10941 ac_cpp_err=yes
10942fi
10943if test -z "$ac_cpp_err"; then
a0b9e27f 10944 :
247f5006 10945else
e6cc62c6
VS
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 # Broken: fails on valid input.
10950continue
10951fi
10952rm -f conftest.err conftest.$ac_ext
10953
10954 # OK, works on sane cases. Now check whether non-existent headers
10955 # can be detected and how.
10956 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10957#line $LINENO "configure"
e6cc62c6
VS
10958/* confdefs.h. */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
10962/* end confdefs.h. */
10963#include <ac_nonexistent.h>
10964_ACEOF
10965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } >/dev/null; then
10973 if test -s conftest.err; then
10974 ac_cpp_err=$ac_c_preproc_warn_flag
10975 else
10976 ac_cpp_err=
10977 fi
10f2d63a 10978else
e6cc62c6 10979 ac_cpp_err=yes
579d8138 10980fi
e6cc62c6
VS
10981if test -z "$ac_cpp_err"; then
10982 # Broken: success on invalid input.
10983continue
10984else
10985 echo "$as_me: failed program was:" >&5
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 # Passes both tests.
10989ac_preproc_ok=:
10990break
52127426 10991fi
e6cc62c6
VS
10992rm -f conftest.err conftest.$ac_ext
10993
10994done
10995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10996rm -f conftest.err conftest.$ac_ext
10997if $ac_preproc_ok; then
10998 break
8284b0c5 10999fi
e6cc62c6
VS
11000
11001 done
11002 ac_cv_prog_CPP=$CPP
11003
11004fi
11005 CPP=$ac_cv_prog_CPP
11006else
11007 ac_cv_prog_CPP=$CPP
11008fi
11009echo "$as_me:$LINENO: result: $CPP" >&5
11010echo "${ECHO_T}$CPP" >&6
11011ac_preproc_ok=false
11012for ac_c_preproc_warn_flag in '' yes
11013do
11014 # Use a header file that comes with gcc, so configuring glibc
11015 # with a fresh cross-compiler works.
11016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017 # <limits.h> exists even on freestanding compilers.
11018 # On the NeXT, cc -E runs the code through the compiler's parser,
11019 # not just through cpp. "Syntax error" is here to catch this case.
11020 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11021#line $LINENO "configure"
e6cc62c6
VS
11022/* confdefs.h. */
11023_ACEOF
11024cat confdefs.h >>conftest.$ac_ext
11025cat >>conftest.$ac_ext <<_ACEOF
11026/* end confdefs.h. */
11027#ifdef __STDC__
11028# include <limits.h>
11029#else
11030# include <assert.h>
11031#endif
789c5f4a 11032 Syntax error
e6cc62c6
VS
11033_ACEOF
11034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } >/dev/null; then
11042 if test -s conftest.err; then
11043 ac_cpp_err=$ac_c_preproc_warn_flag
11044 else
11045 ac_cpp_err=
11046 fi
11047else
11048 ac_cpp_err=yes
11049fi
11050if test -z "$ac_cpp_err"; then
11051 :
11052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 # Broken: fails on valid input.
11057continue
11058fi
11059rm -f conftest.err conftest.$ac_ext
11060
11061 # OK, works on sane cases. Now check whether non-existent headers
11062 # can be detected and how.
11063 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11064#line $LINENO "configure"
e6cc62c6
VS
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070#include <ac_nonexistent.h>
11071_ACEOF
11072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11082 else
11083 ac_cpp_err=
11084 fi
11085else
11086 ac_cpp_err=yes
11087fi
11088if test -z "$ac_cpp_err"; then
11089 # Broken: success on invalid input.
11090continue
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 # Passes both tests.
11096ac_preproc_ok=:
11097break
a0b9e27f 11098fi
e6cc62c6
VS
11099rm -f conftest.err conftest.$ac_ext
11100
11101done
11102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11103rm -f conftest.err conftest.$ac_ext
11104if $ac_preproc_ok; then
11105 :
11106else
11107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11108See \`config.log' for more details." >&5
11109echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11110See \`config.log' for more details." >&2;}
11111 { (exit 1); exit 1; }; }
11112fi
11113
11114ac_ext=c
11115ac_cpp='$CPP $CPPFLAGS'
11116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11118ac_compiler_gnu=$ac_cv_c_compiler_gnu
11119
11120
11121echo "$as_me:$LINENO: checking for egrep" >&5
11122echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11123if test "${ac_cv_prog_egrep+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11125else
e6cc62c6
VS
11126 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11127 then ac_cv_prog_egrep='grep -E'
11128 else ac_cv_prog_egrep='egrep'
11129 fi
10f2d63a 11130fi
e6cc62c6
VS
11131echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11132echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11133 EGREP=$ac_cv_prog_egrep
11134
10f2d63a 11135
e6cc62c6
VS
11136if test $ac_cv_c_compiler_gnu = yes; then
11137 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11138echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11139if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11141else
11142 ac_pattern="Autoconf.*'x'"
e6cc62c6 11143 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11144#line $LINENO "configure"
e6cc62c6
VS
11145/* confdefs.h. */
11146_ACEOF
11147cat confdefs.h >>conftest.$ac_ext
11148cat >>conftest.$ac_ext <<_ACEOF
11149/* end confdefs.h. */
10f2d63a
VZ
11150#include <sgtty.h>
11151Autoconf TIOCGETP
e6cc62c6 11152_ACEOF
10f2d63a 11153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11154 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11155 ac_cv_prog_gcc_traditional=yes
11156else
10f2d63a
VZ
11157 ac_cv_prog_gcc_traditional=no
11158fi
11159rm -f conftest*
11160
8284b0c5 11161
10f2d63a 11162 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11163 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11164#line $LINENO "configure"
e6cc62c6
VS
11165/* confdefs.h. */
11166_ACEOF
11167cat confdefs.h >>conftest.$ac_ext
11168cat >>conftest.$ac_ext <<_ACEOF
11169/* end confdefs.h. */
10f2d63a
VZ
11170#include <termio.h>
11171Autoconf TCGETA
e6cc62c6 11172_ACEOF
10f2d63a 11173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11175 ac_cv_prog_gcc_traditional=yes
11176fi
11177rm -f conftest*
11178
11179 fi
11180fi
e6cc62c6
VS
11181echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11182echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11183 if test $ac_cv_prog_gcc_traditional = yes; then
11184 CC="$CC -traditional"
11185 fi
11186fi
11187
8284b0c5
MB
11188
11189
e6cc62c6
VS
11190
11191ac_ext=cc
1e487827 11192ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11196
698dcdb6 11197
ec603395 11198CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11199ac_ext=cc
11200ac_cpp='$CXXCPP $CPPFLAGS'
11201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11204if test -n "$ac_tool_prefix"; then
11205 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11206 do
11207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11209echo "$as_me:$LINENO: checking for $ac_word" >&5
11210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11211if test "${ac_cv_prog_CXX+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11213else
11214 if test -n "$CXX"; then
11215 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11216else
e6cc62c6
VS
11217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218for as_dir in $PATH
11219do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11227 fi
11228done
11229done
11230
10f2d63a
VZ
11231fi
11232fi
e6cc62c6 11233CXX=$ac_cv_prog_CXX
10f2d63a 11234if test -n "$CXX"; then
e6cc62c6
VS
11235 echo "$as_me:$LINENO: result: $CXX" >&5
11236echo "${ECHO_T}$CXX" >&6
10f2d63a 11237else
e6cc62c6
VS
11238 echo "$as_me:$LINENO: result: no" >&5
11239echo "${ECHO_T}no" >&6
10f2d63a
VZ
11240fi
11241
e6cc62c6
VS
11242 test -n "$CXX" && break
11243 done
11244fi
11245if test -z "$CXX"; then
11246 ac_ct_CXX=$CXX
11247 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11248do
11249 # Extract the first word of "$ac_prog", so it can be a program name with args.
11250set dummy $ac_prog; ac_word=$2
11251echo "$as_me:$LINENO: checking for $ac_word" >&5
11252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11253if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256 if test -n "$ac_ct_CXX"; then
11257 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_ac_ct_CXX="$ac_prog"
11267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11269 fi
11270done
10f2d63a 11271done
a0b9e27f 11272
8284b0c5 11273fi
a0b9e27f 11274fi
e6cc62c6
VS
11275ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11276if test -n "$ac_ct_CXX"; then
11277 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11278echo "${ECHO_T}$ac_ct_CXX" >&6
11279else
11280 echo "$as_me:$LINENO: result: no" >&5
11281echo "${ECHO_T}no" >&6
a0b9e27f 11282fi
10f2d63a 11283
e6cc62c6
VS
11284 test -n "$ac_ct_CXX" && break
11285done
11286test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11287
11288 CXX=$ac_ct_CXX
11289fi
11290
11291
11292# Provide some information about the compiler.
11293echo "$as_me:$LINENO:" \
11294 "checking for C++ compiler version" >&5
11295ac_compiler=`set X $ac_compile; echo $2`
11296{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11297 (eval $ac_compiler --version </dev/null >&5) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }
11301{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11302 (eval $ac_compiler -v </dev/null >&5) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }
11306{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11307 (eval $ac_compiler -V </dev/null >&5) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }
11311
11312echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11313echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11314if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316else
11317 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11318#line $LINENO "configure"
e6cc62c6
VS
11319/* confdefs.h. */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h. */
11324
11325int
11326main ()
11327{
11328#ifndef __GNUC__
11329 choke me
11330#endif
10f2d63a 11331
e6cc62c6
VS
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext
11337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11338 (eval $ac_compile) 2>&5
e6cc62c6
VS
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
789c5f4a 11342 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
11348 ac_compiler_gnu=yes
11349else
11350 echo "$as_me: failed program was:" >&5
11351sed 's/^/| /' conftest.$ac_ext >&5
11352
11353ac_compiler_gnu=no
11354fi
789c5f4a 11355rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11356ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11357
11358fi
11359echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11360echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11361GXX=`test $ac_compiler_gnu = yes && echo yes`
11362ac_test_CXXFLAGS=${CXXFLAGS+set}
11363ac_save_CXXFLAGS=$CXXFLAGS
11364CXXFLAGS="-g"
11365echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11366echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11367if test "${ac_cv_prog_cxx_g+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11371#line $LINENO "configure"
e6cc62c6
VS
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
11377
11378int
11379main ()
11380{
f09359cf 11381
e6cc62c6
VS
11382 ;
11383 return 0;
11384}
11385_ACEOF
11386rm -f conftest.$ac_objext
11387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11388 (eval $ac_compile) 2>&5
e6cc62c6
VS
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
789c5f4a 11392 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }; then
10f2d63a
VZ
11398 ac_cv_prog_cxx_g=yes
11399else
e6cc62c6
VS
11400 echo "$as_me: failed program was:" >&5
11401sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11402
e6cc62c6 11403ac_cv_prog_cxx_g=no
10f2d63a 11404fi
789c5f4a 11405rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11406fi
11407echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11408echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11409if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11410 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11411elif test $ac_cv_prog_cxx_g = yes; then
11412 if test "$GXX" = yes; then
10f2d63a
VZ
11413 CXXFLAGS="-g -O2"
11414 else
f09359cf 11415 CXXFLAGS="-g"
10f2d63a 11416 fi
5c0a20c3 11417else
f09359cf
VS
11418 if test "$GXX" = yes; then
11419 CXXFLAGS="-O2"
11420 else
11421 CXXFLAGS=
11422 fi
10f2d63a 11423fi
e6cc62c6 11424for ac_declaration in \
5a60a58a
RD
11425 ''\
11426 '#include <stdlib.h>' \
e6cc62c6
VS
11427 'extern "C" void std::exit (int) throw (); using std::exit;' \
11428 'extern "C" void std::exit (int); using std::exit;' \
11429 'extern "C" void exit (int) throw ();' \
11430 'extern "C" void exit (int);' \
11431 'void exit (int);'
11432do
11433 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11434#line $LINENO "configure"
e6cc62c6
VS
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
f95e4495 11440#include <stdlib.h>
5a60a58a 11441$ac_declaration
e6cc62c6
VS
11442int
11443main ()
11444{
11445exit (42);
11446 ;
11447 return 0;
11448}
11449_ACEOF
11450rm -f conftest.$ac_objext
11451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11452 (eval $ac_compile) 2>&5
e6cc62c6
VS
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
789c5f4a 11456 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 :
11463else
11464 echo "$as_me: failed program was:" >&5
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
11467continue
11468fi
789c5f4a 11469rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11470 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11471#line $LINENO "configure"
e6cc62c6
VS
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
11477$ac_declaration
11478int
11479main ()
11480{
11481exit (42);
11482 ;
11483 return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext
11487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11488 (eval $ac_compile) 2>&5
e6cc62c6
VS
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
789c5f4a 11492 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 break
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503fi
789c5f4a 11504rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11505done
11506rm -f conftest*
11507if test -n "$ac_declaration"; then
11508 echo '#ifdef __cplusplus' >>confdefs.h
11509 echo $ac_declaration >>confdefs.h
11510 echo '#endif' >>confdefs.h
11511fi
11512
11513ac_ext=cc
11514ac_cpp='$CXXCPP $CPPFLAGS'
11515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11518
11519
10f2d63a 11520ac_ext=c
10f2d63a 11521ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11525
11526
e6cc62c6
VS
11527if test -n "$ac_tool_prefix"; then
11528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11529set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11530echo "$as_me:$LINENO: checking for $ac_word" >&5
11531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11532if test "${ac_cv_prog_RANLIB+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11534else
11535 if test -n "$RANLIB"; then
11536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11537else
e6cc62c6
VS
11538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539for as_dir in $PATH
11540do
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 break 2
11548 fi
11549done
11550done
11551
10f2d63a
VZ
11552fi
11553fi
e6cc62c6 11554RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11555if test -n "$RANLIB"; then
e6cc62c6
VS
11556 echo "$as_me:$LINENO: result: $RANLIB" >&5
11557echo "${ECHO_T}$RANLIB" >&6
11558else
11559 echo "$as_me:$LINENO: result: no" >&5
11560echo "${ECHO_T}no" >&6
11561fi
11562
11563fi
11564if test -z "$ac_cv_prog_RANLIB"; then
11565 ac_ct_RANLIB=$RANLIB
11566 # Extract the first word of "ranlib", so it can be a program name with args.
11567set dummy ranlib; ac_word=$2
11568echo "$as_me:$LINENO: checking for $ac_word" >&5
11569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11570if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11572else
e6cc62c6
VS
11573 if test -n "$ac_ct_RANLIB"; then
11574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11575else
11576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $PATH
11578do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_prog_ac_ct_RANLIB="ranlib"
11584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 break 2
11586 fi
11587done
11588done
11589
11590 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11591fi
11592fi
11593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11594if test -n "$ac_ct_RANLIB"; then
11595 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11596echo "${ECHO_T}$ac_ct_RANLIB" >&6
11597else
11598 echo "$as_me:$LINENO: result: no" >&5
11599echo "${ECHO_T}no" >&6
11600fi
11601
11602 RANLIB=$ac_ct_RANLIB
11603else
11604 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11605fi
11606
10f2d63a
VZ
11607
11608# Extract the first word of "ar", so it can be a program name with args.
11609set dummy ar; ac_word=$2
e6cc62c6
VS
11610echo "$as_me:$LINENO: checking for $ac_word" >&5
11611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11612if test "${ac_cv_prog_AR+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11614else
11615 if test -n "$AR"; then
11616 ac_cv_prog_AR="$AR" # Let the user override the test.
11617else
e6cc62c6
VS
11618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_prog_AR="ar"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11628 fi
11629done
11630done
11631
10f2d63a
VZ
11632fi
11633fi
e6cc62c6 11634AR=$ac_cv_prog_AR
10f2d63a 11635if test -n "$AR"; then
e6cc62c6
VS
11636 echo "$as_me:$LINENO: result: $AR" >&5
11637echo "${ECHO_T}$AR" >&6
10f2d63a 11638else
e6cc62c6
VS
11639 echo "$as_me:$LINENO: result: no" >&5
11640echo "${ECHO_T}no" >&6
10f2d63a
VZ
11641fi
11642
911740e7
VS
11643if test "x$AR" = "x" ; then
11644 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11645echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11646 { (exit 1); exit 1; }; }
11647fi
8284b0c5 11648
6054113a 11649# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11650# so one script is as good as another. But avoid the broken or
11651# incompatible versions:
11652# SysV /etc/install, /usr/sbin/install
11653# SunOS /usr/etc/install
11654# IRIX /sbin/install
11655# AIX /bin/install
e6cc62c6 11656# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11660# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11661echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11663if test -z "$INSTALL"; then
e6cc62c6
VS
11664if test "${ac_cv_path_install+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666else
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 # Account for people who put trailing slashes in PATH elements.
11673case $as_dir/ in
11674 ./ | .// | /cC/* | \
11675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11676 /usr/ucb/* ) ;;
11677 *)
11678 # OSF1 and SCO ODT 3.0 have their own names for install.
11679 # Don't use installbsd from OSF since it installs stuff as root
11680 # by default.
11681 for ac_prog in ginstall scoinst install; do
11682 for ac_exec_ext in '' $ac_executable_extensions; do
789c5f4a
VZ
11683 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11684 if test $ac_prog = install &&
11685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11686 # AIX install. It has an incompatible calling convention.
11687 :
11688 elif test $ac_prog = install &&
11689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11690 # program-specific install script used by HP pwplus--don't use.
11691 :
11692 else
11693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11694 break 3
11695 fi
11696 fi
10f2d63a 11697 done
e6cc62c6
VS
11698 done
11699 ;;
11700esac
11701done
11702
10f2d63a
VZ
11703
11704fi
11705 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11706 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11707 else
11708 # As a last resort, use the slow shell script. We don't cache a
11709 # path for INSTALL within a source directory, because that will
11710 # break other packages using the cache if that directory is
11711 # removed, or if the path is relative.
e6cc62c6 11712 INSTALL=$ac_install_sh
10f2d63a
VZ
11713 fi
11714fi
e6cc62c6
VS
11715echo "$as_me:$LINENO: result: $INSTALL" >&5
11716echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11717
11718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11719# It thinks the first close brace ends the variable substitution.
11720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11721
e6cc62c6 11722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11723
10f2d63a
VZ
11724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11725
8284b0c5 11726
1d1b75ac
VZ
11727case ${INSTALL} in
11728 /* ) # Absolute
11729 ;;
4f5a7f74
VZ
11730 ?:* ) # Drive letter, considered as absolute.
11731 ;;
3bd8fb5f 11732 *)
1d1b75ac
VZ
11733 INSTALL=`pwd`/${INSTALL} ;;
11734esac
11735
4f5a7f74
VZ
11736case ${host} in
11737 *-hp-hpux* )
11738 INSTALL_DIR="mkdir"
11739 ;;
11740
11741 *) INSTALL_DIR="$INSTALL -d"
11742 ;;
11743esac
11744
8284b0c5 11745
6054113a
GD
11746case "${host}" in
11747
b5853384 11748 powerpc-*-darwin* )
eb99ae0b
GD
11749 INSTALL_PROGRAM="cp -fp"
11750 INSTALL_DATA="cp -fp"
6054113a
GD
11751 ;;
11752 *)
11753 ;;
d6853540 11754esac
698dcdb6 11755
10f2d63a
VZ
11756# Extract the first word of "strip", so it can be a program name with args.
11757set dummy strip; ac_word=$2
e6cc62c6
VS
11758echo "$as_me:$LINENO: checking for $ac_word" >&5
11759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11760if test "${ac_cv_prog_STRIP+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11762else
11763 if test -n "$STRIP"; then
11764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11765else
e6cc62c6
VS
11766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $PATH
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11773 ac_cv_prog_STRIP="strip"
11774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11776 fi
11777done
11778done
11779
10f2d63a
VZ
11780 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11781fi
11782fi
e6cc62c6 11783STRIP=$ac_cv_prog_STRIP
10f2d63a 11784if test -n "$STRIP"; then
e6cc62c6
VS
11785 echo "$as_me:$LINENO: result: $STRIP" >&5
11786echo "${ECHO_T}$STRIP" >&6
10f2d63a 11787else
e6cc62c6
VS
11788 echo "$as_me:$LINENO: result: no" >&5
11789echo "${ECHO_T}no" >&6
10f2d63a
VZ
11790fi
11791
5c6fa7d2 11792
e6cc62c6
VS
11793echo "$as_me:$LINENO: checking if make is GNU make" >&5
11794echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11795if test "${wx_cv_prog_makeisgnu+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11797else
e6cc62c6 11798
414eab6d 11799 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11800 egrep -s GNU > /dev/null); then
414eab6d
VZ
11801 wx_cv_prog_makeisgnu="yes"
11802 else
11803 wx_cv_prog_makeisgnu="no"
11804 fi
11805
11806fi
e6cc62c6
VS
11807echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11808echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11809
11810if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11811 IF_GNU_MAKE=""
11812else
11813 IF_GNU_MAKE="#"
11814fi
11815
8284b0c5
MB
11816
11817
414eab6d 11818if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11819echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11820echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11821if test "${wx_cv_prog_makevpath+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11823else
e6cc62c6 11824
10f2d63a
VZ
11825cat - << EOF > confMake
11826check : file
11827 cp \$? \$@
11828 cp \$? final_file
11829EOF
11830
11831if test ! -d sub ; then
11832 mkdir sub
11833fi
11834echo dummy > sub/file
f6bcfd97 11835${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11836RESULT=$?
11837rm -f sub/file check final_file confMake
11838rmdir sub
11839if test "$RESULT" = 0; then
04e7a216 11840 wx_cv_prog_makevpath="yes"
10f2d63a 11841else
04e7a216
VZ
11842 wx_cv_prog_makevpath="no"
11843fi
11844
11845fi
e6cc62c6
VS
11846echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11847echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11848
11849if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11850{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11851You need a make-utility that is able to use the variable
11852VPATH correctly.
11853If your version of make does not support VPATH correctly,
11854please install GNU-make (possibly as gmake), and start
11855configure with the following command:
11856export MAKE=gmake; ./configure for sh-type shells
11857setenv MAKE gmake; ./configure for csh-type shells
11858Also please do remember to use gmake in this case every time
11859you are trying to compile.
e6cc62c6
VS
11860" >&5
11861echo "$as_me: error:
11862You need a make-utility that is able to use the variable
11863VPATH correctly.
11864If your version of make does not support VPATH correctly,
11865please install GNU-make (possibly as gmake), and start
11866configure with the following command:
11867export MAKE=gmake; ./configure for sh-type shells
11868setenv MAKE gmake; ./configure for csh-type shells
11869Also please do remember to use gmake in this case every time
11870you are trying to compile.
11871" >&2;}
11872 { (exit 1); exit 1; }; }
11873fi fi
e6cc62c6
VS
11874echo "$as_me:$LINENO: checking whether ln -s works" >&5
11875echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11876LN_S=$as_ln_s
11877if test "$LN_S" = "ln -s"; then
11878 echo "$as_me:$LINENO: result: yes" >&5
11879echo "${ECHO_T}yes" >&6
10f2d63a 11880else
e6cc62c6
VS
11881 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11882echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11883fi
5c6fa7d2 11884
247f5006 11885
2b5f62a0
VZ
11886case "${host}" in
11887 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11888 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11889 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11890echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11891if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11893else
e6cc62c6 11894 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11895LIBS="-lcExt $LIBS"
e6cc62c6 11896cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11897#line $LINENO "configure"
e6cc62c6
VS
11898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
11903
2b5f62a0 11904/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11905#ifdef __cplusplus
11906extern "C"
11907#endif
2b5f62a0 11908/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11909 builtin and then its argument prototype would still apply. */
11910char drand48 ();
11911int
11912main ()
11913{
11914drand48 ();
11915 ;
11916 return 0;
11917}
11918_ACEOF
11919rm -f conftest.$ac_objext conftest$ac_exeext
11920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 11921 (eval $ac_link) 2>&5
e6cc62c6
VS
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
789c5f4a 11925 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_lib_cExt_drand48=yes
11932else
11933 echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
11936ac_cv_lib_cExt_drand48=no
11937fi
789c5f4a 11938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11939LIBS=$ac_check_lib_save_LIBS
11940fi
11941echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11942echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11943if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11944 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11945fi
11946
11947 else
11948 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11949 fi
73d617c9
MB
11950 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11951echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11952if test "${wx_cv_gcc3+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955
11956 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11957#line $LINENO "configure"
73d617c9
MB
11958/* confdefs.h. */
11959_ACEOF
11960cat confdefs.h >>conftest.$ac_ext
11961cat >>conftest.$ac_ext <<_ACEOF
11962/* end confdefs.h. */
3527f29c 11963
73d617c9
MB
11964int
11965main ()
11966{
11967
11968 #if (__GNUC__ < 3)
11969 #error old gcc
11970 #endif
11971
11972 ;
11973 return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11978 (eval $ac_compile) 2>&5
73d617c9
MB
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
789c5f4a 11982 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988
11989 wx_cv_gcc3=yes
11990
11991else
11992 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
11994
11995
11996 wx_cv_gcc3=no
11997
11998
11999fi
789c5f4a 12000rm -f conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
12001
12002fi
12003echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12004echo "${ECHO_T}$wx_cv_gcc3" >&6
12005 if test "$wx_cv_gcc3" = "no"; then
12006 LIBS="$LIBS -lstdcpp"
12007 else
12008 LIBS="$LIBS -lstdcxx"
12009 fi
2b5f62a0
VZ
12010 ;;
12011esac
12012
a0b9e27f 12013
01aa5863
VS
12014if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12015 echo "$as_me:$LINENO: checking for strings.h" >&5
12016echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12017if test "${ac_cv_header_strings_h+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020 ac_cv_header_strings_h=no
12021fi
12022echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12023echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12024 if test "$ac_cv_header_strings_h" = "no"; then
12025 echo "$as_me:$LINENO: result: forced no into cache" >&5
12026echo "${ECHO_T}forced no into cache" >&6
12027 else
12028 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12029echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12030 fi
12031fi
12032echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12033echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12034if test "${ac_cv_header_stdc+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
12037 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12038#line $LINENO "configure"
e6cc62c6
VS
12039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
12044#include <stdlib.h>
12045#include <stdarg.h>
12046#include <string.h>
12047#include <float.h>
247f5006 12048
e6cc62c6
VS
12049int
12050main ()
12051{
90dd450c 12052
e6cc62c6
VS
12053 ;
12054 return 0;
12055}
12056_ACEOF
12057rm -f conftest.$ac_objext
12058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12059 (eval $ac_compile) 2>&5
e6cc62c6
VS
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
789c5f4a 12063 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_cv_header_stdc=yes
8284b0c5 12070else
e6cc62c6
VS
12071 echo "$as_me: failed program was:" >&5
12072sed 's/^/| /' conftest.$ac_ext >&5
12073
12074ac_cv_header_stdc=no
21d1c967 12075fi
789c5f4a 12076rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12077
e6cc62c6
VS
12078if test $ac_cv_header_stdc = yes; then
12079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12080 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12081#line $LINENO "configure"
e6cc62c6
VS
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
12087#include <string.h>
12088
12089_ACEOF
12090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12091 $EGREP "memchr" >/dev/null 2>&1; then
12092 :
12093else
12094 ac_cv_header_stdc=no
3a922bb4 12095fi
a0b9e27f 12096rm -f conftest*
e6cc62c6 12097
90dd450c 12098fi
e6cc62c6
VS
12099
12100if test $ac_cv_header_stdc = yes; then
12101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12102 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12103#line $LINENO "configure"
e6cc62c6
VS
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109#include <stdlib.h>
12110
12111_ACEOF
12112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12113 $EGREP "free" >/dev/null 2>&1; then
12114 :
a0b9e27f 12115else
e6cc62c6 12116 ac_cv_header_stdc=no
21d1c967 12117fi
e6cc62c6 12118rm -f conftest*
247f5006
VZ
12119
12120fi
e6cc62c6
VS
12121
12122if test $ac_cv_header_stdc = yes; then
12123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12124 if test "$cross_compiling" = yes; then
12125 :
12126else
12127 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12128#line $LINENO "configure"
e6cc62c6
VS
12129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
12134#include <ctype.h>
12135#if ((' ' & 0x0FF) == 0x020)
12136# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12137# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12138#else
12139# define ISLOWER(c) \
789c5f4a
VZ
12140 (('a' <= (c) && (c) <= 'i') \
12141 || ('j' <= (c) && (c) <= 'r') \
12142 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12143# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12144#endif
12145
12146#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12147int
12148main ()
12149{
12150 int i;
12151 for (i = 0; i < 256; i++)
12152 if (XOR (islower (i), ISLOWER (i))
789c5f4a 12153 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12154 exit(2);
12155 exit (0);
12156}
12157_ACEOF
12158rm -f conftest$ac_exeext
12159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 :
a0b9e27f 12170else
e6cc62c6
VS
12171 echo "$as_me: program exited with status $ac_status" >&5
12172echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175( exit $ac_status )
12176ac_cv_header_stdc=no
12177fi
789c5f4a 12178rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12179fi
12180fi
12181fi
12182echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12183echo "${ECHO_T}$ac_cv_header_stdc" >&6
12184if test $ac_cv_header_stdc = yes; then
12185
12186cat >>confdefs.h <<\_ACEOF
12187#define STDC_HEADERS 1
12188_ACEOF
12189
a0b9e27f 12190fi
e6cc62c6
VS
12191
12192# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
789c5f4a 12203 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12204do
12205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12206echo "$as_me:$LINENO: checking for $ac_header" >&5
12207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12208if eval "test \"\${$as_ac_Header+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12212#line $LINENO "configure"
e6cc62c6
VS
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
12218$ac_includes_default
12219
12220#include <$ac_header>
12221_ACEOF
12222rm -f conftest.$ac_objext
12223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12224 (eval $ac_compile) 2>&5
e6cc62c6
VS
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
789c5f4a 12228 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_Header=yes"
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239eval "$as_ac_Header=no"
12240fi
789c5f4a 12241rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12242fi
12243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12245if test `eval echo '${'$as_ac_Header'}'` = yes; then
12246 cat >>confdefs.h <<_ACEOF
12247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12248_ACEOF
12249
12250fi
12251
a0b9e27f 12252done
90dd450c 12253
e6cc62c6
VS
12254
12255
12256for ac_header in strings.h
21d1c967 12257do
e6cc62c6
VS
12258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12259if eval "test \"\${$as_ac_Header+set}\" = set"; then
12260 echo "$as_me:$LINENO: checking for $ac_header" >&5
12261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264fi
12265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12267else
12268 # Is the header compilable?
12269echo "$as_me:$LINENO: checking $ac_header usability" >&5
12270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12271cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12272#line $LINENO "configure"
e6cc62c6
VS
12273/* confdefs.h. */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h. */
12278$ac_includes_default
12279#include <$ac_header>
12280_ACEOF
12281rm -f conftest.$ac_objext
12282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12283 (eval $ac_compile) 2>&5
e6cc62c6
VS
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
789c5f4a 12287 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_header_compiler=yes
12294else
12295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298ac_header_compiler=no
12299fi
789c5f4a 12300rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12302echo "${ECHO_T}$ac_header_compiler" >&6
12303
12304# Is the header present?
12305echo "$as_me:$LINENO: checking $ac_header presence" >&5
12306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12307cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12308#line $LINENO "configure"
e6cc62c6
VS
12309/* confdefs.h. */
12310_ACEOF
12311cat confdefs.h >>conftest.$ac_ext
12312cat >>conftest.$ac_ext <<_ACEOF
12313/* end confdefs.h. */
12314#include <$ac_header>
12315_ACEOF
12316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } >/dev/null; then
12324 if test -s conftest.err; then
12325 ac_cpp_err=$ac_c_preproc_warn_flag
12326 else
12327 ac_cpp_err=
12328 fi
12329else
12330 ac_cpp_err=yes
12331fi
12332if test -z "$ac_cpp_err"; then
12333 ac_header_preproc=yes
12334else
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_header_preproc=no
12339fi
12340rm -f conftest.err conftest.$ac_ext
12341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12342echo "${ECHO_T}$ac_header_preproc" >&6
12343
12344# So? What about this header?
789c5f4a
VZ
12345case $ac_header_compiler:$ac_header_preproc in
12346 yes:no )
e6cc62c6
VS
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12351 (
12352 cat <<\_ASBOX
12353## ------------------------------------ ##
12354## Report this to bug-autoconf@gnu.org. ##
12355## ------------------------------------ ##
12356_ASBOX
12357 ) |
12358 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12359 ;;
789c5f4a 12360 no:yes )
e6cc62c6
VS
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367 (
12368 cat <<\_ASBOX
789c5f4a
VZ
12369## ------------------------------------ ##
12370## Report this to bug-autoconf@gnu.org. ##
12371## ------------------------------------ ##
e6cc62c6
VS
12372_ASBOX
12373 ) |
12374 sed "s/^/$as_me: WARNING: /" >&2
12375 ;;
12376esac
12377echo "$as_me:$LINENO: checking for $ac_header" >&5
12378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12379if eval "test \"\${$as_ac_Header+set}\" = set"; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381else
789c5f4a 12382 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12383fi
e6cc62c6
VS
12384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386
a0b9e27f 12387fi
e6cc62c6
VS
12388if test `eval echo '${'$as_ac_Header'}'` = yes; then
12389 cat >>confdefs.h <<_ACEOF
12390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12391_ACEOF
12392
12393fi
12394
12395done
12396
e6cc62c6
VS
12397
12398
12399for ac_header in stdlib.h
12400do
12401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12402if eval "test \"\${$as_ac_Header+set}\" = set"; then
12403 echo "$as_me:$LINENO: checking for $ac_header" >&5
12404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12405if eval "test \"\${$as_ac_Header+set}\" = set"; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407fi
12408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12410else
12411 # Is the header compilable?
12412echo "$as_me:$LINENO: checking $ac_header usability" >&5
12413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12414cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12415#line $LINENO "configure"
e6cc62c6
VS
12416/* confdefs.h. */
12417_ACEOF
12418cat confdefs.h >>conftest.$ac_ext
12419cat >>conftest.$ac_ext <<_ACEOF
12420/* end confdefs.h. */
12421$ac_includes_default
12422#include <$ac_header>
12423_ACEOF
12424rm -f conftest.$ac_objext
12425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12426 (eval $ac_compile) 2>&5
e6cc62c6
VS
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
789c5f4a 12430 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_header_compiler=yes
12437else
12438 echo "$as_me: failed program was:" >&5
12439sed 's/^/| /' conftest.$ac_ext >&5
12440
12441ac_header_compiler=no
12442fi
789c5f4a 12443rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12445echo "${ECHO_T}$ac_header_compiler" >&6
12446
12447# Is the header present?
12448echo "$as_me:$LINENO: checking $ac_header presence" >&5
12449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12450cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12451#line $LINENO "configure"
e6cc62c6
VS
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457#include <$ac_header>
12458_ACEOF
12459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } >/dev/null; then
12467 if test -s conftest.err; then
12468 ac_cpp_err=$ac_c_preproc_warn_flag
12469 else
12470 ac_cpp_err=
12471 fi
12472else
12473 ac_cpp_err=yes
12474fi
12475if test -z "$ac_cpp_err"; then
12476 ac_header_preproc=yes
12477else
12478 echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_header_preproc=no
12482fi
12483rm -f conftest.err conftest.$ac_ext
12484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12485echo "${ECHO_T}$ac_header_preproc" >&6
12486
12487# So? What about this header?
789c5f4a
VZ
12488case $ac_header_compiler:$ac_header_preproc in
12489 yes:no )
e6cc62c6
VS
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12494 (
12495 cat <<\_ASBOX
12496## ------------------------------------ ##
12497## Report this to bug-autoconf@gnu.org. ##
12498## ------------------------------------ ##
12499_ASBOX
12500 ) |
12501 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12502 ;;
789c5f4a 12503 no:yes )
e6cc62c6
VS
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12510 (
12511 cat <<\_ASBOX
789c5f4a
VZ
12512## ------------------------------------ ##
12513## Report this to bug-autoconf@gnu.org. ##
12514## ------------------------------------ ##
e6cc62c6
VS
12515_ASBOX
12516 ) |
12517 sed "s/^/$as_me: WARNING: /" >&2
12518 ;;
12519esac
12520echo "$as_me:$LINENO: checking for $ac_header" >&5
12521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12522if eval "test \"\${$as_ac_Header+set}\" = set"; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12524else
789c5f4a 12525 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12526fi
12527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12529
21d1c967 12530fi
e6cc62c6
VS
12531if test `eval echo '${'$as_ac_Header'}'` = yes; then
12532 cat >>confdefs.h <<_ACEOF
12533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12534_ACEOF
12535
12536fi
12537
21d1c967 12538done
4f14bcd8 12539
5c6fa7d2 12540
e6cc62c6 12541for ac_header in malloc.h
21d1c967 12542do
e6cc62c6
VS
12543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12544if eval "test \"\${$as_ac_Header+set}\" = set"; then
12545 echo "$as_me:$LINENO: checking for $ac_header" >&5
12546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12547if eval "test \"\${$as_ac_Header+set}\" = set"; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549fi
12550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12552else
12553 # Is the header compilable?
12554echo "$as_me:$LINENO: checking $ac_header usability" >&5
12555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12556cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12557#line $LINENO "configure"
e6cc62c6
VS
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563$ac_includes_default
12564#include <$ac_header>
12565_ACEOF
12566rm -f conftest.$ac_objext
12567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12568 (eval $ac_compile) 2>&5
e6cc62c6
VS
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
789c5f4a 12572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_header_compiler=yes
12579else
12580 echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583ac_header_compiler=no
12584fi
789c5f4a 12585rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12587echo "${ECHO_T}$ac_header_compiler" >&6
12588
12589# Is the header present?
12590echo "$as_me:$LINENO: checking $ac_header presence" >&5
12591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12592cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12593#line $LINENO "configure"
e6cc62c6
VS
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
12599#include <$ac_header>
12600_ACEOF
12601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } >/dev/null; then
12609 if test -s conftest.err; then
12610 ac_cpp_err=$ac_c_preproc_warn_flag
12611 else
12612 ac_cpp_err=
12613 fi
12614else
12615 ac_cpp_err=yes
12616fi
12617if test -z "$ac_cpp_err"; then
12618 ac_header_preproc=yes
12619else
12620 echo "$as_me: failed program was:" >&5
12621sed 's/^/| /' conftest.$ac_ext >&5
12622
12623 ac_header_preproc=no
12624fi
12625rm -f conftest.err conftest.$ac_ext
12626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12627echo "${ECHO_T}$ac_header_preproc" >&6
12628
12629# So? What about this header?
789c5f4a
VZ
12630case $ac_header_compiler:$ac_header_preproc in
12631 yes:no )
e6cc62c6
VS
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12636 (
12637 cat <<\_ASBOX
12638## ------------------------------------ ##
12639## Report this to bug-autoconf@gnu.org. ##
12640## ------------------------------------ ##
12641_ASBOX
12642 ) |
12643 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12644 ;;
789c5f4a 12645 no:yes )
e6cc62c6
VS
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12652 (
12653 cat <<\_ASBOX
789c5f4a
VZ
12654## ------------------------------------ ##
12655## Report this to bug-autoconf@gnu.org. ##
12656## ------------------------------------ ##
e6cc62c6
VS
12657_ASBOX
12658 ) |
12659 sed "s/^/$as_me: WARNING: /" >&2
12660 ;;
12661esac
12662echo "$as_me:$LINENO: checking for $ac_header" >&5
12663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666else
789c5f4a 12667 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12668fi
e6cc62c6
VS
12669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12671
21d1c967 12672fi
e6cc62c6
VS
12673if test `eval echo '${'$as_ac_Header'}'` = yes; then
12674 cat >>confdefs.h <<_ACEOF
12675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12676_ACEOF
12677
12678fi
12679
12680done
12681
12682
12683for ac_header in unistd.h
12684do
12685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12686if eval "test \"\${$as_ac_Header+set}\" = set"; then
12687 echo "$as_me:$LINENO: checking for $ac_header" >&5
12688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12689if eval "test \"\${$as_ac_Header+set}\" = set"; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691fi
12692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12694else
12695 # Is the header compilable?
12696echo "$as_me:$LINENO: checking $ac_header usability" >&5
12697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12698cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12699#line $LINENO "configure"
e6cc62c6
VS
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705$ac_includes_default
12706#include <$ac_header>
12707_ACEOF
12708rm -f conftest.$ac_objext
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12710 (eval $ac_compile) 2>&5
e6cc62c6
VS
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
789c5f4a 12714 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 ac_header_compiler=yes
12721else
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725ac_header_compiler=no
12726fi
789c5f4a 12727rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12728echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12729echo "${ECHO_T}$ac_header_compiler" >&6
12730
12731# Is the header present?
12732echo "$as_me:$LINENO: checking $ac_header presence" >&5
12733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12734cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12735#line $LINENO "configure"
e6cc62c6
VS
12736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
12741#include <$ac_header>
12742_ACEOF
12743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } >/dev/null; then
12751 if test -s conftest.err; then
12752 ac_cpp_err=$ac_c_preproc_warn_flag
12753 else
12754 ac_cpp_err=
12755 fi
a0b9e27f 12756else
e6cc62c6
VS
12757 ac_cpp_err=yes
12758fi
12759if test -z "$ac_cpp_err"; then
12760 ac_header_preproc=yes
12761else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 ac_header_preproc=no
12766fi
12767rm -f conftest.err conftest.$ac_ext
12768echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12769echo "${ECHO_T}$ac_header_preproc" >&6
12770
12771# So? What about this header?
789c5f4a
VZ
12772case $ac_header_compiler:$ac_header_preproc in
12773 yes:no )
e6cc62c6
VS
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12778 (
12779 cat <<\_ASBOX
12780## ------------------------------------ ##
12781## Report this to bug-autoconf@gnu.org. ##
12782## ------------------------------------ ##
12783_ASBOX
12784 ) |
12785 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12786 ;;
789c5f4a 12787 no:yes )
e6cc62c6
VS
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12791echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12794 (
12795 cat <<\_ASBOX
789c5f4a
VZ
12796## ------------------------------------ ##
12797## Report this to bug-autoconf@gnu.org. ##
12798## ------------------------------------ ##
e6cc62c6
VS
12799_ASBOX
12800 ) |
12801 sed "s/^/$as_me: WARNING: /" >&2
12802 ;;
12803esac
12804echo "$as_me:$LINENO: checking for $ac_header" >&5
12805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12806if eval "test \"\${$as_ac_Header+set}\" = set"; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808else
789c5f4a 12809 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12810fi
12811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12813
12814fi
12815if test `eval echo '${'$as_ac_Header'}'` = yes; then
12816 cat >>confdefs.h <<_ACEOF
12817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12818_ACEOF
12819
d4158b5d 12820fi
e6cc62c6 12821
21d1c967 12822done
f6bcfd97 12823
e6cc62c6
VS
12824
12825for ac_header in wchar.h
12826do
12827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12828if eval "test \"\${$as_ac_Header+set}\" = set"; then
12829 echo "$as_me:$LINENO: checking for $ac_header" >&5
12830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12831if eval "test \"\${$as_ac_Header+set}\" = set"; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833fi
12834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12836else
12837 # Is the header compilable?
12838echo "$as_me:$LINENO: checking $ac_header usability" >&5
12839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12840cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12841#line $LINENO "configure"
e6cc62c6
VS
12842/* confdefs.h. */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
12846/* end confdefs.h. */
12847$ac_includes_default
12848#include <$ac_header>
12849_ACEOF
12850rm -f conftest.$ac_objext
12851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12852 (eval $ac_compile) 2>&5
e6cc62c6
VS
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
789c5f4a 12856 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_header_compiler=yes
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867ac_header_compiler=no
12868fi
789c5f4a 12869rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12871echo "${ECHO_T}$ac_header_compiler" >&6
12872
12873# Is the header present?
12874echo "$as_me:$LINENO: checking $ac_header presence" >&5
12875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12876cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12877#line $LINENO "configure"
e6cc62c6
VS
12878/* confdefs.h. */
12879_ACEOF
12880cat confdefs.h >>conftest.$ac_ext
12881cat >>conftest.$ac_ext <<_ACEOF
12882/* end confdefs.h. */
12883#include <$ac_header>
12884_ACEOF
12885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } >/dev/null; then
12893 if test -s conftest.err; then
12894 ac_cpp_err=$ac_c_preproc_warn_flag
12895 else
12896 ac_cpp_err=
12897 fi
12898else
12899 ac_cpp_err=yes
12900fi
12901if test -z "$ac_cpp_err"; then
12902 ac_header_preproc=yes
12903else
12904 echo "$as_me: failed program was:" >&5
12905sed 's/^/| /' conftest.$ac_ext >&5
12906
12907 ac_header_preproc=no
12908fi
12909rm -f conftest.err conftest.$ac_ext
12910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12911echo "${ECHO_T}$ac_header_preproc" >&6
12912
12913# So? What about this header?
789c5f4a
VZ
12914case $ac_header_compiler:$ac_header_preproc in
12915 yes:no )
e6cc62c6
VS
12916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12920 (
12921 cat <<\_ASBOX
12922## ------------------------------------ ##
12923## Report this to bug-autoconf@gnu.org. ##
12924## ------------------------------------ ##
12925_ASBOX
12926 ) |
12927 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12928 ;;
789c5f4a 12929 no:yes )
e6cc62c6
VS
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12936 (
12937 cat <<\_ASBOX
789c5f4a
VZ
12938## ------------------------------------ ##
12939## Report this to bug-autoconf@gnu.org. ##
12940## ------------------------------------ ##
e6cc62c6
VS
12941_ASBOX
12942 ) |
12943 sed "s/^/$as_me: WARNING: /" >&2
12944 ;;
12945esac
12946echo "$as_me:$LINENO: checking for $ac_header" >&5
12947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12948if eval "test \"\${$as_ac_Header+set}\" = set"; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950else
789c5f4a 12951 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12952fi
12953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12955
90dd450c 12956fi
e6cc62c6
VS
12957if test `eval echo '${'$as_ac_Header'}'` = yes; then
12958 cat >>confdefs.h <<_ACEOF
12959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12960_ACEOF
12961
12962fi
12963
12964done
90dd450c 12965
e6cc62c6
VS
12966
12967if test "$ac_cv_header_wchar_h" != "yes"; then
12968
12969for ac_header in wcstr.h
21d1c967 12970do
e6cc62c6
VS
12971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12972if eval "test \"\${$as_ac_Header+set}\" = set"; then
12973 echo "$as_me:$LINENO: checking for $ac_header" >&5
12974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12975if eval "test \"\${$as_ac_Header+set}\" = set"; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977fi
12978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12980else
12981 # Is the header compilable?
12982echo "$as_me:$LINENO: checking $ac_header usability" >&5
12983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12984cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12985#line $LINENO "configure"
e6cc62c6
VS
12986/* confdefs.h. */
12987_ACEOF
12988cat confdefs.h >>conftest.$ac_ext
12989cat >>conftest.$ac_ext <<_ACEOF
12990/* end confdefs.h. */
12991$ac_includes_default
12992#include <$ac_header>
12993_ACEOF
12994rm -f conftest.$ac_objext
12995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12996 (eval $ac_compile) 2>&5
e6cc62c6
VS
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
789c5f4a 13000 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_header_compiler=yes
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011ac_header_compiler=no
13012fi
789c5f4a 13013rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13015echo "${ECHO_T}$ac_header_compiler" >&6
13016
13017# Is the header present?
13018echo "$as_me:$LINENO: checking $ac_header presence" >&5
13019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13020cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13021#line $LINENO "configure"
e6cc62c6
VS
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
13027#include <$ac_header>
13028_ACEOF
13029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } >/dev/null; then
13037 if test -s conftest.err; then
13038 ac_cpp_err=$ac_c_preproc_warn_flag
13039 else
13040 ac_cpp_err=
13041 fi
13042else
13043 ac_cpp_err=yes
13044fi
13045if test -z "$ac_cpp_err"; then
13046 ac_header_preproc=yes
13047else
13048 echo "$as_me: failed program was:" >&5
13049sed 's/^/| /' conftest.$ac_ext >&5
13050
13051 ac_header_preproc=no
13052fi
13053rm -f conftest.err conftest.$ac_ext
13054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13055echo "${ECHO_T}$ac_header_preproc" >&6
13056
13057# So? What about this header?
789c5f4a
VZ
13058case $ac_header_compiler:$ac_header_preproc in
13059 yes:no )
e6cc62c6
VS
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13064 (
13065 cat <<\_ASBOX
13066## ------------------------------------ ##
13067## Report this to bug-autoconf@gnu.org. ##
13068## ------------------------------------ ##
13069_ASBOX
13070 ) |
13071 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13072 ;;
789c5f4a 13073 no:yes )
e6cc62c6
VS
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13080 (
13081 cat <<\_ASBOX
789c5f4a
VZ
13082## ------------------------------------ ##
13083## Report this to bug-autoconf@gnu.org. ##
13084## ------------------------------------ ##
e6cc62c6
VS
13085_ASBOX
13086 ) |
13087 sed "s/^/$as_me: WARNING: /" >&2
13088 ;;
13089esac
13090echo "$as_me:$LINENO: checking for $ac_header" >&5
13091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13092if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
789c5f4a 13095 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13096fi
e6cc62c6
VS
13097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13099
4f14bcd8 13100fi
e6cc62c6
VS
13101if test `eval echo '${'$as_ac_Header'}'` = yes; then
13102 cat >>confdefs.h <<_ACEOF
13103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13104_ACEOF
13105
13106fi
13107
13108done
13109
13110fi
13111
13112
13113for ac_header in fnmatch.h
13114do
13115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13116if eval "test \"\${$as_ac_Header+set}\" = set"; then
13117 echo "$as_me:$LINENO: checking for $ac_header" >&5
13118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13119if eval "test \"\${$as_ac_Header+set}\" = set"; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121fi
13122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13124else
13125 # Is the header compilable?
13126echo "$as_me:$LINENO: checking $ac_header usability" >&5
13127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13128cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13129#line $LINENO "configure"
e6cc62c6
VS
13130/* confdefs.h. */
13131_ACEOF
13132cat confdefs.h >>conftest.$ac_ext
13133cat >>conftest.$ac_ext <<_ACEOF
13134/* end confdefs.h. */
13135$ac_includes_default
13136#include <$ac_header>
13137_ACEOF
13138rm -f conftest.$ac_objext
13139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13140 (eval $ac_compile) 2>&5
e6cc62c6
VS
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
789c5f4a 13144 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_header_compiler=yes
13151else
13152 echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
13155ac_header_compiler=no
13156fi
789c5f4a 13157rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159echo "${ECHO_T}$ac_header_compiler" >&6
13160
13161# Is the header present?
13162echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13164cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13165#line $LINENO "configure"
e6cc62c6
VS
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171#include <$ac_header>
13172_ACEOF
13173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } >/dev/null; then
13181 if test -s conftest.err; then
13182 ac_cpp_err=$ac_c_preproc_warn_flag
13183 else
13184 ac_cpp_err=
13185 fi
13186else
13187 ac_cpp_err=yes
13188fi
13189if test -z "$ac_cpp_err"; then
13190 ac_header_preproc=yes
13191else
13192 echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
13195 ac_header_preproc=no
13196fi
13197rm -f conftest.err conftest.$ac_ext
13198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13199echo "${ECHO_T}$ac_header_preproc" >&6
13200
13201# So? What about this header?
789c5f4a
VZ
13202case $ac_header_compiler:$ac_header_preproc in
13203 yes:no )
e6cc62c6
VS
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13208 (
13209 cat <<\_ASBOX
13210## ------------------------------------ ##
13211## Report this to bug-autoconf@gnu.org. ##
13212## ------------------------------------ ##
13213_ASBOX
13214 ) |
13215 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13216 ;;
789c5f4a 13217 no:yes )
e6cc62c6
VS
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13224 (
13225 cat <<\_ASBOX
789c5f4a
VZ
13226## ------------------------------------ ##
13227## Report this to bug-autoconf@gnu.org. ##
13228## ------------------------------------ ##
e6cc62c6
VS
13229_ASBOX
13230 ) |
13231 sed "s/^/$as_me: WARNING: /" >&2
13232 ;;
13233esac
13234echo "$as_me:$LINENO: checking for $ac_header" >&5
13235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13236if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13238else
789c5f4a 13239 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
13240fi
13241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13243
21d1c967 13244fi
e6cc62c6
VS
13245if test `eval echo '${'$as_ac_Header'}'` = yes; then
13246 cat >>confdefs.h <<_ACEOF
13247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13248_ACEOF
13249
13250fi
13251
21d1c967 13252done
90dd450c 13253
5c6fa7d2 13254
a0b9e27f 13255if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13256
13257for ac_func in fnmatch
21d1c967 13258do
e6cc62c6
VS
13259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13260echo "$as_me:$LINENO: checking for $ac_func" >&5
13261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13262if eval "test \"\${$as_ac_var+set}\" = set"; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264else
13265 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13266#line $LINENO "configure"
e6cc62c6
VS
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
a0b9e27f 13272/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13273 which can conflict with char $ac_func (); below.
13274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13275 <limits.h> exists even on freestanding compilers. */
13276#ifdef __STDC__
13277# include <limits.h>
13278#else
13279# include <assert.h>
13280#endif
a0b9e27f 13281/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13282#ifdef __cplusplus
13283extern "C"
13284{
13285#endif
a0b9e27f 13286/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13287 builtin and then its argument prototype would still apply. */
13288char $ac_func ();
a0b9e27f
MB
13289/* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293choke me
13294#else
e6cc62c6
VS
13295char (*f) () = $ac_func;
13296#endif
13297#ifdef __cplusplus
13298}
a0b9e27f
MB
13299#endif
13300
e6cc62c6
VS
13301int
13302main ()
13303{
13304return f != $ac_func;
13305 ;
13306 return 0;
13307}
13308_ACEOF
13309rm -f conftest.$ac_objext conftest$ac_exeext
13310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 13311 (eval $ac_link) 2>&5
e6cc62c6
VS
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
789c5f4a 13315 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 eval "$as_ac_var=yes"
13322else
13323 echo "$as_me: failed program was:" >&5
13324sed 's/^/| /' conftest.$ac_ext >&5
13325
13326eval "$as_ac_var=no"
13327fi
789c5f4a 13328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13329fi
13330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13332if test `eval echo '${'$as_ac_var'}'` = yes; then
13333 cat >>confdefs.h <<_ACEOF
13334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13335_ACEOF
32832908 13336
21d1c967
GD
13337fi
13338done
90dd450c 13339
a0b9e27f 13340fi
90dd450c 13341
e6cc62c6
VS
13342
13343for ac_header in langinfo.h
21d1c967 13344do
e6cc62c6
VS
13345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347 echo "$as_me:$LINENO: checking for $ac_header" >&5
13348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13349if eval "test \"\${$as_ac_Header+set}\" = set"; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351fi
13352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13354else
13355 # Is the header compilable?
13356echo "$as_me:$LINENO: checking $ac_header usability" >&5
13357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13358cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13359#line $LINENO "configure"
e6cc62c6
VS
13360/* confdefs.h. */
13361_ACEOF
13362cat confdefs.h >>conftest.$ac_ext
13363cat >>conftest.$ac_ext <<_ACEOF
13364/* end confdefs.h. */
13365$ac_includes_default
13366#include <$ac_header>
13367_ACEOF
13368rm -f conftest.$ac_objext
13369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13370 (eval $ac_compile) 2>&5
e6cc62c6
VS
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
789c5f4a 13374 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 ac_header_compiler=yes
13381else
13382 echo "$as_me: failed program was:" >&5
13383sed 's/^/| /' conftest.$ac_ext >&5
13384
13385ac_header_compiler=no
13386fi
789c5f4a 13387rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13389echo "${ECHO_T}$ac_header_compiler" >&6
13390
13391# Is the header present?
13392echo "$as_me:$LINENO: checking $ac_header presence" >&5
13393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13394cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13395#line $LINENO "configure"
e6cc62c6
VS
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#include <$ac_header>
13402_ACEOF
13403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } >/dev/null; then
13411 if test -s conftest.err; then
13412 ac_cpp_err=$ac_c_preproc_warn_flag
13413 else
13414 ac_cpp_err=
13415 fi
13416else
13417 ac_cpp_err=yes
13418fi
13419if test -z "$ac_cpp_err"; then
13420 ac_header_preproc=yes
13421else
13422 echo "$as_me: failed program was:" >&5
13423sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 ac_header_preproc=no
13426fi
13427rm -f conftest.err conftest.$ac_ext
13428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13429echo "${ECHO_T}$ac_header_preproc" >&6
13430
13431# So? What about this header?
789c5f4a
VZ
13432case $ac_header_compiler:$ac_header_preproc in
13433 yes:no )
e6cc62c6
VS
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13438 (
13439 cat <<\_ASBOX
13440## ------------------------------------ ##
13441## Report this to bug-autoconf@gnu.org. ##
13442## ------------------------------------ ##
13443_ASBOX
13444 ) |
13445 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13446 ;;
789c5f4a 13447 no:yes )
e6cc62c6
VS
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13454 (
13455 cat <<\_ASBOX
789c5f4a
VZ
13456## ------------------------------------ ##
13457## Report this to bug-autoconf@gnu.org. ##
13458## ------------------------------------ ##
e6cc62c6
VS
13459_ASBOX
13460 ) |
13461 sed "s/^/$as_me: WARNING: /" >&2
13462 ;;
13463esac
13464echo "$as_me:$LINENO: checking for $ac_header" >&5
13465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13466if eval "test \"\${$as_ac_Header+set}\" = set"; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468else
789c5f4a 13469 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13470fi
e6cc62c6
VS
13471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13473
4f14bcd8 13474fi
e6cc62c6
VS
13475if test `eval echo '${'$as_ac_Header'}'` = yes; then
13476 cat >>confdefs.h <<_ACEOF
13477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478_ACEOF
13479
21d1c967 13480fi
e6cc62c6 13481
21d1c967 13482done
3a922bb4 13483
8284b0c5 13484
4f5a7f74
VZ
13485case "${host}" in
13486 *-pc-os2_emx | *-pc-os2-emx )
13487 if test $ac_cv_header_langinfo_h = "yes"; then
13488 LIBS="$LIBS -lintl"
13489 fi
13490 ;;
13491esac
1542ea39 13492
a0b9e27f 13493if test "$wxUSE_GUI" = "yes"; then
73d617c9 13494 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13495
eb69fda5 13496for ac_header in X11/Xlib.h
21d1c967 13497do
e6cc62c6
VS
13498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499if eval "test \"\${$as_ac_Header+set}\" = set"; then
13500 echo "$as_me:$LINENO: checking for $ac_header" >&5
13501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504fi
13505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13507else
13508 # Is the header compilable?
13509echo "$as_me:$LINENO: checking $ac_header usability" >&5
13510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13511cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13512#line $LINENO "configure"
e6cc62c6
VS
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518$ac_includes_default
13519#include <$ac_header>
13520_ACEOF
13521rm -f conftest.$ac_objext
13522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13523 (eval $ac_compile) 2>&5
e6cc62c6
VS
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
789c5f4a 13527 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_header_compiler=yes
13534else
13535 echo "$as_me: failed program was:" >&5
13536sed 's/^/| /' conftest.$ac_ext >&5
13537
13538ac_header_compiler=no
13539fi
789c5f4a 13540rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542echo "${ECHO_T}$ac_header_compiler" >&6
13543
13544# Is the header present?
13545echo "$as_me:$LINENO: checking $ac_header presence" >&5
13546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13547cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13548#line $LINENO "configure"
e6cc62c6
VS
13549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
13554#include <$ac_header>
13555_ACEOF
13556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } >/dev/null; then
13564 if test -s conftest.err; then
13565 ac_cpp_err=$ac_c_preproc_warn_flag
13566 else
13567 ac_cpp_err=
13568 fi
13569else
13570 ac_cpp_err=yes
13571fi
13572if test -z "$ac_cpp_err"; then
13573 ac_header_preproc=yes
13574else
13575 echo "$as_me: failed program was:" >&5
13576sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 ac_header_preproc=no
13579fi
13580rm -f conftest.err conftest.$ac_ext
13581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13582echo "${ECHO_T}$ac_header_preproc" >&6
13583
13584# So? What about this header?
789c5f4a
VZ
13585case $ac_header_compiler:$ac_header_preproc in
13586 yes:no )
e6cc62c6
VS
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13591 (
13592 cat <<\_ASBOX
13593## ------------------------------------ ##
13594## Report this to bug-autoconf@gnu.org. ##
13595## ------------------------------------ ##
13596_ASBOX
13597 ) |
13598 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13599 ;;
789c5f4a 13600 no:yes )
e6cc62c6
VS
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13607 (
13608 cat <<\_ASBOX
789c5f4a
VZ
13609## ------------------------------------ ##
13610## Report this to bug-autoconf@gnu.org. ##
13611## ------------------------------------ ##
e6cc62c6
VS
13612_ASBOX
13613 ) |
13614 sed "s/^/$as_me: WARNING: /" >&2
13615 ;;
13616esac
13617echo "$as_me:$LINENO: checking for $ac_header" >&5
13618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13619if eval "test \"\${$as_ac_Header+set}\" = set"; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
789c5f4a 13622 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13623fi
e6cc62c6
VS
13624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13626
90dd450c 13627fi
e6cc62c6
VS
13628if test `eval echo '${'$as_ac_Header'}'` = yes; then
13629 cat >>confdefs.h <<_ACEOF
13630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13631_ACEOF
13632
247f5006 13633fi
e6cc62c6 13634
eb69fda5
VS
13635done
13636
13637
13638for ac_header in X11/XKBlib.h
13639do
13640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13641echo "$as_me:$LINENO: checking for $ac_header" >&5
13642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13643if eval "test \"\${$as_ac_Header+set}\" = set"; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645else
13646 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13647#line $LINENO "configure"
eb69fda5
VS
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
13653
13654 #if HAVE_X11_XLIB_H
13655 #include <X11/Xlib.h>
13656 #endif
13657
13658
13659#include <$ac_header>
13660_ACEOF
13661rm -f conftest.$ac_objext
13662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13663 (eval $ac_compile) 2>&5
eb69fda5
VS
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
789c5f4a 13667 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 eval "$as_ac_Header=yes"
13674else
13675 echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678eval "$as_ac_Header=no"
13679fi
789c5f4a 13680rm -f conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13681fi
13682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13684if test `eval echo '${'$as_ac_Header'}'` = yes; then
13685 cat >>confdefs.h <<_ACEOF
13686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13687_ACEOF
13688
13689fi
13690
247f5006
VZ
13691done
13692
a0b9e27f
MB
13693 fi
13694fi
247f5006 13695
247f5006 13696
e6cc62c6
VS
13697echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13698echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13699if test "${ac_cv_c_const+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701else
13702 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13703#line $LINENO "configure"
e6cc62c6
VS
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709
13710int
13711main ()
13712{
13713/* FIXME: Include the comments suggested by Paul. */
13714#ifndef __cplusplus
13715 /* Ultrix mips cc rejects this. */
13716 typedef int charset[2];
13717 const charset x;
13718 /* SunOS 4.1.1 cc rejects this. */
13719 char const *const *ccp;
13720 char **p;
13721 /* NEC SVR4.0.2 mips cc rejects this. */
13722 struct point {int x, y;};
13723 static struct point const zero = {0,0};
13724 /* AIX XL C 1.02.0.0 rejects this.
13725 It does not let you subtract one const X* pointer from another in
13726 an arm of an if-expression whose if-part is not a constant
13727 expression */
13728 const char *g = "string";
13729 ccp = &g + (g ? g-g : 0);
13730 /* HPUX 7.0 cc rejects these. */
13731 ++ccp;
13732 p = (char**) ccp;
13733 ccp = (char const *const *) p;
13734 { /* SCO 3.2v4 cc rejects this. */
13735 char *t;
13736 char const *s = 0 ? (char *) 0 : (char const *) 0;
13737
13738 *t++ = 0;
13739 }
13740 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13741 int x[] = {25, 17};
13742 const int *foo = &x[0];
13743 ++foo;
13744 }
13745 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13746 typedef const int *iptr;
13747 iptr p = 0;
13748 ++p;
13749 }
13750 { /* AIX XL C 1.02.0.0 rejects this saying
13751 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13752 struct s { int j; const int *ap[3]; };
13753 struct s *b; b->j = 5;
13754 }
13755 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13756 const int foo = 10;
13757 }
13758#endif
13759
13760 ;
13761 return 0;
13762}
13763_ACEOF
13764rm -f conftest.$ac_objext
13765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13766 (eval $ac_compile) 2>&5
e6cc62c6
VS
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
789c5f4a 13770 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
a0b9e27f 13776 ac_cv_c_const=yes
247f5006 13777else
e6cc62c6
VS
13778 echo "$as_me: failed program was:" >&5
13779sed 's/^/| /' conftest.$ac_ext >&5
13780
13781ac_cv_c_const=no
247f5006 13782fi
789c5f4a 13783rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13784fi
e6cc62c6
VS
13785echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13786echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13787if test $ac_cv_c_const = no; then
e6cc62c6
VS
13788
13789cat >>confdefs.h <<\_ACEOF
13790#define const
13791_ACEOF
10f2d63a 13792
90dd450c 13793fi
81809c07 13794
e6cc62c6
VS
13795echo "$as_me:$LINENO: checking for inline" >&5
13796echo $ECHO_N "checking for inline... $ECHO_C" >&6
13797if test "${ac_cv_c_inline+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13799else
a0b9e27f
MB
13800 ac_cv_c_inline=no
13801for ac_kw in inline __inline__ __inline; do
e6cc62c6 13802 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13803#line $LINENO "configure"
e6cc62c6
VS
13804/* confdefs.h. */
13805_ACEOF
13806cat confdefs.h >>conftest.$ac_ext
13807cat >>conftest.$ac_ext <<_ACEOF
13808/* end confdefs.h. */
13809#ifndef __cplusplus
13810typedef int foo_t;
13811static $ac_kw foo_t static_foo () {return 0; }
13812$ac_kw foo_t foo () {return 0; }
13813#endif
a0b9e27f 13814
e6cc62c6
VS
13815_ACEOF
13816rm -f conftest.$ac_objext
13817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13818 (eval $ac_compile) 2>&5
e6cc62c6
VS
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
789c5f4a 13822 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
a0b9e27f 13828 ac_cv_c_inline=$ac_kw; break
247f5006 13829else
e6cc62c6
VS
13830 echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
247f5006 13833fi
789c5f4a 13834rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13835done
247f5006
VZ
13836
13837fi
e6cc62c6
VS
13838echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13839echo "${ECHO_T}$ac_cv_c_inline" >&6
13840case $ac_cv_c_inline in
a0b9e27f 13841 inline | yes) ;;
789c5f4a
VZ
13842 no)
13843cat >>confdefs.h <<\_ACEOF
13844#define inline
09d3439c 13845_ACEOF
789c5f4a
VZ
13846 ;;
13847 *) cat >>confdefs.h <<_ACEOF
13848#define inline $ac_cv_c_inline
13849_ACEOF
13850 ;;
a0b9e27f 13851esac
247f5006 13852
247f5006 13853
e6cc62c6
VS
13854echo "$as_me:$LINENO: checking for char" >&5
13855echo $ECHO_N "checking for char... $ECHO_C" >&6
13856if test "${ac_cv_type_char+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858else
13859 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13860#line $LINENO "configure"
e6cc62c6
VS
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866$ac_includes_default
13867int
13868main ()
13869{
13870if ((char *) 0)
13871 return 0;
13872if (sizeof (char))
13873 return 0;
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13880 (eval $ac_compile) 2>&5
e6cc62c6
VS
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
789c5f4a 13884 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 ac_cv_type_char=yes
13891else
13892 echo "$as_me: failed program was:" >&5
13893sed 's/^/| /' conftest.$ac_ext >&5
13894
13895ac_cv_type_char=no
13896fi
789c5f4a 13897rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13898fi
13899echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13900echo "${ECHO_T}$ac_cv_type_char" >&6
13901
13902echo "$as_me:$LINENO: checking size of char" >&5
13903echo $ECHO_N "checking size of char... $ECHO_C" >&6
13904if test "${ac_cv_sizeof_char+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906else
13907 if test "$ac_cv_type_char" = yes; then
13908 # The cast to unsigned long works around a bug in the HP C Compiler
13909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13911 # This bug is HP SR number 8606223364.
a0b9e27f 13912 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13913 # Depending upon the size, compute the lo and hi bounds.
13914cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13915#line $LINENO "configure"
e6cc62c6
VS
13916/* confdefs.h. */
13917_ACEOF
13918cat confdefs.h >>conftest.$ac_ext
13919cat >>conftest.$ac_ext <<_ACEOF
13920/* end confdefs.h. */
13921$ac_includes_default
13922int
13923main ()
13924{
13925static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13926test_array [0] = 0
13927
13928 ;
13929 return 0;
13930}
13931_ACEOF
13932rm -f conftest.$ac_objext
13933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13934 (eval $ac_compile) 2>&5
e6cc62c6
VS
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
789c5f4a 13938 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }; then
13944 ac_lo=0 ac_mid=0
13945 while :; do
13946 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13947#line $LINENO "configure"
e6cc62c6
VS
13948/* confdefs.h. */
13949_ACEOF
13950cat confdefs.h >>conftest.$ac_ext
13951cat >>conftest.$ac_ext <<_ACEOF
13952/* end confdefs.h. */
13953$ac_includes_default
13954int
13955main ()
13956{
13957static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13958test_array [0] = 0
13959
13960 ;
13961 return 0;
13962}
13963_ACEOF
13964rm -f conftest.$ac_objext
13965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13966 (eval $ac_compile) 2>&5
e6cc62c6
VS
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
789c5f4a 13970 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_hi=$ac_mid; break
13977else
13978 echo "$as_me: failed program was:" >&5
13979sed 's/^/| /' conftest.$ac_ext >&5
13980
13981ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
13982 if test $ac_lo -le $ac_mid; then
13983 ac_lo= ac_hi=
13984 break
13985 fi
13986 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 13987fi
789c5f4a 13988rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 13989 done
a0b9e27f 13990else
e6cc62c6
VS
13991 echo "$as_me: failed program was:" >&5
13992sed 's/^/| /' conftest.$ac_ext >&5
13993
13994cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13995#line $LINENO "configure"
e6cc62c6
VS
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001$ac_includes_default
14002int
14003main ()
14004{
14005static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14006test_array [0] = 0
14007
14008 ;
14009 return 0;
14010}
14011_ACEOF
14012rm -f conftest.$ac_objext
14013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14014 (eval $ac_compile) 2>&5
e6cc62c6
VS
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
789c5f4a 14018 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }; then
14024 ac_hi=-1 ac_mid=-1
14025 while :; do
14026 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14027#line $LINENO "configure"
e6cc62c6
VS
14028/* confdefs.h. */
14029_ACEOF
14030cat confdefs.h >>conftest.$ac_ext
14031cat >>conftest.$ac_ext <<_ACEOF
14032/* end confdefs.h. */
14033$ac_includes_default
14034int
14035main ()
14036{
14037static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14038test_array [0] = 0
14039
14040 ;
14041 return 0;
14042}
14043_ACEOF
14044rm -f conftest.$ac_objext
14045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14046 (eval $ac_compile) 2>&5
e6cc62c6
VS
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
789c5f4a 14050 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_lo=$ac_mid; break
14057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14062 if test $ac_mid -le $ac_hi; then
14063 ac_lo= ac_hi=
14064 break
14065 fi
14066 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14067fi
789c5f4a 14068rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14069 done
14070else
14071 echo "$as_me: failed program was:" >&5
14072sed 's/^/| /' conftest.$ac_ext >&5
14073
14074ac_lo= ac_hi=
14075fi
789c5f4a 14076rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14077fi
789c5f4a 14078rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14079# Binary search between lo and hi bounds.
14080while test "x$ac_lo" != "x$ac_hi"; do
14081 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14082 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14083#line $LINENO "configure"
e6cc62c6
VS
14084/* confdefs.h. */
14085_ACEOF
14086cat confdefs.h >>conftest.$ac_ext
14087cat >>conftest.$ac_ext <<_ACEOF
14088/* end confdefs.h. */
14089$ac_includes_default
14090int
14091main ()
14092{
14093static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14094test_array [0] = 0
14095
14096 ;
14097 return 0;
14098}
14099_ACEOF
14100rm -f conftest.$ac_objext
14101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14102 (eval $ac_compile) 2>&5
e6cc62c6
VS
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
789c5f4a 14106 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_hi=$ac_mid
14113else
14114 echo "$as_me: failed program was:" >&5
14115sed 's/^/| /' conftest.$ac_ext >&5
14116
14117ac_lo=`expr '(' $ac_mid ')' + 1`
14118fi
789c5f4a 14119rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14120done
14121case $ac_lo in
14122?*) ac_cv_sizeof_char=$ac_lo;;
14123'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14124See \`config.log' for more details." >&5
14125echo "$as_me: error: cannot compute sizeof (char), 77
14126See \`config.log' for more details." >&2;}
14127 { (exit 1); exit 1; }; } ;;
14128esac
14129else
14130 if test "$cross_compiling" = yes; then
14131 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14132See \`config.log' for more details." >&5
14133echo "$as_me: error: cannot run test program while cross compiling
14134See \`config.log' for more details." >&2;}
14135 { (exit 1); exit 1; }; }
14136else
14137 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14138#line $LINENO "configure"
e6cc62c6
VS
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144$ac_includes_default
14145long longval () { return (long) (sizeof (char)); }
14146unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14147#include <stdio.h>
e6cc62c6
VS
14148#include <stdlib.h>
14149int
14150main ()
247f5006 14151{
e6cc62c6
VS
14152
14153 FILE *f = fopen ("conftest.val", "w");
14154 if (! f)
14155 exit (1);
14156 if (((long) (sizeof (char))) < 0)
14157 {
14158 long i = longval ();
14159 if (i != ((long) (sizeof (char))))
14160 exit (1);
14161 fprintf (f, "%ld\n", i);
14162 }
14163 else
14164 {
14165 unsigned long i = ulongval ();
14166 if (i != ((long) (sizeof (char))))
14167 exit (1);
14168 fprintf (f, "%lu\n", i);
14169 }
14170 exit (ferror (f) || fclose (f) != 0);
14171
14172 ;
14173 return 0;
52127426 14174}
e6cc62c6
VS
14175_ACEOF
14176rm -f conftest$ac_exeext
14177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14178 (eval $ac_link) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_sizeof_char=`cat conftest.val`
14188else
14189 echo "$as_me: program exited with status $ac_status" >&5
14190echo "$as_me: failed program was:" >&5
14191sed 's/^/| /' conftest.$ac_ext >&5
14192
14193( exit $ac_status )
14194{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14195See \`config.log' for more details." >&5
14196echo "$as_me: error: cannot compute sizeof (char), 77
14197See \`config.log' for more details." >&2;}
14198 { (exit 1); exit 1; }; }
14199fi
789c5f4a 14200rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14201fi
14202fi
14203rm -f conftest.val
247f5006 14204else
a0b9e27f 14205 ac_cv_sizeof_char=0
247f5006 14206fi
247f5006 14207fi
e6cc62c6
VS
14208echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14209echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14210cat >>confdefs.h <<_ACEOF
14211#define SIZEOF_CHAR $ac_cv_sizeof_char
14212_ACEOF
14213
14214
14215echo "$as_me:$LINENO: checking for short" >&5
14216echo $ECHO_N "checking for short... $ECHO_C" >&6
14217if test "${ac_cv_type_short+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14221#line $LINENO "configure"
e6cc62c6
VS
14222/* confdefs.h. */
14223_ACEOF
14224cat confdefs.h >>conftest.$ac_ext
14225cat >>conftest.$ac_ext <<_ACEOF
14226/* end confdefs.h. */
14227$ac_includes_default
14228int
14229main ()
14230{
14231if ((short *) 0)
14232 return 0;
14233if (sizeof (short))
14234 return 0;
14235 ;
14236 return 0;
14237}
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14241 (eval $ac_compile) 2>&5
e6cc62c6
VS
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
789c5f4a 14245 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_cv_type_short=yes
14252else
14253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256ac_cv_type_short=no
14257fi
789c5f4a 14258rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14259fi
14260echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14261echo "${ECHO_T}$ac_cv_type_short" >&6
14262
14263echo "$as_me:$LINENO: checking size of short" >&5
14264echo $ECHO_N "checking size of short... $ECHO_C" >&6
14265if test "${ac_cv_sizeof_short+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
14268 if test "$ac_cv_type_short" = yes; then
14269 # The cast to unsigned long works around a bug in the HP C Compiler
14270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14272 # This bug is HP SR number 8606223364.
14273 if test "$cross_compiling" = yes; then
14274 # Depending upon the size, compute the lo and hi bounds.
14275cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14276#line $LINENO "configure"
e6cc62c6
VS
14277/* confdefs.h. */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
14281/* end confdefs.h. */
14282$ac_includes_default
14283int
14284main ()
14285{
14286static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14287test_array [0] = 0
247f5006 14288
e6cc62c6
VS
14289 ;
14290 return 0;
14291}
14292_ACEOF
14293rm -f conftest.$ac_objext
14294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14295 (eval $ac_compile) 2>&5
e6cc62c6
VS
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
789c5f4a 14299 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_lo=0 ac_mid=0
14306 while :; do
14307 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14308#line $LINENO "configure"
e6cc62c6
VS
14309/* confdefs.h. */
14310_ACEOF
14311cat confdefs.h >>conftest.$ac_ext
14312cat >>conftest.$ac_ext <<_ACEOF
14313/* end confdefs.h. */
14314$ac_includes_default
14315int
14316main ()
14317{
14318static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14319test_array [0] = 0
14320
14321 ;
14322 return 0;
14323}
14324_ACEOF
14325rm -f conftest.$ac_objext
14326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14327 (eval $ac_compile) 2>&5
e6cc62c6
VS
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
789c5f4a 14331 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_hi=$ac_mid; break
14338else
14339 echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
14342ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
14343 if test $ac_lo -le $ac_mid; then
14344 ac_lo= ac_hi=
14345 break
14346 fi
14347 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14348fi
789c5f4a 14349rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14350 done
14351else
14352 echo "$as_me: failed program was:" >&5
14353sed 's/^/| /' conftest.$ac_ext >&5
14354
14355cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14356#line $LINENO "configure"
e6cc62c6
VS
14357/* confdefs.h. */
14358_ACEOF
14359cat confdefs.h >>conftest.$ac_ext
14360cat >>conftest.$ac_ext <<_ACEOF
14361/* end confdefs.h. */
14362$ac_includes_default
14363int
14364main ()
14365{
14366static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14367test_array [0] = 0
247f5006 14368
e6cc62c6
VS
14369 ;
14370 return 0;
14371}
14372_ACEOF
14373rm -f conftest.$ac_objext
14374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14375 (eval $ac_compile) 2>&5
e6cc62c6
VS
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
789c5f4a 14379 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_hi=-1 ac_mid=-1
14386 while :; do
14387 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14388#line $LINENO "configure"
e6cc62c6
VS
14389/* confdefs.h. */
14390_ACEOF
14391cat confdefs.h >>conftest.$ac_ext
14392cat >>conftest.$ac_ext <<_ACEOF
14393/* end confdefs.h. */
14394$ac_includes_default
14395int
14396main ()
14397{
14398static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14399test_array [0] = 0
247f5006 14400
e6cc62c6
VS
14401 ;
14402 return 0;
14403}
14404_ACEOF
14405rm -f conftest.$ac_objext
14406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14407 (eval $ac_compile) 2>&5
e6cc62c6
VS
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
789c5f4a 14411 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_lo=$ac_mid; break
14418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14423 if test $ac_mid -le $ac_hi; then
14424 ac_lo= ac_hi=
14425 break
14426 fi
14427 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14428fi
789c5f4a 14429rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14430 done
247f5006 14431else
e6cc62c6
VS
14432 echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435ac_lo= ac_hi=
14436fi
789c5f4a 14437rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14438fi
789c5f4a 14439rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14440# Binary search between lo and hi bounds.
14441while test "x$ac_lo" != "x$ac_hi"; do
14442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14443 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14444#line $LINENO "configure"
e6cc62c6
VS
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450$ac_includes_default
14451int
14452main ()
14453{
14454static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14455test_array [0] = 0
14456
14457 ;
14458 return 0;
14459}
14460_ACEOF
14461rm -f conftest.$ac_objext
14462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14463 (eval $ac_compile) 2>&5
e6cc62c6
VS
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
789c5f4a 14467 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_hi=$ac_mid
14474else
14475 echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
14478ac_lo=`expr '(' $ac_mid ')' + 1`
14479fi
789c5f4a 14480rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14481done
14482case $ac_lo in
14483?*) ac_cv_sizeof_short=$ac_lo;;
14484'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14485See \`config.log' for more details." >&5
14486echo "$as_me: error: cannot compute sizeof (short), 77
14487See \`config.log' for more details." >&2;}
14488 { (exit 1); exit 1; }; } ;;
14489esac
247f5006 14490else
e6cc62c6
VS
14491 if test "$cross_compiling" = yes; then
14492 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14493See \`config.log' for more details." >&5
14494echo "$as_me: error: cannot run test program while cross compiling
14495See \`config.log' for more details." >&2;}
14496 { (exit 1); exit 1; }; }
14497else
14498 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14499#line $LINENO "configure"
e6cc62c6
VS
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
14506long longval () { return (long) (sizeof (short)); }
14507unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14508#include <stdio.h>
e6cc62c6
VS
14509#include <stdlib.h>
14510int
14511main ()
a0b9e27f 14512{
e6cc62c6
VS
14513
14514 FILE *f = fopen ("conftest.val", "w");
14515 if (! f)
14516 exit (1);
14517 if (((long) (sizeof (short))) < 0)
14518 {
14519 long i = longval ();
14520 if (i != ((long) (sizeof (short))))
14521 exit (1);
14522 fprintf (f, "%ld\n", i);
14523 }
14524 else
14525 {
14526 unsigned long i = ulongval ();
14527 if (i != ((long) (sizeof (short))))
14528 exit (1);
14529 fprintf (f, "%lu\n", i);
14530 }
14531 exit (ferror (f) || fclose (f) != 0);
14532
14533 ;
14534 return 0;
a0b9e27f 14535}
e6cc62c6
VS
14536_ACEOF
14537rm -f conftest$ac_exeext
14538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_sizeof_short=`cat conftest.val`
14549else
14550 echo "$as_me: program exited with status $ac_status" >&5
14551echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
14554( exit $ac_status )
14555{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14556See \`config.log' for more details." >&5
14557echo "$as_me: error: cannot compute sizeof (short), 77
14558See \`config.log' for more details." >&2;}
14559 { (exit 1); exit 1; }; }
14560fi
789c5f4a 14561rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14562fi
14563fi
14564rm -f conftest.val
247f5006 14565else
a0b9e27f 14566 ac_cv_sizeof_short=0
247f5006 14567fi
247f5006 14568fi
e6cc62c6
VS
14569echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14570echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14571cat >>confdefs.h <<_ACEOF
14572#define SIZEOF_SHORT $ac_cv_sizeof_short
14573_ACEOF
14574
14575
14576echo "$as_me:$LINENO: checking for void *" >&5
14577echo $ECHO_N "checking for void *... $ECHO_C" >&6
14578if test "${ac_cv_type_void_p+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580else
14581 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14582#line $LINENO "configure"
e6cc62c6
VS
14583/* confdefs.h. */
14584_ACEOF
14585cat confdefs.h >>conftest.$ac_ext
14586cat >>conftest.$ac_ext <<_ACEOF
14587/* end confdefs.h. */
14588$ac_includes_default
14589int
14590main ()
14591{
14592if ((void * *) 0)
14593 return 0;
14594if (sizeof (void *))
14595 return 0;
14596 ;
14597 return 0;
14598}
14599_ACEOF
14600rm -f conftest.$ac_objext
14601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14602 (eval $ac_compile) 2>&5
e6cc62c6
VS
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
789c5f4a 14606 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_cv_type_void_p=yes
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617ac_cv_type_void_p=no
14618fi
789c5f4a 14619rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14620fi
14621echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14622echo "${ECHO_T}$ac_cv_type_void_p" >&6
14623
14624echo "$as_me:$LINENO: checking size of void *" >&5
14625echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14626if test "${ac_cv_sizeof_void_p+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628else
14629 if test "$ac_cv_type_void_p" = yes; then
14630 # The cast to unsigned long works around a bug in the HP C Compiler
14631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14633 # This bug is HP SR number 8606223364.
14634 if test "$cross_compiling" = yes; then
14635 # Depending upon the size, compute the lo and hi bounds.
14636cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14637#line $LINENO "configure"
e6cc62c6
VS
14638/* confdefs.h. */
14639_ACEOF
14640cat confdefs.h >>conftest.$ac_ext
14641cat >>conftest.$ac_ext <<_ACEOF
14642/* end confdefs.h. */
14643$ac_includes_default
14644int
14645main ()
14646{
14647static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14648test_array [0] = 0
14649
14650 ;
14651 return 0;
14652}
14653_ACEOF
14654rm -f conftest.$ac_objext
14655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14656 (eval $ac_compile) 2>&5
e6cc62c6
VS
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
789c5f4a 14660 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_lo=0 ac_mid=0
14667 while :; do
14668 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14669#line $LINENO "configure"
e6cc62c6
VS
14670/* confdefs.h. */
14671_ACEOF
14672cat confdefs.h >>conftest.$ac_ext
14673cat >>conftest.$ac_ext <<_ACEOF
14674/* end confdefs.h. */
14675$ac_includes_default
14676int
14677main ()
14678{
14679static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14680test_array [0] = 0
247f5006 14681
e6cc62c6
VS
14682 ;
14683 return 0;
14684}
14685_ACEOF
14686rm -f conftest.$ac_objext
14687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14688 (eval $ac_compile) 2>&5
e6cc62c6
VS
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
789c5f4a 14692 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
14698 ac_hi=$ac_mid; break
14699else
14700 echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
14704 if test $ac_lo -le $ac_mid; then
14705 ac_lo= ac_hi=
14706 break
14707 fi
14708 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14709fi
789c5f4a 14710rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14711 done
14712else
14713 echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14717#line $LINENO "configure"
e6cc62c6
VS
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
14723$ac_includes_default
14724int
14725main ()
14726{
14727static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14728test_array [0] = 0
247f5006 14729
e6cc62c6
VS
14730 ;
14731 return 0;
14732}
14733_ACEOF
14734rm -f conftest.$ac_objext
14735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14736 (eval $ac_compile) 2>&5
e6cc62c6
VS
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
789c5f4a 14740 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 ac_hi=-1 ac_mid=-1
14747 while :; do
14748 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14749#line $LINENO "configure"
e6cc62c6
VS
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
14755$ac_includes_default
14756int
14757main ()
14758{
14759static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14760test_array [0] = 0
247f5006 14761
e6cc62c6
VS
14762 ;
14763 return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext
14767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14768 (eval $ac_compile) 2>&5
e6cc62c6
VS
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
789c5f4a 14772 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_lo=$ac_mid; break
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14784 if test $ac_mid -le $ac_hi; then
14785 ac_lo= ac_hi=
14786 break
14787 fi
14788 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14789fi
789c5f4a 14790rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14791 done
a0b9e27f 14792else
e6cc62c6
VS
14793 echo "$as_me: failed program was:" >&5
14794sed 's/^/| /' conftest.$ac_ext >&5
14795
14796ac_lo= ac_hi=
14797fi
789c5f4a 14798rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14799fi
789c5f4a 14800rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14801# Binary search between lo and hi bounds.
14802while test "x$ac_lo" != "x$ac_hi"; do
14803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14804 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14805#line $LINENO "configure"
e6cc62c6
VS
14806/* confdefs.h. */
14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
14811$ac_includes_default
14812int
14813main ()
14814{
14815static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14816test_array [0] = 0
14817
14818 ;
14819 return 0;
14820}
14821_ACEOF
14822rm -f conftest.$ac_objext
14823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14824 (eval $ac_compile) 2>&5
e6cc62c6
VS
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
789c5f4a 14828 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 ac_hi=$ac_mid
14835else
14836 echo "$as_me: failed program was:" >&5
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
14839ac_lo=`expr '(' $ac_mid ')' + 1`
14840fi
789c5f4a 14841rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14842done
14843case $ac_lo in
14844?*) ac_cv_sizeof_void_p=$ac_lo;;
14845'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14846See \`config.log' for more details." >&5
14847echo "$as_me: error: cannot compute sizeof (void *), 77
14848See \`config.log' for more details." >&2;}
14849 { (exit 1); exit 1; }; } ;;
14850esac
247f5006 14851else
e6cc62c6
VS
14852 if test "$cross_compiling" = yes; then
14853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14854See \`config.log' for more details." >&5
14855echo "$as_me: error: cannot run test program while cross compiling
14856See \`config.log' for more details." >&2;}
14857 { (exit 1); exit 1; }; }
14858else
14859 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14860#line $LINENO "configure"
e6cc62c6
VS
14861/* confdefs.h. */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h. */
14866$ac_includes_default
14867long longval () { return (long) (sizeof (void *)); }
14868unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14869#include <stdio.h>
e6cc62c6
VS
14870#include <stdlib.h>
14871int
14872main ()
247f5006 14873{
e6cc62c6
VS
14874
14875 FILE *f = fopen ("conftest.val", "w");
14876 if (! f)
14877 exit (1);
14878 if (((long) (sizeof (void *))) < 0)
14879 {
14880 long i = longval ();
14881 if (i != ((long) (sizeof (void *))))
14882 exit (1);
14883 fprintf (f, "%ld\n", i);
14884 }
14885 else
14886 {
14887 unsigned long i = ulongval ();
14888 if (i != ((long) (sizeof (void *))))
14889 exit (1);
14890 fprintf (f, "%lu\n", i);
14891 }
14892 exit (ferror (f) || fclose (f) != 0);
14893
14894 ;
14895 return 0;
5c6fa7d2 14896}
e6cc62c6
VS
14897_ACEOF
14898rm -f conftest$ac_exeext
14899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14900 (eval $ac_link) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_sizeof_void_p=`cat conftest.val`
14910else
14911 echo "$as_me: program exited with status $ac_status" >&5
14912echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915( exit $ac_status )
14916{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14917See \`config.log' for more details." >&5
14918echo "$as_me: error: cannot compute sizeof (void *), 77
14919See \`config.log' for more details." >&2;}
14920 { (exit 1); exit 1; }; }
14921fi
789c5f4a 14922rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14923fi
14924fi
14925rm -f conftest.val
a0b9e27f 14926else
a0b9e27f
MB
14927 ac_cv_sizeof_void_p=0
14928fi
a0b9e27f 14929fi
e6cc62c6
VS
14930echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14931echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14932cat >>confdefs.h <<_ACEOF
14933#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14934_ACEOF
14935
14936
14937echo "$as_me:$LINENO: checking for int" >&5
14938echo $ECHO_N "checking for int... $ECHO_C" >&6
14939if test "${ac_cv_type_int+set}" = set; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14941else
14942 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14943#line $LINENO "configure"
e6cc62c6
VS
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949$ac_includes_default
14950int
14951main ()
14952{
14953if ((int *) 0)
14954 return 0;
14955if (sizeof (int))
14956 return 0;
14957 ;
14958 return 0;
14959}
14960_ACEOF
14961rm -f conftest.$ac_objext
14962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14963 (eval $ac_compile) 2>&5
e6cc62c6
VS
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
789c5f4a 14967 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_type_int=yes
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978ac_cv_type_int=no
14979fi
789c5f4a 14980rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14981fi
14982echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14983echo "${ECHO_T}$ac_cv_type_int" >&6
14984
14985echo "$as_me:$LINENO: checking size of int" >&5
14986echo $ECHO_N "checking size of int... $ECHO_C" >&6
14987if test "${ac_cv_sizeof_int+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 if test "$ac_cv_type_int" = yes; then
14991 # The cast to unsigned long works around a bug in the HP C Compiler
14992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14994 # This bug is HP SR number 8606223364.
14995 if test "$cross_compiling" = yes; then
14996 # Depending upon the size, compute the lo and hi bounds.
14997cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14998#line $LINENO "configure"
e6cc62c6
VS
14999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
15004$ac_includes_default
15005int
15006main ()
15007{
15008static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15009test_array [0] = 0
8284b0c5 15010
e6cc62c6
VS
15011 ;
15012 return 0;
15013}
15014_ACEOF
15015rm -f conftest.$ac_objext
15016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15017 (eval $ac_compile) 2>&5
e6cc62c6
VS
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
789c5f4a 15021 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_lo=0 ac_mid=0
15028 while :; do
15029 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15030#line $LINENO "configure"
e6cc62c6
VS
15031/* confdefs.h. */
15032_ACEOF
15033cat confdefs.h >>conftest.$ac_ext
15034cat >>conftest.$ac_ext <<_ACEOF
15035/* end confdefs.h. */
15036$ac_includes_default
15037int
15038main ()
15039{
15040static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15041test_array [0] = 0
15042
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047rm -f conftest.$ac_objext
15048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15049 (eval $ac_compile) 2>&5
e6cc62c6
VS
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
789c5f4a 15053 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_hi=$ac_mid; break
15060else
15061 echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
15065 if test $ac_lo -le $ac_mid; then
15066 ac_lo= ac_hi=
15067 break
15068 fi
15069 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15070fi
789c5f4a 15071rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15072 done
15073else
15074 echo "$as_me: failed program was:" >&5
15075sed 's/^/| /' conftest.$ac_ext >&5
15076
15077cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15078#line $LINENO "configure"
e6cc62c6
VS
15079/* confdefs.h. */
15080_ACEOF
15081cat confdefs.h >>conftest.$ac_ext
15082cat >>conftest.$ac_ext <<_ACEOF
15083/* end confdefs.h. */
15084$ac_includes_default
15085int
15086main ()
15087{
15088static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15089test_array [0] = 0
247f5006 15090
e6cc62c6
VS
15091 ;
15092 return 0;
15093}
15094_ACEOF
15095rm -f conftest.$ac_objext
15096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15097 (eval $ac_compile) 2>&5
e6cc62c6
VS
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
789c5f4a 15101 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 ac_hi=-1 ac_mid=-1
15108 while :; do
15109 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15110#line $LINENO "configure"
e6cc62c6
VS
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117int
15118main ()
15119{
15120static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15121test_array [0] = 0
247f5006 15122
e6cc62c6
VS
15123 ;
15124 return 0;
15125}
15126_ACEOF
15127rm -f conftest.$ac_objext
15128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15129 (eval $ac_compile) 2>&5
e6cc62c6
VS
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
789c5f4a 15133 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_lo=$ac_mid; break
15140else
15141 echo "$as_me: failed program was:" >&5
15142sed 's/^/| /' conftest.$ac_ext >&5
15143
15144ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
15145 if test $ac_mid -le $ac_hi; then
15146 ac_lo= ac_hi=
15147 break
15148 fi
15149 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15150fi
789c5f4a 15151rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15152 done
247f5006 15153else
e6cc62c6
VS
15154 echo "$as_me: failed program was:" >&5
15155sed 's/^/| /' conftest.$ac_ext >&5
15156
15157ac_lo= ac_hi=
15158fi
789c5f4a 15159rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15160fi
789c5f4a 15161rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15162# Binary search between lo and hi bounds.
15163while test "x$ac_lo" != "x$ac_hi"; do
15164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15165 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15166#line $LINENO "configure"
e6cc62c6
VS
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
15171/* end confdefs.h. */
15172$ac_includes_default
15173int
15174main ()
15175{
15176static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15177test_array [0] = 0
15178
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext
15184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15185 (eval $ac_compile) 2>&5
e6cc62c6
VS
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
789c5f4a 15189 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_hi=$ac_mid
15196else
15197 echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200ac_lo=`expr '(' $ac_mid ')' + 1`
15201fi
789c5f4a 15202rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15203done
15204case $ac_lo in
15205?*) ac_cv_sizeof_int=$ac_lo;;
15206'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15207See \`config.log' for more details." >&5
15208echo "$as_me: error: cannot compute sizeof (int), 77
15209See \`config.log' for more details." >&2;}
15210 { (exit 1); exit 1; }; } ;;
15211esac
a0b9e27f 15212else
e6cc62c6
VS
15213 if test "$cross_compiling" = yes; then
15214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15215See \`config.log' for more details." >&5
15216echo "$as_me: error: cannot run test program while cross compiling
15217See \`config.log' for more details." >&2;}
15218 { (exit 1); exit 1; }; }
15219else
15220 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15221#line $LINENO "configure"
e6cc62c6
VS
15222/* confdefs.h. */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h. */
15227$ac_includes_default
15228long longval () { return (long) (sizeof (int)); }
15229unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15230#include <stdio.h>
e6cc62c6
VS
15231#include <stdlib.h>
15232int
15233main ()
247f5006 15234{
e6cc62c6
VS
15235
15236 FILE *f = fopen ("conftest.val", "w");
15237 if (! f)
15238 exit (1);
15239 if (((long) (sizeof (int))) < 0)
15240 {
15241 long i = longval ();
15242 if (i != ((long) (sizeof (int))))
15243 exit (1);
15244 fprintf (f, "%ld\n", i);
15245 }
15246 else
15247 {
15248 unsigned long i = ulongval ();
15249 if (i != ((long) (sizeof (int))))
15250 exit (1);
15251 fprintf (f, "%lu\n", i);
15252 }
15253 exit (ferror (f) || fclose (f) != 0);
15254
15255 ;
15256 return 0;
247f5006 15257}
e6cc62c6
VS
15258_ACEOF
15259rm -f conftest$ac_exeext
15260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261 (eval $ac_link) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_cv_sizeof_int=`cat conftest.val`
15271else
15272 echo "$as_me: program exited with status $ac_status" >&5
15273echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276( exit $ac_status )
15277{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15278See \`config.log' for more details." >&5
15279echo "$as_me: error: cannot compute sizeof (int), 77
15280See \`config.log' for more details." >&2;}
15281 { (exit 1); exit 1; }; }
15282fi
789c5f4a 15283rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15284fi
15285fi
15286rm -f conftest.val
6f72b082 15287else
a0b9e27f 15288 ac_cv_sizeof_int=0
21d1c967 15289fi
698dcdb6 15290fi
e6cc62c6
VS
15291echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15292echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15293cat >>confdefs.h <<_ACEOF
15294#define SIZEOF_INT $ac_cv_sizeof_int
15295_ACEOF
15296
15297
15298echo "$as_me:$LINENO: checking for long" >&5
15299echo $ECHO_N "checking for long... $ECHO_C" >&6
15300if test "${ac_cv_type_long+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else
15303 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15304#line $LINENO "configure"
e6cc62c6
VS
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310$ac_includes_default
15311int
15312main ()
15313{
15314if ((long *) 0)
15315 return 0;
15316if (sizeof (long))
15317 return 0;
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext
15323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15324 (eval $ac_compile) 2>&5
e6cc62c6
VS
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
789c5f4a 15328 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_type_long=yes
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339ac_cv_type_long=no
15340fi
789c5f4a 15341rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15342fi
15343echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15344echo "${ECHO_T}$ac_cv_type_long" >&6
15345
15346echo "$as_me:$LINENO: checking size of long" >&5
15347echo $ECHO_N "checking size of long... $ECHO_C" >&6
15348if test "${ac_cv_sizeof_long+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 if test "$ac_cv_type_long" = yes; then
15352 # The cast to unsigned long works around a bug in the HP C Compiler
15353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15355 # This bug is HP SR number 8606223364.
15356 if test "$cross_compiling" = yes; then
15357 # Depending upon the size, compute the lo and hi bounds.
15358cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15359#line $LINENO "configure"
e6cc62c6
VS
15360/* confdefs.h. */
15361_ACEOF
15362cat confdefs.h >>conftest.$ac_ext
15363cat >>conftest.$ac_ext <<_ACEOF
15364/* end confdefs.h. */
15365$ac_includes_default
15366int
15367main ()
15368{
15369static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15370test_array [0] = 0
15371
15372 ;
15373 return 0;
15374}
15375_ACEOF
15376rm -f conftest.$ac_objext
15377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15378 (eval $ac_compile) 2>&5
e6cc62c6
VS
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
789c5f4a 15382 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 ac_lo=0 ac_mid=0
15389 while :; do
15390 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15391#line $LINENO "configure"
e6cc62c6
VS
15392/* confdefs.h. */
15393_ACEOF
15394cat confdefs.h >>conftest.$ac_ext
15395cat >>conftest.$ac_ext <<_ACEOF
15396/* end confdefs.h. */
15397$ac_includes_default
15398int
15399main ()
15400{
15401static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15402test_array [0] = 0
4f14bcd8 15403
e6cc62c6
VS
15404 ;
15405 return 0;
15406}
15407_ACEOF
15408rm -f conftest.$ac_objext
15409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15410 (eval $ac_compile) 2>&5
e6cc62c6
VS
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
789c5f4a 15414 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_hi=$ac_mid; break
15421else
15422 echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
15425ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
15426 if test $ac_lo -le $ac_mid; then
15427 ac_lo= ac_hi=
15428 break
15429 fi
15430 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15431fi
789c5f4a 15432rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15433 done
15434else
15435 echo "$as_me: failed program was:" >&5
15436sed 's/^/| /' conftest.$ac_ext >&5
15437
15438cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15439#line $LINENO "configure"
e6cc62c6
VS
15440/* confdefs.h. */
15441_ACEOF
15442cat confdefs.h >>conftest.$ac_ext
15443cat >>conftest.$ac_ext <<_ACEOF
15444/* end confdefs.h. */
15445$ac_includes_default
15446int
15447main ()
15448{
15449static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15450test_array [0] = 0
4f14bcd8 15451
e6cc62c6
VS
15452 ;
15453 return 0;
15454}
15455_ACEOF
15456rm -f conftest.$ac_objext
15457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15458 (eval $ac_compile) 2>&5
e6cc62c6
VS
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
789c5f4a 15462 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 ac_hi=-1 ac_mid=-1
15469 while :; do
15470 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15471#line $LINENO "configure"
e6cc62c6
VS
15472/* confdefs.h. */
15473_ACEOF
15474cat confdefs.h >>conftest.$ac_ext
15475cat >>conftest.$ac_ext <<_ACEOF
15476/* end confdefs.h. */
15477$ac_includes_default
15478int
15479main ()
15480{
15481static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15482test_array [0] = 0
5c6fa7d2 15483
e6cc62c6
VS
15484 ;
15485 return 0;
15486}
15487_ACEOF
15488rm -f conftest.$ac_objext
15489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15490 (eval $ac_compile) 2>&5
e6cc62c6
VS
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
789c5f4a 15494 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_lo=$ac_mid; break
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
15506 if test $ac_mid -le $ac_hi; then
15507 ac_lo= ac_hi=
15508 break
15509 fi
15510 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15511fi
789c5f4a 15512rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15513 done
247f5006 15514else
e6cc62c6
VS
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518ac_lo= ac_hi=
15519fi
789c5f4a 15520rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15521fi
789c5f4a 15522rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15523# Binary search between lo and hi bounds.
15524while test "x$ac_lo" != "x$ac_hi"; do
15525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15526 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15527#line $LINENO "configure"
e6cc62c6
VS
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533$ac_includes_default
15534int
15535main ()
15536{
15537static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15538test_array [0] = 0
15539
15540 ;
15541 return 0;
15542}
15543_ACEOF
15544rm -f conftest.$ac_objext
15545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15546 (eval $ac_compile) 2>&5
e6cc62c6
VS
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
789c5f4a 15550 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_hi=$ac_mid
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561ac_lo=`expr '(' $ac_mid ')' + 1`
15562fi
789c5f4a 15563rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15564done
15565case $ac_lo in
15566?*) ac_cv_sizeof_long=$ac_lo;;
15567'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15568See \`config.log' for more details." >&5
15569echo "$as_me: error: cannot compute sizeof (long), 77
15570See \`config.log' for more details." >&2;}
15571 { (exit 1); exit 1; }; } ;;
15572esac
247f5006 15573else
e6cc62c6
VS
15574 if test "$cross_compiling" = yes; then
15575 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15576See \`config.log' for more details." >&5
15577echo "$as_me: error: cannot run test program while cross compiling
15578See \`config.log' for more details." >&2;}
15579 { (exit 1); exit 1; }; }
15580else
15581 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15582#line $LINENO "configure"
e6cc62c6
VS
15583/* confdefs.h. */
15584_ACEOF
15585cat confdefs.h >>conftest.$ac_ext
15586cat >>conftest.$ac_ext <<_ACEOF
15587/* end confdefs.h. */
15588$ac_includes_default
15589long longval () { return (long) (sizeof (long)); }
15590unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15591#include <stdio.h>
e6cc62c6
VS
15592#include <stdlib.h>
15593int
15594main ()
247f5006 15595{
e6cc62c6
VS
15596
15597 FILE *f = fopen ("conftest.val", "w");
15598 if (! f)
15599 exit (1);
15600 if (((long) (sizeof (long))) < 0)
15601 {
15602 long i = longval ();
15603 if (i != ((long) (sizeof (long))))
15604 exit (1);
15605 fprintf (f, "%ld\n", i);
15606 }
15607 else
15608 {
15609 unsigned long i = ulongval ();
15610 if (i != ((long) (sizeof (long))))
15611 exit (1);
15612 fprintf (f, "%lu\n", i);
15613 }
15614 exit (ferror (f) || fclose (f) != 0);
15615
15616 ;
15617 return 0;
247f5006 15618}
e6cc62c6
VS
15619_ACEOF
15620rm -f conftest$ac_exeext
15621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15622 (eval $ac_link) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_cv_sizeof_long=`cat conftest.val`
15632else
15633 echo "$as_me: program exited with status $ac_status" >&5
15634echo "$as_me: failed program was:" >&5
15635sed 's/^/| /' conftest.$ac_ext >&5
15636
15637( exit $ac_status )
15638{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15639See \`config.log' for more details." >&5
15640echo "$as_me: error: cannot compute sizeof (long), 77
15641See \`config.log' for more details." >&2;}
15642 { (exit 1); exit 1; }; }
15643fi
789c5f4a 15644rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15645fi
15646fi
15647rm -f conftest.val
247f5006 15648else
a0b9e27f 15649 ac_cv_sizeof_long=0
247f5006 15650fi
247f5006 15651fi
e6cc62c6
VS
15652echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15653echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15654cat >>confdefs.h <<_ACEOF
a0b9e27f 15655#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15656_ACEOF
247f5006 15657
a0b9e27f
MB
15658
15659
15660case "${host}" in
15661 arm-*-linux* )
e6cc62c6
VS
15662 echo "$as_me:$LINENO: checking for long long" >&5
15663echo $ECHO_N "checking for long long... $ECHO_C" >&6
15664if test "${ac_cv_type_long_long+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15666else
15667 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15668#line $LINENO "configure"
e6cc62c6
VS
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674$ac_includes_default
15675int
15676main ()
15677{
15678if ((long long *) 0)
15679 return 0;
15680if (sizeof (long long))
15681 return 0;
15682 ;
15683 return 0;
15684}
15685_ACEOF
15686rm -f conftest.$ac_objext
15687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15688 (eval $ac_compile) 2>&5
e6cc62c6
VS
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
789c5f4a 15692 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_type_long_long=yes
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703ac_cv_type_long_long=no
15704fi
789c5f4a 15705rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15706fi
15707echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15708echo "${ECHO_T}$ac_cv_type_long_long" >&6
15709
15710echo "$as_me:$LINENO: checking size of long long" >&5
15711echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15712if test "${ac_cv_sizeof_long_long+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714else
15715 if test "$ac_cv_type_long_long" = yes; then
15716 # The cast to unsigned long works around a bug in the HP C Compiler
15717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15719 # This bug is HP SR number 8606223364.
a0b9e27f 15720 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15721 # Depending upon the size, compute the lo and hi bounds.
15722cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15723#line $LINENO "configure"
e6cc62c6
VS
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729$ac_includes_default
15730int
15731main ()
15732{
15733static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15734test_array [0] = 0
15735
15736 ;
15737 return 0;
15738}
15739_ACEOF
15740rm -f conftest.$ac_objext
15741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15742 (eval $ac_compile) 2>&5
e6cc62c6
VS
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
789c5f4a 15746 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_lo=0 ac_mid=0
15753 while :; do
15754 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15755#line $LINENO "configure"
e6cc62c6
VS
15756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
15761$ac_includes_default
15762int
15763main ()
15764{
15765static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15766test_array [0] = 0
15767
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext
15773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15774 (eval $ac_compile) 2>&5
e6cc62c6
VS
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
789c5f4a 15778 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_hi=$ac_mid; break
15785else
15786 echo "$as_me: failed program was:" >&5
15787sed 's/^/| /' conftest.$ac_ext >&5
15788
15789ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
15790 if test $ac_lo -le $ac_mid; then
15791 ac_lo= ac_hi=
15792 break
15793 fi
15794 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 15795fi
789c5f4a 15796rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15797 done
15798else
15799 echo "$as_me: failed program was:" >&5
15800sed 's/^/| /' conftest.$ac_ext >&5
15801
15802cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15803#line $LINENO "configure"
e6cc62c6
VS
15804/* confdefs.h. */
15805_ACEOF
15806cat confdefs.h >>conftest.$ac_ext
15807cat >>conftest.$ac_ext <<_ACEOF
15808/* end confdefs.h. */
15809$ac_includes_default
15810int
15811main ()
15812{
15813static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15814test_array [0] = 0
15815
15816 ;
15817 return 0;
15818}
15819_ACEOF
15820rm -f conftest.$ac_objext
15821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15822 (eval $ac_compile) 2>&5
e6cc62c6
VS
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
789c5f4a 15826 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_hi=-1 ac_mid=-1
15833 while :; do
15834 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15835#line $LINENO "configure"
e6cc62c6
VS
15836/* confdefs.h. */
15837_ACEOF
15838cat confdefs.h >>conftest.$ac_ext
15839cat >>conftest.$ac_ext <<_ACEOF
15840/* end confdefs.h. */
15841$ac_includes_default
15842int
15843main ()
15844{
15845static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15846test_array [0] = 0
15847
15848 ;
15849 return 0;
15850}
15851_ACEOF
15852rm -f conftest.$ac_objext
15853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15854 (eval $ac_compile) 2>&5
e6cc62c6
VS
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
789c5f4a 15858 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 ac_lo=$ac_mid; break
15865else
15866 echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
15869ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
15870 if test $ac_mid -le $ac_hi; then
15871 ac_lo= ac_hi=
15872 break
15873 fi
15874 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15875fi
789c5f4a 15876rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15877 done
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882ac_lo= ac_hi=
15883fi
789c5f4a 15884rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15885fi
789c5f4a 15886rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15887# Binary search between lo and hi bounds.
15888while test "x$ac_lo" != "x$ac_hi"; do
15889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15890 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15891#line $LINENO "configure"
e6cc62c6
VS
15892/* confdefs.h. */
15893_ACEOF
15894cat confdefs.h >>conftest.$ac_ext
15895cat >>conftest.$ac_ext <<_ACEOF
15896/* end confdefs.h. */
15897$ac_includes_default
15898int
15899main ()
15900{
15901static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15902test_array [0] = 0
15903
15904 ;
15905 return 0;
15906}
15907_ACEOF
15908rm -f conftest.$ac_objext
15909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15910 (eval $ac_compile) 2>&5
e6cc62c6
VS
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
789c5f4a 15914 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_hi=$ac_mid
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925ac_lo=`expr '(' $ac_mid ')' + 1`
15926fi
789c5f4a 15927rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15928done
15929case $ac_lo in
15930?*) ac_cv_sizeof_long_long=$ac_lo;;
15931'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15932See \`config.log' for more details." >&5
15933echo "$as_me: error: cannot compute sizeof (long long), 77
15934See \`config.log' for more details." >&2;}
15935 { (exit 1); exit 1; }; } ;;
15936esac
a0b9e27f 15937else
e6cc62c6
VS
15938 if test "$cross_compiling" = yes; then
15939 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15940See \`config.log' for more details." >&5
15941echo "$as_me: error: cannot run test program while cross compiling
15942See \`config.log' for more details." >&2;}
15943 { (exit 1); exit 1; }; }
15944else
15945 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15946#line $LINENO "configure"
e6cc62c6
VS
15947/* confdefs.h. */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h. */
15952$ac_includes_default
15953long longval () { return (long) (sizeof (long long)); }
15954unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15955#include <stdio.h>
e6cc62c6
VS
15956#include <stdlib.h>
15957int
15958main ()
247f5006 15959{
e6cc62c6
VS
15960
15961 FILE *f = fopen ("conftest.val", "w");
15962 if (! f)
15963 exit (1);
15964 if (((long) (sizeof (long long))) < 0)
15965 {
15966 long i = longval ();
15967 if (i != ((long) (sizeof (long long))))
15968 exit (1);
15969 fprintf (f, "%ld\n", i);
15970 }
15971 else
15972 {
15973 unsigned long i = ulongval ();
15974 if (i != ((long) (sizeof (long long))))
15975 exit (1);
15976 fprintf (f, "%lu\n", i);
15977 }
15978 exit (ferror (f) || fclose (f) != 0);
15979
15980 ;
15981 return 0;
247f5006 15982}
e6cc62c6
VS
15983_ACEOF
15984rm -f conftest$ac_exeext
15985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_cv_sizeof_long_long=`cat conftest.val`
15996else
15997 echo "$as_me: program exited with status $ac_status" >&5
15998echo "$as_me: failed program was:" >&5
15999sed 's/^/| /' conftest.$ac_ext >&5
16000
16001( exit $ac_status )
16002{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16003See \`config.log' for more details." >&5
16004echo "$as_me: error: cannot compute sizeof (long long), 77
16005See \`config.log' for more details." >&2;}
16006 { (exit 1); exit 1; }; }
16007fi
789c5f4a 16008rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16009fi
16010fi
16011rm -f conftest.val
7b4a847f 16012else
a0b9e27f 16013 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16014fi
16015fi
e6cc62c6
VS
16016echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16017echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16018cat >>confdefs.h <<_ACEOF
16019#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16020_ACEOF
16021
16022
16023 ;;
16024 *-hp-hpux* )
16025 echo "$as_me:$LINENO: checking for long long" >&5
16026echo $ECHO_N "checking for long long... $ECHO_C" >&6
16027if test "${ac_cv_type_long_long+set}" = set; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029else
16030 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16031#line $LINENO "configure"
e6cc62c6
VS
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
16037$ac_includes_default
16038int
16039main ()
16040{
16041if ((long long *) 0)
16042 return 0;
16043if (sizeof (long long))
16044 return 0;
16045 ;
16046 return 0;
16047}
16048_ACEOF
16049rm -f conftest.$ac_objext
16050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16051 (eval $ac_compile) 2>&5
e6cc62c6
VS
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
789c5f4a 16055 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_cv_type_long_long=yes
16062else
16063 echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066ac_cv_type_long_long=no
16067fi
789c5f4a 16068rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16069fi
16070echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16071echo "${ECHO_T}$ac_cv_type_long_long" >&6
16072
16073echo "$as_me:$LINENO: checking size of long long" >&5
16074echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16075if test "${ac_cv_sizeof_long_long+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077else
16078 if test "$ac_cv_type_long_long" = yes; then
16079 # The cast to unsigned long works around a bug in the HP C Compiler
16080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16082 # This bug is HP SR number 8606223364.
16083 if test "$cross_compiling" = yes; then
16084 # Depending upon the size, compute the lo and hi bounds.
16085cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16086#line $LINENO "configure"
e6cc62c6
VS
16087/* confdefs.h. */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h. */
16092$ac_includes_default
16093int
16094main ()
16095{
16096static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16097test_array [0] = 0
16098
16099 ;
16100 return 0;
16101}
16102_ACEOF
16103rm -f conftest.$ac_objext
16104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16105 (eval $ac_compile) 2>&5
e6cc62c6
VS
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
789c5f4a 16109 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ac_lo=0 ac_mid=0
16116 while :; do
16117 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16118#line $LINENO "configure"
e6cc62c6
VS
16119/* confdefs.h. */
16120_ACEOF
16121cat confdefs.h >>conftest.$ac_ext
16122cat >>conftest.$ac_ext <<_ACEOF
16123/* end confdefs.h. */
16124$ac_includes_default
16125int
16126main ()
16127{
16128static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16129test_array [0] = 0
8284b0c5 16130
e6cc62c6
VS
16131 ;
16132 return 0;
16133}
16134_ACEOF
16135rm -f conftest.$ac_objext
16136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16137 (eval $ac_compile) 2>&5
e6cc62c6
VS
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
789c5f4a 16141 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 ac_hi=$ac_mid; break
16148else
16149 echo "$as_me: failed program was:" >&5
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
16152ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16153 if test $ac_lo -le $ac_mid; then
16154 ac_lo= ac_hi=
16155 break
16156 fi
16157 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16158fi
789c5f4a 16159rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16160 done
16161else
16162 echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16166#line $LINENO "configure"
e6cc62c6
VS
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172$ac_includes_default
16173int
16174main ()
16175{
16176static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16177test_array [0] = 0
a0b9e27f 16178
e6cc62c6
VS
16179 ;
16180 return 0;
16181}
16182_ACEOF
16183rm -f conftest.$ac_objext
16184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16185 (eval $ac_compile) 2>&5
e6cc62c6
VS
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
789c5f4a 16189 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_hi=-1 ac_mid=-1
16196 while :; do
16197 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16198#line $LINENO "configure"
e6cc62c6
VS
16199/* confdefs.h. */
16200_ACEOF
16201cat confdefs.h >>conftest.$ac_ext
16202cat >>conftest.$ac_ext <<_ACEOF
16203/* end confdefs.h. */
16204$ac_includes_default
16205int
16206main ()
16207{
16208static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16209test_array [0] = 0
a0b9e27f 16210
e6cc62c6
VS
16211 ;
16212 return 0;
16213}
16214_ACEOF
16215rm -f conftest.$ac_objext
16216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16217 (eval $ac_compile) 2>&5
e6cc62c6
VS
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
789c5f4a 16221 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 ac_lo=$ac_mid; break
16228else
16229 echo "$as_me: failed program was:" >&5
16230sed 's/^/| /' conftest.$ac_ext >&5
16231
16232ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16233 if test $ac_mid -le $ac_hi; then
16234 ac_lo= ac_hi=
16235 break
16236 fi
16237 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16238fi
789c5f4a 16239rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16240 done
8284b0c5 16241else
e6cc62c6
VS
16242 echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245ac_lo= ac_hi=
16246fi
789c5f4a 16247rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16248fi
789c5f4a 16249rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16250# Binary search between lo and hi bounds.
16251while test "x$ac_lo" != "x$ac_hi"; do
16252 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16253 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16254#line $LINENO "configure"
e6cc62c6
VS
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
16260$ac_includes_default
16261int
16262main ()
16263{
16264static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16265test_array [0] = 0
16266
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271rm -f conftest.$ac_objext
16272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16273 (eval $ac_compile) 2>&5
e6cc62c6
VS
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
789c5f4a 16277 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_hi=$ac_mid
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288ac_lo=`expr '(' $ac_mid ')' + 1`
16289fi
789c5f4a 16290rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16291done
16292case $ac_lo in
16293?*) ac_cv_sizeof_long_long=$ac_lo;;
16294'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16295See \`config.log' for more details." >&5
16296echo "$as_me: error: cannot compute sizeof (long long), 77
16297See \`config.log' for more details." >&2;}
16298 { (exit 1); exit 1; }; } ;;
16299esac
8284b0c5 16300else
e6cc62c6
VS
16301 if test "$cross_compiling" = yes; then
16302 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16303See \`config.log' for more details." >&5
16304echo "$as_me: error: cannot run test program while cross compiling
16305See \`config.log' for more details." >&2;}
16306 { (exit 1); exit 1; }; }
16307else
16308 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16309#line $LINENO "configure"
e6cc62c6
VS
16310/* confdefs.h. */
16311_ACEOF
16312cat confdefs.h >>conftest.$ac_ext
16313cat >>conftest.$ac_ext <<_ACEOF
16314/* end confdefs.h. */
16315$ac_includes_default
16316long longval () { return (long) (sizeof (long long)); }
16317unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16318#include <stdio.h>
e6cc62c6
VS
16319#include <stdlib.h>
16320int
16321main ()
8284b0c5 16322{
e6cc62c6
VS
16323
16324 FILE *f = fopen ("conftest.val", "w");
16325 if (! f)
16326 exit (1);
16327 if (((long) (sizeof (long long))) < 0)
16328 {
16329 long i = longval ();
16330 if (i != ((long) (sizeof (long long))))
16331 exit (1);
16332 fprintf (f, "%ld\n", i);
16333 }
16334 else
16335 {
16336 unsigned long i = ulongval ();
16337 if (i != ((long) (sizeof (long long))))
16338 exit (1);
16339 fprintf (f, "%lu\n", i);
16340 }
16341 exit (ferror (f) || fclose (f) != 0);
16342
16343 ;
16344 return 0;
8284b0c5 16345}
e6cc62c6
VS
16346_ACEOF
16347rm -f conftest$ac_exeext
16348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16349 (eval $ac_link) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_sizeof_long_long=`cat conftest.val`
16359else
16360 echo "$as_me: program exited with status $ac_status" >&5
16361echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
16364( exit $ac_status )
16365{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16366See \`config.log' for more details." >&5
16367echo "$as_me: error: cannot compute sizeof (long long), 77
16368See \`config.log' for more details." >&2;}
16369 { (exit 1); exit 1; }; }
16370fi
789c5f4a 16371rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16372fi
16373fi
16374rm -f conftest.val
5c6fa7d2
RR
16375else
16376 ac_cv_sizeof_long_long=0
52127426 16377fi
4f57cf11 16378fi
e6cc62c6
VS
16379echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16380echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16381cat >>confdefs.h <<_ACEOF
4f57cf11 16382#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16383_ACEOF
4f57cf11
GD
16384
16385
16386 if test "$ac_cv_sizeof_long_long" != "0"; then
16387 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16388 fi
16389 ;;
16390 * )
e6cc62c6
VS
16391 echo "$as_me:$LINENO: checking for long long" >&5
16392echo $ECHO_N "checking for long long... $ECHO_C" >&6
16393if test "${ac_cv_type_long_long+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395else
16396 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16397#line $LINENO "configure"
e6cc62c6
VS
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
16403$ac_includes_default
16404int
16405main ()
16406{
16407if ((long long *) 0)
16408 return 0;
16409if (sizeof (long long))
16410 return 0;
16411 ;
16412 return 0;
16413}
16414_ACEOF
16415rm -f conftest.$ac_objext
16416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16417 (eval $ac_compile) 2>&5
e6cc62c6
VS
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
789c5f4a 16421 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_cv_type_long_long=yes
16428else
16429 echo "$as_me: failed program was:" >&5
16430sed 's/^/| /' conftest.$ac_ext >&5
16431
16432ac_cv_type_long_long=no
16433fi
789c5f4a 16434rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16435fi
16436echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16437echo "${ECHO_T}$ac_cv_type_long_long" >&6
16438
16439echo "$as_me:$LINENO: checking size of long long" >&5
16440echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16441if test "${ac_cv_sizeof_long_long+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444 if test "$ac_cv_type_long_long" = yes; then
16445 # The cast to unsigned long works around a bug in the HP C Compiler
16446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16448 # This bug is HP SR number 8606223364.
4f57cf11 16449 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16450 # Depending upon the size, compute the lo and hi bounds.
16451cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16452#line $LINENO "configure"
e6cc62c6
VS
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458$ac_includes_default
16459int
16460main ()
16461{
16462static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16463test_array [0] = 0
16464
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext
16470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16471 (eval $ac_compile) 2>&5
e6cc62c6
VS
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
789c5f4a 16475 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_lo=0 ac_mid=0
16482 while :; do
16483 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16484#line $LINENO "configure"
e6cc62c6
VS
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490$ac_includes_default
16491int
16492main ()
16493{
16494static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16495test_array [0] = 0
16496
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501rm -f conftest.$ac_objext
16502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16503 (eval $ac_compile) 2>&5
e6cc62c6
VS
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
789c5f4a 16507 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; }; then
16513 ac_hi=$ac_mid; break
16514else
16515 echo "$as_me: failed program was:" >&5
16516sed 's/^/| /' conftest.$ac_ext >&5
16517
16518ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16519 if test $ac_lo -le $ac_mid; then
16520 ac_lo= ac_hi=
16521 break
16522 fi
16523 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16524fi
789c5f4a 16525rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16526 done
16527else
16528 echo "$as_me: failed program was:" >&5
16529sed 's/^/| /' conftest.$ac_ext >&5
16530
16531cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16532#line $LINENO "configure"
e6cc62c6
VS
16533/* confdefs.h. */
16534_ACEOF
16535cat confdefs.h >>conftest.$ac_ext
16536cat >>conftest.$ac_ext <<_ACEOF
16537/* end confdefs.h. */
16538$ac_includes_default
16539int
16540main ()
16541{
16542static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16543test_array [0] = 0
16544
16545 ;
16546 return 0;
16547}
16548_ACEOF
16549rm -f conftest.$ac_objext
16550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16551 (eval $ac_compile) 2>&5
e6cc62c6
VS
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } &&
789c5f4a 16555 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_hi=-1 ac_mid=-1
16562 while :; do
16563 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16564#line $LINENO "configure"
e6cc62c6
VS
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570$ac_includes_default
16571int
16572main ()
16573{
16574static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16575test_array [0] = 0
16576
16577 ;
16578 return 0;
16579}
16580_ACEOF
16581rm -f conftest.$ac_objext
16582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16583 (eval $ac_compile) 2>&5
e6cc62c6
VS
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
789c5f4a 16587 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_lo=$ac_mid; break
16594else
16595 echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16599 if test $ac_mid -le $ac_hi; then
16600 ac_lo= ac_hi=
16601 break
16602 fi
16603 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16604fi
789c5f4a 16605rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16606 done
4f57cf11 16607else
e6cc62c6
VS
16608 echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611ac_lo= ac_hi=
16612fi
789c5f4a 16613rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16614fi
789c5f4a 16615rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16616# Binary search between lo and hi bounds.
16617while test "x$ac_lo" != "x$ac_hi"; do
16618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16619 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16620#line $LINENO "configure"
e6cc62c6
VS
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626$ac_includes_default
16627int
16628main ()
16629{
16630static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16631test_array [0] = 0
16632
16633 ;
16634 return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext
16638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16639 (eval $ac_compile) 2>&5
e6cc62c6
VS
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
789c5f4a 16643 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_hi=$ac_mid
16650else
16651 echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
16654ac_lo=`expr '(' $ac_mid ')' + 1`
16655fi
789c5f4a 16656rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16657done
16658case $ac_lo in
16659?*) ac_cv_sizeof_long_long=$ac_lo;;
16660'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16661See \`config.log' for more details." >&5
16662echo "$as_me: error: cannot compute sizeof (long long), 77
16663See \`config.log' for more details." >&2;}
16664 { (exit 1); exit 1; }; } ;;
16665esac
16666else
16667 if test "$cross_compiling" = yes; then
16668 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16669See \`config.log' for more details." >&5
16670echo "$as_me: error: cannot run test program while cross compiling
16671See \`config.log' for more details." >&2;}
16672 { (exit 1); exit 1; }; }
16673else
16674 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16675#line $LINENO "configure"
e6cc62c6
VS
16676/* confdefs.h. */
16677_ACEOF
16678cat confdefs.h >>conftest.$ac_ext
16679cat >>conftest.$ac_ext <<_ACEOF
16680/* end confdefs.h. */
16681$ac_includes_default
16682long longval () { return (long) (sizeof (long long)); }
16683unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16684#include <stdio.h>
e6cc62c6
VS
16685#include <stdlib.h>
16686int
16687main ()
4f57cf11 16688{
e6cc62c6
VS
16689
16690 FILE *f = fopen ("conftest.val", "w");
16691 if (! f)
16692 exit (1);
16693 if (((long) (sizeof (long long))) < 0)
16694 {
16695 long i = longval ();
16696 if (i != ((long) (sizeof (long long))))
16697 exit (1);
16698 fprintf (f, "%ld\n", i);
16699 }
16700 else
16701 {
16702 unsigned long i = ulongval ();
16703 if (i != ((long) (sizeof (long long))))
16704 exit (1);
16705 fprintf (f, "%lu\n", i);
16706 }
16707 exit (ferror (f) || fclose (f) != 0);
16708
16709 ;
16710 return 0;
4f57cf11 16711}
e6cc62c6
VS
16712_ACEOF
16713rm -f conftest$ac_exeext
16714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16715 (eval $ac_link) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_sizeof_long_long=`cat conftest.val`
16725else
16726 echo "$as_me: program exited with status $ac_status" >&5
16727echo "$as_me: failed program was:" >&5
16728sed 's/^/| /' conftest.$ac_ext >&5
16729
16730( exit $ac_status )
16731{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16732See \`config.log' for more details." >&5
16733echo "$as_me: error: cannot compute sizeof (long long), 77
16734See \`config.log' for more details." >&2;}
16735 { (exit 1); exit 1; }; }
16736fi
789c5f4a 16737rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16738fi
16739fi
16740rm -f conftest.val
4f57cf11 16741else
4f57cf11
GD
16742 ac_cv_sizeof_long_long=0
16743fi
7b4a847f 16744fi
e6cc62c6
VS
16745echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16746echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16747cat >>confdefs.h <<_ACEOF
21d1c967 16748#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16749_ACEOF
9e691f46 16750
8284b0c5 16751
21d1c967
GD
16752esac
16753
e6cc62c6
VS
16754echo "$as_me:$LINENO: checking size of wchar_t" >&5
16755echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16756if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16758else
e6cc62c6 16759
21d1c967 16760 if test "$cross_compiling" = yes; then
e6cc62c6 16761
2b5f62a0
VZ
16762 case "${host}" in
16763 *-pc-msdosdjgpp )
16764 wx_cv_sizeof_wchar_t=0
16765 ;;
16766 * )
16767 wx_cv_sizeof_wchar_t=4
16768 ;;
16769 esac
e6cc62c6
VS
16770
16771
6f72b082 16772else
e6cc62c6 16773 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16774#line $LINENO "configure"
e6cc62c6
VS
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
21d1c967 16780
2b5f62a0
VZ
16781 /* DJGPP only has fake wchar_t: */
16782 #ifdef __DJGPP__
16783 # error "fake wchar_t"
16784 #endif
21d1c967
GD
16785 #ifdef HAVE_WCHAR_H
16786 # ifdef __CYGWIN__
16787 # include <stddef.h>
16788 # endif
16789 # include <wchar.h>
16790 #endif
16791 #ifdef HAVE_STDLIB_H
16792 # include <stdlib.h>
16793 #endif
16794 #include <stdio.h>
16795 int main()
16796 {
16797 FILE *f=fopen("conftestval", "w");
16798 if (!f) exit(1);
16799 fprintf(f, "%i", sizeof(wchar_t));
16800 exit(0);
16801 }
e6cc62c6
VS
16802
16803_ACEOF
16804rm -f conftest$ac_exeext
16805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806 (eval $ac_link) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
21d1c967 16815 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16816else
e6cc62c6
VS
16817 echo "$as_me: program exited with status $ac_status" >&5
16818echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821( exit $ac_status )
16822wx_cv_sizeof_wchar_t=0
6f72b082 16823fi
789c5f4a 16824rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16825fi
6f72b082 16826
3f345b47 16827fi
e6cc62c6
VS
16828echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16829echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16830
e6cc62c6 16831cat >>confdefs.h <<_ACEOF
21d1c967 16832#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16833_ACEOF
90dd450c 16834
8284b0c5 16835
21d1c967
GD
16836# Check whether --enable-largefile or --disable-largefile was given.
16837if test "${enable_largefile+set}" = set; then
16838 enableval="$enable_largefile"
3f345b47 16839
e6cc62c6 16840fi;
21d1c967
GD
16841if test "$enable_largefile" != no; then
16842 wx_largefile=no
e6cc62c6
VS
16843
16844 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16845echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16846if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848else
16849
16850 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16851#line $LINENO "configure"
e6cc62c6
VS
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
21d1c967
GD
16857#define _FILE_OFFSET_BITS 64
16858 #include <sys/types.h>
e6cc62c6
VS
16859int
16860main ()
16861{
21d1c967
GD
16862typedef struct {
16863 unsigned int field: sizeof(off_t) == 8;
16864} wxlf;
16865
e6cc62c6
VS
16866 ;
16867 return 0;
16868}
16869_ACEOF
16870rm -f conftest.$ac_objext
16871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16872 (eval $ac_compile) 2>&5
e6cc62c6
VS
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
789c5f4a 16876 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
21d1c967 16882 ac_cv_sys_file_offset_bits=64
f6bcfd97 16883else
e6cc62c6
VS
16884 echo "$as_me: failed program was:" >&5
16885sed 's/^/| /' conftest.$ac_ext >&5
16886
16887ac_cv_sys_file_offset_bits=no
247f5006 16888fi
789c5f4a 16889rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16890
a0b9e27f 16891
e6cc62c6
VS
16892fi
16893echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16894echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16895
16896 if test "$ac_cv_sys_file_offset_bits" != no; then
16897 wx_largefile=yes
e6cc62c6 16898 cat >>confdefs.h <<_ACEOF
21d1c967 16899#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16900_ACEOF
21d1c967
GD
16901
16902 fi
16903
16904 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16905
16906 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16907echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16908if test "${ac_cv_sys_large_files+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16910else
16911
16912 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16913#line $LINENO "configure"
e6cc62c6
VS
16914/* confdefs.h. */
16915_ACEOF
16916cat confdefs.h >>conftest.$ac_ext
16917cat >>conftest.$ac_ext <<_ACEOF
16918/* end confdefs.h. */
21d1c967
GD
16919#define _LARGE_FILES 1
16920 #include <sys/types.h>
e6cc62c6
VS
16921int
16922main ()
16923{
21d1c967
GD
16924typedef struct {
16925 unsigned int field: sizeof(off_t) == 8;
16926} wxlf;
16927
e6cc62c6
VS
16928 ;
16929 return 0;
16930}
16931_ACEOF
16932rm -f conftest.$ac_objext
16933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16934 (eval $ac_compile) 2>&5
e6cc62c6
VS
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
789c5f4a 16938 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
21d1c967 16944 ac_cv_sys_large_files=1
f6bcfd97 16945else
e6cc62c6
VS
16946 echo "$as_me: failed program was:" >&5
16947sed 's/^/| /' conftest.$ac_ext >&5
16948
16949ac_cv_sys_large_files=no
247f5006 16950fi
789c5f4a 16951rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16952
e6cc62c6
VS
16953
16954fi
16955echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16956echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16957
21d1c967
GD
16958 if test "$ac_cv_sys_large_files" != no; then
16959 wx_largefile=yes
e6cc62c6 16960 cat >>confdefs.h <<_ACEOF
21d1c967 16961#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16962_ACEOF
90dd450c 16963
90dd450c
VZ
16964 fi
16965
90dd450c 16966 fi
90dd450c 16967
e6cc62c6
VS
16968 echo "$as_me:$LINENO: checking if large file support is available" >&5
16969echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16970 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16971 cat >>confdefs.h <<\_ACEOF
21d1c967 16972#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16973_ACEOF
90dd450c 16974
90dd450c 16975 fi
e6cc62c6
VS
16976 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16977echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16978fi
90dd450c 16979
8284b0c5 16980
f02444d0 16981if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16982 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16983 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16984 else
e26c13cf 16985 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16986 fi
e26c13cf 16987 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16988fi
16989
e6cc62c6
VS
16990echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16991echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16992if test "${ac_cv_c_bigendian+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16994else
21d1c967
GD
16995 ac_cv_c_bigendian=unknown
16996# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 16997cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16998#line $LINENO "configure"
e6cc62c6
VS
16999/* confdefs.h. */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h. */
21d1c967
GD
17004#include <sys/types.h>
17005#include <sys/param.h>
e6cc62c6
VS
17006int
17007main ()
17008{
21d1c967
GD
17009
17010#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17011 bogus endian macros
17012#endif
e6cc62c6
VS
17013 ;
17014 return 0;
17015}
17016_ACEOF
17017rm -f conftest.$ac_objext
17018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17019 (eval $ac_compile) 2>&5
e6cc62c6
VS
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
789c5f4a 17023 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
21d1c967 17029 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17030cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17031#line $LINENO "configure"
e6cc62c6
VS
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
21d1c967
GD
17037#include <sys/types.h>
17038#include <sys/param.h>
e6cc62c6
VS
17039int
17040main ()
17041{
21d1c967
GD
17042
17043#if BYTE_ORDER != BIG_ENDIAN
17044 not big endian
17045#endif
e6cc62c6
VS
17046 ;
17047 return 0;
17048}
17049_ACEOF
17050rm -f conftest.$ac_objext
17051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17052 (eval $ac_compile) 2>&5
e6cc62c6
VS
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
789c5f4a 17056 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
21d1c967 17062 ac_cv_c_bigendian=yes
3f345b47 17063else
e6cc62c6
VS
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067ac_cv_c_bigendian=no
3f345b47 17068fi
789c5f4a 17069rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 17070else
e6cc62c6
VS
17071 echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
3f345b47 17074fi
789c5f4a 17075rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17076if test $ac_cv_c_bigendian = unknown; then
17077if test "$cross_compiling" = yes; then
17078 ac_cv_c_bigendian=unknown
10f2d63a 17079else
e6cc62c6 17080 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17081#line $LINENO "configure"
e6cc62c6
VS
17082/* confdefs.h. */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h. */
21d1c967
GD
17087main () {
17088 /* Are we little or big endian? From Harbison&Steele. */
17089 union
17090 {
17091 long l;
17092 char c[sizeof (long)];
17093 } u;
17094 u.l = 1;
17095 exit (u.c[sizeof (long) - 1] == 1);
17096}
e6cc62c6
VS
17097_ACEOF
17098rm -f conftest$ac_exeext
17099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17100 (eval $ac_link) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
21d1c967 17109 ac_cv_c_bigendian=no
3f345b47 17110else
e6cc62c6
VS
17111 echo "$as_me: program exited with status $ac_status" >&5
17112echo "$as_me: failed program was:" >&5
17113sed 's/^/| /' conftest.$ac_ext >&5
17114
17115( exit $ac_status )
17116ac_cv_c_bigendian=yes
247f5006 17117fi
789c5f4a 17118rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17119fi
3f345b47 17120fi
8168de4c 17121fi
e6cc62c6
VS
17122echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17123echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17124if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17125 { 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
17126echo "$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
17127fi
17128if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17129 cat >>confdefs.h <<\_ACEOF
247f5006 17130#define WORDS_BIGENDIAN 1
e6cc62c6 17131_ACEOF
247f5006
VZ
17132
17133fi
17134
17135
e6cc62c6
VS
17136
17137ac_ext=cc
17138ac_cpp='$CXXCPP $CPPFLAGS'
17139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17142echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17143echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17144if test -z "$CXXCPP"; then
e6cc62c6
VS
17145 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147else
17148 # Double quotes because CXXCPP needs to be expanded
17149 for CXXCPP in "$CXX -E" "/lib/cpp"
17150 do
17151 ac_preproc_ok=false
17152for ac_cxx_preproc_warn_flag in '' yes
17153do
17154 # Use a header file that comes with gcc, so configuring glibc
17155 # with a fresh cross-compiler works.
17156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17157 # <limits.h> exists even on freestanding compilers.
17158 # On the NeXT, cc -E runs the code through the compiler's parser,
17159 # not just through cpp. "Syntax error" is here to catch this case.
17160 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17161#line $LINENO "configure"
e6cc62c6
VS
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
17167#ifdef __STDC__
17168# include <limits.h>
17169#else
17170# include <assert.h>
17171#endif
789c5f4a 17172 Syntax error
e6cc62c6
VS
17173_ACEOF
17174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } >/dev/null; then
17182 if test -s conftest.err; then
17183 ac_cpp_err=$ac_cxx_preproc_warn_flag
17184 else
17185 ac_cpp_err=
17186 fi
247f5006 17187else
e6cc62c6
VS
17188 ac_cpp_err=yes
17189fi
17190if test -z "$ac_cpp_err"; then
17191 :
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 # Broken: fails on valid input.
17197continue
17198fi
17199rm -f conftest.err conftest.$ac_ext
17200
17201 # OK, works on sane cases. Now check whether non-existent headers
17202 # can be detected and how.
17203 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17204#line $LINENO "configure"
e6cc62c6
VS
17205/* confdefs.h. */
17206_ACEOF
17207cat confdefs.h >>conftest.$ac_ext
17208cat >>conftest.$ac_ext <<_ACEOF
17209/* end confdefs.h. */
17210#include <ac_nonexistent.h>
17211_ACEOF
17212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } >/dev/null; then
17220 if test -s conftest.err; then
17221 ac_cpp_err=$ac_cxx_preproc_warn_flag
17222 else
17223 ac_cpp_err=
17224 fi
17225else
17226 ac_cpp_err=yes
17227fi
17228if test -z "$ac_cpp_err"; then
17229 # Broken: success on invalid input.
17230continue
17231else
17232 echo "$as_me: failed program was:" >&5
17233sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 # Passes both tests.
17236ac_preproc_ok=:
17237break
17238fi
17239rm -f conftest.err conftest.$ac_ext
17240
17241done
17242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17243rm -f conftest.err conftest.$ac_ext
17244if $ac_preproc_ok; then
17245 break
17246fi
17247
17248 done
17249 ac_cv_prog_CXXCPP=$CXXCPP
17250
17251fi
17252 CXXCPP=$ac_cv_prog_CXXCPP
17253else
17254 ac_cv_prog_CXXCPP=$CXXCPP
17255fi
17256echo "$as_me:$LINENO: result: $CXXCPP" >&5
17257echo "${ECHO_T}$CXXCPP" >&6
17258ac_preproc_ok=false
17259for ac_cxx_preproc_warn_flag in '' yes
17260do
17261 # Use a header file that comes with gcc, so configuring glibc
17262 # with a fresh cross-compiler works.
17263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17264 # <limits.h> exists even on freestanding compilers.
17265 # On the NeXT, cc -E runs the code through the compiler's parser,
17266 # not just through cpp. "Syntax error" is here to catch this case.
17267 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17268#line $LINENO "configure"
e6cc62c6
VS
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274#ifdef __STDC__
17275# include <limits.h>
17276#else
17277# include <assert.h>
17278#endif
789c5f4a 17279 Syntax error
e6cc62c6
VS
17280_ACEOF
17281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } >/dev/null; then
17289 if test -s conftest.err; then
17290 ac_cpp_err=$ac_cxx_preproc_warn_flag
17291 else
17292 ac_cpp_err=
17293 fi
17294else
17295 ac_cpp_err=yes
17296fi
17297if test -z "$ac_cpp_err"; then
21d1c967 17298 :
698dcdb6 17299else
e6cc62c6
VS
17300 echo "$as_me: failed program was:" >&5
17301sed 's/^/| /' conftest.$ac_ext >&5
17302
17303 # Broken: fails on valid input.
17304continue
17305fi
17306rm -f conftest.err conftest.$ac_ext
17307
17308 # OK, works on sane cases. Now check whether non-existent headers
17309 # can be detected and how.
17310 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17311#line $LINENO "configure"
e6cc62c6
VS
17312/* confdefs.h. */
17313_ACEOF
17314cat confdefs.h >>conftest.$ac_ext
17315cat >>conftest.$ac_ext <<_ACEOF
17316/* end confdefs.h. */
17317#include <ac_nonexistent.h>
17318_ACEOF
17319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17321 ac_status=$?
17322 grep -v '^ *+' conftest.er1 >conftest.err
17323 rm -f conftest.er1
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } >/dev/null; then
17327 if test -s conftest.err; then
17328 ac_cpp_err=$ac_cxx_preproc_warn_flag
17329 else
17330 ac_cpp_err=
17331 fi
17332else
17333 ac_cpp_err=yes
247f5006 17334fi
e6cc62c6
VS
17335if test -z "$ac_cpp_err"; then
17336 # Broken: success on invalid input.
17337continue
17338else
17339 echo "$as_me: failed program was:" >&5
17340sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 # Passes both tests.
17343ac_preproc_ok=:
17344break
328a083c 17345fi
e6cc62c6
VS
17346rm -f conftest.err conftest.$ac_ext
17347
17348done
17349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17350rm -f conftest.err conftest.$ac_ext
17351if $ac_preproc_ok; then
17352 :
17353else
17354 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17355See \`config.log' for more details." >&5
17356echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17357See \`config.log' for more details." >&2;}
17358 { (exit 1); exit 1; }; }
90dd450c 17359fi
e6cc62c6
VS
17360
17361ac_ext=cc
17362ac_cpp='$CXXCPP $CPPFLAGS'
17363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17366
1e6feb95 17367
1725144d 17368
21d1c967 17369 if test "$cross_compiling" = "yes"; then
e6cc62c6 17370 cat >>confdefs.h <<\_ACEOF
21d1c967 17371#define wxUSE_IOSTREAMH 1
e6cc62c6 17372_ACEOF
ab9b9eab 17373
21d1c967 17374 else
e6cc62c6
VS
17375
17376
17377 ac_ext=cc
5c6fa7d2 17378ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17382
52127426 17383
247f5006 17384
e6cc62c6 17385for ac_header in iostream
21d1c967 17386do
e6cc62c6
VS
17387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17388if eval "test \"\${$as_ac_Header+set}\" = set"; then
17389 echo "$as_me:$LINENO: checking for $ac_header" >&5
17390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17391if eval "test \"\${$as_ac_Header+set}\" = set"; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393fi
17394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17396else
17397 # Is the header compilable?
17398echo "$as_me:$LINENO: checking $ac_header usability" >&5
17399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17400cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17401#line $LINENO "configure"
e6cc62c6
VS
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407$ac_includes_default
17408#include <$ac_header>
17409_ACEOF
17410rm -f conftest.$ac_objext
17411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17412 (eval $ac_compile) 2>&5
e6cc62c6
VS
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
789c5f4a 17416 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_header_compiler=yes
17423else
17424 echo "$as_me: failed program was:" >&5
17425sed 's/^/| /' conftest.$ac_ext >&5
17426
17427ac_header_compiler=no
17428fi
789c5f4a 17429rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17431echo "${ECHO_T}$ac_header_compiler" >&6
17432
17433# Is the header present?
17434echo "$as_me:$LINENO: checking $ac_header presence" >&5
17435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17436cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17437#line $LINENO "configure"
e6cc62c6
VS
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443#include <$ac_header>
17444_ACEOF
17445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17447 ac_status=$?
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } >/dev/null; then
17453 if test -s conftest.err; then
17454 ac_cpp_err=$ac_cxx_preproc_warn_flag
17455 else
17456 ac_cpp_err=
17457 fi
17458else
17459 ac_cpp_err=yes
17460fi
17461if test -z "$ac_cpp_err"; then
17462 ac_header_preproc=yes
17463else
17464 echo "$as_me: failed program was:" >&5
17465sed 's/^/| /' conftest.$ac_ext >&5
17466
17467 ac_header_preproc=no
17468fi
17469rm -f conftest.err conftest.$ac_ext
17470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17471echo "${ECHO_T}$ac_header_preproc" >&6
17472
17473# So? What about this header?
789c5f4a
VZ
17474case $ac_header_compiler:$ac_header_preproc in
17475 yes:no )
e6cc62c6
VS
17476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
17478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17480 (
17481 cat <<\_ASBOX
17482## ------------------------------------ ##
17483## Report this to bug-autoconf@gnu.org. ##
17484## ------------------------------------ ##
17485_ASBOX
17486 ) |
17487 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 17488 ;;
789c5f4a 17489 no:yes )
e6cc62c6
VS
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
17494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17496 (
17497 cat <<\_ASBOX
789c5f4a
VZ
17498## ------------------------------------ ##
17499## Report this to bug-autoconf@gnu.org. ##
17500## ------------------------------------ ##
e6cc62c6
VS
17501_ASBOX
17502 ) |
17503 sed "s/^/$as_me: WARNING: /" >&2
17504 ;;
17505esac
17506echo "$as_me:$LINENO: checking for $ac_header" >&5
17507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17508if eval "test \"\${$as_ac_Header+set}\" = set"; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17510else
789c5f4a 17511 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17512fi
e6cc62c6
VS
17513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17515
90dd450c 17516fi
e6cc62c6
VS
17517if test `eval echo '${'$as_ac_Header'}'` = yes; then
17518 cat >>confdefs.h <<_ACEOF
17519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17520_ACEOF
17521
90dd450c 17522fi
e6cc62c6 17523
21d1c967 17524done
10f2d63a 17525
8284b0c5 17526
21d1c967
GD
17527 if test "$ac_cv_header_iostream" = "yes" ; then
17528 :
17529 else
e6cc62c6 17530 cat >>confdefs.h <<\_ACEOF
21d1c967 17531#define wxUSE_IOSTREAMH 1
e6cc62c6 17532_ACEOF
788deba1 17533
90dd450c 17534 fi
ab9b9eab 17535
21d1c967 17536 ac_ext=c
21d1c967 17537ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17541
21d1c967 17542 fi
ab9b9eab 17543
52127426 17544
8284b0c5 17545
e6cc62c6
VS
17546 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17547echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17548if test "${wx_cv_cpp_bool+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17550else
e6cc62c6
VS
17551
17552
17553
17554 ac_ext=cc
5c6fa7d2 17555ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17559
8284b0c5 17560
e6cc62c6 17561 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17562#line $LINENO "configure"
e6cc62c6
VS
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
21d1c967 17568
e6cc62c6
VS
17569
17570int
17571main ()
17572{
21d1c967
GD
17573
17574 bool b = true;
17575
17576 return 0;
e6cc62c6
VS
17577
17578 ;
17579 return 0;
17580}
17581_ACEOF
17582rm -f conftest.$ac_objext
17583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17584 (eval $ac_compile) 2>&5
e6cc62c6
VS
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
789c5f4a 17588 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594
21d1c967 17595 wx_cv_cpp_bool=yes
e6cc62c6 17596
698dcdb6 17597else
e6cc62c6
VS
17598 echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
17601
21d1c967 17602 wx_cv_cpp_bool=no
e6cc62c6
VS
17603
17604
698dcdb6 17605fi
789c5f4a 17606rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17607
17608 ac_ext=c
21d1c967 17609ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17612ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17613
a0b9e27f 17614
e6cc62c6
VS
17615fi
17616echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17617echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17618
17619 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17620 cat >>confdefs.h <<\_ACEOF
21d1c967 17621#define HAVE_BOOL 1
e6cc62c6 17622_ACEOF
ab9b9eab 17623
21d1c967
GD
17624 fi
17625
52127426 17626
8284b0c5 17627
e6cc62c6
VS
17628 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17629echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17630if test "${wx_cv_explicit+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17632else
e6cc62c6
VS
17633
17634
17635
17636 ac_ext=cc
5c6fa7d2 17637ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17641
8284b0c5 17642
e6cc62c6 17643 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17644#line $LINENO "configure"
e6cc62c6
VS
17645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
986ecc86
VZ
17650
17651 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17652
17653int
17654main ()
17655{
986ecc86
VZ
17656
17657 return 0;
e6cc62c6
VS
17658
17659 ;
17660 return 0;
17661}
17662_ACEOF
17663rm -f conftest.$ac_objext
17664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17665 (eval $ac_compile) 2>&5
e6cc62c6
VS
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
789c5f4a 17669 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675
17676 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17677#line $LINENO "configure"
e6cc62c6
VS
17678/* confdefs.h. */
17679_ACEOF
17680cat confdefs.h >>conftest.$ac_ext
17681cat >>conftest.$ac_ext <<_ACEOF
17682/* end confdefs.h. */
986ecc86
VZ
17683
17684 class Foo { public: explicit Foo(int) {} };
17685 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17686
17687int
17688main ()
17689{
986ecc86
VZ
17690
17691 TakeFoo(17);
17692 return 0;
e6cc62c6
VS
17693
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext
17699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17700 (eval $ac_compile) 2>&5
e6cc62c6
VS
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
789c5f4a 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
986ecc86
VZ
17710 wx_cv_explicit=no
17711else
e6cc62c6
VS
17712 echo "$as_me: failed program was:" >&5
17713sed 's/^/| /' conftest.$ac_ext >&5
17714
17715wx_cv_explicit=yes
17716
986ecc86 17717fi
789c5f4a 17718rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17719
986ecc86 17720else
e6cc62c6
VS
17721 echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
17723
17724wx_cv_explicit=no
17725
986ecc86 17726fi
789c5f4a 17727rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17728
17729 ac_ext=c
986ecc86 17730ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17734
a0b9e27f 17735
e6cc62c6
VS
17736fi
17737echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17738echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17739
17740 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17741 cat >>confdefs.h <<\_ACEOF
986ecc86 17742#define HAVE_EXPLICIT 1
e6cc62c6 17743_ACEOF
986ecc86
VZ
17744
17745 fi
17746
8284b0c5 17747
e6cc62c6
VS
17748echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17749echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17750if test "${ac_cv_cxx_const_cast+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17752else
521196a2 17753
521196a2 17754
e6cc62c6
VS
17755 ac_ext=cc
17756ac_cpp='$CXXCPP $CPPFLAGS'
17757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17760
17761 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17762#line $LINENO "configure"
e6cc62c6
VS
17763/* confdefs.h. */
17764_ACEOF
17765cat confdefs.h >>conftest.$ac_ext
17766cat >>conftest.$ac_ext <<_ACEOF
17767/* end confdefs.h. */
17768
17769int
17770main ()
17771{
521196a2 17772int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17773 ;
17774 return 0;
17775}
17776_ACEOF
17777rm -f conftest.$ac_objext
17778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17779 (eval $ac_compile) 2>&5
e6cc62c6
VS
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
789c5f4a 17783 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
521196a2
MB
17789 ac_cv_cxx_const_cast=yes
17790else
e6cc62c6
VS
17791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
17794ac_cv_cxx_const_cast=no
521196a2 17795fi
789c5f4a 17796rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17797 ac_ext=c
521196a2 17798ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17801ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17802
17803
17804fi
e6cc62c6
VS
17805echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17806echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17807if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17808
17809cat >>confdefs.h <<\_ACEOF
17810#define HAVE_CONST_CAST
17811_ACEOF
521196a2
MB
17812
17813fi
17814
17815
e87b7833
MB
17816if test "$wxUSE_STL" = "yes"; then
17817 ac_ext=cc
17818ac_cpp='$CXXCPP $CPPFLAGS'
17819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17822
17823
17824 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17825echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17826 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17827#line $LINENO "configure"
e87b7833
MB
17828/* confdefs.h. */
17829_ACEOF
17830cat confdefs.h >>conftest.$ac_ext
17831cat >>conftest.$ac_ext <<_ACEOF
17832/* end confdefs.h. */
17833#include <string>
17834 #include <functional>
17835 #include <algorithm>
17836 #include <vector>
17837 #include <list>
17838int
17839main ()
17840{
17841std::vector<int> moo;
17842 std::list<int> foo;
17843 std::vector<int>::iterator it =
17844 std::find_if(moo.begin(), moo.end(),
17845 std::bind2nd(std::less<int>(), 3));
17846 ;
17847 return 0;
17848}
17849_ACEOF
17850rm -f conftest.$ac_objext
17851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17852 (eval $ac_compile) 2>&5
e87b7833
MB
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
789c5f4a 17856 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 echo "$as_me:$LINENO: result: yes" >&5
17863echo "${ECHO_T}yes" >&6
17864else
17865 echo "$as_me: failed program was:" >&5
17866sed 's/^/| /' conftest.$ac_ext >&5
17867
17868echo "$as_me:$LINENO: result: no" >&5
17869echo "${ECHO_T}no" >&6
17870 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17871echo "$as_me: error: Basic STL functionality missing" >&2;}
17872 { (exit 1); exit 1; }; }
17873fi
789c5f4a 17874rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
17875
17876 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17877echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17878 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17879#line $LINENO "configure"
e87b7833
MB
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885#include <string>
17886int
17887main ()
17888{
17889std::wstring foo;
17890 ;
17891 return 0;
17892}
17893_ACEOF
17894rm -f conftest.$ac_objext
17895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17896 (eval $ac_compile) 2>&5
e87b7833
MB
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
789c5f4a 17900 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 echo "$as_me:$LINENO: result: yes" >&5
17907echo "${ECHO_T}yes" >&6
17908 cat >>confdefs.h <<\_ACEOF
17909#define HAVE_STD_WSTRING 1
17910_ACEOF
17911
17912else
17913 echo "$as_me: failed program was:" >&5
17914sed 's/^/| /' conftest.$ac_ext >&5
17915
17916echo "$as_me:$LINENO: result: no" >&5
17917echo "${ECHO_T}no" >&6
17918fi
789c5f4a 17919rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
17920
17921 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17922echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17923 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17924#line $LINENO "configure"
e87b7833
MB
17925/* confdefs.h. */
17926_ACEOF
17927cat confdefs.h >>conftest.$ac_ext
17928cat >>conftest.$ac_ext <<_ACEOF
17929/* end confdefs.h. */
17930#include <string>
17931int
17932main ()
17933{
17934std::string foo, bar;
17935 foo.compare(bar);
17936 foo.compare(1, 1, bar);
17937 foo.compare(1, 1, bar, 1, 1);
17938 foo.compare("");
17939 foo.compare(1, 1, "");
17940 foo.compare(1, 1, "", 2);
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
17946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17947 (eval $ac_compile) 2>&5
e87b7833
MB
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
789c5f4a 17951 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 echo "$as_me:$LINENO: result: yes" >&5
17958echo "${ECHO_T}yes" >&6
17959 cat >>confdefs.h <<\_ACEOF
17960#define HAVE_STD_STRING_COMPARE 1
17961_ACEOF
17962
17963else
17964 echo "$as_me: failed program was:" >&5
17965sed 's/^/| /' conftest.$ac_ext >&5
17966
17967echo "$as_me:$LINENO: result: no" >&5
17968echo "${ECHO_T}no" >&6
17969fi
789c5f4a 17970rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
17971
17972 ac_ext=c
17973ac_cpp='$CPP $CPPFLAGS'
17974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976ac_compiler_gnu=$ac_cv_c_compiler_gnu
17977
17978fi
17979
8284b0c5 17980
21d1c967
GD
17981SEARCH_INCLUDE="\
17982 /usr/local/include \
17983 \
21d1c967 17984 /usr/Motif-2.1/include \
789c5f4a 17985 /usr/Motif-1.2/include \
21d1c967
GD
17986 /usr/include/Motif1.2 \
17987 /opt/xpm/include/X11 \
17988 /opt/GBxpm/include/ \
17989 /opt/GBxpm/X11/include/ \
17990 \
21d1c967
GD
17991 /usr/dt/include \
17992 /usr/openwin/include \
17993 \
17994 /usr/include/Xm \
17995 \
17996 /usr/X11R6/include \
17997 /usr/X11R6.4/include \
17998 /usr/X11R5/include \
17999 /usr/X11R4/include \
18000 \
18001 /usr/include/X11R6 \
18002 /usr/include/X11R5 \
18003 /usr/include/X11R4 \
18004 \
18005 /usr/local/X11R6/include \
18006 /usr/local/X11R5/include \
18007 /usr/local/X11R4/include \
18008 \
18009 /usr/local/include/X11R6 \
18010 /usr/local/include/X11R5 \
18011 /usr/local/include/X11R4 \
18012 \
18013 /usr/X11/include \
18014 /usr/include/X11 \
18015 /usr/local/X11/include \
18016 /usr/local/include/X11 \
18017 \
18018 /usr/X386/include \
18019 /usr/x386/include \
18020 /usr/XFree86/include/X11 \
18021 \
18022 X:/XFree86/include \
18023 X:/XFree86/include/X11 \
18024 \
18025 /usr/include/gtk \
18026 /usr/local/include/gtk \
18027 /usr/include/glib \
18028 /usr/local/include/glib \
18029 \
18030 /usr/include/qt \
18031 /usr/local/include/qt \
18032 \
18033 /usr/include/windows \
18034 /usr/include/wine \
18035 /usr/local/include/wine \
18036 \
18037 /usr/unsupported/include \
18038 /usr/athena/include \
18039 /usr/local/x11r5/include \
18040 /usr/lpp/Xamples/include \
18041 \
2b5f62a0 18042 /usr/openwin/share/include"
21d1c967 18043
5a60a58a 18044SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21d1c967 18045
8284b0c5 18046
e6cc62c6 18047cat >confcache <<\_ACEOF
21d1c967
GD
18048# This file is a shell script that caches the results of configure
18049# tests run on this system so they can be shared between configure
e6cc62c6
VS
18050# scripts and configure runs, see configure's option --config-cache.
18051# It is not useful on other systems. If it contains results you don't
18052# want to keep, you may remove or edit it.
21d1c967 18053#
e6cc62c6
VS
18054# config.status only pays attention to the cache file if you give it
18055# the --recheck option to rerun configure.
21d1c967 18056#
e6cc62c6
VS
18057# `ac_cv_env_foo' variables (set or unset) will be overridden when
18058# loading this file, other *unset* `ac_cv_foo' will be assigned the
18059# following values.
18060
18061_ACEOF
18062
21d1c967
GD
18063# The following way of writing the cache mishandles newlines in values,
18064# but we know of no workaround that is simple, portable, and efficient.
18065# So, don't put newlines in cache variables' values.
18066# Ultrix sh set writes to stderr and can't be redirected directly,
18067# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18068{
18069 (set) 2>&1 |
18070 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18071 *ac_space=\ *)
18072 # `set' does not quote correctly, so add quotes (double-quote
18073 # substitution turns \\\\ into \\, and sed turns \\ into \).
18074 sed -n \
789c5f4a
VZ
18075 "s/'/'\\\\''/g;
18076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18077 ;;
18078 *)
18079 # `set' quotes correctly as required by POSIX, so do not add quotes.
18080 sed -n \
789c5f4a 18081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18082 ;;
18083 esac;
18084} |
18085 sed '
18086 t clear
18087 : clear
18088 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18089 t end
18090 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18091 : end' >>confcache
18092if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18093 if test -w $cache_file; then
e6cc62c6
VS
18094 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18095 cat confcache >$cache_file
21d1c967
GD
18096 else
18097 echo "not updating unwritable cache $cache_file"
18098 fi
ab9b9eab 18099fi
21d1c967 18100rm -f confcache
ab9b9eab 18101
fe0895cf 18102if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18103 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18104echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18105if test "${wx_cv_lib_glibc21+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107else
18108
18109 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18110#line $LINENO "configure"
e6cc62c6
VS
18111/* confdefs.h. */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h. */
21d1c967 18116#include <features.h>
e6cc62c6
VS
18117int
18118main ()
18119{
ab9b9eab 18120
21d1c967
GD
18121 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18122 #error not glibc2.1
18123 #endif
e6cc62c6
VS
18124
18125 ;
18126 return 0;
18127}
18128_ACEOF
18129rm -f conftest.$ac_objext
18130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18131 (eval $ac_compile) 2>&5
e6cc62c6
VS
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
789c5f4a 18135 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141
21d1c967 18142 wx_cv_lib_glibc21=yes
e6cc62c6 18143
698dcdb6 18144else
e6cc62c6
VS
18145 echo "$as_me: failed program was:" >&5
18146sed 's/^/| /' conftest.$ac_ext >&5
18147
18148
21d1c967 18149 wx_cv_lib_glibc21=no
e6cc62c6
VS
18150
18151
247f5006 18152fi
789c5f4a 18153rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18154
e6cc62c6
VS
18155fi
18156echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18157echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18158 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18159 cat >>confdefs.h <<\_ACEOF
21d1c967 18160#define wxHAVE_GLIBC2 1
e6cc62c6 18161_ACEOF
1e487827 18162
90dd450c 18163 fi
ab9b9eab
VZ
18164fi
18165
5c0a20c3
VZ
18166if test "x$wx_cv_lib_glibc21" = "xyes"; then
18167 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18168 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18169#define _GNU_SOURCE 1
e6cc62c6 18170_ACEOF
5c0a20c3
VZ
18171
18172 fi
18173fi
18174
8284b0c5
MB
18175
18176
21d1c967 18177if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18178 cat >>confdefs.h <<\_ACEOF
21d1c967 18179#define wxUSE_REGEX 1
e6cc62c6 18180_ACEOF
698dcdb6 18181
8284b0c5 18182
30f2fa6c
VS
18183 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18184 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18185echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18186 wxUSE_REGEX=builtin
18187 fi
18188
21d1c967 18189 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18190 if test "${ac_cv_header_regex_h+set}" = set; then
18191 echo "$as_me:$LINENO: checking for regex.h" >&5
18192echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18193if test "${ac_cv_header_regex_h+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195fi
18196echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18197echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18198else
18199 # Is the header compilable?
18200echo "$as_me:$LINENO: checking regex.h usability" >&5
18201echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18202cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18203#line $LINENO "configure"
e6cc62c6
VS
18204/* confdefs.h. */
18205_ACEOF
18206cat confdefs.h >>conftest.$ac_ext
18207cat >>conftest.$ac_ext <<_ACEOF
18208/* end confdefs.h. */
18209$ac_includes_default
247f5006 18210#include <regex.h>
e6cc62c6
VS
18211_ACEOF
18212rm -f conftest.$ac_objext
18213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18214 (eval $ac_compile) 2>&5
e6cc62c6
VS
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
789c5f4a 18218 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_header_compiler=yes
18225else
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229ac_header_compiler=no
18230fi
789c5f4a 18231rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18233echo "${ECHO_T}$ac_header_compiler" >&6
18234
18235# Is the header present?
18236echo "$as_me:$LINENO: checking regex.h presence" >&5
18237echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18238cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18239#line $LINENO "configure"
e6cc62c6
VS
18240/* confdefs.h. */
18241_ACEOF
18242cat confdefs.h >>conftest.$ac_ext
18243cat >>conftest.$ac_ext <<_ACEOF
18244/* end confdefs.h. */
18245#include <regex.h>
18246_ACEOF
18247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18249 ac_status=$?
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } >/dev/null; then
18255 if test -s conftest.err; then
18256 ac_cpp_err=$ac_c_preproc_warn_flag
18257 else
18258 ac_cpp_err=
18259 fi
18260else
18261 ac_cpp_err=yes
18262fi
18263if test -z "$ac_cpp_err"; then
18264 ac_header_preproc=yes
18265else
18266 echo "$as_me: failed program was:" >&5
18267sed 's/^/| /' conftest.$ac_ext >&5
18268
18269 ac_header_preproc=no
18270fi
18271rm -f conftest.err conftest.$ac_ext
18272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18273echo "${ECHO_T}$ac_header_preproc" >&6
18274
18275# So? What about this header?
789c5f4a
VZ
18276case $ac_header_compiler:$ac_header_preproc in
18277 yes:no )
e6cc62c6
VS
18278 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18279echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
18280 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18281echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18282 (
18283 cat <<\_ASBOX
18284## ------------------------------------ ##
18285## Report this to bug-autoconf@gnu.org. ##
18286## ------------------------------------ ##
18287_ASBOX
18288 ) |
18289 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18290 ;;
789c5f4a 18291 no:yes )
e6cc62c6
VS
18292 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18293echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
18294 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18295echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18296 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18297echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18298 (
18299 cat <<\_ASBOX
789c5f4a
VZ
18300## ------------------------------------ ##
18301## Report this to bug-autoconf@gnu.org. ##
18302## ------------------------------------ ##
e6cc62c6
VS
18303_ASBOX
18304 ) |
18305 sed "s/^/$as_me: WARNING: /" >&2
18306 ;;
18307esac
18308echo "$as_me:$LINENO: checking for regex.h" >&5
18309echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18310if test "${ac_cv_header_regex_h+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18312else
18313 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18314fi
e6cc62c6
VS
18315echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18316echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18317
698dcdb6 18318fi
e6cc62c6
VS
18319if test $ac_cv_header_regex_h = yes; then
18320
18321for ac_func in regcomp
21d1c967 18322do
e6cc62c6
VS
18323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18324echo "$as_me:$LINENO: checking for $ac_func" >&5
18325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18326if eval "test \"\${$as_ac_var+set}\" = set"; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
18329 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18330#line $LINENO "configure"
e6cc62c6
VS
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
a0b9e27f 18336/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18337 which can conflict with char $ac_func (); below.
18338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18339 <limits.h> exists even on freestanding compilers. */
18340#ifdef __STDC__
18341# include <limits.h>
18342#else
18343# include <assert.h>
18344#endif
21d1c967 18345/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18346#ifdef __cplusplus
18347extern "C"
18348{
18349#endif
21d1c967 18350/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18351 builtin and then its argument prototype would still apply. */
18352char $ac_func ();
21d1c967
GD
18353/* The GNU C library defines this for functions which it implements
18354 to always fail with ENOSYS. Some functions are actually named
18355 something starting with __ and the normal name is an alias. */
18356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18357choke me
18358#else
e6cc62c6
VS
18359char (*f) () = $ac_func;
18360#endif
18361#ifdef __cplusplus
18362}
21d1c967 18363#endif
90dd450c 18364
e6cc62c6
VS
18365int
18366main ()
18367{
18368return f != $ac_func;
18369 ;
18370 return 0;
18371}
18372_ACEOF
18373rm -f conftest.$ac_objext conftest$ac_exeext
18374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 18375 (eval $ac_link) 2>&5
e6cc62c6
VS
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
789c5f4a 18379 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
18385 eval "$as_ac_var=yes"
18386else
18387 echo "$as_me: failed program was:" >&5
18388sed 's/^/| /' conftest.$ac_ext >&5
18389
18390eval "$as_ac_var=no"
18391fi
789c5f4a 18392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18393fi
18394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18396if test `eval echo '${'$as_ac_var'}'` = yes; then
18397 cat >>confdefs.h <<_ACEOF
18398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18399_ACEOF
5c6fa7d2 18400
698dcdb6 18401fi
21d1c967
GD
18402done
18403
ab9b9eab
VZ
18404fi
18405
8284b0c5 18406
e6cc62c6 18407
21d1c967
GD
18408 if test "x$ac_cv_func_regcomp" != "xyes"; then
18409 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18410 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18411echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18412 { (exit 1); exit 1; }; }
21d1c967 18413 else
e6cc62c6
VS
18414 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18415echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18416 wxUSE_REGEX=builtin
18417 fi
18418 else
18419 wxUSE_REGEX=sys
18420 fi
ab9b9eab 18421 fi
21d1c967 18422fi
90dd450c 18423
8284b0c5 18424
21d1c967
GD
18425ZLIB_LINK=
18426if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18427 cat >>confdefs.h <<\_ACEOF
21d1c967 18428#define wxUSE_ZLIB 1
e6cc62c6 18429_ACEOF
21d1c967 18430
8284b0c5 18431
21d1c967 18432 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18433 if test "$USE_DARWIN" = 1; then
18434 system_zlib_h_ok="yes"
18435 else
e6cc62c6
VS
18436 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18437echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18438if test "${ac_cv_header_zlib_h+set}" = set; then
18439 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18440else
18441 if test "$cross_compiling" = yes; then
89e6bf6d 18442 unset ac_cv_header_zlib_h
e6cc62c6 18443
d643b80e 18444else
e6cc62c6 18445 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18446#line $LINENO "configure"
e6cc62c6
VS
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452
ef33c576 18453 #include <zlib.h>
d775acfa 18454 #include <stdio.h>
d643b80e 18455
d775acfa
VZ
18456 int main()
18457 {
18458 FILE *f=fopen("conftestval", "w");
18459 if (!f) exit(1);
18460 fprintf(f, "%s",
18461 ZLIB_VERSION[0] == '1' &&
18462 (ZLIB_VERSION[2] > '1' ||
18463 (ZLIB_VERSION[2] == '1' &&
18464 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18465 exit(0);
18466 }
e6cc62c6
VS
18467
18468_ACEOF
18469rm -f conftest$ac_exeext
18470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18471 (eval $ac_link) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
d643b80e
VZ
18480 ac_cv_header_zlib_h=`cat conftestval`
18481else
e6cc62c6
VS
18482 echo "$as_me: program exited with status $ac_status" >&5
18483echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486( exit $ac_status )
18487ac_cv_header_zlib_h=no
d643b80e 18488fi
789c5f4a 18489rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18490fi
18491
d643b80e 18492fi
e6cc62c6
VS
18493echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18494echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18495 if test "${ac_cv_header_zlib_h+set}" = set; then
18496 echo "$as_me:$LINENO: checking for zlib.h" >&5
18497echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18498if test "${ac_cv_header_zlib_h+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500fi
18501echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18502echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18503else
e6cc62c6
VS
18504 # Is the header compilable?
18505echo "$as_me:$LINENO: checking zlib.h usability" >&5
18506echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18507cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18508#line $LINENO "configure"
e6cc62c6
VS
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
18514$ac_includes_default
89e6bf6d 18515#include <zlib.h>
e6cc62c6
VS
18516_ACEOF
18517rm -f conftest.$ac_objext
18518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18519 (eval $ac_compile) 2>&5
e6cc62c6
VS
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
789c5f4a 18523 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; }; then
18529 ac_header_compiler=yes
18530else
18531 echo "$as_me: failed program was:" >&5
18532sed 's/^/| /' conftest.$ac_ext >&5
18533
18534ac_header_compiler=no
18535fi
789c5f4a 18536rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18538echo "${ECHO_T}$ac_header_compiler" >&6
18539
18540# Is the header present?
18541echo "$as_me:$LINENO: checking zlib.h presence" >&5
18542echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18543cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18544#line $LINENO "configure"
e6cc62c6
VS
18545/* confdefs.h. */
18546_ACEOF
18547cat confdefs.h >>conftest.$ac_ext
18548cat >>conftest.$ac_ext <<_ACEOF
18549/* end confdefs.h. */
18550#include <zlib.h>
18551_ACEOF
18552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18554 ac_status=$?
18555 grep -v '^ *+' conftest.er1 >conftest.err
18556 rm -f conftest.er1
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } >/dev/null; then
18560 if test -s conftest.err; then
18561 ac_cpp_err=$ac_c_preproc_warn_flag
18562 else
18563 ac_cpp_err=
18564 fi
18565else
18566 ac_cpp_err=yes
18567fi
18568if test -z "$ac_cpp_err"; then
18569 ac_header_preproc=yes
18570else
18571 echo "$as_me: failed program was:" >&5
18572sed 's/^/| /' conftest.$ac_ext >&5
18573
18574 ac_header_preproc=no
18575fi
18576rm -f conftest.err conftest.$ac_ext
18577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18578echo "${ECHO_T}$ac_header_preproc" >&6
18579
18580# So? What about this header?
789c5f4a
VZ
18581case $ac_header_compiler:$ac_header_preproc in
18582 yes:no )
e6cc62c6
VS
18583 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18584echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
18585 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18586echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18587 (
18588 cat <<\_ASBOX
18589## ------------------------------------ ##
18590## Report this to bug-autoconf@gnu.org. ##
18591## ------------------------------------ ##
18592_ASBOX
18593 ) |
18594 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18595 ;;
789c5f4a 18596 no:yes )
e6cc62c6
VS
18597 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18598echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
18599 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18600echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18601 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18602echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18603 (
18604 cat <<\_ASBOX
789c5f4a
VZ
18605## ------------------------------------ ##
18606## Report this to bug-autoconf@gnu.org. ##
18607## ------------------------------------ ##
e6cc62c6
VS
18608_ASBOX
18609 ) |
18610 sed "s/^/$as_me: WARNING: /" >&2
18611 ;;
18612esac
18613echo "$as_me:$LINENO: checking for zlib.h" >&5
18614echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18615if test "${ac_cv_header_zlib_h+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18617else
e6cc62c6
VS
18618 ac_cv_header_zlib_h=$ac_header_preproc
18619fi
18620echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18621echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18622
89e6bf6d
VZ
18623fi
18624
d643b80e 18625
e6cc62c6 18626
d775acfa
VZ
18627 system_zlib_h_ok=$ac_cv_header_zlib_h
18628 fi
18629
18630 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18631 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18632echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18633if test "${ac_cv_lib_z_deflate+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18635else
e6cc62c6 18636 ac_check_lib_save_LIBS=$LIBS
21d1c967 18637LIBS="-lz $LIBS"
e6cc62c6 18638cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18639#line $LINENO "configure"
e6cc62c6
VS
18640/* confdefs.h. */
18641_ACEOF
18642cat confdefs.h >>conftest.$ac_ext
18643cat >>conftest.$ac_ext <<_ACEOF
18644/* end confdefs.h. */
18645
21d1c967 18646/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18647#ifdef __cplusplus
18648extern "C"
18649#endif
21d1c967 18650/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18651 builtin and then its argument prototype would still apply. */
18652char deflate ();
18653int
18654main ()
18655{
18656deflate ();
18657 ;
18658 return 0;
18659}
18660_ACEOF
18661rm -f conftest.$ac_objext conftest$ac_exeext
18662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 18663 (eval $ac_link) 2>&5
e6cc62c6
VS
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
789c5f4a 18667 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_cv_lib_z_deflate=yes
18674else
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678ac_cv_lib_z_deflate=no
18679fi
789c5f4a 18680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18681LIBS=$ac_check_lib_save_LIBS
18682fi
18683echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18684echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18685if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18686 ZLIB_LINK=" -lz"
a0b9e27f 18687fi
698dcdb6 18688
d643b80e 18689 fi
247f5006 18690
21d1c967
GD
18691 if test "x$ZLIB_LINK" = "x" ; then
18692 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18693 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18694echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18695 { (exit 1); exit 1; }; }
21d1c967 18696 else
e6cc62c6
VS
18697 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18698echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18699 wxUSE_ZLIB=builtin
18700 fi
18701 else
18702 wxUSE_ZLIB=sys
18703 fi
18704 fi
ab9b9eab
VZ
18705fi
18706
8284b0c5 18707
21d1c967
GD
18708PNG_LINK=
18709if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18710 cat >>confdefs.h <<\_ACEOF
21d1c967 18711#define wxUSE_LIBPNG 1
e6cc62c6 18712_ACEOF
90dd450c 18713
8284b0c5 18714
21d1c967 18715 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18716 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18717echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18718 wxUSE_LIBPNG=sys
18719 fi
90dd450c 18720
21d1c967 18721 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18722 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18723echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18724 wxUSE_LIBPNG=builtin
18725 fi
18726
18727 if test "$wxUSE_MGL" != 1 ; then
18728 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18729 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18730echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18731if test "${ac_cv_header_png_h+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18733else
18734 if test "$cross_compiling" = yes; then
89e6bf6d 18735 unset ac_cv_header_png_h
e6cc62c6 18736
5d3f766d 18737else
e6cc62c6 18738 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18739#line $LINENO "configure"
e6cc62c6
VS
18740/* confdefs.h. */
18741_ACEOF
18742cat confdefs.h >>conftest.$ac_ext
18743cat >>conftest.$ac_ext <<_ACEOF
18744/* end confdefs.h. */
18745
ef33c576 18746 #include <png.h>
5d3f766d
VZ
18747 #include <stdio.h>
18748
18749 int main()
18750 {
18751 FILE *f=fopen("conftestval", "w");
18752 if (!f) exit(1);
18753 fprintf(f, "%s",
18754 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18755 exit(0);
18756 }
e6cc62c6
VS
18757
18758_ACEOF
18759rm -f conftest$ac_exeext
18760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18761 (eval $ac_link) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
5d3f766d
VZ
18770 ac_cv_header_png_h=`cat conftestval`
18771else
e6cc62c6
VS
18772 echo "$as_me: program exited with status $ac_status" >&5
18773echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776( exit $ac_status )
18777ac_cv_header_png_h=no
5d3f766d 18778fi
789c5f4a 18779rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18780fi
18781
5d3f766d 18782fi
e6cc62c6
VS
18783echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18784echo "${ECHO_T}$ac_cv_header_png_h" >&6
18785 if test "${ac_cv_header_png_h+set}" = set; then
18786 echo "$as_me:$LINENO: checking for png.h" >&5
18787echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18788if test "${ac_cv_header_png_h+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18790fi
18791echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18792echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18793else
e6cc62c6
VS
18794 # Is the header compilable?
18795echo "$as_me:$LINENO: checking png.h usability" >&5
18796echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18797cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18798#line $LINENO "configure"
e6cc62c6
VS
18799/* confdefs.h. */
18800_ACEOF
18801cat confdefs.h >>conftest.$ac_ext
18802cat >>conftest.$ac_ext <<_ACEOF
18803/* end confdefs.h. */
18804$ac_includes_default
89e6bf6d 18805#include <png.h>
e6cc62c6
VS
18806_ACEOF
18807rm -f conftest.$ac_objext
18808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18809 (eval $ac_compile) 2>&5
e6cc62c6
VS
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } &&
789c5f4a 18813 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18816 ac_status=$?
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; }; then
18819 ac_header_compiler=yes
18820else
18821 echo "$as_me: failed program was:" >&5
18822sed 's/^/| /' conftest.$ac_ext >&5
18823
18824ac_header_compiler=no
18825fi
789c5f4a 18826rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18828echo "${ECHO_T}$ac_header_compiler" >&6
18829
18830# Is the header present?
18831echo "$as_me:$LINENO: checking png.h presence" >&5
18832echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18833cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18834#line $LINENO "configure"
e6cc62c6
VS
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840#include <png.h>
18841_ACEOF
18842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } >/dev/null; then
18850 if test -s conftest.err; then
18851 ac_cpp_err=$ac_c_preproc_warn_flag
18852 else
18853 ac_cpp_err=
18854 fi
18855else
18856 ac_cpp_err=yes
18857fi
18858if test -z "$ac_cpp_err"; then
18859 ac_header_preproc=yes
18860else
18861 echo "$as_me: failed program was:" >&5
18862sed 's/^/| /' conftest.$ac_ext >&5
18863
18864 ac_header_preproc=no
18865fi
18866rm -f conftest.err conftest.$ac_ext
18867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18868echo "${ECHO_T}$ac_header_preproc" >&6
18869
18870# So? What about this header?
789c5f4a
VZ
18871case $ac_header_compiler:$ac_header_preproc in
18872 yes:no )
e6cc62c6
VS
18873 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18874echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
18875 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18876echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18877 (
18878 cat <<\_ASBOX
18879## ------------------------------------ ##
18880## Report this to bug-autoconf@gnu.org. ##
18881## ------------------------------------ ##
18882_ASBOX
18883 ) |
18884 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18885 ;;
789c5f4a 18886 no:yes )
e6cc62c6
VS
18887 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18888echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
18889 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18890echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18891 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18892echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18893 (
18894 cat <<\_ASBOX
789c5f4a
VZ
18895## ------------------------------------ ##
18896## Report this to bug-autoconf@gnu.org. ##
18897## ------------------------------------ ##
e6cc62c6
VS
18898_ASBOX
18899 ) |
18900 sed "s/^/$as_me: WARNING: /" >&2
18901 ;;
18902esac
18903echo "$as_me:$LINENO: checking for png.h" >&5
18904echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18905if test "${ac_cv_header_png_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18907else
e6cc62c6
VS
18908 ac_cv_header_png_h=$ac_header_preproc
18909fi
18910echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18911echo "${ECHO_T}$ac_cv_header_png_h" >&6
18912
89e6bf6d
VZ
18913fi
18914
5d3f766d 18915
e6cc62c6 18916
5d3f766d 18917 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18918 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18919echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18920if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18922else
e6cc62c6 18923 ac_check_lib_save_LIBS=$LIBS
21d1c967 18924LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 18925cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18926#line $LINENO "configure"
e6cc62c6
VS
18927/* confdefs.h. */
18928_ACEOF
18929cat confdefs.h >>conftest.$ac_ext
18930cat >>conftest.$ac_ext <<_ACEOF
18931/* end confdefs.h. */
18932
21d1c967 18933/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18934#ifdef __cplusplus
18935extern "C"
18936#endif
21d1c967 18937/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18938 builtin and then its argument prototype would still apply. */
18939char png_check_sig ();
18940int
18941main ()
18942{
18943png_check_sig ();
18944 ;
18945 return 0;
18946}
18947_ACEOF
18948rm -f conftest.$ac_objext conftest$ac_exeext
18949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 18950 (eval $ac_link) 2>&5
e6cc62c6
VS
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
789c5f4a 18954 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_cv_lib_png_png_check_sig=yes
18961else
18962 echo "$as_me: failed program was:" >&5
18963sed 's/^/| /' conftest.$ac_ext >&5
18964
18965ac_cv_lib_png_png_check_sig=no
18966fi
789c5f4a 18967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18968LIBS=$ac_check_lib_save_LIBS
18969fi
18970echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18971echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18972if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18973 PNG_LINK=" -lpng"
a0b9e27f 18974fi
90dd450c 18975
5d3f766d 18976 fi
247f5006 18977
21d1c967
GD
18978 if test "x$PNG_LINK" = "x" ; then
18979 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18980 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18981echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18982 { (exit 1); exit 1; }; }
21d1c967 18983 else
e6cc62c6
VS
18984 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18985echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18986 wxUSE_LIBPNG=builtin
18987 fi
18988 else
2b5f62a0 18989 wxUSE_LIBPNG=sys
21d1c967
GD
18990 fi
18991 fi
18992 fi
90dd450c 18993
21d1c967 18994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18995fi
18996
8284b0c5 18997
21d1c967
GD
18998JPEG_LINK=
18999if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19000 cat >>confdefs.h <<\_ACEOF
21d1c967 19001#define wxUSE_LIBJPEG 1
e6cc62c6 19002_ACEOF
90dd450c 19003
8284b0c5 19004
21d1c967 19005 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19006 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19007echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19008 wxUSE_LIBJPEG=sys
19009 fi
90dd450c 19010
21d1c967
GD
19011 if test "$wxUSE_MGL" != 1 ; then
19012 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19013 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19014echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19015 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19019#line $LINENO "configure"
e6cc62c6
VS
19020/* confdefs.h. */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h. */
90dd450c 19025
21d1c967
GD
19026 #undef HAVE_STDLIB_H
19027 #include <stdio.h>
19028 #include <jpeglib.h>
90dd450c 19029
e6cc62c6
VS
19030int
19031main ()
19032{
19033
19034
19035 ;
19036 return 0;
19037}
19038_ACEOF
19039rm -f conftest.$ac_objext
19040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19041 (eval $ac_compile) 2>&5
e6cc62c6
VS
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
789c5f4a 19045 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
21d1c967 19051 ac_cv_header_jpeglib_h=yes
90dd450c 19052else
e6cc62c6
VS
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056ac_cv_header_jpeglib_h=no
19057
90dd450c 19058fi
789c5f4a 19059rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19060
90dd450c
VZ
19061fi
19062
e6cc62c6
VS
19063 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19064echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19065
21d1c967 19066 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19067 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19068echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19069if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19071else
e6cc62c6 19072 ac_check_lib_save_LIBS=$LIBS
21d1c967 19073LIBS="-ljpeg $LIBS"
e6cc62c6 19074cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19075#line $LINENO "configure"
e6cc62c6
VS
19076/* confdefs.h. */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h. */
19081
21d1c967 19082/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19083#ifdef __cplusplus
19084extern "C"
19085#endif
21d1c967 19086/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19087 builtin and then its argument prototype would still apply. */
19088char jpeg_read_header ();
19089int
19090main ()
19091{
19092jpeg_read_header ();
19093 ;
19094 return 0;
19095}
19096_ACEOF
19097rm -f conftest.$ac_objext conftest$ac_exeext
19098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19099 (eval $ac_link) 2>&5
e6cc62c6
VS
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
789c5f4a 19103 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_lib_jpeg_jpeg_read_header=yes
19110else
19111 echo "$as_me: failed program was:" >&5
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
19114ac_cv_lib_jpeg_jpeg_read_header=no
19115fi
789c5f4a 19116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19117LIBS=$ac_check_lib_save_LIBS
19118fi
19119echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19120echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19121if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19122 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19123fi
19124
21d1c967 19125 fi
90dd450c 19126
21d1c967
GD
19127 if test "x$JPEG_LINK" = "x" ; then
19128 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19129 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19130echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19131 { (exit 1); exit 1; }; }
21d1c967 19132 else
e6cc62c6
VS
19133 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19134echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19135 wxUSE_LIBJPEG=builtin
19136 fi
19137 else
19138 wxUSE_LIBJPEG=sys
19139 fi
19140 fi
19141 fi
21d1c967 19142fi
90dd450c 19143
8284b0c5 19144
21d1c967 19145TIFF_LINK=
2b5f62a0 19146TIFF_PREREQ_LINKS=-lm
21d1c967 19147if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19148 cat >>confdefs.h <<\_ACEOF
21d1c967 19149#define wxUSE_LIBTIFF 1
e6cc62c6 19150_ACEOF
21d1c967 19151
8284b0c5 19152
21d1c967 19153 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19154 if test "$wxUSE_LIBJPEG" = "sys"; then
19155 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19156 fi
19157 if test "$wxUSE_ZLIB" = "sys"; then
19158 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19159 fi
e6cc62c6
VS
19160 if test "${ac_cv_header_tiffio_h+set}" = set; then
19161 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19162echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19163if test "${ac_cv_header_tiffio_h+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19165fi
19166echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19167echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19168else
19169 # Is the header compilable?
19170echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19171echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19172cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19173#line $LINENO "configure"
e6cc62c6
VS
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179$ac_includes_default
247f5006 19180#include <tiffio.h>
e6cc62c6
VS
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19184 (eval $ac_compile) 2>&5
e6cc62c6
VS
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
789c5f4a 19188 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_header_compiler=yes
19195else
19196 echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199ac_header_compiler=no
19200fi
789c5f4a 19201rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19202echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19203echo "${ECHO_T}$ac_header_compiler" >&6
19204
19205# Is the header present?
19206echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19207echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19208cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19209#line $LINENO "configure"
e6cc62c6
VS
19210/* confdefs.h. */
19211_ACEOF
19212cat confdefs.h >>conftest.$ac_ext
19213cat >>conftest.$ac_ext <<_ACEOF
19214/* end confdefs.h. */
19215#include <tiffio.h>
19216_ACEOF
19217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } >/dev/null; then
19225 if test -s conftest.err; then
19226 ac_cpp_err=$ac_c_preproc_warn_flag
19227 else
19228 ac_cpp_err=
19229 fi
19230else
19231 ac_cpp_err=yes
19232fi
19233if test -z "$ac_cpp_err"; then
19234 ac_header_preproc=yes
19235else
19236 echo "$as_me: failed program was:" >&5
19237sed 's/^/| /' conftest.$ac_ext >&5
19238
19239 ac_header_preproc=no
19240fi
19241rm -f conftest.err conftest.$ac_ext
19242echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19243echo "${ECHO_T}$ac_header_preproc" >&6
19244
19245# So? What about this header?
789c5f4a
VZ
19246case $ac_header_compiler:$ac_header_preproc in
19247 yes:no )
e6cc62c6
VS
19248 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19249echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19250 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19251echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19252 (
19253 cat <<\_ASBOX
19254## ------------------------------------ ##
19255## Report this to bug-autoconf@gnu.org. ##
19256## ------------------------------------ ##
19257_ASBOX
19258 ) |
19259 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19260 ;;
789c5f4a 19261 no:yes )
e6cc62c6
VS
19262 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19263echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19264 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19265echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19266 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19267echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19268 (
19269 cat <<\_ASBOX
789c5f4a
VZ
19270## ------------------------------------ ##
19271## Report this to bug-autoconf@gnu.org. ##
19272## ------------------------------------ ##
e6cc62c6
VS
19273_ASBOX
19274 ) |
19275 sed "s/^/$as_me: WARNING: /" >&2
19276 ;;
19277esac
19278echo "$as_me:$LINENO: checking for tiffio.h" >&5
19279echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19280if test "${ac_cv_header_tiffio_h+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19282else
19283 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19284fi
e6cc62c6
VS
19285echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19286echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19287
21d1c967 19288fi
e6cc62c6 19289if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19290
19291 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19292echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19293if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19295else
e6cc62c6 19296 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19297LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 19298cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19299#line $LINENO "configure"
e6cc62c6
VS
19300/* confdefs.h. */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h. */
19305
ab9b9eab 19306/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19307#ifdef __cplusplus
19308extern "C"
19309#endif
ab9b9eab 19310/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19311 builtin and then its argument prototype would still apply. */
19312char TIFFError ();
19313int
19314main ()
19315{
19316TIFFError ();
19317 ;
19318 return 0;
19319}
19320_ACEOF
19321rm -f conftest.$ac_objext conftest$ac_exeext
19322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19323 (eval $ac_link) 2>&5
e6cc62c6
VS
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
789c5f4a 19327 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ac_cv_lib_tiff_TIFFError=yes
19334else
19335 echo "$as_me: failed program was:" >&5
19336sed 's/^/| /' conftest.$ac_ext >&5
19337
19338ac_cv_lib_tiff_TIFFError=no
19339fi
789c5f4a 19340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19341LIBS=$ac_check_lib_save_LIBS
19342fi
19343echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19344echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19345if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19346 TIFF_LINK=" -ltiff"
a0b9e27f 19347fi
cd6d6d5b 19348
e6cc62c6 19349
0e012a93 19350
a0b9e27f 19351fi
8284b0c5 19352
247f5006 19353
e6cc62c6 19354
21d1c967
GD
19355 if test "x$TIFF_LINK" = "x" ; then
19356 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19357 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19358echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19359 { (exit 1); exit 1; }; }
90dd450c 19360 else
e6cc62c6
VS
19361 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19362echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19363 wxUSE_LIBTIFF=builtin
d8356fa3 19364 fi
d8356fa3 19365 else
21d1c967 19366 wxUSE_LIBTIFF=sys
d8356fa3 19367 fi
21d1c967 19368 fi
21d1c967 19369fi
10f2d63a 19370
8284b0c5 19371
672abd7a 19372if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19373 wxUSE_XML=yes
672abd7a
VS
19374 cat >>confdefs.h <<\_ACEOF
19375#define wxUSE_EXPAT 1
19376_ACEOF
19377
19378 cat >>confdefs.h <<\_ACEOF
19379#define wxUSE_XML 1
19380_ACEOF
19381
19382
19383 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19384 if test "${ac_cv_header_expat_h+set}" = set; then
19385 echo "$as_me:$LINENO: checking for expat.h" >&5
19386echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19387if test "${ac_cv_header_expat_h+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389fi
19390echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19391echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19392else
19393 # Is the header compilable?
19394echo "$as_me:$LINENO: checking expat.h usability" >&5
19395echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19396cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19397#line $LINENO "configure"
672abd7a
VS
19398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
19402/* end confdefs.h. */
19403$ac_includes_default
19404#include <expat.h>
19405_ACEOF
19406rm -f conftest.$ac_objext
19407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19408 (eval $ac_compile) 2>&5
672abd7a
VS
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
789c5f4a 19412 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_header_compiler=yes
19419else
19420 echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
19423ac_header_compiler=no
19424fi
789c5f4a 19425rm -f conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
19426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19427echo "${ECHO_T}$ac_header_compiler" >&6
19428
19429# Is the header present?
19430echo "$as_me:$LINENO: checking expat.h presence" >&5
19431echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19432cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19433#line $LINENO "configure"
672abd7a
VS
19434/* confdefs.h. */
19435_ACEOF
19436cat confdefs.h >>conftest.$ac_ext
19437cat >>conftest.$ac_ext <<_ACEOF
19438/* end confdefs.h. */
19439#include <expat.h>
19440_ACEOF
19441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } >/dev/null; then
19449 if test -s conftest.err; then
19450 ac_cpp_err=$ac_c_preproc_warn_flag
19451 else
19452 ac_cpp_err=
19453 fi
19454else
19455 ac_cpp_err=yes
19456fi
19457if test -z "$ac_cpp_err"; then
19458 ac_header_preproc=yes
19459else
19460 echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 ac_header_preproc=no
19464fi
19465rm -f conftest.err conftest.$ac_ext
19466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19467echo "${ECHO_T}$ac_header_preproc" >&6
19468
19469# So? What about this header?
789c5f4a
VZ
19470case $ac_header_compiler:$ac_header_preproc in
19471 yes:no )
672abd7a
VS
19472 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19473echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19474 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19475echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19476 (
19477 cat <<\_ASBOX
19478## ------------------------------------ ##
19479## Report this to bug-autoconf@gnu.org. ##
19480## ------------------------------------ ##
19481_ASBOX
19482 ) |
19483 sed "s/^/$as_me: WARNING: /" >&2
672abd7a 19484 ;;
789c5f4a 19485 no:yes )
672abd7a
VS
19486 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19487echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19488 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19489echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
672abd7a
VS
19490 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19491echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19492 (
19493 cat <<\_ASBOX
789c5f4a
VZ
19494## ------------------------------------ ##
19495## Report this to bug-autoconf@gnu.org. ##
19496## ------------------------------------ ##
672abd7a
VS
19497_ASBOX
19498 ) |
19499 sed "s/^/$as_me: WARNING: /" >&2
19500 ;;
19501esac
19502echo "$as_me:$LINENO: checking for expat.h" >&5
19503echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19504if test "${ac_cv_header_expat_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19506else
19507 ac_cv_header_expat_h=$ac_header_preproc
19508fi
19509echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19510echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19511
19512fi
5f0b6dff
VS
19513if test $ac_cv_header_expat_h = yes; then
19514 found_expat_h=1
19515fi
19516
19517
19518 if test "x$found_expat_h" = "x1"; then
19519 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19520echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19521if test "${wx_cv_expat_is_not_broken+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523else
19524
19525
672abd7a 19526
5f0b6dff
VS
19527 ac_ext=cc
19528ac_cpp='$CXXCPP $CPPFLAGS'
19529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19532
19533 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19534#line $LINENO "configure"
5f0b6dff
VS
19535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
19540#include <expat.h>
19541int
19542main ()
19543{
672abd7a 19544
5f0b6dff
VS
19545 ;
19546 return 0;
19547}
19548_ACEOF
19549rm -f conftest.$ac_objext
19550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19551 (eval $ac_compile) 2>&5
5f0b6dff
VS
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
789c5f4a 19555 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 wx_cv_expat_is_not_broken=yes
19562else
19563 echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566wx_cv_expat_is_not_broken=no
19567
19568fi
789c5f4a 19569rm -f conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
19570 ac_ext=c
19571ac_cpp='$CPP $CPPFLAGS'
19572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574ac_compiler_gnu=$ac_cv_c_compiler_gnu
19575
19576
19577
19578fi
19579echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19580echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19581 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19582 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19583echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19584if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587 ac_check_lib_save_LIBS=$LIBS
19588LIBS="-lexpat $LIBS"
19589cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19590#line $LINENO "configure"
672abd7a
VS
19591/* confdefs.h. */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h. */
19596
19597/* Override any gcc2 internal prototype to avoid an error. */
19598#ifdef __cplusplus
19599extern "C"
19600#endif
19601/* We use char because int might match the return type of a gcc2
19602 builtin and then its argument prototype would still apply. */
19603char XML_ParserCreate ();
19604int
19605main ()
19606{
19607XML_ParserCreate ();
19608 ;
19609 return 0;
19610}
19611_ACEOF
19612rm -f conftest.$ac_objext conftest$ac_exeext
19613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19614 (eval $ac_link) 2>&5
672abd7a
VS
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
789c5f4a 19618 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19624 ac_cv_lib_expat_XML_ParserCreate=yes
19625else
19626 echo "$as_me: failed program was:" >&5
19627sed 's/^/| /' conftest.$ac_ext >&5
19628
19629ac_cv_lib_expat_XML_ParserCreate=no
19630fi
789c5f4a 19631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
19632LIBS=$ac_check_lib_save_LIBS
19633fi
19634echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19635echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19636if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19637 EXPAT_LINK=" -lexpat"
19638fi
19639
5f0b6dff 19640 fi
672abd7a
VS
19641 fi
19642 if test "x$EXPAT_LINK" = "x" ; then
19643 if test "$wxUSE_EXPAT" = "sys" ; then
19644 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19645echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19646 { (exit 1); exit 1; }; }
19647 else
19648 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19649echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19650 wxUSE_EXPAT=builtin
19651 fi
19652 else
19653 wxUSE_EXPAT=sys
19654 fi
19655 fi
19656 if test "$wxUSE_EXPAT" = "builtin" ; then
19657
19658
19659subdirs="$subdirs src/expat"
19660
19661 fi
19662fi
19663
19664
19665
3527f29c
VS
19666if test "$wxUSE_LIBMSPACK" != "no"; then
19667
19668 if test "${ac_cv_header_mspack_h+set}" = set; then
19669 echo "$as_me:$LINENO: checking for mspack.h" >&5
19670echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
19671if test "${ac_cv_header_mspack_h+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673fi
19674echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
19675echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
19676else
19677 # Is the header compilable?
19678echo "$as_me:$LINENO: checking mspack.h usability" >&5
19679echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
19680cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19681#line $LINENO "configure"
3527f29c
VS
19682/* confdefs.h. */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
19686/* end confdefs.h. */
19687$ac_includes_default
19688#include <mspack.h>
19689_ACEOF
19690rm -f conftest.$ac_objext
19691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19692 (eval $ac_compile) 2>&5
3527f29c
VS
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
789c5f4a 19696 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_header_compiler=yes
19703else
19704 echo "$as_me: failed program was:" >&5
19705sed 's/^/| /' conftest.$ac_ext >&5
19706
19707ac_header_compiler=no
19708fi
789c5f4a 19709rm -f conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
19710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19711echo "${ECHO_T}$ac_header_compiler" >&6
19712
19713# Is the header present?
19714echo "$as_me:$LINENO: checking mspack.h presence" >&5
19715echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
19716cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19717#line $LINENO "configure"
3527f29c
VS
19718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */
19723#include <mspack.h>
19724_ACEOF
19725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } >/dev/null; then
19733 if test -s conftest.err; then
19734 ac_cpp_err=$ac_c_preproc_warn_flag
19735 else
19736 ac_cpp_err=
19737 fi
19738else
19739 ac_cpp_err=yes
19740fi
19741if test -z "$ac_cpp_err"; then
19742 ac_header_preproc=yes
19743else
19744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_header_preproc=no
19748fi
19749rm -f conftest.err conftest.$ac_ext
19750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19751echo "${ECHO_T}$ac_header_preproc" >&6
19752
19753# So? What about this header?
789c5f4a
VZ
19754case $ac_header_compiler:$ac_header_preproc in
19755 yes:no )
3527f29c
VS
19756 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
19757echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19758 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
19759echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
19760 (
19761 cat <<\_ASBOX
19762## ------------------------------------ ##
19763## Report this to bug-autoconf@gnu.org. ##
19764## ------------------------------------ ##
19765_ASBOX
19766 ) |
19767 sed "s/^/$as_me: WARNING: /" >&2
3527f29c 19768 ;;
789c5f4a 19769 no:yes )
3527f29c
VS
19770 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
19771echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19772 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
19773echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
3527f29c
VS
19774 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
19775echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
19776 (
19777 cat <<\_ASBOX
789c5f4a
VZ
19778## ------------------------------------ ##
19779## Report this to bug-autoconf@gnu.org. ##
19780## ------------------------------------ ##
3527f29c
VS
19781_ASBOX
19782 ) |
19783 sed "s/^/$as_me: WARNING: /" >&2
19784 ;;
19785esac
19786echo "$as_me:$LINENO: checking for mspack.h" >&5
19787echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
19788if test "${ac_cv_header_mspack_h+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790else
19791 ac_cv_header_mspack_h=$ac_header_preproc
19792fi
19793echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
19794echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
19795
19796fi
19797if test $ac_cv_header_mspack_h = yes; then
19798 found_mspack_h=1
19799fi
19800
19801
19802 if test "x$found_mspack_h" = "x1"; then
19803 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
19804echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
19805if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807else
19808 ac_check_lib_save_LIBS=$LIBS
19809LIBS="-lmspack $LIBS"
19810cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19811#line $LINENO "configure"
3527f29c
VS
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817
19818/* Override any gcc2 internal prototype to avoid an error. */
19819#ifdef __cplusplus
19820extern "C"
19821#endif
19822/* We use char because int might match the return type of a gcc2
19823 builtin and then its argument prototype would still apply. */
19824char mspack_create_chm_decompressor ();
19825int
19826main ()
19827{
19828mspack_create_chm_decompressor ();
19829 ;
19830 return 0;
19831}
19832_ACEOF
19833rm -f conftest.$ac_objext conftest$ac_exeext
19834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19835 (eval $ac_link) 2>&5
3527f29c
VS
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
789c5f4a 19839 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
19846else
19847 echo "$as_me: failed program was:" >&5
19848sed 's/^/| /' conftest.$ac_ext >&5
19849
19850ac_cv_lib_mspack_mspack_create_chm_decompressor=no
19851fi
789c5f4a 19852rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
19853LIBS=$ac_check_lib_save_LIBS
19854fi
19855echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
19856echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
19857if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
19858 MSPACK_LINK=" -lmspack"
19859fi
19860
19861 fi
19862 if test "x$MSPACK_LINK" = "x" ; then
19863 wxUSE_LIBMSPACK=no
19864 else
19865 cat >>confdefs.h <<\_ACEOF
19866#define wxUSE_LIBMSPACK 1
19867_ACEOF
19868
19869 fi
19870fi
19871
19872
19873
21d1c967 19874AFMINSTALL=
2b5f62a0 19875WIN32INSTALL=
90dd450c 19876
21d1c967
GD
19877TOOLKIT=
19878TOOLKIT_INCLUDE=
19879WIDGET_SET=
19880
19881if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19882
19883for ac_header in w32api.h
21d1c967 19884do
e6cc62c6
VS
19885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19886if eval "test \"\${$as_ac_Header+set}\" = set"; then
19887 echo "$as_me:$LINENO: checking for $ac_header" >&5
19888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19889if eval "test \"\${$as_ac_Header+set}\" = set"; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891fi
19892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19894else
19895 # Is the header compilable?
19896echo "$as_me:$LINENO: checking $ac_header usability" >&5
19897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19898cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19899#line $LINENO "configure"
e6cc62c6
VS
19900/* confdefs.h. */
19901_ACEOF
19902cat confdefs.h >>conftest.$ac_ext
19903cat >>conftest.$ac_ext <<_ACEOF
19904/* end confdefs.h. */
19905$ac_includes_default
19906#include <$ac_header>
19907_ACEOF
19908rm -f conftest.$ac_objext
19909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19910 (eval $ac_compile) 2>&5
e6cc62c6
VS
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
789c5f4a 19914 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_header_compiler=yes
19921else
19922 echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925ac_header_compiler=no
19926fi
789c5f4a 19927rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19929echo "${ECHO_T}$ac_header_compiler" >&6
19930
19931# Is the header present?
19932echo "$as_me:$LINENO: checking $ac_header presence" >&5
19933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19934cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19935#line $LINENO "configure"
e6cc62c6
VS
19936/* confdefs.h. */
19937_ACEOF
19938cat confdefs.h >>conftest.$ac_ext
19939cat >>conftest.$ac_ext <<_ACEOF
19940/* end confdefs.h. */
19941#include <$ac_header>
19942_ACEOF
19943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } >/dev/null; then
19951 if test -s conftest.err; then
19952 ac_cpp_err=$ac_c_preproc_warn_flag
19953 else
19954 ac_cpp_err=
19955 fi
19956else
19957 ac_cpp_err=yes
19958fi
19959if test -z "$ac_cpp_err"; then
19960 ac_header_preproc=yes
19961else
19962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965 ac_header_preproc=no
19966fi
19967rm -f conftest.err conftest.$ac_ext
19968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969echo "${ECHO_T}$ac_header_preproc" >&6
19970
19971# So? What about this header?
789c5f4a
VZ
19972case $ac_header_compiler:$ac_header_preproc in
19973 yes:no )
e6cc62c6
VS
19974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19978 (
19979 cat <<\_ASBOX
19980## ------------------------------------ ##
19981## Report this to bug-autoconf@gnu.org. ##
19982## ------------------------------------ ##
19983_ASBOX
19984 ) |
19985 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19986 ;;
789c5f4a 19987 no:yes )
e6cc62c6
VS
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19994 (
19995 cat <<\_ASBOX
789c5f4a
VZ
19996## ------------------------------------ ##
19997## Report this to bug-autoconf@gnu.org. ##
19998## ------------------------------------ ##
e6cc62c6
VS
19999_ASBOX
20000 ) |
20001 sed "s/^/$as_me: WARNING: /" >&2
20002 ;;
20003esac
20004echo "$as_me:$LINENO: checking for $ac_header" >&5
20005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20006if eval "test \"\${$as_ac_Header+set}\" = set"; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20008else
789c5f4a 20009 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 20010fi
e6cc62c6
VS
20011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20013
21d1c967 20014fi
e6cc62c6
VS
20015if test `eval echo '${'$as_ac_Header'}'` = yes; then
20016 cat >>confdefs.h <<_ACEOF
20017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20018_ACEOF
20019
21d1c967 20020fi
e6cc62c6 20021
21d1c967 20022done
f79bd02d 20023
e6cc62c6
VS
20024 if test "${ac_cv_header_windows_h+set}" = set; then
20025 echo "$as_me:$LINENO: checking for windows.h" >&5
20026echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20027if test "${ac_cv_header_windows_h+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029fi
20030echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20031echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20032else
20033 # Is the header compilable?
20034echo "$as_me:$LINENO: checking windows.h usability" >&5
20035echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20036cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20037#line $LINENO "configure"
e6cc62c6
VS
20038/* confdefs.h. */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
20042/* end confdefs.h. */
20043$ac_includes_default
247f5006 20044#include <windows.h>
e6cc62c6
VS
20045_ACEOF
20046rm -f conftest.$ac_objext
20047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 20048 (eval $ac_compile) 2>&5
e6cc62c6
VS
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
789c5f4a 20052 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_header_compiler=yes
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
20063ac_header_compiler=no
20064fi
789c5f4a 20065rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20067echo "${ECHO_T}$ac_header_compiler" >&6
20068
20069# Is the header present?
20070echo "$as_me:$LINENO: checking windows.h presence" >&5
20071echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20072cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20073#line $LINENO "configure"
e6cc62c6
VS
20074/* confdefs.h. */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h. */
20079#include <windows.h>
20080_ACEOF
20081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } >/dev/null; then
20089 if test -s conftest.err; then
20090 ac_cpp_err=$ac_c_preproc_warn_flag
20091 else
20092 ac_cpp_err=
20093 fi
20094else
20095 ac_cpp_err=yes
20096fi
20097if test -z "$ac_cpp_err"; then
20098 ac_header_preproc=yes
20099else
20100 echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103 ac_header_preproc=no
20104fi
20105rm -f conftest.err conftest.$ac_ext
20106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20107echo "${ECHO_T}$ac_header_preproc" >&6
20108
20109# So? What about this header?
789c5f4a
VZ
20110case $ac_header_compiler:$ac_header_preproc in
20111 yes:no )
e6cc62c6
VS
20112 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20113echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
20114 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20115echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20116 (
20117 cat <<\_ASBOX
20118## ------------------------------------ ##
20119## Report this to bug-autoconf@gnu.org. ##
20120## ------------------------------------ ##
20121_ASBOX
20122 ) |
20123 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 20124 ;;
789c5f4a 20125 no:yes )
e6cc62c6
VS
20126 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20127echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
20128 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20129echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
20130 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20131echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20132 (
20133 cat <<\_ASBOX
789c5f4a
VZ
20134## ------------------------------------ ##
20135## Report this to bug-autoconf@gnu.org. ##
20136## ------------------------------------ ##
e6cc62c6
VS
20137_ASBOX
20138 ) |
20139 sed "s/^/$as_me: WARNING: /" >&2
20140 ;;
20141esac
20142echo "$as_me:$LINENO: checking for windows.h" >&5
20143echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20144if test "${ac_cv_header_windows_h+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146else
20147 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 20148fi
e6cc62c6
VS
20149echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20150echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20151
90dd450c 20152fi
e6cc62c6 20153if test $ac_cv_header_windows_h = yes; then
21d1c967 20154 :
90dd450c 20155else
21d1c967 20156
e6cc62c6
VS
20157 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20158echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20159 { (exit 1); exit 1; }; }
20160
5c6fa7d2 20161fi
7b4a847f 20162
5c6fa7d2 20163
e6cc62c6 20164
b3dfbbc9 20165 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 20166
7bb2947d
MB
20167 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20168 LIBS="$LIBS -loleacc"
20169 fi
20170
21d1c967
GD
20171 case "${host}" in
20172 *-*-cygwin* )
b3dfbbc9 20173 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 20174 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 20175 esac
f79bd02d 20176
8647bec6
RG
20177 if test "$wxUSE_ODBC" = "sys" ; then
20178 wxUSE_ODBC = "yes"
21d1c967 20179 fi
8647bec6
RG
20180 if test "$wxUSE_ODBC" = "yes" ; then
20181 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 20182 cat >>confdefs.h <<\_ACEOF
8647bec6 20183#define wxUSE_ODBC 1
e6cc62c6 20184_ACEOF
f79bd02d 20185
8647bec6 20186 fi
e6cc62c6 20187
21d1c967
GD
20188 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20189 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
20190
20191 WIN32INSTALL=win32install
f79bd02d 20192fi
f79bd02d 20193
21d1c967
GD
20194if test "$wxUSE_GUI" = "yes"; then
20195 USE_GUI=1
f79bd02d 20196
21d1c967 20197 GUI_TK_LIBRARY=
f79bd02d 20198
21d1c967
GD
20199 WXGTK12=
20200 WXGTK127=
20201 WXGTK20=
f79bd02d 20202
21d1c967
GD
20203 if test "$wxUSE_MSW" = 1 ; then
20204 TOOLKIT=MSW
20205 GUIDIST=MSW_DIST
ffef10f6
VS
20206
20207 case "${host}" in
20208 *-*-mingw32* )
20209 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20210 esac
f79bd02d
JS
20211 fi
20212
21d1c967 20213 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
20214 echo "$as_me:$LINENO: checking for GTK+ version" >&5
20215echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
20216
20217 gtk_version_cached=1
e6cc62c6
VS
20218 if test "${wx_cv_lib_gtk+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 20220else
e6cc62c6 20221
21d1c967 20222 gtk_version_cached=0
e6cc62c6
VS
20223 echo "$as_me:$LINENO: result: " >&5
20224echo "${ECHO_T}" >&6
f79bd02d 20225
21d1c967
GD
20226 GTK_MODULES=
20227 if test "$wxUSE_THREADS" = "yes"; then
20228 GTK_MODULES=gthread
20229 fi
f79bd02d 20230
2b5f62a0 20231 wx_cv_lib_gtk=
21d1c967
GD
20232 if test "x$wxUSE_GTK2" = "xyes"; then
20233 # Check whether --enable-gtktest or --disable-gtktest was given.
20234if test "${enable_gtktest+set}" = set; then
20235 enableval="$enable_gtktest"
e6cc62c6 20236
f79bd02d 20237else
21d1c967 20238 enable_gtktest=yes
e6cc62c6 20239fi;
f79bd02d 20240
21d1c967
GD
20241 pkg_config_args=gtk+-2.0
20242 for module in . $GTK_MODULES
20243 do
20244 case "$module" in
e6cc62c6 20245 gthread)
21d1c967
GD
20246 pkg_config_args="$pkg_config_args gthread-2.0"
20247 ;;
20248 esac
20249 done
20250
20251 no_gtk=""
f79bd02d 20252
21d1c967
GD
20253 # Extract the first word of "pkg-config", so it can be a program name with args.
20254set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20255echo "$as_me:$LINENO: checking for $ac_word" >&5
20256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20257if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20259else
e6cc62c6
VS
20260 case $PKG_CONFIG in
20261 [\\/]* | ?:[\\/]*)
21d1c967
GD
20262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20263 ;;
21d1c967 20264 *)
e6cc62c6
VS
20265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20266for as_dir in $PATH
20267do
20268 IFS=$as_save_IFS
20269 test -z "$as_dir" && as_dir=.
20270 for ac_exec_ext in '' $ac_executable_extensions; do
20271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20274 break 2
20275 fi
20276done
20277done
20278
21d1c967
GD
20279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20280 ;;
20281esac
f79bd02d 20282fi
e6cc62c6
VS
20283PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20284
21d1c967 20285if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20286 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20287echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 20288else
e6cc62c6
VS
20289 echo "$as_me:$LINENO: result: no" >&5
20290echo "${ECHO_T}no" >&6
f79bd02d
JS
20291fi
20292
8284b0c5 20293
21d1c967
GD
20294 if test x$PKG_CONFIG != xno ; then
20295 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20296 :
20297 else
20298 echo *** pkg-config too old; version 0.7 or better required.
20299 no_gtk=yes
20300 PKG_CONFIG=no
20301 fi
20302 else
20303 no_gtk=yes
20304 fi
f79bd02d 20305
21d1c967 20306 min_gtk_version=2.0.0
e6cc62c6
VS
20307 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20308echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20309
21d1c967
GD
20310 if test x$PKG_CONFIG != xno ; then
20311 ## don't try to run the test against uninstalled libtool libs
20312 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20313 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20314 enable_gtktest=no
20315 fi
f79bd02d 20316
21d1c967
GD
20317 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20318 :
20319 else
20320 no_gtk=yes
20321 fi
20322 fi
f79bd02d 20323
21d1c967
GD
20324 if test x"$no_gtk" = x ; then
20325 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20326 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20327 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20328 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20329 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20330 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20331 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20332 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20333 if test "x$enable_gtktest" = "xyes" ; then
20334 ac_save_CFLAGS="$CFLAGS"
20335 ac_save_LIBS="$LIBS"
20336 CFLAGS="$CFLAGS $GTK_CFLAGS"
20337 LIBS="$GTK_LIBS $LIBS"
20338 rm -f conf.gtktest
20339 if test "$cross_compiling" = yes; then
20340 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20341else
e6cc62c6 20342 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20343#line $LINENO "configure"
e6cc62c6
VS
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
f79bd02d 20349
21d1c967
GD
20350#include <gtk/gtk.h>
20351#include <stdio.h>
20352#include <stdlib.h>
f79bd02d 20353
e6cc62c6 20354int
21d1c967
GD
20355main ()
20356{
20357 int major, minor, micro;
20358 char *tmp_version;
f79bd02d 20359
21d1c967 20360 system ("touch conf.gtktest");
f79bd02d 20361
21d1c967
GD
20362 /* HP/UX 9 (%@#!) writes to sscanf strings */
20363 tmp_version = g_strdup("$min_gtk_version");
20364 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20365 printf("%s, bad version string\n", "$min_gtk_version");
20366 exit(1);
20367 }
f79bd02d 20368
21d1c967
GD
20369 if ((gtk_major_version != $gtk_config_major_version) ||
20370 (gtk_minor_version != $gtk_config_minor_version) ||
20371 (gtk_micro_version != $gtk_config_micro_version))
20372 {
e6cc62c6 20373 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20374 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20375 gtk_major_version, gtk_minor_version, gtk_micro_version);
20376 printf ("*** was found! If pkg-config was correct, then it is best\n");
20377 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20378 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20379 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20380 printf("*** required on your system.\n");
20381 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20382 printf("*** to point to the correct configuration files\n");
e6cc62c6 20383 }
21d1c967
GD
20384 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20385 (gtk_minor_version != GTK_MINOR_VERSION) ||
20386 (gtk_micro_version != GTK_MICRO_VERSION))
20387 {
20388 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20389 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20390 printf("*** library (version %d.%d.%d)\n",
20391 gtk_major_version, gtk_minor_version, gtk_micro_version);
20392 }
20393 else
20394 {
20395 if ((gtk_major_version > major) ||
20396 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20397 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20398 {
20399 return 0;
20400 }
20401 else
20402 {
20403 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20404 gtk_major_version, gtk_minor_version, gtk_micro_version);
20405 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20406 major, minor, micro);
20407 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20408 printf("***\n");
20409 printf("*** If you have already installed a sufficiently new version, this error\n");
20410 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20411 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20412 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20413 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20414 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20415 printf("*** so that the correct libraries are found at run-time))\n");
20416 }
20417 }
20418 return 1;
20419}
f79bd02d 20420
e6cc62c6
VS
20421_ACEOF
20422rm -f conftest$ac_exeext
20423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20424 (eval $ac_link) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
21d1c967 20433 :
f79bd02d 20434else
e6cc62c6
VS
20435 echo "$as_me: program exited with status $ac_status" >&5
20436echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439( exit $ac_status )
20440no_gtk=yes
f79bd02d 20441fi
789c5f4a 20442rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20443fi
21d1c967
GD
20444 CFLAGS="$ac_save_CFLAGS"
20445 LIBS="$ac_save_LIBS"
20446 fi
20447 fi
20448 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20449 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20450echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20451 wx_cv_lib_gtk=2.0
21d1c967 20452 else
e6cc62c6
VS
20453 echo "$as_me:$LINENO: result: no" >&5
20454echo "${ECHO_T}no" >&6
21d1c967
GD
20455 if test "$PKG_CONFIG" = "no" ; then
20456 echo "*** A new enough version of pkg-config was not found."
20457 echo "*** See http://pkgconfig.sourceforge.net"
20458 else
20459 if test -f conf.gtktest ; then
20460 :
20461 else
20462 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20463 ac_save_CFLAGS="$CFLAGS"
20464 ac_save_LIBS="$LIBS"
21d1c967
GD
20465 CFLAGS="$CFLAGS $GTK_CFLAGS"
20466 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 20467 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20468#line $LINENO "configure"
e6cc62c6
VS
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
21d1c967
GD
20474
20475#include <gtk/gtk.h>
20476#include <stdio.h>
f79bd02d 20477
e6cc62c6
VS
20478int
20479main ()
20480{
20481 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext conftest$ac_exeext
20487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20488 (eval $ac_link) 2>&5
e6cc62c6
VS
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } &&
789c5f4a 20492 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
21d1c967
GD
20498 echo "*** The test program compiled, but did not run. This usually means"
20499 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20500 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20501 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20502 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20503 echo "*** is required on your system"
20504 echo "***"
20505 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20506 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20507else
e6cc62c6
VS
20508 echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20512 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20513fi
789c5f4a 20514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20515 CFLAGS="$ac_save_CFLAGS"
20516 LIBS="$ac_save_LIBS"
20517 fi
20518 fi
20519 GTK_CFLAGS=""
20520 GTK_LIBS=""
20521 :
20522 fi
e6cc62c6
VS
20523
20524
21d1c967 20525 rm -f conf.gtktest
f79bd02d 20526
2b5f62a0 20527 else
e6cc62c6
VS
20528
20529# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20530if test "${with_gtk_prefix+set}" = set; then
20531 withval="$with_gtk_prefix"
20532 gtk_config_prefix="$withval"
20533else
20534 gtk_config_prefix=""
e6cc62c6 20535fi;
f79bd02d 20536
21d1c967
GD
20537# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20538if test "${with_gtk_exec_prefix+set}" = set; then
20539 withval="$with_gtk_exec_prefix"
20540 gtk_config_exec_prefix="$withval"
20541else
20542 gtk_config_exec_prefix=""
e6cc62c6 20543fi;
21d1c967
GD
20544# Check whether --enable-gtktest or --disable-gtktest was given.
20545if test "${enable_gtktest+set}" = set; then
20546 enableval="$enable_gtktest"
e6cc62c6 20547
21d1c967
GD
20548else
20549 enable_gtktest=yes
e6cc62c6 20550fi;
21d1c967
GD
20551
20552 for module in . $GTK_MODULES
20553 do
20554 case "$module" in
e6cc62c6 20555 gthread)
21d1c967
GD
20556 gtk_config_args="$gtk_config_args gthread"
20557 ;;
20558 esac
20559 done
20560
20561 if test x$gtk_config_exec_prefix != x ; then
20562 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20563 if test x${GTK_CONFIG+set} != xset ; then
20564 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20565 fi
20566 fi
20567 if test x$gtk_config_prefix != x ; then
20568 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20569 if test x${GTK_CONFIG+set} != xset ; then
20570 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20571 fi
20572 fi
20573
20574 # Extract the first word of "gtk-config", so it can be a program name with args.
20575set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20576echo "$as_me:$LINENO: checking for $ac_word" >&5
20577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20578if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20580else
e6cc62c6
VS
20581 case $GTK_CONFIG in
20582 [\\/]* | ?:[\\/]*)
21d1c967
GD
20583 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20584 ;;
21d1c967 20585 *)
e6cc62c6
VS
20586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20587for as_dir in $PATH
20588do
20589 IFS=$as_save_IFS
20590 test -z "$as_dir" && as_dir=.
20591 for ac_exec_ext in '' $ac_executable_extensions; do
20592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20593 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20595 break 2
20596 fi
20597done
20598done
20599
21d1c967
GD
20600 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20601 ;;
20602esac
20603fi
e6cc62c6
VS
20604GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20605
21d1c967 20606if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20607 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20608echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20609else
e6cc62c6
VS
20610 echo "$as_me:$LINENO: result: no" >&5
20611echo "${ECHO_T}no" >&6
21d1c967
GD
20612fi
20613
20614 min_gtk_version=1.2.7
e6cc62c6
VS
20615 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20616echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20617 no_gtk=""
20618 if test "$GTK_CONFIG" = "no" ; then
20619 no_gtk=yes
20620 else
20621 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20622 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20623 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20624 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20625 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20626 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20627 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20628 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20629 if test "x$enable_gtktest" = "xyes" ; then
20630 ac_save_CFLAGS="$CFLAGS"
20631 ac_save_LIBS="$LIBS"
20632 CFLAGS="$CFLAGS $GTK_CFLAGS"
20633 LIBS="$GTK_LIBS $LIBS"
20634 rm -f conf.gtktest
20635 if test "$cross_compiling" = yes; then
20636 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20637else
e6cc62c6 20638 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20639#line $LINENO "configure"
e6cc62c6
VS
20640/* confdefs.h. */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h. */
f79bd02d 20645
21d1c967
GD
20646#include <gtk/gtk.h>
20647#include <stdio.h>
20648#include <stdlib.h>
f79bd02d 20649
e6cc62c6 20650int
21d1c967
GD
20651main ()
20652{
20653 int major, minor, micro;
20654 char *tmp_version;
20655
20656 system ("touch conf.gtktest");
20657
20658 /* HP/UX 9 (%@#!) writes to sscanf strings */
20659 tmp_version = g_strdup("$min_gtk_version");
20660 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20661 printf("%s, bad version string\n", "$min_gtk_version");
20662 exit(1);
20663 }
90dd450c 20664
21d1c967
GD
20665 if ((gtk_major_version != $gtk_config_major_version) ||
20666 (gtk_minor_version != $gtk_config_minor_version) ||
20667 (gtk_micro_version != $gtk_config_micro_version))
20668 {
e6cc62c6 20669 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20670 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20671 gtk_major_version, gtk_minor_version, gtk_micro_version);
20672 printf ("*** was found! If gtk-config was correct, then it is best\n");
20673 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20674 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20675 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20676 printf("*** required on your system.\n");
20677 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20678 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20679 printf("*** before re-running configure\n");
e6cc62c6 20680 }
21d1c967
GD
20681#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20682 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20683 (gtk_minor_version != GTK_MINOR_VERSION) ||
20684 (gtk_micro_version != GTK_MICRO_VERSION))
20685 {
20686 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20687 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20688 printf("*** library (version %d.%d.%d)\n",
20689 gtk_major_version, gtk_minor_version, gtk_micro_version);
20690 }
20691#endif /* defined (GTK_MAJOR_VERSION) ... */
20692 else
20693 {
20694 if ((gtk_major_version > major) ||
20695 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20696 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20697 {
20698 return 0;
20699 }
20700 else
20701 {
20702 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20703 gtk_major_version, gtk_minor_version, gtk_micro_version);
20704 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20705 major, minor, micro);
20706 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20707 printf("***\n");
20708 printf("*** If you have already installed a sufficiently new version, this error\n");
20709 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20710 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20711 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20712 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20713 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20714 printf("*** so that the correct libraries are found at run-time))\n");
20715 }
20716 }
20717 return 1;
20718}
20719
e6cc62c6
VS
20720_ACEOF
20721rm -f conftest$ac_exeext
20722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20723 (eval $ac_link) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
21d1c967
GD
20732 :
20733else
e6cc62c6
VS
20734 echo "$as_me: program exited with status $ac_status" >&5
20735echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
20738( exit $ac_status )
20739no_gtk=yes
21d1c967 20740fi
789c5f4a 20741rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20742fi
21d1c967
GD
20743 CFLAGS="$ac_save_CFLAGS"
20744 LIBS="$ac_save_LIBS"
20745 fi
20746 fi
20747 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20748 echo "$as_me:$LINENO: result: yes" >&5
20749echo "${ECHO_T}yes" >&6
20750 wx_cv_lib_gtk=1.2.7
21d1c967 20751 else
e6cc62c6
VS
20752 echo "$as_me:$LINENO: result: no" >&5
20753echo "${ECHO_T}no" >&6
21d1c967
GD
20754 if test "$GTK_CONFIG" = "no" ; then
20755 echo "*** The gtk-config script installed by GTK could not be found"
20756 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20757 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20758 echo "*** full path to gtk-config."
20759 else
20760 if test -f conf.gtktest ; then
20761 :
20762 else
20763 echo "*** Could not run GTK test program, checking why..."
20764 CFLAGS="$CFLAGS $GTK_CFLAGS"
20765 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 20766 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20767#line $LINENO "configure"
e6cc62c6
VS
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
21d1c967
GD
20773
20774#include <gtk/gtk.h>
20775#include <stdio.h>
20776
e6cc62c6
VS
20777int
20778main ()
20779{
20780 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20781 ;
20782 return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext conftest$ac_exeext
20786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20787 (eval $ac_link) 2>&5
e6cc62c6
VS
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
789c5f4a 20791 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
21d1c967
GD
20797 echo "*** The test program compiled, but did not run. This usually means"
20798 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20799 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20800 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20801 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20802 echo "*** is required on your system"
20803 echo "***"
20804 echo "*** If you have an old version installed, it is best to remove it, although"
20805 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20806 echo "***"
20807 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20808 echo "*** came with the system with the command"
20809 echo "***"
e6cc62c6 20810 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20811else
e6cc62c6
VS
20812 echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20816 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20817 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20818 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20819fi
789c5f4a 20820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20821 CFLAGS="$ac_save_CFLAGS"
20822 LIBS="$ac_save_LIBS"
20823 fi
20824 fi
20825 GTK_CFLAGS=""
20826 GTK_LIBS=""
20827 :
20828 fi
e6cc62c6
VS
20829
20830
21d1c967
GD
20831 rm -f conf.gtktest
20832
21d1c967 20833
2b5f62a0 20834 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20835
20836# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20837if test "${with_gtk_prefix+set}" = set; then
20838 withval="$with_gtk_prefix"
20839 gtk_config_prefix="$withval"
20840else
20841 gtk_config_prefix=""
e6cc62c6 20842fi;
f79bd02d 20843
21d1c967
GD
20844# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20845if test "${with_gtk_exec_prefix+set}" = set; then
20846 withval="$with_gtk_exec_prefix"
20847 gtk_config_exec_prefix="$withval"
20848else
20849 gtk_config_exec_prefix=""
e6cc62c6 20850fi;
21d1c967
GD
20851# Check whether --enable-gtktest or --disable-gtktest was given.
20852if test "${enable_gtktest+set}" = set; then
20853 enableval="$enable_gtktest"
e6cc62c6 20854
90dd450c 20855else
21d1c967 20856 enable_gtktest=yes
e6cc62c6 20857fi;
21d1c967
GD
20858
20859 for module in . $GTK_MODULES
20860 do
20861 case "$module" in
e6cc62c6 20862 gthread)
21d1c967
GD
20863 gtk_config_args="$gtk_config_args gthread"
20864 ;;
20865 esac
20866 done
20867
20868 if test x$gtk_config_exec_prefix != x ; then
20869 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20870 if test x${GTK_CONFIG+set} != xset ; then
20871 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20872 fi
20873 fi
20874 if test x$gtk_config_prefix != x ; then
20875 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20876 if test x${GTK_CONFIG+set} != xset ; then
20877 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20878 fi
20879 fi
20880
20881 # Extract the first word of "gtk-config", so it can be a program name with args.
20882set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20883echo "$as_me:$LINENO: checking for $ac_word" >&5
20884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20885if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20887else
e6cc62c6
VS
20888 case $GTK_CONFIG in
20889 [\\/]* | ?:[\\/]*)
21d1c967
GD
20890 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20891 ;;
21d1c967 20892 *)
e6cc62c6
VS
20893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20894for as_dir in $PATH
20895do
20896 IFS=$as_save_IFS
20897 test -z "$as_dir" && as_dir=.
20898 for ac_exec_ext in '' $ac_executable_extensions; do
20899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20900 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20902 break 2
20903 fi
20904done
20905done
20906
21d1c967
GD
20907 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20908 ;;
20909esac
20910fi
e6cc62c6
VS
20911GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20912
21d1c967 20913if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20914 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20915echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20916else
e6cc62c6
VS
20917 echo "$as_me:$LINENO: result: no" >&5
20918echo "${ECHO_T}no" >&6
21d1c967
GD
20919fi
20920
20921 min_gtk_version=1.2.3
e6cc62c6
VS
20922 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20923echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20924 no_gtk=""
20925 if test "$GTK_CONFIG" = "no" ; then
20926 no_gtk=yes
20927 else
20928 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20929 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20930 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20931 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20932 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20933 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20934 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20935 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20936 if test "x$enable_gtktest" = "xyes" ; then
20937 ac_save_CFLAGS="$CFLAGS"
20938 ac_save_LIBS="$LIBS"
20939 CFLAGS="$CFLAGS $GTK_CFLAGS"
20940 LIBS="$GTK_LIBS $LIBS"
20941 rm -f conf.gtktest
20942 if test "$cross_compiling" = yes; then
20943 echo $ac_n "cross compiling; assumed OK... $ac_c"
20944else
e6cc62c6 20945 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20946#line $LINENO "configure"
e6cc62c6
VS
20947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
21d1c967
GD
20952
20953#include <gtk/gtk.h>
20954#include <stdio.h>
20955#include <stdlib.h>
20956
e6cc62c6 20957int
21d1c967
GD
20958main ()
20959{
20960 int major, minor, micro;
20961 char *tmp_version;
20962
20963 system ("touch conf.gtktest");
20964
20965 /* HP/UX 9 (%@#!) writes to sscanf strings */
20966 tmp_version = g_strdup("$min_gtk_version");
20967 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20968 printf("%s, bad version string\n", "$min_gtk_version");
20969 exit(1);
20970 }
20971
20972 if ((gtk_major_version != $gtk_config_major_version) ||
20973 (gtk_minor_version != $gtk_config_minor_version) ||
20974 (gtk_micro_version != $gtk_config_micro_version))
20975 {
e6cc62c6 20976 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20977 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20978 gtk_major_version, gtk_minor_version, gtk_micro_version);
20979 printf ("*** was found! If gtk-config was correct, then it is best\n");
20980 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20981 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20982 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20983 printf("*** required on your system.\n");
20984 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20985 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20986 printf("*** before re-running configure\n");
e6cc62c6 20987 }
21d1c967
GD
20988#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20989 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20990 (gtk_minor_version != GTK_MINOR_VERSION) ||
20991 (gtk_micro_version != GTK_MICRO_VERSION))
20992 {
20993 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20994 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20995 printf("*** library (version %d.%d.%d)\n",
20996 gtk_major_version, gtk_minor_version, gtk_micro_version);
20997 }
20998#endif /* defined (GTK_MAJOR_VERSION) ... */
20999 else
21000 {
21001 if ((gtk_major_version > major) ||
21002 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21003 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21004 {
21005 return 0;
21006 }
21007 else
21008 {
21009 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21010 gtk_major_version, gtk_minor_version, gtk_micro_version);
21011 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21012 major, minor, micro);
21013 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21014 printf("***\n");
21015 printf("*** If you have already installed a sufficiently new version, this error\n");
21016 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21017 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21018 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21019 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21020 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21021 printf("*** so that the correct libraries are found at run-time))\n");
21022 }
21023 }
21024 return 1;
21025}
21026
e6cc62c6
VS
21027_ACEOF
21028rm -f conftest$ac_exeext
21029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21030 (eval $ac_link) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21d1c967
GD
21039 :
21040else
e6cc62c6
VS
21041 echo "$as_me: program exited with status $ac_status" >&5
21042echo "$as_me: failed program was:" >&5
21043sed 's/^/| /' conftest.$ac_ext >&5
21044
21045( exit $ac_status )
21046no_gtk=yes
21d1c967 21047fi
789c5f4a 21048rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21049fi
21d1c967
GD
21050 CFLAGS="$ac_save_CFLAGS"
21051 LIBS="$ac_save_LIBS"
21052 fi
21053 fi
21054 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21055 echo "$as_me:$LINENO: result: yes" >&5
21056echo "${ECHO_T}yes" >&6
21057 wx_cv_lib_gtk=1.2.3
21d1c967 21058 else
e6cc62c6
VS
21059 echo "$as_me:$LINENO: result: no" >&5
21060echo "${ECHO_T}no" >&6
21d1c967
GD
21061 if test "$GTK_CONFIG" = "no" ; then
21062 echo "*** The gtk-config script installed by GTK could not be found"
21063 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21064 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21065 echo "*** full path to gtk-config."
21066 else
21067 if test -f conf.gtktest ; then
21068 :
21069 else
21070 echo "*** Could not run GTK test program, checking why..."
21071 CFLAGS="$CFLAGS $GTK_CFLAGS"
21072 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21073 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21074#line $LINENO "configure"
e6cc62c6
VS
21075/* confdefs.h. */
21076_ACEOF
21077cat confdefs.h >>conftest.$ac_ext
21078cat >>conftest.$ac_ext <<_ACEOF
21079/* end confdefs.h. */
21d1c967
GD
21080
21081#include <gtk/gtk.h>
21082#include <stdio.h>
f79bd02d 21083
e6cc62c6
VS
21084int
21085main ()
21086{
21087 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21088 ;
21089 return 0;
21090}
21091_ACEOF
21092rm -f conftest.$ac_objext conftest$ac_exeext
21093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21094 (eval $ac_link) 2>&5
e6cc62c6
VS
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
789c5f4a 21098 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
21d1c967
GD
21104 echo "*** The test program compiled, but did not run. This usually means"
21105 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21106 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21107 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21108 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21109 echo "*** is required on your system"
21110 echo "***"
21111 echo "*** If you have an old version installed, it is best to remove it, although"
21112 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21113 echo "***"
21114 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21115 echo "*** came with the system with the command"
21116 echo "***"
e6cc62c6 21117 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21118else
e6cc62c6
VS
21119 echo "$as_me: failed program was:" >&5
21120sed 's/^/| /' conftest.$ac_ext >&5
21121
21122 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21123 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21124 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21125 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21126fi
789c5f4a 21127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21128 CFLAGS="$ac_save_CFLAGS"
21129 LIBS="$ac_save_LIBS"
21130 fi
21131 fi
21132 GTK_CFLAGS=""
21133 GTK_LIBS=""
21134 :
21135 fi
e6cc62c6
VS
21136
21137
21d1c967 21138 rm -f conf.gtktest
f79bd02d 21139
2b5f62a0 21140 fi
21d1c967
GD
21141 fi
21142
21143 if test -z "$wx_cv_lib_gtk"; then
21144 wx_cv_lib_gtk=none
21145 else
21146 wx_cv_cflags_gtk=$GTK_CFLAGS
21147 wx_cv_libs_gtk=$GTK_LIBS
21148 fi
e6cc62c6
VS
21149
21150
5c6fa7d2 21151fi
52127426 21152
8284b0c5 21153
21d1c967 21154 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
21155 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21156echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
21157 fi
21158
21159 case "$wx_cv_lib_gtk" in
21160 2.0) WXGTK20=1
2b5f62a0 21161 TOOLKIT_VERSION=2
21d1c967
GD
21162 ;;
21163 1.2.7) WXGTK127=1
21164 WXGTK12=1
21165 ;;
21166 1.2.3) WXGTK12=1
21167 ;;
e6cc62c6
VS
21168 *) { { echo "$as_me:$LINENO: error:
21169Please check that gtk-config is in path, the directory
21170where GTK+ libraries are installed (returned by
21171'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21172equivalent variable and GTK+ is version 1.2.3 or above.
21173 " >&5
21174echo "$as_me: error:
247f5006
VZ
21175Please check that gtk-config is in path, the directory
21176where GTK+ libraries are installed (returned by
21177'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21178equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
21179 " >&2;}
21180 { (exit 1); exit 1; }; }
21d1c967
GD
21181 ;;
21182 esac
21183
b13cd66e
VZ
21184 if test "$WXGTK20" = 1; then
21185 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 21186
f09359cf
VS
21187 succeeded=no
21188
21189 if test -z "$PKG_CONFIG"; then
21190 # Extract the first word of "pkg-config", so it can be a program name with args.
21191set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21192echo "$as_me:$LINENO: checking for $ac_word" >&5
21193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21194if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 21196else
e6cc62c6
VS
21197 case $PKG_CONFIG in
21198 [\\/]* | ?:[\\/]*)
f09359cf
VS
21199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21200 ;;
f09359cf 21201 *)
e6cc62c6
VS
21202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21203for as_dir in $PATH
21204do
21205 IFS=$as_save_IFS
21206 test -z "$as_dir" && as_dir=.
21207 for ac_exec_ext in '' $ac_executable_extensions; do
21208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21211 break 2
21212 fi
21213done
21214done
21215
f09359cf
VS
21216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21217 ;;
21218esac
21219fi
e6cc62c6
VS
21220PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21221
f09359cf 21222if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21223 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21224echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 21225else
e6cc62c6
VS
21226 echo "$as_me:$LINENO: result: no" >&5
21227echo "${ECHO_T}no" >&6
f09359cf
VS
21228fi
21229
21230 fi
21231
21232 if test "$PKG_CONFIG" = "no" ; then
21233 echo "*** The pkg-config script could not be found. Make sure it is"
21234 echo "*** in your path, or set the PKG_CONFIG environment variable"
21235 echo "*** to the full path to pkg-config."
21236 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21237 else
21238 PKG_CONFIG_MIN_VERSION=0.9.0
21239 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
21240 echo "$as_me:$LINENO: checking for pangoft2" >&5
21241echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
21242
21243 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
21244 echo "$as_me:$LINENO: result: yes" >&5
21245echo "${ECHO_T}yes" >&6
f09359cf
VS
21246 succeeded=yes
21247
e6cc62c6
VS
21248 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21249echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 21250 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
21251 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21252echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 21253
e6cc62c6
VS
21254 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21255echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 21256 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
21257 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21258echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
21259 else
21260 PANGOFT2_CFLAGS=""
21261 PANGOFT2_LIBS=""
e6cc62c6 21262 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
21263 ## do set a variable so people can do so.
21264 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 21265
f09359cf
VS
21266 fi
21267
e6cc62c6
VS
21268
21269
f09359cf
VS
21270 else
21271 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21272 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21273 fi
21274 fi
21275
21276 if test $succeeded = yes; then
e6cc62c6 21277
b13cd66e 21278 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 21279 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 21280
f09359cf 21281 else
e6cc62c6
VS
21282
21283 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21284echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 21285 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
21286
21287
f09359cf
VS
21288 fi
21289
b13cd66e 21290 fi
2b5f62a0
VZ
21291 else
21292 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
21293 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21294echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21295 wxUSE_UNICODE=no
21296 fi
21297 fi
21298
21299 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21300
21301for ac_func in poll
2b5f62a0 21302do
e6cc62c6
VS
21303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21304echo "$as_me:$LINENO: checking for $ac_func" >&5
21305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21306if eval "test \"\${$as_ac_var+set}\" = set"; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21308else
21309 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21310#line $LINENO "configure"
e6cc62c6
VS
21311/* confdefs.h. */
21312_ACEOF
21313cat confdefs.h >>conftest.$ac_ext
21314cat >>conftest.$ac_ext <<_ACEOF
21315/* end confdefs.h. */
2b5f62a0 21316/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21317 which can conflict with char $ac_func (); below.
21318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319 <limits.h> exists even on freestanding compilers. */
21320#ifdef __STDC__
21321# include <limits.h>
21322#else
21323# include <assert.h>
21324#endif
2b5f62a0 21325/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21326#ifdef __cplusplus
21327extern "C"
21328{
21329#endif
2b5f62a0 21330/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21331 builtin and then its argument prototype would still apply. */
21332char $ac_func ();
2b5f62a0
VZ
21333/* The GNU C library defines this for functions which it implements
21334 to always fail with ENOSYS. Some functions are actually named
21335 something starting with __ and the normal name is an alias. */
21336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21337choke me
21338#else
e6cc62c6
VS
21339char (*f) () = $ac_func;
21340#endif
21341#ifdef __cplusplus
21342}
2b5f62a0
VZ
21343#endif
21344
e6cc62c6
VS
21345int
21346main ()
21347{
21348return f != $ac_func;
21349 ;
21350 return 0;
21351}
21352_ACEOF
21353rm -f conftest.$ac_objext conftest$ac_exeext
21354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21355 (eval $ac_link) 2>&5
e6cc62c6
VS
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } &&
789c5f4a 21359 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 eval "$as_ac_var=yes"
21366else
21367 echo "$as_me: failed program was:" >&5
21368sed 's/^/| /' conftest.$ac_ext >&5
21369
21370eval "$as_ac_var=no"
21371fi
789c5f4a 21372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21373fi
21374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21375echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21376if test `eval echo '${'$as_ac_var'}'` = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21379_ACEOF
2b5f62a0 21380
2b5f62a0
VZ
21381fi
21382done
21383
f09359cf
VS
21384 fi
21385
21d1c967 21386 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21387 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21388
21389 AFMINSTALL=afminstall
21390 TOOLKIT=GTK
21391 GUIDIST=GTK_DIST
21392
e6cc62c6
VS
21393 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21394echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21395if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21397else
e6cc62c6 21398 ac_check_lib_save_LIBS=$LIBS
21d1c967 21399LIBS="-lgdk $LIBS"
e6cc62c6 21400cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21401#line $LINENO "configure"
e6cc62c6
VS
21402/* confdefs.h. */
21403_ACEOF
21404cat confdefs.h >>conftest.$ac_ext
21405cat >>conftest.$ac_ext <<_ACEOF
21406/* end confdefs.h. */
21407
5c6fa7d2 21408/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21409#ifdef __cplusplus
21410extern "C"
21411#endif
5c6fa7d2 21412/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21413 builtin and then its argument prototype would still apply. */
21414char gdk_im_open ();
21415int
21416main ()
21417{
21418gdk_im_open ();
21419 ;
21420 return 0;
21421}
21422_ACEOF
21423rm -f conftest.$ac_objext conftest$ac_exeext
21424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21425 (eval $ac_link) 2>&5
e6cc62c6
VS
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
789c5f4a 21429 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 ac_cv_lib_gdk_gdk_im_open=yes
21436else
21437 echo "$as_me: failed program was:" >&5
21438sed 's/^/| /' conftest.$ac_ext >&5
21439
21440ac_cv_lib_gdk_gdk_im_open=no
21441fi
789c5f4a 21442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21443LIBS=$ac_check_lib_save_LIBS
21444fi
21445echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21446echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21447if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21448 cat >>confdefs.h <<\_ACEOF
21d1c967 21449#define HAVE_XIM 1
e6cc62c6 21450_ACEOF
21d1c967 21451
90dd450c 21452fi
1e6feb95 21453
21d1c967 21454 fi
1e6feb95 21455
21d1c967 21456 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21457 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21458echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21459 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21460 echo "$as_me:$LINENO: result: not found" >&5
21461echo "${ECHO_T}not found" >&6
21462 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21463echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21464 { (exit 1); exit 1; }; }
21d1c967 21465 else
e6cc62c6
VS
21466 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21467echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21468 fi
21469
e6cc62c6
VS
21470 echo "$as_me:$LINENO: checking for libmgl location" >&5
21471echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21472 case "${host}" in
21d1c967 21473 *-*-linux* )
e46d2a18
VS
21474 if test "x$wxUSE_SHARED" = xyes ; then
21475 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21476 else
e46d2a18 21477 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21478 fi
21d1c967
GD
21479 ;;
21480 *-pc-msdosdjgpp )
63a76696 21481 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21482 ;;
21483 *)
e6cc62c6
VS
21484 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21485echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21486 { (exit 1); exit 1; }; }
21d1c967 21487 esac
1e6feb95 21488
21d1c967 21489 mgl_lib_type=""
63a76696
VS
21490 mgl_os=""
21491
21492 for mgl_os_i in $mgl_os_candidates ; do
21493 if test "x$mgl_os" = x ; then
21494 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21495 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21496 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21497 mgl_lib_type=debug
21498 mgl_os=$mgl_os_i
21499 fi
21500 fi
21501 if test "x$mgl_lib_type" = x ; then
21502 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21503 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21504 mgl_lib_type=release
21505 mgl_os=$mgl_os_i
21506 fi
21507 fi
21d1c967 21508 fi
63a76696 21509 done
2224580a 21510
63a76696 21511 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21512 echo "$as_me:$LINENO: result: not found" >&5
21513echo "${ECHO_T}not found" >&6
21514 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21515echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21516 { (exit 1); exit 1; }; }
63a76696 21517 fi
e6cc62c6
VS
21518 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21519echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21520
1d1b75ac
VZ
21521 wxUSE_UNIVERSAL="yes"
21522
21d1c967
GD
21523 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21524 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21525
90dd450c 21526 AFMINSTALL=afminstall
21d1c967
GD
21527 TOOLKIT=MGL
21528 GUIDIST=MGL_DIST
21529 fi
dad6c0ea 21530
21d1c967 21531 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21532 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21533echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21534 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21535 echo "$as_me:$LINENO: result: not found" >&5
21536echo "${ECHO_T}not found" >&6
21537 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21538echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21539 { (exit 1); exit 1; }; }
21d1c967 21540 else
e6cc62c6
VS
21541 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21542echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21543 fi
f6bcfd97 21544
21d1c967 21545 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21546 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21547echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21548 else
e6cc62c6
VS
21549 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21550echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21551 { (exit 1); exit 1; }; }
90dd450c 21552 fi
0b2effe9 21553
21d1c967
GD
21554 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21555 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21556
1d1b75ac
VZ
21557 wxUSE_UNIVERSAL="yes"
21558
21d1c967
GD
21559 AFMINSTALL=afminstall
21560 TOOLKIT=MICROWIN
21561 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21562
21563 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21564 fi
f6bcfd97 21565
21d1c967 21566 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21567 echo "$as_me:$LINENO: checking for X" >&5
21568echo $ECHO_N "checking for X... $ECHO_C" >&6
21569
d8356fa3 21570
21d1c967
GD
21571# Check whether --with-x or --without-x was given.
21572if test "${with_x+set}" = set; then
21573 withval="$with_x"
2224580a 21574
e6cc62c6 21575fi;
21d1c967
GD
21576# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21577if test "x$with_x" = xno; then
21578 # The user explicitly disabled X.
21579 have_x=disabled
21580else
21581 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21582 # Both variables are already set.
21583 have_x=yes
21584 else
e6cc62c6
VS
21585 if test "${ac_cv_have_x+set}" = set; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21587else
21588 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21589ac_x_includes=no ac_x_libraries=no
21590rm -fr conftest.dir
21591if mkdir conftest.dir; then
21592 cd conftest.dir
21d1c967 21593 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21594 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21595acfindx:
21596 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21597_ACEOF
21d1c967
GD
21598 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21599 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21600 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21601 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21602 for ac_extension in a so sl; do
21603 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
789c5f4a
VZ
21604 test -f $ac_im_libdir/libX11.$ac_extension; then
21605 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
21606 fi
21607 done
21608 # Screen out bogus values from the imake configuration. They are
21609 # bogus both because they are the default anyway, and because
21610 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21611 case $ac_im_incroot in
21d1c967 21612 /usr/include) ;;
e6cc62c6 21613 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21614 esac
e6cc62c6 21615 case $ac_im_usrlibdir in
21d1c967 21616 /usr/lib | /lib) ;;
e6cc62c6 21617 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21618 esac
21619 fi
21620 cd ..
e6cc62c6 21621 rm -fr conftest.dir
21d1c967 21622fi
10f2d63a 21623
e6cc62c6
VS
21624# Standard set of common directories for X headers.
21625# Check X11 before X11Rn because it is often a symlink to the current release.
21626ac_x_header_dirs='
21627/usr/X11/include
21628/usr/X11R6/include
21629/usr/X11R5/include
21630/usr/X11R4/include
21631
21632/usr/include/X11
21633/usr/include/X11R6
21634/usr/include/X11R5
21635/usr/include/X11R4
21636
21637/usr/local/X11/include
21638/usr/local/X11R6/include
21639/usr/local/X11R5/include
21640/usr/local/X11R4/include
21641
21642/usr/local/include/X11
21643/usr/local/include/X11R6
21644/usr/local/include/X11R5
21645/usr/local/include/X11R4
21646
21647/usr/X386/include
21648/usr/x386/include
21649/usr/XFree86/include/X11
21650
21651/usr/include
21652/usr/local/include
21653/usr/unsupported/include
21654/usr/athena/include
21655/usr/local/x11r5/include
21656/usr/lpp/Xamples/include
21657
21658/usr/openwin/include
21659/usr/openwin/share/include'
21660
21661if test "$ac_x_includes" = no; then
21662 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21663 # First, try using that file with no special directory specified.
e6cc62c6 21664 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21665#line $LINENO "configure"
e6cc62c6
VS
21666/* confdefs.h. */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h. */
21671#include <X11/Intrinsic.h>
21672_ACEOF
21673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } >/dev/null; then
21681 if test -s conftest.err; then
21682 ac_cpp_err=$ac_c_preproc_warn_flag
21683 else
21684 ac_cpp_err=
21685 fi
21686else
21687 ac_cpp_err=yes
21688fi
21689if test -z "$ac_cpp_err"; then
21d1c967
GD
21690 # We can compile using X headers with no special include directory.
21691ac_x_includes=
90dd450c 21692else
e6cc62c6
VS
21693 echo "$as_me: failed program was:" >&5
21694sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 for ac_dir in $ac_x_header_dirs; do
21697 if test -r "$ac_dir/X11/Intrinsic.h"; then
21698 ac_x_includes=$ac_dir
21699 break
21700 fi
21701done
3a922bb4 21702fi
e6cc62c6
VS
21703rm -f conftest.err conftest.$ac_ext
21704fi # $ac_x_includes = no
10f2d63a 21705
e6cc62c6 21706if test "$ac_x_libraries" = no; then
21d1c967 21707 # Check for the libraries.
21d1c967
GD
21708 # See if we find them without any special options.
21709 # Don't add to $LIBS permanently.
e6cc62c6
VS
21710 ac_save_LIBS=$LIBS
21711 LIBS="-lXt $LIBS"
21712 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21713#line $LINENO "configure"
e6cc62c6
VS
21714/* confdefs.h. */
21715_ACEOF
21716cat confdefs.h >>conftest.$ac_ext
21717cat >>conftest.$ac_ext <<_ACEOF
21718/* end confdefs.h. */
21719#include <X11/Intrinsic.h>
21720int
21721main ()
21722{
21723XtMalloc (0)
21724 ;
21725 return 0;
21726}
21727_ACEOF
21728rm -f conftest.$ac_objext conftest$ac_exeext
21729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21730 (eval $ac_link) 2>&5
e6cc62c6
VS
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } &&
789c5f4a 21734 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 LIBS=$ac_save_LIBS
21d1c967
GD
21741# We can link X programs with no special library path.
21742ac_x_libraries=
3a922bb4 21743else
e6cc62c6
VS
21744 echo "$as_me: failed program was:" >&5
21745sed 's/^/| /' conftest.$ac_ext >&5
21746
21747LIBS=$ac_save_LIBS
21748for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21749do
e6cc62c6 21750 # Don't even attempt the hair of trying to link an X program!
21d1c967 21751 for ac_extension in a so sl; do
e6cc62c6 21752 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21753 ac_x_libraries=$ac_dir
21754 break 2
21755 fi
21756 done
21757done
3a922bb4 21758fi
789c5f4a 21759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 21760fi # $ac_x_libraries = no
90dd450c 21761
e6cc62c6 21762if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21763 # Didn't find X anywhere. Cache the known absence of X.
21764 ac_cv_have_x="have_x=no"
21765else
21766 # Record where we found X for the cache.
21767 ac_cv_have_x="have_x=yes \
789c5f4a 21768 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21769fi
21d1c967 21770fi
e6cc62c6 21771
21d1c967
GD
21772 fi
21773 eval "$ac_cv_have_x"
21774fi # $with_x != no
90dd450c 21775
21d1c967 21776if test "$have_x" != yes; then
e6cc62c6
VS
21777 echo "$as_me:$LINENO: result: $have_x" >&5
21778echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21779 no_x=yes
21780else
21781 # If each of the values was on the command line, it overrides each guess.
21782 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21783 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21784 # Update the cache value to reflect the command line values.
21785 ac_cv_have_x="have_x=yes \
21786 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21787 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21788echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21789fi
90dd450c 21790
21d1c967 21791if test "$no_x" = yes; then
90dd450c 21792 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21793
21794cat >>confdefs.h <<\_ACEOF
90dd450c 21795#define X_DISPLAY_MISSING 1
e6cc62c6 21796_ACEOF
90dd450c
VZ
21797
21798 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21799else
21800 if test -n "$x_includes"; then
21801 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21802 fi
3a922bb4 21803
90dd450c
VZ
21804 # It would also be nice to do this for all -L options, not just this one.
21805 if test -n "$x_libraries"; then
21806 X_LIBS="$X_LIBS -L$x_libraries"
21807 # For Solaris; some versions of Sun CC require a space after -R and
21808 # others require no space. Words are not sufficient . . . .
e6cc62c6 21809 case `(uname -sr) 2>/dev/null` in
90dd450c 21810 "SunOS 5"*)
e6cc62c6
VS
21811 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21812echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21813 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21814 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21815#line $LINENO "configure"
e6cc62c6
VS
21816/* confdefs.h. */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h. */
21821
21822int
21823main ()
21824{
90dd450c 21825
e6cc62c6
VS
21826 ;
21827 return 0;
21828}
21829_ACEOF
21830rm -f conftest.$ac_objext conftest$ac_exeext
21831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21832 (eval $ac_link) 2>&5
e6cc62c6
VS
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } &&
789c5f4a 21836 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21839 ac_status=$?
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
90dd450c 21842 ac_R_nospace=yes
3a922bb4 21843else
e6cc62c6
VS
21844 echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
21847ac_R_nospace=no
3a922bb4 21848fi
789c5f4a 21849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21850 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21851 echo "$as_me:$LINENO: result: no" >&5
21852echo "${ECHO_T}no" >&6
90dd450c
VZ
21853 X_LIBS="$X_LIBS -R$x_libraries"
21854 else
21855 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 21856 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21857#line $LINENO "configure"
e6cc62c6
VS
21858/* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
21863
21864int
21865main ()
21866{
6f754473 21867
e6cc62c6
VS
21868 ;
21869 return 0;
21870}
21871_ACEOF
21872rm -f conftest.$ac_objext conftest$ac_exeext
21873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21874 (eval $ac_link) 2>&5
e6cc62c6
VS
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } &&
789c5f4a 21878 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; }; then
90dd450c
VZ
21884 ac_R_space=yes
21885else
e6cc62c6
VS
21886 echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888
21889ac_R_space=no
90dd450c 21890fi
789c5f4a 21891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21892 if test $ac_R_space = yes; then
e6cc62c6
VS
21893 echo "$as_me:$LINENO: result: yes" >&5
21894echo "${ECHO_T}yes" >&6
90dd450c
VZ
21895 X_LIBS="$X_LIBS -R $x_libraries"
21896 else
e6cc62c6
VS
21897 echo "$as_me:$LINENO: result: neither works" >&5
21898echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21899 fi
21900 fi
e6cc62c6 21901 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21902 esac
21903 fi
21904
21905 # Check for system-dependent libraries X programs must link with.
21906 # Do this before checking for the system-independent R6 libraries
21907 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21908
90dd450c
VZ
21909 if test "$ISC" = yes; then
21910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21911 else
e6cc62c6
VS
21912 # Martyn Johnson says this is needed for Ultrix, if the X
21913 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21914 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21915 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21916 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21917#line $LINENO "configure"
e6cc62c6
VS
21918/* confdefs.h. */
21919_ACEOF
21920cat confdefs.h >>conftest.$ac_ext
21921cat >>conftest.$ac_ext <<_ACEOF
21922/* end confdefs.h. */
21923
247f5006 21924/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21925#ifdef __cplusplus
21926extern "C"
21927#endif
247f5006 21928/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21929 builtin and then its argument prototype would still apply. */
21930char XOpenDisplay ();
21931int
21932main ()
21933{
21934XOpenDisplay ();
21935 ;
21936 return 0;
21937}
21938_ACEOF
21939rm -f conftest.$ac_objext conftest$ac_exeext
21940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21941 (eval $ac_link) 2>&5
e6cc62c6
VS
21942 ac_status=$?
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } &&
789c5f4a 21945 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947 (eval $ac_try) 2>&5
21948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; }; then
21951 :
21952else
21953 echo "$as_me: failed program was:" >&5
21954sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21955
e6cc62c6
VS
21956echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21957echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21958if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21960else
e6cc62c6
VS
21961 ac_check_lib_save_LIBS=$LIBS
21962LIBS="-ldnet $LIBS"
21963cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21964#line $LINENO "configure"
e6cc62c6
VS
21965/* confdefs.h. */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h. */
a0b9e27f 21970
e6cc62c6
VS
21971/* Override any gcc2 internal prototype to avoid an error. */
21972#ifdef __cplusplus
21973extern "C"
21974#endif
21975/* We use char because int might match the return type of a gcc2
21976 builtin and then its argument prototype would still apply. */
21977char dnet_ntoa ();
21978int
21979main ()
21980{
21981dnet_ntoa ();
21982 ;
21983 return 0;
21984}
21985_ACEOF
21986rm -f conftest.$ac_objext conftest$ac_exeext
21987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21988 (eval $ac_link) 2>&5
e6cc62c6
VS
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
789c5f4a 21992 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21995 ac_status=$?
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21998 ac_cv_lib_dnet_dnet_ntoa=yes
21999else
22000 echo "$as_me: failed program was:" >&5
22001sed 's/^/| /' conftest.$ac_ext >&5
22002
22003ac_cv_lib_dnet_dnet_ntoa=no
22004fi
789c5f4a 22005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22006LIBS=$ac_check_lib_save_LIBS
22007fi
22008echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22009echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22010if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 22011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
22012fi
22013
90dd450c 22014 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22015 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22016echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22017if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22019else
e6cc62c6 22020 ac_check_lib_save_LIBS=$LIBS
90dd450c 22021LIBS="-ldnet_stub $LIBS"
e6cc62c6 22022cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22023#line $LINENO "configure"
e6cc62c6
VS
22024/* confdefs.h. */
22025_ACEOF
22026cat confdefs.h >>conftest.$ac_ext
22027cat >>conftest.$ac_ext <<_ACEOF
22028/* end confdefs.h. */
22029
90dd450c 22030/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22031#ifdef __cplusplus
22032extern "C"
22033#endif
90dd450c 22034/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22035 builtin and then its argument prototype would still apply. */
22036char dnet_ntoa ();
22037int
22038main ()
22039{
22040dnet_ntoa ();
22041 ;
22042 return 0;
22043}
22044_ACEOF
22045rm -f conftest.$ac_objext conftest$ac_exeext
22046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22047 (eval $ac_link) 2>&5
e6cc62c6
VS
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
789c5f4a 22051 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22057 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22058else
22059 echo "$as_me: failed program was:" >&5
22060sed 's/^/| /' conftest.$ac_ext >&5
22061
22062ac_cv_lib_dnet_stub_dnet_ntoa=no
22063fi
789c5f4a 22064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22065LIBS=$ac_check_lib_save_LIBS
22066fi
22067echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22068echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22069if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 22070 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
22071fi
22072
90dd450c 22073 fi
e6cc62c6 22074fi
789c5f4a 22075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22076 LIBS="$ac_xsave_LIBS"
978f1259 22077
90dd450c
VZ
22078 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22079 # to get the SysV transport functions.
e6cc62c6 22080 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
22081 # needs -lnsl.
22082 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22083 # on Irix 5.2, according to T.E. Dickey.
22084 # The functions gethostbyname, getservbyname, and inet_addr are
22085 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22086 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22087echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22088if test "${ac_cv_func_gethostbyname+set}" = set; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22090else
22091 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22092#line $LINENO "configure"
e6cc62c6
VS
22093/* confdefs.h. */
22094_ACEOF
22095cat confdefs.h >>conftest.$ac_ext
22096cat >>conftest.$ac_ext <<_ACEOF
22097/* end confdefs.h. */
90dd450c 22098/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22099 which can conflict with char gethostbyname (); below.
22100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22101 <limits.h> exists even on freestanding compilers. */
22102#ifdef __STDC__
22103# include <limits.h>
22104#else
22105# include <assert.h>
22106#endif
90dd450c 22107/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22108#ifdef __cplusplus
22109extern "C"
22110{
22111#endif
90dd450c 22112/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22113 builtin and then its argument prototype would still apply. */
22114char gethostbyname ();
90dd450c
VZ
22115/* The GNU C library defines this for functions which it implements
22116 to always fail with ENOSYS. Some functions are actually named
22117 something starting with __ and the normal name is an alias. */
22118#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22119choke me
22120#else
e6cc62c6
VS
22121char (*f) () = gethostbyname;
22122#endif
22123#ifdef __cplusplus
22124}
90dd450c 22125#endif
978f1259 22126
e6cc62c6
VS
22127int
22128main ()
22129{
22130return f != gethostbyname;
22131 ;
22132 return 0;
22133}
22134_ACEOF
22135rm -f conftest.$ac_objext conftest$ac_exeext
22136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22137 (eval $ac_link) 2>&5
e6cc62c6
VS
22138 ac_status=$?
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
789c5f4a 22141 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 ac_cv_func_gethostbyname=yes
22148else
22149 echo "$as_me: failed program was:" >&5
22150sed 's/^/| /' conftest.$ac_ext >&5
22151
22152ac_cv_func_gethostbyname=no
22153fi
789c5f4a 22154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22155fi
22156echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22157echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 22158
90dd450c 22159 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22160 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22161echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22162if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22164else
e6cc62c6 22165 ac_check_lib_save_LIBS=$LIBS
90dd450c 22166LIBS="-lnsl $LIBS"
e6cc62c6 22167cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22168#line $LINENO "configure"
e6cc62c6
VS
22169/* confdefs.h. */
22170_ACEOF
22171cat confdefs.h >>conftest.$ac_ext
22172cat >>conftest.$ac_ext <<_ACEOF
22173/* end confdefs.h. */
22174
90dd450c 22175/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22176#ifdef __cplusplus
22177extern "C"
22178#endif
90dd450c 22179/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22180 builtin and then its argument prototype would still apply. */
22181char gethostbyname ();
22182int
22183main ()
22184{
22185gethostbyname ();
22186 ;
22187 return 0;
22188}
22189_ACEOF
22190rm -f conftest.$ac_objext conftest$ac_exeext
22191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22192 (eval $ac_link) 2>&5
e6cc62c6
VS
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } &&
789c5f4a 22196 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22199 ac_status=$?
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 ac_cv_lib_nsl_gethostbyname=yes
22203else
22204 echo "$as_me: failed program was:" >&5
22205sed 's/^/| /' conftest.$ac_ext >&5
22206
22207ac_cv_lib_nsl_gethostbyname=no
22208fi
789c5f4a 22209rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22210LIBS=$ac_check_lib_save_LIBS
22211fi
22212echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22213echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22214if test $ac_cv_lib_nsl_gethostbyname = yes; then
22215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22216fi
247f5006 22217
e6cc62c6 22218 if test $ac_cv_lib_nsl_gethostbyname = no; then
789c5f4a 22219 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
22220echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22221if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22223else
e6cc62c6
VS
22224 ac_check_lib_save_LIBS=$LIBS
22225LIBS="-lbsd $LIBS"
22226cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22227#line $LINENO "configure"
e6cc62c6
VS
22228/* confdefs.h. */
22229_ACEOF
22230cat confdefs.h >>conftest.$ac_ext
22231cat >>conftest.$ac_ext <<_ACEOF
22232/* end confdefs.h. */
22233
22234/* Override any gcc2 internal prototype to avoid an error. */
22235#ifdef __cplusplus
22236extern "C"
22237#endif
22238/* We use char because int might match the return type of a gcc2
22239 builtin and then its argument prototype would still apply. */
22240char gethostbyname ();
22241int
22242main ()
22243{
22244gethostbyname ();
22245 ;
22246 return 0;
22247}
22248_ACEOF
22249rm -f conftest.$ac_objext conftest$ac_exeext
22250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22251 (eval $ac_link) 2>&5
e6cc62c6
VS
22252 ac_status=$?
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
789c5f4a 22255 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257 (eval $ac_try) 2>&5
22258 ac_status=$?
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; }; then
22261 ac_cv_lib_bsd_gethostbyname=yes
22262else
22263 echo "$as_me: failed program was:" >&5
22264sed 's/^/| /' conftest.$ac_ext >&5
22265
22266ac_cv_lib_bsd_gethostbyname=no
22267fi
789c5f4a 22268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22269LIBS=$ac_check_lib_save_LIBS
22270fi
22271echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22272echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22273if test $ac_cv_lib_bsd_gethostbyname = yes; then
22274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 22275fi
b12915c1 22276
e6cc62c6 22277 fi
90dd450c
VZ
22278 fi
22279
22280 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22281 # socket/setsockopt and other routines are undefined under SCO ODT
22282 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22283 # on later versions), says Simon Leinen: it contains gethostby*
22284 # variants that don't use the name server (or something). -lsocket
22285 # must be given before -lnsl if both are needed. We assume that
22286 # if connect needs -lnsl, so does gethostbyname.
22287 echo "$as_me:$LINENO: checking for connect" >&5
22288echo $ECHO_N "checking for connect... $ECHO_C" >&6
22289if test "${ac_cv_func_connect+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22291else
22292 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22293#line $LINENO "configure"
e6cc62c6
VS
22294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
90dd450c 22299/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22300 which can conflict with char connect (); below.
22301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22302 <limits.h> exists even on freestanding compilers. */
22303#ifdef __STDC__
22304# include <limits.h>
22305#else
22306# include <assert.h>
22307#endif
90dd450c 22308/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22309#ifdef __cplusplus
22310extern "C"
22311{
22312#endif
90dd450c 22313/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22314 builtin and then its argument prototype would still apply. */
22315char connect ();
90dd450c
VZ
22316/* The GNU C library defines this for functions which it implements
22317 to always fail with ENOSYS. Some functions are actually named
22318 something starting with __ and the normal name is an alias. */
22319#if defined (__stub_connect) || defined (__stub___connect)
22320choke me
22321#else
e6cc62c6
VS
22322char (*f) () = connect;
22323#endif
22324#ifdef __cplusplus
22325}
90dd450c
VZ
22326#endif
22327
e6cc62c6
VS
22328int
22329main ()
22330{
22331return f != connect;
22332 ;
22333 return 0;
22334}
22335_ACEOF
22336rm -f conftest.$ac_objext conftest$ac_exeext
22337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22338 (eval $ac_link) 2>&5
e6cc62c6
VS
22339 ac_status=$?
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } &&
789c5f4a 22342 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22345 ac_status=$?
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; }; then
22348 ac_cv_func_connect=yes
22349else
22350 echo "$as_me: failed program was:" >&5
22351sed 's/^/| /' conftest.$ac_ext >&5
22352
22353ac_cv_func_connect=no
22354fi
789c5f4a 22355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22356fi
22357echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22358echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22359
90dd450c 22360 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22361 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22362echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22363if test "${ac_cv_lib_socket_connect+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22365else
e6cc62c6 22366 ac_check_lib_save_LIBS=$LIBS
90dd450c 22367LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 22368cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22369#line $LINENO "configure"
e6cc62c6
VS
22370/* confdefs.h. */
22371_ACEOF
22372cat confdefs.h >>conftest.$ac_ext
22373cat >>conftest.$ac_ext <<_ACEOF
22374/* end confdefs.h. */
22375
90dd450c 22376/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22377#ifdef __cplusplus
22378extern "C"
22379#endif
90dd450c 22380/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22381 builtin and then its argument prototype would still apply. */
22382char connect ();
22383int
22384main ()
22385{
22386connect ();
22387 ;
22388 return 0;
22389}
22390_ACEOF
22391rm -f conftest.$ac_objext conftest$ac_exeext
22392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22393 (eval $ac_link) 2>&5
e6cc62c6
VS
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } &&
789c5f4a 22397 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_lib_socket_connect=yes
22404else
22405 echo "$as_me: failed program was:" >&5
22406sed 's/^/| /' conftest.$ac_ext >&5
22407
22408ac_cv_lib_socket_connect=no
22409fi
789c5f4a 22410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22411LIBS=$ac_check_lib_save_LIBS
22412fi
22413echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22414echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22415if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22416 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22417fi
77e13408 22418
90dd450c 22419 fi
25d0687a 22420
e6cc62c6
VS
22421 # Guillermo Gomez says -lposix is necessary on A/UX.
22422 echo "$as_me:$LINENO: checking for remove" >&5
22423echo $ECHO_N "checking for remove... $ECHO_C" >&6
22424if test "${ac_cv_func_remove+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22426else
22427 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22428#line $LINENO "configure"
e6cc62c6
VS
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
90dd450c 22434/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22435 which can conflict with char remove (); below.
22436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22437 <limits.h> exists even on freestanding compilers. */
22438#ifdef __STDC__
22439# include <limits.h>
22440#else
22441# include <assert.h>
22442#endif
90dd450c 22443/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22444#ifdef __cplusplus
22445extern "C"
22446{
22447#endif
90dd450c 22448/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22449 builtin and then its argument prototype would still apply. */
22450char remove ();
90dd450c
VZ
22451/* The GNU C library defines this for functions which it implements
22452 to always fail with ENOSYS. Some functions are actually named
22453 something starting with __ and the normal name is an alias. */
22454#if defined (__stub_remove) || defined (__stub___remove)
22455choke me
22456#else
e6cc62c6
VS
22457char (*f) () = remove;
22458#endif
22459#ifdef __cplusplus
22460}
90dd450c 22461#endif
55e80573 22462
e6cc62c6
VS
22463int
22464main ()
22465{
22466return f != remove;
22467 ;
22468 return 0;
22469}
22470_ACEOF
22471rm -f conftest.$ac_objext conftest$ac_exeext
22472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22473 (eval $ac_link) 2>&5
e6cc62c6
VS
22474 ac_status=$?
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } &&
789c5f4a 22477 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_func_remove=yes
22484else
22485 echo "$as_me: failed program was:" >&5
22486sed 's/^/| /' conftest.$ac_ext >&5
22487
22488ac_cv_func_remove=no
22489fi
789c5f4a 22490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22491fi
22492echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22493echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22494
90dd450c 22495 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22496 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22497echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22498if test "${ac_cv_lib_posix_remove+set}" = set; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22500else
e6cc62c6 22501 ac_check_lib_save_LIBS=$LIBS
90dd450c 22502LIBS="-lposix $LIBS"
e6cc62c6 22503cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22504#line $LINENO "configure"
e6cc62c6
VS
22505/* confdefs.h. */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h. */
22510
90dd450c 22511/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22512#ifdef __cplusplus
22513extern "C"
22514#endif
90dd450c 22515/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22516 builtin and then its argument prototype would still apply. */
22517char remove ();
22518int
22519main ()
22520{
22521remove ();
22522 ;
22523 return 0;
22524}
22525_ACEOF
22526rm -f conftest.$ac_objext conftest$ac_exeext
22527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22528 (eval $ac_link) 2>&5
e6cc62c6
VS
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
789c5f4a 22532 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_cv_lib_posix_remove=yes
22539else
22540 echo "$as_me: failed program was:" >&5
22541sed 's/^/| /' conftest.$ac_ext >&5
22542
22543ac_cv_lib_posix_remove=no
22544fi
789c5f4a 22545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22546LIBS=$ac_check_lib_save_LIBS
22547fi
22548echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22549echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22550if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22551 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22552fi
f6bcfd97 22553
6fa882bd
RR
22554 fi
22555
90dd450c 22556 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22557 echo "$as_me:$LINENO: checking for shmat" >&5
22558echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22559if test "${ac_cv_func_shmat+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561else
22562 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22563#line $LINENO "configure"
e6cc62c6
VS
22564/* confdefs.h. */
22565_ACEOF
22566cat confdefs.h >>conftest.$ac_ext
22567cat >>conftest.$ac_ext <<_ACEOF
22568/* end confdefs.h. */
90dd450c 22569/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22570 which can conflict with char shmat (); below.
22571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22572 <limits.h> exists even on freestanding compilers. */
22573#ifdef __STDC__
22574# include <limits.h>
22575#else
22576# include <assert.h>
22577#endif
90dd450c 22578/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22579#ifdef __cplusplus
22580extern "C"
22581{
22582#endif
90dd450c 22583/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22584 builtin and then its argument prototype would still apply. */
22585char shmat ();
90dd450c
VZ
22586/* The GNU C library defines this for functions which it implements
22587 to always fail with ENOSYS. Some functions are actually named
22588 something starting with __ and the normal name is an alias. */
22589#if defined (__stub_shmat) || defined (__stub___shmat)
22590choke me
22591#else
e6cc62c6
VS
22592char (*f) () = shmat;
22593#endif
22594#ifdef __cplusplus
22595}
90dd450c 22596#endif
10f2d63a 22597
e6cc62c6
VS
22598int
22599main ()
22600{
22601return f != shmat;
22602 ;
22603 return 0;
22604}
22605_ACEOF
22606rm -f conftest.$ac_objext conftest$ac_exeext
22607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22608 (eval $ac_link) 2>&5
e6cc62c6
VS
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } &&
789c5f4a 22612 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; }; then
22618 ac_cv_func_shmat=yes
22619else
22620 echo "$as_me: failed program was:" >&5
22621sed 's/^/| /' conftest.$ac_ext >&5
22622
22623ac_cv_func_shmat=no
22624fi
789c5f4a 22625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22626fi
22627echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22628echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22629
90dd450c 22630 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22631 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22632echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22633if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22635else
e6cc62c6 22636 ac_check_lib_save_LIBS=$LIBS
90dd450c 22637LIBS="-lipc $LIBS"
e6cc62c6 22638cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22639#line $LINENO "configure"
e6cc62c6
VS
22640/* confdefs.h. */
22641_ACEOF
22642cat confdefs.h >>conftest.$ac_ext
22643cat >>conftest.$ac_ext <<_ACEOF
22644/* end confdefs.h. */
22645
8284b0c5 22646/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22647#ifdef __cplusplus
22648extern "C"
22649#endif
90dd450c 22650/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22651 builtin and then its argument prototype would still apply. */
22652char shmat ();
22653int
22654main ()
22655{
22656shmat ();
22657 ;
22658 return 0;
22659}
22660_ACEOF
22661rm -f conftest.$ac_objext conftest$ac_exeext
22662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22663 (eval $ac_link) 2>&5
e6cc62c6
VS
22664 ac_status=$?
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } &&
789c5f4a 22667 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; }; then
22673 ac_cv_lib_ipc_shmat=yes
22674else
22675 echo "$as_me: failed program was:" >&5
22676sed 's/^/| /' conftest.$ac_ext >&5
22677
22678ac_cv_lib_ipc_shmat=no
22679fi
789c5f4a 22680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22681LIBS=$ac_check_lib_save_LIBS
22682fi
22683echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22684echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22685if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22686 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22687fi
22688
d558c907 22689 fi
90dd450c 22690 fi
3a922bb4 22691
90dd450c 22692 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22693 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22694 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22695 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22696 # check for ICE first), but we must link in the order -lSM -lICE or
22697 # we get undefined symbols. So assume we have SM if we have ICE.
22698 # These have to be linked with before -lX11, unlike the other
22699 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22700 # John Interrante, Karl Berry
22701 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22702echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22703if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22705else
22706 ac_check_lib_save_LIBS=$LIBS
f09359cf 22707LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 22708cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22709#line $LINENO "configure"
e6cc62c6
VS
22710/* confdefs.h. */
22711_ACEOF
22712cat confdefs.h >>conftest.$ac_ext
22713cat >>conftest.$ac_ext <<_ACEOF
22714/* end confdefs.h. */
22715
90dd450c 22716/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22717#ifdef __cplusplus
22718extern "C"
22719#endif
90dd450c 22720/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22721 builtin and then its argument prototype would still apply. */
22722char IceConnectionNumber ();
22723int
22724main ()
22725{
22726IceConnectionNumber ();
22727 ;
22728 return 0;
22729}
22730_ACEOF
22731rm -f conftest.$ac_objext conftest$ac_exeext
22732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22733 (eval $ac_link) 2>&5
e6cc62c6
VS
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } &&
789c5f4a 22737 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22743 ac_cv_lib_ICE_IceConnectionNumber=yes
22744else
22745 echo "$as_me: failed program was:" >&5
22746sed 's/^/| /' conftest.$ac_ext >&5
22747
22748ac_cv_lib_ICE_IceConnectionNumber=no
22749fi
789c5f4a 22750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22751LIBS=$ac_check_lib_save_LIBS
22752fi
22753echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22754echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22755if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22756 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22757fi
10f2d63a 22758
e6cc62c6 22759 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22760
22761fi
22762
8284b0c5 22763
90dd450c 22764 if test "$no_x" = "yes"; then
e6cc62c6
VS
22765 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22766echo "$as_me: error: X11 not found" >&2;}
22767 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22768 fi
22769
22770 GUI_TK_LIBRARY="$X_LIBS"
22771 TOOLKIT_INCLUDE="$X_CFLAGS"
22772 AFMINSTALL=afminstall
22773 COMPILED_X_PROGRAM=0
22774
21d1c967 22775 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22776 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22777echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22778 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22779 echo "$as_me:$LINENO: result: not found" >&5
22780echo "${ECHO_T}not found" >&6
22781 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22782echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22783 { (exit 1); exit 1; }; }
90dd450c 22784 else
e6cc62c6
VS
22785 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22786echo "${ECHO_T}$MICROWIN" >&6
22787 cat >>confdefs.h <<\_ACEOF
21d1c967 22788#define wxUSE_NANOX 1
e6cc62c6 22789_ACEOF
21d1c967 22790
90dd450c
VZ
22791 fi
22792 fi
22793
2b5f62a0 22794 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22795
2b5f62a0 22796 succeeded=no
90dd450c 22797
2b5f62a0
VZ
22798 if test -z "$PKG_CONFIG"; then
22799 # Extract the first word of "pkg-config", so it can be a program name with args.
22800set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22801echo "$as_me:$LINENO: checking for $ac_word" >&5
22802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22803if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22804 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22805else
e6cc62c6
VS
22806 case $PKG_CONFIG in
22807 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22809 ;;
2b5f62a0 22810 *)
e6cc62c6
VS
22811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22812for as_dir in $PATH
22813do
22814 IFS=$as_save_IFS
22815 test -z "$as_dir" && as_dir=.
22816 for ac_exec_ext in '' $ac_executable_extensions; do
22817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22820 break 2
22821 fi
22822done
22823done
22824
2b5f62a0
VZ
22825 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22826 ;;
22827esac
22828fi
e6cc62c6
VS
22829PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22830
2b5f62a0 22831if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22832 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22833echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22834else
e6cc62c6
VS
22835 echo "$as_me:$LINENO: result: no" >&5
22836echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22837fi
22838
22839 fi
22840
22841 if test "$PKG_CONFIG" = "no" ; then
22842 echo "*** The pkg-config script could not be found. Make sure it is"
22843 echo "*** in your path, or set the PKG_CONFIG environment variable"
22844 echo "*** to the full path to pkg-config."
22845 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22846 else
22847 PKG_CONFIG_MIN_VERSION=0.9.0
22848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22849 echo "$as_me:$LINENO: checking for pangox" >&5
22850echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22851
22852 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22853 echo "$as_me:$LINENO: result: yes" >&5
22854echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22855 succeeded=yes
22856
e6cc62c6
VS
22857 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22858echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22859 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22860 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22861echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22862
e6cc62c6
VS
22863 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22864echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22865 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22866 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22867echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22868 else
22869 PANGOX_CFLAGS=""
22870 PANGOX_LIBS=""
e6cc62c6 22871 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22872 ## do set a variable so people can do so.
22873 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22874
2b5f62a0
VZ
22875 fi
22876
e6cc62c6
VS
22877
22878
2b5f62a0
VZ
22879 else
22880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22882 fi
22883 fi
22884
22885 if test $succeeded = yes; then
e6cc62c6 22886
2b5f62a0 22887 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22888 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22889
2b5f62a0 22890 else
e6cc62c6
VS
22891
22892 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22893echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22894 { (exit 1); exit 1; }; }
22895
22896
2b5f62a0
VZ
22897 fi
22898
e6cc62c6 22899
2b5f62a0
VZ
22900 succeeded=no
22901
22902 if test -z "$PKG_CONFIG"; then
22903 # Extract the first word of "pkg-config", so it can be a program name with args.
22904set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22905echo "$as_me:$LINENO: checking for $ac_word" >&5
22906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22907if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22909else
e6cc62c6
VS
22910 case $PKG_CONFIG in
22911 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22912 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22913 ;;
2b5f62a0 22914 *)
e6cc62c6
VS
22915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22916for as_dir in $PATH
22917do
22918 IFS=$as_save_IFS
22919 test -z "$as_dir" && as_dir=.
22920 for ac_exec_ext in '' $ac_executable_extensions; do
22921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22922 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22924 break 2
22925 fi
22926done
22927done
22928
2b5f62a0
VZ
22929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22930 ;;
22931esac
22932fi
e6cc62c6
VS
22933PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22934
2b5f62a0 22935if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22936 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22937echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22938else
e6cc62c6
VS
22939 echo "$as_me:$LINENO: result: no" >&5
22940echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22941fi
22942
22943 fi
22944
22945 if test "$PKG_CONFIG" = "no" ; then
22946 echo "*** The pkg-config script could not be found. Make sure it is"
22947 echo "*** in your path, or set the PKG_CONFIG environment variable"
22948 echo "*** to the full path to pkg-config."
22949 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22950 else
22951 PKG_CONFIG_MIN_VERSION=0.9.0
22952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22953 echo "$as_me:$LINENO: checking for pangoft2" >&5
22954echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22955
22956 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22957 echo "$as_me:$LINENO: result: yes" >&5
22958echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22959 succeeded=yes
22960
e6cc62c6
VS
22961 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22962echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22963 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22964 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22965echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22966
e6cc62c6
VS
22967 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22968echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22969 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22970 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22971echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22972 else
22973 PANGOFT2_CFLAGS=""
22974 PANGOFT2_LIBS=""
e6cc62c6 22975 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22976 ## do set a variable so people can do so.
22977 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22978
2b5f62a0
VZ
22979 fi
22980
e6cc62c6
VS
22981
22982
2b5f62a0
VZ
22983 else
22984 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22985 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22986 fi
22987 fi
22988
22989 if test $succeeded = yes; then
e6cc62c6 22990
2b5f62a0 22991 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22992 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22993
2b5f62a0 22994 else
e6cc62c6
VS
22995
22996 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22997echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22998 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22999
23000
2b5f62a0
VZ
23001 fi
23002
e6cc62c6 23003
2b5f62a0
VZ
23004 succeeded=no
23005
23006 if test -z "$PKG_CONFIG"; then
23007 # Extract the first word of "pkg-config", so it can be a program name with args.
23008set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23009echo "$as_me:$LINENO: checking for $ac_word" >&5
23010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23011if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23012 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 23013else
e6cc62c6
VS
23014 case $PKG_CONFIG in
23015 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23017 ;;
2b5f62a0 23018 *)
e6cc62c6
VS
23019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23020for as_dir in $PATH
23021do
23022 IFS=$as_save_IFS
23023 test -z "$as_dir" && as_dir=.
23024 for ac_exec_ext in '' $ac_executable_extensions; do
23025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23028 break 2
23029 fi
23030done
23031done
23032
2b5f62a0
VZ
23033 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23034 ;;
23035esac
23036fi
e6cc62c6
VS
23037PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23038
2b5f62a0 23039if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23040 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23041echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23042else
e6cc62c6
VS
23043 echo "$as_me:$LINENO: result: no" >&5
23044echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23045fi
23046
23047 fi
23048
23049 if test "$PKG_CONFIG" = "no" ; then
23050 echo "*** The pkg-config script could not be found. Make sure it is"
23051 echo "*** in your path, or set the PKG_CONFIG environment variable"
23052 echo "*** to the full path to pkg-config."
23053 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23054 else
23055 PKG_CONFIG_MIN_VERSION=0.9.0
23056 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23057 echo "$as_me:$LINENO: checking for pangoxft" >&5
23058echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
23059
23060 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
23061 echo "$as_me:$LINENO: result: yes" >&5
23062echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23063 succeeded=yes
23064
e6cc62c6
VS
23065 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
23066echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 23067 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
23068 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
23069echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 23070
e6cc62c6
VS
23071 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
23072echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 23073 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
23074 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23075echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
23076 else
23077 PANGOXFT_CFLAGS=""
23078 PANGOXFT_LIBS=""
e6cc62c6 23079 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23080 ## do set a variable so people can do so.
23081 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 23082
2b5f62a0
VZ
23083 fi
23084
e6cc62c6
VS
23085
23086
2b5f62a0
VZ
23087 else
23088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23090 fi
23091 fi
23092
23093 if test $succeeded = yes; then
e6cc62c6 23094
2b5f62a0 23095 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 23096 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 23097
2b5f62a0 23098 else
e6cc62c6
VS
23099
23100 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23101echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23102
23103
2b5f62a0
VZ
23104 fi
23105
23106 fi
23107
23108 wxUSE_UNIVERSAL="yes"
23109
23110 if test "$wxUSE_NANOX" = "yes"; then
23111 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 23112 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
23113 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23114 else
93a543aa 23115 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
23116 fi
23117
23118 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23119 TOOLKIT=X11
23120 GUIDIST=X11_DIST
23121 fi
23122
21d1c967
GD
23123 if test "$wxUSE_MOTIF" = 1; then
23124 if test "$no_x" = yes; then
23125 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23126
23127cat >>confdefs.h <<\_ACEOF
21d1c967 23128#define X_DISPLAY_MISSING 1
e6cc62c6 23129_ACEOF
21d1c967
GD
23130
23131 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23132else
23133 if test -n "$x_includes"; then
23134 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
23135 fi
23136
21d1c967
GD
23137 # It would also be nice to do this for all -L options, not just this one.
23138 if test -n "$x_libraries"; then
23139 X_LIBS="$X_LIBS -L$x_libraries"
23140 # For Solaris; some versions of Sun CC require a space after -R and
23141 # others require no space. Words are not sufficient . . . .
e6cc62c6 23142 case `(uname -sr) 2>/dev/null` in
21d1c967 23143 "SunOS 5"*)
e6cc62c6
VS
23144 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23145echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23146 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23147 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23148#line $LINENO "configure"
e6cc62c6
VS
23149/* confdefs.h. */
23150_ACEOF
23151cat confdefs.h >>conftest.$ac_ext
23152cat >>conftest.$ac_ext <<_ACEOF
23153/* end confdefs.h. */
23154
23155int
23156main ()
23157{
21d1c967 23158
e6cc62c6
VS
23159 ;
23160 return 0;
23161}
23162_ACEOF
23163rm -f conftest.$ac_objext conftest$ac_exeext
23164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23165 (eval $ac_link) 2>&5
e6cc62c6
VS
23166 ac_status=$?
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
789c5f4a 23169 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; }; then
21d1c967 23175 ac_R_nospace=yes
698dcdb6 23176else
e6cc62c6
VS
23177 echo "$as_me: failed program was:" >&5
23178sed 's/^/| /' conftest.$ac_ext >&5
23179
23180ac_R_nospace=no
10f2d63a 23181fi
789c5f4a 23182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23183 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23184 echo "$as_me:$LINENO: result: no" >&5
23185echo "${ECHO_T}no" >&6
21d1c967
GD
23186 X_LIBS="$X_LIBS -R$x_libraries"
23187 else
23188 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23189 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23190#line $LINENO "configure"
e6cc62c6
VS
23191/* confdefs.h. */
23192_ACEOF
23193cat confdefs.h >>conftest.$ac_ext
23194cat >>conftest.$ac_ext <<_ACEOF
23195/* end confdefs.h. */
23196
23197int
23198main ()
23199{
f0c87536 23200
e6cc62c6
VS
23201 ;
23202 return 0;
23203}
23204_ACEOF
23205rm -f conftest.$ac_objext conftest$ac_exeext
23206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23207 (eval $ac_link) 2>&5
e6cc62c6
VS
23208 ac_status=$?
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
789c5f4a 23211 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23214 ac_status=$?
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
21d1c967
GD
23217 ac_R_space=yes
23218else
e6cc62c6
VS
23219 echo "$as_me: failed program was:" >&5
23220sed 's/^/| /' conftest.$ac_ext >&5
23221
23222ac_R_space=no
21d1c967 23223fi
789c5f4a 23224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23225 if test $ac_R_space = yes; then
e6cc62c6
VS
23226 echo "$as_me:$LINENO: result: yes" >&5
23227echo "${ECHO_T}yes" >&6
21d1c967
GD
23228 X_LIBS="$X_LIBS -R $x_libraries"
23229 else
e6cc62c6
VS
23230 echo "$as_me:$LINENO: result: neither works" >&5
23231echo "${ECHO_T}neither works" >&6
21d1c967
GD
23232 fi
23233 fi
e6cc62c6 23234 LIBS=$ac_xsave_LIBS
21d1c967
GD
23235 esac
23236 fi
90dd450c 23237
21d1c967
GD
23238 # Check for system-dependent libraries X programs must link with.
23239 # Do this before checking for the system-independent R6 libraries
23240 # (-lICE), since we may need -lsocket or whatever for X linking.
23241
23242 if test "$ISC" = yes; then
23243 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23244 else
e6cc62c6
VS
23245 # Martyn Johnson says this is needed for Ultrix, if the X
23246 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23247 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23248 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23249 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23250#line $LINENO "configure"
e6cc62c6
VS
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
23256
247f5006 23257/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23258#ifdef __cplusplus
23259extern "C"
23260#endif
247f5006 23261/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23262 builtin and then its argument prototype would still apply. */
23263char XOpenDisplay ();
23264int
23265main ()
23266{
23267XOpenDisplay ();
23268 ;
23269 return 0;
23270}
23271_ACEOF
23272rm -f conftest.$ac_objext conftest$ac_exeext
23273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23274 (eval $ac_link) 2>&5
e6cc62c6
VS
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } &&
789c5f4a 23278 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; }; then
23284 :
23285else
23286 echo "$as_me: failed program was:" >&5
23287sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23288
e6cc62c6
VS
23289echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23290echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23291if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23293else
e6cc62c6
VS
23294 ac_check_lib_save_LIBS=$LIBS
23295LIBS="-ldnet $LIBS"
23296cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23297#line $LINENO "configure"
e6cc62c6
VS
23298/* confdefs.h. */
23299_ACEOF
23300cat confdefs.h >>conftest.$ac_ext
23301cat >>conftest.$ac_ext <<_ACEOF
23302/* end confdefs.h. */
a0b9e27f 23303
e6cc62c6
VS
23304/* Override any gcc2 internal prototype to avoid an error. */
23305#ifdef __cplusplus
23306extern "C"
23307#endif
23308/* We use char because int might match the return type of a gcc2
23309 builtin and then its argument prototype would still apply. */
23310char dnet_ntoa ();
23311int
23312main ()
23313{
23314dnet_ntoa ();
23315 ;
23316 return 0;
23317}
23318_ACEOF
23319rm -f conftest.$ac_objext conftest$ac_exeext
23320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23321 (eval $ac_link) 2>&5
e6cc62c6
VS
23322 ac_status=$?
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } &&
789c5f4a 23325 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; }; then
23331 ac_cv_lib_dnet_dnet_ntoa=yes
23332else
23333 echo "$as_me: failed program was:" >&5
23334sed 's/^/| /' conftest.$ac_ext >&5
23335
23336ac_cv_lib_dnet_dnet_ntoa=no
23337fi
789c5f4a 23338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23339LIBS=$ac_check_lib_save_LIBS
23340fi
23341echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23342echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23343if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23344 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23345fi
0fb0dd83 23346
21d1c967 23347 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23348 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23349echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23350if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23352else
e6cc62c6 23353 ac_check_lib_save_LIBS=$LIBS
21d1c967 23354LIBS="-ldnet_stub $LIBS"
e6cc62c6 23355cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23356#line $LINENO "configure"
e6cc62c6
VS
23357/* confdefs.h. */
23358_ACEOF
23359cat confdefs.h >>conftest.$ac_ext
23360cat >>conftest.$ac_ext <<_ACEOF
23361/* end confdefs.h. */
23362
21d1c967 23363/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23364#ifdef __cplusplus
23365extern "C"
23366#endif
21d1c967 23367/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23368 builtin and then its argument prototype would still apply. */
23369char dnet_ntoa ();
23370int
23371main ()
23372{
23373dnet_ntoa ();
23374 ;
23375 return 0;
23376}
23377_ACEOF
23378rm -f conftest.$ac_objext conftest$ac_exeext
23379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23380 (eval $ac_link) 2>&5
e6cc62c6
VS
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } &&
789c5f4a 23384 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23391else
23392 echo "$as_me: failed program was:" >&5
23393sed 's/^/| /' conftest.$ac_ext >&5
23394
23395ac_cv_lib_dnet_stub_dnet_ntoa=no
23396fi
789c5f4a 23397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23398LIBS=$ac_check_lib_save_LIBS
23399fi
23400echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23401echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23402if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23403 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23404fi
23405
21d1c967 23406 fi
e6cc62c6 23407fi
789c5f4a 23408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23409 LIBS="$ac_xsave_LIBS"
90dd450c 23410
21d1c967
GD
23411 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23412 # to get the SysV transport functions.
e6cc62c6 23413 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23414 # needs -lnsl.
23415 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23416 # on Irix 5.2, according to T.E. Dickey.
23417 # The functions gethostbyname, getservbyname, and inet_addr are
23418 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23419 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23420echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23421if test "${ac_cv_func_gethostbyname+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23423else
23424 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23425#line $LINENO "configure"
e6cc62c6
VS
23426/* confdefs.h. */
23427_ACEOF
23428cat confdefs.h >>conftest.$ac_ext
23429cat >>conftest.$ac_ext <<_ACEOF
23430/* end confdefs.h. */
21d1c967 23431/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23432 which can conflict with char gethostbyname (); below.
23433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23434 <limits.h> exists even on freestanding compilers. */
23435#ifdef __STDC__
23436# include <limits.h>
23437#else
23438# include <assert.h>
23439#endif
21d1c967 23440/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23441#ifdef __cplusplus
23442extern "C"
23443{
23444#endif
21d1c967 23445/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23446 builtin and then its argument prototype would still apply. */
23447char gethostbyname ();
21d1c967
GD
23448/* The GNU C library defines this for functions which it implements
23449 to always fail with ENOSYS. Some functions are actually named
23450 something starting with __ and the normal name is an alias. */
23451#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23452choke me
23453#else
e6cc62c6
VS
23454char (*f) () = gethostbyname;
23455#endif
23456#ifdef __cplusplus
23457}
21d1c967 23458#endif
90dd450c 23459
e6cc62c6
VS
23460int
23461main ()
23462{
23463return f != gethostbyname;
23464 ;
23465 return 0;
23466}
23467_ACEOF
23468rm -f conftest.$ac_objext conftest$ac_exeext
23469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23470 (eval $ac_link) 2>&5
e6cc62c6
VS
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
789c5f4a 23474 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 ac_cv_func_gethostbyname=yes
23481else
23482 echo "$as_me: failed program was:" >&5
23483sed 's/^/| /' conftest.$ac_ext >&5
23484
23485ac_cv_func_gethostbyname=no
23486fi
789c5f4a 23487rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23488fi
23489echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23490echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23491
21d1c967 23492 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23493 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23494echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23495if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23497else
e6cc62c6 23498 ac_check_lib_save_LIBS=$LIBS
21d1c967 23499LIBS="-lnsl $LIBS"
e6cc62c6 23500cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23501#line $LINENO "configure"
e6cc62c6
VS
23502/* confdefs.h. */
23503_ACEOF
23504cat confdefs.h >>conftest.$ac_ext
23505cat >>conftest.$ac_ext <<_ACEOF
23506/* end confdefs.h. */
23507
21d1c967 23508/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23509#ifdef __cplusplus
23510extern "C"
23511#endif
21d1c967 23512/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23513 builtin and then its argument prototype would still apply. */
23514char gethostbyname ();
23515int
23516main ()
23517{
23518gethostbyname ();
23519 ;
23520 return 0;
23521}
23522_ACEOF
23523rm -f conftest.$ac_objext conftest$ac_exeext
23524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23525 (eval $ac_link) 2>&5
e6cc62c6
VS
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } &&
789c5f4a 23529 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ac_cv_lib_nsl_gethostbyname=yes
23536else
23537 echo "$as_me: failed program was:" >&5
23538sed 's/^/| /' conftest.$ac_ext >&5
23539
23540ac_cv_lib_nsl_gethostbyname=no
23541fi
789c5f4a 23542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23543LIBS=$ac_check_lib_save_LIBS
23544fi
23545echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23546echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23547if test $ac_cv_lib_nsl_gethostbyname = yes; then
23548 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23549fi
247f5006 23550
e6cc62c6 23551 if test $ac_cv_lib_nsl_gethostbyname = no; then
789c5f4a 23552 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23553echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23554if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23556else
e6cc62c6
VS
23557 ac_check_lib_save_LIBS=$LIBS
23558LIBS="-lbsd $LIBS"
23559cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23560#line $LINENO "configure"
e6cc62c6
VS
23561/* confdefs.h. */
23562_ACEOF
23563cat confdefs.h >>conftest.$ac_ext
23564cat >>conftest.$ac_ext <<_ACEOF
23565/* end confdefs.h. */
23566
23567/* Override any gcc2 internal prototype to avoid an error. */
23568#ifdef __cplusplus
23569extern "C"
23570#endif
23571/* We use char because int might match the return type of a gcc2
23572 builtin and then its argument prototype would still apply. */
23573char gethostbyname ();
23574int
23575main ()
23576{
23577gethostbyname ();
23578 ;
23579 return 0;
23580}
23581_ACEOF
23582rm -f conftest.$ac_objext conftest$ac_exeext
23583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23584 (eval $ac_link) 2>&5
e6cc62c6
VS
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } &&
789c5f4a 23588 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; }; then
23594 ac_cv_lib_bsd_gethostbyname=yes
23595else
23596 echo "$as_me: failed program was:" >&5
23597sed 's/^/| /' conftest.$ac_ext >&5
23598
23599ac_cv_lib_bsd_gethostbyname=no
23600fi
789c5f4a 23601rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23602LIBS=$ac_check_lib_save_LIBS
23603fi
23604echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23605echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23606if test $ac_cv_lib_bsd_gethostbyname = yes; then
23607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23608fi
90dd450c 23609
e6cc62c6 23610 fi
90dd450c
VZ
23611 fi
23612
21d1c967
GD
23613 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23614 # socket/setsockopt and other routines are undefined under SCO ODT
23615 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23616 # on later versions), says Simon Leinen: it contains gethostby*
23617 # variants that don't use the name server (or something). -lsocket
23618 # must be given before -lnsl if both are needed. We assume that
23619 # if connect needs -lnsl, so does gethostbyname.
23620 echo "$as_me:$LINENO: checking for connect" >&5
23621echo $ECHO_N "checking for connect... $ECHO_C" >&6
23622if test "${ac_cv_func_connect+set}" = set; then
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
23624else
23625 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23626#line $LINENO "configure"
e6cc62c6
VS
23627/* confdefs.h. */
23628_ACEOF
23629cat confdefs.h >>conftest.$ac_ext
23630cat >>conftest.$ac_ext <<_ACEOF
23631/* end confdefs.h. */
21d1c967 23632/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23633 which can conflict with char connect (); below.
23634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23635 <limits.h> exists even on freestanding compilers. */
23636#ifdef __STDC__
23637# include <limits.h>
23638#else
23639# include <assert.h>
23640#endif
21d1c967 23641/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23642#ifdef __cplusplus
23643extern "C"
23644{
23645#endif
21d1c967 23646/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23647 builtin and then its argument prototype would still apply. */
23648char connect ();
21d1c967
GD
23649/* The GNU C library defines this for functions which it implements
23650 to always fail with ENOSYS. Some functions are actually named
23651 something starting with __ and the normal name is an alias. */
23652#if defined (__stub_connect) || defined (__stub___connect)
23653choke me
23654#else
e6cc62c6
VS
23655char (*f) () = connect;
23656#endif
23657#ifdef __cplusplus
23658}
21d1c967 23659#endif
90dd450c 23660
e6cc62c6
VS
23661int
23662main ()
23663{
23664return f != connect;
23665 ;
23666 return 0;
23667}
23668_ACEOF
23669rm -f conftest.$ac_objext conftest$ac_exeext
23670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23671 (eval $ac_link) 2>&5
e6cc62c6
VS
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } &&
789c5f4a 23675 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 ac_cv_func_connect=yes
23682else
23683 echo "$as_me: failed program was:" >&5
23684sed 's/^/| /' conftest.$ac_ext >&5
23685
23686ac_cv_func_connect=no
23687fi
789c5f4a 23688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23689fi
23690echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23691echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23692
21d1c967 23693 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23694 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23695echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23696if test "${ac_cv_lib_socket_connect+set}" = set; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23698else
e6cc62c6 23699 ac_check_lib_save_LIBS=$LIBS
21d1c967 23700LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 23701cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23702#line $LINENO "configure"
e6cc62c6
VS
23703/* confdefs.h. */
23704_ACEOF
23705cat confdefs.h >>conftest.$ac_ext
23706cat >>conftest.$ac_ext <<_ACEOF
23707/* end confdefs.h. */
23708
21d1c967 23709/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23710#ifdef __cplusplus
23711extern "C"
23712#endif
21d1c967 23713/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23714 builtin and then its argument prototype would still apply. */
23715char connect ();
23716int
23717main ()
23718{
23719connect ();
23720 ;
23721 return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext conftest$ac_exeext
23725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23726 (eval $ac_link) 2>&5
e6cc62c6
VS
23727 ac_status=$?
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } &&
789c5f4a 23730 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732 (eval $ac_try) 2>&5
23733 ac_status=$?
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; }; then
23736 ac_cv_lib_socket_connect=yes
23737else
23738 echo "$as_me: failed program was:" >&5
23739sed 's/^/| /' conftest.$ac_ext >&5
23740
23741ac_cv_lib_socket_connect=no
23742fi
789c5f4a 23743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23744LIBS=$ac_check_lib_save_LIBS
23745fi
23746echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23747echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23748if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23749 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23750fi
90dd450c 23751
21d1c967 23752 fi
90dd450c 23753
e6cc62c6
VS
23754 # Guillermo Gomez says -lposix is necessary on A/UX.
23755 echo "$as_me:$LINENO: checking for remove" >&5
23756echo $ECHO_N "checking for remove... $ECHO_C" >&6
23757if test "${ac_cv_func_remove+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
23759else
23760 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23761#line $LINENO "configure"
e6cc62c6
VS
23762/* confdefs.h. */
23763_ACEOF
23764cat confdefs.h >>conftest.$ac_ext
23765cat >>conftest.$ac_ext <<_ACEOF
23766/* end confdefs.h. */
21d1c967 23767/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23768 which can conflict with char remove (); below.
23769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23770 <limits.h> exists even on freestanding compilers. */
23771#ifdef __STDC__
23772# include <limits.h>
23773#else
23774# include <assert.h>
23775#endif
21d1c967 23776/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23777#ifdef __cplusplus
23778extern "C"
23779{
23780#endif
21d1c967 23781/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23782 builtin and then its argument prototype would still apply. */
23783char remove ();
21d1c967
GD
23784/* The GNU C library defines this for functions which it implements
23785 to always fail with ENOSYS. Some functions are actually named
23786 something starting with __ and the normal name is an alias. */
23787#if defined (__stub_remove) || defined (__stub___remove)
23788choke me
23789#else
e6cc62c6
VS
23790char (*f) () = remove;
23791#endif
23792#ifdef __cplusplus
23793}
21d1c967 23794#endif
90dd450c 23795
e6cc62c6
VS
23796int
23797main ()
23798{
23799return f != remove;
23800 ;
23801 return 0;
23802}
23803_ACEOF
23804rm -f conftest.$ac_objext conftest$ac_exeext
23805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23806 (eval $ac_link) 2>&5
e6cc62c6
VS
23807 ac_status=$?
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
789c5f4a 23810 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23812 (eval $ac_try) 2>&5
23813 ac_status=$?
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); }; }; then
23816 ac_cv_func_remove=yes
23817else
23818 echo "$as_me: failed program was:" >&5
23819sed 's/^/| /' conftest.$ac_ext >&5
23820
23821ac_cv_func_remove=no
23822fi
789c5f4a 23823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23824fi
23825echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23826echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23827
21d1c967 23828 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23829 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23830echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23831if test "${ac_cv_lib_posix_remove+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23833else
e6cc62c6 23834 ac_check_lib_save_LIBS=$LIBS
21d1c967 23835LIBS="-lposix $LIBS"
e6cc62c6 23836cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23837#line $LINENO "configure"
e6cc62c6
VS
23838/* confdefs.h. */
23839_ACEOF
23840cat confdefs.h >>conftest.$ac_ext
23841cat >>conftest.$ac_ext <<_ACEOF
23842/* end confdefs.h. */
23843
21d1c967 23844/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23845#ifdef __cplusplus
23846extern "C"
23847#endif
21d1c967 23848/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23849 builtin and then its argument prototype would still apply. */
23850char remove ();
23851int
23852main ()
23853{
23854remove ();
23855 ;
23856 return 0;
23857}
23858_ACEOF
23859rm -f conftest.$ac_objext conftest$ac_exeext
23860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23861 (eval $ac_link) 2>&5
e6cc62c6
VS
23862 ac_status=$?
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } &&
789c5f4a 23865 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; }; then
23871 ac_cv_lib_posix_remove=yes
23872else
23873 echo "$as_me: failed program was:" >&5
23874sed 's/^/| /' conftest.$ac_ext >&5
23875
23876ac_cv_lib_posix_remove=no
23877fi
789c5f4a 23878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23879LIBS=$ac_check_lib_save_LIBS
23880fi
23881echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23882echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23883if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23884 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23885fi
19bc6aad 23886
90dd450c 23887 fi
19bc6aad 23888
21d1c967 23889 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23890 echo "$as_me:$LINENO: checking for shmat" >&5
23891echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23892if test "${ac_cv_func_shmat+set}" = set; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
23894else
23895 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23896#line $LINENO "configure"
e6cc62c6
VS
23897/* confdefs.h. */
23898_ACEOF
23899cat confdefs.h >>conftest.$ac_ext
23900cat >>conftest.$ac_ext <<_ACEOF
23901/* end confdefs.h. */
21d1c967 23902/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23903 which can conflict with char shmat (); below.
23904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23905 <limits.h> exists even on freestanding compilers. */
23906#ifdef __STDC__
23907# include <limits.h>
23908#else
23909# include <assert.h>
23910#endif
21d1c967 23911/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23912#ifdef __cplusplus
23913extern "C"
23914{
23915#endif
21d1c967 23916/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23917 builtin and then its argument prototype would still apply. */
23918char shmat ();
21d1c967
GD
23919/* The GNU C library defines this for functions which it implements
23920 to always fail with ENOSYS. Some functions are actually named
23921 something starting with __ and the normal name is an alias. */
23922#if defined (__stub_shmat) || defined (__stub___shmat)
23923choke me
23924#else
e6cc62c6
VS
23925char (*f) () = shmat;
23926#endif
23927#ifdef __cplusplus
23928}
21d1c967 23929#endif
90dd450c 23930
e6cc62c6
VS
23931int
23932main ()
23933{
23934return f != shmat;
23935 ;
23936 return 0;
23937}
23938_ACEOF
23939rm -f conftest.$ac_objext conftest$ac_exeext
23940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23941 (eval $ac_link) 2>&5
e6cc62c6
VS
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } &&
789c5f4a 23945 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; }; then
23951 ac_cv_func_shmat=yes
23952else
23953 echo "$as_me: failed program was:" >&5
23954sed 's/^/| /' conftest.$ac_ext >&5
23955
23956ac_cv_func_shmat=no
23957fi
789c5f4a 23958rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23959fi
23960echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23961echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23962
21d1c967 23963 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23964 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23965echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23966if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23968else
e6cc62c6 23969 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23970LIBS="-lipc $LIBS"
e6cc62c6 23971cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23972#line $LINENO "configure"
e6cc62c6
VS
23973/* confdefs.h. */
23974_ACEOF
23975cat confdefs.h >>conftest.$ac_ext
23976cat >>conftest.$ac_ext <<_ACEOF
23977/* end confdefs.h. */
23978
5c6fa7d2 23979/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23980#ifdef __cplusplus
23981extern "C"
23982#endif
5c6fa7d2 23983/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23984 builtin and then its argument prototype would still apply. */
23985char shmat ();
23986int
23987main ()
23988{
23989shmat ();
23990 ;
23991 return 0;
23992}
23993_ACEOF
23994rm -f conftest.$ac_objext conftest$ac_exeext
23995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23996 (eval $ac_link) 2>&5
e6cc62c6
VS
23997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } &&
789c5f4a 24000 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; }; then
24006 ac_cv_lib_ipc_shmat=yes
24007else
24008 echo "$as_me: failed program was:" >&5
24009sed 's/^/| /' conftest.$ac_ext >&5
24010
24011ac_cv_lib_ipc_shmat=no
24012fi
789c5f4a 24013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24014LIBS=$ac_check_lib_save_LIBS
24015fi
24016echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24017echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24018if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 24019 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 24020fi
90dd450c 24021
90dd450c 24022 fi
21d1c967 24023 fi
10f2d63a 24024
21d1c967 24025 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24026 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
24027 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24028 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24029 # check for ICE first), but we must link in the order -lSM -lICE or
24030 # we get undefined symbols. So assume we have SM if we have ICE.
24031 # These have to be linked with before -lX11, unlike the other
24032 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24033 # John Interrante, Karl Berry
24034 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24035echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24036if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24037 echo $ECHO_N "(cached) $ECHO_C" >&6
24038else
24039 ac_check_lib_save_LIBS=$LIBS
f09359cf 24040LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 24041cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24042#line $LINENO "configure"
e6cc62c6
VS
24043/* confdefs.h. */
24044_ACEOF
24045cat confdefs.h >>conftest.$ac_ext
24046cat >>conftest.$ac_ext <<_ACEOF
24047/* end confdefs.h. */
24048
21d1c967 24049/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24050#ifdef __cplusplus
24051extern "C"
24052#endif
21d1c967 24053/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24054 builtin and then its argument prototype would still apply. */
24055char IceConnectionNumber ();
24056int
24057main ()
24058{
24059IceConnectionNumber ();
24060 ;
24061 return 0;
24062}
24063_ACEOF
24064rm -f conftest.$ac_objext conftest$ac_exeext
24065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24066 (eval $ac_link) 2>&5
e6cc62c6
VS
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } &&
789c5f4a 24070 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); }; }; then
24076 ac_cv_lib_ICE_IceConnectionNumber=yes
24077else
24078 echo "$as_me: failed program was:" >&5
24079sed 's/^/| /' conftest.$ac_ext >&5
24080
24081ac_cv_lib_ICE_IceConnectionNumber=no
24082fi
789c5f4a 24083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24084LIBS=$ac_check_lib_save_LIBS
24085fi
24086echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24087echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24088if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 24089 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 24090fi
21d1c967 24091
e6cc62c6 24092 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 24093
10f2d63a
VZ
24094fi
24095
8284b0c5 24096
21d1c967 24097 if test "$no_x" = "yes"; then
e6cc62c6
VS
24098 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24099echo "$as_me: error: X11 not found" >&2;}
24100 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
24101 fi
24102
2b5f62a0
VZ
24103 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24104 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
24105 AFMINSTALL=afminstall
24106 COMPILED_X_PROGRAM=0
24107
e6cc62c6
VS
24108 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24109echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24110
21d1c967 24111ac_find_includes=
2b5f62a0 24112for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
24113 do
24114 if test -f "$ac_dir/Xm/Xm.h"; then
24115 ac_find_includes=$ac_dir
24116 break
24117 fi
24118 done
24119
24120 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
24121 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24122echo "${ECHO_T}found in $ac_find_includes" >&6
24123
2b5f62a0 24124 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
24125 ac_path_to_include=""
24126 else
2b5f62a0
VZ
24127 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24128 result=$?
24129 if test $result = 0; then
24130 ac_path_to_include=""
24131 else
24132 ac_path_to_include=" -I$ac_find_includes"
24133 fi
dd0e4a90
VZ
24134 fi
24135
24136 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 24137 else
e6cc62c6 24138 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24139#line $LINENO "configure"
e6cc62c6
VS
24140/* confdefs.h. */
24141_ACEOF
24142cat confdefs.h >>conftest.$ac_ext
24143cat >>conftest.$ac_ext <<_ACEOF
24144/* end confdefs.h. */
21d1c967
GD
24145
24146 #include <Xm/Xm.h>
e6cc62c6
VS
24147
24148int
24149main ()
24150{
21d1c967
GD
24151
24152 int version;
24153 version = xmUseVersion;
e6cc62c6
VS
24154
24155 ;
24156 return 0;
24157}
24158_ACEOF
24159rm -f conftest.$ac_objext
24160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24161 (eval $ac_compile) 2>&5
e6cc62c6
VS
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } &&
789c5f4a 24165 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; }; then
24171
24172 echo "$as_me:$LINENO: result: found in default search path" >&5
24173echo "${ECHO_T}found in default search path" >&6
21d1c967 24174 COMPILED_X_PROGRAM=1
e6cc62c6 24175
10f2d63a 24176else
e6cc62c6
VS
24177 echo "$as_me: failed program was:" >&5
24178sed 's/^/| /' conftest.$ac_ext >&5
24179
24180
24181 echo "$as_me:$LINENO: result: no" >&5
24182echo "${ECHO_T}no" >&6
24183 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24184echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24185 { (exit 1); exit 1; }; }
24186
24187
10f2d63a 24188fi
789c5f4a 24189rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24190 fi
10f2d63a 24191
21d1c967 24192 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24193 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24194echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24195
21d1c967 24196ac_find_libraries=
2b5f62a0 24197for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24198 do
24199 for ac_extension in a so sl dylib; do
24200 if test -f "$ac_dir/libXm.$ac_extension"; then
24201 ac_find_libraries=$ac_dir
24202 break 2
24203 fi
24204 done
24205 done
24206
24207 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24208 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24209echo "${ECHO_T}found at $ac_find_libraries" >&6
24210
21d1c967 24211
21d1c967
GD
24212 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24213 result=$?
24214 if test $result = 0; then
24215 ac_path_to_link=""
24216 else
24217 ac_path_to_link=" -L$ac_find_libraries"
24218 fi
24219
21d1c967 24220 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24221 else
dd0e4a90
VZ
24222 save_CFLAGS=$CFLAGS
24223 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24224
e6cc62c6 24225 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24226#line $LINENO "configure"
e6cc62c6
VS
24227/* confdefs.h. */
24228_ACEOF
24229cat confdefs.h >>conftest.$ac_ext
24230cat >>conftest.$ac_ext <<_ACEOF
24231/* end confdefs.h. */
21d1c967
GD
24232
24233 #include <Xm/Xm.h>
e6cc62c6
VS
24234
24235int
24236main ()
24237{
21d1c967
GD
24238
24239 int version;
24240 version = xmUseVersion;
e6cc62c6
VS
24241
24242 ;
24243 return 0;
24244}
24245_ACEOF
24246rm -f conftest.$ac_objext
24247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24248 (eval $ac_compile) 2>&5
e6cc62c6
VS
24249 ac_status=$?
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); } &&
789c5f4a 24252 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
24258
24259 echo "$as_me:$LINENO: result: found in default search path" >&5
24260echo "${ECHO_T}found in default search path" >&6
21d1c967 24261 COMPILED_X_PROGRAM=1
e6cc62c6 24262
d836ee96 24263else
e6cc62c6
VS
24264 echo "$as_me: failed program was:" >&5
24265sed 's/^/| /' conftest.$ac_ext >&5
24266
24267
24268 echo "$as_me:$LINENO: result: no" >&5
24269echo "${ECHO_T}no" >&6
24270 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24271echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24272 { (exit 1); exit 1; }; }
24273
24274
d836ee96 24275fi
789c5f4a 24276rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24277
24278 CFLAGS=$save_CFLAGS
21d1c967
GD
24279 fi
24280 fi
24281
e6cc62c6
VS
24282 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24283echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24284 libp_link=""
24285 libsm_ice_link=""
24286 libs_found=0
24287 for libp in "" " -lXp"; do
24288 if test "$libs_found" = "0"; then
7015ef3a 24289 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 24290 if test "$libs_found" = "0"; then
6a30f1c8 24291 save_LIBS="$LIBS"
93a543aa 24292 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24293 save_CFLAGS=$CFLAGS
24294 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24295
e6cc62c6 24296 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24297#line $LINENO "configure"
e6cc62c6
VS
24298/* confdefs.h. */
24299_ACEOF
24300cat confdefs.h >>conftest.$ac_ext
24301cat >>conftest.$ac_ext <<_ACEOF
24302/* end confdefs.h. */
17234b26 24303
6a30f1c8
MB
24304 #include <Xm/Xm.h>
24305 #include <Xm/List.h>
e6cc62c6
VS
24306
24307int
24308main ()
24309{
6a30f1c8
MB
24310
24311 XmString string = NULL;
24312 Widget w = NULL;
24313 int position = 0;
24314 XmListAddItem(w, string, position);
e6cc62c6
VS
24315
24316 ;
24317 return 0;
24318}
24319_ACEOF
24320rm -f conftest.$ac_objext conftest$ac_exeext
24321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24322 (eval $ac_link) 2>&5
e6cc62c6
VS
24323 ac_status=$?
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } &&
789c5f4a 24326 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; }; then
24332
6a30f1c8
MB
24333 libp_link="$libp"
24334 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24335 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24336echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24337 libs_found=1
e6cc62c6 24338
6a30f1c8 24339else
e6cc62c6
VS
24340 echo "$as_me: failed program was:" >&5
24341sed 's/^/| /' conftest.$ac_ext >&5
24342
24343
24344
6a30f1c8 24345fi
789c5f4a 24346rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24347
6a30f1c8 24348 LIBS="$save_LIBS"
dd0e4a90 24349 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24350 fi
24351 done
24352 fi
24353 done
24354
24355 if test "$libs_found" = "0"; then
e6cc62c6
VS
24356 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24357echo "${ECHO_T}can't find the right libraries" >&6
24358 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24359echo "$as_me: error: can't link a simple motif program" >&2;}
24360 { (exit 1); exit 1; }; }
6a30f1c8
MB
24361 fi
24362
da494b40
MB
24363 save_CFLAGS=$CFLAGS
24364 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24365 echo "$as_me:$LINENO: checking for Motif 2" >&5
24366echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24367 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24368#line $LINENO "configure"
e6cc62c6
VS
24369/* confdefs.h. */
24370_ACEOF
24371cat confdefs.h >>conftest.$ac_ext
24372cat >>conftest.$ac_ext <<_ACEOF
24373/* end confdefs.h. */
da494b40
MB
24374
24375 #include <Xm/Xm.h>
e6cc62c6
VS
24376
24377int
24378main ()
24379{
da494b40
MB
24380
24381 #if XmVersion < 2000
24382 #error "Not Motif 2"
24383 #endif
e6cc62c6
VS
24384
24385 ;
24386 return 0;
24387}
24388_ACEOF
24389rm -f conftest.$ac_objext
24390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24391 (eval $ac_compile) 2>&5
e6cc62c6
VS
24392 ac_status=$?
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } &&
789c5f4a 24395 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24398 ac_status=$?
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; }; then
24401
24402 cat >>confdefs.h <<\_ACEOF
da494b40 24403#define __WXMOTIF20__ 1
e6cc62c6
VS
24404_ACEOF
24405
24406 echo "$as_me:$LINENO: result: found" >&5
24407echo "${ECHO_T}found" >&6
da494b40 24408
da494b40 24409else
e6cc62c6
VS
24410 echo "$as_me: failed program was:" >&5
24411sed 's/^/| /' conftest.$ac_ext >&5
24412
24413
24414 cat >>confdefs.h <<\_ACEOF
da494b40 24415#define __WXMOTIF20__ 0
e6cc62c6
VS
24416_ACEOF
24417
24418 echo "$as_me:$LINENO: result: not found" >&5
24419echo "${ECHO_T}not found" >&6
da494b40 24420
da494b40 24421fi
789c5f4a 24422rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24423 CFLAGS=$save_CFLAGS
24424
93a543aa 24425 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24426 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24427 TOOLKIT=MOTIF
24428 GUIDIST=MOTIF_DIST
f7f78039
MB
24429 fi
24430
89fe663f
VZ
24431 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
24432 if test "$wxUSE_LIBXPM" = "sys"; then
24433 echo "$as_me:$LINENO: checking for Xpm library" >&5
24434echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24435
24436ac_find_libraries=
24437for ac_dir in $SEARCH_LIB /usr/lib;
24438 do
24439 for ac_extension in a so sl dylib; do
24440 if test -f "$ac_dir/libXpm.$ac_extension"; then
24441 ac_find_libraries=$ac_dir
24442 break 2
24443 fi
24444 done
24445 done
24446
24447 if test "$ac_find_libraries" != "" ; then
24448
24449 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24450 result=$?
24451 if test $result = 0; then
24452 ac_path_to_link=""
24453 else
24454 ac_path_to_link=" -L$ac_find_libraries"
24455 fi
24456
24457 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24458 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24459echo "${ECHO_T}found at $ac_find_libraries" >&6
24460
24461 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24462echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24463if test "${wx_cv_x11_xpm_h+set}" = set; then
24464 echo $ECHO_N "(cached) $ECHO_C" >&6
24465else
24466
24467 save_CFLAGS=$CFLAGS
24468 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24469
24470 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24471#line $LINENO "configure"
89fe663f
VZ
24472/* confdefs.h. */
24473_ACEOF
24474cat confdefs.h >>conftest.$ac_ext
24475cat >>conftest.$ac_ext <<_ACEOF
24476/* end confdefs.h. */
24477
24478 #include <X11/xpm.h>
24479
24480int
24481main ()
24482{
24483
24484 int version;
24485 version = XpmLibraryVersion();
24486
24487 ;
24488 return 0;
24489}
24490_ACEOF
24491rm -f conftest.$ac_objext
24492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24493 (eval $ac_compile) 2>&5
89fe663f
VZ
24494 ac_status=$?
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } &&
789c5f4a 24497 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
24498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24499 (eval $ac_try) 2>&5
24500 ac_status=$?
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); }; }; then
24503 wx_cv_x11_xpm_h=yes
24504else
24505 echo "$as_me: failed program was:" >&5
24506sed 's/^/| /' conftest.$ac_ext >&5
24507
24508wx_cv_x11_xpm_h=no
24509
24510fi
789c5f4a 24511rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
24512
24513 CFLAGS=$save_CFLAGS
24514
24515
24516fi
24517echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
24518echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
24519
24520 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 24521 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
24522 cat >>confdefs.h <<\_ACEOF
24523#define wxHAVE_LIB_XPM 1
24524_ACEOF
24525
24526 else
24527 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
24528echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
24529 fi
24530 fi
24531
24532 fi
f7f78039 24533
89fe663f
VZ
24534 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
24535echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
24536if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24538else
24539 ac_check_lib_save_LIBS=$LIBS
24540LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
24541cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24542#line $LINENO "configure"
89fe663f
VZ
24543/* confdefs.h. */
24544_ACEOF
24545cat confdefs.h >>conftest.$ac_ext
24546cat >>conftest.$ac_ext <<_ACEOF
24547/* end confdefs.h. */
24548
24549/* Override any gcc2 internal prototype to avoid an error. */
24550#ifdef __cplusplus
24551extern "C"
24552#endif
24553/* We use char because int might match the return type of a gcc2
24554 builtin and then its argument prototype would still apply. */
24555char XShapeQueryExtension ();
24556int
24557main ()
24558{
24559XShapeQueryExtension ();
24560 ;
24561 return 0;
24562}
24563_ACEOF
24564rm -f conftest.$ac_objext conftest$ac_exeext
24565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24566 (eval $ac_link) 2>&5
89fe663f
VZ
24567 ac_status=$?
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } &&
789c5f4a 24570 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
24571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; }; then
24576 ac_cv_lib_Xext_XShapeQueryExtension=yes
24577else
24578 echo "$as_me: failed program was:" >&5
24579sed 's/^/| /' conftest.$ac_ext >&5
24580
24581ac_cv_lib_Xext_XShapeQueryExtension=no
24582fi
789c5f4a 24583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
24584LIBS=$ac_check_lib_save_LIBS
24585fi
24586echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
24587echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
24588if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
24589
24590 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
24591 wxHAVE_XEXT_LIB=1
24592
24593fi
24594
24595
24596 if test "$wxHAVE_XEXT_LIB" = 1; then
24597 save_CFLAGS="$CFLAGS"
24598 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24599
24600 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 24601echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 24602 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24603#line $LINENO "configure"
e6cc62c6
VS
24604/* confdefs.h. */
24605_ACEOF
24606cat confdefs.h >>conftest.$ac_ext
24607cat >>conftest.$ac_ext <<_ACEOF
24608/* end confdefs.h. */
24609
89fe663f
VZ
24610 #include <X11/Xlib.h>
24611 #include <X11/extensions/shape.h>
e6cc62c6
VS
24612
24613int
24614main ()
24615{
f7f78039 24616
89fe663f
VZ
24617 int dummy1, dummy2;
24618 XShapeQueryExtension((Display*)NULL,
24619 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24620
24621 ;
24622 return 0;
24623}
24624_ACEOF
24625rm -f conftest.$ac_objext
24626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24627 (eval $ac_compile) 2>&5
e6cc62c6
VS
24628 ac_status=$?
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } &&
789c5f4a 24631 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24633 (eval $ac_try) 2>&5
24634 ac_status=$?
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); }; }; then
24637
89fe663f 24638 cat >>confdefs.h <<\_ACEOF
f7f78039 24639#define HAVE_XSHAPE 1
e6cc62c6
VS
24640_ACEOF
24641
89fe663f 24642 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 24643echo "${ECHO_T}found" >&6
f7f78039 24644
f7f78039 24645else
e6cc62c6
VS
24646 echo "$as_me: failed program was:" >&5
24647sed 's/^/| /' conftest.$ac_ext >&5
24648
24649
89fe663f 24650 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
24651echo "${ECHO_T}not found" >&6
24652
f7f78039 24653fi
789c5f4a 24654rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
24655 CFLAGS="$save_CFLAGS"
24656
24657 fi
21d1c967
GD
24658 fi
24659
24660 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
24661 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
24662echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
24663 if test "$GCC" = yes; then
24664 echo "$as_me:$LINENO: result: gcc" >&5
24665echo "${ECHO_T}gcc" >&6
24666 CPPFLAGS_PASCAL="-fpascal-strings"
24667 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
24668 echo "$as_me:$LINENO: result: xlc" >&5
24669echo "${ECHO_T}xlc" >&6
24670 CPPFLAGS_PASCAL="-qmacpstr"
24671 else
24672 echo "$as_me:$LINENO: result: none" >&5
24673echo "${ECHO_T}none" >&6
24674 fi
24675
24676 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24677
0c98a14e 24678 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24679 TOOLKIT=MAC
24680 GUIDIST=MACX_DIST
cf615ebb 24681 WXBASEPORT="_carbon"
21d1c967
GD
24682 fi
24683
ac0c4cc3
DE
24684 if test "$wxUSE_COCOA" = 1; then
24685 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24686 TOOLKIT=COCOA
24687 GUIDIST=COCOA_DIST
24688 fi
24689
21d1c967
GD
24690 if test "$wxUSE_PM" = 1; then
24691 TOOLKIT=PM
24692 GUIDIST=GTK_DIST
24693 fi
24694
24695 if test "$TOOLKIT" = "PM" ; then
24696 TOOLKIT_DIR="os2"
24697 else
24698 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24699 fi
24700
24701 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24702
24703 if test "$wxUSE_UNIVERSAL" = "yes"; then
24704 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24705
24706 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24707 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24708
24709 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24710 if test "$wxUSE_X11" = 1; then
24711 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24712 else
24713 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24714 fi
24715 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24716 WIDGET_SET=univ
24717 else
24718 ALL_OBJECTS="\$(GUIOBJS)"
24719 ALL_SOURCES="\$(ALL_SOURCES)"
24720 ALL_HEADERS="\$(ALL_HEADERS)"
24721 fi
24722
24723 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24724
24725 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24726 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24727 fi
24728
24729 if test "$wxUSE_HTML" = "yes"; then
24730 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24731 fi
24732
24733 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24734 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24735 fi
24736 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24737 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24738 fi
24739 if test "$wxUSE_LIBPNG" = "builtin" ; then
24740 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24741 fi
24742
24743 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24744 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24745else
21d1c967
GD
24746 USE_GUI=0
24747
24748 TOOLKIT_DIR="base"
24749
24750 if test "$USE_WIN32" = 1 ; then
24751 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24752 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24753
24754 TOOLKIT="MSW"
24755 else
24756 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24757 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24758 fi
24759
24760 ALL_SOURCES="\$(ALL_SOURCES)"
24761 ALL_HEADERS="\$(ALL_HEADERS)"
24762
24763 PORT_FILES="\${top_srcdir}/src/files.lst"
24764
24765 GUIDIST="BASE_DIST"
24766 DISTDIR="wxBase"
d836ee96
VZ
24767fi
24768
8284b0c5 24769
8647bec6
RG
24770
24771
24772IODBC_C_SRC=""
24773
24774
24775if test "$TOOLKIT" != "MSW" ; then
24776
bb41dcbe 24777 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24778
bb41dcbe 24779 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24780 echo "$as_me:$LINENO: checking for sql.h" >&5
24781echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24782if test "${ac_cv_header_sql_h+set}" = set; then
24783 echo $ECHO_N "(cached) $ECHO_C" >&6
24784fi
24785echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24786echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24787else
24788 # Is the header compilable?
24789echo "$as_me:$LINENO: checking sql.h usability" >&5
24790echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24791cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24792#line $LINENO "configure"
e6cc62c6
VS
24793/* confdefs.h. */
24794_ACEOF
24795cat confdefs.h >>conftest.$ac_ext
24796cat >>conftest.$ac_ext <<_ACEOF
24797/* end confdefs.h. */
24798$ac_includes_default
8647bec6 24799#include <sql.h>
e6cc62c6
VS
24800_ACEOF
24801rm -f conftest.$ac_objext
24802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24803 (eval $ac_compile) 2>&5
e6cc62c6
VS
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } &&
789c5f4a 24807 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 ac_header_compiler=yes
24814else
24815 echo "$as_me: failed program was:" >&5
24816sed 's/^/| /' conftest.$ac_ext >&5
24817
24818ac_header_compiler=no
24819fi
789c5f4a 24820rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
24821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24822echo "${ECHO_T}$ac_header_compiler" >&6
24823
24824# Is the header present?
24825echo "$as_me:$LINENO: checking sql.h presence" >&5
24826echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24827cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24828#line $LINENO "configure"
e6cc62c6
VS
24829/* confdefs.h. */
24830_ACEOF
24831cat confdefs.h >>conftest.$ac_ext
24832cat >>conftest.$ac_ext <<_ACEOF
24833/* end confdefs.h. */
24834#include <sql.h>
24835_ACEOF
24836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } >/dev/null; then
24844 if test -s conftest.err; then
24845 ac_cpp_err=$ac_c_preproc_warn_flag
24846 else
24847 ac_cpp_err=
24848 fi
24849else
24850 ac_cpp_err=yes
24851fi
24852if test -z "$ac_cpp_err"; then
24853 ac_header_preproc=yes
24854else
24855 echo "$as_me: failed program was:" >&5
24856sed 's/^/| /' conftest.$ac_ext >&5
24857
24858 ac_header_preproc=no
24859fi
24860rm -f conftest.err conftest.$ac_ext
24861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24862echo "${ECHO_T}$ac_header_preproc" >&6
24863
24864# So? What about this header?
789c5f4a
VZ
24865case $ac_header_compiler:$ac_header_preproc in
24866 yes:no )
e6cc62c6
VS
24867 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24868echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
24869 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24870echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24871 (
24872 cat <<\_ASBOX
24873## ------------------------------------ ##
24874## Report this to bug-autoconf@gnu.org. ##
24875## ------------------------------------ ##
24876_ASBOX
24877 ) |
24878 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 24879 ;;
789c5f4a 24880 no:yes )
e6cc62c6
VS
24881 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24882echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
24883 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24884echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
24885 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24886echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24887 (
24888 cat <<\_ASBOX
789c5f4a
VZ
24889## ------------------------------------ ##
24890## Report this to bug-autoconf@gnu.org. ##
24891## ------------------------------------ ##
e6cc62c6
VS
24892_ASBOX
24893 ) |
24894 sed "s/^/$as_me: WARNING: /" >&2
24895 ;;
24896esac
24897echo "$as_me:$LINENO: checking for sql.h" >&5
24898echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24899if test "${ac_cv_header_sql_h+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24901else
e6cc62c6
VS
24902 ac_cv_header_sql_h=$ac_header_preproc
24903fi
24904echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24905echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24906
bb41dcbe
VS
24907fi
24908if test $ac_cv_header_sql_h = yes; then
24909 found_sql_h=1
8647bec6
RG
24910fi
24911
e6cc62c6 24912
bb41dcbe 24913 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
24914 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
24915echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
24916if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 24917 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24918else
bb41dcbe 24919 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24920LIBS="-liodbc $LIBS"
e6cc62c6 24921cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24922#line $LINENO "configure"
e6cc62c6
VS
24923/* confdefs.h. */
24924_ACEOF
24925cat confdefs.h >>conftest.$ac_ext
24926cat >>conftest.$ac_ext <<_ACEOF
24927/* end confdefs.h. */
24928
8647bec6 24929/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24930#ifdef __cplusplus
24931extern "C"
24932#endif
8647bec6 24933/* We use char because int might match the return type of a gcc2
e6cc62c6 24934 builtin and then its argument prototype would still apply. */
e46d2a18 24935char SQLAllocEnv ();
e6cc62c6
VS
24936int
24937main ()
24938{
e46d2a18 24939SQLAllocEnv ();
e6cc62c6
VS
24940 ;
24941 return 0;
24942}
24943_ACEOF
24944rm -f conftest.$ac_objext conftest$ac_exeext
24945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24946 (eval $ac_link) 2>&5
e6cc62c6
VS
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } &&
789c5f4a 24950 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
e46d2a18 24956 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 24957else
e6cc62c6
VS
24958 echo "$as_me: failed program was:" >&5
24959sed 's/^/| /' conftest.$ac_ext >&5
24960
e46d2a18 24961ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 24962fi
789c5f4a 24963rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24964LIBS=$ac_check_lib_save_LIBS
24965fi
e46d2a18
VS
24966echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
24967echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
24968if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24969 ODBC_LINK=" -liodbc"
24970else
24971
e46d2a18
VS
24972 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
24973echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
24974if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24976else
24977 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24978LIBS="-lunixodbc $LIBS"
bb41dcbe 24979cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24980#line $LINENO "configure"
e6cc62c6
VS
24981/* confdefs.h. */
24982_ACEOF
24983cat confdefs.h >>conftest.$ac_ext
24984cat >>conftest.$ac_ext <<_ACEOF
24985/* end confdefs.h. */
24986
8647bec6 24987/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24988#ifdef __cplusplus
24989extern "C"
24990#endif
8647bec6 24991/* We use char because int might match the return type of a gcc2
e6cc62c6 24992 builtin and then its argument prototype would still apply. */
e46d2a18 24993char SQLAllocEnv ();
e6cc62c6
VS
24994int
24995main ()
24996{
e46d2a18 24997SQLAllocEnv ();
e6cc62c6
VS
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002rm -f conftest.$ac_objext conftest$ac_exeext
25003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25004 (eval $ac_link) 2>&5
e6cc62c6
VS
25005 ac_status=$?
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } &&
789c5f4a 25008 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); }; }; then
e46d2a18 25014 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 25015else
e6cc62c6
VS
25016 echo "$as_me: failed program was:" >&5
25017sed 's/^/| /' conftest.$ac_ext >&5
25018
e46d2a18 25019ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 25020fi
789c5f4a 25021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 25022LIBS=$ac_check_lib_save_LIBS
e6cc62c6 25023fi
e46d2a18
VS
25024echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
25025echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
25026if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25027 ODBC_LINK=" -lunixodbc"
25028else
25029
e46d2a18
VS
25030 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
25031echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
25032if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
25033 echo $ECHO_N "(cached) $ECHO_C" >&6
25034else
25035 ac_check_lib_save_LIBS=$LIBS
e46d2a18 25036LIBS="-lodbc $LIBS"
bb41dcbe 25037cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25038#line $LINENO "configure"
bb41dcbe
VS
25039/* confdefs.h. */
25040_ACEOF
25041cat confdefs.h >>conftest.$ac_ext
25042cat >>conftest.$ac_ext <<_ACEOF
25043/* end confdefs.h. */
e6cc62c6 25044
bb41dcbe
VS
25045/* Override any gcc2 internal prototype to avoid an error. */
25046#ifdef __cplusplus
25047extern "C"
25048#endif
25049/* We use char because int might match the return type of a gcc2
25050 builtin and then its argument prototype would still apply. */
e46d2a18 25051char SQLAllocEnv ();
bb41dcbe
VS
25052int
25053main ()
25054{
e46d2a18 25055SQLAllocEnv ();
bb41dcbe
VS
25056 ;
25057 return 0;
25058}
25059_ACEOF
25060rm -f conftest.$ac_objext conftest$ac_exeext
25061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25062 (eval $ac_link) 2>&5
bb41dcbe
VS
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
789c5f4a 25066 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; }; then
e46d2a18 25072 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 25073else
bb41dcbe
VS
25074 echo "$as_me: failed program was:" >&5
25075sed 's/^/| /' conftest.$ac_ext >&5
25076
e46d2a18 25077ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 25078fi
789c5f4a 25079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
25080LIBS=$ac_check_lib_save_LIBS
25081fi
e46d2a18
VS
25082echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
25083echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
25084if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25085 ODBC_LINK=" -lodbc"
25086fi
25087
25088
25089fi
e6cc62c6 25090
e6cc62c6 25091
8647bec6 25092fi
e6cc62c6 25093
fd3d7534 25094 fi
bb41dcbe
VS
25095 if test "x$ODBC_LINK" = "x" ; then
25096 if test "$wxUSE_ODBC" = "sys" ; then
25097 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25098echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25099 { (exit 1); exit 1; }; }
25100 else
25101 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25102echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25103 wxUSE_ODBC=builtin
25104 fi
25105 else
25106 wxUSE_ODBC=sys
8647bec6 25107 fi
8647bec6 25108 fi
bb41dcbe
VS
25109 if test "$wxUSE_ODBC" != "no" ; then
25110 cat >>confdefs.h <<\_ACEOF
25111#define wxUSE_ODBC 1
25112_ACEOF
e6cc62c6 25113
0bdb08e7
VS
25114 if test "$wxUSE_ODBC" = "builtin" ; then
25115 cat >>confdefs.h <<\_ACEOF
25116#define wxUSE_BUILTIN_IODBC 1
25117_ACEOF
25118
25119 fi
bb41dcbe
VS
25120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25121
25122 WXODBCFLAG="-D_IODBC_"
25123 fi
6232543b 25124fi
21d1c967
GD
25125
25126if test "$wxUSE_REGEX" = "builtin" ; then
25127 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 25128fi
21d1c967
GD
25129if test "$wxUSE_ZLIB" = "builtin" ; then
25130 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
25131fi
25132
74500461
VS
25133if test "$wxUSE_DISPLAY" = "yes"; then
25134 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
25135 echo "$as_me:$LINENO: checking for Xinerama" >&5
25136echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
25137
25138ac_find_libraries=
25139for ac_dir in $SEARCH_LIB /usr/lib;
25140 do
25141 for ac_extension in a so sl dylib; do
25142 if test -f "$ac_dir/libXinerama.$ac_extension"; then
25143 ac_find_libraries=$ac_dir
25144 break 2
25145 fi
25146 done
25147 done
25148
25149 if test "$ac_find_libraries" != "" ; then
25150
25151 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25152 result=$?
25153 if test $result = 0; then
25154 ac_path_to_link=""
25155 else
25156 ac_path_to_link=" -L$ac_find_libraries"
25157 fi
25158
25159 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25160 LDFLAGS="$LDFLAGS $ac_path_to_link"
25161 fi
25162 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
25163 echo "$as_me:$LINENO: result: yes" >&5
25164echo "${ECHO_T}yes" >&6
505c8ccd
VS
25165
25166 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
25167echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
25168
25169ac_find_libraries=
25170for ac_dir in $SEARCH_LIB /usr/lib;
25171 do
25172 for ac_extension in a so sl dylib; do
25173 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
25174 ac_find_libraries=$ac_dir
25175 break 2
25176 fi
25177 done
25178 done
25179
25180 if test "$ac_find_libraries" != "" ; then
25181 echo "$as_me:$LINENO: result: yes" >&5
25182echo "${ECHO_T}yes" >&6
25183
25184for ac_header in X11/extensions/xf86vmode.h
25185do
25186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25187echo "$as_me:$LINENO: checking for $ac_header" >&5
25188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25189if eval "test \"\${$as_ac_Header+set}\" = set"; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191else
25192 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25193#line $LINENO "configure"
505c8ccd
VS
25194/* confdefs.h. */
25195_ACEOF
25196cat confdefs.h >>conftest.$ac_ext
25197cat >>conftest.$ac_ext <<_ACEOF
25198/* end confdefs.h. */
25199
25200 #if HAVE_X11_XLIB_H
25201 #include <X11/Xlib.h>
25202 #endif
25203
25204
25205#include <$ac_header>
25206_ACEOF
25207rm -f conftest.$ac_objext
25208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25209 (eval $ac_compile) 2>&5
505c8ccd 25210 ac_status=$?
505c8ccd
VS
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
789c5f4a 25213 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 eval "$as_ac_Header=yes"
25220else
25221 echo "$as_me: failed program was:" >&5
25222sed 's/^/| /' conftest.$ac_ext >&5
25223
25224eval "$as_ac_Header=no"
25225fi
789c5f4a 25226rm -f conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
25227fi
25228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25230if test `eval echo '${'$as_ac_Header'}'` = yes; then
25231 cat >>confdefs.h <<_ACEOF
25232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25233_ACEOF
25234
25235 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
25236
25237fi
25238
25239done
25240
25241 else
25242 echo "$as_me:$LINENO: result: no" >&5
25243echo "${ECHO_T}no" >&6
25244 fi
25245
74500461
VS
25246 else
25247 echo "$as_me:$LINENO: result: no" >&5
25248echo "${ECHO_T}no" >&6
25249 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
25250echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
25251 wxUSE_DISPLAY="no"
25252 fi
25253 fi
25254fi
25255
8284b0c5 25256
4d264332 25257USE_OPENGL=0
21d1c967 25258if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 25259 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
25260 OPENGL_LIBS="-framework OpenGL -framework AGL"
25261 elif test "$wxUSE_MSW" = 1; then
25262 OPENGL_LIBS="-lopengl32 -lglu32"
25263 else
01aa5863
VS
25264
25265
25266ac_find_includes=
25267for ac_dir in $SEARCH_INCLUDE /usr/include;
25268 do
25269 if test -f "$ac_dir/GL/gl.h"; then
25270 ac_find_includes=$ac_dir
25271 break
25272 fi
25273 done
25274
25275 if test "$ac_find_includes" != "" ; then
25276 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25277echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
25278
25279 if test "x$ac_find_includes" = "x/usr/include"; then
25280 ac_path_to_include=""
25281 else
25282 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25283 result=$?
25284 if test $result = 0; then
25285 ac_path_to_include=""
25286 else
25287 ac_path_to_include=" -I$ac_find_includes"
25288 fi
25289 fi
25290
25291 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
25292 fi
25293
e6cc62c6
VS
25294 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25295 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25296echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25297if test "${ac_cv_header_GL_gl_h+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25299fi
25300echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25301echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25302else
25303 # Is the header compilable?
25304echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25305echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25306cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25307#line $LINENO "configure"
e6cc62c6
VS
25308/* confdefs.h. */
25309_ACEOF
25310cat confdefs.h >>conftest.$ac_ext
25311cat >>conftest.$ac_ext <<_ACEOF
25312/* end confdefs.h. */
25313$ac_includes_default
21d1c967 25314#include <GL/gl.h>
e6cc62c6
VS
25315_ACEOF
25316rm -f conftest.$ac_objext
25317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25318 (eval $ac_compile) 2>&5
e6cc62c6
VS
25319 ac_status=$?
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
789c5f4a 25322 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; }; then
25328 ac_header_compiler=yes
25329else
25330 echo "$as_me: failed program was:" >&5
25331sed 's/^/| /' conftest.$ac_ext >&5
25332
25333ac_header_compiler=no
25334fi
789c5f4a 25335rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
25336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25337echo "${ECHO_T}$ac_header_compiler" >&6
25338
25339# Is the header present?
25340echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25341echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25342cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25343#line $LINENO "configure"
e6cc62c6
VS
25344/* confdefs.h. */
25345_ACEOF
25346cat confdefs.h >>conftest.$ac_ext
25347cat >>conftest.$ac_ext <<_ACEOF
25348/* end confdefs.h. */
25349#include <GL/gl.h>
25350_ACEOF
25351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25353 ac_status=$?
25354 grep -v '^ *+' conftest.er1 >conftest.err
25355 rm -f conftest.er1
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } >/dev/null; then
25359 if test -s conftest.err; then
25360 ac_cpp_err=$ac_c_preproc_warn_flag
25361 else
25362 ac_cpp_err=
25363 fi
25364else
25365 ac_cpp_err=yes
25366fi
25367if test -z "$ac_cpp_err"; then
25368 ac_header_preproc=yes
25369else
25370 echo "$as_me: failed program was:" >&5
25371sed 's/^/| /' conftest.$ac_ext >&5
25372
25373 ac_header_preproc=no
25374fi
25375rm -f conftest.err conftest.$ac_ext
25376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25377echo "${ECHO_T}$ac_header_preproc" >&6
25378
25379# So? What about this header?
789c5f4a
VZ
25380case $ac_header_compiler:$ac_header_preproc in
25381 yes:no )
e6cc62c6
VS
25382 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25383echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
25384 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25385echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25386 (
25387 cat <<\_ASBOX
25388## ------------------------------------ ##
25389## Report this to bug-autoconf@gnu.org. ##
25390## ------------------------------------ ##
25391_ASBOX
25392 ) |
25393 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 25394 ;;
789c5f4a 25395 no:yes )
e6cc62c6
VS
25396 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25397echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
25398 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25399echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
25400 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25401echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25402 (
25403 cat <<\_ASBOX
789c5f4a
VZ
25404## ------------------------------------ ##
25405## Report this to bug-autoconf@gnu.org. ##
25406## ------------------------------------ ##
e6cc62c6
VS
25407_ASBOX
25408 ) |
25409 sed "s/^/$as_me: WARNING: /" >&2
25410 ;;
25411esac
25412echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25413echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25414if test "${ac_cv_header_GL_gl_h+set}" = set; then
25415 echo $ECHO_N "(cached) $ECHO_C" >&6
25416else
25417 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25418fi
e6cc62c6
VS
25419echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25420echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25421
698dcdb6 25422fi
e6cc62c6
VS
25423if test $ac_cv_header_GL_gl_h = yes; then
25424
89e3b3e4
VZ
25425 found_gl=0
25426
e6cc62c6
VS
25427 echo "$as_me:$LINENO: checking for -lGL" >&5
25428echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25429
21d1c967 25430ac_find_libraries=
2b5f62a0 25431for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25432 do
25433 for ac_extension in a so sl dylib; do
25434 if test -f "$ac_dir/libGL.$ac_extension"; then
25435 ac_find_libraries=$ac_dir
25436 break 2
25437 fi
25438 done
25439 done
25440
25441 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25442
21d1c967
GD
25443 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25444 result=$?
25445 if test $result = 0; then
25446 ac_path_to_link=""
25447 else
25448 ac_path_to_link=" -L$ac_find_libraries"
25449 fi
25450
89e3b3e4
VZ
25451 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25452 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25453 fi
89e3b3e4 25454
e6cc62c6 25455
89e3b3e4
VZ
25456ac_find_libraries=
25457for ac_dir in $SEARCH_LIB /usr/lib;
25458 do
25459 for ac_extension in a so sl dylib; do
25460 if test -f "$ac_dir/libGLU.$ac_extension"; then
25461 ac_find_libraries=$ac_dir
25462 break 2
25463 fi
25464 done
25465 done
25466
25467 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25468
89e3b3e4
VZ
25469 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25470 result=$?
25471 if test $result = 0; then
25472 ac_path_to_link=""
25473 else
25474 ac_path_to_link=" -L$ac_find_libraries"
25475 fi
25476
25477 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25478 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25479 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25480 fi
25481
25482 found_gl=1
25483 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25484 echo "$as_me:$LINENO: result: yes" >&5
25485echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25486 fi
25487 fi
25488
bb41dcbe 25489 if test "$found_gl" != 1; then
e6cc62c6
VS
25490 echo "$as_me:$LINENO: result: no" >&5
25491echo "${ECHO_T}no" >&6
25492 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25493echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25494
21d1c967 25495ac_find_libraries=
2b5f62a0 25496for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25497 do
25498 for ac_extension in a so sl dylib; do
25499 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25500 ac_find_libraries=$ac_dir
25501 break 2
25502 fi
25503 done
25504 done
25505
25506 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25507
21d1c967
GD
25508 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25509 result=$?
25510 if test $result = 0; then
25511 ac_path_to_link=""
25512 else
25513 ac_path_to_link=" -L$ac_find_libraries"
25514 fi
25515
25516 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25517 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25518 echo "$as_me:$LINENO: result: yes" >&5
25519echo "${ECHO_T}yes" >&6
21d1c967 25520 else
e6cc62c6
VS
25521 echo "$as_me:$LINENO: result: no" >&5
25522echo "${ECHO_T}no" >&6
21d1c967
GD
25523 fi
25524 fi
e6cc62c6 25525
5c6fa7d2 25526fi
52127426 25527
8284b0c5 25528
e6cc62c6 25529
21d1c967 25530 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25531 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25532echo "$as_me: error: OpenGL libraries not available" >&2;}
25533 { (exit 1); exit 1; }; }
21d1c967
GD
25534 fi
25535 fi
90dd450c 25536
21d1c967 25537 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25538 USE_OPENGL=1
e6cc62c6 25539 cat >>confdefs.h <<\_ACEOF
21d1c967 25540#define wxUSE_OPENGL 1
e6cc62c6 25541_ACEOF
21d1c967 25542
e6cc62c6 25543 cat >>confdefs.h <<\_ACEOF
21d1c967 25544#define wxUSE_GLCANVAS 1
e6cc62c6 25545_ACEOF
21d1c967 25546
520755bb 25547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25548 fi
10f2d63a 25549fi
21d1c967
GD
25550
25551if test -z "$TOOLKIT_VPATH" ; then
25552 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25553fi
21d1c967
GD
25554
25555if test -n "$TOOLKIT" ; then
25556 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25557fi
25558
fe0895cf 25559UNICODE=0
21d1c967
GD
25560lib_unicode_suffix=
25561if test "$wxUSE_UNICODE" = "yes"; then
25562 lib_unicode_suffix=u
fe0895cf 25563 UNICODE=1
90dd450c 25564fi
698dcdb6 25565
21d1c967 25566lib_debug_suffix=
6c67131a 25567DEBUG_FLAG=0
21d1c967
GD
25568if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25569 lib_debug_suffix=d
6c67131a
VS
25570 DEBUG_FLAG=1
25571fi
25572
25573DEBUG_INFO=0
25574if test "$wxUSE_DEBUG_INFO" = "yes"; then
25575 DEBUG_INFO=1
21d1c967 25576fi
698dcdb6 25577
1cbb95a2 25578WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25579
25580TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25581TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25582
25583if test "$cross_compiling" = "yes"; then
25584 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25585 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25586 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25587fi
25588
25589WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25590WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25591WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25592WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25593
25594WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25595WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25596
25597WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25598WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25599WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25600WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25601
25602case "${host}" in
25603 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25604 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25605 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25606 ;;
25607
25608 *-*-darwin* )
e6cc62c6 25609
05159a27
GD
25610 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25611 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25612
25613 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25614 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25615 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25616 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25617
09d3439c
VZ
25618 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
25619 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 25620 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25621 fi
25622 ;;
25623esac
25624
25625WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25626WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25627
25628WXCONFIG_LIBS="-l${WX_LIBRARY}"
25629WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25630
25631if test "$wxUSE_OPENGL" = "yes"; then
25632 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25633 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25634fi
25635
8284b0c5
MB
25636
25637
21d1c967
GD
25638if test "$wxUSE_SHARED" = "yes"; then
25639 case "${host}" in
25640 *-pc-os2_emx | *-pc-os2-emx | \
25641 *-pc-msdosdjgpp )
25642 wxUSE_SHARED=no
e6cc62c6
VS
25643 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25644echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25645 ;;
25646 esac
25647fi
25648
fe0895cf 25649SHARED=0
2b5f62a0 25650if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25651 SHARED=1
2b5f62a0 25652
e6cc62c6 25653
2b5f62a0
VZ
25654 found_versioning=no
25655
e6cc62c6 25656
2b5f62a0 25657 if test $found_versioning = no ; then
e6cc62c6
VS
25658 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25659echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25660if test "${wx_cv_version_script+set}" = set; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25662else
e6cc62c6 25663
2b5f62a0
VZ
25664 echo "VER_1 { *; };" >conftest.sym
25665 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25666
2b5f62a0
VZ
25667 if { ac_try='
25668 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25669 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25675 if test -s conftest.stderr ; then
25676 wx_cv_version_script=no
25677 else
25678 wx_cv_version_script=yes
25679 fi
25680 else
25681 wx_cv_version_script=no
25682 fi
25683 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25684
e6cc62c6
VS
25685fi
25686echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25687echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25688 if test $wx_cv_version_script = yes ; then
e6cc62c6 25689 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25690 fi
25691 fi
21d1c967 25692
21d1c967 25693
21d1c967 25694 case "${host}" in
fe0895cf 25695 *-*-linux* | *-*-gnu* )
e6cc62c6 25696 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25697 ;;
21d1c967
GD
25698
25699 *-*-solaris2* )
25700 if test "$GCC" = yes ; then
25701 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25702
25703 saveLdflags="$LDFLAGS"
25704 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25705 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25706echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25707 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25708#line $LINENO "configure"
e6cc62c6
VS
25709/* confdefs.h. */
25710_ACEOF
25711cat confdefs.h >>conftest.$ac_ext
25712cat >>conftest.$ac_ext <<_ACEOF
25713/* end confdefs.h. */
25714
25715int
25716main ()
25717{
fe0895cf 25718
e6cc62c6
VS
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723rm -f conftest.$ac_objext conftest$ac_exeext
25724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25725 (eval $ac_link) 2>&5
e6cc62c6
VS
25726 ac_status=$?
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
789c5f4a 25729 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731 (eval $ac_try) 2>&5
25732 ac_status=$?
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); }; }; then
25735
25736 echo "$as_me:$LINENO: result: yes" >&5
25737echo "${ECHO_T}yes" >&6
25738 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25739
25740else
25741 echo "$as_me: failed program was:" >&5
25742sed 's/^/| /' conftest.$ac_ext >&5
25743
25744
25745 echo "$as_me:$LINENO: result: no" >&5
25746echo "${ECHO_T}no" >&6
25747 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25748echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25749 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 25750 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25751#line $LINENO "configure"
e6cc62c6
VS
25752/* confdefs.h. */
25753_ACEOF
25754cat confdefs.h >>conftest.$ac_ext
25755cat >>conftest.$ac_ext <<_ACEOF
25756/* end confdefs.h. */
25757
25758int
25759main ()
25760{
25761
25762 ;
25763 return 0;
25764}
25765_ACEOF
25766rm -f conftest.$ac_objext conftest$ac_exeext
25767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25768 (eval $ac_link) 2>&5
e6cc62c6
VS
25769 ac_status=$?
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } &&
789c5f4a 25772 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; }; then
25778
25779 echo "$as_me:$LINENO: result: yes" >&5
25780echo "${ECHO_T}yes" >&6
25781 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25782else
25783 echo "$as_me: failed program was:" >&5
25784sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25785
fe0895cf 25786
e6cc62c6
VS
25787 echo "$as_me:$LINENO: result: no" >&5
25788echo "${ECHO_T}no" >&6
25789
fe0895cf 25790fi
789c5f4a 25791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25792
25793fi
789c5f4a 25794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25795 LDFLAGS="$saveLdflags"
21d1c967
GD
25796 else
25797 SHARED_LD="${CXX} -G -o"
25798 PIC_FLAG="-KPIC"
e6cc62c6 25799 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25800 fi
25801 ;;
0f1bc9c2
VS
25802
25803 powerpc-*-darwin* )
ef0add05
VS
25804 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25805 cat <<EOF >change-install-names
25806#!/bin/sh
25807libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25808inst_cmd="install_name_tool "
25809for i in \${libnames} ; do
25810 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25811done
25812\${inst_cmd} \${3}
25813EOF
25814 chmod +x change-install-names
0f1bc9c2
VS
25815 ;;
25816
21d1c967
GD
25817 esac
25818
25819 if test "x$WX_TARGET_LIBRARY" = "x"; then
25820 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25821 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25822 fi
25823
25824 WX_TARGET_LIBRARY_TYPE="so"
25825 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25826fi
10f2d63a 25827
21d1c967
GD
25828if test "$wxUSE_SHARED" = "no"; then
25829
25830 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25831 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25832 fi
25833
ac0c4cc3 25834 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25835 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25836 fi
25837
25838 if test "$wxUSE_OPENGL" = "yes"; then
25839 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25840 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25841 else
25842 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25843 fi
25844
25845 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25846 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25847
25848 WX_TARGET_LIBRARY_TYPE="a"
25849 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25850
25851 STATIC_FLAG="yes"
25852else
25853 STATIC_FLAG="no"
90dd450c 25854fi
1e487827 25855
09d3439c 25856if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 25857 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25858 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25859 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 25860
21d1c967
GD
25861 # Extract the first word of "Rez", so it can be a program name with args.
25862set dummy Rez; ac_word=$2
e6cc62c6
VS
25863echo "$as_me:$LINENO: checking for $ac_word" >&5
25864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25865if test "${ac_cv_prog_RESCOMP+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25867else
21d1c967
GD
25868 if test -n "$RESCOMP"; then
25869 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25870else
e6cc62c6
VS
25871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25872for as_dir in $PATH
25873do
25874 IFS=$as_save_IFS
25875 test -z "$as_dir" && as_dir=.
25876 for ac_exec_ext in '' $ac_executable_extensions; do
25877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25878 ac_cv_prog_RESCOMP="Rez"
25879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25880 break 2
25881 fi
25882done
25883done
25884
21d1c967 25885 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25886fi
b93d0d08 25887fi
e6cc62c6 25888RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25889if test -n "$RESCOMP"; then
e6cc62c6
VS
25890 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25891echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25892else
e6cc62c6
VS
25893 echo "$as_me:$LINENO: result: no" >&5
25894echo "${ECHO_T}no" >&6
90dd450c 25895fi
b93d0d08 25896
21d1c967
GD
25897 # Extract the first word of "DeRez", so it can be a program name with args.
25898set dummy DeRez; ac_word=$2
e6cc62c6
VS
25899echo "$as_me:$LINENO: checking for $ac_word" >&5
25900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25901if test "${ac_cv_prog_DEREZ+set}" = set; then
25902 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25903else
21d1c967
GD
25904 if test -n "$DEREZ"; then
25905 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25906else
e6cc62c6
VS
25907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25908for as_dir in $PATH
25909do
25910 IFS=$as_save_IFS
25911 test -z "$as_dir" && as_dir=.
25912 for ac_exec_ext in '' $ac_executable_extensions; do
25913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25914 ac_cv_prog_DEREZ="DeRez"
25915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25916 break 2
25917 fi
25918done
25919done
25920
21d1c967 25921 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25922fi
90dd450c 25923fi
e6cc62c6 25924DEREZ=$ac_cv_prog_DEREZ
21d1c967 25925if test -n "$DEREZ"; then
e6cc62c6
VS
25926 echo "$as_me:$LINENO: result: $DEREZ" >&5
25927echo "${ECHO_T}$DEREZ" >&6
90dd450c 25928else
e6cc62c6
VS
25929 echo "$as_me:$LINENO: result: no" >&5
25930echo "${ECHO_T}no" >&6
3a922bb4 25931fi
698dcdb6 25932
36825681
GD
25933 # Extract the first word of "SetFile", so it can be a program name with args.
25934set dummy SetFile; ac_word=$2
e6cc62c6
VS
25935echo "$as_me:$LINENO: checking for $ac_word" >&5
25936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25937if test "${ac_cv_prog_SETFILE+set}" = set; then
25938 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25939else
25940 if test -n "$SETFILE"; then
25941 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25942else
e6cc62c6
VS
25943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25944for as_dir in $PATH
25945do
25946 IFS=$as_save_IFS
25947 test -z "$as_dir" && as_dir=.
25948 for ac_exec_ext in '' $ac_executable_extensions; do
25949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25950 ac_cv_prog_SETFILE="SetFile"
25951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25952 break 2
25953 fi
25954done
25955done
25956
36825681
GD
25957 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25958fi
25959fi
e6cc62c6 25960SETFILE=$ac_cv_prog_SETFILE
36825681 25961if test -n "$SETFILE"; then
e6cc62c6
VS
25962 echo "$as_me:$LINENO: result: $SETFILE" >&5
25963echo "${ECHO_T}$SETFILE" >&6
36825681 25964else
e6cc62c6
VS
25965 echo "$as_me:$LINENO: result: no" >&5
25966echo "${ECHO_T}no" >&6
36825681
GD
25967fi
25968
e6cc62c6 25969
09d3439c 25970 MACSETFILE="\$(SETFILE)"
64440d77 25971
09d3439c
VZ
25972 if test "$wxUSE_MAC" = 1; then
25973 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 25974
09d3439c
VZ
25975 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25976 else
25977 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25978 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25979 fi
64440d77 25980else
09d3439c
VZ
25981 MACSETFILE="@#"
25982 MACRESWXCONFIG="#"
64440d77 25983
09d3439c 25984 if test "$wxUSE_PM" = 1; then
36825681 25985 MACRESCOMP="emxbind -ep"
09d3439c
VZ
25986 else
25987 MACRESCOMP="@#"
90dd450c 25988 fi
4f14bcd8 25989fi
10f2d63a 25990
8284b0c5 25991
f93ca9fd 25992
e6cc62c6
VS
25993echo "$as_me:$LINENO: checking for mode_t" >&5
25994echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25995if test "${ac_cv_type_mode_t+set}" = set; then
25996 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25997else
e6cc62c6 25998 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25999#line $LINENO "configure"
e6cc62c6
VS
26000/* confdefs.h. */
26001_ACEOF
26002cat confdefs.h >>conftest.$ac_ext
26003cat >>conftest.$ac_ext <<_ACEOF
26004/* end confdefs.h. */
26005$ac_includes_default
26006int
26007main ()
26008{
26009if ((mode_t *) 0)
26010 return 0;
26011if (sizeof (mode_t))
26012 return 0;
26013 ;
26014 return 0;
26015}
26016_ACEOF
26017rm -f conftest.$ac_objext
26018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26019 (eval $ac_compile) 2>&5
e6cc62c6
VS
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } &&
789c5f4a 26023 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); }; }; then
26029 ac_cv_type_mode_t=yes
a0b9e27f 26030else
e6cc62c6
VS
26031 echo "$as_me: failed program was:" >&5
26032sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 26033
e6cc62c6 26034ac_cv_type_mode_t=no
a0b9e27f 26035fi
789c5f4a 26036rm -f conftest.$ac_objext conftest.$ac_ext
52127426 26037fi
e6cc62c6
VS
26038echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26039echo "${ECHO_T}$ac_cv_type_mode_t" >&6
26040if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
26041 :
26042else
a0b9e27f 26043
e6cc62c6
VS
26044cat >>confdefs.h <<_ACEOF
26045#define mode_t int
26046_ACEOF
8284b0c5
MB
26047
26048fi
26049
e6cc62c6
VS
26050echo "$as_me:$LINENO: checking for off_t" >&5
26051echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26052if test "${ac_cv_type_off_t+set}" = set; then
26053 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26054else
e6cc62c6 26055 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26056#line $LINENO "configure"
e6cc62c6
VS
26057/* confdefs.h. */
26058_ACEOF
26059cat confdefs.h >>conftest.$ac_ext
26060cat >>conftest.$ac_ext <<_ACEOF
26061/* end confdefs.h. */
26062$ac_includes_default
26063int
26064main ()
26065{
26066if ((off_t *) 0)
26067 return 0;
26068if (sizeof (off_t))
26069 return 0;
26070 ;
26071 return 0;
26072}
26073_ACEOF
26074rm -f conftest.$ac_objext
26075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26076 (eval $ac_compile) 2>&5
e6cc62c6
VS
26077 ac_status=$?
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
789c5f4a 26080 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; }; then
26086 ac_cv_type_off_t=yes
5c6fa7d2 26087else
e6cc62c6
VS
26088 echo "$as_me: failed program was:" >&5
26089sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 26090
e6cc62c6 26091ac_cv_type_off_t=no
8284b0c5 26092fi
789c5f4a 26093rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26094fi
e6cc62c6
VS
26095echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26096echo "${ECHO_T}$ac_cv_type_off_t" >&6
26097if test $ac_cv_type_off_t = yes; then
26098 :
247f5006
VZ
26099else
26100
e6cc62c6 26101cat >>confdefs.h <<_ACEOF
90dd450c 26102#define off_t long
e6cc62c6 26103_ACEOF
10f2d63a 26104
90dd450c 26105fi
10f2d63a 26106
e6cc62c6
VS
26107echo "$as_me:$LINENO: checking for pid_t" >&5
26108echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26109if test "${ac_cv_type_pid_t+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26111else
e6cc62c6 26112 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26113#line $LINENO "configure"
e6cc62c6
VS
26114/* confdefs.h. */
26115_ACEOF
26116cat confdefs.h >>conftest.$ac_ext
26117cat >>conftest.$ac_ext <<_ACEOF
26118/* end confdefs.h. */
26119$ac_includes_default
26120int
26121main ()
26122{
26123if ((pid_t *) 0)
26124 return 0;
26125if (sizeof (pid_t))
26126 return 0;
26127 ;
26128 return 0;
26129}
26130_ACEOF
26131rm -f conftest.$ac_objext
26132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26133 (eval $ac_compile) 2>&5
e6cc62c6
VS
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } &&
789c5f4a 26137 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26140 ac_status=$?
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; }; then
90dd450c 26143 ac_cv_type_pid_t=yes
698dcdb6 26144else
e6cc62c6
VS
26145 echo "$as_me: failed program was:" >&5
26146sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26147
e6cc62c6
VS
26148ac_cv_type_pid_t=no
26149fi
789c5f4a 26150rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26151fi
e6cc62c6
VS
26152echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26153echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26154if test $ac_cv_type_pid_t = yes; then
26155 :
26156else
26157
26158cat >>confdefs.h <<_ACEOF
90dd450c 26159#define pid_t int
e6cc62c6 26160_ACEOF
10f2d63a 26161
7b4a847f
RR
26162fi
26163
e6cc62c6
VS
26164echo "$as_me:$LINENO: checking for size_t" >&5
26165echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26166if test "${ac_cv_type_size_t+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 26168else
e6cc62c6 26169 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26170#line $LINENO "configure"
e6cc62c6
VS
26171/* confdefs.h. */
26172_ACEOF
26173cat confdefs.h >>conftest.$ac_ext
26174cat >>conftest.$ac_ext <<_ACEOF
26175/* end confdefs.h. */
26176$ac_includes_default
26177int
26178main ()
26179{
26180if ((size_t *) 0)
26181 return 0;
26182if (sizeof (size_t))
26183 return 0;
26184 ;
26185 return 0;
26186}
26187_ACEOF
26188rm -f conftest.$ac_objext
26189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26190 (eval $ac_compile) 2>&5
e6cc62c6
VS
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
789c5f4a 26194 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
90dd450c 26200 ac_cv_type_size_t=yes
18dbb1f6 26201else
e6cc62c6
VS
26202 echo "$as_me: failed program was:" >&5
26203sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26204
e6cc62c6 26205ac_cv_type_size_t=no
a0b9e27f 26206fi
789c5f4a 26207rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26208fi
26209echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26210echo "${ECHO_T}$ac_cv_type_size_t" >&6
26211if test $ac_cv_type_size_t = yes; then
26212 :
26213else
26214
26215cat >>confdefs.h <<_ACEOF
90dd450c 26216#define size_t unsigned
e6cc62c6 26217_ACEOF
90dd450c
VZ
26218
26219fi
26220
e6cc62c6
VS
26221echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26222echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26223if test "${ac_cv_type_uid_t+set}" = set; then
26224 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 26225else
e6cc62c6 26226 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26227#line $LINENO "configure"
e6cc62c6
VS
26228/* confdefs.h. */
26229_ACEOF
26230cat confdefs.h >>conftest.$ac_ext
26231cat >>conftest.$ac_ext <<_ACEOF
26232/* end confdefs.h. */
90dd450c 26233#include <sys/types.h>
e6cc62c6
VS
26234
26235_ACEOF
90dd450c 26236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 26237 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 26238 ac_cv_type_uid_t=yes
b3e8d00a 26239else
90dd450c 26240 ac_cv_type_uid_t=no
b3e8d00a 26241fi
90dd450c 26242rm -f conftest*
b3e8d00a 26243
4f14bcd8 26244fi
e6cc62c6
VS
26245echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26246echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26247if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26248
26249cat >>confdefs.h <<\_ACEOF
90dd450c 26250#define uid_t int
e6cc62c6 26251_ACEOF
247f5006 26252
e6cc62c6
VS
26253
26254cat >>confdefs.h <<\_ACEOF
90dd450c 26255#define gid_t int
e6cc62c6 26256_ACEOF
4f14bcd8 26257
b3e8d00a 26258fi
b3e8d00a 26259
8284b0c5
MB
26260
26261
e6cc62c6
VS
26262
26263ac_ext=cc
4f14bcd8 26264ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26268
26269echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26270echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26271if test "${wx_cv_size_t_is_uint+set}" = set; then
26272 echo $ECHO_N "(cached) $ECHO_C" >&6
26273else
26274
26275 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26276#line $LINENO "configure"
e6cc62c6
VS
26277/* confdefs.h. */
26278_ACEOF
26279cat confdefs.h >>conftest.$ac_ext
26280cat >>conftest.$ac_ext <<_ACEOF
26281/* end confdefs.h. */
90dd450c 26282#include <stddef.h>
e6cc62c6
VS
26283int
26284main ()
26285{
90dd450c
VZ
26286
26287 return 0; }
26288
26289 struct Foo { void foo(size_t); void foo(unsigned int); };
26290
26291 int bar() {
e6cc62c6
VS
26292
26293 ;
26294 return 0;
26295}
26296_ACEOF
26297rm -f conftest.$ac_objext
26298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26299 (eval $ac_compile) 2>&5
e6cc62c6
VS
26300 ac_status=$?
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } &&
789c5f4a 26303 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; }; then
90dd450c 26309 wx_cv_size_t_is_uint=no
698dcdb6 26310else
e6cc62c6
VS
26311 echo "$as_me: failed program was:" >&5
26312sed 's/^/| /' conftest.$ac_ext >&5
26313
26314wx_cv_size_t_is_uint=yes
8284b0c5 26315
247f5006 26316fi
789c5f4a 26317rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 26318
a0b9e27f 26319
e6cc62c6
VS
26320fi
26321echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26322echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26323
90dd450c 26324if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26325 cat >>confdefs.h <<\_ACEOF
90dd450c 26326#define wxSIZE_T_IS_UINT 1
e6cc62c6 26327_ACEOF
698dcdb6 26328
90dd450c 26329else
e6cc62c6
VS
26330 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26331echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26332if test "${wx_cv_size_t_is_ulong+set}" = set; then
26333 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26334else
e6cc62c6 26335 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26336#line $LINENO "configure"
e6cc62c6
VS
26337/* confdefs.h. */
26338_ACEOF
26339cat confdefs.h >>conftest.$ac_ext
26340cat >>conftest.$ac_ext <<_ACEOF
26341/* end confdefs.h. */
90dd450c 26342#include <stddef.h>
e6cc62c6
VS
26343int
26344main ()
26345{
90dd450c
VZ
26346
26347 return 0; }
26348
26349 struct Foo { void foo(size_t); void foo(unsigned long); };
26350
26351 int bar() {
e6cc62c6
VS
26352
26353 ;
26354 return 0;
26355}
26356_ACEOF
26357rm -f conftest.$ac_objext
26358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26359 (eval $ac_compile) 2>&5
e6cc62c6
VS
26360 ac_status=$?
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } &&
789c5f4a 26363 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
90dd450c 26369 wx_cv_size_t_is_ulong=no
698dcdb6 26370else
e6cc62c6
VS
26371 echo "$as_me: failed program was:" >&5
26372sed 's/^/| /' conftest.$ac_ext >&5
26373
26374wx_cv_size_t_is_ulong=yes
26375
247f5006 26376fi
789c5f4a 26377rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26378
e6cc62c6
VS
26379fi
26380echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26381echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26382
90dd450c 26383 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26384 cat >>confdefs.h <<\_ACEOF
90dd450c 26385#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26386_ACEOF
4f14bcd8
GD
26387
26388 fi
90dd450c 26389fi
1e487827 26390
90dd450c 26391ac_ext=c
4f14bcd8 26392ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26395ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26396
5c6fa7d2 26397
8284b0c5 26398
e6cc62c6
VS
26399echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26400echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26401if test "${wx_cv_struct_pw_gecos+set}" = set; then
26402 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26403else
e6cc62c6
VS
26404
26405 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26406#line $LINENO "configure"
e6cc62c6
VS
26407/* confdefs.h. */
26408_ACEOF
26409cat confdefs.h >>conftest.$ac_ext
26410cat >>conftest.$ac_ext <<_ACEOF
26411/* end confdefs.h. */
90dd450c 26412#include <pwd.h>
e6cc62c6
VS
26413int
26414main ()
26415{
f6bcfd97 26416
90dd450c
VZ
26417 char *p;
26418 struct passwd *pw;
26419 p = pw->pw_gecos;
e6cc62c6
VS
26420
26421 ;
26422 return 0;
26423}
26424_ACEOF
26425rm -f conftest.$ac_objext
26426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26427 (eval $ac_compile) 2>&5
e6cc62c6
VS
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } &&
789c5f4a 26431 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437
90dd450c 26438 wx_cv_struct_pw_gecos=yes
e6cc62c6 26439
10f2d63a 26440else
e6cc62c6
VS
26441 echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
26444
90dd450c 26445 wx_cv_struct_pw_gecos=no
e6cc62c6 26446
247f5006
VZ
26447
26448fi
789c5f4a 26449rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26450
e6cc62c6
VS
26451
26452fi
26453echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26454echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26455
90dd450c 26456if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26457 cat >>confdefs.h <<\_ACEOF
90dd450c 26458#define HAVE_PW_GECOS 1
e6cc62c6 26459_ACEOF
c521c494 26460
90dd450c 26461fi
4f14bcd8 26462
8284b0c5 26463
d29b553b 26464if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26465 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26466#define wxUSE_WCHAR_T 1
e6cc62c6 26467_ACEOF
d74f4b5a 26468
8284b0c5 26469
d74f4b5a
VZ
26470 WCSLEN_FOUND=0
26471 WCHAR_LINK=
e6cc62c6
VS
26472
26473for ac_func in wcslen
7a30264c 26474do
e6cc62c6
VS
26475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26476echo "$as_me:$LINENO: checking for $ac_func" >&5
26477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26478if eval "test \"\${$as_ac_var+set}\" = set"; then
26479 echo $ECHO_N "(cached) $ECHO_C" >&6
26480else
26481 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26482#line $LINENO "configure"
e6cc62c6
VS
26483/* confdefs.h. */
26484_ACEOF
26485cat confdefs.h >>conftest.$ac_ext
26486cat >>conftest.$ac_ext <<_ACEOF
26487/* end confdefs.h. */
7a30264c 26488/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26489 which can conflict with char $ac_func (); below.
26490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26491 <limits.h> exists even on freestanding compilers. */
26492#ifdef __STDC__
26493# include <limits.h>
26494#else
26495# include <assert.h>
26496#endif
4f14bcd8 26497/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26498#ifdef __cplusplus
26499extern "C"
26500{
26501#endif
4f14bcd8 26502/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26503 builtin and then its argument prototype would still apply. */
26504char $ac_func ();
7a30264c
VZ
26505/* The GNU C library defines this for functions which it implements
26506 to always fail with ENOSYS. Some functions are actually named
26507 something starting with __ and the normal name is an alias. */
26508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26509choke me
26510#else
e6cc62c6
VS
26511char (*f) () = $ac_func;
26512#endif
26513#ifdef __cplusplus
26514}
7a30264c
VZ
26515#endif
26516
e6cc62c6
VS
26517int
26518main ()
26519{
26520return f != $ac_func;
26521 ;
26522 return 0;
26523}
26524_ACEOF
26525rm -f conftest.$ac_objext conftest$ac_exeext
26526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26527 (eval $ac_link) 2>&5
e6cc62c6
VS
26528 ac_status=$?
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } &&
789c5f4a 26531 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; }; then
26537 eval "$as_ac_var=yes"
26538else
26539 echo "$as_me: failed program was:" >&5
26540sed 's/^/| /' conftest.$ac_ext >&5
26541
26542eval "$as_ac_var=no"
26543fi
789c5f4a 26544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26545fi
26546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26548if test `eval echo '${'$as_ac_var'}'` = yes; then
26549 cat >>confdefs.h <<_ACEOF
26550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26551_ACEOF
d74f4b5a 26552 WCSLEN_FOUND=1
7a30264c
VZ
26553fi
26554done
9d8deca0 26555
8284b0c5 26556
d74f4b5a 26557 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26558 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26559 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26560echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26561if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26563else
e6cc62c6 26564 ac_check_lib_save_LIBS=$LIBS
7a30264c 26565LIBS="-lmsvcrt $LIBS"
e6cc62c6 26566cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26567#line $LINENO "configure"
e6cc62c6
VS
26568/* confdefs.h. */
26569_ACEOF
26570cat confdefs.h >>conftest.$ac_ext
26571cat >>conftest.$ac_ext <<_ACEOF
26572/* end confdefs.h. */
26573
4f14bcd8 26574/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26575#ifdef __cplusplus
26576extern "C"
26577#endif
4f14bcd8 26578/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26579 builtin and then its argument prototype would still apply. */
26580char wcslen ();
26581int
26582main ()
26583{
26584wcslen ();
26585 ;
26586 return 0;
26587}
26588_ACEOF
26589rm -f conftest.$ac_objext conftest$ac_exeext
26590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26591 (eval $ac_link) 2>&5
e6cc62c6
VS
26592 ac_status=$?
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } &&
789c5f4a 26595 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597 (eval $ac_try) 2>&5
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); }; }; then
26601 ac_cv_lib_msvcrt_wcslen=yes
26602else
26603 echo "$as_me: failed program was:" >&5
26604sed 's/^/| /' conftest.$ac_ext >&5
26605
26606ac_cv_lib_msvcrt_wcslen=no
26607fi
789c5f4a 26608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26609LIBS=$ac_check_lib_save_LIBS
26610fi
26611echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26612echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26613if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26614 WCHAR_OK=1
d29b553b 26615fi
698dcdb6 26616
7a30264c 26617 else
e6cc62c6
VS
26618 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26619echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26620if test "${ac_cv_lib_w_wcslen+set}" = set; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26622else
e6cc62c6 26623 ac_check_lib_save_LIBS=$LIBS
7a30264c 26624LIBS="-lw $LIBS"
e6cc62c6 26625cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26626#line $LINENO "configure"
e6cc62c6
VS
26627/* confdefs.h. */
26628_ACEOF
26629cat confdefs.h >>conftest.$ac_ext
26630cat >>conftest.$ac_ext <<_ACEOF
26631/* end confdefs.h. */
26632
4f14bcd8 26633/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26634#ifdef __cplusplus
26635extern "C"
26636#endif
4f14bcd8 26637/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26638 builtin and then its argument prototype would still apply. */
26639char wcslen ();
26640int
26641main ()
26642{
26643wcslen ();
26644 ;
26645 return 0;
26646}
26647_ACEOF
26648rm -f conftest.$ac_objext conftest$ac_exeext
26649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26650 (eval $ac_link) 2>&5
e6cc62c6
VS
26651 ac_status=$?
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } &&
789c5f4a 26654 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; }; then
26660 ac_cv_lib_w_wcslen=yes
26661else
26662 echo "$as_me: failed program was:" >&5
26663sed 's/^/| /' conftest.$ac_ext >&5
26664
26665ac_cv_lib_w_wcslen=no
26666fi
789c5f4a 26667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26668LIBS=$ac_check_lib_save_LIBS
26669fi
26670echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26671echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26672if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26673
7a30264c 26674 WCHAR_LINK=" -lw"
d74f4b5a 26675 WCSLEN_FOUND=1
e6cc62c6 26676
4f14bcd8 26677fi
10f2d63a 26678
7a30264c 26679 fi
d29b553b 26680 fi
95c8801c 26681
d74f4b5a 26682 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26683 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26684#define HAVE_WCSLEN 1
e6cc62c6 26685_ACEOF
10f2d63a 26686
d74f4b5a 26687 fi
52127426 26688
e6cc62c6
VS
26689
26690for ac_func in wcsrtombs
eb4efbdc 26691do
e6cc62c6
VS
26692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26693echo "$as_me:$LINENO: checking for $ac_func" >&5
26694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26695if eval "test \"\${$as_ac_var+set}\" = set"; then
26696 echo $ECHO_N "(cached) $ECHO_C" >&6
26697else
26698 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26699#line $LINENO "configure"
e6cc62c6
VS
26700/* confdefs.h. */
26701_ACEOF
26702cat confdefs.h >>conftest.$ac_ext
26703cat >>conftest.$ac_ext <<_ACEOF
26704/* end confdefs.h. */
eb4efbdc 26705/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26706 which can conflict with char $ac_func (); below.
26707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26708 <limits.h> exists even on freestanding compilers. */
26709#ifdef __STDC__
26710# include <limits.h>
26711#else
26712# include <assert.h>
26713#endif
eb4efbdc 26714/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26715#ifdef __cplusplus
26716extern "C"
26717{
26718#endif
4f14bcd8 26719/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26720 builtin and then its argument prototype would still apply. */
26721char $ac_func ();
10f2d63a
VZ
26722/* The GNU C library defines this for functions which it implements
26723 to always fail with ENOSYS. Some functions are actually named
26724 something starting with __ and the normal name is an alias. */
247f5006 26725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26726choke me
26727#else
e6cc62c6
VS
26728char (*f) () = $ac_func;
26729#endif
26730#ifdef __cplusplus
26731}
10f2d63a
VZ
26732#endif
26733
e6cc62c6
VS
26734int
26735main ()
26736{
26737return f != $ac_func;
26738 ;
26739 return 0;
26740}
26741_ACEOF
26742rm -f conftest.$ac_objext conftest$ac_exeext
26743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26744 (eval $ac_link) 2>&5
e6cc62c6
VS
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } &&
789c5f4a 26748 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 eval "$as_ac_var=yes"
26755else
26756 echo "$as_me: failed program was:" >&5
26757sed 's/^/| /' conftest.$ac_ext >&5
26758
26759eval "$as_ac_var=no"
26760fi
789c5f4a 26761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26762fi
26763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26765if test `eval echo '${'$as_ac_var'}'` = yes; then
26766 cat >>confdefs.h <<_ACEOF
26767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26768_ACEOF
270a909e 26769
4f14bcd8 26770fi
247f5006 26771done
1e487827 26772
af15babd 26773else
e6cc62c6
VS
26774 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26775echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26776fi
52127426 26777
8284b0c5 26778
e6cc62c6
VS
26779
26780ac_ext=cc
247f5006 26781ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26785
af15babd 26786
247f5006
VZ
26787
26788for ac_func in vsnprintf
26789do
e6cc62c6
VS
26790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26791echo "$as_me:$LINENO: checking for $ac_func" >&5
26792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26793if eval "test \"\${$as_ac_var+set}\" = set"; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26795else
26796 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26797#line $LINENO "configure"
e6cc62c6
VS
26798/* confdefs.h. */
26799_ACEOF
26800cat confdefs.h >>conftest.$ac_ext
26801cat >>conftest.$ac_ext <<_ACEOF
26802/* end confdefs.h. */
247f5006 26803/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26804 which can conflict with char $ac_func (); below.
26805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26806 <limits.h> exists even on freestanding compilers. */
26807#ifdef __STDC__
26808# include <limits.h>
26809#else
26810# include <assert.h>
26811#endif
247f5006
VZ
26812/* Override any gcc2 internal prototype to avoid an error. */
26813#ifdef __cplusplus
26814extern "C"
e6cc62c6 26815{
247f5006
VZ
26816#endif
26817/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26818 builtin and then its argument prototype would still apply. */
26819char $ac_func ();
247f5006
VZ
26820/* The GNU C library defines this for functions which it implements
26821 to always fail with ENOSYS. Some functions are actually named
26822 something starting with __ and the normal name is an alias. */
26823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26824choke me
26825#else
e6cc62c6
VS
26826char (*f) () = $ac_func;
26827#endif
26828#ifdef __cplusplus
26829}
247f5006 26830#endif
af15babd 26831
e6cc62c6
VS
26832int
26833main ()
26834{
26835return f != $ac_func;
26836 ;
26837 return 0;
26838}
26839_ACEOF
26840rm -f conftest.$ac_objext conftest$ac_exeext
26841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26842 (eval $ac_link) 2>&5
e6cc62c6
VS
26843 ac_status=$?
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
789c5f4a 26846 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; }; then
26852 eval "$as_ac_var=yes"
26853else
26854 echo "$as_me: failed program was:" >&5
26855sed 's/^/| /' conftest.$ac_ext >&5
26856
26857eval "$as_ac_var=no"
26858fi
789c5f4a 26859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26860fi
26861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26863if test `eval echo '${'$as_ac_var'}'` = yes; then
26864 cat >>confdefs.h <<_ACEOF
26865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26866_ACEOF
52127426 26867
5c6fa7d2 26868fi
247f5006 26869done
8284b0c5 26870
4f14bcd8 26871
8d90d2f2 26872if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26873 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26874echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26875if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26877else
e6cc62c6
VS
26878
26879 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26880#line $LINENO "configure"
e6cc62c6
VS
26881/* confdefs.h. */
26882_ACEOF
26883cat confdefs.h >>conftest.$ac_ext
26884cat >>conftest.$ac_ext <<_ACEOF
26885/* end confdefs.h. */
8d90d2f2
VZ
26886
26887 #include <stdio.h>
26888 #include <stdarg.h>
e6cc62c6
VS
26889
26890int
26891main ()
26892{
8d90d2f2
VZ
26893
26894 char *buf;
26895 va_list ap;
26896 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26897
26898 ;
26899 return 0;
26900}
26901_ACEOF
26902rm -f conftest.$ac_objext
26903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26904 (eval $ac_compile) 2>&5
e6cc62c6
VS
26905 ac_status=$?
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } &&
789c5f4a 26908 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; }; then
8d90d2f2
VZ
26914 wx_cv_func_vsnprintf_decl=yes
26915else
e6cc62c6
VS
26916 echo "$as_me: failed program was:" >&5
26917sed 's/^/| /' conftest.$ac_ext >&5
26918
26919wx_cv_func_vsnprintf_decl=no
26920
8d90d2f2 26921fi
789c5f4a 26922rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 26923
8d90d2f2 26924
e6cc62c6
VS
26925fi
26926echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26927echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26928
26929 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26930 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26931#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26932_ACEOF
8d90d2f2
VZ
26933
26934 fi
26935fi
26936
247f5006 26937if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26938
26939
26940
26941for ac_func in fputwc wprintf vswprintf
d74f4b5a 26942do
e6cc62c6
VS
26943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26944echo "$as_me:$LINENO: checking for $ac_func" >&5
26945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26946if eval "test \"\${$as_ac_var+set}\" = set"; then
26947 echo $ECHO_N "(cached) $ECHO_C" >&6
26948else
26949 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26950#line $LINENO "configure"
e6cc62c6
VS
26951/* confdefs.h. */
26952_ACEOF
26953cat confdefs.h >>conftest.$ac_ext
26954cat >>conftest.$ac_ext <<_ACEOF
26955/* end confdefs.h. */
d74f4b5a 26956/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26957 which can conflict with char $ac_func (); below.
26958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26959 <limits.h> exists even on freestanding compilers. */
26960#ifdef __STDC__
26961# include <limits.h>
26962#else
26963# include <assert.h>
26964#endif
d74f4b5a 26965/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26966#ifdef __cplusplus
26967extern "C"
e6cc62c6 26968{
247f5006 26969#endif
d74f4b5a 26970/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26971 builtin and then its argument prototype would still apply. */
26972char $ac_func ();
d74f4b5a
VZ
26973/* The GNU C library defines this for functions which it implements
26974 to always fail with ENOSYS. Some functions are actually named
26975 something starting with __ and the normal name is an alias. */
26976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26977choke me
26978#else
e6cc62c6
VS
26979char (*f) () = $ac_func;
26980#endif
26981#ifdef __cplusplus
26982}
d74f4b5a
VZ
26983#endif
26984
e6cc62c6
VS
26985int
26986main ()
26987{
26988return f != $ac_func;
26989 ;
26990 return 0;
26991}
26992_ACEOF
26993rm -f conftest.$ac_objext conftest$ac_exeext
26994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26995 (eval $ac_link) 2>&5
e6cc62c6
VS
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); } &&
789c5f4a 26999 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; }; then
27005 eval "$as_ac_var=yes"
27006else
27007 echo "$as_me: failed program was:" >&5
27008sed 's/^/| /' conftest.$ac_ext >&5
27009
27010eval "$as_ac_var=no"
27011fi
789c5f4a 27012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27013fi
27014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27016if test `eval echo '${'$as_ac_var'}'` = yes; then
27017 cat >>confdefs.h <<_ACEOF
27018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27019_ACEOF
d74f4b5a 27020
d74f4b5a
VZ
27021fi
27022done
27023
8d90d2f2 27024
e6cc62c6
VS
27025 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
27026echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
27027 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27028#line $LINENO "configure"
e6cc62c6
VS
27029/* confdefs.h. */
27030_ACEOF
27031cat confdefs.h >>conftest.$ac_ext
27032cat >>conftest.$ac_ext <<_ACEOF
27033/* end confdefs.h. */
79668cae 27034#include <wchar.h>
e6cc62c6
VS
27035int
27036main ()
27037{
79668cae 27038&_vsnwprintf;
e6cc62c6
VS
27039 ;
27040 return 0;
27041}
27042_ACEOF
27043rm -f conftest.$ac_objext
27044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27045 (eval $ac_compile) 2>&5
e6cc62c6
VS
27046 ac_status=$?
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } &&
789c5f4a 27049 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27052 ac_status=$?
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
27055 echo "$as_me:$LINENO: result: yes" >&5
27056echo "${ECHO_T}yes" >&6
27057 cat >>confdefs.h <<\_ACEOF
79668cae 27058#define HAVE__VSNWPRINTF 1
e6cc62c6 27059_ACEOF
79668cae
MB
27060
27061else
e6cc62c6
VS
27062 echo "$as_me: failed program was:" >&5
27063sed 's/^/| /' conftest.$ac_ext >&5
27064
27065echo "$as_me:$LINENO: result: no" >&5
27066echo "${ECHO_T}no" >&6
79668cae 27067fi
789c5f4a 27068rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
27069fi
27070
247f5006
VZ
27071ac_ext=c
27072ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27075ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
27076
27077
27078
27079
4f14bcd8 27080if test "$TOOLKIT" != "MSW"; then
af15babd 27081
8284b0c5
MB
27082
27083
e6cc62c6
VS
27084
27085ac_ext=cc
4f14bcd8 27086ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 27090
52127426 27091
e6cc62c6
VS
27092
27093
27094# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
27095if test "${with_libiconv_prefix+set}" = set; then
27096 withval="$with_libiconv_prefix"
e6cc62c6 27097
b040e242
VS
27098 for dir in `echo "$withval" | tr : ' '`; do
27099 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27100 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27101 done
b040e242 27102
e6cc62c6 27103fi;
b040e242 27104
e6cc62c6
VS
27105 echo "$as_me:$LINENO: checking for iconv" >&5
27106echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27107if test "${am_cv_func_iconv+set}" = set; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27109else
e6cc62c6 27110
b040e242
VS
27111 am_cv_func_iconv="no, consider installing GNU libiconv"
27112 am_cv_lib_iconv=no
e6cc62c6 27113 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27114#line $LINENO "configure"
e6cc62c6
VS
27115/* confdefs.h. */
27116_ACEOF
27117cat confdefs.h >>conftest.$ac_ext
27118cat >>conftest.$ac_ext <<_ACEOF
27119/* end confdefs.h. */
b040e242 27120#include <stdlib.h>
4f14bcd8 27121#include <iconv.h>
e6cc62c6
VS
27122int
27123main ()
27124{
b040e242
VS
27125iconv_t cd = iconv_open("","");
27126 iconv(cd,NULL,NULL,NULL,NULL);
27127 iconv_close(cd);
e6cc62c6
VS
27128 ;
27129 return 0;
27130}
27131_ACEOF
27132rm -f conftest.$ac_objext conftest$ac_exeext
27133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27134 (eval $ac_link) 2>&5
e6cc62c6
VS
27135 ac_status=$?
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } &&
789c5f4a 27138 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140 (eval $ac_try) 2>&5
27141 ac_status=$?
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; }; then
b040e242 27144 am_cv_func_iconv=yes
af15babd 27145else
e6cc62c6
VS
27146 echo "$as_me: failed program was:" >&5
27147sed 's/^/| /' conftest.$ac_ext >&5
27148
b040e242 27149fi
789c5f4a 27150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27151 if test "$am_cv_func_iconv" != yes; then
27152 am_save_LIBS="$LIBS"
27153 LIBS="$LIBS -liconv"
e6cc62c6 27154 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27155#line $LINENO "configure"
e6cc62c6
VS
27156/* confdefs.h. */
27157_ACEOF
27158cat confdefs.h >>conftest.$ac_ext
27159cat >>conftest.$ac_ext <<_ACEOF
27160/* end confdefs.h. */
b040e242
VS
27161#include <stdlib.h>
27162#include <iconv.h>
e6cc62c6
VS
27163int
27164main ()
27165{
b040e242
VS
27166iconv_t cd = iconv_open("","");
27167 iconv(cd,NULL,NULL,NULL,NULL);
27168 iconv_close(cd);
e6cc62c6
VS
27169 ;
27170 return 0;
27171}
27172_ACEOF
27173rm -f conftest.$ac_objext conftest$ac_exeext
27174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27175 (eval $ac_link) 2>&5
e6cc62c6
VS
27176 ac_status=$?
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } &&
789c5f4a 27179 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; }; then
b040e242
VS
27185 am_cv_lib_iconv=yes
27186 am_cv_func_iconv=yes
27187else
e6cc62c6
VS
27188 echo "$as_me: failed program was:" >&5
27189sed 's/^/| /' conftest.$ac_ext >&5
27190
af15babd 27191fi
789c5f4a 27192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27193 LIBS="$am_save_LIBS"
27194 fi
247f5006 27195
e6cc62c6
VS
27196fi
27197echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27198echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 27199 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
27200
27201cat >>confdefs.h <<\_ACEOF
b040e242 27202#define HAVE_ICONV 1
e6cc62c6 27203_ACEOF
b040e242 27204
e6cc62c6
VS
27205 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27206echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27207if test "${wx_cv_func_iconv_const+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 27209else
e6cc62c6 27210 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27211#line $LINENO "configure"
e6cc62c6
VS
27212/* confdefs.h. */
27213_ACEOF
27214cat confdefs.h >>conftest.$ac_ext
27215cat >>conftest.$ac_ext <<_ACEOF
27216/* end confdefs.h. */
b040e242
VS
27217
27218#include <stdlib.h>
27219#include <iconv.h>
27220extern
27221#ifdef __cplusplus
27222"C"
27223#endif
27224#if defined(__STDC__) || defined(__cplusplus)
27225size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27226#else
27227size_t iconv();
27228#endif
af15babd 27229
e6cc62c6
VS
27230int
27231main ()
27232{
27233
27234 ;
27235 return 0;
27236}
27237_ACEOF
27238rm -f conftest.$ac_objext
27239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27240 (eval $ac_compile) 2>&5
e6cc62c6
VS
27241 ac_status=$?
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); } &&
789c5f4a 27244 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27246 (eval $ac_try) 2>&5
27247 ac_status=$?
27248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); }; }; then
b7043674 27250 wx_cv_func_iconv_const="no"
b040e242 27251else
e6cc62c6
VS
27252 echo "$as_me: failed program was:" >&5
27253sed 's/^/| /' conftest.$ac_ext >&5
27254
27255wx_cv_func_iconv_const="yes"
27256
247f5006 27257fi
789c5f4a 27258rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27259
e6cc62c6
VS
27260fi
27261echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27262echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27263
27264 iconv_const=
1c405bb5 27265 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27266 iconv_const="const"
27267 fi
27268
e6cc62c6
VS
27269
27270cat >>confdefs.h <<_ACEOF
f09359cf 27271#define ICONV_CONST $iconv_const
e6cc62c6 27272_ACEOF
b040e242
VS
27273
27274 fi
27275 LIBICONV=
27276 if test "$am_cv_lib_iconv" = yes; then
27277 LIBICONV="-liconv"
27278 fi
e6cc62c6 27279
b040e242
VS
27280
27281LIBS="$LIBICONV $LIBS"
4f14bcd8 27282ac_ext=c
4f14bcd8 27283ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27286ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27287
5c6fa7d2 27288
8284b0c5 27289if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27290
27291for ac_func in sigaction
af15babd 27292do
e6cc62c6
VS
27293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27294echo "$as_me:$LINENO: checking for $ac_func" >&5
27295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27296if eval "test \"\${$as_ac_var+set}\" = set"; then
27297 echo $ECHO_N "(cached) $ECHO_C" >&6
27298else
27299 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27300#line $LINENO "configure"
e6cc62c6
VS
27301/* confdefs.h. */
27302_ACEOF
27303cat confdefs.h >>conftest.$ac_ext
27304cat >>conftest.$ac_ext <<_ACEOF
27305/* end confdefs.h. */
af15babd 27306/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27307 which can conflict with char $ac_func (); below.
27308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27309 <limits.h> exists even on freestanding compilers. */
27310#ifdef __STDC__
27311# include <limits.h>
27312#else
27313# include <assert.h>
27314#endif
af15babd 27315/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27316#ifdef __cplusplus
27317extern "C"
27318{
27319#endif
af15babd 27320/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27321 builtin and then its argument prototype would still apply. */
27322char $ac_func ();
af15babd
VZ
27323/* The GNU C library defines this for functions which it implements
27324 to always fail with ENOSYS. Some functions are actually named
27325 something starting with __ and the normal name is an alias. */
27326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27327choke me
27328#else
e6cc62c6
VS
27329char (*f) () = $ac_func;
27330#endif
27331#ifdef __cplusplus
27332}
af15babd
VZ
27333#endif
27334
e6cc62c6
VS
27335int
27336main ()
27337{
27338return f != $ac_func;
27339 ;
27340 return 0;
27341}
27342_ACEOF
27343rm -f conftest.$ac_objext conftest$ac_exeext
27344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27345 (eval $ac_link) 2>&5
e6cc62c6
VS
27346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); } &&
789c5f4a 27349 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27351 (eval $ac_try) 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; }; then
27355 eval "$as_ac_var=yes"
27356else
27357 echo "$as_me: failed program was:" >&5
27358sed 's/^/| /' conftest.$ac_ext >&5
27359
27360eval "$as_ac_var=no"
27361fi
789c5f4a 27362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27363fi
27364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27366if test `eval echo '${'$as_ac_var'}'` = yes; then
27367 cat >>confdefs.h <<_ACEOF
27368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27369_ACEOF
7b4a847f 27370
4f14bcd8
GD
27371fi
27372done
27373
8284b0c5 27374
4f14bcd8 27375 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27376 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27377echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27378 wxUSE_ON_FATAL_EXCEPTION=no
27379 fi
27380
27381 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27382
27383
27384 ac_ext=cc
5c6fa7d2 27385ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27389
5c6fa7d2 27390
e6cc62c6
VS
27391 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27392echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27393if test "${wx_cv_type_sa_handler+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27395else
e6cc62c6
VS
27396
27397 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27398#line $LINENO "configure"
e6cc62c6
VS
27399/* confdefs.h. */
27400_ACEOF
27401cat confdefs.h >>conftest.$ac_ext
27402cat >>conftest.$ac_ext <<_ACEOF
27403/* end confdefs.h. */
4f14bcd8 27404#include <signal.h>
e6cc62c6
VS
27405int
27406main ()
27407{
4f14bcd8
GD
27408
27409 extern void testSigHandler(int);
27410
27411 struct sigaction sa;
27412 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27413
27414 ;
27415 return 0;
27416}
27417_ACEOF
27418rm -f conftest.$ac_objext
27419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27420 (eval $ac_compile) 2>&5
e6cc62c6
VS
27421 ac_status=$?
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); } &&
789c5f4a 27424 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27426 (eval $ac_try) 2>&5
27427 ac_status=$?
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; }; then
27430
4f14bcd8 27431 wx_cv_type_sa_handler=int
e6cc62c6 27432
af15babd 27433else
e6cc62c6
VS
27434 echo "$as_me: failed program was:" >&5
27435sed 's/^/| /' conftest.$ac_ext >&5
27436
27437
4f14bcd8 27438 wx_cv_type_sa_handler=void
e6cc62c6 27439
247f5006 27440fi
789c5f4a 27441rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27442
e6cc62c6
VS
27443fi
27444echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27445echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27446
27447 ac_ext=c
4f14bcd8 27448ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27451ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27452
8284b0c5 27453
e6cc62c6 27454 cat >>confdefs.h <<_ACEOF
4f14bcd8 27455#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27456_ACEOF
af15babd 27457
4f14bcd8
GD
27458 fi
27459fi
af15babd 27460
e6cc62c6
VS
27461
27462
a1d22ad7 27463for ac_func in mkstemp mktemp
af15babd 27464do
e6cc62c6
VS
27465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27466echo "$as_me:$LINENO: checking for $ac_func" >&5
27467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27468if eval "test \"\${$as_ac_var+set}\" = set"; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27470else
27471 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27472#line $LINENO "configure"
e6cc62c6
VS
27473/* confdefs.h. */
27474_ACEOF
27475cat confdefs.h >>conftest.$ac_ext
27476cat >>conftest.$ac_ext <<_ACEOF
27477/* end confdefs.h. */
af15babd 27478/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27479 which can conflict with char $ac_func (); below.
27480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27481 <limits.h> exists even on freestanding compilers. */
27482#ifdef __STDC__
27483# include <limits.h>
27484#else
27485# include <assert.h>
27486#endif
af15babd 27487/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27488#ifdef __cplusplus
27489extern "C"
27490{
27491#endif
af15babd 27492/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27493 builtin and then its argument prototype would still apply. */
27494char $ac_func ();
af15babd
VZ
27495/* The GNU C library defines this for functions which it implements
27496 to always fail with ENOSYS. Some functions are actually named
27497 something starting with __ and the normal name is an alias. */
27498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27499choke me
27500#else
e6cc62c6
VS
27501char (*f) () = $ac_func;
27502#endif
27503#ifdef __cplusplus
27504}
af15babd
VZ
27505#endif
27506
e6cc62c6
VS
27507int
27508main ()
27509{
27510return f != $ac_func;
27511 ;
27512 return 0;
27513}
27514_ACEOF
27515rm -f conftest.$ac_objext conftest$ac_exeext
27516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27517 (eval $ac_link) 2>&5
e6cc62c6
VS
27518 ac_status=$?
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } &&
789c5f4a 27521 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27523 (eval $ac_try) 2>&5
27524 ac_status=$?
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); }; }; then
27527 eval "$as_ac_var=yes"
27528else
27529 echo "$as_me: failed program was:" >&5
27530sed 's/^/| /' conftest.$ac_ext >&5
27531
27532eval "$as_ac_var=no"
27533fi
789c5f4a 27534rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27535fi
27536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27538if test `eval echo '${'$as_ac_var'}'` = yes; then
27539 cat >>confdefs.h <<_ACEOF
27540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27541_ACEOF
ade35f11 27542 break
ade35f11
VZ
27543fi
27544done
27545
8284b0c5 27546
e6cc62c6
VS
27547echo "$as_me:$LINENO: checking for statfs" >&5
27548echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27549if test "${wx_cv_func_statfs+set}" = set; then
27550 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27551else
e6cc62c6 27552 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27553#line $LINENO "configure"
e6cc62c6
VS
27554/* confdefs.h. */
27555_ACEOF
27556cat confdefs.h >>conftest.$ac_ext
27557cat >>conftest.$ac_ext <<_ACEOF
27558/* end confdefs.h. */
4f14bcd8
GD
27559
27560 #if defined(__BSD__)
27561 #include <sys/param.h>
27562 #include <sys/mount.h>
27563 #else
27564 #include <sys/vfs.h>
27565 #endif
e6cc62c6
VS
27566
27567int
27568main ()
27569{
4f14bcd8
GD
27570
27571 long l;
27572 struct statfs fs;
27573 statfs("/", &fs);
27574 l = fs.f_bsize;
27575 l += fs.f_blocks;
27576 l += fs.f_bavail;
e6cc62c6
VS
27577
27578 ;
27579 return 0;
27580}
27581_ACEOF
27582rm -f conftest.$ac_objext
27583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27584 (eval $ac_compile) 2>&5
e6cc62c6
VS
27585 ac_status=$?
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
789c5f4a 27588 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590 (eval $ac_try) 2>&5
27591 ac_status=$?
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; }; then
27594
4f14bcd8 27595 wx_cv_func_statfs=yes
e6cc62c6 27596
4f14bcd8 27597else
e6cc62c6
VS
27598 echo "$as_me: failed program was:" >&5
27599sed 's/^/| /' conftest.$ac_ext >&5
27600
27601
4f14bcd8 27602 wx_cv_func_statfs=no
e6cc62c6 27603
8284b0c5 27604
247f5006 27605fi
789c5f4a 27606rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27607
e6cc62c6
VS
27608fi
27609echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27610echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27611
27612if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27613 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27614 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27615#define HAVE_STATFS 1
e6cc62c6 27616_ACEOF
4f14bcd8
GD
27617
27618else
e6cc62c6
VS
27619 echo "$as_me:$LINENO: checking for statvfs" >&5
27620echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27621if test "${wx_cv_func_statvfs+set}" = set; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27623else
e6cc62c6 27624 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27625#line $LINENO "configure"
e6cc62c6
VS
27626/* confdefs.h. */
27627_ACEOF
27628cat confdefs.h >>conftest.$ac_ext
27629cat >>conftest.$ac_ext <<_ACEOF
27630/* end confdefs.h. */
af15babd 27631
54ab82b3
VZ
27632 #include <stddef.h>
27633 #include <sys/statvfs.h>
e6cc62c6
VS
27634
27635int
27636main ()
27637{
af15babd 27638
54ab82b3 27639 statvfs("/", NULL);
e6cc62c6
VS
27640
27641 ;
27642 return 0;
27643}
27644_ACEOF
27645rm -f conftest.$ac_objext
27646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27647 (eval $ac_compile) 2>&5
e6cc62c6
VS
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
789c5f4a 27651 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
54ab82b3 27657 wx_cv_func_statvfs=yes
af15babd 27658else
e6cc62c6
VS
27659 echo "$as_me: failed program was:" >&5
27660sed 's/^/| /' conftest.$ac_ext >&5
27661
27662wx_cv_func_statvfs=no
27663
247f5006 27664fi
789c5f4a 27665rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27666
e6cc62c6
VS
27667fi
27668echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27669echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27670
4f14bcd8 27671 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27672
27673
27674 ac_ext=cc
54ab82b3 27675ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27679
27680
e6cc62c6
VS
27681 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27682echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27683if test "${wx_cv_type_statvfs_t+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27685else
e6cc62c6 27686 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27687#line $LINENO "configure"
e6cc62c6
VS
27688/* confdefs.h. */
27689_ACEOF
27690cat confdefs.h >>conftest.$ac_ext
27691cat >>conftest.$ac_ext <<_ACEOF
27692/* end confdefs.h. */
54ab82b3
VZ
27693
27694 #include <sys/statvfs.h>
e6cc62c6
VS
27695
27696int
27697main ()
27698{
54ab82b3
VZ
27699
27700 long l;
27701 statvfs_t fs;
27702 statvfs("/", &fs);
27703 l = fs.f_bsize;
27704 l += fs.f_blocks;
27705 l += fs.f_bavail;
e6cc62c6
VS
27706
27707 ;
27708 return 0;
27709}
27710_ACEOF
27711rm -f conftest.$ac_objext
27712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27713 (eval $ac_compile) 2>&5
e6cc62c6
VS
27714 ac_status=$?
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } &&
789c5f4a 27717 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
54ab82b3
VZ
27723 wx_cv_type_statvfs_t=statvfs_t
27724else
e6cc62c6
VS
27725 echo "$as_me: failed program was:" >&5
27726sed 's/^/| /' conftest.$ac_ext >&5
27727
27728
27729 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27730#line $LINENO "configure"
e6cc62c6
VS
27731/* confdefs.h. */
27732_ACEOF
27733cat confdefs.h >>conftest.$ac_ext
27734cat >>conftest.$ac_ext <<_ACEOF
27735/* end confdefs.h. */
54ab82b3
VZ
27736
27737 #include <sys/statvfs.h>
e6cc62c6
VS
27738
27739int
27740main ()
27741{
54ab82b3
VZ
27742
27743 long l;
65d8ef1e 27744 struct statvfs fs;
54ab82b3
VZ
27745 statvfs("/", &fs);
27746 l = fs.f_bsize;
27747 l += fs.f_blocks;
27748 l += fs.f_bavail;
e6cc62c6
VS
27749
27750 ;
27751 return 0;
27752}
27753_ACEOF
27754rm -f conftest.$ac_objext
27755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27756 (eval $ac_compile) 2>&5
e6cc62c6
VS
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
789c5f4a 27760 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
54ab82b3
VZ
27766 wx_cv_type_statvfs_t="struct statvfs"
27767else
e6cc62c6
VS
27768 echo "$as_me: failed program was:" >&5
27769sed 's/^/| /' conftest.$ac_ext >&5
27770
27771wx_cv_type_statvfs_t="unknown"
27772
54ab82b3 27773fi
789c5f4a 27774rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27775
27776
54ab82b3 27777fi
789c5f4a 27778rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27779
e6cc62c6
VS
27780fi
27781echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27782echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27783
27784 ac_ext=c
54ab82b3 27785ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27788ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27789
27790
27791 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27792 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27793#define HAVE_STATVFS 1
e6cc62c6 27794_ACEOF
af15babd 27795
54ab82b3 27796 fi
4f14bcd8 27797 else
54ab82b3 27798 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27799 fi
27800fi
af15babd 27801
54ab82b3 27802if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27803 cat >>confdefs.h <<_ACEOF
54ab82b3 27804#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27805_ACEOF
54ab82b3
VZ
27806
27807else
e6cc62c6
VS
27808 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27809echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27810fi
27811
4f14bcd8 27812if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27813
27814
27815for ac_func in fcntl flock
af15babd 27816do
e6cc62c6
VS
27817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27818echo "$as_me:$LINENO: checking for $ac_func" >&5
27819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27820if eval "test \"\${$as_ac_var+set}\" = set"; then
27821 echo $ECHO_N "(cached) $ECHO_C" >&6
27822else
27823 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27824#line $LINENO "configure"
e6cc62c6
VS
27825/* confdefs.h. */
27826_ACEOF
27827cat confdefs.h >>conftest.$ac_ext
27828cat >>conftest.$ac_ext <<_ACEOF
27829/* end confdefs.h. */
af15babd 27830/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27831 which can conflict with char $ac_func (); below.
27832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27833 <limits.h> exists even on freestanding compilers. */
27834#ifdef __STDC__
27835# include <limits.h>
27836#else
27837# include <assert.h>
27838#endif
af15babd 27839/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27840#ifdef __cplusplus
27841extern "C"
27842{
27843#endif
af15babd 27844/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27845 builtin and then its argument prototype would still apply. */
27846char $ac_func ();
af15babd
VZ
27847/* The GNU C library defines this for functions which it implements
27848 to always fail with ENOSYS. Some functions are actually named
27849 something starting with __ and the normal name is an alias. */
27850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27851choke me
27852#else
e6cc62c6
VS
27853char (*f) () = $ac_func;
27854#endif
27855#ifdef __cplusplus
27856}
af15babd
VZ
27857#endif
27858
e6cc62c6
VS
27859int
27860main ()
27861{
27862return f != $ac_func;
27863 ;
27864 return 0;
27865}
27866_ACEOF
27867rm -f conftest.$ac_objext conftest$ac_exeext
27868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27869 (eval $ac_link) 2>&5
e6cc62c6
VS
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); } &&
789c5f4a 27873 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875 (eval $ac_try) 2>&5
27876 ac_status=$?
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; }; then
27879 eval "$as_ac_var=yes"
27880else
27881 echo "$as_me: failed program was:" >&5
27882sed 's/^/| /' conftest.$ac_ext >&5
27883
27884eval "$as_ac_var=no"
27885fi
789c5f4a 27886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27887fi
27888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27890if test `eval echo '${'$as_ac_var'}'` = yes; then
27891 cat >>confdefs.h <<_ACEOF
27892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27893_ACEOF
4f14bcd8 27894 break
af15babd
VZ
27895fi
27896done
27897
8284b0c5 27898
4f14bcd8 27899 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27900 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27901echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27902 wxUSE_SNGLINST_CHECKER=no
27903 fi
27904fi
af15babd 27905
e6cc62c6 27906
4f14bcd8 27907for ac_func in timegm
af15babd 27908do
e6cc62c6
VS
27909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27910echo "$as_me:$LINENO: checking for $ac_func" >&5
27911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27912if eval "test \"\${$as_ac_var+set}\" = set"; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27914else
27915 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27916#line $LINENO "configure"
e6cc62c6
VS
27917/* confdefs.h. */
27918_ACEOF
27919cat confdefs.h >>conftest.$ac_ext
27920cat >>conftest.$ac_ext <<_ACEOF
27921/* end confdefs.h. */
af15babd 27922/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27923 which can conflict with char $ac_func (); below.
27924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27925 <limits.h> exists even on freestanding compilers. */
27926#ifdef __STDC__
27927# include <limits.h>
27928#else
27929# include <assert.h>
27930#endif
af15babd 27931/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27932#ifdef __cplusplus
27933extern "C"
27934{
27935#endif
af15babd 27936/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27937 builtin and then its argument prototype would still apply. */
27938char $ac_func ();
af15babd
VZ
27939/* The GNU C library defines this for functions which it implements
27940 to always fail with ENOSYS. Some functions are actually named
27941 something starting with __ and the normal name is an alias. */
247f5006
VZ
27942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27943choke me
27944#else
e6cc62c6
VS
27945char (*f) () = $ac_func;
27946#endif
27947#ifdef __cplusplus
27948}
247f5006
VZ
27949#endif
27950
e6cc62c6
VS
27951int
27952main ()
27953{
27954return f != $ac_func;
27955 ;
27956 return 0;
27957}
27958_ACEOF
27959rm -f conftest.$ac_objext conftest$ac_exeext
27960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27961 (eval $ac_link) 2>&5
e6cc62c6
VS
27962 ac_status=$?
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); } &&
789c5f4a 27965 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27967 (eval $ac_try) 2>&5
27968 ac_status=$?
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); }; }; then
27971 eval "$as_ac_var=yes"
27972else
27973 echo "$as_me: failed program was:" >&5
27974sed 's/^/| /' conftest.$ac_ext >&5
27975
27976eval "$as_ac_var=no"
27977fi
789c5f4a 27978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27979fi
27980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27982if test `eval echo '${'$as_ac_var'}'` = yes; then
27983 cat >>confdefs.h <<_ACEOF
27984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27985_ACEOF
703e0a69 27986
af15babd
VZ
27987fi
27988done
27989
8284b0c5 27990
e6cc62c6
VS
27991
27992
4f14bcd8 27993for ac_func in putenv setenv
10f2d63a 27994do
e6cc62c6
VS
27995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27996echo "$as_me:$LINENO: checking for $ac_func" >&5
27997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27998if eval "test \"\${$as_ac_var+set}\" = set"; then
27999 echo $ECHO_N "(cached) $ECHO_C" >&6
28000else
28001 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28002#line $LINENO "configure"
e6cc62c6
VS
28003/* confdefs.h. */
28004_ACEOF
28005cat confdefs.h >>conftest.$ac_ext
28006cat >>conftest.$ac_ext <<_ACEOF
28007/* end confdefs.h. */
af15babd 28008/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28009 which can conflict with char $ac_func (); below.
28010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28011 <limits.h> exists even on freestanding compilers. */
28012#ifdef __STDC__
28013# include <limits.h>
28014#else
28015# include <assert.h>
28016#endif
af15babd 28017/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28018#ifdef __cplusplus
28019extern "C"
28020{
28021#endif
af15babd 28022/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28023 builtin and then its argument prototype would still apply. */
28024char $ac_func ();
af15babd
VZ
28025/* The GNU C library defines this for functions which it implements
28026 to always fail with ENOSYS. Some functions are actually named
28027 something starting with __ and the normal name is an alias. */
28028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28029choke me
28030#else
e6cc62c6
VS
28031char (*f) () = $ac_func;
28032#endif
28033#ifdef __cplusplus
28034}
af15babd
VZ
28035#endif
28036
e6cc62c6
VS
28037int
28038main ()
28039{
28040return f != $ac_func;
28041 ;
28042 return 0;
28043}
28044_ACEOF
28045rm -f conftest.$ac_objext conftest$ac_exeext
28046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28047 (eval $ac_link) 2>&5
e6cc62c6
VS
28048 ac_status=$?
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } &&
789c5f4a 28051 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 (eval $ac_try) 2>&5
28054 ac_status=$?
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; }; then
28057 eval "$as_ac_var=yes"
28058else
28059 echo "$as_me: failed program was:" >&5
28060sed 's/^/| /' conftest.$ac_ext >&5
28061
28062eval "$as_ac_var=no"
28063fi
789c5f4a 28064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28065fi
28066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28068if test `eval echo '${'$as_ac_var'}'` = yes; then
28069 cat >>confdefs.h <<_ACEOF
28070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28071_ACEOF
4f14bcd8 28072 break
af15babd 28073fi
af15babd
VZ
28074done
28075
8284b0c5 28076
4f14bcd8
GD
28077HAVE_SOME_SLEEP_FUNC=0
28078if test "$USE_BEOS" = 1; then
e6cc62c6 28079 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28080#define HAVE_SLEEP 1
e6cc62c6 28081_ACEOF
af15babd 28082
4f14bcd8 28083 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28084fi
28085
4f14bcd8 28086if test "$USE_DARWIN" = 1; then
e6cc62c6 28087 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28088#define HAVE_USLEEP 1
e6cc62c6 28089_ACEOF
10f2d63a 28090
4f14bcd8 28091 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28092fi
28093
4f14bcd8
GD
28094if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28095 POSIX4_LINK=
e6cc62c6
VS
28096
28097for ac_func in nanosleep
4f14bcd8 28098do
e6cc62c6
VS
28099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28100echo "$as_me:$LINENO: checking for $ac_func" >&5
28101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28102if eval "test \"\${$as_ac_var+set}\" = set"; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28104else
28105 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28106#line $LINENO "configure"
e6cc62c6
VS
28107/* confdefs.h. */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h. */
4f14bcd8 28112/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28113 which can conflict with char $ac_func (); below.
28114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28115 <limits.h> exists even on freestanding compilers. */
28116#ifdef __STDC__
28117# include <limits.h>
28118#else
28119# include <assert.h>
28120#endif
10f2d63a 28121/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28122#ifdef __cplusplus
28123extern "C"
28124{
28125#endif
10f2d63a 28126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28127 builtin and then its argument prototype would still apply. */
28128char $ac_func ();
4f14bcd8
GD
28129/* The GNU C library defines this for functions which it implements
28130 to always fail with ENOSYS. Some functions are actually named
28131 something starting with __ and the normal name is an alias. */
28132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28133choke me
28134#else
e6cc62c6
VS
28135char (*f) () = $ac_func;
28136#endif
28137#ifdef __cplusplus
28138}
4f14bcd8
GD
28139#endif
28140
e6cc62c6
VS
28141int
28142main ()
28143{
28144return f != $ac_func;
28145 ;
28146 return 0;
28147}
28148_ACEOF
28149rm -f conftest.$ac_objext conftest$ac_exeext
28150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28151 (eval $ac_link) 2>&5
e6cc62c6
VS
28152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
789c5f4a 28155 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28157 (eval $ac_try) 2>&5
28158 ac_status=$?
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); }; }; then
28161 eval "$as_ac_var=yes"
28162else
28163 echo "$as_me: failed program was:" >&5
28164sed 's/^/| /' conftest.$ac_ext >&5
28165
28166eval "$as_ac_var=no"
28167fi
789c5f4a 28168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28169fi
28170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28172if test `eval echo '${'$as_ac_var'}'` = yes; then
28173 cat >>confdefs.h <<_ACEOF
28174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28175_ACEOF
28176 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28177#define HAVE_NANOSLEEP 1
e6cc62c6 28178_ACEOF
4f14bcd8 28179
10f2d63a 28180else
e6cc62c6
VS
28181
28182 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28183echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28184if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28185 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28186else
e6cc62c6 28187 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28188LIBS="-lposix4 $LIBS"
e6cc62c6 28189cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28190#line $LINENO "configure"
e6cc62c6
VS
28191/* confdefs.h. */
28192_ACEOF
28193cat confdefs.h >>conftest.$ac_ext
28194cat >>conftest.$ac_ext <<_ACEOF
28195/* end confdefs.h. */
28196
10f2d63a 28197/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28198#ifdef __cplusplus
28199extern "C"
28200#endif
10f2d63a 28201/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28202 builtin and then its argument prototype would still apply. */
28203char nanosleep ();
28204int
28205main ()
28206{
28207nanosleep ();
28208 ;
28209 return 0;
28210}
28211_ACEOF
28212rm -f conftest.$ac_objext conftest$ac_exeext
28213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28214 (eval $ac_link) 2>&5
e6cc62c6
VS
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } &&
789c5f4a 28218 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220 (eval $ac_try) 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; }; then
28224 ac_cv_lib_posix4_nanosleep=yes
28225else
28226 echo "$as_me: failed program was:" >&5
28227sed 's/^/| /' conftest.$ac_ext >&5
28228
28229ac_cv_lib_posix4_nanosleep=no
28230fi
789c5f4a 28231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28232LIBS=$ac_check_lib_save_LIBS
28233fi
28234echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28235echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28236if test $ac_cv_lib_posix4_nanosleep = yes; then
28237
28238 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28239#define HAVE_NANOSLEEP 1
e6cc62c6 28240_ACEOF
4f14bcd8 28241
3d63bc3a 28242 POSIX4_LINK=" -lposix4"
e6cc62c6 28243
10f2d63a 28244else
10f2d63a 28245
e6cc62c6
VS
28246
28247for ac_func in usleep
4f14bcd8 28248do
e6cc62c6
VS
28249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28250echo "$as_me:$LINENO: checking for $ac_func" >&5
28251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28252if eval "test \"\${$as_ac_var+set}\" = set"; then
28253 echo $ECHO_N "(cached) $ECHO_C" >&6
28254else
28255 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28256#line $LINENO "configure"
e6cc62c6
VS
28257/* confdefs.h. */
28258_ACEOF
28259cat confdefs.h >>conftest.$ac_ext
28260cat >>conftest.$ac_ext <<_ACEOF
28261/* end confdefs.h. */
4f14bcd8 28262/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28263 which can conflict with char $ac_func (); below.
28264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28265 <limits.h> exists even on freestanding compilers. */
28266#ifdef __STDC__
28267# include <limits.h>
28268#else
28269# include <assert.h>
28270#endif
4f14bcd8 28271/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28272#ifdef __cplusplus
28273extern "C"
28274{
28275#endif
4f14bcd8 28276/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28277 builtin and then its argument prototype would still apply. */
28278char $ac_func ();
4f14bcd8
GD
28279/* The GNU C library defines this for functions which it implements
28280 to always fail with ENOSYS. Some functions are actually named
28281 something starting with __ and the normal name is an alias. */
28282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28283choke me
28284#else
e6cc62c6
VS
28285char (*f) () = $ac_func;
28286#endif
28287#ifdef __cplusplus
28288}
4f14bcd8
GD
28289#endif
28290
e6cc62c6
VS
28291int
28292main ()
28293{
28294return f != $ac_func;
28295 ;
28296 return 0;
28297}
28298_ACEOF
28299rm -f conftest.$ac_objext conftest$ac_exeext
28300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28301 (eval $ac_link) 2>&5
e6cc62c6
VS
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } &&
789c5f4a 28305 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 eval "$as_ac_var=yes"
28312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
28316eval "$as_ac_var=no"
28317fi
789c5f4a 28318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28319fi
28320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28321echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28322if test `eval echo '${'$as_ac_var'}'` = yes; then
28323 cat >>confdefs.h <<_ACEOF
28324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28325_ACEOF
28326 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28327#define HAVE_USLEEP 1
e6cc62c6 28328_ACEOF
4f14bcd8 28329
698dcdb6 28330else
e6cc62c6
VS
28331 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28332echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28333
10f2d63a 28334fi
4f14bcd8 28335done
10f2d63a 28336
e6cc62c6
VS
28337
28338
6232543b 28339fi
10f2d63a 28340
e6cc62c6
VS
28341
28342
1e487827 28343fi
4f14bcd8 28344done
703e0a69 28345
10f2d63a
VZ
28346fi
28347
e6cc62c6
VS
28348
28349
4f14bcd8 28350for ac_func in uname gethostname
70846f0a 28351do
e6cc62c6
VS
28352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28353echo "$as_me:$LINENO: checking for $ac_func" >&5
28354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28355if eval "test \"\${$as_ac_var+set}\" = set"; then
28356 echo $ECHO_N "(cached) $ECHO_C" >&6
28357else
28358 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28359#line $LINENO "configure"
e6cc62c6
VS
28360/* confdefs.h. */
28361_ACEOF
28362cat confdefs.h >>conftest.$ac_ext
28363cat >>conftest.$ac_ext <<_ACEOF
28364/* end confdefs.h. */
70846f0a 28365/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28366 which can conflict with char $ac_func (); below.
28367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28368 <limits.h> exists even on freestanding compilers. */
28369#ifdef __STDC__
28370# include <limits.h>
28371#else
28372# include <assert.h>
28373#endif
70846f0a 28374/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28375#ifdef __cplusplus
28376extern "C"
28377{
28378#endif
70846f0a 28379/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28380 builtin and then its argument prototype would still apply. */
28381char $ac_func ();
70846f0a
VZ
28382/* The GNU C library defines this for functions which it implements
28383 to always fail with ENOSYS. Some functions are actually named
28384 something starting with __ and the normal name is an alias. */
28385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28386choke me
28387#else
e6cc62c6
VS
28388char (*f) () = $ac_func;
28389#endif
28390#ifdef __cplusplus
28391}
70846f0a
VZ
28392#endif
28393
e6cc62c6
VS
28394int
28395main ()
28396{
28397return f != $ac_func;
28398 ;
28399 return 0;
28400}
28401_ACEOF
28402rm -f conftest.$ac_objext conftest$ac_exeext
28403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28404 (eval $ac_link) 2>&5
e6cc62c6
VS
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } &&
789c5f4a 28408 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410 (eval $ac_try) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; }; then
28414 eval "$as_ac_var=yes"
28415else
28416 echo "$as_me: failed program was:" >&5
28417sed 's/^/| /' conftest.$ac_ext >&5
28418
28419eval "$as_ac_var=no"
28420fi
789c5f4a 28421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28422fi
28423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28425if test `eval echo '${'$as_ac_var'}'` = yes; then
28426 cat >>confdefs.h <<_ACEOF
28427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28428_ACEOF
4f14bcd8 28429 break
70846f0a
VZ
28430fi
28431done
28432
8284b0c5
MB
28433
28434
e6cc62c6
VS
28435
28436ac_ext=cc
4f14bcd8 28437ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28441
8284b0c5 28442
4f14bcd8
GD
28443
28444for ac_func in strtok_r
10f2d63a 28445do
e6cc62c6
VS
28446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28447echo "$as_me:$LINENO: checking for $ac_func" >&5
28448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28449if eval "test \"\${$as_ac_var+set}\" = set"; then
28450 echo $ECHO_N "(cached) $ECHO_C" >&6
28451else
28452 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28453#line $LINENO "configure"
e6cc62c6
VS
28454/* confdefs.h. */
28455_ACEOF
28456cat confdefs.h >>conftest.$ac_ext
28457cat >>conftest.$ac_ext <<_ACEOF
28458/* end confdefs.h. */
4f14bcd8 28459/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28460 which can conflict with char $ac_func (); below.
28461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28462 <limits.h> exists even on freestanding compilers. */
28463#ifdef __STDC__
28464# include <limits.h>
28465#else
28466# include <assert.h>
28467#endif
4f14bcd8
GD
28468/* Override any gcc2 internal prototype to avoid an error. */
28469#ifdef __cplusplus
28470extern "C"
e6cc62c6 28471{
4f14bcd8
GD
28472#endif
28473/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28474 builtin and then its argument prototype would still apply. */
28475char $ac_func ();
4f14bcd8
GD
28476/* The GNU C library defines this for functions which it implements
28477 to always fail with ENOSYS. Some functions are actually named
28478 something starting with __ and the normal name is an alias. */
28479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28480choke me
28481#else
e6cc62c6
VS
28482char (*f) () = $ac_func;
28483#endif
28484#ifdef __cplusplus
28485}
4f14bcd8
GD
28486#endif
28487
e6cc62c6
VS
28488int
28489main ()
28490{
28491return f != $ac_func;
28492 ;
28493 return 0;
28494}
28495_ACEOF
28496rm -f conftest.$ac_objext conftest$ac_exeext
28497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28498 (eval $ac_link) 2>&5
e6cc62c6
VS
28499 ac_status=$?
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } &&
789c5f4a 28502 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; }; then
28508 eval "$as_ac_var=yes"
28509else
28510 echo "$as_me: failed program was:" >&5
28511sed 's/^/| /' conftest.$ac_ext >&5
28512
28513eval "$as_ac_var=no"
28514fi
789c5f4a 28515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28516fi
28517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28518echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28519if test `eval echo '${'$as_ac_var'}'` = yes; then
28520 cat >>confdefs.h <<_ACEOF
28521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28522_ACEOF
4f14bcd8 28523
10f2d63a
VZ
28524fi
28525done
28526
8284b0c5 28527
4f14bcd8 28528ac_ext=c
4f14bcd8 28529ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28532ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28533
5c6fa7d2 28534
8284b0c5 28535INET_LINK=
e6cc62c6 28536
4f14bcd8
GD
28537for ac_func in inet_addr
28538do
e6cc62c6
VS
28539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28540echo "$as_me:$LINENO: checking for $ac_func" >&5
28541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28542if eval "test \"\${$as_ac_var+set}\" = set"; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544else
28545 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28546#line $LINENO "configure"
e6cc62c6
VS
28547/* confdefs.h. */
28548_ACEOF
28549cat confdefs.h >>conftest.$ac_ext
28550cat >>conftest.$ac_ext <<_ACEOF
28551/* end confdefs.h. */
4f14bcd8 28552/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28553 which can conflict with char $ac_func (); below.
28554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28555 <limits.h> exists even on freestanding compilers. */
28556#ifdef __STDC__
28557# include <limits.h>
28558#else
28559# include <assert.h>
28560#endif
10f2d63a 28561/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28562#ifdef __cplusplus
28563extern "C"
28564{
28565#endif
10f2d63a 28566/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28567 builtin and then its argument prototype would still apply. */
28568char $ac_func ();
4f14bcd8
GD
28569/* The GNU C library defines this for functions which it implements
28570 to always fail with ENOSYS. Some functions are actually named
28571 something starting with __ and the normal name is an alias. */
28572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28573choke me
28574#else
e6cc62c6
VS
28575char (*f) () = $ac_func;
28576#endif
28577#ifdef __cplusplus
28578}
4f14bcd8
GD
28579#endif
28580
e6cc62c6
VS
28581int
28582main ()
28583{
28584return f != $ac_func;
28585 ;
28586 return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext conftest$ac_exeext
28590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28591 (eval $ac_link) 2>&5
e6cc62c6
VS
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); } &&
789c5f4a 28595 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 (eval $ac_try) 2>&5
28598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; }; then
28601 eval "$as_ac_var=yes"
28602else
28603 echo "$as_me: failed program was:" >&5
28604sed 's/^/| /' conftest.$ac_ext >&5
28605
28606eval "$as_ac_var=no"
28607fi
789c5f4a 28608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28609fi
28610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28612if test `eval echo '${'$as_ac_var'}'` = yes; then
28613 cat >>confdefs.h <<_ACEOF
28614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28615_ACEOF
28616 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28617#define HAVE_INET_ADDR 1
e6cc62c6 28618_ACEOF
10f2d63a
VZ
28619
28620else
e6cc62c6
VS
28621
28622 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28623echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28624if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28626else
e6cc62c6 28627 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28628LIBS="-lnsl $LIBS"
e6cc62c6 28629cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28630#line $LINENO "configure"
e6cc62c6
VS
28631/* confdefs.h. */
28632_ACEOF
28633cat confdefs.h >>conftest.$ac_ext
28634cat >>conftest.$ac_ext <<_ACEOF
28635/* end confdefs.h. */
28636
10f2d63a 28637/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28638#ifdef __cplusplus
28639extern "C"
28640#endif
10f2d63a 28641/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28642 builtin and then its argument prototype would still apply. */
28643char inet_addr ();
28644int
28645main ()
28646{
28647inet_addr ();
28648 ;
28649 return 0;
28650}
28651_ACEOF
28652rm -f conftest.$ac_objext conftest$ac_exeext
28653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28654 (eval $ac_link) 2>&5
e6cc62c6
VS
28655 ac_status=$?
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); } &&
789c5f4a 28658 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28660 (eval $ac_try) 2>&5
28661 ac_status=$?
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; }; then
28664 ac_cv_lib_nsl_inet_addr=yes
28665else
28666 echo "$as_me: failed program was:" >&5
28667sed 's/^/| /' conftest.$ac_ext >&5
28668
28669ac_cv_lib_nsl_inet_addr=no
28670fi
789c5f4a 28671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28672LIBS=$ac_check_lib_save_LIBS
28673fi
28674echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28675echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28676if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28677 INET_LINK="nsl"
10f2d63a 28678else
0e012a93
VZ
28679
28680 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
28681echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28682if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28683 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28684else
e6cc62c6 28685 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28686LIBS="-lresolv $LIBS"
e6cc62c6 28687cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28688#line $LINENO "configure"
e6cc62c6
VS
28689/* confdefs.h. */
28690_ACEOF
28691cat confdefs.h >>conftest.$ac_ext
28692cat >>conftest.$ac_ext <<_ACEOF
28693/* end confdefs.h. */
28694
5c6fa7d2 28695/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28696#ifdef __cplusplus
28697extern "C"
28698#endif
5c6fa7d2 28699/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28700 builtin and then its argument prototype would still apply. */
28701char inet_addr ();
28702int
28703main ()
28704{
28705inet_addr ();
28706 ;
28707 return 0;
28708}
28709_ACEOF
28710rm -f conftest.$ac_objext conftest$ac_exeext
28711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28712 (eval $ac_link) 2>&5
e6cc62c6
VS
28713 ac_status=$?
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); } &&
789c5f4a 28716 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28722 ac_cv_lib_resolv_inet_addr=yes
28723else
28724 echo "$as_me: failed program was:" >&5
28725sed 's/^/| /' conftest.$ac_ext >&5
28726
28727ac_cv_lib_resolv_inet_addr=no
28728fi
789c5f4a 28729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28730LIBS=$ac_check_lib_save_LIBS
28731fi
28732echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28733echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28734if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28735 INET_LINK="resolv"
698dcdb6 28736else
0e012a93
VZ
28737
28738 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
28739echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28740if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28742else
e6cc62c6 28743 ac_check_lib_save_LIBS=$LIBS
3c011993 28744LIBS="-lsocket $LIBS"
e6cc62c6 28745cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28746#line $LINENO "configure"
e6cc62c6
VS
28747/* confdefs.h. */
28748_ACEOF
28749cat confdefs.h >>conftest.$ac_ext
28750cat >>conftest.$ac_ext <<_ACEOF
28751/* end confdefs.h. */
28752
3c011993 28753/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28754#ifdef __cplusplus
28755extern "C"
28756#endif
3c011993 28757/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28758 builtin and then its argument prototype would still apply. */
28759char inet_addr ();
28760int
28761main ()
28762{
28763inet_addr ();
28764 ;
28765 return 0;
28766}
28767_ACEOF
28768rm -f conftest.$ac_objext conftest$ac_exeext
28769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28770 (eval $ac_link) 2>&5
e6cc62c6
VS
28771 ac_status=$?
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
789c5f4a 28774 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28776 (eval $ac_try) 2>&5
28777 ac_status=$?
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); }; }; then
28780 ac_cv_lib_socket_inet_addr=yes
28781else
28782 echo "$as_me: failed program was:" >&5
28783sed 's/^/| /' conftest.$ac_ext >&5
28784
28785ac_cv_lib_socket_inet_addr=no
28786fi
789c5f4a 28787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28788LIBS=$ac_check_lib_save_LIBS
28789fi
28790echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28791echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28792if test $ac_cv_lib_socket_inet_addr = yes; then
28793 INET_LINK="socket"
4f14bcd8 28794
8284b0c5 28795fi
e6cc62c6 28796
698dcdb6 28797
0e012a93 28798
7b4a847f 28799fi
e6cc62c6
VS
28800
28801
0e012a93 28802
a0b9e27f 28803fi
579d8138 28804
e6cc62c6
VS
28805
28806
5c6fa7d2 28807fi
e6cc62c6
VS
28808done
28809
28810
28811
28812for ac_func in inet_aton
28813do
28814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28815echo "$as_me:$LINENO: checking for $ac_func" >&5
28816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28817if eval "test \"\${$as_ac_var+set}\" = set"; then
28818 echo $ECHO_N "(cached) $ECHO_C" >&6
28819else
28820 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28821#line $LINENO "configure"
e6cc62c6
VS
28822/* confdefs.h. */
28823_ACEOF
28824cat confdefs.h >>conftest.$ac_ext
28825cat >>conftest.$ac_ext <<_ACEOF
28826/* end confdefs.h. */
28827/* System header to define __stub macros and hopefully few prototypes,
28828 which can conflict with char $ac_func (); below.
28829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28830 <limits.h> exists even on freestanding compilers. */
28831#ifdef __STDC__
28832# include <limits.h>
28833#else
28834# include <assert.h>
28835#endif
28836/* Override any gcc2 internal prototype to avoid an error. */
28837#ifdef __cplusplus
28838extern "C"
28839{
28840#endif
28841/* We use char because int might match the return type of a gcc2
28842 builtin and then its argument prototype would still apply. */
28843char $ac_func ();
28844/* The GNU C library defines this for functions which it implements
28845 to always fail with ENOSYS. Some functions are actually named
28846 something starting with __ and the normal name is an alias. */
28847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28848choke me
28849#else
28850char (*f) () = $ac_func;
28851#endif
28852#ifdef __cplusplus
28853}
28854#endif
28855
28856int
28857main ()
28858{
28859return f != $ac_func;
28860 ;
28861 return 0;
28862}
28863_ACEOF
28864rm -f conftest.$ac_objext conftest$ac_exeext
28865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28866 (eval $ac_link) 2>&5
e6cc62c6
VS
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); } &&
789c5f4a 28870 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872 (eval $ac_try) 2>&5
28873 ac_status=$?
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; }; then
28876 eval "$as_ac_var=yes"
28877else
28878 echo "$as_me: failed program was:" >&5
28879sed 's/^/| /' conftest.$ac_ext >&5
28880
28881eval "$as_ac_var=no"
28882fi
789c5f4a 28883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28884fi
28885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28887if test `eval echo '${'$as_ac_var'}'` = yes; then
28888 cat >>confdefs.h <<_ACEOF
28889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28890_ACEOF
28891 cat >>confdefs.h <<\_ACEOF
28892#define HAVE_INET_ATON 1
28893_ACEOF
28894
28895else
28896
28897 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28898echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28899echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28900if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28902else
28903 ac_check_lib_save_LIBS=$LIBS
28904LIBS="-l$INET_LINK $LIBS"
28905cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28906#line $LINENO "configure"
e6cc62c6
VS
28907/* confdefs.h. */
28908_ACEOF
28909cat confdefs.h >>conftest.$ac_ext
28910cat >>conftest.$ac_ext <<_ACEOF
28911/* end confdefs.h. */
28912
28913/* Override any gcc2 internal prototype to avoid an error. */
28914#ifdef __cplusplus
28915extern "C"
28916#endif
28917/* We use char because int might match the return type of a gcc2
28918 builtin and then its argument prototype would still apply. */
28919char inet_aton ();
28920int
28921main ()
28922{
28923inet_aton ();
28924 ;
28925 return 0;
28926}
28927_ACEOF
28928rm -f conftest.$ac_objext conftest$ac_exeext
28929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28930 (eval $ac_link) 2>&5
e6cc62c6
VS
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } &&
789c5f4a 28934 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28936 (eval $ac_try) 2>&5
28937 ac_status=$?
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); }; }; then
28940 eval "$as_ac_Lib=yes"
28941else
28942 echo "$as_me: failed program was:" >&5
28943sed 's/^/| /' conftest.$ac_ext >&5
28944
28945eval "$as_ac_Lib=no"
28946fi
789c5f4a 28947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28948LIBS=$ac_check_lib_save_LIBS
28949fi
28950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28951echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28952if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28953 cat >>confdefs.h <<\_ACEOF
28954#define HAVE_INET_ATON 1
28955_ACEOF
52127426 28956
a0b9e27f 28957fi
247f5006 28958
8284b0c5 28959
698dcdb6 28960fi
4f14bcd8
GD
28961done
28962
8284b0c5 28963
e6cc62c6
VS
28964if test "x$INET_LINK" != "x"; then
28965 cat >>confdefs.h <<\_ACEOF
28966#define HAVE_INET_ADDR 1
28967_ACEOF
28968
28969 INET_LINK=" -l$INET_LINK"
28970fi
28971
28972fi
a0b9e27f 28973
a0b9e27f 28974
4f14bcd8 28975
edd891e2
VS
28976EXTRALIBS_ESD=
28977echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28978echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28979if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28981else
28982 ac_check_lib_save_LIBS=$LIBS
28983LIBS="-lesd $LIBS"
28984cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28985#line $LINENO "configure"
edd891e2
VS
28986/* confdefs.h. */
28987_ACEOF
28988cat confdefs.h >>conftest.$ac_ext
28989cat >>conftest.$ac_ext <<_ACEOF
28990/* end confdefs.h. */
28991
28992/* Override any gcc2 internal prototype to avoid an error. */
28993#ifdef __cplusplus
28994extern "C"
28995#endif
28996/* We use char because int might match the return type of a gcc2
28997 builtin and then its argument prototype would still apply. */
28998char esd_close ();
28999int
29000main ()
29001{
29002esd_close ();
29003 ;
29004 return 0;
29005}
29006_ACEOF
29007rm -f conftest.$ac_objext conftest$ac_exeext
29008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29009 (eval $ac_link) 2>&5
edd891e2
VS
29010 ac_status=$?
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
789c5f4a 29013 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
29014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015 (eval $ac_try) 2>&5
29016 ac_status=$?
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; }; then
29019 ac_cv_lib_esd_esd_close=yes
29020else
29021 echo "$as_me: failed program was:" >&5
29022sed 's/^/| /' conftest.$ac_ext >&5
29023
29024ac_cv_lib_esd_esd_close=no
29025fi
789c5f4a 29026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
29027LIBS=$ac_check_lib_save_LIBS
29028fi
29029echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
29030echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
29031if test $ac_cv_lib_esd_esd_close = yes; then
29032
29033
29034for ac_header in esd.h
29035do
29036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29037if eval "test \"\${$as_ac_Header+set}\" = set"; then
29038 echo "$as_me:$LINENO: checking for $ac_header" >&5
29039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29040if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29041 echo $ECHO_N "(cached) $ECHO_C" >&6
29042fi
edd891e2
VS
29043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
29045else
29046 # Is the header compilable?
edd891e2
VS
29047echo "$as_me:$LINENO: checking $ac_header usability" >&5
29048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 29049cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29050#line $LINENO "configure"
e6cc62c6
VS
29051/* confdefs.h. */
29052_ACEOF
29053cat confdefs.h >>conftest.$ac_ext
29054cat >>conftest.$ac_ext <<_ACEOF
29055/* end confdefs.h. */
29056$ac_includes_default
edd891e2 29057#include <$ac_header>
e6cc62c6
VS
29058_ACEOF
29059rm -f conftest.$ac_objext
29060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29061 (eval $ac_compile) 2>&5
e6cc62c6
VS
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); } &&
789c5f4a 29065 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
29071 ac_header_compiler=yes
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076ac_header_compiler=no
29077fi
789c5f4a 29078rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29080echo "${ECHO_T}$ac_header_compiler" >&6
29081
29082# Is the header present?
edd891e2
VS
29083echo "$as_me:$LINENO: checking $ac_header presence" >&5
29084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 29085cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29086#line $LINENO "configure"
e6cc62c6
VS
29087/* confdefs.h. */
29088_ACEOF
29089cat confdefs.h >>conftest.$ac_ext
29090cat >>conftest.$ac_ext <<_ACEOF
29091/* end confdefs.h. */
edd891e2 29092#include <$ac_header>
e6cc62c6
VS
29093_ACEOF
29094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29096 ac_status=$?
29097 grep -v '^ *+' conftest.er1 >conftest.err
29098 rm -f conftest.er1
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } >/dev/null; then
29102 if test -s conftest.err; then
29103 ac_cpp_err=$ac_c_preproc_warn_flag
29104 else
29105 ac_cpp_err=
29106 fi
a0b9e27f 29107else
e6cc62c6
VS
29108 ac_cpp_err=yes
29109fi
29110if test -z "$ac_cpp_err"; then
29111 ac_header_preproc=yes
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116 ac_header_preproc=no
29117fi
29118rm -f conftest.err conftest.$ac_ext
29119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29120echo "${ECHO_T}$ac_header_preproc" >&6
29121
29122# So? What about this header?
789c5f4a
VZ
29123case $ac_header_compiler:$ac_header_preproc in
29124 yes:no )
edd891e2
VS
29125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
29127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29129 (
29130 cat <<\_ASBOX
29131## ------------------------------------ ##
29132## Report this to bug-autoconf@gnu.org. ##
29133## ------------------------------------ ##
29134_ASBOX
29135 ) |
29136 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 29137 ;;
789c5f4a 29138 no:yes )
edd891e2
VS
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
edd891e2
VS
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
29145 (
29146 cat <<\_ASBOX
789c5f4a
VZ
29147## ------------------------------------ ##
29148## Report this to bug-autoconf@gnu.org. ##
29149## ------------------------------------ ##
e6cc62c6
VS
29150_ASBOX
29151 ) |
29152 sed "s/^/$as_me: WARNING: /" >&2
29153 ;;
29154esac
edd891e2
VS
29155echo "$as_me:$LINENO: checking for $ac_header" >&5
29156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29157if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
789c5f4a 29160 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 29161fi
edd891e2
VS
29162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 29164
e6cc62c6 29165fi
edd891e2
VS
29166if test `eval echo '${'$as_ac_Header'}'` = yes; then
29167 cat >>confdefs.h <<_ACEOF
29168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 29169_ACEOF
e6cc62c6 29170
edd891e2 29171 EXTRALIBS_ESD="-lesd"
4f14bcd8 29172
a0b9e27f 29173fi
247f5006 29174
edd891e2 29175done
8284b0c5 29176
4f14bcd8 29177
6232543b 29178fi
10f2d63a 29179
703e0a69 29180
8284b0c5 29181
d19d1899
MB
29182echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29183echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29184cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29185#line $LINENO "configure"
d19d1899
MB
29186/* confdefs.h. */
29187_ACEOF
29188cat confdefs.h >>conftest.$ac_ext
29189cat >>conftest.$ac_ext <<_ACEOF
29190/* end confdefs.h. */
29191#ifdef __linux__
29192 #include <linux/cdrom.h>
29193 #else
29194 /* For Solaris */
29195 #include <sys/cdio.h>
29196 #endif
29197
29198int
29199main ()
29200{
29201struct cdrom_tocentry entry, old_entry;
29202 ;
29203 return 0;
29204}
29205_ACEOF
29206rm -f conftest.$ac_objext
29207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29208 (eval $ac_compile) 2>&5
d19d1899
MB
29209 ac_status=$?
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); } &&
789c5f4a 29212 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29215 ac_status=$?
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; }; then
29218 echo "$as_me:$LINENO: result: yes" >&5
29219echo "${ECHO_T}yes" >&6
29220 cat >>confdefs.h <<\_ACEOF
29221#define HAVE_KNOWN_CDROM_INTERFACE 1
29222_ACEOF
29223
29224else
29225 echo "$as_me: failed program was:" >&5
29226sed 's/^/| /' conftest.$ac_ext >&5
29227
29228echo "$as_me:$LINENO: result: no" >&5
29229echo "${ECHO_T}no" >&6
29230fi
789c5f4a 29231rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29232
29233
29234cat >confcache <<\_ACEOF
4f14bcd8
GD
29235# This file is a shell script that caches the results of configure
29236# tests run on this system so they can be shared between configure
e6cc62c6
VS
29237# scripts and configure runs, see configure's option --config-cache.
29238# It is not useful on other systems. If it contains results you don't
29239# want to keep, you may remove or edit it.
4f14bcd8 29240#
e6cc62c6
VS
29241# config.status only pays attention to the cache file if you give it
29242# the --recheck option to rerun configure.
4f14bcd8 29243#
e6cc62c6
VS
29244# `ac_cv_env_foo' variables (set or unset) will be overridden when
29245# loading this file, other *unset* `ac_cv_foo' will be assigned the
29246# following values.
29247
29248_ACEOF
29249
4f14bcd8
GD
29250# The following way of writing the cache mishandles newlines in values,
29251# but we know of no workaround that is simple, portable, and efficient.
29252# So, don't put newlines in cache variables' values.
29253# Ultrix sh set writes to stderr and can't be redirected directly,
29254# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
29255{
29256 (set) 2>&1 |
29257 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29258 *ac_space=\ *)
29259 # `set' does not quote correctly, so add quotes (double-quote
29260 # substitution turns \\\\ into \\, and sed turns \\ into \).
29261 sed -n \
789c5f4a
VZ
29262 "s/'/'\\\\''/g;
29263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
29264 ;;
29265 *)
29266 # `set' quotes correctly as required by POSIX, so do not add quotes.
29267 sed -n \
789c5f4a 29268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
29269 ;;
29270 esac;
29271} |
29272 sed '
29273 t clear
29274 : clear
29275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29276 t end
29277 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29278 : end' >>confcache
29279if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 29280 if test -w $cache_file; then
e6cc62c6
VS
29281 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29282 cat confcache >$cache_file
f6bcfd97 29283 else
4f14bcd8 29284 echo "not updating unwritable cache $cache_file"
f6bcfd97 29285 fi
4f14bcd8
GD
29286fi
29287rm -f confcache
f6bcfd97 29288
8284b0c5 29289
009fead0 29290CPP_MT_FLAG=
73d617c9 29291if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 29292
e6cc62c6 29293
7274f1c7 29294 THREADS_LINK=
009fead0 29295 THREADS_CFLAGS=
7274f1c7
RL
29296
29297 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 29298 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29299 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29300echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29301 wxUSE_THREADS="no"
29302 fi
4f14bcd8 29303 fi
4f14bcd8 29304
7274f1c7 29305 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29306
29307
009fead0
VZ
29308 THREAD_OPTS="-pthread"
29309 case "${host}" in
29310 *-*-solaris2* | *-*-sunos4* )
29311 if test "x$GCC" = "xyes"; then
126be6b4 29312 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29313 else
29314 THREAD_OPTS="-mt $THREAD_OPTS"
29315 fi
29316 ;;
29317 *-*-freebsd*)
29318 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29319 ;;
17234b26
MB
29320 *-*-darwin* | *-*-cygwin* )
29321 THREAD_OPTS=""
4101db81 29322 ;;
8f4a9a10 29323 *-*-aix*)
009fead0
VZ
29324 THREAD_OPTS="pthreads"
29325 ;;
4f5a7f74
VZ
29326 *-hp-hpux* )
29327 if test "x$GCC" != "xyes"; then
29328 THREAD_OPTS=""
29329 fi
89e3b3e4
VZ
29330 ;;
29331
29332 *-*-irix* )
29333 if test "x$GCC" = "xyes"; then
29334 THREAD_OPTS=""
29335 fi
29336 ;;
29337
29338 *-*-*UnixWare*)
29339 if test "x$GCC" != "xyes"; then
29340 THREAD_OPTS="-Ethread"
29341 fi
29342 ;;
009fead0 29343 esac
4f14bcd8 29344
02a1dfba 29345 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29346
009fead0
VZ
29347 THREADS_OK=no
29348 for flag in $THREAD_OPTS; do
29349 case $flag in
29350 none)
e6cc62c6
VS
29351 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29352echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29353 ;;
698dcdb6 29354
009fead0 29355 -*)
e6cc62c6
VS
29356 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29357echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29358 THREADS_CFLAGS="$flag"
29359 ;;
698dcdb6 29360
009fead0 29361 *)
e6cc62c6
VS
29362 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29363echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29364 THREADS_LINK="-l$flag"
29365 ;;
29366 esac
10f2d63a 29367
009fead0
VZ
29368 save_LIBS="$LIBS"
29369 save_CFLAGS="$CFLAGS"
29370 LIBS="$THREADS_LINK $LIBS"
04727afd 29371 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29372
e6cc62c6 29373 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29374#line $LINENO "configure"
e6cc62c6
VS
29375/* confdefs.h. */
29376_ACEOF
29377cat confdefs.h >>conftest.$ac_ext
29378cat >>conftest.$ac_ext <<_ACEOF
29379/* end confdefs.h. */
009fead0 29380#include <pthread.h>
e6cc62c6
VS
29381int
29382main ()
29383{
009fead0 29384pthread_create(0,0,0,0);
e6cc62c6
VS
29385 ;
29386 return 0;
29387}
29388_ACEOF
29389rm -f conftest.$ac_objext conftest$ac_exeext
29390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29391 (eval $ac_link) 2>&5
e6cc62c6
VS
29392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); } &&
789c5f4a 29395 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; }; then
009fead0 29401 THREADS_OK=yes
10f2d63a 29402else
e6cc62c6
VS
29403 echo "$as_me: failed program was:" >&5
29404sed 's/^/| /' conftest.$ac_ext >&5
29405
6232543b 29406fi
789c5f4a 29407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29408
009fead0
VZ
29409 LIBS="$save_LIBS"
29410 CFLAGS="$save_CFLAGS"
d9b9876f 29411
e6cc62c6
VS
29412 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29413echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29414 if test "x$THREADS_OK" = "xyes"; then
29415 break;
29416 fi
d9b9876f 29417
009fead0
VZ
29418 THREADS_LINK=""
29419 THREADS_CFLAGS=""
29420 done
4f14bcd8 29421
009fead0
VZ
29422 if test "x$THREADS_OK" != "xyes"; then
29423 wxUSE_THREADS=no
e6cc62c6
VS
29424 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29425echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29426 else
db82f09e
VZ
29427 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29428 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29429
e6cc62c6
VS
29430 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29431echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29432 flag=no
29433 case "${host}" in
2b5f62a0
VZ
29434 *-aix*)
29435 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29436 flag="-D_THREAD_SAFE"
29437 ;;
29438 *-freebsd*)
009fead0
VZ
29439 flag="-D_THREAD_SAFE"
29440 ;;
06313569
GD
29441 *-hp-hpux* )
29442 flag="-D_REENTRANT"
4f5a7f74
VZ
29443 if test "x$GCC" != "xyes"; then
29444 flag="$flag -D_RWSTD_MULTI_THREAD"
29445 fi
06313569 29446 ;;
009fead0
VZ
29447 *solaris* | alpha*-osf*)
29448 flag="-D_REENTRANT"
29449 ;;
29450 esac
e6cc62c6
VS
29451 echo "$as_me:$LINENO: result: ${flag}" >&5
29452echo "${ECHO_T}${flag}" >&6
009fead0 29453 if test "x$flag" != xno; then
04727afd 29454 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29455 fi
29456
009fead0 29457 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29458 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29459 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29460 fi
29461 fi
4f14bcd8 29462 fi
4f14bcd8 29463
7274f1c7 29464 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29465
29466for ac_func in thr_setconcurrency
4f14bcd8 29467do
e6cc62c6
VS
29468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29469echo "$as_me:$LINENO: checking for $ac_func" >&5
29470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29471if eval "test \"\${$as_ac_var+set}\" = set"; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29473else
29474 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29475#line $LINENO "configure"
e6cc62c6
VS
29476/* confdefs.h. */
29477_ACEOF
29478cat confdefs.h >>conftest.$ac_ext
29479cat >>conftest.$ac_ext <<_ACEOF
29480/* end confdefs.h. */
4f14bcd8 29481/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29482 which can conflict with char $ac_func (); below.
29483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29484 <limits.h> exists even on freestanding compilers. */
29485#ifdef __STDC__
29486# include <limits.h>
29487#else
29488# include <assert.h>
29489#endif
4f14bcd8 29490/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29491#ifdef __cplusplus
29492extern "C"
29493{
29494#endif
4f14bcd8 29495/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29496 builtin and then its argument prototype would still apply. */
29497char $ac_func ();
4f14bcd8
GD
29498/* The GNU C library defines this for functions which it implements
29499 to always fail with ENOSYS. Some functions are actually named
29500 something starting with __ and the normal name is an alias. */
29501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29502choke me
29503#else
e6cc62c6
VS
29504char (*f) () = $ac_func;
29505#endif
29506#ifdef __cplusplus
29507}
4f14bcd8
GD
29508#endif
29509
e6cc62c6
VS
29510int
29511main ()
29512{
29513return f != $ac_func;
29514 ;
29515 return 0;
29516}
29517_ACEOF
29518rm -f conftest.$ac_objext conftest$ac_exeext
29519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29520 (eval $ac_link) 2>&5
e6cc62c6
VS
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); } &&
789c5f4a 29524 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526 (eval $ac_try) 2>&5
29527 ac_status=$?
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
29530 eval "$as_ac_var=yes"
29531else
29532 echo "$as_me: failed program was:" >&5
29533sed 's/^/| /' conftest.$ac_ext >&5
29534
29535eval "$as_ac_var=no"
29536fi
789c5f4a 29537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29538fi
29539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29540echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29541if test `eval echo '${'$as_ac_var'}'` = yes; then
29542 cat >>confdefs.h <<_ACEOF
29543#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29544_ACEOF
698dcdb6 29545
10f2d63a 29546fi
4f14bcd8 29547done
10f2d63a 29548
8284b0c5 29549
e6cc62c6
VS
29550
29551for ac_header in sched.h
4f14bcd8 29552do
e6cc62c6
VS
29553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29554if eval "test \"\${$as_ac_Header+set}\" = set"; then
29555 echo "$as_me:$LINENO: checking for $ac_header" >&5
29556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29557if eval "test \"\${$as_ac_Header+set}\" = set"; then
29558 echo $ECHO_N "(cached) $ECHO_C" >&6
29559fi
29560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29562else
29563 # Is the header compilable?
29564echo "$as_me:$LINENO: checking $ac_header usability" >&5
29565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29566cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29567#line $LINENO "configure"
e6cc62c6
VS
29568/* confdefs.h. */
29569_ACEOF
29570cat confdefs.h >>conftest.$ac_ext
29571cat >>conftest.$ac_ext <<_ACEOF
29572/* end confdefs.h. */
29573$ac_includes_default
29574#include <$ac_header>
29575_ACEOF
29576rm -f conftest.$ac_objext
29577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29578 (eval $ac_compile) 2>&5
e6cc62c6
VS
29579 ac_status=$?
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } &&
789c5f4a 29582 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584 (eval $ac_try) 2>&5
29585 ac_status=$?
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); }; }; then
29588 ac_header_compiler=yes
29589else
29590 echo "$as_me: failed program was:" >&5
29591sed 's/^/| /' conftest.$ac_ext >&5
29592
29593ac_header_compiler=no
29594fi
789c5f4a 29595rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29597echo "${ECHO_T}$ac_header_compiler" >&6
29598
29599# Is the header present?
29600echo "$as_me:$LINENO: checking $ac_header presence" >&5
29601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29602cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29603#line $LINENO "configure"
e6cc62c6
VS
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
29609#include <$ac_header>
29610_ACEOF
29611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29613 ac_status=$?
29614 grep -v '^ *+' conftest.er1 >conftest.err
29615 rm -f conftest.er1
29616 cat conftest.err >&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } >/dev/null; then
29619 if test -s conftest.err; then
29620 ac_cpp_err=$ac_c_preproc_warn_flag
29621 else
29622 ac_cpp_err=
29623 fi
29624else
29625 ac_cpp_err=yes
29626fi
29627if test -z "$ac_cpp_err"; then
29628 ac_header_preproc=yes
29629else
29630 echo "$as_me: failed program was:" >&5
29631sed 's/^/| /' conftest.$ac_ext >&5
29632
29633 ac_header_preproc=no
29634fi
29635rm -f conftest.err conftest.$ac_ext
29636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29637echo "${ECHO_T}$ac_header_preproc" >&6
29638
29639# So? What about this header?
789c5f4a
VZ
29640case $ac_header_compiler:$ac_header_preproc in
29641 yes:no )
e6cc62c6
VS
29642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
29644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29646 (
29647 cat <<\_ASBOX
29648## ------------------------------------ ##
29649## Report this to bug-autoconf@gnu.org. ##
29650## ------------------------------------ ##
29651_ASBOX
29652 ) |
29653 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 29654 ;;
789c5f4a 29655 no:yes )
e6cc62c6
VS
29656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
29658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29659echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
29660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29662 (
29663 cat <<\_ASBOX
789c5f4a
VZ
29664## ------------------------------------ ##
29665## Report this to bug-autoconf@gnu.org. ##
29666## ------------------------------------ ##
e6cc62c6
VS
29667_ASBOX
29668 ) |
29669 sed "s/^/$as_me: WARNING: /" >&2
29670 ;;
29671esac
29672echo "$as_me:$LINENO: checking for $ac_header" >&5
29673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29674if eval "test \"\${$as_ac_Header+set}\" = set"; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29676else
789c5f4a 29677 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29678fi
e6cc62c6
VS
29679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29681
10f2d63a 29682fi
e6cc62c6
VS
29683if test `eval echo '${'$as_ac_Header'}'` = yes; then
29684 cat >>confdefs.h <<_ACEOF
29685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29686_ACEOF
29687
f6bcfd97 29688fi
e6cc62c6 29689
4f14bcd8 29690done
f6bcfd97 29691
009fead0 29692 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29693 echo "$as_me:$LINENO: checking for sched_yield" >&5
29694echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29695if test "${ac_cv_func_sched_yield+set}" = set; then
29696 echo $ECHO_N "(cached) $ECHO_C" >&6
29697else
29698 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29699#line $LINENO "configure"
e6cc62c6
VS
29700/* confdefs.h. */
29701_ACEOF
29702cat confdefs.h >>conftest.$ac_ext
29703cat >>conftest.$ac_ext <<_ACEOF
29704/* end confdefs.h. */
009fead0 29705/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29706 which can conflict with char sched_yield (); below.
29707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29708 <limits.h> exists even on freestanding compilers. */
29709#ifdef __STDC__
29710# include <limits.h>
29711#else
29712# include <assert.h>
29713#endif
4f14bcd8 29714/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29715#ifdef __cplusplus
29716extern "C"
29717{
29718#endif
4f14bcd8 29719/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29720 builtin and then its argument prototype would still apply. */
29721char sched_yield ();
009fead0
VZ
29722/* The GNU C library defines this for functions which it implements
29723 to always fail with ENOSYS. Some functions are actually named
29724 something starting with __ and the normal name is an alias. */
29725#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29726choke me
29727#else
e6cc62c6
VS
29728char (*f) () = sched_yield;
29729#endif
29730#ifdef __cplusplus
29731}
009fead0
VZ
29732#endif
29733
e6cc62c6
VS
29734int
29735main ()
29736{
29737return f != sched_yield;
29738 ;
29739 return 0;
29740}
29741_ACEOF
29742rm -f conftest.$ac_objext conftest$ac_exeext
29743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29744 (eval $ac_link) 2>&5
e6cc62c6
VS
29745 ac_status=$?
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } &&
789c5f4a 29748 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29751 ac_status=$?
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
29754 ac_cv_func_sched_yield=yes
29755else
29756 echo "$as_me: failed program was:" >&5
29757sed 's/^/| /' conftest.$ac_ext >&5
29758
29759ac_cv_func_sched_yield=no
29760fi
789c5f4a 29761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29762fi
29763echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29764echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29765if test $ac_cv_func_sched_yield = yes; then
29766 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29767#define HAVE_SCHED_YIELD 1
e6cc62c6 29768_ACEOF
10f2d63a 29769
4f14bcd8 29770else
009fead0 29771
e6cc62c6
VS
29772 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29773echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29774if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29776else
e6cc62c6 29777 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29778LIBS="-lposix4 $LIBS"
e6cc62c6 29779cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29780#line $LINENO "configure"
e6cc62c6
VS
29781/* confdefs.h. */
29782_ACEOF
29783cat confdefs.h >>conftest.$ac_ext
29784cat >>conftest.$ac_ext <<_ACEOF
29785/* end confdefs.h. */
29786
4f14bcd8 29787/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29788#ifdef __cplusplus
29789extern "C"
29790#endif
4f14bcd8 29791/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29792 builtin and then its argument prototype would still apply. */
29793char sched_yield ();
29794int
29795main ()
29796{
29797sched_yield ();
29798 ;
29799 return 0;
29800}
29801_ACEOF
29802rm -f conftest.$ac_objext conftest$ac_exeext
29803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29804 (eval $ac_link) 2>&5
e6cc62c6
VS
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } &&
789c5f4a 29808 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810 (eval $ac_try) 2>&5
29811 ac_status=$?
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
29814 ac_cv_lib_posix4_sched_yield=yes
29815else
29816 echo "$as_me: failed program was:" >&5
29817sed 's/^/| /' conftest.$ac_ext >&5
29818
29819ac_cv_lib_posix4_sched_yield=no
29820fi
789c5f4a 29821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29822LIBS=$ac_check_lib_save_LIBS
29823fi
29824echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29825echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29826if test $ac_cv_lib_posix4_sched_yield = yes; then
29827 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29828#define HAVE_SCHED_YIELD 1
e6cc62c6 29829_ACEOF
3d63bc3a 29830 POSIX4_LINK=" -lposix4"
4f14bcd8 29831else
e6cc62c6
VS
29832 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29833echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29834
54276ccf
VZ
29835fi
29836
e6cc62c6
VS
29837
29838
4f14bcd8 29839fi
698dcdb6 29840
009fead0 29841 fi
10f2d63a 29842
7274f1c7 29843 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29844 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29845echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29846if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29847 echo $ECHO_N "(cached) $ECHO_C" >&6
29848else
29849 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29850#line $LINENO "configure"
e6cc62c6
VS
29851/* confdefs.h. */
29852_ACEOF
29853cat confdefs.h >>conftest.$ac_ext
29854cat >>conftest.$ac_ext <<_ACEOF
29855/* end confdefs.h. */
009fead0 29856/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29857 which can conflict with char pthread_attr_getschedpolicy (); below.
29858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29859 <limits.h> exists even on freestanding compilers. */
29860#ifdef __STDC__
29861# include <limits.h>
29862#else
29863# include <assert.h>
29864#endif
4f14bcd8 29865/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29866#ifdef __cplusplus
29867extern "C"
29868{
29869#endif
4f14bcd8 29870/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29871 builtin and then its argument prototype would still apply. */
29872char pthread_attr_getschedpolicy ();
009fead0
VZ
29873/* The GNU C library defines this for functions which it implements
29874 to always fail with ENOSYS. Some functions are actually named
29875 something starting with __ and the normal name is an alias. */
29876#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29877choke me
29878#else
e6cc62c6
VS
29879char (*f) () = pthread_attr_getschedpolicy;
29880#endif
29881#ifdef __cplusplus
29882}
009fead0
VZ
29883#endif
29884
e6cc62c6
VS
29885int
29886main ()
29887{
29888return f != pthread_attr_getschedpolicy;
29889 ;
29890 return 0;
29891}
29892_ACEOF
29893rm -f conftest.$ac_objext conftest$ac_exeext
29894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29895 (eval $ac_link) 2>&5
e6cc62c6
VS
29896 ac_status=$?
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } &&
789c5f4a 29899 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901 (eval $ac_try) 2>&5
29902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; }; then
29905 ac_cv_func_pthread_attr_getschedpolicy=yes
29906else
29907 echo "$as_me: failed program was:" >&5
29908sed 's/^/| /' conftest.$ac_ext >&5
29909
29910ac_cv_func_pthread_attr_getschedpolicy=no
29911fi
789c5f4a 29912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29913fi
29914echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29915echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29916if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29917 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29918echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29919if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29920 echo $ECHO_N "(cached) $ECHO_C" >&6
29921else
29922 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29923#line $LINENO "configure"
e6cc62c6
VS
29924/* confdefs.h. */
29925_ACEOF
29926cat confdefs.h >>conftest.$ac_ext
29927cat >>conftest.$ac_ext <<_ACEOF
29928/* end confdefs.h. */
a0b9e27f 29929/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29930 which can conflict with char pthread_attr_setschedparam (); below.
29931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29932 <limits.h> exists even on freestanding compilers. */
29933#ifdef __STDC__
29934# include <limits.h>
29935#else
29936# include <assert.h>
29937#endif
422107f9 29938/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29939#ifdef __cplusplus
29940extern "C"
29941{
29942#endif
422107f9 29943/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29944 builtin and then its argument prototype would still apply. */
29945char pthread_attr_setschedparam ();
009fead0
VZ
29946/* The GNU C library defines this for functions which it implements
29947 to always fail with ENOSYS. Some functions are actually named
29948 something starting with __ and the normal name is an alias. */
29949#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29950choke me
29951#else
e6cc62c6
VS
29952char (*f) () = pthread_attr_setschedparam;
29953#endif
29954#ifdef __cplusplus
29955}
009fead0
VZ
29956#endif
29957
e6cc62c6
VS
29958int
29959main ()
29960{
29961return f != pthread_attr_setschedparam;
29962 ;
29963 return 0;
29964}
29965_ACEOF
29966rm -f conftest.$ac_objext conftest$ac_exeext
29967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29968 (eval $ac_link) 2>&5
e6cc62c6
VS
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } &&
789c5f4a 29972 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29978 ac_cv_func_pthread_attr_setschedparam=yes
29979else
29980 echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983ac_cv_func_pthread_attr_setschedparam=no
29984fi
789c5f4a 29985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29986fi
29987echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29988echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29989if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29990 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29991echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29992if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29994else
29995 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29996#line $LINENO "configure"
e6cc62c6
VS
29997/* confdefs.h. */
29998_ACEOF
29999cat confdefs.h >>conftest.$ac_ext
30000cat >>conftest.$ac_ext <<_ACEOF
30001/* end confdefs.h. */
ef33c576 30002/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30003 which can conflict with char sched_get_priority_max (); below.
30004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30005 <limits.h> exists even on freestanding compilers. */
30006#ifdef __STDC__
30007# include <limits.h>
30008#else
30009# include <assert.h>
30010#endif
4f14bcd8 30011/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30012#ifdef __cplusplus
30013extern "C"
30014{
30015#endif
4f14bcd8 30016/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30017 builtin and then its argument prototype would still apply. */
30018char sched_get_priority_max ();
009fead0
VZ
30019/* The GNU C library defines this for functions which it implements
30020 to always fail with ENOSYS. Some functions are actually named
30021 something starting with __ and the normal name is an alias. */
30022#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
30023choke me
30024#else
e6cc62c6
VS
30025char (*f) () = sched_get_priority_max;
30026#endif
30027#ifdef __cplusplus
30028}
009fead0
VZ
30029#endif
30030
e6cc62c6
VS
30031int
30032main ()
30033{
30034return f != sched_get_priority_max;
30035 ;
30036 return 0;
30037}
30038_ACEOF
30039rm -f conftest.$ac_objext conftest$ac_exeext
30040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30041 (eval $ac_link) 2>&5
e6cc62c6
VS
30042 ac_status=$?
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } &&
789c5f4a 30045 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047 (eval $ac_try) 2>&5
30048 ac_status=$?
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; }; then
30051 ac_cv_func_sched_get_priority_max=yes
30052else
30053 echo "$as_me: failed program was:" >&5
30054sed 's/^/| /' conftest.$ac_ext >&5
30055
30056ac_cv_func_sched_get_priority_max=no
30057fi
789c5f4a 30058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30059fi
30060echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
30061echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
30062if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
30063 HAVE_PRIOR_FUNCS=1
30064else
e6cc62c6
VS
30065 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
30066echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
30067if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
30068 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 30069else
e6cc62c6 30070 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30071LIBS="-lposix4 $LIBS"
e6cc62c6 30072cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30073#line $LINENO "configure"
e6cc62c6
VS
30074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
30079
422107f9 30080/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30081#ifdef __cplusplus
30082extern "C"
30083#endif
422107f9 30084/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30085 builtin and then its argument prototype would still apply. */
30086char sched_get_priority_max ();
30087int
30088main ()
30089{
30090sched_get_priority_max ();
30091 ;
30092 return 0;
30093}
30094_ACEOF
30095rm -f conftest.$ac_objext conftest$ac_exeext
30096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30097 (eval $ac_link) 2>&5
e6cc62c6
VS
30098 ac_status=$?
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); } &&
789c5f4a 30101 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30103 (eval $ac_try) 2>&5
30104 ac_status=$?
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); }; }; then
30107 ac_cv_lib_posix4_sched_get_priority_max=yes
30108else
30109 echo "$as_me: failed program was:" >&5
30110sed 's/^/| /' conftest.$ac_ext >&5
30111
30112ac_cv_lib_posix4_sched_get_priority_max=no
30113fi
789c5f4a 30114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30115LIBS=$ac_check_lib_save_LIBS
30116fi
30117echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30118echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30119if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 30120
7274f1c7
RL
30121 HAVE_PRIOR_FUNCS=1
30122 POSIX4_LINK=" -lposix4"
e6cc62c6 30123
4f14bcd8 30124fi
463abc64 30125
e6cc62c6 30126
328a083c 30127fi
463abc64 30128
e6cc62c6 30129
7b4a847f 30130fi
579d8138 30131
e6cc62c6 30132
5c6fa7d2 30133fi
52127426 30134
8284b0c5 30135
7274f1c7 30136 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 30137 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30138#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 30139_ACEOF
463abc64 30140
7274f1c7 30141 else
e6cc62c6
VS
30142 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30143echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 30144 fi
463abc64 30145
e6cc62c6
VS
30146 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30147echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30148if test "${ac_cv_func_pthread_cancel+set}" = set; then
30149 echo $ECHO_N "(cached) $ECHO_C" >&6
30150else
30151 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30152#line $LINENO "configure"
e6cc62c6
VS
30153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
009fead0 30158/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30159 which can conflict with char pthread_cancel (); below.
30160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30161 <limits.h> exists even on freestanding compilers. */
30162#ifdef __STDC__
30163# include <limits.h>
30164#else
30165# include <assert.h>
30166#endif
422107f9 30167/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30168#ifdef __cplusplus
30169extern "C"
30170{
30171#endif
422107f9 30172/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30173 builtin and then its argument prototype would still apply. */
30174char pthread_cancel ();
009fead0
VZ
30175/* The GNU C library defines this for functions which it implements
30176 to always fail with ENOSYS. Some functions are actually named
30177 something starting with __ and the normal name is an alias. */
30178#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30179choke me
30180#else
e6cc62c6
VS
30181char (*f) () = pthread_cancel;
30182#endif
30183#ifdef __cplusplus
30184}
009fead0
VZ
30185#endif
30186
e6cc62c6
VS
30187int
30188main ()
30189{
30190return f != pthread_cancel;
30191 ;
30192 return 0;
30193}
30194_ACEOF
30195rm -f conftest.$ac_objext conftest$ac_exeext
30196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30197 (eval $ac_link) 2>&5
e6cc62c6
VS
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); } &&
789c5f4a 30201 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
30207 ac_cv_func_pthread_cancel=yes
30208else
30209 echo "$as_me: failed program was:" >&5
30210sed 's/^/| /' conftest.$ac_ext >&5
30211
30212ac_cv_func_pthread_cancel=no
30213fi
789c5f4a 30214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30215fi
30216echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30217echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30218if test $ac_cv_func_pthread_cancel = yes; then
30219 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30220#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 30221_ACEOF
4f14bcd8 30222
698dcdb6 30223else
e6cc62c6
VS
30224 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30225echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
30226fi
30227
5c6fa7d2 30228
4f14bcd8 30229
e6cc62c6
VS
30230
30231 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30232echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30233if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 30235else
e6cc62c6
VS
30236
30237 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30238#line $LINENO "configure"
e6cc62c6
VS
30239/* confdefs.h. */
30240_ACEOF
30241cat confdefs.h >>conftest.$ac_ext
30242cat >>conftest.$ac_ext <<_ACEOF
30243/* end confdefs.h. */
4f14bcd8 30244#include <pthread.h>
e6cc62c6
VS
30245int
30246main ()
30247{
4f14bcd8 30248
7274f1c7
RL
30249 pthread_mutexattr_t attr;
30250 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30251
30252 ;
30253 return 0;
30254}
30255_ACEOF
30256rm -f conftest.$ac_objext
30257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30258 (eval $ac_compile) 2>&5
e6cc62c6
VS
30259 ac_status=$?
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } &&
789c5f4a 30262 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264 (eval $ac_try) 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
30268
7274f1c7 30269 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30270
3fed1840 30271else
e6cc62c6
VS
30272 echo "$as_me: failed program was:" >&5
30273sed 's/^/| /' conftest.$ac_ext >&5
30274
30275
7274f1c7 30276 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30277
30278
247f5006 30279fi
789c5f4a 30280rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30281
e6cc62c6
VS
30282fi
30283echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30284echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30285
7274f1c7 30286 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30287 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30288#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30289_ACEOF
4f14bcd8 30290
7274f1c7 30291 else
e6cc62c6
VS
30292 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30293echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30294if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30295 echo $ECHO_N "(cached) $ECHO_C" >&6
30296else
30297
30298 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30299#line $LINENO "configure"
e6cc62c6
VS
30300/* confdefs.h. */
30301_ACEOF
30302cat confdefs.h >>conftest.$ac_ext
30303cat >>conftest.$ac_ext <<_ACEOF
30304/* end confdefs.h. */
4f14bcd8 30305#include <pthread.h>
e6cc62c6
VS
30306int
30307main ()
30308{
4f14bcd8 30309
7274f1c7 30310 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30311
30312 ;
30313 return 0;
30314}
30315_ACEOF
30316rm -f conftest.$ac_objext
30317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30318 (eval $ac_compile) 2>&5
e6cc62c6
VS
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } &&
789c5f4a 30322 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324 (eval $ac_try) 2>&5
30325 ac_status=$?
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; }; then
30328
7274f1c7 30329 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30330
698dcdb6 30331else
e6cc62c6
VS
30332 echo "$as_me: failed program was:" >&5
30333sed 's/^/| /' conftest.$ac_ext >&5
30334
30335
7274f1c7 30336 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30337
30338
247f5006 30339fi
789c5f4a 30340rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30341
e6cc62c6
VS
30342fi
30343echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30344echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30345 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30346 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30347#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30348_ACEOF
3fed1840 30349
7274f1c7 30350 else
e6cc62c6
VS
30351 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30352echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30353 fi
30354 fi
7274f1c7 30355 fi
3fed1840 30356
a0b9e27f
MB
30357else
30358 if test "$wxUSE_THREADS" = "yes" ; then
30359 case "${host}" in
30360 *-*-mingw32* )
e6cc62c6
VS
30361 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30362echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30363if test "${wx_cv_cflags_mthread+set}" = set; then
30364 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30365else
e6cc62c6 30366
ca8e52b3
VZ
30367 CFLAGS_OLD="$CFLAGS"
30368 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 30369 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30370#line $LINENO "configure"
e6cc62c6
VS
30371/* confdefs.h. */
30372_ACEOF
30373cat confdefs.h >>conftest.$ac_ext
30374cat >>conftest.$ac_ext <<_ACEOF
30375/* end confdefs.h. */
30376
30377int
30378main ()
30379{
ca8e52b3 30380
e6cc62c6
VS
30381 ;
30382 return 0;
30383}
30384_ACEOF
30385rm -f conftest.$ac_objext
30386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30387 (eval $ac_compile) 2>&5
e6cc62c6
VS
30388 ac_status=$?
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } &&
789c5f4a 30391 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30393 (eval $ac_try) 2>&5
30394 ac_status=$?
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; }; then
ca8e52b3
VZ
30397 wx_cv_cflags_mthread=yes
30398else
e6cc62c6
VS
30399 echo "$as_me: failed program was:" >&5
30400sed 's/^/| /' conftest.$ac_ext >&5
30401
30402wx_cv_cflags_mthread=no
30403
ca8e52b3 30404fi
789c5f4a 30405rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 30406
ca8e52b3 30407
e6cc62c6
VS
30408fi
30409echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30410echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30411
30412 if test "$wx_cv_cflags_mthread" = "yes"; then
30413 CXXFLAGS="$CXXFLAGS -mthreads"
30414 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30415 LDFLAGS="$LDFLAGS -mthreads"
30416 else
30417 CFLAGS="$CFLAGS_OLD"
30418 fi
a0b9e27f 30419 ;;
73d617c9
MB
30420 *-pc-os2*emx )
30421 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30422 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30423 LDFLAGS="$LDFLAGS -Zmt"
30424 ;;
a0b9e27f
MB
30425 esac
30426 fi
4f14bcd8
GD
30427fi
30428
30429if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30430 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30431#define wxUSE_THREADS 1
e6cc62c6 30432_ACEOF
7b6058cd 30433
8284b0c5 30434
4f14bcd8 30435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30436else
4f14bcd8 30437 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30438 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30439echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30440 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30441 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30442 echo "$as_me:$LINENO: result: yes" >&5
30443echo "${ECHO_T}yes" >&6
4f14bcd8 30444 else
e6cc62c6
VS
30445 echo "$as_me:$LINENO: result: no" >&5
30446echo "${ECHO_T}no" >&6
4f14bcd8
GD
30447 fi
30448 fi
30449fi
30450
30451if test "$WXGTK20" = 1 ; then
e6cc62c6 30452 cat >>confdefs.h <<_ACEOF
4f14bcd8 30453#define __WXGTK20__ $WXGTK20
e6cc62c6 30454_ACEOF
4f14bcd8
GD
30455
30456 WXGTK12=1
10f2d63a 30457fi
4f14bcd8
GD
30458
30459if test "$WXGTK12" = 1 ; then
e6cc62c6 30460 cat >>confdefs.h <<_ACEOF
4f14bcd8 30461#define __WXGTK12__ $WXGTK12
e6cc62c6 30462_ACEOF
4f14bcd8 30463
10f2d63a 30464fi
698dcdb6 30465
4f14bcd8 30466if test "$WXGTK127" = 1 ; then
e6cc62c6 30467 cat >>confdefs.h <<_ACEOF
4f14bcd8 30468#define __WXGTK127__ $WXGTK127
e6cc62c6 30469_ACEOF
4f14bcd8 30470
698dcdb6 30471fi
10f2d63a 30472
4f14bcd8
GD
30473WXDEBUG=
30474
30475if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30476 WXDEBUG="-g"
30477 wxUSE_OPTIMISE=no
698dcdb6 30478fi
4f14bcd8
GD
30479
30480if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30481 wxUSE_DEBUG_INFO=yes
30482 WXDEBUG="-ggdb"
10f2d63a
VZ
30483fi
30484
4f14bcd8 30485if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30486 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30487#define WXDEBUG 1
e6cc62c6 30488_ACEOF
4f14bcd8
GD
30489
30490 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30491else
4f14bcd8
GD
30492 if test "$wxUSE_GTK" = 1 ; then
30493 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30494 fi
30495fi
30496
30497if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30498 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30499#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30500_ACEOF
4f14bcd8 30501
e6cc62c6 30502 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30503#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30504_ACEOF
4f14bcd8 30505
e6cc62c6 30506 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30507#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30508_ACEOF
4f14bcd8
GD
30509
30510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30511fi
30512
30513if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30514 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30515fi
30516
30517PROFILE=
30518if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30519 PROFILE=" -pg"
10f2d63a
VZ
30520fi
30521
009fead0
VZ
30522CODE_GEN_FLAGS=
30523CODE_GEN_FLAGS_CXX=
88e30f2b 30524if test "$GCC" = "yes" ; then
4f14bcd8
GD
30525 if test "$wxUSE_NO_RTTI" = "yes" ; then
30526 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30527 fi
4f14bcd8
GD
30528 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30529 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30530 fi
30531 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30532 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30533 fi
1d1b75ac 30534
2b5f62a0 30535 case "${host}" in
1d1b75ac
VZ
30536 powerpc*-*-aix* )
30537 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30538 ;;
2b5f62a0
VZ
30539 *-hppa* )
30540 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30541 ;;
1d1b75ac 30542 esac
4f14bcd8
GD
30543fi
30544
af7b5345 30545OPTIMISE=
4f14bcd8 30546if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30547 if test "$GCC" = yes ; then
30548 OPTIMISE="-O0"
30549 fi
4f14bcd8
GD
30550else
30551 if test "$GCC" = yes ; then
30552 OPTIMISE="-O2"
af7b5345
VZ
30553
30554 case "${host}" in
4f14bcd8
GD
30555 i586-*-*|i686-*-* )
30556 OPTIMISE="${OPTIMISE} "
30557 ;;
30558 esac
30559 else
30560 OPTIMISE="-O"
30561 fi
30562fi
30563
8d90d2f2 30564
65d8ef1e 30565if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30566 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30567#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30568_ACEOF
4f14bcd8 30569
8d90d2f2
VZ
30570
30571 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30572fi
30573
65d8ef1e 30574if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30575 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30576#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30577_ACEOF
65d8ef1e
VS
30578
30579fi
30580
8284b0c5 30581
10f2d63a 30582if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30583 cat >>confdefs.h <<\_ACEOF
10f2d63a 30584#define wxUSE_GUI 1
e6cc62c6 30585_ACEOF
10f2d63a 30586
8284b0c5 30587
10f2d63a 30588 else
e6cc62c6 30589 cat >>confdefs.h <<\_ACEOF
10f2d63a 30590#define wxUSE_NOGUI 1
e6cc62c6 30591_ACEOF
10f2d63a
VZ
30592
30593fi
30594
8284b0c5 30595
10f2d63a 30596if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30597 cat >>confdefs.h <<\_ACEOF
10f2d63a 30598#define wxUSE_UNIX 1
e6cc62c6 30599_ACEOF
10f2d63a
VZ
30600
30601fi
30602
8284b0c5 30603
f93ca9fd 30604if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 30605
f93ca9fd
VS
30606 HAVE_DL_FUNCS=0
30607 HAVE_SHL_FUNCS=0
30608 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
30609 if test "$USE_DARWIN" = 1; then
30610 HAVE_DL_FUNCS=1
30611 else
e6cc62c6 30612
f93ca9fd 30613for ac_func in dlopen
83307f33 30614do
e6cc62c6
VS
30615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30616echo "$as_me:$LINENO: checking for $ac_func" >&5
30617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30618if eval "test \"\${$as_ac_var+set}\" = set"; then
30619 echo $ECHO_N "(cached) $ECHO_C" >&6
30620else
30621 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30622#line $LINENO "configure"
e6cc62c6
VS
30623/* confdefs.h. */
30624_ACEOF
30625cat confdefs.h >>conftest.$ac_ext
30626cat >>conftest.$ac_ext <<_ACEOF
30627/* end confdefs.h. */
83307f33 30628/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30629 which can conflict with char $ac_func (); below.
30630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30631 <limits.h> exists even on freestanding compilers. */
30632#ifdef __STDC__
30633# include <limits.h>
30634#else
30635# include <assert.h>
30636#endif
83307f33 30637/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30638#ifdef __cplusplus
30639extern "C"
30640{
30641#endif
83307f33 30642/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30643 builtin and then its argument prototype would still apply. */
30644char $ac_func ();
83307f33
VZ
30645/* The GNU C library defines this for functions which it implements
30646 to always fail with ENOSYS. Some functions are actually named
30647 something starting with __ and the normal name is an alias. */
30648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30649choke me
30650#else
e6cc62c6
VS
30651char (*f) () = $ac_func;
30652#endif
30653#ifdef __cplusplus
30654}
83307f33
VZ
30655#endif
30656
e6cc62c6
VS
30657int
30658main ()
30659{
30660return f != $ac_func;
30661 ;
30662 return 0;
30663}
30664_ACEOF
30665rm -f conftest.$ac_objext conftest$ac_exeext
30666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30667 (eval $ac_link) 2>&5
e6cc62c6
VS
30668 ac_status=$?
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); } &&
789c5f4a 30671 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30674 ac_status=$?
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; }; then
30677 eval "$as_ac_var=yes"
30678else
30679 echo "$as_me: failed program was:" >&5
30680sed 's/^/| /' conftest.$ac_ext >&5
30681
30682eval "$as_ac_var=no"
30683fi
789c5f4a 30684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30685fi
30686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30688if test `eval echo '${'$as_ac_var'}'` = yes; then
30689 cat >>confdefs.h <<_ACEOF
30690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30691_ACEOF
83307f33 30692
f93ca9fd
VS
30693 cat >>confdefs.h <<\_ACEOF
30694#define HAVE_DLOPEN 1
e6cc62c6 30695_ACEOF
e6cc62c6 30696
f93ca9fd 30697 HAVE_DL_FUNCS=1
e6cc62c6 30698
360d6699 30699else
e6cc62c6 30700
f93ca9fd
VS
30701 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
30702echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
30703if test "${ac_cv_lib_dl_dlopen+set}" = set; then
30704 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 30705else
f93ca9fd
VS
30706 ac_check_lib_save_LIBS=$LIBS
30707LIBS="-ldl $LIBS"
30708cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30709#line $LINENO "configure"
e6cc62c6
VS
30710/* confdefs.h. */
30711_ACEOF
30712cat confdefs.h >>conftest.$ac_ext
30713cat >>conftest.$ac_ext <<_ACEOF
30714/* end confdefs.h. */
5357c8e8 30715
f93ca9fd
VS
30716/* Override any gcc2 internal prototype to avoid an error. */
30717#ifdef __cplusplus
30718extern "C"
30719#endif
30720/* We use char because int might match the return type of a gcc2
30721 builtin and then its argument prototype would still apply. */
30722char dlopen ();
e6cc62c6
VS
30723int
30724main ()
30725{
f93ca9fd 30726dlopen ();
e6cc62c6
VS
30727 ;
30728 return 0;
30729}
30730_ACEOF
f93ca9fd
VS
30731rm -f conftest.$ac_objext conftest$ac_exeext
30732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30733 (eval $ac_link) 2>&5
e6cc62c6
VS
30734 ac_status=$?
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); } &&
789c5f4a 30737 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30739 (eval $ac_try) 2>&5
30740 ac_status=$?
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; }; then
f93ca9fd 30743 ac_cv_lib_dl_dlopen=yes
360d6699 30744else
e6cc62c6
VS
30745 echo "$as_me: failed program was:" >&5
30746sed 's/^/| /' conftest.$ac_ext >&5
30747
f93ca9fd 30748ac_cv_lib_dl_dlopen=no
247f5006 30749fi
789c5f4a 30750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd 30751LIBS=$ac_check_lib_save_LIBS
e6cc62c6 30752fi
f93ca9fd
VS
30753echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
30754echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
30755if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 30756
f93ca9fd
VS
30757 cat >>confdefs.h <<\_ACEOF
30758#define HAVE_DLOPEN 1
e6cc62c6 30759_ACEOF
360d6699 30760
f93ca9fd
VS
30761 HAVE_DL_FUNCS=1
30762 DL_LINK=" -ldl$DL_LINK"
698dcdb6 30763
f93ca9fd 30764else
e6cc62c6 30765
f93ca9fd
VS
30766
30767for ac_func in shl_load
afc31813 30768do
e6cc62c6
VS
30769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30770echo "$as_me:$LINENO: checking for $ac_func" >&5
30771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30772if eval "test \"\${$as_ac_var+set}\" = set"; then
30773 echo $ECHO_N "(cached) $ECHO_C" >&6
30774else
30775 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30776#line $LINENO "configure"
e6cc62c6
VS
30777/* confdefs.h. */
30778_ACEOF
30779cat confdefs.h >>conftest.$ac_ext
30780cat >>conftest.$ac_ext <<_ACEOF
30781/* end confdefs.h. */
afc31813 30782/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30783 which can conflict with char $ac_func (); below.
30784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30785 <limits.h> exists even on freestanding compilers. */
30786#ifdef __STDC__
30787# include <limits.h>
30788#else
30789# include <assert.h>
30790#endif
afc31813 30791/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30792#ifdef __cplusplus
30793extern "C"
30794{
30795#endif
afc31813 30796/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30797 builtin and then its argument prototype would still apply. */
30798char $ac_func ();
afc31813
VZ
30799/* The GNU C library defines this for functions which it implements
30800 to always fail with ENOSYS. Some functions are actually named
30801 something starting with __ and the normal name is an alias. */
30802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30803choke me
30804#else
e6cc62c6
VS
30805char (*f) () = $ac_func;
30806#endif
30807#ifdef __cplusplus
30808}
afc31813
VZ
30809#endif
30810
e6cc62c6
VS
30811int
30812main ()
30813{
30814return f != $ac_func;
30815 ;
30816 return 0;
30817}
30818_ACEOF
30819rm -f conftest.$ac_objext conftest$ac_exeext
30820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30821 (eval $ac_link) 2>&5
e6cc62c6
VS
30822 ac_status=$?
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
789c5f4a 30825 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30831 eval "$as_ac_var=yes"
30832else
30833 echo "$as_me: failed program was:" >&5
30834sed 's/^/| /' conftest.$ac_ext >&5
30835
30836eval "$as_ac_var=no"
30837fi
789c5f4a 30838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30839fi
30840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30842if test `eval echo '${'$as_ac_var'}'` = yes; then
30843 cat >>confdefs.h <<_ACEOF
30844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30845_ACEOF
afc31813 30846
f93ca9fd
VS
30847 cat >>confdefs.h <<\_ACEOF
30848#define HAVE_SHL_LOAD 1
30849_ACEOF
afc31813 30850
f93ca9fd 30851 HAVE_SHL_FUNCS=1
5c6fa7d2 30852
a0b9e27f 30853else
e6cc62c6 30854
f93ca9fd
VS
30855 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
30856echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
30857if test "${ac_cv_lib_shl_load_dld+set}" = set; then
30858 echo $ECHO_N "(cached) $ECHO_C" >&6
30859else
30860 ac_check_lib_save_LIBS=$LIBS
30861LIBS="-lshl_load $LIBS"
30862cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30863#line $LINENO "configure"
e6cc62c6
VS
30864/* confdefs.h. */
30865_ACEOF
30866cat confdefs.h >>conftest.$ac_ext
30867cat >>conftest.$ac_ext <<_ACEOF
30868/* end confdefs.h. */
0470b1e6 30869
f93ca9fd
VS
30870/* Override any gcc2 internal prototype to avoid an error. */
30871#ifdef __cplusplus
30872extern "C"
30873#endif
30874/* We use char because int might match the return type of a gcc2
30875 builtin and then its argument prototype would still apply. */
30876char dld ();
e6cc62c6
VS
30877int
30878main ()
30879{
f93ca9fd 30880dld ();
e6cc62c6
VS
30881 ;
30882 return 0;
30883}
30884_ACEOF
f93ca9fd
VS
30885rm -f conftest.$ac_objext conftest$ac_exeext
30886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30887 (eval $ac_link) 2>&5
e6cc62c6
VS
30888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); } &&
789c5f4a 30891 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30893 (eval $ac_try) 2>&5
30894 ac_status=$?
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; }; then
f93ca9fd 30897 ac_cv_lib_shl_load_dld=yes
0470b1e6 30898else
e6cc62c6
VS
30899 echo "$as_me: failed program was:" >&5
30900sed 's/^/| /' conftest.$ac_ext >&5
30901
f93ca9fd
VS
30902ac_cv_lib_shl_load_dld=no
30903fi
789c5f4a 30904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
30905LIBS=$ac_check_lib_save_LIBS
30906fi
30907echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
30908echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
30909if test $ac_cv_lib_shl_load_dld = yes; then
30910
30911 HAVE_SHL_FUNCS=1
30912 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 30913
247f5006 30914fi
f93ca9fd 30915
a0b9e27f 30916
e6cc62c6 30917fi
f93ca9fd 30918done
6232543b 30919
0470b1e6 30920
f93ca9fd
VS
30921fi
30922
3fcdd07b 30923
f93ca9fd
VS
30924fi
30925done
e6cc62c6
VS
30926
30927
f93ca9fd
VS
30928 if test "$HAVE_DL_FUNCS" = 1; then
30929
30930for ac_func in dlerror
3fcdd07b 30931do
e6cc62c6
VS
30932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30933echo "$as_me:$LINENO: checking for $ac_func" >&5
30934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30935if eval "test \"\${$as_ac_var+set}\" = set"; then
30936 echo $ECHO_N "(cached) $ECHO_C" >&6
30937else
30938 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30939#line $LINENO "configure"
e6cc62c6
VS
30940/* confdefs.h. */
30941_ACEOF
30942cat confdefs.h >>conftest.$ac_ext
30943cat >>conftest.$ac_ext <<_ACEOF
30944/* end confdefs.h. */
3fcdd07b 30945/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30946 which can conflict with char $ac_func (); below.
30947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30948 <limits.h> exists even on freestanding compilers. */
30949#ifdef __STDC__
30950# include <limits.h>
30951#else
30952# include <assert.h>
30953#endif
3fcdd07b 30954/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30955#ifdef __cplusplus
30956extern "C"
30957{
30958#endif
3fcdd07b 30959/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30960 builtin and then its argument prototype would still apply. */
30961char $ac_func ();
3fcdd07b
VZ
30962/* The GNU C library defines this for functions which it implements
30963 to always fail with ENOSYS. Some functions are actually named
30964 something starting with __ and the normal name is an alias. */
30965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30966choke me
30967#else
e6cc62c6
VS
30968char (*f) () = $ac_func;
30969#endif
30970#ifdef __cplusplus
30971}
3fcdd07b
VZ
30972#endif
30973
e6cc62c6
VS
30974int
30975main ()
30976{
30977return f != $ac_func;
30978 ;
30979 return 0;
30980}
30981_ACEOF
30982rm -f conftest.$ac_objext conftest$ac_exeext
30983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30984 (eval $ac_link) 2>&5
e6cc62c6
VS
30985 ac_status=$?
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } &&
789c5f4a 30988 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990 (eval $ac_try) 2>&5
30991 ac_status=$?
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; }; then
30994 eval "$as_ac_var=yes"
30995else
30996 echo "$as_me: failed program was:" >&5
30997sed 's/^/| /' conftest.$ac_ext >&5
30998
30999eval "$as_ac_var=no"
31000fi
789c5f4a 31001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31002fi
31003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31004echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31005if test `eval echo '${'$as_ac_var'}'` = yes; then
31006 cat >>confdefs.h <<_ACEOF
31007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31008_ACEOF
f93ca9fd
VS
31009 cat >>confdefs.h <<\_ACEOF
31010#define HAVE_DLERROR 1
31011_ACEOF
3fcdd07b 31012
f93ca9fd 31013else
698dcdb6 31014
f93ca9fd
VS
31015 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31016echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31017if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
31018 echo $ECHO_N "(cached) $ECHO_C" >&6
31019else
f93ca9fd
VS
31020 ac_check_lib_save_LIBS=$LIBS
31021LIBS="-ldl $LIBS"
31022cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31023#line $LINENO "configure"
e6cc62c6
VS
31024/* confdefs.h. */
31025_ACEOF
31026cat confdefs.h >>conftest.$ac_ext
31027cat >>conftest.$ac_ext <<_ACEOF
31028/* end confdefs.h. */
afc31813 31029
f93ca9fd
VS
31030/* Override any gcc2 internal prototype to avoid an error. */
31031#ifdef __cplusplus
31032extern "C"
31033#endif
31034/* We use char because int might match the return type of a gcc2
31035 builtin and then its argument prototype would still apply. */
31036char dlerror ();
e6cc62c6
VS
31037int
31038main ()
31039{
f93ca9fd 31040dlerror ();
e6cc62c6
VS
31041 ;
31042 return 0;
31043}
31044_ACEOF
f93ca9fd
VS
31045rm -f conftest.$ac_objext conftest$ac_exeext
31046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31047 (eval $ac_link) 2>&5
e6cc62c6
VS
31048 ac_status=$?
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); } &&
789c5f4a 31051 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31053 (eval $ac_try) 2>&5
31054 ac_status=$?
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; }; then
f93ca9fd 31057 ac_cv_lib_dl_dlerror=yes
10f2d63a 31058else
e6cc62c6
VS
31059 echo "$as_me: failed program was:" >&5
31060sed 's/^/| /' conftest.$ac_ext >&5
31061
f93ca9fd
VS
31062ac_cv_lib_dl_dlerror=no
31063fi
789c5f4a 31064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31065LIBS=$ac_check_lib_save_LIBS
31066fi
31067echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31068echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31069if test $ac_cv_lib_dl_dlerror = yes; then
31070 cat >>confdefs.h <<\_ACEOF
31071#define HAVE_DLERROR 1
31072_ACEOF
31073
31074fi
31075
31076
31077
31078fi
31079done
31080
31081 fi
31082 fi
31083
31084 if test "$HAVE_DL_FUNCS" = 0; then
31085 if test "$HAVE_SHL_FUNCS" = 0; then
31086 if test "$USE_UNIX" = 1; then
31087 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31088echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31089 wxUSE_DYNAMIC_LOADER=no
31090 wxUSE_DYNLIB_CLASS=no
31091 else
31092 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31093echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31094 fi
31095 fi
31096 fi
31097 fi
31098fi
31099
31100if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31101 cat >>confdefs.h <<\_ACEOF
31102#define wxUSE_DYNAMIC_LOADER 1
31103_ACEOF
31104
31105fi
31106if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31107 cat >>confdefs.h <<\_ACEOF
31108#define wxUSE_DYNLIB_CLASS 1
31109_ACEOF
31110
31111fi
31112
31113
31114
31115if test "$wxUSE_PLUGINS" = "yes" ; then
31116 if test "$wxUSE_SHARED" = "no" ; then
31117 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
31118echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
31119 wxUSE_PLUGINS=no
31120 fi
31121 if test "$wxUSE_MONOLITHIC" = "yes" ; then
31122 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
31123echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
31124 wxUSE_PLUGINS=no
31125 fi
31126 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
31127 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
31128echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
31129 wxUSE_PLUGINS=no
31130 fi
31131 if test "$wxUSE_PLUGINS" = "yes" ; then
31132 cat >>confdefs.h <<\_ACEOF
31133#define wxUSE_PLUGINS 1
31134_ACEOF
31135
31136 fi
31137fi
31138
31139
31140if test "$wxUSE_STL" = "yes"; then
31141 cat >>confdefs.h <<\_ACEOF
31142#define wxUSE_STL 1
31143_ACEOF
31144
31145fi
31146
31147if test "$wxUSE_APPLE_IEEE" = "yes"; then
31148 cat >>confdefs.h <<\_ACEOF
31149#define wxUSE_APPLE_IEEE 1
31150_ACEOF
31151
31152fi
31153
31154if test "$wxUSE_TIMER" = "yes"; then
31155 cat >>confdefs.h <<\_ACEOF
31156#define wxUSE_TIMER 1
31157_ACEOF
31158
31159fi
31160
31161WITH_PLUGIN_SDL=0
002ed9af 31162if test "$wxUSE_SOUND" = "yes"; then
f93ca9fd
VS
31163 if test "$USE_UNIX" = "1" ; then
31164
31165for ac_header in sys/soundcard.h
31166do
31167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31168if eval "test \"\${$as_ac_Header+set}\" = set"; then
31169 echo "$as_me:$LINENO: checking for $ac_header" >&5
31170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31171if eval "test \"\${$as_ac_Header+set}\" = set"; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31173fi
31174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31176else
31177 # Is the header compilable?
31178echo "$as_me:$LINENO: checking $ac_header usability" >&5
31179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31180cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31181#line $LINENO "configure"
e6cc62c6
VS
31182/* confdefs.h. */
31183_ACEOF
31184cat confdefs.h >>conftest.$ac_ext
31185cat >>conftest.$ac_ext <<_ACEOF
31186/* end confdefs.h. */
f93ca9fd
VS
31187$ac_includes_default
31188#include <$ac_header>
e6cc62c6
VS
31189_ACEOF
31190rm -f conftest.$ac_objext
31191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 31192 (eval $ac_compile) 2>&5
e6cc62c6
VS
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } &&
789c5f4a 31196 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31199 ac_status=$?
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; }; then
f93ca9fd 31202 ac_header_compiler=yes
10f2d63a 31203else
e6cc62c6
VS
31204 echo "$as_me: failed program was:" >&5
31205sed 's/^/| /' conftest.$ac_ext >&5
31206
f93ca9fd 31207ac_header_compiler=no
10f2d63a 31208fi
789c5f4a 31209rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
31210echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31211echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 31212
f93ca9fd
VS
31213# Is the header present?
31214echo "$as_me:$LINENO: checking $ac_header presence" >&5
31215echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31216cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31217#line $LINENO "configure"
e6cc62c6
VS
31218/* confdefs.h. */
31219_ACEOF
31220cat confdefs.h >>conftest.$ac_ext
31221cat >>conftest.$ac_ext <<_ACEOF
31222/* end confdefs.h. */
f93ca9fd 31223#include <$ac_header>
e6cc62c6 31224_ACEOF
f93ca9fd
VS
31225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 31227 ac_status=$?
f95e4495
VS
31228 grep -v '^ *+' conftest.er1 >conftest.err
31229 rm -f conftest.er1
31230 cat conftest.err >&5
e6cc62c6 31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
31232 (exit $ac_status); } >/dev/null; then
31233 if test -s conftest.err; then
31234 ac_cpp_err=$ac_c_preproc_warn_flag
f93ca9fd
VS
31235 else
31236 ac_cpp_err=
31237 fi
31238else
31239 ac_cpp_err=yes
31240fi
31241if test -z "$ac_cpp_err"; then
31242 ac_header_preproc=yes
31243else
31244 echo "$as_me: failed program was:" >&5
31245sed 's/^/| /' conftest.$ac_ext >&5
31246
31247 ac_header_preproc=no
31248fi
31249rm -f conftest.err conftest.$ac_ext
31250echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31251echo "${ECHO_T}$ac_header_preproc" >&6
31252
31253# So? What about this header?
789c5f4a
VZ
31254case $ac_header_compiler:$ac_header_preproc in
31255 yes:no )
f93ca9fd
VS
31256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
31258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31260 (
31261 cat <<\_ASBOX
31262## ------------------------------------ ##
31263## Report this to bug-autoconf@gnu.org. ##
31264## ------------------------------------ ##
31265_ASBOX
31266 ) |
31267 sed "s/^/$as_me: WARNING: /" >&2
f93ca9fd 31268 ;;
789c5f4a 31269 no:yes )
f93ca9fd
VS
31270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
31272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
f93ca9fd
VS
31274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f93ca9fd
VS
31276 (
31277 cat <<\_ASBOX
789c5f4a
VZ
31278## ------------------------------------ ##
31279## Report this to bug-autoconf@gnu.org. ##
31280## ------------------------------------ ##
f93ca9fd
VS
31281_ASBOX
31282 ) |
31283 sed "s/^/$as_me: WARNING: /" >&2
31284 ;;
31285esac
31286echo "$as_me:$LINENO: checking for $ac_header" >&5
31287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31288if eval "test \"\${$as_ac_Header+set}\" = set"; then
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
31290else
789c5f4a 31291 eval "$as_ac_Header=$ac_header_preproc"
f93ca9fd
VS
31292fi
31293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31295
31296fi
31297if test `eval echo '${'$as_ac_Header'}'` = yes; then
31298 cat >>confdefs.h <<_ACEOF
31299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31300_ACEOF
31301
31302fi
31303
31304done
31305
31306
31307 if test "$wxUSE_LIBSDL" != "no"; then
31308
31309# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
31310if test "${with_sdl_prefix+set}" = set; then
31311 withval="$with_sdl_prefix"
31312 sdl_prefix="$withval"
31313else
31314 sdl_prefix=""
31315fi;
31316
31317# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
31318if test "${with_sdl_exec_prefix+set}" = set; then
31319 withval="$with_sdl_exec_prefix"
31320 sdl_exec_prefix="$withval"
31321else
31322 sdl_exec_prefix=""
31323fi;
31324# Check whether --enable-sdltest or --disable-sdltest was given.
31325if test "${enable_sdltest+set}" = set; then
31326 enableval="$enable_sdltest"
31327
31328else
31329 enable_sdltest=yes
31330fi;
31331
31332 if test x$sdl_exec_prefix != x ; then
31333 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31334 if test x${SDL_CONFIG+set} != xset ; then
31335 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31336 fi
31337 fi
31338 if test x$sdl_prefix != x ; then
31339 sdl_args="$sdl_args --prefix=$sdl_prefix"
31340 if test x${SDL_CONFIG+set} != xset ; then
31341 SDL_CONFIG=$sdl_prefix/bin/sdl-config
31342 fi
31343 fi
31344
31345
31346 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31347 # Extract the first word of "sdl-config", so it can be a program name with args.
31348set dummy sdl-config; ac_word=$2
31349echo "$as_me:$LINENO: checking for $ac_word" >&5
31350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31351if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
31352 echo $ECHO_N "(cached) $ECHO_C" >&6
31353else
31354 case $SDL_CONFIG in
31355 [\\/]* | ?:[\\/]*)
31356 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31357 ;;
31358 *)
31359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31360for as_dir in $PATH
31361do
31362 IFS=$as_save_IFS
31363 test -z "$as_dir" && as_dir=.
31364 for ac_exec_ext in '' $ac_executable_extensions; do
31365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31366 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31368 break 2
31369 fi
31370done
31371done
31372
31373 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31374 ;;
31375esac
31376fi
31377SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31378
31379if test -n "$SDL_CONFIG"; then
31380 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
31381echo "${ECHO_T}$SDL_CONFIG" >&6
31382else
31383 echo "$as_me:$LINENO: result: no" >&5
31384echo "${ECHO_T}no" >&6
31385fi
31386
31387 min_sdl_version=1.2.0
31388 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
31389echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
31390 no_sdl=""
31391 if test "$SDL_CONFIG" = "no" ; then
31392 no_sdl=yes
31393 else
31394 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31395 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31396
31397 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31399 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31401 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31403 if test "x$enable_sdltest" = "xyes" ; then
31404 ac_save_CFLAGS="$CFLAGS"
31405 ac_save_LIBS="$LIBS"
31406 CFLAGS="$CFLAGS $SDL_CFLAGS"
31407 LIBS="$LIBS $SDL_LIBS"
31408 rm -f conf.sdltest
31409 if test "$cross_compiling" = yes; then
31410 echo $ac_n "cross compiling; assumed OK... $ac_c"
31411else
31412 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31413#line $LINENO "configure"
f93ca9fd
VS
31414/* confdefs.h. */
31415_ACEOF
31416cat confdefs.h >>conftest.$ac_ext
31417cat >>conftest.$ac_ext <<_ACEOF
31418/* end confdefs.h. */
31419
31420#include <stdio.h>
31421#include <stdlib.h>
31422#include <string.h>
31423#include "SDL.h"
31424
31425char*
31426my_strdup (char *str)
31427{
31428 char *new_str;
31429
31430 if (str)
31431 {
31432 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31433 strcpy (new_str, str);
31434 }
31435 else
31436 new_str = NULL;
31437
31438 return new_str;
31439}
31440
31441int main (int argc, char *argv[])
31442{
31443 int major, minor, micro;
31444 char *tmp_version;
31445
31446 /* This hangs on some systems (?)
31447 system ("touch conf.sdltest");
31448 */
31449 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31450
31451 /* HP/UX 9 (%@#!) writes to sscanf strings */
31452 tmp_version = my_strdup("$min_sdl_version");
31453 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31454 printf("%s, bad version string\n", "$min_sdl_version");
31455 exit(1);
31456 }
31457
31458 if (($sdl_major_version > major) ||
31459 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31460 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31461 {
31462 return 0;
31463 }
31464 else
31465 {
31466 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31467 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31468 printf("*** best to upgrade to the required version.\n");
31469 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31470 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31471 printf("*** config.cache before re-running configure\n");
31472 return 1;
31473 }
31474}
31475
31476
31477_ACEOF
31478rm -f conftest$ac_exeext
31479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31480 (eval $ac_link) 2>&5
f95e4495
VS
31481 ac_status=$?
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 31483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; }; then
f93ca9fd 31489 :
e6cc62c6 31490else
f93ca9fd
VS
31491 echo "$as_me: program exited with status $ac_status" >&5
31492echo "$as_me: failed program was:" >&5
e6cc62c6
VS
31493sed 's/^/| /' conftest.$ac_ext >&5
31494
f93ca9fd
VS
31495( exit $ac_status )
31496no_sdl=yes
e6cc62c6 31497fi
789c5f4a 31498rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 31499fi
f93ca9fd
VS
31500 CFLAGS="$ac_save_CFLAGS"
31501 LIBS="$ac_save_LIBS"
31502 fi
31503 fi
31504 if test "x$no_sdl" = x ; then
31505 echo "$as_me:$LINENO: result: yes" >&5
31506echo "${ECHO_T}yes" >&6
0e012a93 31507
f93ca9fd
VS
31508 EXTRALIBS_SDL="$SDL_LIBS"
31509 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
31510 cat >>confdefs.h <<\_ACEOF
31511#define wxUSE_LIBSDL 1
31512_ACEOF
31513
31514
31515 else
31516 echo "$as_me:$LINENO: result: no" >&5
31517echo "${ECHO_T}no" >&6
31518 if test "$SDL_CONFIG" = "no" ; then
31519 echo "*** The sdl-config script installed by SDL could not be found"
31520 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31521 echo "*** your path, or set the SDL_CONFIG environment variable to the"
31522 echo "*** full path to sdl-config."
31523 else
31524 if test -f conf.sdltest ; then
31525 :
31526 else
31527 echo "*** Could not run SDL test program, checking why..."
31528 CFLAGS="$CFLAGS $SDL_CFLAGS"
31529 LIBS="$LIBS $SDL_LIBS"
31530 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31531#line $LINENO "configure"
e6cc62c6
VS
31532/* confdefs.h. */
31533_ACEOF
31534cat confdefs.h >>conftest.$ac_ext
31535cat >>conftest.$ac_ext <<_ACEOF
31536/* end confdefs.h. */
31537
f93ca9fd
VS
31538#include <stdio.h>
31539#include "SDL.h"
31540
31541int main(int argc, char *argv[])
31542{ return 0; }
31543#undef main
31544#define main K_and_R_C_main
31545
e6cc62c6
VS
31546int
31547main ()
31548{
f93ca9fd 31549 return 0;
e6cc62c6
VS
31550 ;
31551 return 0;
31552}
31553_ACEOF
31554rm -f conftest.$ac_objext conftest$ac_exeext
31555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31556 (eval $ac_link) 2>&5
e6cc62c6
VS
31557 ac_status=$?
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); } &&
789c5f4a 31560 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; }; then
f93ca9fd
VS
31566 echo "*** The test program compiled, but did not run. This usually means"
31567 echo "*** that the run-time linker is not finding SDL or finding the wrong"
31568 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
31569 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31570 echo "*** to the installed location Also, make sure you have run ldconfig if that"
31571 echo "*** is required on your system"
31572 echo "***"
31573 echo "*** If you have an old version installed, it is best to remove it, although"
31574 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
31575else
31576 echo "$as_me: failed program was:" >&5
31577sed 's/^/| /' conftest.$ac_ext >&5
31578
f93ca9fd
VS
31579 echo "*** The test program failed to compile or link. See the file config.log for the"
31580 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
31581 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
31582 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 31583fi
789c5f4a 31584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31585 CFLAGS="$ac_save_CFLAGS"
31586 LIBS="$ac_save_LIBS"
31587 fi
31588 fi
31589 SDL_CFLAGS=""
31590 SDL_LIBS=""
31591 wxUSE_LIBSDL="no"
31592 fi
31593
31594
31595 rm -f conf.sdltest
31596
31597 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
31598 WITH_PLUGIN_SDL=1
31599 fi
31600 fi
31601 fi
31602
31603 cat >>confdefs.h <<\_ACEOF
002ed9af 31604#define wxUSE_SOUND 1
f93ca9fd
VS
31605_ACEOF
31606
31607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 31608fi
afc31813 31609
f93ca9fd
VS
31610if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
31611 cat >>confdefs.h <<\_ACEOF
31612#define wxUSE_CMDLINE_PARSER 1
31613_ACEOF
31614
31615fi
e6cc62c6 31616
f93ca9fd
VS
31617if test "$wxUSE_STOPWATCH" = "yes"; then
31618 cat >>confdefs.h <<\_ACEOF
31619#define wxUSE_STOPWATCH 1
31620_ACEOF
e6cc62c6 31621
6232543b 31622fi
b089607b 31623
f93ca9fd
VS
31624if test "$wxUSE_DATETIME" = "yes"; then
31625 cat >>confdefs.h <<\_ACEOF
31626#define wxUSE_DATETIME 1
31627_ACEOF
e6cc62c6 31628
f93ca9fd
VS
31629fi
31630
31631if test "$wxUSE_FILE" = "yes"; then
31632 cat >>confdefs.h <<\_ACEOF
31633#define wxUSE_FILE 1
31634_ACEOF
0e012a93 31635
1e487827 31636fi
afc31813 31637
f93ca9fd
VS
31638if test "$wxUSE_FFILE" = "yes"; then
31639 cat >>confdefs.h <<\_ACEOF
31640#define wxUSE_FFILE 1
31641_ACEOF
31642
31643fi
31644
31645if test "$wxUSE_FILESYSTEM" = "yes"; then
31646 cat >>confdefs.h <<\_ACEOF
31647#define wxUSE_FILESYSTEM 1
31648_ACEOF
31649
31650fi
31651
31652if test "$wxUSE_FS_ZIP" = "yes"; then
31653 cat >>confdefs.h <<\_ACEOF
31654#define wxUSE_FS_ZIP 1
31655_ACEOF
31656
31657fi
31658
31659if test "$wxUSE_ZIPSTREAM" = "yes"; then
31660 cat >>confdefs.h <<\_ACEOF
31661#define wxUSE_ZIPSTREAM 1
31662_ACEOF
31663
31664fi
31665
31666if test "$wxUSE_GZSTREAM" = "yes"; then
31667 cat >>confdefs.h <<\_ACEOF
31668#define wxUSE_GZSTREAM 1
31669_ACEOF
31670
31671fi
31672
31673if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31674 cat >>confdefs.h <<\_ACEOF
31675#define wxUSE_ON_FATAL_EXCEPTION 1
31676_ACEOF
31677
31678fi
31679
31680if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31681 cat >>confdefs.h <<\_ACEOF
31682#define wxUSE_SNGLINST_CHECKER 1
31683_ACEOF
31684
31685fi
31686
31687if test "$wxUSE_BUSYINFO" = "yes"; then
31688 cat >>confdefs.h <<\_ACEOF
31689#define wxUSE_BUSYINFO 1
31690_ACEOF
31691
31692fi
31693
31694if test "$wxUSE_STD_IOSTREAM" = "yes"; then
31695 cat >>confdefs.h <<\_ACEOF
31696#define wxUSE_STD_IOSTREAM 1
31697_ACEOF
31698
31699fi
31700
31701if test "$wxUSE_TEXTBUFFER" = "yes"; then
31702 cat >>confdefs.h <<\_ACEOF
31703#define wxUSE_TEXTBUFFER 1
31704_ACEOF
31705
31706fi
31707
31708if test "$wxUSE_TEXTFILE" = "yes"; then
31709 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
31710 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
31711echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
31712 else
31713 cat >>confdefs.h <<\_ACEOF
31714#define wxUSE_TEXTFILE 1
31715_ACEOF
31716
31717 fi
31718fi
31719
31720if test "$wxUSE_CONFIG" = "yes" ; then
31721 if test "$wxUSE_TEXTFILE" != "yes"; then
31722 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
31723echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
31724 else
31725 cat >>confdefs.h <<\_ACEOF
31726#define wxUSE_CONFIG 1
31727_ACEOF
31728
31729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
31730 fi
31731fi
31732
31733if test "$wxUSE_INTL" = "yes" ; then
31734 if test "$wxUSE_FILE" != "yes"; then
31735 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
31736echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
31737 else
31738 cat >>confdefs.h <<\_ACEOF
31739#define wxUSE_INTL 1
31740_ACEOF
31741
31742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
31743 GUIDIST="$GUIDIST INTL_DIST"
31744 fi
31745fi
31746
31747if test "$wxUSE_LOG" = "yes"; then
31748 cat >>confdefs.h <<\_ACEOF
31749#define wxUSE_LOG 1
31750_ACEOF
31751
31752
31753 if test "$wxUSE_LOGGUI" = "yes"; then
31754 cat >>confdefs.h <<\_ACEOF
31755#define wxUSE_LOGGUI 1
31756_ACEOF
31757
31758 fi
31759
31760 if test "$wxUSE_LOGWINDOW" = "yes"; then
31761 cat >>confdefs.h <<\_ACEOF
31762#define wxUSE_LOGWINDOW 1
31763_ACEOF
31764
31765 fi
31766
31767 if test "$wxUSE_LOGDIALOG" = "yes"; then
31768 cat >>confdefs.h <<\_ACEOF
31769#define wxUSE_LOG_DIALOG 1
31770_ACEOF
31771
3a922bb4 31772 fi
0feee163 31773fi
51a9faba 31774
f93ca9fd
VS
31775if test "$wxUSE_LONGLONG" = "yes"; then
31776 cat >>confdefs.h <<\_ACEOF
31777#define wxUSE_LONGLONG 1
31778_ACEOF
e6cc62c6 31779
f93ca9fd
VS
31780fi
31781
31782if test "$wxUSE_GEOMETRY" = "yes"; then
31783 cat >>confdefs.h <<\_ACEOF
31784#define wxUSE_GEOMETRY 1
e6cc62c6 31785_ACEOF
51a9faba 31786
f93ca9fd 31787fi
e6cc62c6 31788
f93ca9fd
VS
31789if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
31790 cat >>confdefs.h <<\_ACEOF
31791#define wxUSE_DIALUP_MANAGER 1
31792_ACEOF
51a9faba 31793
f93ca9fd
VS
31794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
31795fi
e6cc62c6 31796
f93ca9fd
VS
31797if test "$wxUSE_STREAMS" = "yes" ; then
31798 cat >>confdefs.h <<\_ACEOF
31799#define wxUSE_STREAMS 1
e6cc62c6 31800_ACEOF
e6cc62c6 31801
f93ca9fd 31802fi
e6cc62c6 31803
9711d31e 31804
f93ca9fd
VS
31805if test "$wxUSE_DATETIME" = "yes"; then
31806
31807for ac_func in strptime
31808do
31809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31810echo "$as_me:$LINENO: checking for $ac_func" >&5
31811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31812if eval "test \"\${$as_ac_var+set}\" = set"; then
31813 echo $ECHO_N "(cached) $ECHO_C" >&6
31814else
31815 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31816#line $LINENO "configure"
e6cc62c6
VS
31817/* confdefs.h. */
31818_ACEOF
31819cat confdefs.h >>conftest.$ac_ext
31820cat >>conftest.$ac_ext <<_ACEOF
31821/* end confdefs.h. */
f93ca9fd
VS
31822/* System header to define __stub macros and hopefully few prototypes,
31823 which can conflict with char $ac_func (); below.
31824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31825 <limits.h> exists even on freestanding compilers. */
f93ca9fd
VS
31826#ifdef __STDC__
31827# include <limits.h>
31828#else
31829# include <assert.h>
31830#endif
f93ca9fd
VS
31831/* Override any gcc2 internal prototype to avoid an error. */
31832#ifdef __cplusplus
31833extern "C"
31834{
31835#endif
31836/* We use char because int might match the return type of a gcc2
31837 builtin and then its argument prototype would still apply. */
31838char $ac_func ();
31839/* The GNU C library defines this for functions which it implements
31840 to always fail with ENOSYS. Some functions are actually named
31841 something starting with __ and the normal name is an alias. */
31842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31843choke me
31844#else
31845char (*f) () = $ac_func;
31846#endif
31847#ifdef __cplusplus
31848}
31849#endif
e6cc62c6
VS
31850
31851int
31852main ()
31853{
f93ca9fd 31854return f != $ac_func;
e6cc62c6
VS
31855 ;
31856 return 0;
31857}
31858_ACEOF
f93ca9fd
VS
31859rm -f conftest.$ac_objext conftest$ac_exeext
31860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31861 (eval $ac_link) 2>&5
e6cc62c6
VS
31862 ac_status=$?
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } &&
789c5f4a 31865 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31867 (eval $ac_try) 2>&5
31868 ac_status=$?
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); }; }; then
f93ca9fd 31871 eval "$as_ac_var=yes"
afc31813 31872else
e6cc62c6
VS
31873 echo "$as_me: failed program was:" >&5
31874sed 's/^/| /' conftest.$ac_ext >&5
31875
f93ca9fd
VS
31876eval "$as_ac_var=no"
31877fi
789c5f4a 31878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31879fi
31880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31882if test `eval echo '${'$as_ac_var'}'` = yes; then
31883 cat >>confdefs.h <<_ACEOF
31884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31885_ACEOF
31886
31887fi
31888done
31889
31890
31891 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
31892echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
31893if test "${wx_cv_var_timezone+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896
31897 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31898#line $LINENO "configure"
e6cc62c6
VS
31899/* confdefs.h. */
31900_ACEOF
31901cat confdefs.h >>conftest.$ac_ext
31902cat >>conftest.$ac_ext <<_ACEOF
31903/* end confdefs.h. */
51a9faba 31904
f93ca9fd 31905 #include <time.h>
e6cc62c6
VS
31906
31907int
31908main ()
31909{
51a9faba 31910
f93ca9fd
VS
31911 int tz;
31912 tz = timezone;
e6cc62c6
VS
31913
31914 ;
31915 return 0;
31916}
31917_ACEOF
31918rm -f conftest.$ac_objext
31919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 31920 (eval $ac_compile) 2>&5
e6cc62c6
VS
31921 ac_status=$?
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); } &&
789c5f4a 31924 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
31925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31926 (eval $ac_try) 2>&5
31927 ac_status=$?
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); }; }; then
8284b0c5 31930
f93ca9fd 31931 wx_cv_var_timezone=timezone
dc3d889d 31932
f93ca9fd
VS
31933else
31934 echo "$as_me: failed program was:" >&5
31935sed 's/^/| /' conftest.$ac_ext >&5
156b2523 31936
e6cc62c6 31937
f93ca9fd 31938 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31939#line $LINENO "configure"
e6cc62c6
VS
31940/* confdefs.h. */
31941_ACEOF
31942cat confdefs.h >>conftest.$ac_ext
31943cat >>conftest.$ac_ext <<_ACEOF
31944/* end confdefs.h. */
f93ca9fd
VS
31945
31946 #include <time.h>
31947
31948int
31949main ()
31950{
31951
31952 int tz;
31953 tz = _timezone;
31954
31955 ;
31956 return 0;
31957}
e6cc62c6
VS
31958_ACEOF
31959rm -f conftest.$ac_objext
31960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 31961 (eval $ac_compile) 2>&5
e6cc62c6
VS
31962 ac_status=$?
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); } &&
789c5f4a 31965 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31967 (eval $ac_try) 2>&5
31968 ac_status=$?
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); }; }; then
f93ca9fd
VS
31971
31972 wx_cv_var_timezone=_timezone
31973
e6cc62c6
VS
31974else
31975 echo "$as_me: failed program was:" >&5
31976sed 's/^/| /' conftest.$ac_ext >&5
31977
e6cc62c6 31978
f93ca9fd 31979 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31980#line $LINENO "configure"
e6cc62c6
VS
31981/* confdefs.h. */
31982_ACEOF
31983cat confdefs.h >>conftest.$ac_ext
31984cat >>conftest.$ac_ext <<_ACEOF
31985/* end confdefs.h. */
f93ca9fd
VS
31986
31987 #include <time.h>
31988
31989int
31990main ()
31991{
31992
31993 int tz;
31994 tz = __timezone;
31995
31996 ;
31997 return 0;
31998}
e6cc62c6 31999_ACEOF
f93ca9fd
VS
32000rm -f conftest.$ac_objext
32001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32002 (eval $ac_compile) 2>&5
e6cc62c6 32003 ac_status=$?
e6cc62c6 32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 32005 (exit $ac_status); } &&
789c5f4a 32006 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32008 (eval $ac_try) 2>&5
32009 ac_status=$?
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; }; then
32012
32013 wx_cv_var_timezone=__timezone
32014
e6cc62c6
VS
32015else
32016 echo "$as_me: failed program was:" >&5
32017sed 's/^/| /' conftest.$ac_ext >&5
32018
e6cc62c6 32019
f93ca9fd
VS
32020 if test "$USE_DOS" = 0 ; then
32021 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
32022echo "$as_me: WARNING: no timezone variable" >&2;}
32023 fi
32024
e6cc62c6 32025
10f2d63a 32026fi
789c5f4a 32027rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd 32028
e6cc62c6 32029
247f5006 32030fi
789c5f4a 32031rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32032
10f2d63a 32033
f93ca9fd 32034fi
789c5f4a 32035rm -f conftest.$ac_objext conftest.$ac_ext
b089607b 32036
10f2d63a 32037
dc3d889d 32038fi
f93ca9fd
VS
32039echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
32040echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 32041
f93ca9fd
VS
32042 if test "x$wx_cv_var_timezone" != x ; then
32043 cat >>confdefs.h <<_ACEOF
32044#define WX_TIMEZONE $wx_cv_var_timezone
32045_ACEOF
8284b0c5 32046
f93ca9fd 32047 fi
b089607b 32048
e6cc62c6 32049
f93ca9fd 32050for ac_func in localtime
10f2d63a 32051do
e6cc62c6
VS
32052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32053echo "$as_me:$LINENO: checking for $ac_func" >&5
32054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32055if eval "test \"\${$as_ac_var+set}\" = set"; then
32056 echo $ECHO_N "(cached) $ECHO_C" >&6
32057else
32058 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32059#line $LINENO "configure"
e6cc62c6
VS
32060/* confdefs.h. */
32061_ACEOF
32062cat confdefs.h >>conftest.$ac_ext
32063cat >>conftest.$ac_ext <<_ACEOF
32064/* end confdefs.h. */
10f2d63a 32065/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32066 which can conflict with char $ac_func (); below.
32067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32068 <limits.h> exists even on freestanding compilers. */
32069#ifdef __STDC__
32070# include <limits.h>
32071#else
32072# include <assert.h>
32073#endif
10f2d63a 32074/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32075#ifdef __cplusplus
32076extern "C"
32077{
32078#endif
10f2d63a 32079/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32080 builtin and then its argument prototype would still apply. */
32081char $ac_func ();
10f2d63a
VZ
32082/* The GNU C library defines this for functions which it implements
32083 to always fail with ENOSYS. Some functions are actually named
32084 something starting with __ and the normal name is an alias. */
32085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32086choke me
32087#else
e6cc62c6
VS
32088char (*f) () = $ac_func;
32089#endif
32090#ifdef __cplusplus
32091}
10f2d63a
VZ
32092#endif
32093
e6cc62c6
VS
32094int
32095main ()
32096{
32097return f != $ac_func;
32098 ;
32099 return 0;
32100}
32101_ACEOF
32102rm -f conftest.$ac_objext conftest$ac_exeext
32103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32104 (eval $ac_link) 2>&5
e6cc62c6
VS
32105 ac_status=$?
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); } &&
789c5f4a 32108 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32110 (eval $ac_try) 2>&5
32111 ac_status=$?
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; }; then
32114 eval "$as_ac_var=yes"
32115else
32116 echo "$as_me: failed program was:" >&5
32117sed 's/^/| /' conftest.$ac_ext >&5
32118
32119eval "$as_ac_var=no"
32120fi
789c5f4a 32121rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32122fi
32123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32124echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32125if test `eval echo '${'$as_ac_var'}'` = yes; then
32126 cat >>confdefs.h <<_ACEOF
32127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32128_ACEOF
32129
f93ca9fd
VS
32130fi
32131done
e6cc62c6 32132
e6cc62c6 32133
f93ca9fd
VS
32134 if test "$ac_cv_func_localtime" = "yes"; then
32135 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
32136echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
32137if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 32138 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 32139else
f93ca9fd
VS
32140
32141 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32142#line $LINENO "configure"
e6cc62c6
VS
32143/* confdefs.h. */
32144_ACEOF
32145cat confdefs.h >>conftest.$ac_ext
32146cat >>conftest.$ac_ext <<_ACEOF
32147/* end confdefs.h. */
32148
f93ca9fd
VS
32149 #include <time.h>
32150
e6cc62c6
VS
32151int
32152main ()
32153{
f93ca9fd
VS
32154
32155 struct tm tm;
32156 tm.tm_gmtoff++;
32157
e6cc62c6
VS
32158 ;
32159 return 0;
32160}
32161_ACEOF
f93ca9fd
VS
32162rm -f conftest.$ac_objext
32163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32164 (eval $ac_compile) 2>&5
e6cc62c6
VS
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); } &&
789c5f4a 32168 { ac_try='test -s conftest.$ac_objext'
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
f93ca9fd
VS
32174
32175 wx_cv_struct_tm_has_gmtoff=yes
32176
e6cc62c6
VS
32177else
32178 echo "$as_me: failed program was:" >&5
32179sed 's/^/| /' conftest.$ac_ext >&5
32180
f93ca9fd
VS
32181wx_cv_struct_tm_has_gmtoff=no
32182
e6cc62c6 32183fi
789c5f4a 32184rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd 32185
e6cc62c6 32186fi
f93ca9fd
VS
32187echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
32188echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
32189 fi
e6cc62c6 32190
f93ca9fd
VS
32191 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
32192 cat >>confdefs.h <<\_ACEOF
32193#define WX_GMTOFF_IN_TM 1
e6cc62c6 32194_ACEOF
10f2d63a 32195
f93ca9fd 32196 fi
e6cc62c6 32197
10f2d63a 32198
e6cc62c6 32199
f93ca9fd 32200for ac_func in gettimeofday ftime
10f2d63a 32201do
e6cc62c6
VS
32202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32203echo "$as_me:$LINENO: checking for $ac_func" >&5
32204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32205if eval "test \"\${$as_ac_var+set}\" = set"; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
32207else
32208 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32209#line $LINENO "configure"
e6cc62c6
VS
32210/* confdefs.h. */
32211_ACEOF
32212cat confdefs.h >>conftest.$ac_ext
32213cat >>conftest.$ac_ext <<_ACEOF
32214/* end confdefs.h. */
10f2d63a 32215/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32216 which can conflict with char $ac_func (); below.
32217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32218 <limits.h> exists even on freestanding compilers. */
32219#ifdef __STDC__
32220# include <limits.h>
32221#else
32222# include <assert.h>
32223#endif
10f2d63a 32224/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32225#ifdef __cplusplus
32226extern "C"
32227{
32228#endif
10f2d63a 32229/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32230 builtin and then its argument prototype would still apply. */
32231char $ac_func ();
10f2d63a
VZ
32232/* The GNU C library defines this for functions which it implements
32233 to always fail with ENOSYS. Some functions are actually named
32234 something starting with __ and the normal name is an alias. */
32235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32236choke me
32237#else
e6cc62c6
VS
32238char (*f) () = $ac_func;
32239#endif
32240#ifdef __cplusplus
32241}
10f2d63a
VZ
32242#endif
32243
e6cc62c6
VS
32244int
32245main ()
32246{
32247return f != $ac_func;
32248 ;
32249 return 0;
32250}
32251_ACEOF
32252rm -f conftest.$ac_objext conftest$ac_exeext
32253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32254 (eval $ac_link) 2>&5
e6cc62c6
VS
32255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); } &&
789c5f4a 32258 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260 (eval $ac_try) 2>&5
32261 ac_status=$?
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; }; then
32264 eval "$as_ac_var=yes"
32265else
32266 echo "$as_me: failed program was:" >&5
32267sed 's/^/| /' conftest.$ac_ext >&5
32268
32269eval "$as_ac_var=no"
32270fi
789c5f4a 32271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32272fi
32273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32275if test `eval echo '${'$as_ac_var'}'` = yes; then
32276 cat >>confdefs.h <<_ACEOF
32277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32278_ACEOF
f93ca9fd
VS
32279 break
32280fi
32281done
e6cc62c6 32282
f93ca9fd
VS
32283
32284 if test "$ac_cv_func_gettimeofday" = "yes"; then
32285 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
32286echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
32287if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
32288 echo $ECHO_N "(cached) $ECHO_C" >&6
32289else
32290
32291
32292
32293 ac_ext=cc
32294ac_cpp='$CXXCPP $CPPFLAGS'
32295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32298
32299
32300 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32301#line $LINENO "configure"
f93ca9fd 32302/* confdefs.h. */
e6cc62c6 32303_ACEOF
f93ca9fd
VS
32304cat confdefs.h >>conftest.$ac_ext
32305cat >>conftest.$ac_ext <<_ACEOF
32306/* end confdefs.h. */
10f2d63a 32307
f93ca9fd
VS
32308 #include <sys/time.h>
32309 #include <unistd.h>
e6cc62c6 32310
f93ca9fd
VS
32311int
32312main ()
32313{
e6cc62c6 32314
f93ca9fd
VS
32315 struct timeval tv;
32316 gettimeofday(&tv, NULL);
32317
32318 ;
32319 return 0;
32320}
32321_ACEOF
32322rm -f conftest.$ac_objext
32323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32324 (eval $ac_compile) 2>&5
f93ca9fd 32325 ac_status=$?
f93ca9fd
VS
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
789c5f4a 32328 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330 (eval $ac_try) 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32334 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 32335else
f93ca9fd
VS
32336 echo "$as_me: failed program was:" >&5
32337sed 's/^/| /' conftest.$ac_ext >&5
32338
e6cc62c6 32339cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32340#line $LINENO "configure"
e6cc62c6
VS
32341/* confdefs.h. */
32342_ACEOF
32343cat confdefs.h >>conftest.$ac_ext
32344cat >>conftest.$ac_ext <<_ACEOF
32345/* end confdefs.h. */
32346
f93ca9fd
VS
32347 #include <sys/time.h>
32348 #include <unistd.h>
32349
e6cc62c6
VS
32350int
32351main ()
32352{
f93ca9fd
VS
32353
32354 struct timeval tv;
32355 gettimeofday(&tv);
32356
e6cc62c6
VS
32357 ;
32358 return 0;
32359}
32360_ACEOF
f93ca9fd
VS
32361rm -f conftest.$ac_objext
32362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32363 (eval $ac_compile) 2>&5
e6cc62c6
VS
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); } &&
789c5f4a 32367 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
f93ca9fd 32373 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
32374else
32375 echo "$as_me: failed program was:" >&5
32376sed 's/^/| /' conftest.$ac_ext >&5
32377
f6bcfd97 32378
f93ca9fd
VS
32379 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
32380echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
32381 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 32382
f6bcfd97 32383
f93ca9fd 32384fi
789c5f4a 32385rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32386
10f2d63a 32387fi
789c5f4a 32388rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
32389 ac_ext=c
32390ac_cpp='$CPP $CPPFLAGS'
32391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32393ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 32394
e6cc62c6 32395
10f2d63a 32396fi
f93ca9fd
VS
32397echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
32398echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
32399
32400 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
32401 cat >>confdefs.h <<\_ACEOF
32402#define WX_GETTIMEOFDAY_NO_TZ 1
32403_ACEOF
10f2d63a 32404
f93ca9fd
VS
32405 fi
32406 fi
e6cc62c6 32407
f93ca9fd 32408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 32409fi
10f2d63a 32410
5c6fa7d2 32411
f93ca9fd
VS
32412if test "$wxUSE_SOCKETS" = "yes"; then
32413 if test "$wxUSE_MGL" = "1"; then
32414 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
32415echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
32416 wxUSE_SOCKETS="no"
32417 fi
32418fi
e6cc62c6 32419
f93ca9fd
VS
32420if test "$wxUSE_SOCKETS" = "yes"; then
32421 if test "$TOOLKIT" != "MSW"; then
32422 echo "$as_me:$LINENO: checking for socket" >&5
32423echo $ECHO_N "checking for socket... $ECHO_C" >&6
32424if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
32425 echo $ECHO_N "(cached) $ECHO_C" >&6
32426else
32427 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32428#line $LINENO "configure"
e6cc62c6
VS
32429/* confdefs.h. */
32430_ACEOF
32431cat confdefs.h >>conftest.$ac_ext
32432cat >>conftest.$ac_ext <<_ACEOF
32433/* end confdefs.h. */
f6bcfd97 32434/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 32435 which can conflict with char socket (); below.
e6cc62c6
VS
32436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32437 <limits.h> exists even on freestanding compilers. */
32438#ifdef __STDC__
32439# include <limits.h>
32440#else
32441# include <assert.h>
32442#endif
f6bcfd97 32443/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32444#ifdef __cplusplus
32445extern "C"
32446{
32447#endif
f6bcfd97 32448/* We use char because int might match the return type of a gcc2
e6cc62c6 32449 builtin and then its argument prototype would still apply. */
f93ca9fd 32450char socket ();
f6bcfd97
BP
32451/* The GNU C library defines this for functions which it implements
32452 to always fail with ENOSYS. Some functions are actually named
32453 something starting with __ and the normal name is an alias. */
f93ca9fd 32454#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
32455choke me
32456#else
f93ca9fd 32457char (*f) () = socket;
e6cc62c6
VS
32458#endif
32459#ifdef __cplusplus
32460}
f6bcfd97
BP
32461#endif
32462
e6cc62c6
VS
32463int
32464main ()
32465{
f93ca9fd
VS
32466return f != socket;
32467 ;
32468 return 0;
32469}
32470_ACEOF
32471rm -f conftest.$ac_objext conftest$ac_exeext
32472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32473 (eval $ac_link) 2>&5
f93ca9fd 32474 ac_status=$?
f93ca9fd
VS
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); } &&
789c5f4a 32477 { ac_try='test -s conftest$ac_exeext'
f93ca9fd
VS
32478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32479 (eval $ac_try) 2>&5
32480 ac_status=$?
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); }; }; then
32483 ac_cv_func_socket=yes
32484else
32485 echo "$as_me: failed program was:" >&5
32486sed 's/^/| /' conftest.$ac_ext >&5
32487
32488ac_cv_func_socket=no
32489fi
789c5f4a 32490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
32491fi
32492echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
32493echo "${ECHO_T}$ac_cv_func_socket" >&6
32494if test $ac_cv_func_socket = yes; then
32495 :
32496else
32497
32498 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
32499echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
32500if test "${ac_cv_lib_socket_socket+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32502else
32503 ac_check_lib_save_LIBS=$LIBS
32504LIBS="-lsocket $LIBS"
32505cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32506#line $LINENO "configure"
f93ca9fd
VS
32507/* confdefs.h. */
32508_ACEOF
32509cat confdefs.h >>conftest.$ac_ext
32510cat >>conftest.$ac_ext <<_ACEOF
32511/* end confdefs.h. */
32512
32513/* Override any gcc2 internal prototype to avoid an error. */
32514#ifdef __cplusplus
32515extern "C"
32516#endif
32517/* We use char because int might match the return type of a gcc2
32518 builtin and then its argument prototype would still apply. */
32519char socket ();
32520int
32521main ()
32522{
32523socket ();
e6cc62c6
VS
32524 ;
32525 return 0;
32526}
32527_ACEOF
32528rm -f conftest.$ac_objext conftest$ac_exeext
32529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32530 (eval $ac_link) 2>&5
e6cc62c6
VS
32531 ac_status=$?
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); } &&
789c5f4a 32534 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32536 (eval $ac_try) 2>&5
32537 ac_status=$?
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); }; }; then
f93ca9fd 32540 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
32541else
32542 echo "$as_me: failed program was:" >&5
32543sed 's/^/| /' conftest.$ac_ext >&5
32544
f93ca9fd 32545ac_cv_lib_socket_socket=no
e6cc62c6 32546fi
789c5f4a 32547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd 32548LIBS=$ac_check_lib_save_LIBS
e6cc62c6 32549fi
f93ca9fd
VS
32550echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
32551echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
32552if test $ac_cv_lib_socket_socket = yes; then
32553 if test "$INET_LINK" != " -lsocket"; then
32554 INET_LINK="$INET_LINK -lsocket"
32555 fi
32556else
32557
32558 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
32559echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
32560 wxUSE_SOCKETS=no
32561
32562
32563fi
32564
32565
32566
32567fi
32568
32569 fi
32570fi
32571
32572if test "$wxUSE_SOCKETS" = "yes" ; then
32573 if test "$TOOLKIT" != "MSW"; then
32574 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
32575echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
32576if test "${wx_cv_type_getsockname3+set}" = set; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32578else
32579
32580 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32581#line $LINENO "configure"
f93ca9fd 32582/* confdefs.h. */
e6cc62c6 32583_ACEOF
f93ca9fd
VS
32584cat confdefs.h >>conftest.$ac_ext
32585cat >>conftest.$ac_ext <<_ACEOF
32586/* end confdefs.h. */
32587
32588 #include <sys/types.h>
32589 #include <sys/socket.h>
f6bcfd97 32590
f93ca9fd
VS
32591int
32592main ()
32593{
32594
32595 socklen_t len;
32596 getsockname(0, 0, &len);
32597
32598 ;
32599 return 0;
32600}
32601_ACEOF
32602rm -f conftest.$ac_objext
32603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32604 (eval $ac_compile) 2>&5
f93ca9fd 32605 ac_status=$?
f93ca9fd
VS
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); } &&
789c5f4a 32608 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 wx_cv_type_getsockname3=socklen_t
f6bcfd97 32615else
f93ca9fd
VS
32616 echo "$as_me: failed program was:" >&5
32617sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 32618
f93ca9fd
VS
32619
32620 CFLAGS_OLD="$CFLAGS"
32621 if test "$GCC" = yes ; then
32622 CFLAGS="$CFLAGS -Werror"
32623 fi
32624
32625 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32626#line $LINENO "configure"
f93ca9fd
VS
32627/* confdefs.h. */
32628_ACEOF
32629cat confdefs.h >>conftest.$ac_ext
32630cat >>conftest.$ac_ext <<_ACEOF
32631/* end confdefs.h. */
32632
32633 #include <sys/types.h>
32634 #include <sys/socket.h>
32635
32636int
32637main ()
32638{
32639
32640 size_t len;
32641 getsockname(0, 0, &len);
32642
32643 ;
32644 return 0;
32645}
32646_ACEOF
32647rm -f conftest.$ac_objext
32648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32649 (eval $ac_compile) 2>&5
f93ca9fd 32650 ac_status=$?
f93ca9fd
VS
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); } &&
789c5f4a 32653 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 (eval $ac_try) 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
32659 wx_cv_type_getsockname3=size_t
f6bcfd97 32660else
f93ca9fd
VS
32661 echo "$as_me: failed program was:" >&5
32662sed 's/^/| /' conftest.$ac_ext >&5
32663
e6cc62c6 32664cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32665#line $LINENO "configure"
e6cc62c6
VS
32666/* confdefs.h. */
32667_ACEOF
32668cat confdefs.h >>conftest.$ac_ext
32669cat >>conftest.$ac_ext <<_ACEOF
32670/* end confdefs.h. */
32671
f93ca9fd
VS
32672 #include <sys/types.h>
32673 #include <sys/socket.h>
32674
e6cc62c6
VS
32675int
32676main ()
32677{
f93ca9fd
VS
32678
32679 int len;
32680 getsockname(0, 0, &len);
32681
e6cc62c6
VS
32682 ;
32683 return 0;
32684}
32685_ACEOF
f93ca9fd
VS
32686rm -f conftest.$ac_objext
32687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32688 (eval $ac_compile) 2>&5
e6cc62c6
VS
32689 ac_status=$?
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
789c5f4a 32692 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694 (eval $ac_try) 2>&5
32695 ac_status=$?
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); }; }; then
f93ca9fd 32698 wx_cv_type_getsockname3=int
e6cc62c6
VS
32699else
32700 echo "$as_me: failed program was:" >&5
32701sed 's/^/| /' conftest.$ac_ext >&5
32702
f93ca9fd
VS
32703wx_cv_type_getsockname3=unknown
32704
e6cc62c6 32705fi
789c5f4a 32706rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 32707
f6bcfd97 32708fi
789c5f4a 32709rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 32710
f93ca9fd 32711 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
32712
32713
f6bcfd97 32714fi
789c5f4a 32715rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 32716
f93ca9fd
VS
32717fi
32718echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
32719echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
32720
32721 if test "$wx_cv_type_getsockname3" = "unknown"; then
32722 wxUSE_SOCKETS=no
32723 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
32724echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
32725 else
32726 cat >>confdefs.h <<_ACEOF
32727#define SOCKLEN_T $wx_cv_type_getsockname3
32728_ACEOF
f6bcfd97 32729
10f2d63a
VZ
32730 fi
32731 fi
32732fi
32733
f93ca9fd 32734if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 32735 cat >>confdefs.h <<\_ACEOF
f93ca9fd 32736#define wxUSE_SOCKETS 1
e6cc62c6 32737_ACEOF
0b9ab0bd 32738
f93ca9fd 32739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 32740fi
f93ca9fd
VS
32741
32742if test "$wxUSE_PROTOCOL" = "yes"; then
32743 if test "$wxUSE_SOCKETS" != "yes"; then
32744 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32745echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
32746 wxUSE_PROTOCOL=no
32747 fi
32748fi
32749
32750if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 32751 cat >>confdefs.h <<\_ACEOF
f93ca9fd 32752#define wxUSE_PROTOCOL 1
e6cc62c6 32753_ACEOF
10f2d63a 32754
f93ca9fd
VS
32755
32756 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
32757 cat >>confdefs.h <<\_ACEOF
32758#define wxUSE_PROTOCOL_HTTP 1
32759_ACEOF
32760
32761 fi
32762 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
32763 cat >>confdefs.h <<\_ACEOF
32764#define wxUSE_PROTOCOL_FTP 1
32765_ACEOF
32766
32767 fi
32768 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
32769 cat >>confdefs.h <<\_ACEOF
32770#define wxUSE_PROTOCOL_FILE 1
32771_ACEOF
32772
32773 fi
32774else
32775 if test "$wxUSE_FS_INET" = "yes"; then
32776 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
32777echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
32778 wxUSE_FS_INET="no"
32779 fi
10f2d63a
VZ
32780fi
32781
f93ca9fd
VS
32782if test "$wxUSE_URL" = "yes"; then
32783 if test "$wxUSE_PROTOCOL" != "yes"; then
32784 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32785echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
32786 wxUSE_URL=no
32787 fi
32788 if test "$wxUSE_URL" = "yes"; then
32789 cat >>confdefs.h <<\_ACEOF
32790#define wxUSE_URL 1
32791_ACEOF
32792
32793 fi
32794fi
32795
32796if test "$wxUSE_FS_INET" = "yes"; then
32797 cat >>confdefs.h <<\_ACEOF
32798#define wxUSE_FS_INET 1
32799_ACEOF
32800
32801fi
32802
32803
32804if test "$wxUSE_GUI" = "yes"; then
32805
32806 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
32807 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
32808echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
32809 wxUSE_JOYSTICK=no
32810 fi
32811
32812 if test "$TOOLKIT" != "MSW"; then
32813 if test "$wxUSE_JOYSTICK" = "yes"; then
32814
32815for ac_header in linux/joystick.h
32816do
32817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32818if eval "test \"\${$as_ac_Header+set}\" = set"; then
32819 echo "$as_me:$LINENO: checking for $ac_header" >&5
32820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32821if eval "test \"\${$as_ac_Header+set}\" = set"; then
32822 echo $ECHO_N "(cached) $ECHO_C" >&6
32823fi
32824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32826else
32827 # Is the header compilable?
32828echo "$as_me:$LINENO: checking $ac_header usability" >&5
32829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32830cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32831#line $LINENO "configure"
f93ca9fd
VS
32832/* confdefs.h. */
32833_ACEOF
32834cat confdefs.h >>conftest.$ac_ext
32835cat >>conftest.$ac_ext <<_ACEOF
32836/* end confdefs.h. */
32837$ac_includes_default
32838#include <$ac_header>
32839_ACEOF
32840rm -f conftest.$ac_objext
32841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32842 (eval $ac_compile) 2>&5
f93ca9fd 32843 ac_status=$?
f93ca9fd
VS
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); } &&
789c5f4a 32846 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32848 (eval $ac_try) 2>&5
32849 ac_status=$?
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; }; then
32852 ac_header_compiler=yes
32853else
32854 echo "$as_me: failed program was:" >&5
32855sed 's/^/| /' conftest.$ac_ext >&5
32856
32857ac_header_compiler=no
32858fi
789c5f4a 32859rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
32860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32861echo "${ECHO_T}$ac_header_compiler" >&6
32862
32863# Is the header present?
32864echo "$as_me:$LINENO: checking $ac_header presence" >&5
32865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32866cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32867#line $LINENO "configure"
f93ca9fd
VS
32868/* confdefs.h. */
32869_ACEOF
32870cat confdefs.h >>conftest.$ac_ext
32871cat >>conftest.$ac_ext <<_ACEOF
32872/* end confdefs.h. */
32873#include <$ac_header>
32874_ACEOF
32875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32877 ac_status=$?
32878 grep -v '^ *+' conftest.er1 >conftest.err
32879 rm -f conftest.er1
32880 cat conftest.err >&5
32881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); } >/dev/null; then
32883 if test -s conftest.err; then
32884 ac_cpp_err=$ac_c_preproc_warn_flag
f93ca9fd
VS
32885 else
32886 ac_cpp_err=
32887 fi
32888else
32889 ac_cpp_err=yes
32890fi
32891if test -z "$ac_cpp_err"; then
32892 ac_header_preproc=yes
32893else
32894 echo "$as_me: failed program was:" >&5
32895sed 's/^/| /' conftest.$ac_ext >&5
32896
32897 ac_header_preproc=no
32898fi
32899rm -f conftest.err conftest.$ac_ext
32900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32901echo "${ECHO_T}$ac_header_preproc" >&6
32902
32903# So? What about this header?
789c5f4a
VZ
32904case $ac_header_compiler:$ac_header_preproc in
32905 yes:no )
f93ca9fd
VS
32906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
32908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32910 (
32911 cat <<\_ASBOX
32912## ------------------------------------ ##
32913## Report this to bug-autoconf@gnu.org. ##
32914## ------------------------------------ ##
32915_ASBOX
32916 ) |
32917 sed "s/^/$as_me: WARNING: /" >&2
f93ca9fd 32918 ;;
789c5f4a 32919 no:yes )
f93ca9fd
VS
32920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
32922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
f93ca9fd
VS
32924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f93ca9fd
VS
32926 (
32927 cat <<\_ASBOX
789c5f4a
VZ
32928## ------------------------------------ ##
32929## Report this to bug-autoconf@gnu.org. ##
32930## ------------------------------------ ##
f93ca9fd
VS
32931_ASBOX
32932 ) |
32933 sed "s/^/$as_me: WARNING: /" >&2
32934 ;;
32935esac
32936echo "$as_me:$LINENO: checking for $ac_header" >&5
32937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32938if eval "test \"\${$as_ac_Header+set}\" = set"; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32940else
789c5f4a 32941 eval "$as_ac_Header=$ac_header_preproc"
f93ca9fd
VS
32942fi
32943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32945
32946fi
32947if test `eval echo '${'$as_ac_Header'}'` = yes; then
32948 cat >>confdefs.h <<_ACEOF
32949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32950_ACEOF
32951
32952fi
32953
32954done
32955
32956 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
32957 wxUSE_JOYSTICK=no
32958 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
32959echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
32960 fi
32961 fi
32962 fi
32963
32964 if test "$wxUSE_JOYSTICK" = "yes"; then
32965 cat >>confdefs.h <<\_ACEOF
32966#define wxUSE_JOYSTICK 1
32967_ACEOF
32968
32969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
32970 fi
32971fi
32972
32973
32974
8284b0c5 32975
1e6feb95 32976if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32977 cat >>confdefs.h <<\_ACEOF
1e6feb95 32978#define wxUSE_FONTMAP 1
e6cc62c6 32979_ACEOF
1e6feb95
VZ
32980
32981fi
32982
10f2d63a 32983if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32984 cat >>confdefs.h <<\_ACEOF
10f2d63a 32985#define wxUSE_UNICODE 1
e6cc62c6 32986_ACEOF
10f2d63a 32987
8284b0c5 32988
eb854003 32989 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32990 wxUSE_UNICODE_MSLU=no
32991 fi
a72a4bfa 32992
eb854003 32993 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32994 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32995echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32996if test "${ac_cv_lib_unicows_main+set}" = set; then
32997 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32998else
e6cc62c6 32999 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 33000LIBS="-lunicows $LIBS"
e6cc62c6 33001cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33002#line $LINENO "configure"
e6cc62c6
VS
33003/* confdefs.h. */
33004_ACEOF
33005cat confdefs.h >>conftest.$ac_ext
33006cat >>conftest.$ac_ext <<_ACEOF
33007/* end confdefs.h. */
a72a4bfa 33008
8284b0c5 33009
e6cc62c6
VS
33010int
33011main ()
33012{
33013main ();
33014 ;
33015 return 0;
33016}
33017_ACEOF
33018rm -f conftest.$ac_objext conftest$ac_exeext
33019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 33020 (eval $ac_link) 2>&5
e6cc62c6
VS
33021 ac_status=$?
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); } &&
789c5f4a 33024 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33026 (eval $ac_try) 2>&5
33027 ac_status=$?
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); }; }; then
33030 ac_cv_lib_unicows_main=yes
33031else
33032 echo "$as_me: failed program was:" >&5
33033sed 's/^/| /' conftest.$ac_ext >&5
33034
33035ac_cv_lib_unicows_main=no
33036fi
789c5f4a 33037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33038LIBS=$ac_check_lib_save_LIBS
33039fi
33040echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
33041echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
33042if test $ac_cv_lib_unicows_main = yes; then
33043
33044 cat >>confdefs.h <<\_ACEOF
a72a4bfa 33045#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
33046_ACEOF
33047
a72a4bfa 33048
a72a4bfa 33049else
a72a4bfa 33050
e6cc62c6
VS
33051 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33052 Applications will only run on Windows NT/2000/XP!" >&5
33053echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33054 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 33055 wxUSE_UNICODE_MSLU=no
e6cc62c6 33056
a72a4bfa
VS
33057fi
33058
33059 fi
10f2d63a
VZ
33060fi
33061
10f2d63a 33062if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 33063 cat >>confdefs.h <<\_ACEOF
10f2d63a 33064#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 33065_ACEOF
10f2d63a
VZ
33066
33067fi
33068
8284b0c5 33069
10f2d63a 33070if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 33071 cat >>confdefs.h <<\_ACEOF
10f2d63a 33072#define wxUSE_POSTSCRIPT 1
e6cc62c6 33073_ACEOF
10f2d63a
VZ
33074
33075fi
33076
e6cc62c6 33077cat >>confdefs.h <<\_ACEOF
10f2d63a 33078#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 33079_ACEOF
10f2d63a 33080
8284b0c5 33081
e6cc62c6 33082cat >>confdefs.h <<\_ACEOF
10f2d63a 33083#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 33084_ACEOF
10f2d63a 33085
8284b0c5
MB
33086
33087
10f2d63a 33088if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 33089 cat >>confdefs.h <<\_ACEOF
10f2d63a 33090#define wxUSE_CONSTRAINTS 1
e6cc62c6 33091_ACEOF
10f2d63a
VZ
33092
33093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
33094fi
33095
3879ecda 33096if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 33097 cat >>confdefs.h <<\_ACEOF
10f2d63a 33098#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 33099_ACEOF
10f2d63a 33100
1772d20c 33101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
33102fi
33103
33104if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 33105 cat >>confdefs.h <<\_ACEOF
10f2d63a 33106#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 33107_ACEOF
10f2d63a
VZ
33108
33109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
33110 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
33112 fi
33113fi
33114
33115if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 33116 cat >>confdefs.h <<\_ACEOF
10f2d63a 33117#define wxUSE_HELP 1
e6cc62c6 33118_ACEOF
10f2d63a
VZ
33119
33120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 33121
77e13408 33122 if test "$wxUSE_MSW" = 1; then
031d8228 33123 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 33124 cat >>confdefs.h <<\_ACEOF
29fd3c0c 33125#define wxUSE_MS_HTML_HELP 1
e6cc62c6 33126_ACEOF
29fd3c0c 33127
3e44f09d 33128 fi
3379ed37 33129 fi
031d8228
VS
33130
33131 if test "$wxUSE_WXHTML_HELP" = "yes"; then
33132 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33133 cat >>confdefs.h <<\_ACEOF
031d8228 33134#define wxUSE_WXHTML_HELP 1
e6cc62c6 33135_ACEOF
031d8228
VS
33136
33137 else
e6cc62c6
VS
33138 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
33139echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
33140 wxUSE_WXHTML_HELP=no
33141 fi
33142 fi
10f2d63a
VZ
33143fi
33144
33145if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
33146 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33147 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
33148echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 33149 else
e6cc62c6 33150 cat >>confdefs.h <<\_ACEOF
10f2d63a 33151#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 33152_ACEOF
10f2d63a
VZ
33153
33154 fi
33155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
33156fi
33157
e6cc62c6
VS
33158if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
33159 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
33160echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
33161 { (exit 1); exit 1; }; }
33162fi
33163
33164
f95e4495 33165if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
33166 -o "$wxUSE_CLIPBOARD" = "yes" \
33167 -o "$wxUSE_OLE" = "yes" \
33168 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
33169
33170for ac_header in ole2.h
33171do
33172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33173if eval "test \"\${$as_ac_Header+set}\" = set"; then
33174 echo "$as_me:$LINENO: checking for $ac_header" >&5
33175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33176if eval "test \"\${$as_ac_Header+set}\" = set"; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33178fi
33179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33181else
33182 # Is the header compilable?
33183echo "$as_me:$LINENO: checking $ac_header usability" >&5
33184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33185cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33186#line $LINENO "configure"
e6cc62c6
VS
33187/* confdefs.h. */
33188_ACEOF
33189cat confdefs.h >>conftest.$ac_ext
33190cat >>conftest.$ac_ext <<_ACEOF
33191/* end confdefs.h. */
33192$ac_includes_default
33193#include <$ac_header>
33194_ACEOF
33195rm -f conftest.$ac_objext
33196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33197 (eval $ac_compile) 2>&5
e6cc62c6
VS
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); } &&
789c5f4a 33201 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33203 (eval $ac_try) 2>&5
33204 ac_status=$?
33205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); }; }; then
33207 ac_header_compiler=yes
33208else
33209 echo "$as_me: failed program was:" >&5
33210sed 's/^/| /' conftest.$ac_ext >&5
33211
33212ac_header_compiler=no
33213fi
789c5f4a 33214rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33215echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33216echo "${ECHO_T}$ac_header_compiler" >&6
33217
33218# Is the header present?
33219echo "$as_me:$LINENO: checking $ac_header presence" >&5
33220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33221cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33222#line $LINENO "configure"
e6cc62c6
VS
33223/* confdefs.h. */
33224_ACEOF
33225cat confdefs.h >>conftest.$ac_ext
33226cat >>conftest.$ac_ext <<_ACEOF
33227/* end confdefs.h. */
33228#include <$ac_header>
33229_ACEOF
33230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33232 ac_status=$?
33233 grep -v '^ *+' conftest.er1 >conftest.err
33234 rm -f conftest.er1
33235 cat conftest.err >&5
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); } >/dev/null; then
33238 if test -s conftest.err; then
33239 ac_cpp_err=$ac_c_preproc_warn_flag
33240 else
33241 ac_cpp_err=
33242 fi
33243else
33244 ac_cpp_err=yes
33245fi
33246if test -z "$ac_cpp_err"; then
33247 ac_header_preproc=yes
33248else
33249 echo "$as_me: failed program was:" >&5
33250sed 's/^/| /' conftest.$ac_ext >&5
33251
33252 ac_header_preproc=no
33253fi
33254rm -f conftest.err conftest.$ac_ext
33255echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33256echo "${ECHO_T}$ac_header_preproc" >&6
33257
33258# So? What about this header?
789c5f4a
VZ
33259case $ac_header_compiler:$ac_header_preproc in
33260 yes:no )
e6cc62c6
VS
33261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
33263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33265 (
33266 cat <<\_ASBOX
33267## ------------------------------------ ##
33268## Report this to bug-autoconf@gnu.org. ##
33269## ------------------------------------ ##
33270_ASBOX
33271 ) |
33272 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 33273 ;;
789c5f4a 33274 no:yes )
e6cc62c6
VS
33275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33276echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
33277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33278echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
33279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33281 (
33282 cat <<\_ASBOX
789c5f4a
VZ
33283## ------------------------------------ ##
33284## Report this to bug-autoconf@gnu.org. ##
33285## ------------------------------------ ##
e6cc62c6
VS
33286_ASBOX
33287 ) |
33288 sed "s/^/$as_me: WARNING: /" >&2
33289 ;;
33290esac
33291echo "$as_me:$LINENO: checking for $ac_header" >&5
33292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33293if eval "test \"\${$as_ac_Header+set}\" = set"; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33295else
789c5f4a 33296 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
33297fi
33298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33300
10f2d63a 33301fi
e6cc62c6
VS
33302if test `eval echo '${'$as_ac_Header'}'` = yes; then
33303 cat >>confdefs.h <<_ACEOF
33304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33305_ACEOF
10f2d63a 33306
10f2d63a 33307fi
e6cc62c6 33308
10f2d63a
VZ
33309done
33310
8284b0c5 33311
2b9bdf71
VZ
33312 if test "$ac_cv_header_ole2_h" = "yes" ; then
33313 if test "$GCC" = yes ; then
8284b0c5
MB
33314
33315
e6cc62c6
VS
33316 ac_ext=cc
33317ac_cpp='$CXXCPP $CPPFLAGS'
33318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33321
33322
33323 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
33324echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
33325 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33326#line $LINENO "configure"
e6cc62c6
VS
33327/* confdefs.h. */
33328_ACEOF
33329cat confdefs.h >>conftest.$ac_ext
33330cat >>conftest.$ac_ext <<_ACEOF
33331/* end confdefs.h. */
8284b0c5
MB
33332#include <windows.h>
33333 #include <ole2.h>
e6cc62c6
VS
33334int
33335main ()
33336{
8284b0c5 33337
e6cc62c6
VS
33338 ;
33339 return 0;
33340}
33341_ACEOF
33342rm -f conftest.$ac_objext
33343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33344 (eval $ac_compile) 2>&5
e6cc62c6
VS
33345 ac_status=$?
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); } &&
789c5f4a 33348 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; }; then
33354 echo "$as_me:$LINENO: result: no" >&5
33355echo "${ECHO_T}no" >&6
33356else
33357 echo "$as_me: failed program was:" >&5
33358sed 's/^/| /' conftest.$ac_ext >&5
33359
33360echo "$as_me:$LINENO: result: yes" >&5
33361echo "${ECHO_T}yes" >&6
8284b0c5
MB
33362 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
33363fi
789c5f4a 33364rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 33365 ac_ext=c
8284b0c5 33366ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
33367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33369ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 33370
2b9bdf71 33371 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 33372 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
33373 if test "$wxUSE_OLE" = "yes" ; then
33374 cat >>confdefs.h <<\_ACEOF
4f11a343 33375#define wxUSE_OLE 1
e6cc62c6 33376_ACEOF
4f11a343 33377
f95e4495 33378 fi
2b9bdf71
VZ
33379 fi
33380
f95e4495
VS
33381 if test "$wxUSE_DATAOBJ" = "yes" ; then
33382 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33383#define wxUSE_DATAOBJ 1
e6cc62c6 33384_ACEOF
2b9bdf71 33385
f95e4495 33386 fi
2b9bdf71 33387 else
e6cc62c6
VS
33388 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
33389echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
33390
33391 wxUSE_CLIPBOARD=no
33392 wxUSE_DRAG_AND_DROP=no
33393 wxUSE_DATAOBJ=no
3bce6687
JS
33394 wxUSE_OLE=no
33395 fi
33396
33397 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33398 cat >>confdefs.h <<\_ACEOF
3bce6687 33399#define wxUSE_METAFILE 1
e6cc62c6 33400_ACEOF
3bce6687
JS
33401
33402
e6cc62c6 33403 cat >>confdefs.h <<\_ACEOF
3bce6687 33404#define wxUSE_ENH_METAFILE 1
e6cc62c6 33405_ACEOF
3bce6687
JS
33406
33407 fi
33408fi
33409
2b9bdf71
VZ
33410if test "$wxUSE_IPC" = "yes"; then
33411 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
33412 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
33413echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
33414 fi
33415
e6cc62c6 33416 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33417#define wxUSE_IPC 1
e6cc62c6 33418_ACEOF
2b9bdf71
VZ
33419
33420fi
33421
33422if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 33423 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
33424 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
33425echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33426 wxUSE_CLIPBOARD=no
33427 fi
33428
33429 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 33430 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33431#define wxUSE_CLIPBOARD 1
e6cc62c6 33432_ACEOF
2b9bdf71 33433
8284b0c5 33434
e6cc62c6 33435 cat >>confdefs.h <<\_ACEOF
673f4220 33436#define wxUSE_DATAOBJ 1
e6cc62c6 33437_ACEOF
673f4220 33438
6c657b52 33439 fi
2b9bdf71
VZ
33440fi
33441
33442if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
33443 if test "$wxUSE_GTK" = 1; then
33444 if test "$WXGTK12" != 1; then
e6cc62c6
VS
33445 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
33446echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
33447 wxUSE_DRAG_AND_DROP=no
33448 fi
33449 fi
33450
2b9bdf71 33451 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33452 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
33453echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
33454 wxUSE_DRAG_AND_DROP=no
33455 fi
33456
f79bd02d 33457 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
33458 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
33459echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
33460 wxUSE_DRAG_AND_DROP=no
33461 fi
33462
6c657b52 33463 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
33464 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
33465echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33466 wxUSE_DRAG_AND_DROP=no
33467 fi
33468
10f2d63a 33469 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 33470 cat >>confdefs.h <<\_ACEOF
10f2d63a 33471#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 33472_ACEOF
10f2d63a
VZ
33473
33474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
33475 fi
33476
33477fi
33478
33479if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 33480 cat >>confdefs.h <<\_ACEOF
10f2d63a 33481#define wxUSE_SPLINES 1
e6cc62c6 33482_ACEOF
10f2d63a
VZ
33483
33484fi
33485
8284b0c5 33486
1e6feb95
VZ
33487USES_CONTROLS=0
33488if test "$wxUSE_CONTROLS" = "yes"; then
33489 USES_CONTROLS=1
33490fi
33491
10f2d63a 33492if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 33493 cat >>confdefs.h <<\_ACEOF
10f2d63a 33494#define wxUSE_ACCEL 1
e6cc62c6 33495_ACEOF
10f2d63a 33496
1e6feb95
VZ
33497 USES_CONTROLS=1
33498fi
33499
33500if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 33501 cat >>confdefs.h <<\_ACEOF
1e6feb95 33502#define wxUSE_BUTTON 1
e6cc62c6 33503_ACEOF
1e6feb95
VZ
33504
33505 USES_CONTROLS=1
33506fi
33507
33508if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 33509 cat >>confdefs.h <<\_ACEOF
1e6feb95 33510#define wxUSE_BMPBUTTON 1
e6cc62c6 33511_ACEOF
1e6feb95
VZ
33512
33513 USES_CONTROLS=1
33514fi
33515
33516if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 33517 cat >>confdefs.h <<\_ACEOF
1e6feb95 33518#define wxUSE_CALENDARCTRL 1
e6cc62c6 33519_ACEOF
1e6feb95
VZ
33520
33521 USES_CONTROLS=1
33522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
33523fi
33524
33525if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 33526 cat >>confdefs.h <<\_ACEOF
10f2d63a 33527#define wxUSE_CARET 1
e6cc62c6 33528_ACEOF
10f2d63a 33529
1e6feb95 33530 USES_CONTROLS=1
10f2d63a
VZ
33531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
33532fi
33533
33534if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 33535 cat >>confdefs.h <<\_ACEOF
10f2d63a 33536#define wxUSE_COMBOBOX 1
e6cc62c6 33537_ACEOF
10f2d63a 33538
1e6feb95 33539 USES_CONTROLS=1
10f2d63a
VZ
33540fi
33541
33542if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 33543 cat >>confdefs.h <<\_ACEOF
10f2d63a 33544#define wxUSE_CHOICE 1
e6cc62c6 33545_ACEOF
10f2d63a 33546
1e6feb95 33547 USES_CONTROLS=1
10f2d63a
VZ
33548fi
33549
33550if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 33551 cat >>confdefs.h <<\_ACEOF
10f2d63a 33552#define wxUSE_CHECKBOX 1
e6cc62c6 33553_ACEOF
10f2d63a 33554
1e6feb95 33555 USES_CONTROLS=1
10f2d63a
VZ
33556fi
33557
33558if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 33559 cat >>confdefs.h <<\_ACEOF
10f2d63a 33560#define wxUSE_CHECKLISTBOX 1
e6cc62c6 33561_ACEOF
10f2d63a 33562
1e6feb95 33563 USES_CONTROLS=1
10f2d63a
VZ
33564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
33565fi
33566
da494b40 33567if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 33568 cat >>confdefs.h <<\_ACEOF
da494b40 33569#define wxUSE_DISPLAY 1
e6cc62c6 33570_ACEOF
da494b40
MB
33571
33572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
33573fi
33574
10f2d63a 33575if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 33576 cat >>confdefs.h <<\_ACEOF
10f2d63a 33577#define wxUSE_GAUGE 1
e6cc62c6 33578_ACEOF
10f2d63a 33579
1e6feb95 33580 USES_CONTROLS=1
10f2d63a
VZ
33581fi
33582
d6a55c4b 33583if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 33584 cat >>confdefs.h <<\_ACEOF
d6a55c4b 33585#define wxUSE_GRID 1
e6cc62c6 33586_ACEOF
10f2d63a 33587
1e6feb95 33588 USES_CONTROLS=1
d6a55c4b 33589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
33590fi
33591
33592if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33593 cat >>confdefs.h <<\_ACEOF
10f2d63a 33594#define wxUSE_IMAGLIST 1
e6cc62c6 33595_ACEOF
10f2d63a
VZ
33596
33597fi
33598
0e012a93
VZ
33599if test "$wxUSE_LISTBOOK" = "yes"; then
33600 cat >>confdefs.h <<\_ACEOF
33601#define wxUSE_LISTBOOK 1
33602_ACEOF
33603
33604 USES_CONTROLS=1
33605fi
33606
10f2d63a 33607if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 33608 cat >>confdefs.h <<\_ACEOF
10f2d63a 33609#define wxUSE_LISTBOX 1
e6cc62c6 33610_ACEOF
10f2d63a 33611
1e6feb95 33612 USES_CONTROLS=1
10f2d63a
VZ
33613fi
33614
33615if test "$wxUSE_LISTCTRL" = "yes"; then
33616 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33617 cat >>confdefs.h <<\_ACEOF
10f2d63a 33618#define wxUSE_LISTCTRL 1
e6cc62c6 33619_ACEOF
10f2d63a 33620
1e6feb95 33621 USES_CONTROLS=1
10f2d63a
VZ
33622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
33623 else
e6cc62c6
VS
33624 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
33625echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33626 fi
33627fi
33628
33629if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 33630 cat >>confdefs.h <<\_ACEOF
10f2d63a 33631#define wxUSE_NOTEBOOK 1
e6cc62c6 33632_ACEOF
10f2d63a 33633
1e6feb95 33634 USES_CONTROLS=1
10f2d63a
VZ
33635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
33636fi
33637
24176f2c 33638
10f2d63a 33639if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 33640 cat >>confdefs.h <<\_ACEOF
10f2d63a 33641#define wxUSE_RADIOBOX 1
e6cc62c6 33642_ACEOF
10f2d63a 33643
1e6feb95 33644 USES_CONTROLS=1
10f2d63a
VZ
33645fi
33646
33647if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 33648 cat >>confdefs.h <<\_ACEOF
10f2d63a 33649#define wxUSE_RADIOBTN 1
e6cc62c6 33650_ACEOF
10f2d63a 33651
1e6feb95 33652 USES_CONTROLS=1
10f2d63a
VZ
33653fi
33654
33655if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 33656 cat >>confdefs.h <<\_ACEOF
10f2d63a 33657#define wxUSE_SASH 1
e6cc62c6 33658_ACEOF
10f2d63a
VZ
33659
33660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
33661fi
33662
33663if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 33664 cat >>confdefs.h <<\_ACEOF
10f2d63a 33665#define wxUSE_SCROLLBAR 1
e6cc62c6 33666_ACEOF
10f2d63a 33667
1e6feb95 33668 USES_CONTROLS=1
741a9306 33669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
33670fi
33671
33672if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 33673 cat >>confdefs.h <<\_ACEOF
10f2d63a 33674#define wxUSE_SLIDER 1
e6cc62c6 33675_ACEOF
10f2d63a 33676
1e6feb95 33677 USES_CONTROLS=1
10f2d63a
VZ
33678fi
33679
33680if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 33681 cat >>confdefs.h <<\_ACEOF
10f2d63a 33682#define wxUSE_SPINBTN 1
e6cc62c6 33683_ACEOF
10f2d63a 33684
1e6feb95 33685 USES_CONTROLS=1
10f2d63a
VZ
33686fi
33687
56cfaa52 33688if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 33689 cat >>confdefs.h <<\_ACEOF
56cfaa52 33690#define wxUSE_SPINCTRL 1
e6cc62c6 33691_ACEOF
56cfaa52 33692
1e6feb95 33693 USES_CONTROLS=1
56cfaa52
RR
33694fi
33695
10f2d63a 33696if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 33697 cat >>confdefs.h <<\_ACEOF
10f2d63a 33698#define wxUSE_SPLITTER 1
e6cc62c6 33699_ACEOF
10f2d63a
VZ
33700
33701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
33702fi
33703
33704if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 33705 cat >>confdefs.h <<\_ACEOF
10f2d63a 33706#define wxUSE_STATBMP 1
e6cc62c6 33707_ACEOF
10f2d63a 33708
1e6feb95 33709 USES_CONTROLS=1
10f2d63a
VZ
33710fi
33711
33712if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 33713 cat >>confdefs.h <<\_ACEOF
10f2d63a 33714#define wxUSE_STATBOX 1
e6cc62c6 33715_ACEOF
10f2d63a 33716
1e6feb95
VZ
33717 USES_CONTROLS=1
33718fi
33719
33720if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 33721 cat >>confdefs.h <<\_ACEOF
1e6feb95 33722#define wxUSE_STATTEXT 1
e6cc62c6 33723_ACEOF
1e6feb95
VZ
33724
33725 USES_CONTROLS=1
10f2d63a
VZ
33726fi
33727
33728if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 33729 cat >>confdefs.h <<\_ACEOF
10f2d63a 33730#define wxUSE_STATLINE 1
e6cc62c6 33731_ACEOF
10f2d63a 33732
89e6bf6d 33733 USES_CONTROLS=1
10f2d63a
VZ
33734fi
33735
33736if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 33737 cat >>confdefs.h <<\_ACEOF
10f2d63a 33738#define wxUSE_STATUSBAR 1
e6cc62c6 33739_ACEOF
10f2d63a 33740
1e6feb95 33741 USES_CONTROLS=1
698dcdb6 33742
2286341c 33743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
33744fi
33745
33746if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 33747 cat >>confdefs.h <<\_ACEOF
10f2d63a 33748#define wxUSE_TAB_DIALOG 1
e6cc62c6 33749_ACEOF
10f2d63a
VZ
33750
33751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33752fi
33753
1e6feb95 33754if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 33755 cat >>confdefs.h <<\_ACEOF
1e6feb95 33756#define wxUSE_TEXTCTRL 1
e6cc62c6 33757_ACEOF
1e6feb95
VZ
33758
33759 USES_CONTROLS=1
33760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33761fi
33762
1db8dc4a 33763if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 33764 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33765 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33766echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
33767 wxUSE_TOGGLEBTN=no
33768 fi
33769 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33770 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33771echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
33772 wxUSE_TOGGLEBTN=no
33773 fi
33774
33775 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 33776 cat >>confdefs.h <<\_ACEOF
1db8dc4a 33777#define wxUSE_TOGGLEBTN 1
e6cc62c6 33778_ACEOF
1db8dc4a 33779
1e6feb95 33780 USES_CONTROLS=1
a45d7ab7 33781 fi
1db8dc4a
VZ
33782fi
33783
360d6699 33784if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33785 cat >>confdefs.h <<\_ACEOF
360d6699 33786#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33787_ACEOF
360d6699
VZ
33788
33789 wxUSE_TOOLBAR="yes"
1e6feb95 33790 USES_CONTROLS=1
360d6699
VZ
33791fi
33792
10f2d63a 33793if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33794 cat >>confdefs.h <<\_ACEOF
10f2d63a 33795#define wxUSE_TOOLBAR 1
e6cc62c6 33796_ACEOF
10f2d63a 33797
1e6feb95 33798 USES_CONTROLS=1
698dcdb6 33799
360d6699
VZ
33800 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33801 wxUSE_TOOLBAR_NATIVE="yes"
33802 fi
33803
1e6feb95 33804 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33805 cat >>confdefs.h <<\_ACEOF
360d6699 33806#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33807_ACEOF
360d6699 33808
1e6feb95
VZ
33809 USES_CONTROLS=1
33810 fi
33811
33812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33813fi
33814
10f2d63a
VZ
33815if test "$wxUSE_TOOLTIPS" = "yes"; then
33816 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33817 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33818echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33819 else
89e6bf6d 33820 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33821 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33822echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33823 else
e6cc62c6 33824 cat >>confdefs.h <<\_ACEOF
10f2d63a 33825#define wxUSE_TOOLTIPS 1
e6cc62c6 33826_ACEOF
10f2d63a
VZ
33827
33828 fi
33829 fi
33830fi
33831
33832if test "$wxUSE_TREECTRL" = "yes"; then
33833 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33834 cat >>confdefs.h <<\_ACEOF
10f2d63a 33835#define wxUSE_TREECTRL 1
e6cc62c6 33836_ACEOF
10f2d63a 33837
1e6feb95 33838 USES_CONTROLS=1
10f2d63a
VZ
33839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33840 else
e6cc62c6
VS
33841 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33842echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33843 fi
33844fi
33845
9f41d601 33846if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33847 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33848 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33849echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33850 else
833a51f6
MB
33851 if test "$wxUSE_PM" = 1; then
33852 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 33853echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
33854 else
33855 cat >>confdefs.h <<\_ACEOF
9f41d601 33856#define wxUSE_POPUPWIN 1
e6cc62c6 33857_ACEOF
9f41d601 33858
8284b0c5 33859
833a51f6 33860 USES_CONTROLS=1
485cf710 33861 fi
6abe4b65 33862 fi
9f41d601
RR
33863fi
33864
dd964dcc 33865if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33866 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33867 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33868echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33869 else
e6cc62c6 33870 cat >>confdefs.h <<\_ACEOF
dd964dcc 33871#define wxUSE_TIPWINDOW 1
e6cc62c6 33872_ACEOF
dd964dcc 33873
3c011993 33874 fi
dd964dcc
VZ
33875fi
33876
1e6feb95 33877if test "$USES_CONTROLS" = 1; then
e6cc62c6 33878 cat >>confdefs.h <<\_ACEOF
1e6feb95 33879#define wxUSE_CONTROLS 1
e6cc62c6 33880_ACEOF
10f2d63a 33881
10f2d63a
VZ
33882fi
33883
8284b0c5 33884
e46d2a18
VS
33885if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33886 cat >>confdefs.h <<\_ACEOF
33887#define wxUSE_ACCESSIBILITY 1
33888_ACEOF
33889
33890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33891fi
1e6feb95 33892
24fd6d87 33893if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33894 cat >>confdefs.h <<\_ACEOF
24fd6d87 33895#define wxUSE_DRAGIMAGE 1
e6cc62c6 33896_ACEOF
24fd6d87
VZ
33897
33898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33899fi
33900
e46d2a18 33901if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 33902 cat >>confdefs.h <<\_ACEOF
e46d2a18 33903#define wxUSE_EXCEPTIONS 1
e6cc62c6 33904_ACEOF
7bb2947d 33905
e46d2a18
VS
33906fi
33907
33908USE_HTML=0
33909if test "$wxUSE_HTML" = "yes"; then
33910 cat >>confdefs.h <<\_ACEOF
33911#define wxUSE_HTML 1
33912_ACEOF
33913
33914 USE_HTML=1
33915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
33916fi
33917
1e6feb95 33918if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33919 cat >>confdefs.h <<\_ACEOF
1e6feb95 33920#define wxUSE_MENUS 1
e6cc62c6 33921_ACEOF
10f2d63a 33922
1e6feb95 33923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33924fi
33925
1e6feb95 33926if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33927 cat >>confdefs.h <<\_ACEOF
1e6feb95 33928#define wxUSE_METAFILE 1
e6cc62c6 33929_ACEOF
10f2d63a 33930
10f2d63a
VZ
33931fi
33932
1e6feb95 33933if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33934 cat >>confdefs.h <<\_ACEOF
1e6feb95 33935#define wxUSE_MIMETYPE 1
e6cc62c6 33936_ACEOF
10f2d63a 33937
10f2d63a
VZ
33938fi
33939
33940if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33941 cat >>confdefs.h <<\_ACEOF
10f2d63a 33942#define wxUSE_MINIFRAME 1
e6cc62c6 33943_ACEOF
10f2d63a
VZ
33944
33945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33946fi
33947
e46d2a18 33948if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33949 cat >>confdefs.h <<\_ACEOF
e46d2a18 33950#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33951_ACEOF
10f2d63a 33952
e46d2a18
VS
33953 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33954 "$TOOLKIT" = "MOTIF"; then
33955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33956 fi
10f2d63a
VZ
33957fi
33958
e46d2a18 33959
10f2d63a 33960if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33961 cat >>confdefs.h <<\_ACEOF
1e487827 33962#define wxUSE_VALIDATORS 1
e6cc62c6 33963_ACEOF
703e0a69 33964
698dcdb6
VZ
33965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33966fi
33967
edae8572 33968if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33969 cat >>confdefs.h <<\_ACEOF
edae8572 33970#define wxUSE_PALETTE 1
e6cc62c6 33971_ACEOF
edae8572
VZ
33972
33973fi
33974
e46d2a18
VS
33975if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33976 LIBS=" -lunicows $LIBS"
33977fi
33978
33979
698dcdb6 33980if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 33981 cat >>confdefs.h <<\_ACEOF
698dcdb6 33982#define wxUSE_IMAGE 1
e6cc62c6 33983_ACEOF
698dcdb6 33984
698dcdb6 33985
e46d2a18
VS
33986 if test "$wxUSE_GIF" = "yes" ; then
33987 cat >>confdefs.h <<\_ACEOF
698dcdb6 33988#define wxUSE_GIF 1
e6cc62c6 33989_ACEOF
698dcdb6 33990
e46d2a18 33991 fi
698dcdb6 33992
e46d2a18
VS
33993 if test "$wxUSE_PCX" = "yes" ; then
33994 cat >>confdefs.h <<\_ACEOF
698dcdb6 33995#define wxUSE_PCX 1
e6cc62c6 33996_ACEOF
698dcdb6 33997
e46d2a18 33998 fi
698dcdb6 33999
e46d2a18
VS
34000 if test "$wxUSE_IFF" = "yes" ; then
34001 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 34002#define wxUSE_IFF 1
e6cc62c6 34003_ACEOF
4b6b4dfc 34004
e46d2a18 34005 fi
4b6b4dfc 34006
e46d2a18
VS
34007 if test "$wxUSE_PNM" = "yes" ; then
34008 cat >>confdefs.h <<\_ACEOF
698dcdb6 34009#define wxUSE_PNM 1
e6cc62c6 34010_ACEOF
698dcdb6 34011
e46d2a18 34012 fi
698dcdb6 34013
e46d2a18
VS
34014 if test "$wxUSE_XPM" = "yes" ; then
34015 cat >>confdefs.h <<\_ACEOF
698dcdb6 34016#define wxUSE_XPM 1
e6cc62c6 34017_ACEOF
698dcdb6 34018
e46d2a18 34019 fi
698dcdb6 34020
e46d2a18
VS
34021 if test "$wxUSE_ICO_CUR" = "yes" ; then
34022 cat >>confdefs.h <<\_ACEOF
658974ae 34023#define wxUSE_ICO_CUR 1
e6cc62c6 34024_ACEOF
658974ae 34025
e46d2a18 34026 fi
a72a4bfa
VS
34027fi
34028
8284b0c5 34029
1e6feb95 34030if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 34031 cat >>confdefs.h <<\_ACEOF
1e6feb95 34032#define wxUSE_CHOICEDLG 1
e6cc62c6 34033_ACEOF
1e6feb95
VZ
34034
34035fi
34036
34037if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 34038 cat >>confdefs.h <<\_ACEOF
1e6feb95 34039#define wxUSE_COLOURDLG 1
e6cc62c6 34040_ACEOF
1e6feb95
VZ
34041
34042fi
34043
34044if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 34045 cat >>confdefs.h <<\_ACEOF
1e6feb95 34046#define wxUSE_FILEDLG 1
e6cc62c6 34047_ACEOF
1e6feb95
VZ
34048
34049fi
34050
8db37e06 34051if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 34052 cat >>confdefs.h <<\_ACEOF
8db37e06 34053#define wxUSE_FINDREPLDLG 1
e6cc62c6 34054_ACEOF
8db37e06
VZ
34055
34056fi
34057
1e6feb95 34058if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 34059 cat >>confdefs.h <<\_ACEOF
1e6feb95 34060#define wxUSE_FONTDLG 1
e6cc62c6 34061_ACEOF
1e6feb95
VZ
34062
34063fi
34064
34065if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 34066 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
34067 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
34068echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 34069 else
e6cc62c6 34070 cat >>confdefs.h <<\_ACEOF
1e6feb95 34071#define wxUSE_DIRDLG 1
e6cc62c6 34072_ACEOF
1e6feb95 34073
1e6feb95
VZ
34074 fi
34075fi
34076
34077if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 34078 cat >>confdefs.h <<\_ACEOF
1e6feb95 34079#define wxUSE_MSGDLG 1
e6cc62c6 34080_ACEOF
1e6feb95
VZ
34081
34082fi
34083
34084if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 34085 cat >>confdefs.h <<\_ACEOF
1e6feb95 34086#define wxUSE_NUMBERDLG 1
e6cc62c6 34087_ACEOF
1e6feb95
VZ
34088
34089fi
34090
34091if test "$wxUSE_PROGRESSDLG" = "yes"; then
34092 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
34093 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
34094echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 34095 else
e6cc62c6 34096 cat >>confdefs.h <<\_ACEOF
1e6feb95 34097#define wxUSE_PROGRESSDLG 1
e6cc62c6 34098_ACEOF
1e6feb95
VZ
34099
34100 fi
34101fi
34102
cbca9943 34103if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 34104 cat >>confdefs.h <<\_ACEOF
cbca9943 34105#define wxUSE_SPLASH 1
e6cc62c6 34106_ACEOF
cbca9943
VZ
34107
34108fi
34109
1e6feb95
VZ
34110if test "$wxUSE_STARTUP_TIPS" = "yes"; then
34111 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
34112 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
34113echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 34114 else
e6cc62c6 34115 cat >>confdefs.h <<\_ACEOF
1e6feb95 34116#define wxUSE_STARTUP_TIPS 1
e6cc62c6 34117_ACEOF
1e6feb95 34118
7b4a847f
RR
34119 fi
34120fi
579d8138 34121
8284b0c5 34122if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 34123 cat >>confdefs.h <<\_ACEOF
8284b0c5 34124#define wxUSE_TEXTDLG 1
e6cc62c6 34125_ACEOF
8284b0c5
MB
34126
34127fi
34128
34129if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 34130 cat >>confdefs.h <<\_ACEOF
8284b0c5 34131#define wxUSE_WIZARDDLG 1
e6cc62c6 34132_ACEOF
8284b0c5
MB
34133
34134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
34135fi
34136
34137
34138if test "$cross_compiling" = "yes"; then
34139 OSINFO="\"$host\""
34140else
34141 OSINFO=`uname -s -r -m`
34142 OSINFO="\"$OSINFO\""
34143fi
34144
e6cc62c6 34145cat >>confdefs.h <<_ACEOF
8284b0c5 34146#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 34147_ACEOF
8284b0c5
MB
34148
34149
34150
34151if test "x$prefix" != "xNONE"; then
34152 wxPREFIX=$prefix
34153else
34154 wxPREFIX=$ac_default_prefix
34155fi
34156
e6cc62c6 34157cat >>confdefs.h <<_ACEOF
8284b0c5 34158#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 34159_ACEOF
8284b0c5
MB
34160
34161
e6cc62c6 34162top_builddir_wxconfig=`pwd`
52c71b80 34163
8284b0c5
MB
34164
34165
edd891e2
VS
34166CORE_BASE_LIBS="net base"
34167CORE_GUI_LIBS="adv core"
34168
34169if test "$wxUSE_XML" = "yes" ; then
34170 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
34171fi
45293562
VS
34172if test "$wxUSE_ODBC" != "no" ; then
34173 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
34174 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
34175fi
34176if test "$wxUSE_HTML" = "yes" ; then
34177 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
34178fi
34179
57e7d4ac
VS
34180if test "$wxUSE_GUI" != "yes"; then
34181 CORE_GUI_LIBS=""
34182fi
34183
edd891e2
VS
34184
34185
34186
34187
34188
34189
8284b0c5
MB
34190
34191if test "$wxUSE_MAC" = 1 ; then
34192 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
34193fi
ac0c4cc3
DE
34194if test "$wxUSE_COCOA" = 1 ; then
34195 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
34196fi
8284b0c5
MB
34197
34198
2b5f62a0
VZ
34199LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
34200
34201have_cos=0
34202have_floor=0
e6cc62c6 34203
2b5f62a0
VZ
34204for ac_func in cos
34205do
e6cc62c6
VS
34206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34207echo "$as_me:$LINENO: checking for $ac_func" >&5
34208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34209if eval "test \"\${$as_ac_var+set}\" = set"; then
34210 echo $ECHO_N "(cached) $ECHO_C" >&6
34211else
34212 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34213#line $LINENO "configure"
e6cc62c6
VS
34214/* confdefs.h. */
34215_ACEOF
34216cat confdefs.h >>conftest.$ac_ext
34217cat >>conftest.$ac_ext <<_ACEOF
34218/* end confdefs.h. */
2b5f62a0 34219/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34220 which can conflict with char $ac_func (); below.
34221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34222 <limits.h> exists even on freestanding compilers. */
34223#ifdef __STDC__
34224# include <limits.h>
34225#else
34226# include <assert.h>
34227#endif
2b5f62a0 34228/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34229#ifdef __cplusplus
34230extern "C"
34231{
34232#endif
2b5f62a0 34233/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34234 builtin and then its argument prototype would still apply. */
34235char $ac_func ();
2b5f62a0
VZ
34236/* The GNU C library defines this for functions which it implements
34237 to always fail with ENOSYS. Some functions are actually named
34238 something starting with __ and the normal name is an alias. */
34239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34240choke me
34241#else
e6cc62c6
VS
34242char (*f) () = $ac_func;
34243#endif
34244#ifdef __cplusplus
34245}
2b5f62a0
VZ
34246#endif
34247
e6cc62c6
VS
34248int
34249main ()
34250{
34251return f != $ac_func;
34252 ;
34253 return 0;
34254}
34255_ACEOF
34256rm -f conftest.$ac_objext conftest$ac_exeext
34257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34258 (eval $ac_link) 2>&5
e6cc62c6
VS
34259 ac_status=$?
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); } &&
789c5f4a 34262 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; }; then
34268 eval "$as_ac_var=yes"
34269else
34270 echo "$as_me: failed program was:" >&5
34271sed 's/^/| /' conftest.$ac_ext >&5
34272
34273eval "$as_ac_var=no"
34274fi
789c5f4a 34275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34276fi
34277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34279if test `eval echo '${'$as_ac_var'}'` = yes; then
34280 cat >>confdefs.h <<_ACEOF
34281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34282_ACEOF
2b5f62a0 34283 have_cos=1
2b5f62a0
VZ
34284fi
34285done
34286
e6cc62c6 34287
2b5f62a0
VZ
34288for ac_func in floor
34289do
e6cc62c6
VS
34290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34291echo "$as_me:$LINENO: checking for $ac_func" >&5
34292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34293if eval "test \"\${$as_ac_var+set}\" = set"; then
34294 echo $ECHO_N "(cached) $ECHO_C" >&6
34295else
34296 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34297#line $LINENO "configure"
e6cc62c6
VS
34298/* confdefs.h. */
34299_ACEOF
34300cat confdefs.h >>conftest.$ac_ext
34301cat >>conftest.$ac_ext <<_ACEOF
34302/* end confdefs.h. */
2b5f62a0 34303/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34304 which can conflict with char $ac_func (); below.
34305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34306 <limits.h> exists even on freestanding compilers. */
34307#ifdef __STDC__
34308# include <limits.h>
34309#else
34310# include <assert.h>
34311#endif
2b5f62a0 34312/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34313#ifdef __cplusplus
34314extern "C"
34315{
34316#endif
2b5f62a0 34317/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34318 builtin and then its argument prototype would still apply. */
34319char $ac_func ();
2b5f62a0
VZ
34320/* The GNU C library defines this for functions which it implements
34321 to always fail with ENOSYS. Some functions are actually named
34322 something starting with __ and the normal name is an alias. */
34323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34324choke me
34325#else
e6cc62c6
VS
34326char (*f) () = $ac_func;
34327#endif
34328#ifdef __cplusplus
34329}
2b5f62a0
VZ
34330#endif
34331
e6cc62c6
VS
34332int
34333main ()
34334{
34335return f != $ac_func;
34336 ;
34337 return 0;
34338}
34339_ACEOF
34340rm -f conftest.$ac_objext conftest$ac_exeext
34341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34342 (eval $ac_link) 2>&5
e6cc62c6
VS
34343 ac_status=$?
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); } &&
789c5f4a 34346 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34348 (eval $ac_try) 2>&5
34349 ac_status=$?
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
34352 eval "$as_ac_var=yes"
34353else
34354 echo "$as_me: failed program was:" >&5
34355sed 's/^/| /' conftest.$ac_ext >&5
34356
34357eval "$as_ac_var=no"
34358fi
789c5f4a 34359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34360fi
34361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34363if test `eval echo '${'$as_ac_var'}'` = yes; then
34364 cat >>confdefs.h <<_ACEOF
34365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34366_ACEOF
2b5f62a0 34367 have_floor=1
2b5f62a0
VZ
34368fi
34369done
34370
e6cc62c6
VS
34371echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
34372echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 34373if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
34374 echo "$as_me:$LINENO: result: yes" >&5
34375echo "${ECHO_T}yes" >&6
2b5f62a0 34376else
e6cc62c6
VS
34377 echo "$as_me:$LINENO: result: no" >&5
34378echo "${ECHO_T}no" >&6
2b5f62a0
VZ
34379 LIBS="$LIBS -lm"
34380 # use different functions to avoid configure caching
34381 have_sin=0
34382 have_ceil=0
e6cc62c6
VS
34383
34384for ac_func in sin
2b5f62a0 34385do
e6cc62c6
VS
34386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34387echo "$as_me:$LINENO: checking for $ac_func" >&5
34388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34389if eval "test \"\${$as_ac_var+set}\" = set"; then
34390 echo $ECHO_N "(cached) $ECHO_C" >&6
34391else
34392 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34393#line $LINENO "configure"
e6cc62c6
VS
34394/* confdefs.h. */
34395_ACEOF
34396cat confdefs.h >>conftest.$ac_ext
34397cat >>conftest.$ac_ext <<_ACEOF
34398/* end confdefs.h. */
2b5f62a0 34399/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34400 which can conflict with char $ac_func (); below.
34401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34402 <limits.h> exists even on freestanding compilers. */
34403#ifdef __STDC__
34404# include <limits.h>
34405#else
34406# include <assert.h>
34407#endif
2b5f62a0 34408/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34409#ifdef __cplusplus
34410extern "C"
34411{
34412#endif
2b5f62a0 34413/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34414 builtin and then its argument prototype would still apply. */
34415char $ac_func ();
2b5f62a0
VZ
34416/* The GNU C library defines this for functions which it implements
34417 to always fail with ENOSYS. Some functions are actually named
34418 something starting with __ and the normal name is an alias. */
34419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34420choke me
34421#else
e6cc62c6
VS
34422char (*f) () = $ac_func;
34423#endif
34424#ifdef __cplusplus
34425}
2b5f62a0
VZ
34426#endif
34427
e6cc62c6
VS
34428int
34429main ()
34430{
34431return f != $ac_func;
34432 ;
34433 return 0;
34434}
34435_ACEOF
34436rm -f conftest.$ac_objext conftest$ac_exeext
34437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34438 (eval $ac_link) 2>&5
e6cc62c6
VS
34439 ac_status=$?
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); } &&
789c5f4a 34442 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444 (eval $ac_try) 2>&5
34445 ac_status=$?
34446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447 (exit $ac_status); }; }; then
34448 eval "$as_ac_var=yes"
34449else
34450 echo "$as_me: failed program was:" >&5
34451sed 's/^/| /' conftest.$ac_ext >&5
34452
34453eval "$as_ac_var=no"
34454fi
789c5f4a 34455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34456fi
34457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34459if test `eval echo '${'$as_ac_var'}'` = yes; then
34460 cat >>confdefs.h <<_ACEOF
34461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34462_ACEOF
2b5f62a0 34463 have_sin=1
2b5f62a0
VZ
34464fi
34465done
34466
e6cc62c6
VS
34467
34468for ac_func in ceil
2b5f62a0 34469do
e6cc62c6
VS
34470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34471echo "$as_me:$LINENO: checking for $ac_func" >&5
34472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34473if eval "test \"\${$as_ac_var+set}\" = set"; then
34474 echo $ECHO_N "(cached) $ECHO_C" >&6
34475else
34476 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34477#line $LINENO "configure"
e6cc62c6
VS
34478/* confdefs.h. */
34479_ACEOF
34480cat confdefs.h >>conftest.$ac_ext
34481cat >>conftest.$ac_ext <<_ACEOF
34482/* end confdefs.h. */
2b5f62a0 34483/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34484 which can conflict with char $ac_func (); below.
34485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34486 <limits.h> exists even on freestanding compilers. */
34487#ifdef __STDC__
34488# include <limits.h>
34489#else
34490# include <assert.h>
34491#endif
2b5f62a0 34492/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34493#ifdef __cplusplus
34494extern "C"
34495{
34496#endif
2b5f62a0 34497/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34498 builtin and then its argument prototype would still apply. */
34499char $ac_func ();
2b5f62a0
VZ
34500/* The GNU C library defines this for functions which it implements
34501 to always fail with ENOSYS. Some functions are actually named
34502 something starting with __ and the normal name is an alias. */
34503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34504choke me
34505#else
e6cc62c6
VS
34506char (*f) () = $ac_func;
34507#endif
34508#ifdef __cplusplus
34509}
2b5f62a0
VZ
34510#endif
34511
e6cc62c6
VS
34512int
34513main ()
34514{
34515return f != $ac_func;
34516 ;
34517 return 0;
34518}
34519_ACEOF
34520rm -f conftest.$ac_objext conftest$ac_exeext
34521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34522 (eval $ac_link) 2>&5
e6cc62c6
VS
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); } &&
789c5f4a 34526 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34529 ac_status=$?
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; }; then
34532 eval "$as_ac_var=yes"
34533else
34534 echo "$as_me: failed program was:" >&5
34535sed 's/^/| /' conftest.$ac_ext >&5
34536
34537eval "$as_ac_var=no"
34538fi
789c5f4a 34539rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34540fi
34541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34542echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34543if test `eval echo '${'$as_ac_var'}'` = yes; then
34544 cat >>confdefs.h <<_ACEOF
34545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34546_ACEOF
2b5f62a0 34547 have_ceil=1
2b5f62a0
VZ
34548fi
34549done
34550
e6cc62c6
VS
34551 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
34552echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 34553 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
34554 echo "$as_me:$LINENO: result: yes" >&5
34555echo "${ECHO_T}yes" >&6
2b5f62a0 34556 else
e6cc62c6
VS
34557 echo "$as_me:$LINENO: result: no" >&5
34558echo "${ECHO_T}no" >&6
2b5f62a0
VZ
34559 # not sure we should warn the user, crash, etc.
34560 fi
34561fi
8284b0c5
MB
34562
34563if test "$wxUSE_GUI" = "yes"; then
34564
e6cc62c6 34565
8284b0c5
MB
34566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
34567 drawing dynamic erase event exec font image \
1dd02ac0 34568 minimal propsize rotate shaped widgets render"
b625909c
VS
34569
34570 if test "$wxUSE_MONOLITHIC" != "yes"; then
34571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
34572 fi
8284b0c5
MB
34573else
34574 SAMPLES_SUBDIRS="console"
34575fi
34576
34577
e6cc62c6 34578INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 34579-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 34580
fddeb06b
VS
34581if test "$GXX" = yes ; then
34582 CXXWARNINGS="-Wall"
34583 fi
34584
34585EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34586
95318f7d 34587CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
34588CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34589CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
34590
34591
fddeb06b 34592LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 34593EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 34594EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 34595EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 34596EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
34597if test "$wxUSE_GUI" = "yes"; then
34598 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
34599fi
34b08d2c
VS
34600if test "$wxUSE_OPENGL" = "yes"; then
34601 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
34602fi
fddeb06b
VS
34603
34604LDFLAGS="$LDFLAGS $PROFILE"
34605
8284b0c5
MB
34606if test "$wxUSE_GTK" = 1; then
34607 WXCONFIG_INCLUDE=
34608else
34609 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
34610fi
34611
67c13b6c
VS
34612WXCONFIG_EXTRALIBS="$LIBS"
34613
34614if test "$wxUSE_REGEX" = "builtin" ; then
34615 wxconfig_3rdparty="$wxconfig_3rdparty regex"
34616fi
34617if test "$wxUSE_EXPAT" = "builtin" ; then
34618 wxconfig_3rdparty="$wxconfig_3rdparty expat"
34619fi
34620if test "$wxUSE_ODBC" = "builtin" ; then
34621 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
34622fi
34623if test "$wxUSE_LIBTIFF" = "builtin" ; then
34624 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
34625fi
34626if test "$wxUSE_LIBJPEG" = "builtin" ; then
34627 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
34628fi
34629if test "$wxUSE_LIBPNG" = "builtin" ; then
34630 wxconfig_3rdparty="$wxconfig_3rdparty png"
34631fi
34632if test "$wxUSE_ZLIB" = "builtin" ; then
34633 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
34634fi
bb41dcbe
VS
34635if test "$wxUSE_ODBC" = "builtin" ; then
34636 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
34637fi
67c13b6c
VS
34638
34639for i in $wxconfig_3rdparty ; do
34640 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
34641done
34642
34643
fe0895cf
VS
34644if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
34645 WXUNIV=1
34646else
34647 WXUNIV=0
8284b0c5
MB
34648fi
34649
8284b0c5
MB
34650
34651
34652
34653
34654
34655
34656
672abd7a 34657
9747f85d
VS
34658if test $wxUSE_MONOLITHIC = "yes" ; then
34659 MONOLITHIC=1
34660else
34661 MONOLITHIC=0
34662fi
8284b0c5 34663
f93ca9fd
VS
34664if test $wxUSE_PLUGINS = "yes" ; then
34665 USE_PLUGINS=1
34666else
34667 USE_PLUGINS=0
34668fi
34669
bb41dcbe
VS
34670if test $wxUSE_ODBC != "no" ; then
34671 USE_ODBC=1
34672else
34673 USE_ODBC=0
34674fi
34675
029b47ad
VS
34676if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
34677 OFFICIAL_BUILD=1
34678else
34679 OFFICIAL_BUILD=0
34680fi
34681
8ee2dd05
VS
34682
34683
34684
8284b0c5
MB
34685
34686
34687
34688
34689
34690
c74dc163 34691
34b08d2c 34692
672abd7a 34693
cf615ebb 34694
6c67131a
VS
34695
34696
bb41dcbe 34697
f93ca9fd
VS
34698
34699
34700
3527f29c 34701
89fe663f 34702TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
34703
34704
34705
34706
34707
ea66c762 34708
0f1bc9c2 34709
f95e4495
VS
34710 if test "x$BAKEFILE_HOST" = "x"; then
34711 BAKEFILE_HOST="${host}"
34712 fi
34713
fe0895cf 34714 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
34715
34716 if test -n "$ac_tool_prefix"; then
34717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34718set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34719echo "$as_me:$LINENO: checking for $ac_word" >&5
34720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34721if test "${ac_cv_prog_RANLIB+set}" = set; then
34722 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34723else
fe0895cf
VS
34724 if test -n "$RANLIB"; then
34725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 34726else
e6cc62c6
VS
34727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34728for as_dir in $PATH
34729do
34730 IFS=$as_save_IFS
34731 test -z "$as_dir" && as_dir=.
34732 for ac_exec_ext in '' $ac_executable_extensions; do
34733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34736 break 2
34737 fi
34738done
34739done
34740
10f2d63a 34741fi
10f2d63a 34742fi
e6cc62c6 34743RANLIB=$ac_cv_prog_RANLIB
fe0895cf 34744if test -n "$RANLIB"; then
e6cc62c6
VS
34745 echo "$as_me:$LINENO: result: $RANLIB" >&5
34746echo "${ECHO_T}$RANLIB" >&6
34747else
34748 echo "$as_me:$LINENO: result: no" >&5
34749echo "${ECHO_T}no" >&6
34750fi
34751
34752fi
34753if test -z "$ac_cv_prog_RANLIB"; then
34754 ac_ct_RANLIB=$RANLIB
34755 # Extract the first word of "ranlib", so it can be a program name with args.
34756set dummy ranlib; ac_word=$2
34757echo "$as_me:$LINENO: checking for $ac_word" >&5
34758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34759if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34760 echo $ECHO_N "(cached) $ECHO_C" >&6
34761else
34762 if test -n "$ac_ct_RANLIB"; then
34763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34764else
34765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34766for as_dir in $PATH
34767do
34768 IFS=$as_save_IFS
34769 test -z "$as_dir" && as_dir=.
34770 for ac_exec_ext in '' $ac_executable_extensions; do
34771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34772 ac_cv_prog_ac_ct_RANLIB="ranlib"
34773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34774 break 2
34775 fi
34776done
34777done
34778
34779 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34780fi
34781fi
34782ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34783if test -n "$ac_ct_RANLIB"; then
34784 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34785echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 34786else
e6cc62c6
VS
34787 echo "$as_me:$LINENO: result: no" >&5
34788echo "${ECHO_T}no" >&6
34789fi
34790
34791 RANLIB=$ac_ct_RANLIB
34792else
34793 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 34794fi
665bbe97 34795
fe0895cf
VS
34796 # Find a good install program. We prefer a C program (faster),
34797# so one script is as good as another. But avoid the broken or
34798# incompatible versions:
34799# SysV /etc/install, /usr/sbin/install
34800# SunOS /usr/etc/install
34801# IRIX /sbin/install
34802# AIX /bin/install
e6cc62c6 34803# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34804# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34805# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34806# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34807# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34808echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34809echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34810if test -z "$INSTALL"; then
e6cc62c6
VS
34811if test "${ac_cv_path_install+set}" = set; then
34812 echo $ECHO_N "(cached) $ECHO_C" >&6
34813else
34814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34815for as_dir in $PATH
34816do
34817 IFS=$as_save_IFS
34818 test -z "$as_dir" && as_dir=.
34819 # Account for people who put trailing slashes in PATH elements.
34820case $as_dir/ in
34821 ./ | .// | /cC/* | \
34822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34823 /usr/ucb/* ) ;;
34824 *)
34825 # OSF1 and SCO ODT 3.0 have their own names for install.
34826 # Don't use installbsd from OSF since it installs stuff as root
34827 # by default.
34828 for ac_prog in ginstall scoinst install; do
34829 for ac_exec_ext in '' $ac_executable_extensions; do
789c5f4a
VZ
34830 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34831 if test $ac_prog = install &&
34832 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34833 # AIX install. It has an incompatible calling convention.
34834 :
34835 elif test $ac_prog = install &&
34836 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34837 # program-specific install script used by HP pwplus--don't use.
34838 :
34839 else
34840 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34841 break 3
34842 fi
34843 fi
fe0895cf 34844 done
e6cc62c6
VS
34845 done
34846 ;;
34847esac
34848done
34849
fe0895cf
VS
34850
34851fi
34852 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34853 INSTALL=$ac_cv_path_install
fe0895cf
VS
34854 else
34855 # As a last resort, use the slow shell script. We don't cache a
34856 # path for INSTALL within a source directory, because that will
34857 # break other packages using the cache if that directory is
34858 # removed, or if the path is relative.
e6cc62c6 34859 INSTALL=$ac_install_sh
fe0895cf
VS
34860 fi
34861fi
e6cc62c6
VS
34862echo "$as_me:$LINENO: result: $INSTALL" >&5
34863echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34864
34865# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34866# It thinks the first close brace ends the variable substitution.
34867test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34868
e6cc62c6 34869test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34870
34871test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34872
e6cc62c6
VS
34873 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34874echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34875LN_S=$as_ln_s
34876if test "$LN_S" = "ln -s"; then
34877 echo "$as_me:$LINENO: result: yes" >&5
34878echo "${ECHO_T}yes" >&6
fe0895cf 34879else
e6cc62c6
VS
34880 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34881echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34882fi
34883
34884
e6cc62c6
VS
34885 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34886echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
789c5f4a 34887set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
34888if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34889 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34890else
e6cc62c6 34891 cat >conftest.make <<\_ACEOF
fe0895cf 34892all:
e6cc62c6
VS
34893 @echo 'ac_maketemp="$(MAKE)"'
34894_ACEOF
fe0895cf 34895# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34896eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34897if test -n "$ac_maketemp"; then
34898 eval ac_cv_prog_make_${ac_make}_set=yes
34899else
34900 eval ac_cv_prog_make_${ac_make}_set=no
34901fi
e6cc62c6 34902rm -f conftest.make
fe0895cf
VS
34903fi
34904if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34905 echo "$as_me:$LINENO: result: yes" >&5
34906echo "${ECHO_T}yes" >&6
fe0895cf
VS
34907 SET_MAKE=
34908else
e6cc62c6
VS
34909 echo "$as_me:$LINENO: result: no" >&5
34910echo "${ECHO_T}no" >&6
fe0895cf
VS
34911 SET_MAKE="MAKE=${MAKE-make}"
34912fi
34913
e6cc62c6
VS
34914
34915
874d12cf
VS
34916 if test -n "$ac_tool_prefix"; then
34917 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34918set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
34919echo "$as_me:$LINENO: checking for $ac_word" >&5
34920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34921if test "${ac_cv_prog_AR+set}" = set; then
34922 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34923else
34924 if test -n "$AR"; then
34925 ac_cv_prog_AR="$AR" # Let the user override the test.
34926else
e6cc62c6
VS
34927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34928for as_dir in $PATH
34929do
34930 IFS=$as_save_IFS
34931 test -z "$as_dir" && as_dir=.
34932 for ac_exec_ext in '' $ac_executable_extensions; do
34933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34934 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
34935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34936 break 2
34937 fi
34938done
34939done
34940
fe0895cf
VS
34941fi
34942fi
e6cc62c6 34943AR=$ac_cv_prog_AR
fe0895cf 34944if test -n "$AR"; then
e6cc62c6
VS
34945 echo "$as_me:$LINENO: result: $AR" >&5
34946echo "${ECHO_T}$AR" >&6
fe0895cf 34947else
e6cc62c6
VS
34948 echo "$as_me:$LINENO: result: no" >&5
34949echo "${ECHO_T}no" >&6
fe0895cf
VS
34950fi
34951
874d12cf
VS
34952fi
34953if test -z "$ac_cv_prog_AR"; then
34954 ac_ct_AR=$AR
34955 # Extract the first word of "ar", so it can be a program name with args.
34956set dummy ar; ac_word=$2
34957echo "$as_me:$LINENO: checking for $ac_word" >&5
34958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34959if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34960 echo $ECHO_N "(cached) $ECHO_C" >&6
34961else
34962 if test -n "$ac_ct_AR"; then
34963 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34964else
34965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34966for as_dir in $PATH
34967do
34968 IFS=$as_save_IFS
34969 test -z "$as_dir" && as_dir=.
34970 for ac_exec_ext in '' $ac_executable_extensions; do
34971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34972 ac_cv_prog_ac_ct_AR="ar"
34973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34974 break 2
34975 fi
34976done
34977done
34978
34979 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
34980fi
34981fi
34982ac_ct_AR=$ac_cv_prog_ac_ct_AR
34983if test -n "$ac_ct_AR"; then
34984 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34985echo "${ECHO_T}$ac_ct_AR" >&6
34986else
34987 echo "$as_me:$LINENO: result: no" >&5
34988echo "${ECHO_T}no" >&6
34989fi
34990
34991 AR=$ac_ct_AR
34992else
34993 AR="$ac_cv_prog_AR"
34994fi
34995
34996 if test -n "$ac_tool_prefix"; then
34997 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34998set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
34999echo "$as_me:$LINENO: checking for $ac_word" >&5
35000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35001if test "${ac_cv_prog_STRIP+set}" = set; then
35002 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35003else
35004 if test -n "$STRIP"; then
35005 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
35006else
e6cc62c6
VS
35007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35008for as_dir in $PATH
35009do
35010 IFS=$as_save_IFS
35011 test -z "$as_dir" && as_dir=.
35012 for ac_exec_ext in '' $ac_executable_extensions; do
35013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 35014 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
35015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35016 break 2
35017 fi
35018done
35019done
35020
fe0895cf
VS
35021fi
35022fi
e6cc62c6 35023STRIP=$ac_cv_prog_STRIP
fe0895cf 35024if test -n "$STRIP"; then
e6cc62c6
VS
35025 echo "$as_me:$LINENO: result: $STRIP" >&5
35026echo "${ECHO_T}$STRIP" >&6
fe0895cf 35027else
e6cc62c6
VS
35028 echo "$as_me:$LINENO: result: no" >&5
35029echo "${ECHO_T}no" >&6
fe0895cf
VS
35030fi
35031
874d12cf
VS
35032fi
35033if test -z "$ac_cv_prog_STRIP"; then
35034 ac_ct_STRIP=$STRIP
35035 # Extract the first word of "strip", so it can be a program name with args.
35036set dummy strip; ac_word=$2
35037echo "$as_me:$LINENO: checking for $ac_word" >&5
35038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35039if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
35040 echo $ECHO_N "(cached) $ECHO_C" >&6
35041else
35042 if test -n "$ac_ct_STRIP"; then
35043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
35044else
35045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35046for as_dir in $PATH
35047do
35048 IFS=$as_save_IFS
35049 test -z "$as_dir" && as_dir=.
35050 for ac_exec_ext in '' $ac_executable_extensions; do
35051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35052 ac_cv_prog_ac_ct_STRIP="strip"
35053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35054 break 2
35055 fi
35056done
35057done
35058
35059 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
35060fi
35061fi
35062ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
35063if test -n "$ac_ct_STRIP"; then
35064 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
35065echo "${ECHO_T}$ac_ct_STRIP" >&6
35066else
35067 echo "$as_me:$LINENO: result: no" >&5
35068echo "${ECHO_T}no" >&6
35069fi
35070
35071 STRIP=$ac_ct_STRIP
35072else
35073 STRIP="$ac_cv_prog_STRIP"
35074fi
35075
35076 if test -n "$ac_tool_prefix"; then
35077 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
35078set dummy ${ac_tool_prefix}nm; ac_word=$2
35079echo "$as_me:$LINENO: checking for $ac_word" >&5
35080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35081if test "${ac_cv_prog_NM+set}" = set; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35083else
35084 if test -n "$NM"; then
35085 ac_cv_prog_NM="$NM" # Let the user override the test.
35086else
35087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35088for as_dir in $PATH
35089do
35090 IFS=$as_save_IFS
35091 test -z "$as_dir" && as_dir=.
35092 for ac_exec_ext in '' $ac_executable_extensions; do
35093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35094 ac_cv_prog_NM="${ac_tool_prefix}nm"
35095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35096 break 2
35097 fi
35098done
35099done
35100
35101fi
35102fi
35103NM=$ac_cv_prog_NM
35104if test -n "$NM"; then
35105 echo "$as_me:$LINENO: result: $NM" >&5
35106echo "${ECHO_T}$NM" >&6
35107else
35108 echo "$as_me:$LINENO: result: no" >&5
35109echo "${ECHO_T}no" >&6
35110fi
35111
35112fi
35113if test -z "$ac_cv_prog_NM"; then
35114 ac_ct_NM=$NM
35115 # Extract the first word of "nm", so it can be a program name with args.
35116set dummy nm; ac_word=$2
35117echo "$as_me:$LINENO: checking for $ac_word" >&5
35118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35119if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
35120 echo $ECHO_N "(cached) $ECHO_C" >&6
35121else
35122 if test -n "$ac_ct_NM"; then
35123 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
35124else
35125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35126for as_dir in $PATH
35127do
35128 IFS=$as_save_IFS
35129 test -z "$as_dir" && as_dir=.
35130 for ac_exec_ext in '' $ac_executable_extensions; do
35131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35132 ac_cv_prog_ac_ct_NM="nm"
35133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35134 break 2
35135 fi
35136done
35137done
35138
35139 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
35140fi
35141fi
35142ac_ct_NM=$ac_cv_prog_ac_ct_NM
35143if test -n "$ac_ct_NM"; then
35144 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
35145echo "${ECHO_T}$ac_ct_NM" >&6
35146else
35147 echo "$as_me:$LINENO: result: no" >&5
35148echo "${ECHO_T}no" >&6
35149fi
35150
35151 NM=$ac_ct_NM
35152else
35153 NM="$ac_cv_prog_NM"
35154fi
35155
fe0895cf 35156
f95e4495 35157 case ${BAKEFILE_HOST} in
fe0895cf
VS
35158 *-hp-hpux* )
35159 INSTALL_DIR="mkdir"
35160 ;;
35161 *) INSTALL_DIR="$INSTALL -d"
35162 ;;
35163 esac
e6cc62c6 35164
fe0895cf 35165
6b9d41a5 35166 LDFLAGS_GUI=
f95e4495 35167 case ${BAKEFILE_HOST} in
6b9d41a5
VS
35168 *-*-cygwin* | *-*-mingw32* )
35169 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
35170 esac
35171
35172
fe0895cf 35173 fi
e6cc62c6
VS
35174
35175 echo "$as_me:$LINENO: checking if make is GNU make" >&5
35176echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 35177if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 35178 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35179else
e6cc62c6 35180
fe0895cf
VS
35181 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
35182 egrep -s GNU > /dev/null); then
35183 bakefile_cv_prog_makeisgnu="yes"
35184 else
35185 bakefile_cv_prog_makeisgnu="no"
35186 fi
fe0895cf 35187
e6cc62c6 35188fi
49b0a3aa
VS
35189echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
35190echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
35191
35192 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
35193 IF_GNU_MAKE=""
35194 else
35195 IF_GNU_MAKE="#"
35196 fi
fe0895cf 35197
e6cc62c6
VS
35198
35199
fe0895cf
VS
35200 PLATFORM_UNIX=0
35201 PLATFORM_WIN32=0
35202 PLATFORM_MSDOS=0
35203 PLATFORM_MAC=0
35204 PLATFORM_MACOSX=0
96c1699d 35205 PLATFORM_OS2=0
e6cc62c6 35206
f95e4495
VS
35207 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
35208 case "${BAKEFILE_HOST}" in
35209 *-*-cygwin* | *-*-mingw32* )
35210 PLATFORM_WIN32=1
35211 ;;
35212 *-pc-msdosdjgpp )
35213 PLATFORM_MSDOS=1
35214 ;;
35215 *-pc-os2_emx | *-pc-os2-emx )
35216 PLATFORM_OS2=1
35217 ;;
35218 powerpc-*-darwin* )
35219 PLATFORM_MAC=1
35220 PLATFORM_MACOSX=1
35221 ;;
35222 * )
35223 PLATFORM_UNIX=1
35224 ;;
35225 esac
35226 else
35227 case "$BAKEFILE_FORCE_PLATFORM" in
35228 win32 )
35229 PLATFORM_WIN32=1
35230 ;;
35231 msdos )
35232 PLATFORM_MSDOS=1
35233 ;;
35234 os2 )
35235 PLATFORM_OS2=1
35236 ;;
35237 darwin )
35238 PLATFORM_MAC=1
35239 PLATFORM_MACOSX=1
35240 ;;
35241 unix )
35242 PLATFORM_UNIX=1
35243 ;;
35244 * )
35245 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
35246echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
35247 { (exit 1); exit 1; }; }
35248 ;;
35249 esac
35250 fi
fe0895cf 35251
fe0895cf 35252
e6cc62c6
VS
35253
35254
35255
35256
35257
35258
96c1699d 35259
fe0895cf 35260 SO_SUFFIX="so"
131f235d 35261 SO_SUFFIX_MODULE="so"
fe0895cf 35262 EXEEXT=""
4b1f6360 35263 LIBPREFIX=lib
fe0895cf 35264 DLLPREFIX=lib
131f235d 35265 DLLPREFIX_MODULE=
e6cc62c6 35266
f95e4495 35267 case "${BAKEFILE_HOST}" in
fe0895cf
VS
35268 *-hp-hpux* )
35269 SO_SUFFIX="sl"
131f235d 35270 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
35271 ;;
35272 *-*-aix* )
35273 SO_SUFFIX="a"
131f235d 35274 SO_SUFFIX_MODULE="a"
fe0895cf
VS
35275 ;;
35276 *-*-cygwin* | *-*-mingw32* )
35277 SO_SUFFIX="dll"
131f235d 35278 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
35279 EXEEXT=".exe"
35280 DLLPREFIX=""
35281 ;;
4b1f6360
VS
35282 *-pc-msdosdjgpp )
35283 EXEEXT=".exe"
35284 DLLPREFIX=""
35285 ;;
35286 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
35287 EXEEXT=".exe"
35288 DLLPREFIX=""
4b1f6360 35289 LIBPREFIX=""
fe0895cf
VS
35290 ;;
35291 powerpc-*-darwin* )
35292 SO_SUFFIX="dylib"
131f235d 35293 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
35294 ;;
35295 esac
35296
fe0895cf 35297
e6cc62c6
VS
35298
35299
35300
35301
131f235d
VS
35302
35303
4b1f6360 35304
fe0895cf
VS
35305 SHARED_LD_CC="\$(CC) -shared -o"
35306 SHARED_LD_CXX="\$(CXX) -shared -o"
35307
35308 if test "x$GCC" = "xyes"; then
35309 PIC_FLAG="-fPIC"
35310 fi
35311
f95e4495 35312 case "${BAKEFILE_HOST}" in
fe0895cf
VS
35313 *-hp-hpux* )
35314 if test "x$GCC" = "xyes"; then
35315 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
35316 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
35317 else
35318 LDFLAGS="$LDFLAGS -L/usr/lib"
35319
35320 SHARED_LD_CC="${CC} -b -o"
35321 SHARED_LD_CXX="${CXX} -b -o"
35322 PIC_FLAG="+Z"
35323 fi
35324 ;;
35325
35326 *-*-linux* )
35327 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
35328 echo "$as_me:$LINENO: checking for Intel compiler" >&5
35329echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
35330if test "${bakefile_cv_prog_icc+set}" = set; then
35331 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35332else
fe0895cf 35333
e6cc62c6 35334 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 35335#line $LINENO "configure"
e6cc62c6
VS
35336/* confdefs.h. */
35337_ACEOF
35338cat confdefs.h >>conftest.$ac_ext
35339cat >>conftest.$ac_ext <<_ACEOF
35340/* end confdefs.h. */
35341
35342int
35343main ()
35344{
fe0895cf
VS
35345
35346 #ifndef __INTEL_COMPILER
35347 #error Not icc
35348 #endif
e6cc62c6
VS
35349
35350 ;
35351 return 0;
35352}
35353_ACEOF
35354rm -f conftest.$ac_objext
35355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 35356 (eval $ac_compile) 2>&5
e6cc62c6
VS
35357 ac_status=$?
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); } &&
789c5f4a 35360 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35362 (eval $ac_try) 2>&5
35363 ac_status=$?
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); }; }; then
fe0895cf
VS
35366 bakefile_cv_prog_icc=yes
35367else
e6cc62c6
VS
35368 echo "$as_me: failed program was:" >&5
35369sed 's/^/| /' conftest.$ac_ext >&5
35370
35371bakefile_cv_prog_icc=no
35372
fe0895cf 35373fi
789c5f4a 35374rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 35375
e6cc62c6
VS
35376fi
35377echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
35378echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
35379 if test "$bakefile_cv_prog_icc" = "yes"; then
35380 PIC_FLAG="-KPIC"
35381 fi
35382 fi
35383 ;;
35384
35385 *-*-solaris2* )
35386 if test "x$GCC" != xyes ; then
35387 SHARED_LD_CC="${CC} -G -o"
35388 SHARED_LD_CXX="${CXX} -G -o"
35389 PIC_FLAG="-KPIC"
35390 fi
35391 ;;
35392
35393 *-*-darwin* )
35394 CFLAGS="$CFLAGS -fno-common"
35395 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
35396
35397
2a879853 35398 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
35399echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
35400if test "${wx_cv_gcc31+set}" = set; then
35401 echo $ECHO_N "(cached) $ECHO_C" >&6
35402else
35403
2a879853 35404 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 35405#line $LINENO "configure"
43948499
RD
35406/* confdefs.h. */
35407_ACEOF
35408cat confdefs.h >>conftest.$ac_ext
35409cat >>conftest.$ac_ext <<_ACEOF
35410/* end confdefs.h. */
35411
35412int
35413main ()
35414{
35415
2a879853
VS
35416 #if (__GNUC__ < 3) || \
35417 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
35418 #error old gcc
35419 #endif
43948499
RD
35420
35421 ;
35422 return 0;
35423}
35424_ACEOF
35425rm -f conftest.$ac_objext
35426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 35427 (eval $ac_compile) 2>&5
43948499
RD
35428 ac_status=$?
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); } &&
789c5f4a 35431 { ac_try='test -s conftest.$ac_objext'
43948499
RD
35432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433 (eval $ac_try) 2>&5
35434 ac_status=$?
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; }; then
35437
2a879853 35438 wx_cv_gcc31=yes
43948499
RD
35439
35440else
35441 echo "$as_me: failed program was:" >&5
35442sed 's/^/| /' conftest.$ac_ext >&5
35443
35444
2a879853 35445 wx_cv_gcc31=no
43948499
RD
35446
35447
35448fi
789c5f4a 35449rm -f conftest.$ac_objext conftest.$ac_ext
43948499
RD
35450
35451fi
35452echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
35453echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 35454 if test "$wx_cv_gcc31" = "no"; then
43948499 35455 cat <<EOF >shared-ld-sh
fe0895cf
VS
35456#!/bin/sh
35457#-----------------------------------------------------------------------------
35458#-- Name: distrib/mac/shared-ld-sh
35459#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
35460#-- Author: Gilles Depeyrot
35461#-- Copyright: (c) 2002 Gilles Depeyrot
35462#-- Licence: any use permitted
35463#-----------------------------------------------------------------------------
35464
35465verbose=0
35466args=""
35467objects=""
131f235d 35468linking_flag="-dynamiclib"
fe0895cf
VS
35469
35470while test \${#} -gt 0; do
35471 case \${1} in
35472
35473 -v)
35474 verbose=1
35475 ;;
35476
35477 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
35478 # collect these options and values
35479 args="\${args} \${1} \${2}"
35480 shift
35481 ;;
35482
74500461 35483 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
35484 # collect these options
35485 args="\${args} \${1}"
35486 ;;
35487
131f235d
VS
35488 -dynamiclib|-bundle)
35489 linking_flag="\${1}"
fe0895cf
VS
35490 ;;
35491
35492 -*)
35493 echo "shared-ld: unhandled option '\${1}'"
35494 exit 1
35495 ;;
35496
4d264332 35497 *.o | *.a | *.dylib)
fe0895cf
VS
35498 # collect object files
35499 objects="\${objects} \${1}"
35500 ;;
35501
35502 *)
35503 echo "shared-ld: unhandled argument '\${1}'"
35504 exit 1
35505 ;;
35506
35507 esac
35508 shift
35509done
35510
35511#
35512# Link one module containing all the others
35513#
35514if test \${verbose} = 1; then
35515 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
35516fi
35517c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
35518status=\$?
35519if test \${status} != 0; then
35520 exit \${status}
35521fi
35522
35523#
35524# Link the shared library from the single module created
35525#
35526if test \${verbose} = 1; then
2a879853 35527 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 35528fi
131f235d 35529c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
35530status=\$?
35531if test \${status} != 0; then
35532 exit \${status}
35533fi
35534
35535#
35536# Remove intermediate module
35537#
35538rm -f master.\$\$.o
35539
35540exit 0
35541EOF
43948499 35542 chmod +x shared-ld-sh
fe0895cf 35543
7f523214
VS
35544 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
35545 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
35546 SHARED_LD_CXX="$SHARED_LD_CC"
35547 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
35548 else
7f523214
VS
35549 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
35550 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
35551 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
35552 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
35553 fi
35554
fe0895cf 35555 PIC_FLAG="-dynamic -fPIC"
2a879853 35556 ;;
fe0895cf
VS
35557
35558 *-*-aix* )
35559 if test "x$GCC" != "xyes"; then
35560 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
35561set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
35562echo "$as_me:$LINENO: checking for $ac_word" >&5
35563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35564if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
35565 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35566else
35567 if test -n "$AIX_CXX_LD"; then
35568 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
35569else
e6cc62c6
VS
35570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35571for as_dir in $PATH
35572do
35573 IFS=$as_save_IFS
35574 test -z "$as_dir" && as_dir=.
35575 for ac_exec_ext in '' $ac_executable_extensions; do
35576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35577 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
35578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35579 break 2
35580 fi
35581done
35582done
35583
fe0895cf
VS
35584 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
35585fi
35586fi
e6cc62c6 35587AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 35588if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
35589 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
35590echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 35591else
e6cc62c6
VS
35592 echo "$as_me:$LINENO: result: no" >&5
35593echo "${ECHO_T}no" >&6
fe0895cf
VS
35594fi
35595
35596 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
35597 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
35598 fi
35599 ;;
35600
35601 *-*-beos* )
35602 SHARED_LD_CC="${LD} -shared -o"
35603 SHARED_LD_CXX="${LD} -shared -o"
35604 ;;
35605
35606 *-*-irix* )
35607 if test "x$GCC" != "xyes"; then
35608 PIC_FLAG="-KPIC"
35609 fi
35610 ;;
e6cc62c6 35611
fe0895cf
VS
35612 *-*-cygwin* | *-*-mingw32* )
35613 PIC_FLAG=""
35614 ;;
e6cc62c6 35615
fe0895cf
VS
35616 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
35617 *-*-sunos4* | \
35618 *-*-osf* | \
35619 *-*-dgux5* | \
4b1f6360 35620 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
35621 *-*-sysv5* )
35622 ;;
35623
35624 *)
f95e4495
VS
35625 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
35626echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 35627 { (exit 1); exit 1; }; }
fe0895cf
VS
35628 esac
35629
131f235d
VS
35630 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
35631 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
35632 fi
35633 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 35634 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
35635 fi
35636
35637
35638
fe0895cf 35639
e6cc62c6
VS
35640
35641
35642
35643
fe0895cf
VS
35644 USE_SOVERSION=0
35645 USE_SOVERLINUX=0
35646 USE_SOVERSOLARIS=0
35647 USE_SOSYMLINKS=0
35648 USE_MACVERSION=0
35649 SONAME_FLAG=
35650
f95e4495 35651 case "${BAKEFILE_HOST}" in
fe0895cf
VS
35652 *-*-linux* )
35653 SONAME_FLAG="-Wl,-soname,"
35654 USE_SOVERSION=1
35655 USE_SOVERLINUX=1
35656 USE_SOSYMLINKS=1
35657 ;;
35658
35659 *-*-solaris2* )
35660 SONAME_FLAG="-h "
35661 USE_SOVERSION=1
35662 USE_SOVERSOLARIS=1
35663 USE_SOSYMLINKS=1
35664 ;;
35665
35666 *-*-darwin* )
35667 USE_MACVERSION=1
35668 USE_SOVERSION=1
35669 USE_SOSYMLINKS=1
e6cc62c6 35670 ;;
fe0895cf
VS
35671 esac
35672
fe0895cf 35673
e6cc62c6
VS
35674
35675
35676
35677
35678
35679
35680
49b0a3aa
VS
35681 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
35682echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
35683 DEPS_TRACKING=0
35684
fe0895cf 35685 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
35686 DEPSMODE=gcc
35687 DEPS_TRACKING=1
f95e4495 35688 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
35689 powerpc-*-darwin* )
35690 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
35691 ;;
35692 * )
35693 DEPSFLAG_GCC="-MMD"
35694 ;;
35695 esac
49b0a3aa
VS
35696 echo "$as_me:$LINENO: result: gcc" >&5
35697echo "${ECHO_T}gcc" >&6
35698 else
35699 echo "$as_me:$LINENO: result: none" >&5
35700echo "${ECHO_T}none" >&6
35701 fi
35702
35703 if test $DEPS_TRACKING = 1 ; then
35704 cat <<EOF >bk-deps
35705#!/bin/sh
35706
45842500
VS
35707# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35708# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
35709#
35710# Permission is given to use this file in any way.
35711
35712DEPSMODE=$DEPSMODE
35713DEPSDIR=.deps
3e5c3c83 35714DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
35715
35716mkdir -p \$DEPSDIR
35717
35718if test \$DEPSMODE = gcc ; then
3e5c3c83 35719 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
35720 status=\${?}
35721 if test \${status} != 0 ; then
35722 exit \${status}
35723 fi
35724 # move created file to the location we want it in:
35725 while test \${#} -gt 0; do
35726 case "\${1}" in
35727 -o )
35728 shift
35729 objfile=\${1}
35730 ;;
35731 -* )
35732 ;;
35733 * )
35734 srcfile=\${1}
35735 ;;
35736 esac
35737 shift
35738 done
35739 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
35740 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
35741 if test -f \$depfile ; then
35742 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
35743 rm -f \$depfile
35744 else
35745 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
35746 if test -f \$depfile ; then
9d0be83a 35747 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
35748 rm -f \$depfile
35749 fi
35750 fi
49b0a3aa
VS
35751 exit 0
35752else
35753 \${*}
35754 exit \${?}
35755fi
35756EOF
35757 chmod +x bk-deps
fe0895cf 35758 fi
fe0895cf 35759
e6cc62c6
VS
35760
35761
35762
fe0895cf
VS
35763 RESCOMP=
35764 SETFILE=
35765
f95e4495 35766 case ${BAKEFILE_HOST} in
fe0895cf
VS
35767 *-*-cygwin* | *-*-mingw32* )
35768 if test "$build" != "$host" ; then
35769 RESCOMP=$host_alias-windres
35770 else
35771 # Extract the first word of "windres", so it can be a program name with args.
35772set dummy windres; ac_word=$2
e6cc62c6
VS
35773echo "$as_me:$LINENO: checking for $ac_word" >&5
35774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35775if test "${ac_cv_prog_RESCOMP+set}" = set; then
35776 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35777else
35778 if test -n "$RESCOMP"; then
35779 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
35780else
e6cc62c6
VS
35781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35782for as_dir in $PATH
35783do
35784 IFS=$as_save_IFS
35785 test -z "$as_dir" && as_dir=.
35786 for ac_exec_ext in '' $ac_executable_extensions; do
35787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35788 ac_cv_prog_RESCOMP="windres"
35789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35790 break 2
35791 fi
35792done
35793done
35794
fe0895cf
VS
35795 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
35796fi
35797fi
e6cc62c6 35798RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35799if test -n "$RESCOMP"; then
e6cc62c6
VS
35800 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35801echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35802else
e6cc62c6
VS
35803 echo "$as_me:$LINENO: result: no" >&5
35804echo "${ECHO_T}no" >&6
fe0895cf
VS
35805fi
35806
35807 fi
35808 ;;
e6cc62c6 35809
fe0895cf
VS
35810 *-*-darwin* )
35811 # Extract the first word of "Rez", so it can be a program name with args.
35812set dummy Rez; ac_word=$2
e6cc62c6
VS
35813echo "$as_me:$LINENO: checking for $ac_word" >&5
35814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35815if test "${ac_cv_prog_RESCOMP+set}" = set; then
35816 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35817else
35818 if test -n "$RESCOMP"; then
35819 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
35820else
e6cc62c6
VS
35821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35822for as_dir in $PATH
35823do
35824 IFS=$as_save_IFS
35825 test -z "$as_dir" && as_dir=.
35826 for ac_exec_ext in '' $ac_executable_extensions; do
35827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35828 ac_cv_prog_RESCOMP="Rez"
35829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35830 break 2
35831 fi
35832done
35833done
35834
fe0895cf
VS
35835 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
35836fi
35837fi
e6cc62c6 35838RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35839if test -n "$RESCOMP"; then
e6cc62c6
VS
35840 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35841echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35842else
e6cc62c6
VS
35843 echo "$as_me:$LINENO: result: no" >&5
35844echo "${ECHO_T}no" >&6
fe0895cf
VS
35845fi
35846
35847 # Extract the first word of "SetFile", so it can be a program name with args.
35848set dummy SetFile; ac_word=$2
e6cc62c6
VS
35849echo "$as_me:$LINENO: checking for $ac_word" >&5
35850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35851if test "${ac_cv_prog_SETFILE+set}" = set; then
35852 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35853else
35854 if test -n "$SETFILE"; then
35855 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
35856else
e6cc62c6
VS
35857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35858for as_dir in $PATH
35859do
35860 IFS=$as_save_IFS
35861 test -z "$as_dir" && as_dir=.
35862 for ac_exec_ext in '' $ac_executable_extensions; do
35863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35864 ac_cv_prog_SETFILE="SetFile"
35865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35866 break 2
35867 fi
35868done
35869done
35870
fe0895cf
VS
35871 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
35872fi
35873fi
e6cc62c6 35874SETFILE=$ac_cv_prog_SETFILE
fe0895cf 35875if test -n "$SETFILE"; then
e6cc62c6
VS
35876 echo "$as_me:$LINENO: result: $SETFILE" >&5
35877echo "${ECHO_T}$SETFILE" >&6
fe0895cf 35878else
e6cc62c6
VS
35879 echo "$as_me:$LINENO: result: no" >&5
35880echo "${ECHO_T}no" >&6
fe0895cf
VS
35881fi
35882
35883 ;;
35884 esac
35885
fe0895cf
VS
35886
35887
e6cc62c6
VS
35888
35889
35890
35891
45842500 35892
45842500
VS
35893 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
35894if test "${enable_precomp_headers+set}" = set; then
35895 enableval="$enable_precomp_headers"
35896 bk_use_pch="$enableval"
35897fi;
35898
35899 GCC_PCH=0
35900
35901 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
35902 if test "x$GCC" = "xyes"; then
35903 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
35904echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
35905 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 35906#line $LINENO "configure"
45842500
VS
35907/* confdefs.h. */
35908_ACEOF
35909cat confdefs.h >>conftest.$ac_ext
35910cat >>conftest.$ac_ext <<_ACEOF
35911/* end confdefs.h. */
35912
35913int
35914main ()
35915{
35916
8bcf2d20
VS
35917 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
35918 #error "no pch support"
35919 #endif
35920 #if (__GNUC__ < 3)
35921 #error "no pch support"
35922 #endif
35923 #if (__GNUC__ == 3) && \
35924 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
35925 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
35926 #error "no pch support"
45842500
VS
35927 #endif
35928
35929 ;
35930 return 0;
35931}
35932_ACEOF
35933rm -f conftest.$ac_objext
35934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 35935 (eval $ac_compile) 2>&5
45842500
VS
35936 ac_status=$?
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); } &&
789c5f4a 35939 { ac_try='test -s conftest.$ac_objext'
45842500
VS
35940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941 (eval $ac_try) 2>&5
35942 ac_status=$?
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); }; }; then
35945
35946 echo "$as_me:$LINENO: result: yes" >&5
35947echo "${ECHO_T}yes" >&6
35948 CPPFLAGS="-fpch-deps $CPPFLAGS"
35949 GCC_PCH=1
35950
35951else
35952 echo "$as_me: failed program was:" >&5
35953sed 's/^/| /' conftest.$ac_ext >&5
35954
35955
35956 echo "$as_me:$LINENO: result: no" >&5
35957echo "${ECHO_T}no" >&6
35958
35959fi
789c5f4a 35960rm -f conftest.$ac_objext conftest.$ac_ext
45842500
VS
35961 if test $GCC_PCH = 1 ; then
35962 cat <<EOF >bk-make-pch
35963#!/bin/sh
35964
35965# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35966# script. It is used to generated precompiled headers.
35967#
35968# Permission is given to use this file in any way.
35969
35970outfile="\${1}"
35971header="\${2}"
35972shift
35973shift
35974
35975compiler=
35976headerfile=
35977while test \${#} -gt 0; do
35978 case "\${1}" in
35979 -I* )
35980 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35981 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35982 headerfile="\${incdir}/\${header}"
35983 fi
35984 ;;
35985 esac
35986 compiler="\${compiler} \${1}"
35987 shift
35988done
35989
35990if test "x\${headerfile}" = "x" ; then
35991 echo "error: can't find header \${header} in include paths" >2
35992else
35993 if test -f \${outfile} ; then
35994 rm -f \${outfile}
35995 else
35996 mkdir -p \`dirname \${outfile}\`
35997 fi
35998 depsfile=".deps/\`basename \${outfile}\`.d"
35999 mkdir -p .deps
36000 # can do this because gcc is >= 3.4:
36001 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
36002 exit \${?}
36003fi
36004EOF
36005 chmod +x bk-make-pch
36006 fi
36007 fi
36008 fi
36009
36010
36011
36012
36013
d78c94f2 36014 COND_BUILD_DEBUG="#"
6f628073 36015 if test "x$BUILD" = "xdebug" ; then
d78c94f2 36016 COND_BUILD_DEBUG=""
6f628073
VS
36017 fi
36018
6c67131a
VS
36019 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
36020 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
36021 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
36022 fi
36023
36024 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
36025 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
36026 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
36027 fi
36028
f93ca9fd
VS
36029 COND_BUILD_DEBUG_UNICODE_0="#"
36030 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
36031 COND_BUILD_DEBUG_UNICODE_0=""
36032 fi
36033
36034 COND_BUILD_DEBUG_UNICODE_1="#"
36035 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
36036 COND_BUILD_DEBUG_UNICODE_1=""
36037 fi
36038
d78c94f2 36039 COND_BUILD_RELEASE="#"
6f628073 36040 if test "x$BUILD" = "xrelease" ; then
d78c94f2 36041 COND_BUILD_RELEASE=""
6b9d41a5
VS
36042 fi
36043
6c67131a
VS
36044 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
36045 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
36046 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
36047 fi
36048
f93ca9fd
VS
36049 COND_BUILD_RELEASE_UNICODE_0="#"
36050 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
36051 COND_BUILD_RELEASE_UNICODE_0=""
36052 fi
36053
36054 COND_BUILD_RELEASE_UNICODE_1="#"
36055 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
36056 COND_BUILD_RELEASE_UNICODE_1=""
36057 fi
36058
6c67131a
VS
36059 COND_DEBUG_FLAG_1="#"
36060 if test "x$DEBUG_FLAG" = "x1" ; then
36061 COND_DEBUG_FLAG_1=""
36062 fi
36063
36064 COND_DEBUG_INFO_0="#"
36065 if test "x$DEBUG_INFO" = "x0" ; then
36066 COND_DEBUG_INFO_0=""
36067 fi
36068
36069 COND_DEBUG_INFO_1="#"
36070 if test "x$DEBUG_INFO" = "x1" ; then
36071 COND_DEBUG_INFO_1=""
36072 fi
36073
f95cd8fa
VS
36074 COND_DEPS_TRACKING_0="#"
36075 if test "x$DEPS_TRACKING" = "x0" ; then
36076 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
36077 fi
36078
8ee2dd05
VS
36079 COND_DEPS_TRACKING_1="#"
36080 if test "x$DEPS_TRACKING" = "x1" ; then
36081 COND_DEPS_TRACKING_1=""
36082 fi
36083
45842500
VS
36084 COND_GCC_PCH_1="#"
36085 if test "x$GCC_PCH" = "x1" ; then
36086 COND_GCC_PCH_1=""
36087 fi
36088
6f628073
VS
36089 COND_MONOLITHIC_0="#"
36090 if test "x$MONOLITHIC" = "x0" ; then
36091 COND_MONOLITHIC_0=""
6b9d41a5
VS
36092 fi
36093
6f628073
VS
36094 COND_MONOLITHIC_0_SHARED_0="#"
36095 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
36096 COND_MONOLITHIC_0_SHARED_0=""
36097 fi
36098
36099 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
36100 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
36101 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 36102 fi
e6cc62c6 36103
8772a1a7
VS
36104 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
36105 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36106 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
36107 fi
36108
250700e4
RD
36109 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
36110 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
36111 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
36112 fi
36113
eb69fda5
VS
36114 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
36115 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
36116 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
36117 fi
36118
8ee2dd05
VS
36119 COND_MONOLITHIC_0_SHARED_1="#"
36120 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
36121 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 36122 fi
e6cc62c6 36123
6f628073
VS
36124 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
36125 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
36126 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
36127 fi
36128
8772a1a7
VS
36129 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
36130 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36131 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
36132 fi
36133
250700e4
RD
36134 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
36135 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
36136 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
36137 fi
36138
eb69fda5
VS
36139 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
36140 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
36141 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
36142 fi
36143
f95e4495
VS
36144 COND_MONOLITHIC_0_USE_ODBC_1="#"
36145 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
36146 COND_MONOLITHIC_0_USE_ODBC_1=""
36147 fi
36148
3af038c0
VS
36149 COND_MONOLITHIC_1="#"
36150 if test "x$MONOLITHIC" = "x1" ; then
36151 COND_MONOLITHIC_1=""
36152 fi
36153
6f628073
VS
36154 COND_MONOLITHIC_1_SHARED_0="#"
36155 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
36156 COND_MONOLITHIC_1_SHARED_0=""
36157 fi
36158
36159 COND_MONOLITHIC_1_SHARED_1="#"
36160 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
36161 COND_MONOLITHIC_1_SHARED_1=""
36162 fi
36163
3af038c0
VS
36164 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
36165 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
36166 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
36167 fi
36168
36169 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
36170 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
36171 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
36172 fi
36173
6f628073
VS
36174 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
36175 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
36176 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
36177 fi
36178
3af038c0
VS
36179 COND_PLATFORM_MACOSX_1="#"
36180 if test "x$PLATFORM_MACOSX" = "x1" ; then
36181 COND_PLATFORM_MACOSX_1=""
36182 fi
36183
250700e4
RD
36184 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
36185 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
36186 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
36187 fi
36188
36189 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
36190 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
36191 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
36192 fi
36193
36194 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
36195 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
36196 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
36197 fi
36198
3527f29c
VS
36199 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
36200 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
36201 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
36202 fi
36203
8ee2dd05
VS
36204 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
36205 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
36206 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
36207 fi
36208
45842500
VS
36209 COND_PLATFORM_MAC_1="#"
36210 if test "x$PLATFORM_MAC" = "x1" ; then
36211 COND_PLATFORM_MAC_1=""
36212 fi
36213
3d8c1de0
VS
36214 COND_PLATFORM_OS2_1="#"
36215 if test "x$PLATFORM_OS2" = "x1" ; then
36216 COND_PLATFORM_OS2_1=""
36217 fi
36218
8772a1a7
VS
36219 COND_PLATFORM_UNIX_0="#"
36220 if test "x$PLATFORM_UNIX" = "x0" ; then
36221 COND_PLATFORM_UNIX_0=""
36222 fi
36223
3af038c0
VS
36224 COND_PLATFORM_UNIX_1="#"
36225 if test "x$PLATFORM_UNIX" = "x1" ; then
36226 COND_PLATFORM_UNIX_1=""
36227 fi
36228
3527f29c
VS
36229 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
36230 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
36231 COND_PLATFORM_UNIX_1_USE_GUI_1=""
36232 fi
36233
f93ca9fd
VS
36234 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
36235 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
36236 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
36237 fi
36238
3af038c0
VS
36239 COND_PLATFORM_WIN32_0="#"
36240 if test "x$PLATFORM_WIN32" = "x0" ; then
36241 COND_PLATFORM_WIN32_0=""
36242 fi
36243
36244 COND_PLATFORM_WIN32_1="#"
36245 if test "x$PLATFORM_WIN32" = "x1" ; then
36246 COND_PLATFORM_WIN32_1=""
36247 fi
36248
45842500
VS
36249 COND_SHARED_0="#"
36250 if test "x$SHARED" = "x0" ; then
36251 COND_SHARED_0=""
36252 fi
36253
250700e4
RD
36254 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
36255 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36256 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
36257 fi
36258
52a5a009
VS
36259 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36260 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36261 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36262 fi
36263
36264 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36265 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36266 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36267 fi
36268
36269 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36270 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36271 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36272 fi
36273
36274 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
36275 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
36276 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
36277 fi
36278
36279 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
36280 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
36281 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
36282 fi
36283
36284 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
36285 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
36286 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
36287 fi
36288
36289 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
36290 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
36291 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
36292 fi
36293
45842500
VS
36294 COND_SHARED_1="#"
36295 if test "x$SHARED" = "x1" ; then
36296 COND_SHARED_1=""
36297 fi
36298
250700e4
RD
36299 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
36300 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36301 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
36302 fi
36303
6f628073
VS
36304 COND_TOOLKIT_COCOA="#"
36305 if test "x$TOOLKIT" = "xCOCOA" ; then
36306 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
36307 fi
36308
6f628073
VS
36309 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
36310 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36311 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36312 fi
36313
6f628073
VS
36314 COND_TOOLKIT_GTK="#"
36315 if test "x$TOOLKIT" = "xGTK" ; then
36316 COND_TOOLKIT_GTK=""
f95cd8fa
VS
36317 fi
36318
6f628073
VS
36319 COND_TOOLKIT_GTK_USE_GUI_1="#"
36320 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
36321 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
36322 fi
36323
6f628073
VS
36324 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
36325 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36326 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36327 fi
36328
3af038c0
VS
36329 COND_TOOLKIT_MAC="#"
36330 if test "x$TOOLKIT" = "xMAC" ; then
36331 COND_TOOLKIT_MAC=""
36332 fi
36333
8772a1a7
VS
36334 COND_TOOLKIT_MAC_USE_GUI_1="#"
36335 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
36336 COND_TOOLKIT_MAC_USE_GUI_1=""
36337 fi
36338
6f628073
VS
36339 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
36340 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36341 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36342 fi
36343
6f628073
VS
36344 COND_TOOLKIT_MGL="#"
36345 if test "x$TOOLKIT" = "xMGL" ; then
36346 COND_TOOLKIT_MGL=""
8ee2dd05
VS
36347 fi
36348
6f628073
VS
36349 COND_TOOLKIT_MGL_USE_GUI_1="#"
36350 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
36351 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
36352 fi
36353
6f628073
VS
36354 COND_TOOLKIT_MOTIF="#"
36355 if test "x$TOOLKIT" = "xMOTIF" ; then
36356 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
36357 fi
36358
6f628073
VS
36359 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
36360 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
36361 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 36362 fi
e6cc62c6 36363
6f628073
VS
36364 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
36365 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36366 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36367 fi
36368
6f628073
VS
36369 COND_TOOLKIT_MSW="#"
36370 if test "x$TOOLKIT" = "xMSW" ; then
36371 COND_TOOLKIT_MSW=""
8ee2dd05
VS
36372 fi
36373
6f628073
VS
36374 COND_TOOLKIT_MSW_USE_GUI_1="#"
36375 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
36376 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 36377 fi
e6cc62c6 36378
6f628073
VS
36379 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
36380 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36381 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 36382 fi
e6cc62c6 36383
96c1699d
VS
36384 COND_TOOLKIT_PM="#"
36385 if test "x$TOOLKIT" = "xPM" ; then
36386 COND_TOOLKIT_PM=""
36387 fi
36388
36389 COND_TOOLKIT_PM_USE_GUI_1="#"
36390 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
36391 COND_TOOLKIT_PM_USE_GUI_1=""
36392 fi
36393
36394 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
36395 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36396 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
36397 fi
36398
6f628073
VS
36399 COND_TOOLKIT_X11="#"
36400 if test "x$TOOLKIT" = "xX11" ; then
36401 COND_TOOLKIT_X11=""
9747f85d
VS
36402 fi
36403
6f628073
VS
36404 COND_TOOLKIT_X11_USE_GUI_1="#"
36405 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
36406 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
36407 fi
36408
3af038c0
VS
36409 COND_UNICODE_1="#"
36410 if test "x$UNICODE" = "x1" ; then
36411 COND_UNICODE_1=""
36412 fi
36413
7015ef3a
VZ
36414 COND_USE_EXCEPTIONS_0="#"
36415 if test "x$USE_EXCEPTIONS" = "x0" ; then
36416 COND_USE_EXCEPTIONS_0=""
36417 fi
36418
36419 COND_USE_EXCEPTIONS_1="#"
36420 if test "x$USE_EXCEPTIONS" = "x1" ; then
36421 COND_USE_EXCEPTIONS_1=""
36422 fi
36423
3af038c0
VS
36424 COND_USE_GUI_0="#"
36425 if test "x$USE_GUI" = "x0" ; then
36426 COND_USE_GUI_0=""
36427 fi
36428
36429 COND_USE_GUI_1="#"
36430 if test "x$USE_GUI" = "x1" ; then
36431 COND_USE_GUI_1=""
36432 fi
36433
e6cc62c6 36434 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
36435 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36436 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 36437 fi
e6cc62c6
VS
36438
36439 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
36440 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
36441 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
36442 fi
36443
66a96744
VS
36444 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36445 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36446 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36447 fi
36448
36449 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36450 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36451 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36452 fi
36453
36454 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36455 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36456 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36457 fi
36458
57e7d4ac
VS
36459 COND_USE_ODBC_1="#"
36460 if test "x$USE_ODBC" = "x1" ; then
36461 COND_USE_ODBC_1=""
36462 fi
36463
f93ca9fd
VS
36464 COND_USE_PLUGINS_0="#"
36465 if test "x$USE_PLUGINS" = "x0" ; then
36466 COND_USE_PLUGINS_0=""
36467 fi
36468
6f628073
VS
36469 COND_USE_SOSYMLINKS_1="#"
36470 if test "x$USE_SOSYMLINKS" = "x1" ; then
36471 COND_USE_SOSYMLINKS_1=""
b625909c
VS
36472 fi
36473
6f628073
VS
36474 COND_USE_SOVERLINUX_1="#"
36475 if test "x$USE_SOVERLINUX" = "x1" ; then
36476 COND_USE_SOVERLINUX_1=""
b625909c
VS
36477 fi
36478
6f628073
VS
36479 COND_USE_SOVERSION_0="#"
36480 if test "x$USE_SOVERSION" = "x0" ; then
36481 COND_USE_SOVERSION_0=""
fddeb06b 36482 fi
fe0895cf 36483
6f628073
VS
36484 COND_USE_SOVERSOLARIS_1="#"
36485 if test "x$USE_SOVERSOLARIS" = "x1" ; then
36486 COND_USE_SOVERSOLARIS_1=""
fddeb06b 36487 fi
fe0895cf 36488
f93ca9fd
VS
36489 COND_WITH_PLUGIN_SDL_1="#"
36490 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
36491 COND_WITH_PLUGIN_SDL_1=""
36492 fi
36493
36494 COND_WITH_SDL_1="#"
36495 if test "x$WITH_SDL" = "x1" ; then
36496 COND_WITH_SDL_1=""
36497 fi
36498
3af038c0
VS
36499 COND_WXUNIV_1="#"
36500 if test "x$WXUNIV" = "x1" ; then
36501 COND_WXUNIV_1=""
36502 fi
36503
66a96744
VS
36504 COND_WXUSE_EXPAT_BUILTIN="#"
36505 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
36506 COND_WXUSE_EXPAT_BUILTIN=""
36507 fi
36508
02980527
VS
36509 COND_WXUSE_LIBJPEG_BUILTIN="#"
36510 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36511 COND_WXUSE_LIBJPEG_BUILTIN=""
36512 fi
36513
36514 COND_WXUSE_LIBPNG_BUILTIN="#"
36515 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36516 COND_WXUSE_LIBPNG_BUILTIN=""
36517 fi
36518
36519 COND_WXUSE_LIBTIFF_BUILTIN="#"
36520 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36521 COND_WXUSE_LIBTIFF_BUILTIN=""
36522 fi
36523
36524 COND_WXUSE_ODBC_BUILTIN="#"
36525 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
36526 COND_WXUSE_ODBC_BUILTIN=""
36527 fi
36528
36529 COND_WXUSE_REGEX_BUILTIN="#"
36530 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
36531 COND_WXUSE_REGEX_BUILTIN=""
36532 fi
36533
36534 COND_WXUSE_ZLIB_BUILTIN="#"
36535 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
36536 COND_WXUSE_ZLIB_BUILTIN=""
36537 fi
36538
1772d20c 36539
fe0895cf 36540
fe0895cf 36541
fe0895cf 36542
45842500 36543if test $GCC_PCH = 1 ; then
130711ba 36544 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
36545 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
36546else
36547 case "${host}" in
36548 powerpc-*-darwin* )
130711ba
VS
36549 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
36550 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 36551 ;;
45842500
VS
36552 esac
36553fi
fe0895cf
VS
36554
36555
fddeb06b 36556SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566
36567
36568
36569
36570
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645
36646
36647
36648
36649
36650
fe0895cf 36651
f0290fca
VS
36652
36653
e6cc62c6
VS
36654
36655
36656echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36657echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
789c5f4a 36658set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
36659if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36660 echo $ECHO_N "(cached) $ECHO_C" >&6
36661else
36662 cat >conftest.make <<\_ACEOF
36663all:
36664 @echo 'ac_maketemp="$(MAKE)"'
36665_ACEOF
36666# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
36667eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
36668if test -n "$ac_maketemp"; then
36669 eval ac_cv_prog_make_${ac_make}_set=yes
36670else
36671 eval ac_cv_prog_make_${ac_make}_set=no
36672fi
36673rm -f conftest.make
36674fi
36675if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
36676 echo "$as_me:$LINENO: result: yes" >&5
36677echo "${ECHO_T}yes" >&6
36678 SET_MAKE=
36679else
36680 echo "$as_me:$LINENO: result: no" >&5
36681echo "${ECHO_T}no" >&6
36682 SET_MAKE="MAKE=${MAKE-make}"
36683fi
36684
36685
36686if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
36687 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
36688fi
36689
36690 ac_config_headers="$ac_config_headers setup.h"
36691
36692
81345eef 36693 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
36694
36695
36696 ac_config_commands="$ac_config_commands default"
36697
36698
9de9b8f0 36699
6c3e36af
VZ
36700if test "$wxUSE_GUI" = "yes"; then
36701 SUBDIRS="samples demos utils contrib"
36702else SUBDIRS="samples utils"
36703fi
e6cc62c6 36704
166263e6 36705for subdir in `echo $SUBDIRS`; do
9747f85d 36706 if test -d ${srcdir}/${subdir} ; then
6c3e36af 36707 if test "$wxUSE_GUI" = "yes"; then
166263e6 36708 if test ${subdir} = "samples"; then
8772a1a7
VS
36709 makefiles="samples/Makefile.in $makefiles"
36710 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
36711 if test -d $srcdir/samples/$sample; then
36712 makefiles="samples/$sample/Makefile.in $makefiles"
36713 fi
36714 done
36715 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
36716 fi
6c3e36af 36717 else if test ${subdir} = "samples"; then
8772a1a7 36718 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 36719 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
36720 utils/HelpGen/src/Makefile.in \
36721 utils/tex2rtf/Makefile.in \
36722 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
36723 fi
36724 fi
36725
9747f85d
VS
36726 for mkin in $makefiles ; do
36727 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
36728 ac_config_files="$ac_config_files $mk"
e6cc62c6 36729
9747f85d
VS
36730 done
36731 fi
36732done
e6cc62c6 36733
9de9b8f0 36734
e6cc62c6
VS
36735cat >confcache <<\_ACEOF
36736# This file is a shell script that caches the results of configure
36737# tests run on this system so they can be shared between configure
36738# scripts and configure runs, see configure's option --config-cache.
36739# It is not useful on other systems. If it contains results you don't
36740# want to keep, you may remove or edit it.
36741#
36742# config.status only pays attention to the cache file if you give it
36743# the --recheck option to rerun configure.
36744#
36745# `ac_cv_env_foo' variables (set or unset) will be overridden when
36746# loading this file, other *unset* `ac_cv_foo' will be assigned the
36747# following values.
36748
36749_ACEOF
36750
36751# The following way of writing the cache mishandles newlines in values,
36752# but we know of no workaround that is simple, portable, and efficient.
36753# So, don't put newlines in cache variables' values.
36754# Ultrix sh set writes to stderr and can't be redirected directly,
36755# and sets the high bit in the cache file unless we assign to the vars.
36756{
36757 (set) 2>&1 |
36758 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36759 *ac_space=\ *)
36760 # `set' does not quote correctly, so add quotes (double-quote
36761 # substitution turns \\\\ into \\, and sed turns \\ into \).
36762 sed -n \
789c5f4a
VZ
36763 "s/'/'\\\\''/g;
36764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
36765 ;;
36766 *)
36767 # `set' quotes correctly as required by POSIX, so do not add quotes.
36768 sed -n \
789c5f4a 36769 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
36770 ;;
36771 esac;
36772} |
36773 sed '
36774 t clear
36775 : clear
36776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36777 t end
36778 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36779 : end' >>confcache
36780if diff $cache_file confcache >/dev/null 2>&1; then :; else
36781 if test -w $cache_file; then
36782 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36783 cat confcache >$cache_file
36784 else
36785 echo "not updating unwritable cache $cache_file"
36786 fi
36787fi
36788rm -f confcache
36789
36790test "x$prefix" = xNONE && prefix=$ac_default_prefix
36791# Let make expand exec_prefix.
36792test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36793
36794# VPATH may cause trouble with some makes, so we remove $(srcdir),
36795# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36796# trailing colons and then remove the whole line if VPATH becomes empty
36797# (actually we leave an empty line to preserve line numbers).
36798if test "x$srcdir" = x.; then
789c5f4a 36799 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
36800s/:*\$(srcdir):*/:/;
36801s/:*\${srcdir}:*/:/;
36802s/:*@srcdir@:*/:/;
789c5f4a 36803s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 36804s/:*$//;
789c5f4a 36805s/^[^=]*=[ ]*$//;
e6cc62c6
VS
36806}'
36807fi
36808
36809DEFS=-DHAVE_CONFIG_H
36810
36811ac_libobjs=
36812ac_ltlibobjs=
36813for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36814 # 1. Remove the extension, and $U if already installed.
36815 ac_i=`echo "$ac_i" |
789c5f4a 36816 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
36817 # 2. Add them.
36818 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
36819 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
36820done
36821LIBOBJS=$ac_libobjs
36822
36823LTLIBOBJS=$ac_ltlibobjs
36824
36825
36826
36827: ${CONFIG_STATUS=./config.status}
36828ac_clean_files_save=$ac_clean_files
36829ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36830{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36831echo "$as_me: creating $CONFIG_STATUS" >&6;}
36832cat >$CONFIG_STATUS <<_ACEOF
36833#! $SHELL
36834# Generated by $as_me.
36835# Run this file to recreate the current configuration.
36836# Compiler output produced by configure, useful for debugging
36837# configure, is in config.log if it exists.
36838
36839debug=false
36840ac_cs_recheck=false
36841ac_cs_silent=false
36842SHELL=\${CONFIG_SHELL-$SHELL}
36843_ACEOF
36844
36845cat >>$CONFIG_STATUS <<\_ACEOF
36846## --------------------- ##
36847## M4sh Initialization. ##
36848## --------------------- ##
36849
36850# Be Bourne compatible
36851if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36852 emulate sh
36853 NULLCMD=:
36854 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36855 # is contrary to our usage. Disable this feature.
36856 alias -g '${1+"$@"}'='"$@"'
36857elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36858 set -o posix
36859fi
36860
36861# Support unset when possible.
789c5f4a 36862if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
e6cc62c6
VS
36863 as_unset=unset
36864else
36865 as_unset=false
36866fi
36867
36868
36869# Work around bugs in pre-3.0 UWIN ksh.
36870$as_unset ENV MAIL MAILPATH
36871PS1='$ '
36872PS2='> '
36873PS4='+ '
36874
36875# NLS nuisances.
36876for as_var in \
36877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36879 LC_TELEPHONE LC_TIME
36880do
789c5f4a 36881 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
36882 eval $as_var=C; export $as_var
36883 else
36884 $as_unset $as_var
36885 fi
36886done
36887
36888# Required to use basename.
36889if expr a : '\(a\)' >/dev/null 2>&1; then
36890 as_expr=expr
36891else
36892 as_expr=false
36893fi
36894
36895if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
36896 as_basename=basename
36897else
36898 as_basename=false
36899fi
36900
36901
36902# Name of the executable.
36903as_me=`$as_basename "$0" ||
36904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36905 X"$0" : 'X\(//\)$' \| \
36906 X"$0" : 'X\(/\)$' \| \
36907 . : '\(.\)' 2>/dev/null ||
36908echo X/"$0" |
36909 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36910 /^X\/\(\/\/\)$/{ s//\1/; q; }
36911 /^X\/\(\/\).*/{ s//\1/; q; }
36912 s/.*/./; q'`
36913
36914
36915# PATH needs CR, and LINENO needs CR and PATH.
36916# Avoid depending upon Character Ranges.
36917as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36919as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36920as_cr_digits='0123456789'
36921as_cr_alnum=$as_cr_Letters$as_cr_digits
36922
36923# The user is always right.
36924if test "${PATH_SEPARATOR+set}" != set; then
36925 echo "#! /bin/sh" >conf$$.sh
36926 echo "exit 0" >>conf$$.sh
36927 chmod +x conf$$.sh
36928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36929 PATH_SEPARATOR=';'
36930 else
36931 PATH_SEPARATOR=:
36932 fi
36933 rm -f conf$$.sh
36934fi
36935
36936
36937 as_lineno_1=$LINENO
36938 as_lineno_2=$LINENO
36939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36940 test "x$as_lineno_1" != "x$as_lineno_2" &&
36941 test "x$as_lineno_3" = "x$as_lineno_2" || {
36942 # Find who we are. Look in the path if we contain no path at all
36943 # relative or not.
36944 case $0 in
36945 *[\\/]* ) as_myself=$0 ;;
36946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36947for as_dir in $PATH
36948do
36949 IFS=$as_save_IFS
36950 test -z "$as_dir" && as_dir=.
36951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36952done
36953
36954 ;;
36955 esac
36956 # We did not find ourselves, most probably we were run as `sh COMMAND'
36957 # in which case we are not to be found in the path.
36958 if test "x$as_myself" = x; then
36959 as_myself=$0
36960 fi
36961 if test ! -f "$as_myself"; then
36962 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36963echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36964 { (exit 1); exit 1; }; }
36965 fi
36966 case $CONFIG_SHELL in
36967 '')
36968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36969for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36970do
36971 IFS=$as_save_IFS
36972 test -z "$as_dir" && as_dir=.
36973 for as_base in sh bash ksh sh5; do
36974 case $as_dir in
36975 /*)
36976 if ("$as_dir/$as_base" -c '
36977 as_lineno_1=$LINENO
36978 as_lineno_2=$LINENO
36979 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36980 test "x$as_lineno_1" != "x$as_lineno_2" &&
36981 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36982 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36983 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36984 CONFIG_SHELL=$as_dir/$as_base
36985 export CONFIG_SHELL
36986 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36987 fi;;
36988 esac
36989 done
36990done
36991;;
36992 esac
36993
36994 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36995 # uniformly replaced by the line number. The first 'sed' inserts a
36996 # line-number line before each line; the second 'sed' does the real
36997 # work. The second script uses 'N' to pair each line-number line
36998 # with the numbered line, and appends trailing '-' during
36999 # substitution so that $LINENO is not a special case at line end.
37000 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37001 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37002 sed '=' <$as_myself |
37003 sed '
37004 N
37005 s,$,-,
37006 : loop
37007 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37008 t loop
37009 s,-$,,
37010 s,^['$as_cr_digits']*\n,,
37011 ' >$as_me.lineno &&
37012 chmod +x $as_me.lineno ||
37013 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37014echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37015 { (exit 1); exit 1; }; }
37016
37017 # Don't try to exec as it changes $[0], causing all sort of problems
37018 # (the dirname of $[0] is not the place where we might find the
37019 # original and so on. Autoconf is especially sensible to this).
37020 . ./$as_me.lineno
37021 # Exit status is that of the last command.
37022 exit
37023}
37024
37025
37026case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37027 *c*,-n*) ECHO_N= ECHO_C='
37028' ECHO_T=' ' ;;
37029 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37030 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37031esac
37032
37033if expr a : '\(a\)' >/dev/null 2>&1; then
37034 as_expr=expr
37035else
37036 as_expr=false
37037fi
37038
37039rm -f conf$$ conf$$.exe conf$$.file
37040echo >conf$$.file
37041if ln -s conf$$.file conf$$ 2>/dev/null; then
37042 # We could just check for DJGPP; but this test a) works b) is more generic
37043 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37044 if test -f conf$$.exe; then
37045 # Don't use ln at all; we don't have any links
37046 as_ln_s='cp -p'
37047 else
37048 as_ln_s='ln -s'
37049 fi
37050elif ln conf$$.file conf$$ 2>/dev/null; then
37051 as_ln_s=ln
37052else
37053 as_ln_s='cp -p'
37054fi
37055rm -f conf$$ conf$$.exe conf$$.file
37056
37057if mkdir -p . 2>/dev/null; then
37058 as_mkdir_p=:
37059else
37060 as_mkdir_p=false
37061fi
37062
37063as_executable_p="test -f"
37064
37065# Sed expression to map a string onto a valid CPP name.
789c5f4a 37066as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
37067
37068# Sed expression to map a string onto a valid variable name.
789c5f4a 37069as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
37070
37071
37072# IFS
37073# We need space, tab and new line, in precisely that order.
37074as_nl='
37075'
37076IFS=" $as_nl"
37077
37078# CDPATH.
37079$as_unset CDPATH
37080
37081exec 6>&1
37082
37083# Open the log real soon, to keep \$[0] and so on meaningful, and to
37084# report actual input values of CONFIG_FILES etc. instead of their
37085# values after options handling. Logging --version etc. is OK.
37086exec 5>>config.log
37087{
37088 echo
37089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37090## Running $as_me. ##
37091_ASBOX
37092} >&5
37093cat >&5 <<_CSEOF
37094
e46d2a18 37095This file was extended by wxWindows $as_me 2.5.1, which was
789c5f4a 37096generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
37097
37098 CONFIG_FILES = $CONFIG_FILES
37099 CONFIG_HEADERS = $CONFIG_HEADERS
37100 CONFIG_LINKS = $CONFIG_LINKS
37101 CONFIG_COMMANDS = $CONFIG_COMMANDS
37102 $ $0 $@
37103
37104_CSEOF
37105echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37106echo >&5
37107_ACEOF
37108
37109# Files that config.status was made for.
37110if test -n "$ac_config_files"; then
37111 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37112fi
37113
37114if test -n "$ac_config_headers"; then
37115 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37116fi
37117
37118if test -n "$ac_config_links"; then
37119 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37120fi
37121
37122if test -n "$ac_config_commands"; then
37123 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37124fi
37125
37126cat >>$CONFIG_STATUS <<\_ACEOF
37127
37128ac_cs_usage="\
37129\`$as_me' instantiates files from templates according to the
37130current configuration.
37131
37132Usage: $0 [OPTIONS] [FILE]...
37133
37134 -h, --help print this help, then exit
37135 -V, --version print version number, then exit
37136 -q, --quiet do not print progress messages
37137 -d, --debug don't remove temporary files
37138 --recheck update $as_me by reconfiguring in the same conditions
37139 --file=FILE[:TEMPLATE]
789c5f4a 37140 instantiate the configuration file FILE
e6cc62c6 37141 --header=FILE[:TEMPLATE]
789c5f4a 37142 instantiate the configuration header FILE
e6cc62c6
VS
37143
37144Configuration files:
37145$config_files
37146
37147Configuration headers:
37148$config_headers
37149
37150Configuration commands:
37151$config_commands
37152
37153Report bugs to <bug-autoconf@gnu.org>."
37154_ACEOF
37155
37156cat >>$CONFIG_STATUS <<_ACEOF
37157ac_cs_version="\\
e46d2a18 37158wxWindows config.status 2.5.1
789c5f4a 37159configured by $0, generated by GNU Autoconf 2.57,
e6cc62c6
VS
37160 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37161
789c5f4a
VZ
37162Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
37163Free Software Foundation, Inc.
e6cc62c6
VS
37164This config.status script is free software; the Free Software Foundation
37165gives unlimited permission to copy, distribute and modify it."
37166srcdir=$srcdir
37167INSTALL="$INSTALL"
37168_ACEOF
37169
37170cat >>$CONFIG_STATUS <<\_ACEOF
37171# If no file are specified by the user, then we need to provide default
37172# value. By we need to know if files were specified by the user.
37173ac_need_defaults=:
37174while test $# != 0
37175do
37176 case $1 in
37177 --*=*)
37178 ac_option=`expr "x$1" : 'x\([^=]*\)='`
37179 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37180 ac_shift=:
37181 ;;
37182 -*)
37183 ac_option=$1
37184 ac_optarg=$2
37185 ac_shift=shift
37186 ;;
37187 *) # This is not an option, so the user has probably given explicit
37188 # arguments.
37189 ac_option=$1
37190 ac_need_defaults=false;;
37191 esac
37192
37193 case $ac_option in
37194 # Handling of the options.
37195_ACEOF
37196cat >>$CONFIG_STATUS <<\_ACEOF
37197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37198 ac_cs_recheck=: ;;
37199 --version | --vers* | -V )
37200 echo "$ac_cs_version"; exit 0 ;;
37201 --he | --h)
37202 # Conflict between --help and --header
37203 { { echo "$as_me:$LINENO: error: ambiguous option: $1
37204Try \`$0 --help' for more information." >&5
37205echo "$as_me: error: ambiguous option: $1
37206Try \`$0 --help' for more information." >&2;}
37207 { (exit 1); exit 1; }; };;
37208 --help | --hel | -h )
37209 echo "$ac_cs_usage"; exit 0 ;;
37210 --debug | --d* | -d )
37211 debug=: ;;
37212 --file | --fil | --fi | --f )
37213 $ac_shift
37214 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37215 ac_need_defaults=false;;
37216 --header | --heade | --head | --hea )
37217 $ac_shift
37218 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37219 ac_need_defaults=false;;
37220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37222 ac_cs_silent=: ;;
37223
37224 # This is an error.
37225 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37226Try \`$0 --help' for more information." >&5
37227echo "$as_me: error: unrecognized option: $1
37228Try \`$0 --help' for more information." >&2;}
37229 { (exit 1); exit 1; }; } ;;
37230
37231 *) ac_config_targets="$ac_config_targets $1" ;;
37232
37233 esac
37234 shift
37235done
37236
37237ac_configure_extra_args=
37238
37239if $ac_cs_silent; then
37240 exec 6>/dev/null
37241 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
37242fi
37243
e6cc62c6
VS
37244_ACEOF
37245cat >>$CONFIG_STATUS <<_ACEOF
37246if \$ac_cs_recheck; then
37247 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37248 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
37249fi
37250
e6cc62c6 37251_ACEOF
fe0895cf 37252
e6cc62c6 37253cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 37254#
e6cc62c6 37255# INIT-COMMANDS section.
10f2d63a 37256#
10f2d63a 37257
a0b9e27f 37258
e6cc62c6
VS
37259 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
37260 LN_S="${LN_S}"
10f2d63a 37261
10f2d63a 37262
10f2d63a 37263
e6cc62c6 37264_ACEOF
8284b0c5 37265
52127426 37266
247f5006 37267
e6cc62c6
VS
37268cat >>$CONFIG_STATUS <<\_ACEOF
37269for ac_config_target in $ac_config_targets
247f5006 37270do
e6cc62c6
VS
37271 case "$ac_config_target" in
37272 # Handling of arguments.
81345eef
VZ
37273 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
37274 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
37275 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 37276 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
37277 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37278 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
37279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37280echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37281 { (exit 1); exit 1; }; };;
247f5006
VZ
37282 esac
37283done
37284
e6cc62c6
VS
37285# If the user did not use the arguments to specify the items to instantiate,
37286# then the envvar interface is used. Set only those that are not.
37287# We use the long form for the default assignment because of an extremely
37288# bizarre bug on SunOS 4.1.3.
37289if $ac_need_defaults; then
37290 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37291 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37292 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37293fi
37294
37295# Have a temporary directory for convenience. Make it in the build tree
37296# simply because there is no reason to put it here, and in addition,
37297# creating and moving files from /tmp can sometimes cause problems.
37298# Create a temporary directory, and hook for its removal unless debugging.
37299$debug ||
37300{
37301 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37302 trap '{ (exit 1); exit 1; }' 1 2 13 15
37303}
247f5006 37304
e6cc62c6 37305# Create a (secure) tmp directory for tmp files.
247f5006 37306
e6cc62c6
VS
37307{
37308 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37309 test -n "$tmp" && test -d "$tmp"
37310} ||
37311{
37312 tmp=./confstat$$-$RANDOM
37313 (umask 077 && mkdir $tmp)
37314} ||
37315{
37316 echo "$me: cannot create a temporary directory in ." >&2
37317 { (exit 1); exit 1; }
37318}
37319
37320_ACEOF
37321
37322cat >>$CONFIG_STATUS <<_ACEOF
37323
37324#
37325# CONFIG_FILES section.
37326#
247f5006 37327
e6cc62c6
VS
37328# No need to generate the scripts if there are no CONFIG_FILES.
37329# This happens for instance when ./config.status config.h
37330if test -n "\$CONFIG_FILES"; then
37331 # Protect against being on the right side of a sed subst in config.status.
37332 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37333 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37334s,@SHELL@,$SHELL,;t t
37335s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37336s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37337s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37338s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37339s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37340s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37341s,@exec_prefix@,$exec_prefix,;t t
37342s,@prefix@,$prefix,;t t
37343s,@program_transform_name@,$program_transform_name,;t t
37344s,@bindir@,$bindir,;t t
37345s,@sbindir@,$sbindir,;t t
37346s,@libexecdir@,$libexecdir,;t t
37347s,@datadir@,$datadir,;t t
37348s,@sysconfdir@,$sysconfdir,;t t
37349s,@sharedstatedir@,$sharedstatedir,;t t
37350s,@localstatedir@,$localstatedir,;t t
37351s,@libdir@,$libdir,;t t
37352s,@includedir@,$includedir,;t t
37353s,@oldincludedir@,$oldincludedir,;t t
37354s,@infodir@,$infodir,;t t
37355s,@mandir@,$mandir,;t t
37356s,@build_alias@,$build_alias,;t t
37357s,@host_alias@,$host_alias,;t t
37358s,@target_alias@,$target_alias,;t t
37359s,@DEFS@,$DEFS,;t t
37360s,@ECHO_C@,$ECHO_C,;t t
37361s,@ECHO_N@,$ECHO_N,;t t
37362s,@ECHO_T@,$ECHO_T,;t t
37363s,@LIBS@,$LIBS,;t t
37364s,@build@,$build,;t t
37365s,@build_cpu@,$build_cpu,;t t
37366s,@build_vendor@,$build_vendor,;t t
37367s,@build_os@,$build_os,;t t
37368s,@host@,$host,;t t
37369s,@host_cpu@,$host_cpu,;t t
37370s,@host_vendor@,$host_vendor,;t t
37371s,@host_os@,$host_os,;t t
37372s,@target@,$target,;t t
37373s,@target_cpu@,$target_cpu,;t t
37374s,@target_vendor@,$target_vendor,;t t
37375s,@target_os@,$target_os,;t t
37376s,@CC@,$CC,;t t
37377s,@CFLAGS@,$CFLAGS,;t t
37378s,@LDFLAGS@,$LDFLAGS,;t t
37379s,@CPPFLAGS@,$CPPFLAGS,;t t
37380s,@ac_ct_CC@,$ac_ct_CC,;t t
37381s,@EXEEXT@,$EXEEXT,;t t
37382s,@OBJEXT@,$OBJEXT,;t t
37383s,@CPP@,$CPP,;t t
37384s,@EGREP@,$EGREP,;t t
37385s,@CXX@,$CXX,;t t
37386s,@CXXFLAGS@,$CXXFLAGS,;t t
37387s,@ac_ct_CXX@,$ac_ct_CXX,;t t
37388s,@RANLIB@,$RANLIB,;t t
37389s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37390s,@AR@,$AR,;t t
37391s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37392s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37393s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37394s,@STRIP@,$STRIP,;t t
37395s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
37396s,@LN_S@,$LN_S,;t t
37397s,@CXXCPP@,$CXXCPP,;t t
672abd7a 37398s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
37399s,@PKG_CONFIG@,$PKG_CONFIG,;t t
37400s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
37401s,@GTK_LIBS@,$GTK_LIBS,;t t
37402s,@GTK_CONFIG@,$GTK_CONFIG,;t t
37403s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
37404s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
37405s,@X_CFLAGS@,$X_CFLAGS,;t t
37406s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
37407s,@X_LIBS@,$X_LIBS,;t t
37408s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
37409s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
37410s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
37411s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
37412s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
37413s,@RESCOMP@,$RESCOMP,;t t
37414s,@DEREZ@,$DEREZ,;t t
37415s,@SETFILE@,$SETFILE,;t t
37416s,@LIBICONV@,$LIBICONV,;t t
edd891e2 37417s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
37418s,@SDL_CONFIG@,$SDL_CONFIG,;t t
37419s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
37420s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
37421s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
37422s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
37423s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
37424s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 37425s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
37426s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
37427s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
37428s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
37429s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
37430s,@VENDOR@,$VENDOR,;t t
37431s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
37432s,@WXUNIV@,$WXUNIV,;t t
37433s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 37434s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 37435s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 37436s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 37437s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 37438s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 37439s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 37440s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
37441s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
37442s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
37443s,@UNICODE@,$UNICODE,;t t
37444s,@BUILD@,$BUILD,;t t
6c67131a
VS
37445s,@DEBUG_INFO@,$DEBUG_INFO,;t t
37446s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
37447s,@SHARED@,$SHARED,;t t
37448s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
37449s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
37450s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 37451s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 37452s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
37453s,@SET_MAKE@,$SET_MAKE,;t t
37454s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
37455s,@ac_ct_AR@,$ac_ct_AR,;t t
37456s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37457s,@NM@,$NM,;t t
37458s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 37459s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 37460s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
37461s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
37462s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
37463s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
37464s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
37465s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 37466s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 37467s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 37468s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 37469s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 37470s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 37471s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 37472s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
37473s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
37474s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
37475s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
37476s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
37477s,@PIC_FLAG@,$PIC_FLAG,;t t
37478s,@USE_SOVERSION@,$USE_SOVERSION,;t t
37479s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
37480s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
37481s,@USE_MACVERSION@,$USE_MACVERSION,;t t
37482s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
37483s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 37484s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 37485s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 37486s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
37487s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
37488s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
37489s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
37490s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 37491s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 37492s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
37493s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
37494s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
37495s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
37496s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
37497s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 37498s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 37499s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 37500s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 37501s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
37502s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
37503s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 37504s,@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 37505s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 37506s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 37507s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 37508s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 37509s,@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 37510s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 37511s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 37512s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 37513s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
37514s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
37515s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
37516s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
37517s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 37518s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 37519s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
37520s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
37521s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
37522s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 37523s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 37524s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 37525s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 37526s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 37527s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 37528s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 37529s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 37530s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
37531s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
37532s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 37533s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 37534s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
37535s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
37536s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
37537s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
37538s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
37539s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
37540s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
37541s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 37542s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 37543s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
37544s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
37545s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
37546s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
37547s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 37548s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 37549s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 37550s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
37551s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
37552s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
37553s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
37554s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
37555s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
37556s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 37557s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
37558s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
37559s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
37560s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
37561s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
37562s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
37563s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
37564s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 37565s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
37566s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
37567s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
37568s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
37569s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
37570s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
37571s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
37572s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
37573s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
37574s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 37575s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 37576s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
37577s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
37578s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
37579s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
37580s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
37581s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
37582s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 37583s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 37584s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
37585s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
37586s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
37587s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
37588s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
37589s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
37590s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
37591s,@PATH_IFS@,$PATH_IFS,;t t
37592s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
37593s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
37594s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
37595s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
37596s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
37597s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
37598s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
37599s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
37600s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
37601s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
37602s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
37603s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
37604s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
37605s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
37606s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
37607s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
37608s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
37609s,@WX_ALL@,$WX_ALL,;t t
37610s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
37611s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
37612s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
37613s,@STATIC_FLAG@,$STATIC_FLAG,;t t
37614s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
37615s,@USE_GUI@,$USE_GUI,;t t
37616s,@AFMINSTALL@,$AFMINSTALL,;t t
37617s,@WIN32INSTALL@,$WIN32INSTALL,;t t
37618s,@TOOLKIT@,$TOOLKIT,;t t
37619s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
37620s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
37621s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
37622s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
37623s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
37624s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
37625s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 37626s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
37627s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
37628s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
37629s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
37630s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
37631s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
37632s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 37633s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 37634s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
37635s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
37636s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
37637s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
37638s,@ALL_HEADERS@,$ALL_HEADERS,;t t
37639s,@ALL_SOURCES@,$ALL_SOURCES,;t t
37640s,@GUIDIST@,$GUIDIST,;t t
37641s,@PORT_FILES@,$PORT_FILES,;t t
37642s,@DISTDIR@,$DISTDIR,;t t
37643s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
37644s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
37645s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
37646s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
37647s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
37648s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
37649s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
37650s,@RESFLAGS@,$RESFLAGS,;t t
37651s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
37652s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
37653s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
37654s,@LIBWXMACRES@,$LIBWXMACRES,;t t
37655s,@MACRESCOMP@,$MACRESCOMP,;t t
37656s,@MACSETFILE@,$MACSETFILE,;t t
37657s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
37658s,@GCC@,$GCC,;t t
37659s,@DLLTOOL@,$DLLTOOL,;t t
37660s,@AS@,$AS,;t t
e6cc62c6
VS
37661s,@LD@,$LD,;t t
37662s,@MAKEINFO@,$MAKEINFO,;t t
37663s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
37664s,@LIBOBJS@,$LIBOBJS,;t t
37665s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
37666CEOF
37667
e6cc62c6
VS
37668_ACEOF
37669
37670 cat >>$CONFIG_STATUS <<\_ACEOF
37671 # Split the substitutions into bite-sized pieces for seds with
37672 # small command number limits, like on Digital OSF/1 and HP-UX.
37673 ac_max_sed_lines=48
37674 ac_sed_frag=1 # Number of current file.
37675 ac_beg=1 # First line for current file.
37676 ac_end=$ac_max_sed_lines # Line after last line for current file.
37677 ac_more_lines=:
37678 ac_sed_cmds=
37679 while $ac_more_lines; do
37680 if test $ac_beg -gt 1; then
37681 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 37682 else
e6cc62c6
VS
37683 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37684 fi
37685 if test ! -s $tmp/subs.frag; then
37686 ac_more_lines=false
37687 else
37688 # The purpose of the label and of the branching condition is to
37689 # speed up the sed processing (if there are no `@' at all, there
37690 # is no need to browse any of the substitutions).
37691 # These are the two extra sed commands mentioned above.
37692 (echo ':t
37693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37694 if test -z "$ac_sed_cmds"; then
789c5f4a 37695 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 37696 else
789c5f4a 37697 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
37698 fi
37699 ac_sed_frag=`expr $ac_sed_frag + 1`
37700 ac_beg=$ac_end
37701 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 37702 fi
e6cc62c6
VS
37703 done
37704 if test -z "$ac_sed_cmds"; then
37705 ac_sed_cmds=cat
10f2d63a 37706 fi
e6cc62c6 37707fi # test -n "$CONFIG_FILES"
10f2d63a 37708
e6cc62c6
VS
37709_ACEOF
37710cat >>$CONFIG_STATUS <<\_ACEOF
37711for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 37712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
37713 case $ac_file in
37714 - | *:- | *:-:* ) # input from stdin
789c5f4a
VZ
37715 cat >$tmp/stdin
37716 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37717 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37718 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
789c5f4a 37719 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37720 * ) ac_file_in=$ac_file.in ;;
10f2d63a 37721 esac
247f5006 37722
e6cc62c6
VS
37723 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
37724 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37725$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
37726 X"$ac_file" : 'X\(//\)[^/]' \| \
37727 X"$ac_file" : 'X\(//\)$' \| \
37728 X"$ac_file" : 'X\(/\)' \| \
37729 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
37730echo X"$ac_file" |
37731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37733 /^X\(\/\/\)$/{ s//\1/; q; }
37734 /^X\(\/\).*/{ s//\1/; q; }
37735 s/.*/./; q'`
37736 { if $as_mkdir_p; then
37737 mkdir -p "$ac_dir"
a0b9e27f 37738 else
e6cc62c6
VS
37739 as_dir="$ac_dir"
37740 as_dirs=
37741 while test ! -d "$as_dir"; do
37742 as_dirs="$as_dir $as_dirs"
37743 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
37745 X"$as_dir" : 'X\(//\)[^/]' \| \
37746 X"$as_dir" : 'X\(//\)$' \| \
37747 X"$as_dir" : 'X\(/\)' \| \
37748 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
37749echo X"$as_dir" |
37750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37752 /^X\(\/\/\)$/{ s//\1/; q; }
37753 /^X\(\/\).*/{ s//\1/; q; }
37754 s/.*/./; q'`
37755 done
37756 test ! -n "$as_dirs" || mkdir $as_dirs
37757 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37758echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37759 { (exit 1); exit 1; }; }; }
37760
37761 ac_builddir=.
37762
37763if test "$ac_dir" != .; then
37764 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37765 # A "../" for each directory in $ac_dir_suffix.
37766 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37767else
37768 ac_dir_suffix= ac_top_builddir=
37769fi
247f5006 37770
e6cc62c6
VS
37771case $srcdir in
37772 .) # No --srcdir option. We are building in place.
37773 ac_srcdir=.
37774 if test -z "$ac_top_builddir"; then
37775 ac_top_srcdir=.
37776 else
37777 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37778 fi ;;
37779 [\\/]* | ?:[\\/]* ) # Absolute path.
37780 ac_srcdir=$srcdir$ac_dir_suffix;
37781 ac_top_srcdir=$srcdir ;;
247f5006 37782 *) # Relative path.
e6cc62c6
VS
37783 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37784 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37785esac
789c5f4a
VZ
37786# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37787# absolute.
37788ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37789ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37790ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37791ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 37792
247f5006 37793
e6cc62c6
VS
37794 case $INSTALL in
37795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37796 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 37797 esac
247f5006 37798
e6cc62c6
VS
37799 if test x"$ac_file" != x-; then
37800 { echo "$as_me:$LINENO: creating $ac_file" >&5
37801echo "$as_me: creating $ac_file" >&6;}
37802 rm -f "$ac_file"
37803 fi
37804 # Let's still pretend it is `configure' which instantiates (i.e., don't
37805 # use $as_me), people would be surprised to read:
37806 # /* config.h. Generated by config.status. */
37807 if test x"$ac_file" = x-; then
37808 configure_input=
37809 else
37810 configure_input="$ac_file. "
37811 fi
37812 configure_input=$configure_input"Generated from `echo $ac_file_in |
789c5f4a 37813 sed 's,.*/,,'` by configure."
e6cc62c6
VS
37814
37815 # First look for the input files in the build tree, otherwise in the
37816 # src tree.
37817 ac_file_inputs=`IFS=:
37818 for f in $ac_file_in; do
37819 case $f in
37820 -) echo $tmp/stdin ;;
37821 [\\/$]*)
789c5f4a
VZ
37822 # Absolute (can't be DOS-style, as IFS=:)
37823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37824echo "$as_me: error: cannot find input file: $f" >&2;}
37825 { (exit 1); exit 1; }; }
789c5f4a 37826 echo $f;;
e6cc62c6 37827 *) # Relative
789c5f4a
VZ
37828 if test -f "$f"; then
37829 # Build tree
37830 echo $f
37831 elif test -f "$srcdir/$f"; then
37832 # Source tree
37833 echo $srcdir/$f
37834 else
37835 # /dev/null tree
37836 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37837echo "$as_me: error: cannot find input file: $f" >&2;}
37838 { (exit 1); exit 1; }; }
789c5f4a 37839 fi;;
e6cc62c6
VS
37840 esac
37841 done` || { (exit 1); exit 1; }
37842_ACEOF
37843cat >>$CONFIG_STATUS <<_ACEOF
37844 sed "$ac_vpsub
37845$extrasub
37846_ACEOF
37847cat >>$CONFIG_STATUS <<\_ACEOF
37848:t
37849/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37850s,@configure_input@,$configure_input,;t t
37851s,@srcdir@,$ac_srcdir,;t t
37852s,@abs_srcdir@,$ac_abs_srcdir,;t t
37853s,@top_srcdir@,$ac_top_srcdir,;t t
37854s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
37855s,@builddir@,$ac_builddir,;t t
37856s,@abs_builddir@,$ac_abs_builddir,;t t
37857s,@top_builddir@,$ac_top_builddir,;t t
37858s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
37859s,@INSTALL@,$ac_INSTALL,;t t
37860" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
37861 rm -f $tmp/stdin
37862 if test x"$ac_file" != x-; then
37863 mv $tmp/out $ac_file
37864 else
37865 cat $tmp/out
37866 rm -f $tmp/out
37867 fi
37868
37869done
37870_ACEOF
37871cat >>$CONFIG_STATUS <<\_ACEOF
37872
37873#
37874# CONFIG_HEADER section.
37875#
10f2d63a
VZ
37876
37877# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
37878# NAME is the cpp macro being defined and VALUE is the value it is being given.
37879#
37880# ac_d sets the value in "#define NAME VALUE" lines.
789c5f4a
VZ
37881ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
37882ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
37883ac_dC=' '
37884ac_dD=',;t'
37885# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
789c5f4a 37886ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 37887ac_uB='$,\1#\2define\3'
10f2d63a 37888ac_uC=' '
e6cc62c6
VS
37889ac_uD=',;t'
37890
37891for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 37892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
37893 case $ac_file in
37894 - | *:- | *:-:* ) # input from stdin
789c5f4a
VZ
37895 cat >$tmp/stdin
37896 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37898 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
789c5f4a 37899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37900 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
37901 esac
37902
e6cc62c6
VS
37903 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
37904echo "$as_me: creating $ac_file" >&6;}
37905
37906 # First look for the input files in the build tree, otherwise in the
37907 # src tree.
37908 ac_file_inputs=`IFS=:
37909 for f in $ac_file_in; do
37910 case $f in
37911 -) echo $tmp/stdin ;;
37912 [\\/$]*)
789c5f4a
VZ
37913 # Absolute (can't be DOS-style, as IFS=:)
37914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37915echo "$as_me: error: cannot find input file: $f" >&2;}
37916 { (exit 1); exit 1; }; }
789c5f4a 37917 echo $f;;
e6cc62c6 37918 *) # Relative
789c5f4a
VZ
37919 if test -f "$f"; then
37920 # Build tree
37921 echo $f
37922 elif test -f "$srcdir/$f"; then
37923 # Source tree
37924 echo $srcdir/$f
37925 else
37926 # /dev/null tree
37927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37928echo "$as_me: error: cannot find input file: $f" >&2;}
37929 { (exit 1); exit 1; }; }
789c5f4a 37930 fi;;
e6cc62c6
VS
37931 esac
37932 done` || { (exit 1); exit 1; }
37933 # Remove the trailing spaces.
789c5f4a 37934 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
37935
37936_ACEOF
37937
37938# Transform confdefs.h into two sed scripts, `conftest.defines' and
37939# `conftest.undefs', that substitutes the proper values into
37940# config.h.in to produce config.h. The first handles `#define'
37941# templates, and the second `#undef' templates.
37942# And first: Protect against being on the right side of a sed subst in
37943# config.status. Protect against being in an unquoted here document
37944# in config.status.
37945rm -f conftest.defines conftest.undefs
37946# Using a here document instead of a string reduces the quoting nightmare.
37947# Putting comments in sed scripts is not portable.
37948#
37949# `end' is used to avoid that the second main sed command (meant for
37950# 0-ary CPP macros) applies to n-ary macro definitions.
37951# See the Autoconf documentation for `clear'.
37952cat >confdef2sed.sed <<\_ACEOF
37953s/[\\&,]/\\&/g
37954s,[\\$`],\\&,g
37955t clear
37956: clear
789c5f4a 37957s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 37958t end
789c5f4a 37959s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
37960: end
37961_ACEOF
37962# If some macros were called several times there might be several times
37963# the same #defines, which is useless. Nevertheless, we may not want to
37964# sort them, since we want the *last* AC-DEFINE to be honored.
37965uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37966sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37967rm -f confdef2sed.sed
10f2d63a
VZ
37968
37969# This sed command replaces #undef with comments. This is necessary, for
37970# example, in the case of _POSIX_SOURCE, which is predefined and required
37971# on some systems where configure will not decide to define it.
e6cc62c6 37972cat >>conftest.undefs <<\_ACEOF
789c5f4a 37973s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
37974_ACEOF
37975
37976# Break up conftest.defines because some shells have a limit on the size
37977# of here documents, and old seds have small limits too (100 cmds).
37978echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
789c5f4a 37979echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
37980echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37981echo ' :' >>$CONFIG_STATUS
37982rm -f conftest.tail
37983while grep . conftest.defines >/dev/null
37984do
37985 # Write a limited-size here document to $tmp/defines.sed.
37986 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37987 # Speed up: don't consider the non `#define' lines.
789c5f4a 37988 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
37989 # Work around the forget-to-reset-the-flag bug.
37990 echo 't clr' >>$CONFIG_STATUS
37991 echo ': clr' >>$CONFIG_STATUS
37992 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37993 echo 'CEOF
37994 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37995 rm -f $tmp/in
37996 mv $tmp/out $tmp/in
37997' >>$CONFIG_STATUS
37998 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37999 rm -f conftest.defines
38000 mv conftest.tail conftest.defines
38001done
38002rm -f conftest.defines
38003echo ' fi # grep' >>$CONFIG_STATUS
38004echo >>$CONFIG_STATUS
10f2d63a 38005
e6cc62c6
VS
38006# Break up conftest.undefs because some shells have a limit on the size
38007# of here documents, and old seds have small limits too (100 cmds).
38008echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 38009rm -f conftest.tail
e6cc62c6 38010while grep . conftest.undefs >/dev/null
10f2d63a 38011do
e6cc62c6
VS
38012 # Write a limited-size here document to $tmp/undefs.sed.
38013 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38014 # Speed up: don't consider the non `#undef'
789c5f4a 38015 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
38016 # Work around the forget-to-reset-the-flag bug.
38017 echo 't clr' >>$CONFIG_STATUS
38018 echo ': clr' >>$CONFIG_STATUS
38019 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 38020 echo 'CEOF
e6cc62c6
VS
38021 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38022 rm -f $tmp/in
38023 mv $tmp/out $tmp/in
38024' >>$CONFIG_STATUS
38025 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38026 rm -f conftest.undefs
38027 mv conftest.tail conftest.undefs
10f2d63a 38028done
e6cc62c6
VS
38029rm -f conftest.undefs
38030
38031cat >>$CONFIG_STATUS <<\_ACEOF
38032 # Let's still pretend it is `configure' which instantiates (i.e., don't
38033 # use $as_me), people would be surprised to read:
38034 # /* config.h. Generated by config.status. */
38035 if test x"$ac_file" = x-; then
38036 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 38037 else
e6cc62c6 38038 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 38039 fi
e6cc62c6
VS
38040 cat $tmp/in >>$tmp/config.h
38041 rm -f $tmp/in
38042 if test x"$ac_file" != x-; then
38043 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38045echo "$as_me: $ac_file is unchanged" >&6;}
38046 else
38047 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38048$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38049 X"$ac_file" : 'X\(//\)[^/]' \| \
38050 X"$ac_file" : 'X\(//\)$' \| \
38051 X"$ac_file" : 'X\(/\)' \| \
38052 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38053echo X"$ac_file" |
38054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38056 /^X\(\/\/\)$/{ s//\1/; q; }
38057 /^X\(\/\).*/{ s//\1/; q; }
38058 s/.*/./; q'`
38059 { if $as_mkdir_p; then
38060 mkdir -p "$ac_dir"
38061 else
38062 as_dir="$ac_dir"
38063 as_dirs=
38064 while test ! -d "$as_dir"; do
38065 as_dirs="$as_dir $as_dirs"
38066 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38068 X"$as_dir" : 'X\(//\)[^/]' \| \
38069 X"$as_dir" : 'X\(//\)$' \| \
38070 X"$as_dir" : 'X\(/\)' \| \
38071 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38072echo X"$as_dir" |
38073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38075 /^X\(\/\/\)$/{ s//\1/; q; }
38076 /^X\(\/\).*/{ s//\1/; q; }
38077 s/.*/./; q'`
38078 done
38079 test ! -n "$as_dirs" || mkdir $as_dirs
38080 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38081echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38082 { (exit 1); exit 1; }; }; }
a0b9e27f 38083
e6cc62c6
VS
38084 rm -f $ac_file
38085 mv $tmp/config.h $ac_file
38086 fi
38087 else
38088 cat $tmp/config.h
38089 rm -f $tmp/config.h
38090 fi
38091done
38092_ACEOF
38093cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 38094
e6cc62c6
VS
38095#
38096# CONFIG_COMMANDS section.
38097#
38098for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38099 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38100 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38101 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38102$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38103 X"$ac_dest" : 'X\(//\)[^/]' \| \
38104 X"$ac_dest" : 'X\(//\)$' \| \
38105 X"$ac_dest" : 'X\(/\)' \| \
38106 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38107echo X"$ac_dest" |
38108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38110 /^X\(\/\/\)$/{ s//\1/; q; }
38111 /^X\(\/\).*/{ s//\1/; q; }
38112 s/.*/./; q'`
38113 ac_builddir=.
38114
38115if test "$ac_dir" != .; then
38116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38117 # A "../" for each directory in $ac_dir_suffix.
38118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38119else
38120 ac_dir_suffix= ac_top_builddir=
38121fi
38122
38123case $srcdir in
38124 .) # No --srcdir option. We are building in place.
38125 ac_srcdir=.
38126 if test -z "$ac_top_builddir"; then
38127 ac_top_srcdir=.
38128 else
38129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38130 fi ;;
38131 [\\/]* | ?:[\\/]* ) # Absolute path.
38132 ac_srcdir=$srcdir$ac_dir_suffix;
38133 ac_top_srcdir=$srcdir ;;
38134 *) # Relative path.
38135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38137esac
789c5f4a
VZ
38138# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38139# absolute.
38140ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38141ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38142ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38143ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
38144
38145
38146 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38147echo "$as_me: executing $ac_dest commands" >&6;}
38148 case $ac_dest in
38149 default )
652d930d 38150 if test ! -h wx-config; then
991a5759 38151 chmod +x wx-config
3a922bb4
RL
38152 mv wx-config wx${TOOLCHAIN_NAME}-config
38153 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 38154 fi
665bbe97 38155
00cf1208
RR
38156 if test ! -d lib; then
38157 mkdir lib
38158 fi
38159 if test ! -d lib/wx; then
38160 mkdir lib/wx
38161 fi
38162 if test ! -d lib/wx/include; then
38163 mkdir lib/wx/include
38164 fi
3a922bb4
RL
38165 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
38166 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 38167 fi
3a922bb4
RL
38168 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
38169 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
38170 fi
38171 if test -f setup.h; then
3a922bb4 38172 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 38173 fi
e6cc62c6
VS
38174 ;;
38175 esac
38176done
38177_ACEOF
2224580a 38178
e6cc62c6 38179cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 38180
e6cc62c6
VS
38181{ (exit 0); exit 0; }
38182_ACEOF
38183chmod +x $CONFIG_STATUS
38184ac_clean_files=$ac_clean_files_save
38185
38186
38187# configure is writing to config.log, and then calls config.status.
38188# config.status does its own redirection, appending to config.log.
38189# Unfortunately, on DOS this fails, as config.log is still kept open
38190# by configure, so config.status won't be able to write to it; its
38191# output is simply discarded. So we exec the FD to /dev/null,
38192# effectively closing config.log, so it can be properly (re)opened and
38193# appended to by config.status. When coming back to configure, we
38194# need to make the FD available again.
38195if test "$no_create" != yes; then
38196 ac_cs_success=:
38197 ac_config_status_args=
38198 test "$silent" = yes &&
38199 ac_config_status_args="$ac_config_status_args --quiet"
38200 exec 5>/dev/null
38201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38202 exec 5>>config.log
38203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38204 # would make configure fail if this is the last instruction.
38205 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
38206fi
38207
672abd7a
VS
38208#
38209# CONFIG_SUBDIRS section.
38210#
38211if test "$no_recursion" != yes; then
38212
38213 # Remove --cache-file and --srcdir arguments so they do not pile up.
38214 ac_sub_configure_args=
38215 ac_prev=
38216 for ac_arg in $ac_configure_args; do
38217 if test -n "$ac_prev"; then
38218 ac_prev=
38219 continue
38220 fi
38221 case $ac_arg in
38222 -cache-file | --cache-file | --cache-fil | --cache-fi \
38223 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38224 ac_prev=cache_file ;;
38225 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38226 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
38227 | --c=*)
38228 ;;
38229 --config-cache | -C)
38230 ;;
38231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
38232 ac_prev=srcdir ;;
38233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
38234 ;;
38235 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
38236 ac_prev=prefix ;;
38237 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
38238 ;;
38239 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
38240 esac
38241 done
38242
38243 # Always prepend --prefix to ensure using the same prefix
38244 # in subdir configurations.
38245 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
38246
38247 ac_popdir=`pwd`
38248 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
38249
38250 # Do not complain, so a configure script can configure whichever
38251 # parts of a large source tree are present.
38252 test -d $srcdir/$ac_dir || continue
38253
38254 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
38255echo "$as_me: configuring in $ac_dir" >&6;}
38256 { if $as_mkdir_p; then
38257 mkdir -p "$ac_dir"
38258 else
38259 as_dir="$ac_dir"
38260 as_dirs=
38261 while test ! -d "$as_dir"; do
38262 as_dirs="$as_dir $as_dirs"
38263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38265 X"$as_dir" : 'X\(//\)[^/]' \| \
38266 X"$as_dir" : 'X\(//\)$' \| \
38267 X"$as_dir" : 'X\(/\)' \| \
38268 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
38269echo X"$as_dir" |
38270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38272 /^X\(\/\/\)$/{ s//\1/; q; }
38273 /^X\(\/\).*/{ s//\1/; q; }
38274 s/.*/./; q'`
38275 done
38276 test ! -n "$as_dirs" || mkdir $as_dirs
38277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38278echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38279 { (exit 1); exit 1; }; }; }
38280
38281 ac_builddir=.
38282
38283if test "$ac_dir" != .; then
38284 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38285 # A "../" for each directory in $ac_dir_suffix.
38286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38287else
38288 ac_dir_suffix= ac_top_builddir=
38289fi
38290
38291case $srcdir in
38292 .) # No --srcdir option. We are building in place.
38293 ac_srcdir=.
38294 if test -z "$ac_top_builddir"; then
38295 ac_top_srcdir=.
38296 else
38297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38298 fi ;;
38299 [\\/]* | ?:[\\/]* ) # Absolute path.
38300 ac_srcdir=$srcdir$ac_dir_suffix;
38301 ac_top_srcdir=$srcdir ;;
38302 *) # Relative path.
38303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38305esac
789c5f4a
VZ
38306# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38307# absolute.
38308ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38309ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38310ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38311ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
672abd7a
VS
38312
38313
38314 cd $ac_dir
38315
38316 # Check for guested configure; otherwise get Cygnus style configure.
38317 if test -f $ac_srcdir/configure.gnu; then
38318 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
38319 elif test -f $ac_srcdir/configure; then
38320 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
38321 elif test -f $ac_srcdir/configure.in; then
38322 ac_sub_configure=$ac_configure
38323 else
38324 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
38325echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
38326 ac_sub_configure=
38327 fi
38328
38329 # The recursion is here.
38330 if test -n "$ac_sub_configure"; then
38331 # Make the cache file name correct relative to the subdirectory.
38332 case $cache_file in
38333 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
38334 *) # Relative path.
789c5f4a 38335 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
38336 esac
38337
38338 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
38339echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
38340 # The eval makes quoting arguments work.
38341 eval $ac_sub_configure $ac_sub_configure_args \
789c5f4a
VZ
38342 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
38343 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
38344echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
38345 { (exit 1); exit 1; }; }
38346 fi
38347
38348 cd $ac_popdir
38349 done
38350fi
38351
8284b0c5 38352
2b5f62a0
VZ
38353echo
38354echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
38355echo ""
89fe663f 38356echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 38357echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
38358
38359echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
38360echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
38361echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
38362
0c98a14e 38363echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
38364echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
38365echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 38366
2b5f62a0
VZ
38367echo " Which libraries should wxWindows use?"
38368echo " jpeg ${wxUSE_LIBJPEG-none}"
38369echo " png ${wxUSE_LIBPNG-none}"
38370echo " regex ${wxUSE_REGEX}"
38371echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
38372if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
38373echo " xpm ${wxUSE_LIBXPM-none}"
38374fi
2b5f62a0 38375echo " zlib ${wxUSE_ZLIB}"
fd3d7534 38376echo " odbc ${wxUSE_ODBC}"
5f0b6dff 38377echo " expat ${wxUSE_EXPAT}"
3527f29c 38378echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 38379echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
38380
38381echo ""
38382