]> git.saurik.com Git - wxWidgets.git/blame - configure
Minor cleanup for 2.5. Upped version to 0.9.4. Removed use of decorators.
[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.
09d3439c 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#
09d3439c
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.
09d3439c 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
09d3439c 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.
09d3439c 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.
09d3439c 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"
09d3439c 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 CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA 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 \
09d3439c 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
09d3439c
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
09d3439c 821 [$ac_default_prefix]
e6cc62c6 822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
09d3439c 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
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
e6cc62c6
VS
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
e46d2a18 898 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
901 --enable-apple_ieee use the Apple IEEE codec
902 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
903 --enable-cmdline use wxCmdLineParser class
904 --enable-datetime use wxDateTime class
e6cc62c6 905 --enable-dialupman use dialup network classes
e6cc62c6
VS
906 --enable-dynlib use wxLibrary class for DLL loading
907 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
908 --enable-exceptions build exception-safe library
909 --enable-ffile use wxFFile class
910 --enable-file use wxFile class
911 --enable-filesystem use virtual file systems classes
912 --enable-fontmap use font encodings conversion classes
913 --enable-fs_inet use virtual HTTP/FTP filesystems
914 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
915 --enable-geometry use geometry class
916 --enable-log use logging system
e46d2a18
VS
917 --enable-longlong use wxLongLong class
918 --enable-mimetype use wxMimeTypesManager
919 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
920 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 921 --enable-streams use wxStream etc classes
e46d2a18
VS
922 --enable-std_iostreams use standard C++ stream classes
923 --enable-stopwatch use wxStopWatch class
924 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
925 --enable-textbuf use wxTextBuffer class
926 --enable-textfile use wxTextFile class
e46d2a18 927 --enable-timer use wxTimer class
e6cc62c6 928 --enable-unicode compile wxString with Unicode support
e46d2a18 929 --enable-wave use wxWave class
e6cc62c6 930 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 931 --enable-zipstream use wxZipInputStream
7015ef3a 932 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
0e012a93 970 --enable-listbook use wxListbook class
e6cc62c6
VS
971 --enable-listbox use wxListBox class
972 --enable-listctrl use wxListCtrl class
973 --enable-notebook use wxNotebook class
974 --enable-radiobox use wxRadioBox class
975 --enable-radiobtn use wxRadioButton class
976 --enable-sash use wxSashWindow class
977 --enable-scrollbar use wxScrollBar class and scrollable windows
978 --enable-slider use wxSlider class
979 --enable-spinbtn use wxSpinButton class
980 --enable-spinctrl use wxSpinCtrl class
981 --enable-splitter use wxSplitterWindow class
982 --enable-statbmp use wxStaticBitmap class
983 --enable-statbox use wxStaticBox class
984 --enable-statline use wxStaticLine class
985 --enable-stattext use wxStaticText class
986 --enable-statusbar use wxStatusBar class
987 --enable-tabdialog use wxTabControl class
988 --enable-textctrl use wxTextCtrl class
989 --enable-togglebtn use wxToggleButton class
990 --enable-toolbar use wxToolBar class
991 --enable-tbarnative use native wxToolBar class
992 --enable-tbarsmpl use wxToolBarSimple class
993 --enable-treectrl use wxTreeCtrl class
994 --enable-tipwindow use wxTipWindow class
995 --enable-popupwin use wxPopUpWindow class
996 --enable-commondlg use all common dialogs
997 --enable-choicedlg use wxChoiceDialog
998 --enable-coldlg use wxColourDialog
999 --enable-filedlg use wxFileDialog
1000 --enable-finddlg use wxFindReplaceDialog
1001 --enable-fontdlg use wxFontDialog
1002 --enable-dirdlg use wxDirDialog
1003 --enable-msgdlg use wxMessageDialog
1004 --enable-numberdlg use wxNumberEntryDialog
1005 --enable-splash use wxSplashScreen
1006 --enable-textdlg use wxTextDialog
1007 --enable-tipdlg use startup tips
1008 --enable-progressdlg use wxProgressDialog
1009 --enable-wizarddlg use wxWizard
1010 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1011 --enable-miniframe use wxMiniFrame class
1012 --enable-tooltips use wxToolTip class
1013 --enable-splines use spline drawing code
1014 --enable-validators use wxValidator and derived classes
1015 --enable-busyinfo use wxBusyInfo
1016 --enable-joystick use wxJoystick (Linux only)
1017 --enable-metafiles use wxMetaFile (Windows only)
1018 --enable-dragimage use wxDragImage
1019 --enable-accessibility enable accessibility support
1020 --enable-palette use wxPalette class
1021 --enable-image use wxImage class
1022 --enable-gif use gif images (GIF file format)
1023 --enable-pcx use pcx images (PCX file format)
1024 --enable-iff use iff images (IFF file format)
1025 --enable-pnm use pnm images (PNM file format)
1026 --enable-xpm use xpm images (XPM file format)
1027 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1028 --enable-official_build official build of wxWindows (win32 DLL only)
1029 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1030 --disable-largefile omit support for large files
1031 --disable-gtktest do not try to compile and run a test GTK+ program
1032 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1033 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1034
1035Optional Packages:
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 --with-gtk use GTK+
1039 --with-motif use Motif/Lesstif
1040 --with-mac use Mac OS X
1041 --with-cocoa use Cocoa
1042 --with-wine use Wine
1043 --with-msw use MS-Windows
1044 --with-pm use OS/2 Presentation Manager
1045 --with-mgl use SciTech MGL
1046 --with-microwin use MicroWindows
1047 --with-x11 use X11
1048 --with-libpng use libpng (PNG image format)
1049 --with-libjpeg use libjpeg (JPEG file format)
1050 --with-libtiff use libtiff (TIFF file format)
89fe663f 1051 --with-libxpm use libxpm (XPM file format)
3527f29c 1052 --with-libmspack use libmspack (CHM help files loading)
e6cc62c6
VS
1053 --with-opengl use OpenGL (or Mesa)
1054 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1055 --with-regex enable support for wxRegEx class
1056 --with-zlib use zlib for LZW compression
1057 --with-odbc use the IODBC and wxODBC classes
672abd7a 1058 --with-expat enable XML support using expat parser
e6cc62c6
VS
1059 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1060 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1061 --with-x use the X Window System
1062 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1063
1064Some influential environment variables:
1065 CC C compiler command
1066 CFLAGS C compiler flags
1067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1068 nonstandard directory <lib dir>
1069 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070 headers in a nonstandard directory <include dir>
1071 CPP C preprocessor
1072 CXX C++ compiler command
1073 CXXFLAGS C++ compiler flags
1074 CXXCPP C++ preprocessor
1075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
1079Report bugs to <wx-dev@lists.wxwindows.org>.
1080_ACEOF
1081fi
1082
1083if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1085 ac_popdir=`pwd`
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1088 ac_builddir=.
1089
1090if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094else
1095 ac_dir_suffix= ac_top_builddir=
1096fi
1097
1098case $srcdir in
1099 .) # No --srcdir option. We are building in place.
1100 ac_srcdir=.
1101 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=.
1103 else
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 fi ;;
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1109 *) # Relative path.
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112esac
09d3439c
VZ
1113# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1114# absolute.
1115ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1116ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1117ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1118ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
1119
1120 cd $ac_dir
1121 # Check for guested configure; otherwise get Cygnus style configure.
1122 if test -f $ac_srcdir/configure.gnu; then
1123 echo
1124 $SHELL $ac_srcdir/configure.gnu --help=recursive
1125 elif test -f $ac_srcdir/configure; then
1126 echo
1127 $SHELL $ac_srcdir/configure --help=recursive
1128 elif test -f $ac_srcdir/configure.ac ||
09d3439c 1129 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1130 echo
1131 $ac_configure --help
1132 else
1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1134 fi
1135 cd $ac_popdir
1136 done
1137fi
8284b0c5 1138
e6cc62c6
VS
1139test -n "$ac_init_help" && exit 0
1140if $ac_init_version; then
1141 cat <<\_ACEOF
e46d2a18 1142wxWindows configure 2.5.1
09d3439c 1143generated by GNU Autoconf 2.57
10f2d63a 1144
09d3439c
VZ
1145Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1146Free Software Foundation, Inc.
e6cc62c6
VS
1147This configure script is free software; the Free Software Foundation
1148gives unlimited permission to copy, distribute and modify it.
1149_ACEOF
1150 exit 0
7c66a493 1151fi
e6cc62c6
VS
1152exec 5>config.log
1153cat >&5 <<_ACEOF
1154This file contains any messages produced by compilers while
1155running configure, to aid debugging if configure makes a mistake.
1156
e46d2a18 1157It was created by wxWindows $as_me 2.5.1, which was
09d3439c 1158generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
1159
1160 $ $0 $@
1161
1162_ACEOF
1163{
1164cat <<_ASUNAME
1165## --------- ##
1166## Platform. ##
1167## --------- ##
1168
1169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177
1178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185
1186_ASUNAME
1187
1188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189for as_dir in $PATH
1190do
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194done
1195
1196} >&5
1197
1198cat >&5 <<_ACEOF
1199
1200
1201## ----------- ##
1202## Core tests. ##
1203## ----------- ##
1204
1205_ACEOF
1206
1207
1208# Keep a trace of the command line.
1209# Strip out --no-create and --no-recursion so they do not pile up.
1210# Strip out --silent because we don't want to record it for future runs.
1211# Also quote any args containing shell meta-characters.
1212# Make two passes to allow for proper duplicate-argument suppression.
1213ac_configure_args=
1214ac_configure_args0=
1215ac_configure_args1=
1216ac_sep=
1217ac_must_keep_next=false
1218for ac_pass in 1 2
1219do
1220 for ac_arg
1221 do
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232 2)
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
09d3439c 1235 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1236 else
09d3439c
VZ
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1245 ;;
1246 -* ) ac_must_keep_next=true ;;
1247 esac
e6cc62c6
VS
1248 fi
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1252 ;;
1253 esac
1254 done
1255done
1256$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259# When interrupted or exit'd, cleanup temporary files, and complete
1260# config.log. We remove comments because anyway the quotes in there
1261# would cause problems or look ugly.
1262# WARNING: Be sure not to use single quotes in there, as some shells,
1263# such as our DU 5.0 friend, will then `close' the trap.
1264trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1266 {
1267 echo
1268
1269 cat <<\_ASBOX
1270## ---------------- ##
1271## Cache variables. ##
1272## ---------------- ##
1273_ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
1276{
1277 (set) 2>&1 |
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1280 sed -n \
09d3439c
VZ
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1283 ;;
1284 *)
1285 sed -n \
09d3439c 1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1287 ;;
1288 esac;
1289}
1290 echo
1291
1292 cat <<\_ASBOX
1293## ----------------- ##
1294## Output variables. ##
1295## ----------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
1307## ------------- ##
1308## Output files. ##
1309## ------------- ##
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1313 do
1314 eval ac_val=$`echo $ac_var`
09d3439c 1315 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1316 done | sort
1317 echo
1318 fi
1319
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322## ----------- ##
1323## confdefs.h. ##
1324## ----------- ##
1325_ASBOX
1326 echo
1327 sed "/^$/d" confdefs.h | sort
1328 echo
1329 fi
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
09d3439c 1334 rm -f core core.* *.core &&
e6cc62c6
VS
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 exit $exit_status
1337 ' 0
1338for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340done
1341ac_signal=0
1342
1343# confdefs.h avoids OS command line length limits that DEFS can exceed.
1344rm -rf conftest* confdefs.h
1345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346echo >confdefs.h
1347
1348# Predefined preprocessor variables.
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_NAME "$PACKAGE_NAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_STRING "$PACKAGE_STRING"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372_ACEOF
1373
1374
1375# Let the site file select an alternate cache file if it wants to.
1376# Prefer explicitly selected file to automatically selected ones.
1377if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 fi
1383fi
1384for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1389 . "$ac_site_file"
1390 fi
1391done
1392
1393if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1402 esac
1403 fi
1404else
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1408fi
1409
1410# Check that the precious variables saved in the cache have kept the same
1411# value.
1412ac_cache_corrupted=false
1413for ac_var in `(set) 2>&1 |
09d3439c 1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1429 *)
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
09d3439c 1431 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1432echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
09d3439c 1433 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1434echo "$as_me: former value: $ac_old_val" >&2;}
09d3439c 1435 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1436echo "$as_me: current value: $ac_new_val" >&2;}
09d3439c 1437 ac_cache_corrupted=:
e6cc62c6
VS
1438 fi;;
1439 esac
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1442 case $ac_new_val in
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1446 esac
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 esac
1451 fi
1452done
1453if $ac_cache_corrupted; then
1454 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458 { (exit 1); exit 1; }; }
1459fi
1460
1461ac_ext=c
1462ac_cpp='$CPP $CPPFLAGS'
1463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
698dcdb6 1483
8284b0c5 1484
7c66a493 1485
a0b9e27f
MB
1486
1487
a0b9e27f 1488
a0b9e27f 1489
a0b9e27f 1490
a0b9e27f 1491
a0b9e27f 1492
a0b9e27f 1493
e6cc62c6
VS
1494
1495
1496ac_aux_dir=
1497for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1498 if test -f $ac_dir/install-sh; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/install-sh -c"
1501 break
1502 elif test -f $ac_dir/install.sh; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/install.sh -c"
1505 break
1506 elif test -f $ac_dir/shtool; then
1507 ac_aux_dir=$ac_dir
1508 ac_install_sh="$ac_aux_dir/shtool install -c"
1509 break
1510 fi
1511done
1512if test -z "$ac_aux_dir"; then
1513 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1514echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1518ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1519ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1520
1521# Make sure we can run config.sub.
1522$ac_config_sub sun4 >/dev/null 2>&1 ||
1523 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1524echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1525 { (exit 1); exit 1; }; }
1526
1527echo "$as_me:$LINENO: checking build system type" >&5
1528echo $ECHO_N "checking build system type... $ECHO_C" >&6
1529if test "${ac_cv_build+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531else
1532 ac_cv_build_alias=$build_alias
1533test -z "$ac_cv_build_alias" &&
1534 ac_cv_build_alias=`$ac_config_guess`
1535test -z "$ac_cv_build_alias" &&
1536 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1537echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1538 { (exit 1); exit 1; }; }
1539ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1540 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1541echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1542 { (exit 1); exit 1; }; }
1543
1544fi
1545echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1546echo "${ECHO_T}$ac_cv_build" >&6
1547build=$ac_cv_build
1548build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1549build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1550build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551
1552
1553echo "$as_me:$LINENO: checking host system type" >&5
1554echo $ECHO_N "checking host system type... $ECHO_C" >&6
1555if test "${ac_cv_host+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1557else
1558 ac_cv_host_alias=$host_alias
1559test -z "$ac_cv_host_alias" &&
1560 ac_cv_host_alias=$ac_cv_build_alias
1561ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1568echo "${ECHO_T}$ac_cv_host" >&6
1569host=$ac_cv_host
1570host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575echo "$as_me:$LINENO: checking target system type" >&5
1576echo $ECHO_N "checking target system type... $ECHO_C" >&6
1577if test "${ac_cv_target+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_target_alias=$target_alias
1581test "x$ac_cv_target_alias" = "x" &&
1582 ac_cv_target_alias=$ac_cv_host_alias
1583ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1590echo "${ECHO_T}$ac_cv_target" >&6
1591target=$ac_cv_target
1592target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597# The aliases save the names the user supplied, while $host etc.
1598# will get canonicalized.
1599test -n "$target_alias" &&
7c66a493
VZ
1600 test "$program_prefix$program_suffix$program_transform_name" = \
1601 NONENONEs,x,x, &&
1602 program_prefix=${target_alias}-
8284b0c5
MB
1603
1604
a0b9e27f 1605
10f2d63a 1606WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1607WX_MINOR_VERSION_NUMBER=5
e46d2a18 1608WX_RELEASE_NUMBER=1
10f2d63a 1609
10f2d63a 1610WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1611WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1612
978f1259
RL
1613WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1614
7015ef3a 1615WX_CURRENT=1
6426998c
RL
1616WX_REVISION=0
1617WX_AGE=0
1618
8284b0c5
MB
1619
1620
10f2d63a 1621USE_UNIX=1
73d617c9 1622USE_OS2=0
10f2d63a 1623USE_WIN32=0
f9bc1684 1624USE_DOS=0
b12915c1 1625USE_BEOS=0
1216f52d 1626USE_MAC=0
b12915c1 1627
10f2d63a 1628USE_AIX=
fe0895cf
VS
1629USE_BSD= USE_DARWIN= USE_FREEBSD=
1630USE_GNU= USE_HPUX=
89e3b3e4 1631USE_LINUX=
f6bcfd97 1632USE_NETBSD=
89e3b3e4 1633USE_OPENBSD=
fe0895cf
VS
1634USE_OSF= USE_SGI=
1635USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1636USE_ULTRIX=
89e3b3e4
VZ
1637USE_UNIXWARE=
1638
1639USE_ALPHA=
10f2d63a 1640
ab9b9eab
VZ
1641NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1642
ac0c4cc3 1643ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1644
ac0c4cc3 1645DEFAULT_wxUSE_COCOA=0
10f2d63a 1646DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1647DEFAULT_wxUSE_MAC=0
1648DEFAULT_wxUSE_MGL=0
1725144d 1649DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1650DEFAULT_wxUSE_MOTIF=0
1651DEFAULT_wxUSE_MSW=0
e07802fc 1652DEFAULT_wxUSE_PM=0
f79bd02d 1653DEFAULT_wxUSE_X11=0
10f2d63a 1654
ac0c4cc3 1655DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1656DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1657DEFAULT_DEFAULT_wxUSE_MAC=0
1658DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1659DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1660DEFAULT_DEFAULT_wxUSE_MOTIF=0
1661DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1662DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1663DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1664
d6a55c4b 1665PROGRAM_EXT=
3a922bb4 1666SO_SUFFIX=so
fe0895cf 1667SAMPLES_RPATH_FLAG=
0f1bc9c2 1668SAMPLES_RPATH_POSTLINK=
d6a55c4b 1669
10f2d63a
VZ
1670case "${host}" in
1671 *-hp-hpux* )
1672 USE_HPUX=1
1673 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1674 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1675 SO_SUFFIX=sl
e6cc62c6 1676 cat >>confdefs.h <<\_ACEOF
10f2d63a 1677#define __HPUX__ 1
e6cc62c6 1678_ACEOF
10f2d63a
VZ
1679
1680 ;;
1681 *-*-linux* )
1682 USE_LINUX=1
e6cc62c6 1683 cat >>confdefs.h <<\_ACEOF
10f2d63a 1684#define __LINUX__ 1
e6cc62c6 1685_ACEOF
10f2d63a
VZ
1686
1687 TMP=`uname -m`
1688 if test "x$TMP" = "xalpha"; then
1689 USE_ALPHA=1
e6cc62c6 1690 cat >>confdefs.h <<\_ACEOF
10f2d63a 1691#define __ALPHA__ 1
e6cc62c6 1692_ACEOF
fe0895cf
VS
1693
1694 fi
1695 DEFAULT_DEFAULT_wxUSE_GTK=1
1696 ;;
1697 *-*-gnu* )
1698 USE_GNU=1
e6cc62c6 1699 cat >>confdefs.h <<\_ACEOF
fe0895cf 1700#define __GNU__ 1
e6cc62c6 1701_ACEOF
fe0895cf
VS
1702
1703 TMP=`uname -m`
1704 if test "x$TMP" = "xalpha"; then
1705 USE_ALPHA=1
e6cc62c6 1706 cat >>confdefs.h <<\_ACEOF
fe0895cf 1707#define __ALPHA__ 1
e6cc62c6 1708_ACEOF
10f2d63a
VZ
1709
1710 fi
1711 DEFAULT_DEFAULT_wxUSE_GTK=1
1712 ;;
1713 *-*-irix5* | *-*-irix6* )
1714 USE_SGI=1
1715 USE_SVR4=1
e6cc62c6 1716 cat >>confdefs.h <<\_ACEOF
10f2d63a 1717#define __SGI__ 1
e6cc62c6 1718_ACEOF
10f2d63a 1719
e6cc62c6 1720 cat >>confdefs.h <<\_ACEOF
10f2d63a 1721#define __SVR4__ 1
e6cc62c6 1722_ACEOF
10f2d63a
VZ
1723
1724 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1725 ;;
1726 *-*-solaris2* )
1727 USE_SUN=1
1728 USE_SOLARIS=1
1729 USE_SVR4=1
e6cc62c6 1730 cat >>confdefs.h <<\_ACEOF
10f2d63a 1731#define __SUN__ 1
e6cc62c6 1732_ACEOF
10f2d63a 1733
e6cc62c6 1734 cat >>confdefs.h <<\_ACEOF
10f2d63a 1735#define __SOLARIS__ 1
e6cc62c6 1736_ACEOF
10f2d63a 1737
e6cc62c6 1738 cat >>confdefs.h <<\_ACEOF
10f2d63a 1739#define __SVR4__ 1
e6cc62c6 1740_ACEOF
10f2d63a
VZ
1741
1742 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1743 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1744 ;;
1745 *-*-sunos4* )
1746 USE_SUN=1
1747 USE_SUNOS=1
1748 USE_BSD=1
e6cc62c6 1749 cat >>confdefs.h <<\_ACEOF
10f2d63a 1750#define __SUN__ 1
e6cc62c6 1751_ACEOF
10f2d63a 1752
e6cc62c6 1753 cat >>confdefs.h <<\_ACEOF
10f2d63a 1754#define __SUNOS__ 1
e6cc62c6 1755_ACEOF
10f2d63a 1756
e6cc62c6 1757 cat >>confdefs.h <<\_ACEOF
10f2d63a 1758#define __BSD__ 1
e6cc62c6 1759_ACEOF
10f2d63a
VZ
1760
1761 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1762 ;;
f6bcfd97 1763 *-*-freebsd*)
10f2d63a
VZ
1764 USE_BSD=1
1765 USE_FREEBSD=1
e6cc62c6 1766 cat >>confdefs.h <<\_ACEOF
10f2d63a 1767#define __FREEBSD__ 1
e6cc62c6 1768_ACEOF
10f2d63a 1769
e6cc62c6 1770 cat >>confdefs.h <<\_ACEOF
10f2d63a 1771#define __BSD__ 1
e6cc62c6 1772_ACEOF
95c8801c
VS
1773
1774 DEFAULT_DEFAULT_wxUSE_GTK=1
1775 ;;
1776 *-*-openbsd*)
1777 USE_BSD=1
1778 USE_OPENBSD=1
e6cc62c6 1779 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1780#define __OPENBSD__ 1
e6cc62c6 1781_ACEOF
95c8801c 1782
e6cc62c6 1783 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1784#define __BSD__ 1
e6cc62c6 1785_ACEOF
f6bcfd97
BP
1786
1787 DEFAULT_DEFAULT_wxUSE_GTK=1
1788 ;;
1789 *-*-netbsd*)
1790 USE_BSD=1
1791 USE_NETBSD=1
e6cc62c6 1792 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1793#define __NETBSD__ 1
e6cc62c6 1794_ACEOF
f6bcfd97 1795
e6cc62c6 1796 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1797#define __BSD__ 1
e6cc62c6 1798_ACEOF
10f2d63a
VZ
1799
1800 DEFAULT_DEFAULT_wxUSE_GTK=1
1801 ;;
1802 *-*-osf* )
1803 USE_ALPHA=1
1804 USE_OSF=1
e6cc62c6 1805 cat >>confdefs.h <<\_ACEOF
10f2d63a 1806#define __ALPHA__ 1
e6cc62c6 1807_ACEOF
10f2d63a 1808
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
10f2d63a 1810#define __OSF__ 1
e6cc62c6 1811_ACEOF
10f2d63a
VZ
1812
1813 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1814 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1815 ;;
1816 *-*-dgux5* )
1817 USE_ALPHA=1
1818 USE_SVR4=1
e6cc62c6 1819 cat >>confdefs.h <<\_ACEOF
10f2d63a 1820#define __ALPHA__ 1
e6cc62c6 1821_ACEOF
10f2d63a 1822
e6cc62c6 1823 cat >>confdefs.h <<\_ACEOF
10f2d63a 1824#define __SVR4__ 1
e6cc62c6 1825_ACEOF
10f2d63a
VZ
1826
1827 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1828 ;;
1829 *-*-sysv5* )
1830 USE_SYSV=1
1831 USE_SVR4=1
e6cc62c6 1832 cat >>confdefs.h <<\_ACEOF
10f2d63a 1833#define __SYSV__ 1
e6cc62c6 1834_ACEOF
10f2d63a 1835
e6cc62c6 1836 cat >>confdefs.h <<\_ACEOF
10f2d63a 1837#define __SVR4__ 1
e6cc62c6 1838_ACEOF
10f2d63a
VZ
1839
1840 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1841 ;;
1842 *-*-aix* )
1843 USE_AIX=1
1844 USE_SYSV=1
1845 USE_SVR4=1
2b5f62a0 1846 SO_SUFFIX=a
e6cc62c6 1847 cat >>confdefs.h <<\_ACEOF
10f2d63a 1848#define __AIX__ 1
e6cc62c6 1849_ACEOF
10f2d63a 1850
e6cc62c6 1851 cat >>confdefs.h <<\_ACEOF
10f2d63a 1852#define __SYSV__ 1
e6cc62c6 1853_ACEOF
10f2d63a 1854
e6cc62c6 1855 cat >>confdefs.h <<\_ACEOF
10f2d63a 1856#define __SVR4__ 1
e6cc62c6 1857_ACEOF
10f2d63a
VZ
1858
1859 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1860 ;;
1861
89e3b3e4
VZ
1862 *-*-*UnixWare*)
1863 USE_SYSV=1
1864 USE_SVR4=1
1865 USE_UNIXWARE=1
e6cc62c6 1866 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1867#define __UNIXWARE__ 1
e6cc62c6 1868_ACEOF
89e3b3e4
VZ
1869
1870 ;;
1871
1c8183e2 1872 *-*-cygwin* | *-*-mingw32* )
17234b26 1873 SO_SUFFIX=dll
cf27ef00 1874 PROGRAM_EXT=".exe"
7b7a7637 1875 RESCOMP=windres
10f2d63a
VZ
1876 DEFAULT_DEFAULT_wxUSE_MSW=1
1877 ;;
1878
f9bc1684
VS
1879 *-pc-msdosdjgpp )
1880 USE_UNIX=0
1881 USE_DOS=1
e6cc62c6 1882 cat >>confdefs.h <<\_ACEOF
f9bc1684 1883#define __DOS__ 1
e6cc62c6 1884_ACEOF
f9bc1684
VS
1885
1886 PROGRAM_EXT=".exe"
1887 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1888 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1889 ;;
1890
6fa882bd 1891 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1892 cat >>confdefs.h <<\_ACEOF
10f2d63a 1893#define __EMX__ 1
e6cc62c6 1894_ACEOF
10f2d63a 1895
73d617c9 1896 USE_OS2=1
7015ef3a
VZ
1897 cat >>confdefs.h <<\_ACEOF
1898#define __OS2__ 1
1899_ACEOF
1900
cf27ef00 1901 PROGRAM_EXT=".exe"
e07802fc 1902 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1903 CXX=gcc
73d617c9 1904 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1905 ac_executable_extensions=".exe"
1906 export ac_executable_extensions
1907 ac_save_IFS="$IFS"
e46d2a18 1908 IFS='\\'
d5fc095c
VS
1909 ac_TEMP_PATH=
1910 for ac_dir in $PATH; do
1911 IFS=$ac_save_IFS
1912 if test -z "$ac_TEMP_PATH"; then
1913 ac_TEMP_PATH="$ac_dir"
1914 else
1915 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1916 fi
1917 done
1918 export PATH="$ac_TEMP_PATH"
1919 unset ac_TEMP_PATH
10f2d63a
VZ
1920 ;;
1921
d08b457b
GD
1922 powerpc-*-darwin* )
1923 USE_BSD=1
f11bdd03 1924 USE_DARWIN=1
3a922bb4 1925 SO_SUFFIX=dylib
e6cc62c6 1926 cat >>confdefs.h <<\_ACEOF
f11bdd03 1927#define __BSD__ 1
e6cc62c6 1928_ACEOF
b4085ce6 1929
e6cc62c6 1930 cat >>confdefs.h <<\_ACEOF
f11bdd03 1931#define __DARWIN__ 1
e6cc62c6 1932_ACEOF
d08b457b 1933
e6cc62c6 1934 cat >>confdefs.h <<\_ACEOF
d08b457b 1935#define __POWERPC__ 1
e6cc62c6 1936_ACEOF
82d43113 1937
e6cc62c6 1938 cat >>confdefs.h <<\_ACEOF
82d43113 1939#define TARGET_CARBON 1
e6cc62c6 1940_ACEOF
b4085ce6
GD
1941
1942 DEFAULT_DEFAULT_wxUSE_MAC=1
1943 ;;
1944
b12915c1
VZ
1945 *-*-beos* )
1946 USE_BEOS=1
e6cc62c6 1947 cat >>confdefs.h <<\_ACEOF
b12915c1 1948#define __BEOS__ 1
e6cc62c6 1949_ACEOF
b12915c1
VZ
1950
1951 ;;
1952
10f2d63a 1953 *)
e6cc62c6
VS
1954 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1955echo "$as_me: error: unknown system type ${host}." >&2;}
1956 { (exit 1); exit 1; }; }
10f2d63a
VZ
1957esac
1958
8284b0c5
MB
1959
1960
1961
1962 wx_arg_cache_file="configarg.cache"
1963 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1964 rm -f ${wx_arg_cache_file}.tmp
1965 touch ${wx_arg_cache_file}.tmp
1966 touch ${wx_arg_cache_file}
e6cc62c6 1967
10f2d63a
VZ
1968
1969DEBUG_CONFIGURE=0
1970if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1971 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1972 DEFAULT_wxUSE_STL=no
1e6feb95 1973
d8356fa3
VZ
1974 DEFAULT_wxUSE_NANOX=no
1975
10f2d63a
VZ
1976 DEFAULT_wxUSE_THREADS=yes
1977
1978 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1979 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1980 DEFAULT_wxUSE_PROFILE=no
1981 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1982 DEFAULT_wxUSE_NO_RTTI=no
1983 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1984 DEFAULT_wxUSE_PERMISSIVE=no
1985 DEFAULT_wxUSE_DEBUG_FLAG=yes
1986 DEFAULT_wxUSE_DEBUG_INFO=yes
1987 DEFAULT_wxUSE_DEBUG_GDB=yes
1988 DEFAULT_wxUSE_MEM_TRACING=no
1989 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1990 DEFAULT_wxUSE_DMALLOC=no
1991 DEFAULT_wxUSE_APPLE_IEEE=no
1992
e46d2a18 1993 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1994 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1995 DEFAULT_wxUSE_LOGWINDOW=no
1996 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1997 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1998
1999 DEFAULT_wxUSE_GUI=yes
1e6feb95 2000 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2001
3e44f09d 2002 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2003 DEFAULT_wxUSE_XML=no
2004 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2005 DEFAULT_wxUSE_ZLIB=no
2006 DEFAULT_wxUSE_LIBPNG=no
2007 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2008 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2009 DEFAULT_wxUSE_LIBXPM=no
10f2d63a 2010 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2011 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2012
eb4efbdc 2013 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2014 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2015 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2016 DEFAULT_wxUSE_CMDLINE_PARSER=no
2017 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2018 DEFAULT_wxUSE_TIMER=no
2019 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2020 DEFAULT_wxUSE_FILE=no
1e6feb95 2021 DEFAULT_wxUSE_FFILE=no
a3a584a7 2022 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2023 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2024 DEFAULT_wxUSE_WAVE=no
2025 DEFAULT_wxUSE_INTL=no
2026 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2027 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2028 DEFAULT_wxUSE_STREAMS=no
2029 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2030 DEFAULT_wxUSE_OLE=no
2031 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2032 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2033 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2034 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2035 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2036 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2037 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2038
2039 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2040 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2041 DEFAULT_wxUSE_POSTSCRIPT=no
2042
10f2d63a
VZ
2043 DEFAULT_wxUSE_CLIPBOARD=no
2044 DEFAULT_wxUSE_TOOLTIPS=no
2045 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2046 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2047 DEFAULT_wxUSE_SPLINES=no
2048
2049 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2050 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2051 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2052
10f2d63a
VZ
2053 DEFAULT_wxUSE_RESOURCES=no
2054 DEFAULT_wxUSE_CONSTRAINTS=no
2055 DEFAULT_wxUSE_IPC=no
2056 DEFAULT_wxUSE_HELP=no
29fd3c0c 2057 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2058 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2059 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2060 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2061 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2062 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2063 DEFAULT_wxUSE_PROTOCOL=no
2064 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2065 DEFAULT_wxUSE_PROTOCOL_FTP=no
2066 DEFAULT_wxUSE_PROTOCOL_FILE=no
2067 DEFAULT_wxUSE_URL=no
3bd8fb5f 2068
10f2d63a 2069 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2070 DEFAULT_wxUSE_CHOICEDLG=no
2071 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2072 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2073 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2074 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2075 DEFAULT_wxUSE_FONTDLG=no
2076 DEFAULT_wxUSE_MSGDLG=no
2077 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2078 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2079 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2080 DEFAULT_wxUSE_STARTUP_TIPS=no
2081 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2082 DEFAULT_wxUSE_WIZARDDLG=no
2083
1e6feb95 2084 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2085 DEFAULT_wxUSE_MINIFRAME=no
2086 DEFAULT_wxUSE_HTML=no
24528b0c 2087 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2088 DEFAULT_wxUSE_FS_INET=no
2089 DEFAULT_wxUSE_FS_ZIP=no
2090 DEFAULT_wxUSE_BUSYINFO=no
2091 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2092 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2093 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2094
2095 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2096 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2097 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2098 DEFAULT_wxUSE_CALCTRL=no
2099 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2100 DEFAULT_wxUSE_CHECKBOX=no
2101 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2102 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2103 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2104 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2105 DEFAULT_wxUSE_GAUGE=no
2106 DEFAULT_wxUSE_GRID=no
10f2d63a 2107 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2108 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2109 DEFAULT_wxUSE_LISTBOX=no
2110 DEFAULT_wxUSE_LISTCTRL=no
2111 DEFAULT_wxUSE_NOTEBOOK=no
2112 DEFAULT_wxUSE_RADIOBOX=no
2113 DEFAULT_wxUSE_RADIOBTN=no
2114 DEFAULT_wxUSE_SASH=no
2115 DEFAULT_wxUSE_SCROLLBAR=no
2116 DEFAULT_wxUSE_SLIDER=no
2117 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2118 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2119 DEFAULT_wxUSE_SPLITTER=no
2120 DEFAULT_wxUSE_STATBMP=no
2121 DEFAULT_wxUSE_STATBOX=no
2122 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2123 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2124 DEFAULT_wxUSE_STATUSBAR=yes
2125 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2126 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2127 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2128 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2129 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2130 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2131 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2132 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2133 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2134
2135 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2136 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2137 DEFAULT_wxUSE_WCSRTOMBS=no
2138
edae8572 2139 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2140 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2141 DEFAULT_wxUSE_GIF=no
2142 DEFAULT_wxUSE_PCX=no
2143 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2144 DEFAULT_wxUSE_IFF=no
0046ff7c 2145 DEFAULT_wxUSE_XPM=no
658974ae 2146 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2147 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2148
e9e0dc15 2149 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2150 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2151else
1e6feb95 2152 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2153 DEFAULT_wxUSE_STL=no
1e6feb95 2154
d8356fa3
VZ
2155 DEFAULT_wxUSE_NANOX=no
2156
10f2d63a
VZ
2157 DEFAULT_wxUSE_THREADS=yes
2158
2159 DEFAULT_wxUSE_SHARED=yes
2160 DEFAULT_wxUSE_OPTIMISE=yes
2161 DEFAULT_wxUSE_PROFILE=no
2162 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2163 DEFAULT_wxUSE_NO_RTTI=no
2164 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2165 DEFAULT_wxUSE_PERMISSIVE=no
2166 DEFAULT_wxUSE_DEBUG_FLAG=no
2167 DEFAULT_wxUSE_DEBUG_INFO=no
2168 DEFAULT_wxUSE_DEBUG_GDB=no
2169 DEFAULT_wxUSE_MEM_TRACING=no
2170 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2171 DEFAULT_wxUSE_DMALLOC=no
2172 DEFAULT_wxUSE_APPLE_IEEE=yes
2173
e46d2a18 2174 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2175 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2176 DEFAULT_wxUSE_LOGWINDOW=yes
2177 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2178 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2179
2180 DEFAULT_wxUSE_GUI=yes
2181
aa2d9ecc 2182 DEFAULT_wxUSE_REGEX=yes
672abd7a 2183 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2184 DEFAULT_wxUSE_EXPAT=yes
2185 DEFAULT_wxUSE_ZLIB=yes
2186 DEFAULT_wxUSE_LIBPNG=yes
2187 DEFAULT_wxUSE_LIBJPEG=yes
2188 DEFAULT_wxUSE_LIBTIFF=yes
2189 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2190 DEFAULT_wxUSE_LIBMSPACK=yes
16b52fa1 2191 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2192 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2193
eb4efbdc 2194 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2195 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2196 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2197 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2198 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2199 DEFAULT_wxUSE_TIMER=yes
2200 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2201 DEFAULT_wxUSE_FILE=yes
1e6feb95 2202 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2203 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2204 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2205 DEFAULT_wxUSE_WAVE=no
2206 DEFAULT_wxUSE_INTL=yes
2207 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2208 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2209 DEFAULT_wxUSE_STREAMS=yes
2210 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2211 DEFAULT_wxUSE_OLE=yes
2212 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2213 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2214 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2215 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2216 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2217 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2218 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2219
2220 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2221 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2222 DEFAULT_wxUSE_POSTSCRIPT=yes
2223
10f2d63a
VZ
2224 DEFAULT_wxUSE_CLIPBOARD=yes
2225 DEFAULT_wxUSE_TOOLTIPS=yes
2226 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2227 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2228 DEFAULT_wxUSE_SPLINES=yes
2229
2230 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2231 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2232 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2233
2b5f62a0 2234 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2235 DEFAULT_wxUSE_CONSTRAINTS=yes
2236 DEFAULT_wxUSE_IPC=yes
2237 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2238 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2239 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2240 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2241 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2242 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2243 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2244 DEFAULT_wxUSE_PROTOCOL=yes
2245 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2246 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2247 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2248 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2249
2250 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2251 DEFAULT_wxUSE_CHOICEDLG=yes
2252 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2253 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2254 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2255 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2256 DEFAULT_wxUSE_FONTDLG=yes
2257 DEFAULT_wxUSE_MSGDLG=yes
2258 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2259 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2260 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2261 DEFAULT_wxUSE_STARTUP_TIPS=yes
2262 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2263 DEFAULT_wxUSE_WIZARDDLG=yes
2264
1e6feb95 2265 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2266 DEFAULT_wxUSE_MINIFRAME=yes
2267 DEFAULT_wxUSE_HTML=yes
24528b0c 2268 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2269 DEFAULT_wxUSE_FS_INET=yes
2270 DEFAULT_wxUSE_FS_ZIP=yes
2271 DEFAULT_wxUSE_BUSYINFO=yes
2272 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2273 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2274 DEFAULT_wxUSE_VALIDATORS=yes
2275
2276 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2277 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2278 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2279 DEFAULT_wxUSE_CALCTRL=yes
2280 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2281 DEFAULT_wxUSE_CHECKBOX=yes
2282 DEFAULT_wxUSE_CHECKLST=yes
2283 DEFAULT_wxUSE_CHOICE=yes
2284 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2285 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2286 DEFAULT_wxUSE_GAUGE=yes
2287 DEFAULT_wxUSE_GRID=yes
10f2d63a 2288 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2289 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2290 DEFAULT_wxUSE_LISTBOX=yes
2291 DEFAULT_wxUSE_LISTCTRL=yes
2292 DEFAULT_wxUSE_NOTEBOOK=yes
2293 DEFAULT_wxUSE_RADIOBOX=yes
2294 DEFAULT_wxUSE_RADIOBTN=yes
2295 DEFAULT_wxUSE_SASH=yes
2296 DEFAULT_wxUSE_SCROLLBAR=yes
2297 DEFAULT_wxUSE_SLIDER=yes
2298 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2299 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2300 DEFAULT_wxUSE_SPLITTER=yes
2301 DEFAULT_wxUSE_STATBMP=yes
2302 DEFAULT_wxUSE_STATBOX=yes
2303 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2304 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2305 DEFAULT_wxUSE_STATUSBAR=yes
2306 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2307 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2308 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2309 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2310 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2311 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2312 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2313 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2314 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2315
2316 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2317 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2318 DEFAULT_wxUSE_WCSRTOMBS=no
2319
edae8572 2320 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2321 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2322 DEFAULT_wxUSE_GIF=yes
2323 DEFAULT_wxUSE_PCX=yes
cc0e8480 2324 DEFAULT_wxUSE_IFF=no
10f2d63a 2325 DEFAULT_wxUSE_PNM=yes
0046ff7c 2326 DEFAULT_wxUSE_XPM=yes
658974ae 2327 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2328 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2329
e9e0dc15 2330 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2331 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2332fi
2333
8284b0c5
MB
2334
2335
10f2d63a 2336for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2337 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2338 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2339 has_toolkit_in_cache=1
2340 eval "DEFAULT_$LINE"
2341 eval "CACHE_$toolkit=1"
2342 fi
2343done
2344
8284b0c5
MB
2345
2346
5005acfe 2347 enablestring=
e6cc62c6
VS
2348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2349echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2350 no_cache=0
2351 # Check whether --enable-gui or --disable-gui was given.
2352if test "${enable_gui+set}" = set; then
2353 enableval="$enable_gui"
e6cc62c6 2354
10f2d63a
VZ
2355 if test "$enableval" = yes; then
2356 ac_cv_use_gui='wxUSE_GUI=yes'
2357 else
2358 ac_cv_use_gui='wxUSE_GUI=no'
2359 fi
e6cc62c6 2360
10f2d63a 2361else
e6cc62c6 2362
10f2d63a
VZ
2363 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2364 if test "x$LINE" != x ; then
2365 eval "DEFAULT_$LINE"
2366 else
2367 no_cache=1
2368 fi
2369
2370 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2371
e6cc62c6 2372fi;
10f2d63a
VZ
2373
2374 eval "$ac_cv_use_gui"
2375 if test "$no_cache" != 1; then
2376 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2377 fi
2378
2379 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2380 echo "$as_me:$LINENO: result: yes" >&5
2381echo "${ECHO_T}yes" >&6
10f2d63a 2382 else
e6cc62c6
VS
2383 echo "$as_me:$LINENO: result: no" >&5
2384echo "${ECHO_T}no" >&6
10f2d63a 2385 fi
e6cc62c6 2386
10f2d63a 2387
9747f85d
VS
2388 enablestring=
2389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2390echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2391 no_cache=0
2392 # Check whether --enable-monolithic or --disable-monolithic was given.
2393if test "${enable_monolithic+set}" = set; then
2394 enableval="$enable_monolithic"
2395
2396 if test "$enableval" = yes; then
2397 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2398 else
2399 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2400 fi
2401
2402else
2403
2404 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2405 if test "x$LINE" != x ; then
2406 eval "DEFAULT_$LINE"
2407 else
2408 no_cache=1
2409 fi
2410
2411 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2412
2413fi;
2414
2415 eval "$ac_cv_use_monolithic"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_MONOLITHIC" = yes; then
2421 echo "$as_me:$LINENO: result: yes" >&5
2422echo "${ECHO_T}yes" >&6
2423 else
2424 echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6
2426 fi
2427
2428
b12915c1 2429if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2430
8284b0c5 2431
5005acfe 2432 enablestring=
e6cc62c6
VS
2433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2434echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2435 no_cache=0
2436 # Check whether --enable-universal or --disable-universal was given.
2437if test "${enable_universal+set}" = set; then
2438 enableval="$enable_universal"
e6cc62c6 2439
1e6feb95
VZ
2440 if test "$enableval" = yes; then
2441 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2442 else
2443 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2444 fi
e6cc62c6 2445
1e6feb95 2446else
e6cc62c6 2447
1e6feb95
VZ
2448 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2449 if test "x$LINE" != x ; then
2450 eval "DEFAULT_$LINE"
2451 else
2452 no_cache=1
2453 fi
2454
2455 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2456
e6cc62c6 2457fi;
1e6feb95
VZ
2458
2459 eval "$ac_cv_use_universal"
2460 if test "$no_cache" != 1; then
2461 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2462 fi
2463
2464 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2465 echo "$as_me:$LINENO: result: yes" >&5
2466echo "${ECHO_T}yes" >&6
1e6feb95 2467 else
e6cc62c6
VS
2468 echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6
1e6feb95 2470 fi
e6cc62c6
VS
2471
2472
10f2d63a
VZ
2473# Check whether --with-gtk or --without-gtk was given.
2474if test "${with_gtk+set}" = set; then
2475 withval="$with_gtk"
2476 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2477fi;
10f2d63a
VZ
2478
2479# Check whether --with-motif or --without-motif was given.
2480if test "${with_motif+set}" = set; then
2481 withval="$with_motif"
2482 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2483fi;
10f2d63a 2484
b4085ce6
GD
2485# Check whether --with-mac or --without-mac was given.
2486if test "${with_mac+set}" = set; then
2487 withval="$with_mac"
2488 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2489fi;
b4085ce6 2490
ac0c4cc3
DE
2491# Check whether --with-cocoa or --without-cocoa was given.
2492if test "${with_cocoa+set}" = set; then
2493 withval="$with_cocoa"
2494 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2495fi;
ac0c4cc3 2496
10f2d63a
VZ
2497# Check whether --with-wine or --without-wine was given.
2498if test "${with_wine+set}" = set; then
2499 withval="$with_wine"
89e6bf6d 2500 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2501fi;
10f2d63a 2502
77e13408
RL
2503# Check whether --with-msw or --without-msw was given.
2504if test "${with_msw+set}" = set; then
2505 withval="$with_msw"
b4efce5e 2506 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2507fi;
10f2d63a 2508
e07802fc
VZ
2509# Check whether --with-pm or --without-pm was given.
2510if test "${with_pm+set}" = set; then
2511 withval="$with_pm"
2512 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2513fi;
698dcdb6 2514
1e6feb95
VZ
2515# Check whether --with-mgl or --without-mgl was given.
2516if test "${with_mgl+set}" = set; then
2517 withval="$with_mgl"
6c657b52 2518 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2519fi;
1e6feb95 2520
1725144d
RR
2521# Check whether --with-microwin or --without-microwin was given.
2522if test "${with_microwin+set}" = set; then
2523 withval="$with_microwin"
2524 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2525fi;
1725144d 2526
f79bd02d
JS
2527# Check whether --with-x11 or --without-x11 was given.
2528if test "${with_x11+set}" = set; then
2529 withval="$with_x11"
3c011993 2530 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2531fi;
a0b9e27f 2532
5005acfe 2533 enablestring=
e6cc62c6
VS
2534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2535echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2536 no_cache=0
ba875e66
VZ
2537 # Check whether --enable-nanox or --disable-nanox was given.
2538if test "${enable_nanox+set}" = set; then
2539 enableval="$enable_nanox"
e6cc62c6 2540
d8356fa3 2541 if test "$enableval" = yes; then
ba875e66 2542 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2543 else
ba875e66 2544 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2545 fi
e6cc62c6 2546
d8356fa3 2547else
e6cc62c6 2548
d8356fa3
VZ
2549 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
ba875e66 2556 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2557
e6cc62c6 2558fi;
d8356fa3 2559
ba875e66 2560 eval "$ac_cv_use_nanox"
d8356fa3 2561 if test "$no_cache" != 1; then
ba875e66 2562 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2563 fi
2564
2565 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2566 echo "$as_me:$LINENO: result: yes" >&5
2567echo "${ECHO_T}yes" >&6
d8356fa3 2568 else
e6cc62c6
VS
2569 echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6
d8356fa3 2571 fi
e6cc62c6 2572
8284b0c5 2573
d74f4b5a 2574
5005acfe 2575 enablestring=
e6cc62c6
VS
2576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2577echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2578 no_cache=0
2579 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2580if test "${enable_gtk2+set}" = set; then
2581 enableval="$enable_gtk2"
e6cc62c6 2582
d74f4b5a
VZ
2583 if test "$enableval" = yes; then
2584 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2585 else
2586 ac_cv_use_gtk2='wxUSE_GTK2=no'
2587 fi
e6cc62c6 2588
10f2d63a 2589else
e6cc62c6 2590
d74f4b5a
VZ
2591 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2599
e6cc62c6 2600fi;
328a083c 2601
d74f4b5a
VZ
2602 eval "$ac_cv_use_gtk2"
2603 if test "$no_cache" != 1; then
2604 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2605 fi
2606
2607 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2608 echo "$as_me:$LINENO: result: yes" >&5
2609echo "${ECHO_T}yes" >&6
d74f4b5a 2610 else
e6cc62c6
VS
2611 echo "$as_me:$LINENO: result: no" >&5
2612echo "${ECHO_T}no" >&6
d74f4b5a 2613 fi
d74f4b5a 2614
5c6fa7d2 2615
e6cc62c6
VS
2616
2617 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2618echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2619 no_cache=0
e6cc62c6
VS
2620
2621# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2622if test "${with_libpng+set}" = set; then
2623 withval="$with_libpng"
e6cc62c6 2624
10f2d63a 2625 if test "$withval" = yes; then
b12915c1 2626 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2627 elif test "$withval" = no; then
b12915c1 2628 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2629 elif test "$withval" = sys; then
2630 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2631 elif test "$withval" = builtin; then
2632 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2633 else
e6cc62c6
VS
2634 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2635echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2636 { (exit 1); exit 1; }; }
10f2d63a 2637 fi
e6cc62c6 2638
10f2d63a 2639else
e6cc62c6 2640
b12915c1 2641 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2642 if test "x$LINE" != x ; then
2643 eval "DEFAULT_$LINE"
2644 else
2645 no_cache=1
2646 fi
2647
b12915c1 2648 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2649
e6cc62c6 2650fi;
10f2d63a 2651
b12915c1 2652 eval "$ac_cv_use_libpng"
10f2d63a 2653 if test "$no_cache" != 1; then
b12915c1 2654 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2655 fi
2656
b12915c1 2657 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2658 echo "$as_me:$LINENO: result: yes" >&5
2659echo "${ECHO_T}yes" >&6
422107f9 2660 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2661 echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6
422107f9 2663 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2664 echo "$as_me:$LINENO: result: system version" >&5
2665echo "${ECHO_T}system version" >&6
4f14bcd8 2666 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2667 echo "$as_me:$LINENO: result: builtin version" >&5
2668echo "${ECHO_T}builtin version" >&6
422107f9 2669 else
e6cc62c6
VS
2670 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2671echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2672 { (exit 1); exit 1; }; }
10f2d63a 2673 fi
10f2d63a 2674
e6cc62c6
VS
2675
2676 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2677echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2678 no_cache=0
e6cc62c6
VS
2679
2680# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2681if test "${with_libjpeg+set}" = set; then
2682 withval="$with_libjpeg"
e6cc62c6 2683
10f2d63a 2684 if test "$withval" = yes; then
b12915c1 2685 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2686 elif test "$withval" = no; then
b12915c1 2687 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2688 elif test "$withval" = sys; then
2689 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2690 elif test "$withval" = builtin; then
2691 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2692 else
e6cc62c6
VS
2693 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2694echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2695 { (exit 1); exit 1; }; }
10f2d63a 2696 fi
e6cc62c6 2697
10f2d63a 2698else
e6cc62c6 2699
b12915c1 2700 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
b12915c1 2707 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2708
e6cc62c6 2709fi;
10f2d63a 2710
b12915c1 2711 eval "$ac_cv_use_libjpeg"
10f2d63a 2712 if test "$no_cache" != 1; then
b12915c1 2713 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2714 fi
2715
b12915c1 2716 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2717 echo "$as_me:$LINENO: result: yes" >&5
2718echo "${ECHO_T}yes" >&6
422107f9 2719 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2720 echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6
422107f9 2722 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2723 echo "$as_me:$LINENO: result: system version" >&5
2724echo "${ECHO_T}system version" >&6
4f14bcd8 2725 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2726 echo "$as_me:$LINENO: result: builtin version" >&5
2727echo "${ECHO_T}builtin version" >&6
422107f9 2728 else
e6cc62c6
VS
2729 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2730echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2731 { (exit 1); exit 1; }; }
10f2d63a 2732 fi
10f2d63a 2733
e6cc62c6
VS
2734
2735 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2736echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2737 no_cache=0
e6cc62c6
VS
2738
2739# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2740if test "${with_libtiff+set}" = set; then
2741 withval="$with_libtiff"
e6cc62c6 2742
10f2d63a 2743 if test "$withval" = yes; then
b12915c1 2744 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2745 elif test "$withval" = no; then
b12915c1 2746 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2747 elif test "$withval" = sys; then
2748 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2749 elif test "$withval" = builtin; then
2750 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2751 else
e6cc62c6
VS
2752 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2753echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2754 { (exit 1); exit 1; }; }
10f2d63a 2755 fi
e6cc62c6 2756
10f2d63a 2757else
e6cc62c6 2758
b12915c1 2759 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
b12915c1 2766 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2767
e6cc62c6 2768fi;
10f2d63a 2769
b12915c1 2770 eval "$ac_cv_use_libtiff"
10f2d63a 2771 if test "$no_cache" != 1; then
b12915c1 2772 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2773 fi
2774
b12915c1 2775 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2776 echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
0dcf9893 2778 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
0dcf9893 2781 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2782 echo "$as_me:$LINENO: result: system version" >&5
2783echo "${ECHO_T}system version" >&6
4f14bcd8 2784 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2785 echo "$as_me:$LINENO: result: builtin version" >&5
2786echo "${ECHO_T}builtin version" >&6
0dcf9893 2787 else
e6cc62c6
VS
2788 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2789echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2790 { (exit 1); exit 1; }; }
10f2d63a 2791 fi
10f2d63a 2792
e6cc62c6 2793
89fe663f
VZ
2794 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2795echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2796 no_cache=0
2797
2798# Check whether --with-libxpm or --without-libxpm was given.
2799if test "${with_libxpm+set}" = set; then
2800 withval="$with_libxpm"
2801
2802 if test "$withval" = yes; then
2803 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2804 elif test "$withval" = no; then
2805 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2806 elif test "$withval" = sys; then
2807 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2808 elif test "$withval" = builtin; then
2809 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2810 else
2811 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2812echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2813 { (exit 1); exit 1; }; }
2814 fi
2815
2816else
2817
2818 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2826
2827fi;
2828
2829 eval "$ac_cv_use_libxpm"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$wxUSE_LIBXPM" = yes; then
2835 echo "$as_me:$LINENO: result: yes" >&5
2836echo "${ECHO_T}yes" >&6
2837 elif test "$wxUSE_LIBXPM" = no; then
2838 echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6
2840 elif test "$wxUSE_LIBXPM" = sys; then
2841 echo "$as_me:$LINENO: result: system version" >&5
2842echo "${ECHO_T}system version" >&6
2843 elif test "$wxUSE_LIBXPM" = builtin; then
2844 echo "$as_me:$LINENO: result: builtin version" >&5
2845echo "${ECHO_T}builtin version" >&6
2846 else
2847 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2848echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2849 { (exit 1); exit 1; }; }
2850 fi
2851
2852
3527f29c
VS
2853 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2854echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2855 no_cache=0
2856
2857# Check whether --with-libmspack or --without-libmspack was given.
2858if test "${with_libmspack+set}" = set; then
2859 withval="$with_libmspack"
2860
2861 if test "$withval" = yes; then
2862 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2863 else
2864 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2865 fi
2866
2867else
2868
2869 LINE=`grep "wxUSE_LIBMSPACK" ${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_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2877
2878fi;
2879
2880 eval "$ac_cv_use_libmspack"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_LIBMSPACK" = yes; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
2888 else
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 fi
2892
2893
e6cc62c6
VS
2894 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2895echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2896 no_cache=0
e6cc62c6
VS
2897
2898# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2899if test "${with_opengl+set}" = set; then
2900 withval="$with_opengl"
e6cc62c6 2901
10f2d63a 2902 if test "$withval" = yes; then
b12915c1 2903 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2904 else
b12915c1 2905 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2906 fi
e6cc62c6 2907
10f2d63a 2908else
e6cc62c6 2909
b12915c1 2910 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2911 if test "x$LINE" != x ; then
2912 eval "DEFAULT_$LINE"
2913 else
2914 no_cache=1
2915 fi
2916
b12915c1 2917 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2918
e6cc62c6 2919fi;
10f2d63a 2920
b12915c1 2921 eval "$ac_cv_use_opengl"
10f2d63a 2922 if test "$no_cache" != 1; then
b12915c1 2923 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2924 fi
2925
b12915c1 2926 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
10f2d63a 2929 else
e6cc62c6
VS
2930 echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
10f2d63a 2932 fi
e6cc62c6 2933
10f2d63a 2934
b12915c1
VZ
2935fi
2936
5c6fa7d2 2937
e6cc62c6
VS
2938 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2939echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2940 no_cache=0
e6cc62c6
VS
2941
2942# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2943if test "${with_dmalloc+set}" = set; then
2944 withval="$with_dmalloc"
e6cc62c6 2945
c7a2bf27 2946 if test "$withval" = yes; then
b12915c1 2947 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2948 else
b12915c1 2949 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2950 fi
e6cc62c6 2951
c7a2bf27 2952else
e6cc62c6 2953
b12915c1 2954 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2955 if test "x$LINE" != x ; then
2956 eval "DEFAULT_$LINE"
2957 else
2958 no_cache=1
2959 fi
2960
b12915c1 2961 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2962
e6cc62c6 2963fi;
c7a2bf27 2964
b12915c1 2965 eval "$ac_cv_use_dmalloc"
c7a2bf27 2966 if test "$no_cache" != 1; then
b12915c1 2967 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2968 fi
2969
b12915c1 2970 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2971 echo "$as_me:$LINENO: result: yes" >&5
2972echo "${ECHO_T}yes" >&6
c7a2bf27 2973 else
e6cc62c6
VS
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
c7a2bf27 2976 fi
c7a2bf27 2977
e6cc62c6
VS
2978
2979 echo "$as_me:$LINENO: checking for --with-regex" >&5
2980echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2981 no_cache=0
e6cc62c6
VS
2982
2983# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2984if test "${with_regex+set}" = set; then
2985 withval="$with_regex"
e6cc62c6 2986
3e44f09d
VZ
2987 if test "$withval" = yes; then
2988 ac_cv_use_regex='wxUSE_REGEX=yes'
2989 elif test "$withval" = no; then
2990 ac_cv_use_regex='wxUSE_REGEX=no'
2991 elif test "$withval" = sys; then
2992 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2993 elif test "$withval" = builtin; then
2994 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2995 else
e6cc62c6
VS
2996 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2997echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2998 { (exit 1); exit 1; }; }
3e44f09d 2999 fi
e6cc62c6 3000
3e44f09d 3001else
e6cc62c6 3002
3e44f09d
VZ
3003 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3004 if test "x$LINE" != x ; then
3005 eval "DEFAULT_$LINE"
3006 else
3007 no_cache=1
3008 fi
3009
3010 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3011
e6cc62c6 3012fi;
3e44f09d
VZ
3013
3014 eval "$ac_cv_use_regex"
3015 if test "$no_cache" != 1; then
3016 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3017 fi
3018
3019 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3020 echo "$as_me:$LINENO: result: yes" >&5
3021echo "${ECHO_T}yes" >&6
3e44f09d 3022 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3023 echo "$as_me:$LINENO: result: no" >&5
3024echo "${ECHO_T}no" >&6
3e44f09d 3025 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3026 echo "$as_me:$LINENO: result: system version" >&5
3027echo "${ECHO_T}system version" >&6
4f14bcd8 3028 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3029 echo "$as_me:$LINENO: result: builtin version" >&5
3030echo "${ECHO_T}builtin version" >&6
3e44f09d 3031 else
e6cc62c6
VS
3032 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3033echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3034 { (exit 1); exit 1; }; }
3e44f09d 3035 fi
3e44f09d 3036
e6cc62c6
VS
3037
3038 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3039echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3040 no_cache=0
e6cc62c6
VS
3041
3042# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3043if test "${with_zlib+set}" = set; then
3044 withval="$with_zlib"
e6cc62c6 3045
10f2d63a 3046 if test "$withval" = yes; then
b12915c1 3047 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3048 elif test "$withval" = no; then
b12915c1 3049 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3050 elif test "$withval" = sys; then
3051 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3052 elif test "$withval" = builtin; then
3053 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3054 else
e6cc62c6
VS
3055 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3056echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3057 { (exit 1); exit 1; }; }
10f2d63a 3058 fi
e6cc62c6 3059
10f2d63a 3060else
e6cc62c6 3061
b12915c1 3062 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
b12915c1 3069 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3070
e6cc62c6 3071fi;
10f2d63a 3072
b12915c1 3073 eval "$ac_cv_use_zlib"
10f2d63a 3074 if test "$no_cache" != 1; then
b12915c1 3075 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3076 fi
3077
b12915c1 3078 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3079 echo "$as_me:$LINENO: result: yes" >&5
3080echo "${ECHO_T}yes" >&6
422107f9 3081 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3082 echo "$as_me:$LINENO: result: no" >&5
3083echo "${ECHO_T}no" >&6
422107f9 3084 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3085 echo "$as_me:$LINENO: result: system version" >&5
3086echo "${ECHO_T}system version" >&6
4f14bcd8 3087 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3088 echo "$as_me:$LINENO: result: builtin version" >&5
3089echo "${ECHO_T}builtin version" >&6
422107f9 3090 else
e6cc62c6
VS
3091 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3092echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3093 { (exit 1); exit 1; }; }
10f2d63a 3094 fi
10f2d63a 3095
e6cc62c6
VS
3096
3097 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3098echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3099 no_cache=0
e6cc62c6
VS
3100
3101# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3102if test "${with_odbc+set}" = set; then
3103 withval="$with_odbc"
e6cc62c6 3104
10f2d63a
VZ
3105 if test "$withval" = yes; then
3106 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3107 elif test "$withval" = no; then
10f2d63a 3108 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3109 elif test "$withval" = sys; then
3110 ac_cv_use_odbc='wxUSE_ODBC=sys'
3111 elif test "$withval" = builtin; then
3112 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3113 else
e6cc62c6
VS
3114 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3115echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3116 { (exit 1); exit 1; }; }
10f2d63a 3117 fi
e6cc62c6 3118
10f2d63a 3119else
e6cc62c6 3120
10f2d63a
VZ
3121 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3122 if test "x$LINE" != x ; then
3123 eval "DEFAULT_$LINE"
3124 else
3125 no_cache=1
3126 fi
3127
3128 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3129
e6cc62c6 3130fi;
10f2d63a
VZ
3131
3132 eval "$ac_cv_use_odbc"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3138 echo "$as_me:$LINENO: result: yes" >&5
3139echo "${ECHO_T}yes" >&6
8647bec6 3140 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
8647bec6 3143 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3144 echo "$as_me:$LINENO: result: system version" >&5
3145echo "${ECHO_T}system version" >&6
8647bec6 3146 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3147 echo "$as_me:$LINENO: result: builtin version" >&5
3148echo "${ECHO_T}builtin version" >&6
8647bec6 3149 else
e6cc62c6
VS
3150 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3151echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3152 { (exit 1); exit 1; }; }
10f2d63a 3153 fi
e6cc62c6 3154
52127426 3155
672abd7a
VS
3156 echo "$as_me:$LINENO: checking for --with-expat" >&5
3157echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3158 no_cache=0
3159
3160# Check whether --with-expat or --without-expat was given.
3161if test "${with_expat+set}" = set; then
3162 withval="$with_expat"
3163
3164 if test "$withval" = yes; then
3165 ac_cv_use_expat='wxUSE_EXPAT=yes'
3166 elif test "$withval" = no; then
3167 ac_cv_use_expat='wxUSE_EXPAT=no'
3168 elif test "$withval" = sys; then
3169 ac_cv_use_expat='wxUSE_EXPAT=sys'
3170 elif test "$withval" = builtin; then
3171 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3172 else
3173 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3174echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3175 { (exit 1); exit 1; }; }
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3188
3189fi;
3190
3191 eval "$ac_cv_use_expat"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_EXPAT" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 elif test "$wxUSE_EXPAT" = no; then
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 elif test "$wxUSE_EXPAT" = sys; then
3203 echo "$as_me:$LINENO: result: system version" >&5
3204echo "${ECHO_T}system version" >&6
3205 elif test "$wxUSE_EXPAT" = builtin; then
3206 echo "$as_me:$LINENO: result: builtin version" >&5
3207echo "${ECHO_T}builtin version" >&6
3208 else
3209 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3210echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3211 { (exit 1); exit 1; }; }
3212 fi
3213
3214
8284b0c5
MB
3215
3216
5005acfe 3217 enablestring=
e6cc62c6
VS
3218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3219echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3220 no_cache=0
3221 # Check whether --enable-shared or --disable-shared was given.
3222if test "${enable_shared+set}" = set; then
3223 enableval="$enable_shared"
e6cc62c6 3224
10f2d63a
VZ
3225 if test "$enableval" = yes; then
3226 ac_cv_use_shared='wxUSE_SHARED=yes'
3227 else
3228 ac_cv_use_shared='wxUSE_SHARED=no'
3229 fi
e6cc62c6 3230
10f2d63a 3231else
e6cc62c6 3232
10f2d63a
VZ
3233 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3234 if test "x$LINE" != x ; then
3235 eval "DEFAULT_$LINE"
3236 else
3237 no_cache=1
3238 fi
3239
3240 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3241
e6cc62c6 3242fi;
10f2d63a
VZ
3243
3244 eval "$ac_cv_use_shared"
3245 if test "$no_cache" != 1; then
3246 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3247 fi
3248
3249 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3250 echo "$as_me:$LINENO: result: yes" >&5
3251echo "${ECHO_T}yes" >&6
10f2d63a 3252 else
e6cc62c6
VS
3253 echo "$as_me:$LINENO: result: no" >&5
3254echo "${ECHO_T}no" >&6
10f2d63a 3255 fi
e6cc62c6 3256
10f2d63a 3257
5005acfe 3258 enablestring=
e6cc62c6
VS
3259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3260echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3261 no_cache=0
3262 # Check whether --enable-optimise or --disable-optimise was given.
3263if test "${enable_optimise+set}" = set; then
3264 enableval="$enable_optimise"
e6cc62c6 3265
10f2d63a
VZ
3266 if test "$enableval" = yes; then
3267 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3268 else
3269 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3270 fi
e6cc62c6 3271
10f2d63a 3272else
e6cc62c6 3273
10f2d63a
VZ
3274 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3275 if test "x$LINE" != x ; then
3276 eval "DEFAULT_$LINE"
3277 else
3278 no_cache=1
3279 fi
3280
3281 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3282
e6cc62c6 3283fi;
10f2d63a
VZ
3284
3285 eval "$ac_cv_use_optimise"
3286 if test "$no_cache" != 1; then
3287 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3288 fi
3289
3290 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3291 echo "$as_me:$LINENO: result: yes" >&5
3292echo "${ECHO_T}yes" >&6
10f2d63a 3293 else
e6cc62c6
VS
3294 echo "$as_me:$LINENO: result: no" >&5
3295echo "${ECHO_T}no" >&6
10f2d63a 3296 fi
e6cc62c6 3297
10f2d63a 3298
5005acfe 3299 enablestring=
e6cc62c6
VS
3300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3301echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3302 no_cache=0
3303 # Check whether --enable-debug or --disable-debug was given.
3304if test "${enable_debug+set}" = set; then
3305 enableval="$enable_debug"
e6cc62c6 3306
10f2d63a
VZ
3307 if test "$enableval" = yes; then
3308 ac_cv_use_debug='wxUSE_DEBUG=yes'
3309 else
3310 ac_cv_use_debug='wxUSE_DEBUG=no'
3311 fi
e6cc62c6 3312
10f2d63a 3313else
e6cc62c6 3314
10f2d63a
VZ
3315 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3316 if test "x$LINE" != x ; then
3317 eval "DEFAULT_$LINE"
3318 else
3319 no_cache=1
3320 fi
3321
3322 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3323
e6cc62c6 3324fi;
10f2d63a
VZ
3325
3326 eval "$ac_cv_use_debug"
3327 if test "$no_cache" != 1; then
3328 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3329 fi
3330
3331 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3332 echo "$as_me:$LINENO: result: yes" >&5
3333echo "${ECHO_T}yes" >&6
10f2d63a 3334 else
e6cc62c6
VS
3335 echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
10f2d63a 3337 fi
e6cc62c6 3338
52127426 3339
df5168c4
MB
3340 enablestring=
3341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3342echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3343 no_cache=0
3344 # Check whether --enable-stl or --disable-stl was given.
3345if test "${enable_stl+set}" = set; then
3346 enableval="$enable_stl"
3347
3348 if test "$enableval" = yes; then
3349 ac_cv_use_stl='wxUSE_STL=yes'
3350 else
3351 ac_cv_use_stl='wxUSE_STL=no'
3352 fi
3353
3354else
3355
3356 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3357 if test "x$LINE" != x ; then
3358 eval "DEFAULT_$LINE"
3359 else
3360 no_cache=1
3361 fi
3362
3363 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3364
3365fi;
3366
3367 eval "$ac_cv_use_stl"
3368 if test "$no_cache" != 1; then
3369 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3370 fi
3371
3372 if test "$wxUSE_STL" = yes; then
3373 echo "$as_me:$LINENO: result: yes" >&5
3374echo "${ECHO_T}yes" >&6
3375 else
3376 echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378 fi
3379
3380
10f2d63a
VZ
3381if test "$wxUSE_DEBUG" = "yes"; then
3382 DEFAULT_wxUSE_DEBUG_FLAG=yes
3383 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3384 BUILD=debug
10f2d63a
VZ
3385elif test "$wxUSE_DEBUG" = "no"; then
3386 DEFAULT_wxUSE_DEBUG_FLAG=no
3387 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3388 BUILD=release
10f2d63a
VZ
3389fi
3390
8284b0c5 3391
5005acfe 3392 enablestring=
e6cc62c6
VS
3393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3394echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3395 no_cache=0
3396 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3397if test "${enable_debug_flag+set}" = set; then
3398 enableval="$enable_debug_flag"
e6cc62c6 3399
10f2d63a
VZ
3400 if test "$enableval" = yes; then
3401 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3402 else
3403 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3404 fi
e6cc62c6 3405
10f2d63a 3406else
e6cc62c6 3407
10f2d63a
VZ
3408 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3416
e6cc62c6 3417fi;
10f2d63a
VZ
3418
3419 eval "$ac_cv_use_debug_flag"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3425 echo "$as_me:$LINENO: result: yes" >&5
3426echo "${ECHO_T}yes" >&6
10f2d63a 3427 else
e6cc62c6
VS
3428 echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
10f2d63a 3430 fi
e6cc62c6 3431
10f2d63a 3432
5005acfe 3433 enablestring=
e6cc62c6
VS
3434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3435echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3436 no_cache=0
3437 # Check whether --enable-debug_info or --disable-debug_info was given.
3438if test "${enable_debug_info+set}" = set; then
3439 enableval="$enable_debug_info"
e6cc62c6 3440
10f2d63a
VZ
3441 if test "$enableval" = yes; then
3442 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3443 else
3444 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3445 fi
e6cc62c6 3446
10f2d63a 3447else
e6cc62c6 3448
10f2d63a
VZ
3449 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3457
e6cc62c6 3458fi;
10f2d63a
VZ
3459
3460 eval "$ac_cv_use_debug_info"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3466 echo "$as_me:$LINENO: result: yes" >&5
3467echo "${ECHO_T}yes" >&6
10f2d63a 3468 else
e6cc62c6
VS
3469 echo "$as_me:$LINENO: result: no" >&5
3470echo "${ECHO_T}no" >&6
10f2d63a 3471 fi
e6cc62c6 3472
10f2d63a 3473
5005acfe 3474 enablestring=
e6cc62c6
VS
3475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3476echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3477 no_cache=0
3478 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3479if test "${enable_debug_gdb+set}" = set; then
3480 enableval="$enable_debug_gdb"
e6cc62c6 3481
10f2d63a
VZ
3482 if test "$enableval" = yes; then
3483 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3484 else
3485 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3486 fi
e6cc62c6 3487
10f2d63a 3488else
e6cc62c6 3489
10f2d63a
VZ
3490 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3498
e6cc62c6 3499fi;
10f2d63a
VZ
3500
3501 eval "$ac_cv_use_debug_gdb"
3502 if test "$no_cache" != 1; then
3503 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3504 fi
3505
3506 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3507 echo "$as_me:$LINENO: result: yes" >&5
3508echo "${ECHO_T}yes" >&6
10f2d63a 3509 else
e6cc62c6
VS
3510 echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
10f2d63a 3512 fi
e6cc62c6 3513
10f2d63a 3514
5005acfe 3515 enablestring=
e6cc62c6
VS
3516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3517echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3518 no_cache=0
3519 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3520if test "${enable_debug_cntxt+set}" = set; then
3521 enableval="$enable_debug_cntxt"
e6cc62c6 3522
10f2d63a
VZ
3523 if test "$enableval" = yes; then
3524 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3525 else
3526 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3527 fi
e6cc62c6 3528
10f2d63a 3529else
e6cc62c6 3530
10f2d63a
VZ
3531 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3532 if test "x$LINE" != x ; then
3533 eval "DEFAULT_$LINE"
3534 else
3535 no_cache=1
3536 fi
3537
3538 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3539
e6cc62c6 3540fi;
10f2d63a
VZ
3541
3542 eval "$ac_cv_use_debug_cntxt"
3543 if test "$no_cache" != 1; then
3544 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3545 fi
3546
3547 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3548 echo "$as_me:$LINENO: result: yes" >&5
3549echo "${ECHO_T}yes" >&6
10f2d63a 3550 else
e6cc62c6
VS
3551 echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6
10f2d63a 3553 fi
e6cc62c6 3554
10f2d63a 3555
5005acfe 3556 enablestring=
e6cc62c6
VS
3557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3558echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3559 no_cache=0
3560 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3561if test "${enable_mem_tracing+set}" = set; then
3562 enableval="$enable_mem_tracing"
e6cc62c6 3563
10f2d63a
VZ
3564 if test "$enableval" = yes; then
3565 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3566 else
3567 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3568 fi
e6cc62c6 3569
10f2d63a 3570else
e6cc62c6 3571
10f2d63a
VZ
3572 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3580
e6cc62c6 3581fi;
10f2d63a
VZ
3582
3583 eval "$ac_cv_use_mem_tracing"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3589 echo "$as_me:$LINENO: result: yes" >&5
3590echo "${ECHO_T}yes" >&6
10f2d63a 3591 else
e6cc62c6
VS
3592 echo "$as_me:$LINENO: result: no" >&5
3593echo "${ECHO_T}no" >&6
10f2d63a 3594 fi
e6cc62c6 3595
10f2d63a 3596
5005acfe 3597 enablestring=
e6cc62c6
VS
3598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3599echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3600 no_cache=0
3601 # Check whether --enable-profile or --disable-profile was given.
3602if test "${enable_profile+set}" = set; then
3603 enableval="$enable_profile"
e6cc62c6 3604
10f2d63a
VZ
3605 if test "$enableval" = yes; then
3606 ac_cv_use_profile='wxUSE_PROFILE=yes'
3607 else
3608 ac_cv_use_profile='wxUSE_PROFILE=no'
3609 fi
e6cc62c6 3610
10f2d63a 3611else
e6cc62c6 3612
10f2d63a
VZ
3613 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3614 if test "x$LINE" != x ; then
3615 eval "DEFAULT_$LINE"
3616 else
3617 no_cache=1
3618 fi
3619
3620 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3621
e6cc62c6 3622fi;
10f2d63a
VZ
3623
3624 eval "$ac_cv_use_profile"
3625 if test "$no_cache" != 1; then
3626 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3627 fi
3628
3629 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3630 echo "$as_me:$LINENO: result: yes" >&5
3631echo "${ECHO_T}yes" >&6
10f2d63a 3632 else
e6cc62c6
VS
3633 echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
10f2d63a 3635 fi
e6cc62c6 3636
10f2d63a 3637
5005acfe 3638 enablestring=
e6cc62c6
VS
3639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3640echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3641 no_cache=0
3642 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3643if test "${enable_no_rtti+set}" = set; then
3644 enableval="$enable_no_rtti"
e6cc62c6 3645
10f2d63a
VZ
3646 if test "$enableval" = yes; then
3647 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3648 else
3649 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3650 fi
e6cc62c6 3651
10f2d63a 3652else
e6cc62c6 3653
10f2d63a
VZ
3654 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3662
e6cc62c6 3663fi;
10f2d63a
VZ
3664
3665 eval "$ac_cv_use_no_rtti"
3666 if test "$no_cache" != 1; then
3667 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3668 fi
3669
3670 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3671 echo "$as_me:$LINENO: result: yes" >&5
3672echo "${ECHO_T}yes" >&6
10f2d63a 3673 else
e6cc62c6
VS
3674 echo "$as_me:$LINENO: result: no" >&5
3675echo "${ECHO_T}no" >&6
10f2d63a 3676 fi
e6cc62c6 3677
10f2d63a 3678
5005acfe 3679 enablestring=
e6cc62c6
VS
3680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3681echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3682 no_cache=0
3683 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3684if test "${enable_no_exceptions+set}" = set; then
3685 enableval="$enable_no_exceptions"
e6cc62c6 3686
10f2d63a
VZ
3687 if test "$enableval" = yes; then
3688 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3689 else
3690 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3691 fi
e6cc62c6 3692
10f2d63a 3693else
e6cc62c6 3694
10f2d63a
VZ
3695 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3703
e6cc62c6 3704fi;
10f2d63a
VZ
3705
3706 eval "$ac_cv_use_no_exceptions"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3712 echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
10f2d63a 3714 else
e6cc62c6
VS
3715 echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
10f2d63a 3717 fi
e6cc62c6 3718
10f2d63a 3719
5005acfe 3720 enablestring=
e6cc62c6
VS
3721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3722echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3723 no_cache=0
3724 # Check whether --enable-permissive or --disable-permissive was given.
3725if test "${enable_permissive+set}" = set; then
3726 enableval="$enable_permissive"
e6cc62c6 3727
10f2d63a
VZ
3728 if test "$enableval" = yes; then
3729 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3730 else
3731 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3732 fi
e6cc62c6 3733
10f2d63a 3734else
e6cc62c6 3735
10f2d63a
VZ
3736 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3744
e6cc62c6 3745fi;
10f2d63a
VZ
3746
3747 eval "$ac_cv_use_permissive"
3748 if test "$no_cache" != 1; then
3749 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3750 fi
3751
3752 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3753 echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
10f2d63a 3755 else
e6cc62c6
VS
3756 echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6
10f2d63a 3758 fi
e6cc62c6 3759
10f2d63a 3760
5005acfe 3761 enablestring=
e6cc62c6
VS
3762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3763echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3764 no_cache=0
3765 # Check whether --enable-no_deps or --disable-no_deps was given.
3766if test "${enable_no_deps+set}" = set; then
3767 enableval="$enable_no_deps"
e6cc62c6 3768
10f2d63a
VZ
3769 if test "$enableval" = yes; then
3770 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3771 else
3772 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3773 fi
e6cc62c6 3774
10f2d63a 3775else
e6cc62c6 3776
10f2d63a
VZ
3777 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3785
e6cc62c6 3786fi;
10f2d63a
VZ
3787
3788 eval "$ac_cv_use_no_deps"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3794 echo "$as_me:$LINENO: result: yes" >&5
3795echo "${ECHO_T}yes" >&6
10f2d63a 3796 else
e6cc62c6
VS
3797 echo "$as_me:$LINENO: result: no" >&5
3798echo "${ECHO_T}no" >&6
10f2d63a 3799 fi
e6cc62c6 3800
52127426 3801
8284b0c5 3802
65d8ef1e 3803 enablestring=
e6cc62c6
VS
3804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3805echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3806 no_cache=0
3807 # Check whether --enable-compat22 or --disable-compat22 was given.
3808if test "${enable_compat22+set}" = set; then
3809 enableval="$enable_compat22"
e6cc62c6 3810
54276ccf
VZ
3811 if test "$enableval" = yes; then
3812 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3813 else
3814 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3815 fi
e6cc62c6 3816
54276ccf 3817else
e6cc62c6 3818
54276ccf
VZ
3819 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3827
e6cc62c6 3828fi;
54276ccf
VZ
3829
3830 eval "$ac_cv_use_compat22"
3831 if test "$no_cache" != 1; then
3832 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3833 fi
3834
3835 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3836 echo "$as_me:$LINENO: result: yes" >&5
3837echo "${ECHO_T}yes" >&6
54276ccf 3838 else
e6cc62c6
VS
3839 echo "$as_me:$LINENO: result: no" >&5
3840echo "${ECHO_T}no" >&6
54276ccf 3841 fi
e6cc62c6 3842
54276ccf 3843
65d8ef1e 3844 enablestring=disable
e6cc62c6
VS
3845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3846echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3847 no_cache=0
3848 # Check whether --enable-compat24 or --disable-compat24 was given.
3849if test "${enable_compat24+set}" = set; then
3850 enableval="$enable_compat24"
e6cc62c6 3851
65d8ef1e
VS
3852 if test "$enableval" = yes; then
3853 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3854 else
3855 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3856 fi
e6cc62c6 3857
65d8ef1e 3858else
e6cc62c6 3859
65d8ef1e
VS
3860 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3861 if test "x$LINE" != x ; then
3862 eval "DEFAULT_$LINE"
3863 else
3864 no_cache=1
3865 fi
3866
3867 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3868
e6cc62c6 3869fi;
65d8ef1e
VS
3870
3871 eval "$ac_cv_use_compat24"
3872 if test "$no_cache" != 1; then
3873 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3874 fi
3875
3876 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3877 echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6
65d8ef1e 3879 else
e6cc62c6
VS
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
65d8ef1e 3882 fi
e6cc62c6 3883
65d8ef1e 3884
3bd8fb5f
RD
3885# Check whether --enable-rpath or --disable-rpath was given.
3886if test "${enable_rpath+set}" = set; then
3887 enableval="$enable_rpath"
3888 wxRPATH_DIR="$enableval"
e6cc62c6 3889fi;
3bd8fb5f
RD
3890
3891if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3892 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3893fi
3894
8284b0c5
MB
3895
3896
3897
5005acfe 3898 enablestring=
e6cc62c6
VS
3899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3900echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3901 no_cache=0
3902 # Check whether --enable-intl or --disable-intl was given.
3903if test "${enable_intl+set}" = set; then
3904 enableval="$enable_intl"
e6cc62c6 3905
10f2d63a
VZ
3906 if test "$enableval" = yes; then
3907 ac_cv_use_intl='wxUSE_INTL=yes'
3908 else
3909 ac_cv_use_intl='wxUSE_INTL=no'
3910 fi
e6cc62c6 3911
10f2d63a 3912else
e6cc62c6 3913
10f2d63a
VZ
3914 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3922
e6cc62c6 3923fi;
10f2d63a
VZ
3924
3925 eval "$ac_cv_use_intl"
3926 if test "$no_cache" != 1; then
3927 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3928 fi
3929
3930 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3931 echo "$as_me:$LINENO: result: yes" >&5
3932echo "${ECHO_T}yes" >&6
10f2d63a 3933 else
e6cc62c6
VS
3934 echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
10f2d63a 3936 fi
e6cc62c6 3937
10f2d63a 3938
5005acfe 3939 enablestring=
e6cc62c6
VS
3940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3941echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3942 no_cache=0
3943 # Check whether --enable-config or --disable-config was given.
3944if test "${enable_config+set}" = set; then
3945 enableval="$enable_config"
e6cc62c6 3946
10f2d63a
VZ
3947 if test "$enableval" = yes; then
3948 ac_cv_use_config='wxUSE_CONFIG=yes'
3949 else
3950 ac_cv_use_config='wxUSE_CONFIG=no'
3951 fi
e6cc62c6 3952
10f2d63a 3953else
e6cc62c6 3954
10f2d63a
VZ
3955 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3963
e6cc62c6 3964fi;
10f2d63a
VZ
3965
3966 eval "$ac_cv_use_config"
3967 if test "$no_cache" != 1; then
3968 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3969 fi
3970
3971 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3972 echo "$as_me:$LINENO: result: yes" >&5
3973echo "${ECHO_T}yes" >&6
10f2d63a 3974 else
e6cc62c6
VS
3975 echo "$as_me:$LINENO: result: no" >&5
3976echo "${ECHO_T}no" >&6
10f2d63a 3977 fi
e6cc62c6 3978
52127426 3979
8284b0c5 3980
5005acfe 3981 enablestring=
e6cc62c6
VS
3982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3983echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3984 no_cache=0
3985 # Check whether --enable-protocols or --disable-protocols was given.
3986if test "${enable_protocols+set}" = set; then
3987 enableval="$enable_protocols"
e6cc62c6 3988
a1622950
VZ
3989 if test "$enableval" = yes; then
3990 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3991 else
3992 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3993 fi
e6cc62c6 3994
a1622950 3995else
e6cc62c6 3996
a1622950
VZ
3997 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3998 if test "x$LINE" != x ; then
3999 eval "DEFAULT_$LINE"
4000 else
4001 no_cache=1
4002 fi
4003
4004 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4005
e6cc62c6 4006fi;
a1622950
VZ
4007
4008 eval "$ac_cv_use_protocols"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4014 echo "$as_me:$LINENO: result: yes" >&5
4015echo "${ECHO_T}yes" >&6
a1622950 4016 else
e6cc62c6
VS
4017 echo "$as_me:$LINENO: result: no" >&5
4018echo "${ECHO_T}no" >&6
a1622950 4019 fi
e6cc62c6 4020
a1622950 4021
5005acfe 4022 enablestring=
e6cc62c6
VS
4023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4024echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4025 no_cache=0
4026 # Check whether --enable-ftp or --disable-ftp was given.
4027if test "${enable_ftp+set}" = set; then
4028 enableval="$enable_ftp"
e6cc62c6 4029
a1622950
VZ
4030 if test "$enableval" = yes; then
4031 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4032 else
4033 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4034 fi
e6cc62c6 4035
a1622950 4036else
e6cc62c6 4037
a1622950
VZ
4038 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4039 if test "x$LINE" != x ; then
4040 eval "DEFAULT_$LINE"
4041 else
4042 no_cache=1
4043 fi
4044
4045 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4046
e6cc62c6 4047fi;
a1622950
VZ
4048
4049 eval "$ac_cv_use_ftp"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4055 echo "$as_me:$LINENO: result: yes" >&5
4056echo "${ECHO_T}yes" >&6
a1622950 4057 else
e6cc62c6
VS
4058 echo "$as_me:$LINENO: result: no" >&5
4059echo "${ECHO_T}no" >&6
a1622950 4060 fi
e6cc62c6 4061
a1622950 4062
5005acfe 4063 enablestring=
e6cc62c6
VS
4064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4065echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4066 no_cache=0
4067 # Check whether --enable-http or --disable-http was given.
4068if test "${enable_http+set}" = set; then
4069 enableval="$enable_http"
e6cc62c6 4070
a1622950
VZ
4071 if test "$enableval" = yes; then
4072 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4073 else
4074 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4075 fi
e6cc62c6 4076
a1622950 4077else
e6cc62c6 4078
a1622950
VZ
4079 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4080 if test "x$LINE" != x ; then
4081 eval "DEFAULT_$LINE"
4082 else
4083 no_cache=1
4084 fi
4085
4086 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4087
e6cc62c6 4088fi;
a1622950
VZ
4089
4090 eval "$ac_cv_use_http"
4091 if test "$no_cache" != 1; then
4092 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4093 fi
4094
4095 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4096 echo "$as_me:$LINENO: result: yes" >&5
4097echo "${ECHO_T}yes" >&6
a1622950 4098 else
e6cc62c6
VS
4099 echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6
a1622950 4101 fi
e6cc62c6 4102
a1622950 4103
5005acfe 4104 enablestring=
e6cc62c6
VS
4105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4106echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4107 no_cache=0
4108 # Check whether --enable-fileproto or --disable-fileproto was given.
4109if test "${enable_fileproto+set}" = set; then
4110 enableval="$enable_fileproto"
e6cc62c6 4111
a1622950
VZ
4112 if test "$enableval" = yes; then
4113 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4114 else
4115 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4116 fi
e6cc62c6 4117
a1622950 4118else
e6cc62c6 4119
a1622950
VZ
4120 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4128
e6cc62c6 4129fi;
a1622950
VZ
4130
4131 eval "$ac_cv_use_fileproto"
4132 if test "$no_cache" != 1; then
4133 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4134 fi
4135
4136 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4137 echo "$as_me:$LINENO: result: yes" >&5
4138echo "${ECHO_T}yes" >&6
a1622950 4139 else
e6cc62c6
VS
4140 echo "$as_me:$LINENO: result: no" >&5
4141echo "${ECHO_T}no" >&6
a1622950 4142 fi
e6cc62c6 4143
a1622950 4144
5005acfe 4145 enablestring=
e6cc62c6
VS
4146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4147echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4148 no_cache=0
4149 # Check whether --enable-sockets or --disable-sockets was given.
4150if test "${enable_sockets+set}" = set; then
4151 enableval="$enable_sockets"
e6cc62c6 4152
10f2d63a
VZ
4153 if test "$enableval" = yes; then
4154 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4155 else
4156 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4157 fi
e6cc62c6 4158
10f2d63a 4159else
e6cc62c6 4160
10f2d63a
VZ
4161 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4169
e6cc62c6 4170fi;
10f2d63a
VZ
4171
4172 eval "$ac_cv_use_sockets"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4178 echo "$as_me:$LINENO: result: yes" >&5
4179echo "${ECHO_T}yes" >&6
10f2d63a 4180 else
e6cc62c6
VS
4181 echo "$as_me:$LINENO: result: no" >&5
4182echo "${ECHO_T}no" >&6
10f2d63a 4183 fi
e6cc62c6 4184
8284b0c5 4185
5005acfe 4186 enablestring=
e6cc62c6
VS
4187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4188echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4189 no_cache=0
4190 # Check whether --enable-ole or --disable-ole was given.
4191if test "${enable_ole+set}" = set; then
4192 enableval="$enable_ole"
e6cc62c6 4193
3bce6687
JS
4194 if test "$enableval" = yes; then
4195 ac_cv_use_ole='wxUSE_OLE=yes'
4196 else
4197 ac_cv_use_ole='wxUSE_OLE=no'
4198 fi
e6cc62c6 4199
3bce6687 4200else
e6cc62c6 4201
3bce6687
JS
4202 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4203 if test "x$LINE" != x ; then
4204 eval "DEFAULT_$LINE"
4205 else
4206 no_cache=1
4207 fi
4208
4209 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4210
e6cc62c6 4211fi;
3bce6687
JS
4212
4213 eval "$ac_cv_use_ole"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4219 echo "$as_me:$LINENO: result: yes" >&5
4220echo "${ECHO_T}yes" >&6
3bce6687 4221 else
e6cc62c6
VS
4222 echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6
3bce6687 4224 fi
e6cc62c6 4225
3bce6687 4226
5005acfe 4227 enablestring=
e6cc62c6
VS
4228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4229echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4230 no_cache=0
4231 # Check whether --enable-dataobj or --disable-dataobj was given.
4232if test "${enable_dataobj+set}" = set; then
4233 enableval="$enable_dataobj"
e6cc62c6 4234
3bce6687
JS
4235 if test "$enableval" = yes; then
4236 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4237 else
4238 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4239 fi
e6cc62c6 4240
3bce6687 4241else
e6cc62c6 4242
3bce6687
JS
4243 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4251
e6cc62c6 4252fi;
3bce6687
JS
4253
4254 eval "$ac_cv_use_dataobj"
4255 if test "$no_cache" != 1; then
4256 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4257 fi
4258
4259 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4260 echo "$as_me:$LINENO: result: yes" >&5
4261echo "${ECHO_T}yes" >&6
3bce6687 4262 else
e6cc62c6
VS
4263 echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
3bce6687 4265 fi
e6cc62c6 4266
3bce6687 4267
52127426 4268
5005acfe 4269 enablestring=
e6cc62c6
VS
4270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4271echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4272 no_cache=0
eb4efbdc
VZ
4273 # Check whether --enable-ipc or --disable-ipc was given.
4274if test "${enable_ipc+set}" = set; then
4275 enableval="$enable_ipc"
e6cc62c6 4276
10f2d63a 4277 if test "$enableval" = yes; then
eb4efbdc 4278 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4279 else
eb4efbdc 4280 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4281 fi
e6cc62c6 4282
10f2d63a 4283else
e6cc62c6 4284
eb4efbdc 4285 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4286 if test "x$LINE" != x ; then
4287 eval "DEFAULT_$LINE"
4288 else
4289 no_cache=1
4290 fi
4291
eb4efbdc 4292 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4293
e6cc62c6 4294fi;
10f2d63a 4295
eb4efbdc 4296 eval "$ac_cv_use_ipc"
10f2d63a 4297 if test "$no_cache" != 1; then
eb4efbdc 4298 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4299 fi
4300
eb4efbdc 4301 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4302 echo "$as_me:$LINENO: result: yes" >&5
4303echo "${ECHO_T}yes" >&6
10f2d63a 4304 else
e6cc62c6
VS
4305 echo "$as_me:$LINENO: result: no" >&5
4306echo "${ECHO_T}no" >&6
10f2d63a 4307 fi
e6cc62c6 4308
52127426 4309
8284b0c5 4310
5005acfe 4311 enablestring=
e46d2a18
VS
4312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4313echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4314 no_cache=0
e46d2a18
VS
4315 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4316if test "${enable_apple_ieee+set}" = set; then
4317 enableval="$enable_apple_ieee"
e6cc62c6 4318
10f2d63a 4319 if test "$enableval" = yes; then
e46d2a18 4320 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4321 else
e46d2a18 4322 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4323 fi
e6cc62c6 4324
10f2d63a 4325else
e6cc62c6 4326
e46d2a18 4327 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
e46d2a18 4334 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4335
e6cc62c6 4336fi;
10f2d63a 4337
e46d2a18 4338 eval "$ac_cv_use_apple_ieee"
10f2d63a 4339 if test "$no_cache" != 1; then
e46d2a18 4340 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4341 fi
4342
e46d2a18 4343 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4344 echo "$as_me:$LINENO: result: yes" >&5
4345echo "${ECHO_T}yes" >&6
10f2d63a 4346 else
e6cc62c6
VS
4347 echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6
10f2d63a 4349 fi
e6cc62c6 4350
10f2d63a 4351
5005acfe 4352 enablestring=
e46d2a18
VS
4353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4354echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4355 no_cache=0
e46d2a18
VS
4356 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4357if test "${enable_catch_segvs+set}" = set; then
4358 enableval="$enable_catch_segvs"
e6cc62c6 4359
10f2d63a 4360 if test "$enableval" = yes; then
e46d2a18 4361 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4362 else
e46d2a18 4363 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4364 fi
e6cc62c6 4365
10f2d63a 4366else
e6cc62c6 4367
e46d2a18 4368 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4369 if test "x$LINE" != x ; then
4370 eval "DEFAULT_$LINE"
4371 else
4372 no_cache=1
4373 fi
4374
e46d2a18 4375 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4376
e6cc62c6 4377fi;
10f2d63a 4378
e46d2a18 4379 eval "$ac_cv_use_catch_segvs"
10f2d63a 4380 if test "$no_cache" != 1; then
e46d2a18 4381 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4382 fi
4383
e46d2a18 4384 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4385 echo "$as_me:$LINENO: result: yes" >&5
4386echo "${ECHO_T}yes" >&6
10f2d63a 4387 else
e6cc62c6
VS
4388 echo "$as_me:$LINENO: result: no" >&5
4389echo "${ECHO_T}no" >&6
10f2d63a 4390 fi
e6cc62c6 4391
10f2d63a 4392
5005acfe 4393 enablestring=
e46d2a18
VS
4394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4395echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4396 no_cache=0
e46d2a18
VS
4397 # Check whether --enable-cmdline or --disable-cmdline was given.
4398if test "${enable_cmdline+set}" = set; then
4399 enableval="$enable_cmdline"
e6cc62c6 4400
10f2d63a 4401 if test "$enableval" = yes; then
e46d2a18 4402 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4403 else
e46d2a18 4404 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4405 fi
e6cc62c6 4406
10f2d63a 4407else
e6cc62c6 4408
e46d2a18 4409 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4410 if test "x$LINE" != x ; then
4411 eval "DEFAULT_$LINE"
4412 else
4413 no_cache=1
4414 fi
4415
e46d2a18 4416 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4417
e6cc62c6 4418fi;
10f2d63a 4419
e46d2a18 4420 eval "$ac_cv_use_cmdline"
10f2d63a 4421 if test "$no_cache" != 1; then
e46d2a18 4422 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4423 fi
4424
e46d2a18 4425 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4426 echo "$as_me:$LINENO: result: yes" >&5
4427echo "${ECHO_T}yes" >&6
10f2d63a 4428 else
e6cc62c6
VS
4429 echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
10f2d63a 4431 fi
e6cc62c6 4432
10f2d63a 4433
5005acfe 4434 enablestring=
e46d2a18
VS
4435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4436echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4437 no_cache=0
e46d2a18
VS
4438 # Check whether --enable-datetime or --disable-datetime was given.
4439if test "${enable_datetime+set}" = set; then
4440 enableval="$enable_datetime"
e6cc62c6 4441
10f2d63a 4442 if test "$enableval" = yes; then
e46d2a18 4443 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4444 else
e46d2a18 4445 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4446 fi
e6cc62c6 4447
10f2d63a 4448else
e6cc62c6 4449
e46d2a18 4450 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4451 if test "x$LINE" != x ; then
4452 eval "DEFAULT_$LINE"
4453 else
4454 no_cache=1
4455 fi
4456
e46d2a18 4457 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4458
e6cc62c6 4459fi;
10f2d63a 4460
e46d2a18 4461 eval "$ac_cv_use_datetime"
10f2d63a 4462 if test "$no_cache" != 1; then
e46d2a18 4463 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4464 fi
4465
e46d2a18 4466 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4467 echo "$as_me:$LINENO: result: yes" >&5
4468echo "${ECHO_T}yes" >&6
10f2d63a 4469 else
e6cc62c6
VS
4470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
10f2d63a 4472 fi
e6cc62c6 4473
10f2d63a 4474
5005acfe 4475 enablestring=
e46d2a18
VS
4476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4477echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4478 no_cache=0
e46d2a18
VS
4479 # Check whether --enable-dialupman or --disable-dialupman was given.
4480if test "${enable_dialupman+set}" = set; then
4481 enableval="$enable_dialupman"
e6cc62c6 4482
10f2d63a 4483 if test "$enableval" = yes; then
e46d2a18 4484 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4485 else
e46d2a18 4486 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4487 fi
e6cc62c6 4488
10f2d63a 4489else
e6cc62c6 4490
e46d2a18 4491 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
e46d2a18 4498 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4499
e6cc62c6 4500fi;
10f2d63a 4501
e46d2a18 4502 eval "$ac_cv_use_dialupman"
10f2d63a 4503 if test "$no_cache" != 1; then
e46d2a18 4504 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4505 fi
4506
e46d2a18 4507 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4508 echo "$as_me:$LINENO: result: yes" >&5
4509echo "${ECHO_T}yes" >&6
10f2d63a 4510 else
e6cc62c6
VS
4511 echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6
10f2d63a 4513 fi
e6cc62c6 4514
10f2d63a 4515
5005acfe 4516 enablestring=
e6cc62c6
VS
4517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4518echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4519 no_cache=0
4520 # Check whether --enable-dynlib or --disable-dynlib was given.
4521if test "${enable_dynlib+set}" = set; then
4522 enableval="$enable_dynlib"
e6cc62c6 4523
10f2d63a
VZ
4524 if test "$enableval" = yes; then
4525 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4526 else
4527 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4528 fi
e6cc62c6 4529
10f2d63a 4530else
e6cc62c6 4531
10f2d63a
VZ
4532 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4533 if test "x$LINE" != x ; then
4534 eval "DEFAULT_$LINE"
4535 else
4536 no_cache=1
4537 fi
4538
4539 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4540
e6cc62c6 4541fi;
10f2d63a
VZ
4542
4543 eval "$ac_cv_use_dynlib"
4544 if test "$no_cache" != 1; then
4545 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4546 fi
4547
4548 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4549 echo "$as_me:$LINENO: result: yes" >&5
4550echo "${ECHO_T}yes" >&6
10f2d63a 4551 else
e6cc62c6
VS
4552 echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6
10f2d63a 4554 fi
e6cc62c6 4555
10f2d63a 4556
5005acfe 4557 enablestring=
e6cc62c6
VS
4558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4559echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4560 no_cache=0
4561 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4562if test "${enable_dynamicloader+set}" = set; then
4563 enableval="$enable_dynamicloader"
e6cc62c6 4564
0b9ab0bd
RL
4565 if test "$enableval" = yes; then
4566 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4567 else
4568 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4569 fi
e6cc62c6 4570
0b9ab0bd 4571else
e6cc62c6 4572
0b9ab0bd
RL
4573 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4574 if test "x$LINE" != x ; then
4575 eval "DEFAULT_$LINE"
4576 else
4577 no_cache=1
4578 fi
4579
4580 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4581
e6cc62c6 4582fi;
0b9ab0bd
RL
4583
4584 eval "$ac_cv_use_dynamicloader"
4585 if test "$no_cache" != 1; then
4586 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4587 fi
4588
4589 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4590 echo "$as_me:$LINENO: result: yes" >&5
4591echo "${ECHO_T}yes" >&6
0b9ab0bd 4592 else
e6cc62c6
VS
4593 echo "$as_me:$LINENO: result: no" >&5
4594echo "${ECHO_T}no" >&6
0b9ab0bd 4595 fi
e6cc62c6 4596
0b9ab0bd 4597
5005acfe 4598 enablestring=
e46d2a18
VS
4599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4600echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4601 no_cache=0
e46d2a18
VS
4602 # Check whether --enable-exceptions or --disable-exceptions was given.
4603if test "${enable_exceptions+set}" = set; then
4604 enableval="$enable_exceptions"
e6cc62c6 4605
10f2d63a 4606 if test "$enableval" = yes; then
e46d2a18 4607 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4608 else
e46d2a18 4609 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4610 fi
e6cc62c6 4611
10f2d63a 4612else
e6cc62c6 4613
e46d2a18 4614 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
e46d2a18 4621 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4622
e6cc62c6 4623fi;
10f2d63a 4624
e46d2a18 4625 eval "$ac_cv_use_exceptions"
10f2d63a 4626 if test "$no_cache" != 1; then
e46d2a18 4627 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4628 fi
4629
e46d2a18 4630 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4631 echo "$as_me:$LINENO: result: yes" >&5
4632echo "${ECHO_T}yes" >&6
10f2d63a 4633 else
e6cc62c6
VS
4634 echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6
10f2d63a 4636 fi
e6cc62c6 4637
10f2d63a 4638
5005acfe 4639 enablestring=
e46d2a18
VS
4640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4641echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4642 no_cache=0
e46d2a18
VS
4643 # Check whether --enable-ffile or --disable-ffile was given.
4644if test "${enable_ffile+set}" = set; then
4645 enableval="$enable_ffile"
e6cc62c6 4646
e8f65ba6 4647 if test "$enableval" = yes; then
e46d2a18 4648 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4649 else
e46d2a18 4650 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4651 fi
e6cc62c6 4652
e8f65ba6 4653else
e6cc62c6 4654
e46d2a18 4655 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4656 if test "x$LINE" != x ; then
4657 eval "DEFAULT_$LINE"
4658 else
4659 no_cache=1
4660 fi
4661
e46d2a18 4662 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4663
e6cc62c6 4664fi;
e8f65ba6 4665
e46d2a18 4666 eval "$ac_cv_use_ffile"
e8f65ba6 4667 if test "$no_cache" != 1; then
e46d2a18 4668 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4669 fi
4670
e46d2a18 4671 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4672 echo "$as_me:$LINENO: result: yes" >&5
4673echo "${ECHO_T}yes" >&6
e8f65ba6 4674 else
e6cc62c6
VS
4675 echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6
e8f65ba6 4677 fi
e6cc62c6 4678
e8f65ba6 4679
5005acfe 4680 enablestring=
e46d2a18
VS
4681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4682echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4683 no_cache=0
e46d2a18
VS
4684 # Check whether --enable-file or --disable-file was given.
4685if test "${enable_file+set}" = set; then
4686 enableval="$enable_file"
e6cc62c6 4687
10f2d63a 4688 if test "$enableval" = yes; then
e46d2a18 4689 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4690 else
e46d2a18 4691 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4692 fi
e6cc62c6 4693
10f2d63a 4694else
e6cc62c6 4695
e46d2a18 4696 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4697 if test "x$LINE" != x ; then
4698 eval "DEFAULT_$LINE"
4699 else
4700 no_cache=1
4701 fi
4702
e46d2a18 4703 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4704
e6cc62c6 4705fi;
10f2d63a 4706
e46d2a18 4707 eval "$ac_cv_use_file"
10f2d63a 4708 if test "$no_cache" != 1; then
e46d2a18 4709 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4710 fi
4711
e46d2a18 4712 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4713 echo "$as_me:$LINENO: result: yes" >&5
4714echo "${ECHO_T}yes" >&6
10f2d63a 4715 else
e6cc62c6
VS
4716 echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
10f2d63a 4718 fi
e6cc62c6 4719
10f2d63a 4720
5005acfe 4721 enablestring=
e46d2a18
VS
4722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4723echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4724 no_cache=0
e46d2a18
VS
4725 # Check whether --enable-filesystem or --disable-filesystem was given.
4726if test "${enable_filesystem+set}" = set; then
4727 enableval="$enable_filesystem"
e6cc62c6 4728
10f2d63a 4729 if test "$enableval" = yes; then
e46d2a18 4730 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4731 else
e46d2a18 4732 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4733 fi
e6cc62c6 4734
10f2d63a 4735else
e6cc62c6 4736
e46d2a18 4737 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4738 if test "x$LINE" != x ; then
4739 eval "DEFAULT_$LINE"
4740 else
4741 no_cache=1
4742 fi
4743
e46d2a18 4744 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4745
e6cc62c6 4746fi;
10f2d63a 4747
e46d2a18 4748 eval "$ac_cv_use_filesystem"
10f2d63a 4749 if test "$no_cache" != 1; then
e46d2a18 4750 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4751 fi
4752
e46d2a18 4753 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4754 echo "$as_me:$LINENO: result: yes" >&5
4755echo "${ECHO_T}yes" >&6
10f2d63a 4756 else
e6cc62c6
VS
4757 echo "$as_me:$LINENO: result: no" >&5
4758echo "${ECHO_T}no" >&6
10f2d63a 4759 fi
e6cc62c6 4760
10f2d63a 4761
5005acfe 4762 enablestring=
e46d2a18
VS
4763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4764echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4765 no_cache=0
e46d2a18
VS
4766 # Check whether --enable-fontmap or --disable-fontmap was given.
4767if test "${enable_fontmap+set}" = set; then
4768 enableval="$enable_fontmap"
e6cc62c6 4769
10f2d63a 4770 if test "$enableval" = yes; then
e46d2a18 4771 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4772 else
e46d2a18 4773 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4774 fi
e6cc62c6 4775
10f2d63a 4776else
e6cc62c6 4777
e46d2a18 4778 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
e46d2a18 4785 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4786
e6cc62c6 4787fi;
10f2d63a 4788
e46d2a18 4789 eval "$ac_cv_use_fontmap"
10f2d63a 4790 if test "$no_cache" != 1; then
e46d2a18 4791 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4792 fi
4793
e46d2a18 4794 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4795 echo "$as_me:$LINENO: result: yes" >&5
4796echo "${ECHO_T}yes" >&6
10f2d63a 4797 else
e6cc62c6
VS
4798 echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6
10f2d63a 4800 fi
e6cc62c6 4801
10f2d63a 4802
5005acfe 4803 enablestring=
e46d2a18
VS
4804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4805echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4806 no_cache=0
e46d2a18
VS
4807 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4808if test "${enable_fs_inet+set}" = set; then
4809 enableval="$enable_fs_inet"
e6cc62c6 4810
10f2d63a 4811 if test "$enableval" = yes; then
e46d2a18 4812 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4813 else
e46d2a18 4814 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4815 fi
e6cc62c6 4816
10f2d63a 4817else
e6cc62c6 4818
e46d2a18 4819 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
e46d2a18 4826 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4827
e6cc62c6 4828fi;
10f2d63a 4829
e46d2a18 4830 eval "$ac_cv_use_fs_inet"
10f2d63a 4831 if test "$no_cache" != 1; then
e46d2a18 4832 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4833 fi
4834
e46d2a18 4835 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4836 echo "$as_me:$LINENO: result: yes" >&5
4837echo "${ECHO_T}yes" >&6
10f2d63a 4838 else
e6cc62c6
VS
4839 echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6
10f2d63a 4841 fi
e6cc62c6 4842
10f2d63a 4843
5005acfe 4844 enablestring=
e46d2a18
VS
4845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4846echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4847 no_cache=0
e46d2a18
VS
4848 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4849if test "${enable_fs_zip+set}" = set; then
4850 enableval="$enable_fs_zip"
e6cc62c6 4851
a3a584a7 4852 if test "$enableval" = yes; then
e46d2a18 4853 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4854 else
e46d2a18 4855 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4856 fi
e6cc62c6 4857
a3a584a7 4858else
e6cc62c6 4859
e46d2a18 4860 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
e46d2a18 4867 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4868
e6cc62c6 4869fi;
a3a584a7 4870
e46d2a18 4871 eval "$ac_cv_use_fs_zip"
a3a584a7 4872 if test "$no_cache" != 1; then
e46d2a18 4873 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4874 fi
4875
e46d2a18 4876 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4877 echo "$as_me:$LINENO: result: yes" >&5
4878echo "${ECHO_T}yes" >&6
a3a584a7 4879 else
e6cc62c6
VS
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
a3a584a7 4882 fi
e6cc62c6 4883
a3a584a7 4884
5005acfe 4885 enablestring=
e46d2a18
VS
4886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4887echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4888 no_cache=0
e46d2a18
VS
4889 # Check whether --enable-geometry or --disable-geometry was given.
4890if test "${enable_geometry+set}" = set; then
4891 enableval="$enable_geometry"
e6cc62c6 4892
10f2d63a 4893 if test "$enableval" = yes; then
e46d2a18 4894 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4895 else
e46d2a18 4896 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4897 fi
e6cc62c6 4898
10f2d63a 4899else
e6cc62c6 4900
e46d2a18 4901 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
e46d2a18 4908 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4909
e6cc62c6 4910fi;
10f2d63a 4911
e46d2a18 4912 eval "$ac_cv_use_geometry"
10f2d63a 4913 if test "$no_cache" != 1; then
e46d2a18 4914 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4915 fi
4916
e46d2a18 4917 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4918 echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
10f2d63a 4920 else
e6cc62c6
VS
4921 echo "$as_me:$LINENO: result: no" >&5
4922echo "${ECHO_T}no" >&6
10f2d63a 4923 fi
e6cc62c6 4924
10f2d63a 4925
5005acfe 4926 enablestring=
e46d2a18
VS
4927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4928echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4929 no_cache=0
e46d2a18
VS
4930 # Check whether --enable-log or --disable-log was given.
4931if test "${enable_log+set}" = set; then
4932 enableval="$enable_log"
e6cc62c6 4933
10f2d63a 4934 if test "$enableval" = yes; then
e46d2a18 4935 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4936 else
e46d2a18 4937 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4938 fi
e6cc62c6 4939
10f2d63a 4940else
e6cc62c6 4941
e46d2a18 4942 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4943 if test "x$LINE" != x ; then
4944 eval "DEFAULT_$LINE"
4945 else
4946 no_cache=1
4947 fi
4948
e46d2a18 4949 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4950
e6cc62c6 4951fi;
10f2d63a 4952
e46d2a18 4953 eval "$ac_cv_use_log"
10f2d63a 4954 if test "$no_cache" != 1; then
e46d2a18 4955 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4956 fi
4957
e46d2a18 4958 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4959 echo "$as_me:$LINENO: result: yes" >&5
4960echo "${ECHO_T}yes" >&6
10f2d63a 4961 else
e6cc62c6
VS
4962 echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6
10f2d63a 4964 fi
e6cc62c6 4965
10f2d63a 4966
5005acfe 4967 enablestring=
e46d2a18
VS
4968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4969echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 4970 no_cache=0
e46d2a18
VS
4971 # Check whether --enable-longlong or --disable-longlong was given.
4972if test "${enable_longlong+set}" = set; then
4973 enableval="$enable_longlong"
e6cc62c6 4974
1e6feb95 4975 if test "$enableval" = yes; then
e46d2a18 4976 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 4977 else
e46d2a18 4978 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 4979 fi
e6cc62c6 4980
1e6feb95 4981else
e6cc62c6 4982
e46d2a18 4983 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
e46d2a18 4990 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 4991
e6cc62c6 4992fi;
1e6feb95 4993
e46d2a18 4994 eval "$ac_cv_use_longlong"
1e6feb95 4995 if test "$no_cache" != 1; then
e46d2a18 4996 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
4997 fi
4998
e46d2a18
VS
4999 if test "$wxUSE_LONGLONG" = yes; then
5000 echo "$as_me:$LINENO: result: yes" >&5
5001echo "${ECHO_T}yes" >&6
5002 else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005 fi
5006
5007
5008 enablestring=
5009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5010echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5011 no_cache=0
5012 # Check whether --enable-mimetype or --disable-mimetype was given.
5013if test "${enable_mimetype+set}" = set; then
5014 enableval="$enable_mimetype"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5018 else
5019 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5020 fi
5021
5022else
5023
5024 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5032
5033fi;
5034
5035 eval "$ac_cv_use_mimetype"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5038 fi
5039
5040 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5041 echo "$as_me:$LINENO: result: yes" >&5
5042echo "${ECHO_T}yes" >&6
1e6feb95 5043 else
e6cc62c6
VS
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
1e6feb95 5046 fi
e6cc62c6 5047
1e6feb95 5048
5005acfe 5049 enablestring=
e6cc62c6
VS
5050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5051echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5052 no_cache=0
5053 # Check whether --enable-mslu or --disable-mslu was given.
5054if test "${enable_mslu+set}" = set; then
5055 enableval="$enable_mslu"
e6cc62c6 5056
a72a4bfa
VS
5057 if test "$enableval" = yes; then
5058 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5059 else
5060 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5061 fi
e6cc62c6 5062
a72a4bfa 5063else
e6cc62c6 5064
a72a4bfa
VS
5065 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5066 if test "x$LINE" != x ; then
5067 eval "DEFAULT_$LINE"
5068 else
5069 no_cache=1
5070 fi
5071
5072 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5073
e6cc62c6 5074fi;
a72a4bfa
VS
5075
5076 eval "$ac_cv_use_mslu"
5077 if test "$no_cache" != 1; then
5078 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5079 fi
5080
5081 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5082 echo "$as_me:$LINENO: result: yes" >&5
5083echo "${ECHO_T}yes" >&6
a72a4bfa 5084 else
e6cc62c6
VS
5085 echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
a72a4bfa 5087 fi
e6cc62c6 5088
a72a4bfa 5089
5005acfe 5090 enablestring=
e46d2a18
VS
5091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5092echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5093 no_cache=0
e46d2a18
VS
5094 # Check whether --enable-snglinst or --disable-snglinst was given.
5095if test "${enable_snglinst+set}" = set; then
5096 enableval="$enable_snglinst"
e6cc62c6 5097
1e6feb95 5098 if test "$enableval" = yes; then
e46d2a18 5099 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5100 else
e46d2a18 5101 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5102 fi
e6cc62c6 5103
10f2d63a 5104else
e6cc62c6 5105
e46d2a18 5106 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5107 if test "x$LINE" != x ; then
5108 eval "DEFAULT_$LINE"
5109 else
5110 no_cache=1
5111 fi
5112
e46d2a18 5113 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5114
e6cc62c6 5115fi;
10f2d63a 5116
e46d2a18 5117 eval "$ac_cv_use_snglinst"
10f2d63a 5118 if test "$no_cache" != 1; then
e46d2a18 5119 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5120 fi
5121
e46d2a18
VS
5122 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5123 echo "$as_me:$LINENO: result: yes" >&5
5124echo "${ECHO_T}yes" >&6
5125 else
5126 echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6
5128 fi
5129
5130
5131 enablestring=
5132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5133echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5134 no_cache=0
5135 # Check whether --enable-streams or --disable-streams was given.
5136if test "${enable_streams+set}" = set; then
5137 enableval="$enable_streams"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_streams='wxUSE_STREAMS=yes'
5141 else
5142 ac_cv_use_streams='wxUSE_STREAMS=no'
5143 fi
5144
5145else
5146
5147 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5155
5156fi;
5157
5158 eval "$ac_cv_use_streams"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5164 echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
10f2d63a 5166 else
e6cc62c6
VS
5167 echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
10f2d63a 5169 fi
e6cc62c6 5170
10f2d63a 5171
5005acfe 5172 enablestring=
e6cc62c6
VS
5173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5174echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5175 no_cache=0
5176 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5177if test "${enable_std_iostreams+set}" = set; then
5178 enableval="$enable_std_iostreams"
e6cc62c6 5179
10f2d63a
VZ
5180 if test "$enableval" = yes; then
5181 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5182 else
5183 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5184 fi
e6cc62c6 5185
10f2d63a 5186else
e6cc62c6 5187
10f2d63a
VZ
5188 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5196
e6cc62c6 5197fi;
10f2d63a
VZ
5198
5199 eval "$ac_cv_use_std_iostreams"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5205 echo "$as_me:$LINENO: result: yes" >&5
5206echo "${ECHO_T}yes" >&6
10f2d63a 5207 else
e6cc62c6
VS
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
10f2d63a 5210 fi
e6cc62c6 5211
10f2d63a 5212
5005acfe 5213 enablestring=
e46d2a18
VS
5214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5215echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5216 no_cache=0
e46d2a18
VS
5217 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5218if test "${enable_stopwatch+set}" = set; then
5219 enableval="$enable_stopwatch"
e6cc62c6 5220
24528b0c 5221 if test "$enableval" = yes; then
e46d2a18 5222 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5223 else
e46d2a18 5224 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5225 fi
e6cc62c6 5226
24528b0c 5227else
e6cc62c6 5228
e46d2a18 5229 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
e46d2a18 5236 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5237
e6cc62c6 5238fi;
24528b0c 5239
e46d2a18 5240 eval "$ac_cv_use_stopwatch"
24528b0c 5241 if test "$no_cache" != 1; then
e46d2a18 5242 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5243 fi
5244
e46d2a18 5245 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5246 echo "$as_me:$LINENO: result: yes" >&5
5247echo "${ECHO_T}yes" >&6
24528b0c 5248 else
e6cc62c6
VS
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
24528b0c 5251 fi
e6cc62c6 5252
24528b0c 5253
5005acfe 5254 enablestring=
e46d2a18
VS
5255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5256echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5257 no_cache=0
e46d2a18
VS
5258 # Check whether --enable-system_options or --disable-system_options was given.
5259if test "${enable_system_options+set}" = set; then
5260 enableval="$enable_system_options"
e6cc62c6 5261
10f2d63a 5262 if test "$enableval" = yes; then
e46d2a18 5263 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5264 else
e46d2a18 5265 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5266 fi
e6cc62c6 5267
10f2d63a 5268else
e6cc62c6 5269
e46d2a18 5270 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
e46d2a18 5277 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5278
e6cc62c6 5279fi;
10f2d63a 5280
e46d2a18 5281 eval "$ac_cv_use_system_options"
10f2d63a 5282 if test "$no_cache" != 1; then
e46d2a18 5283 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5284 fi
5285
e46d2a18 5286 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5287 echo "$as_me:$LINENO: result: yes" >&5
5288echo "${ECHO_T}yes" >&6
10f2d63a 5289 else
e6cc62c6
VS
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
10f2d63a 5292 fi
e6cc62c6 5293
10f2d63a 5294
5005acfe 5295 enablestring=
e46d2a18
VS
5296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5297echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5298 no_cache=0
e46d2a18
VS
5299 # Check whether --enable-textbuf or --disable-textbuf was given.
5300if test "${enable_textbuf+set}" = set; then
5301 enableval="$enable_textbuf"
e6cc62c6 5302
10f2d63a 5303 if test "$enableval" = yes; then
e46d2a18 5304 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5305 else
e46d2a18 5306 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5307 fi
e6cc62c6 5308
10f2d63a 5309else
e6cc62c6 5310
e46d2a18 5311 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
e46d2a18 5318 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5319
e6cc62c6 5320fi;
10f2d63a 5321
e46d2a18 5322 eval "$ac_cv_use_textbuf"
10f2d63a 5323 if test "$no_cache" != 1; then
e46d2a18 5324 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5325 fi
5326
e46d2a18 5327 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5328 echo "$as_me:$LINENO: result: yes" >&5
5329echo "${ECHO_T}yes" >&6
10f2d63a 5330 else
e6cc62c6
VS
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
10f2d63a 5333 fi
e6cc62c6 5334
10f2d63a 5335
5005acfe 5336 enablestring=
e46d2a18
VS
5337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5338echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5339 no_cache=0
e46d2a18
VS
5340 # Check whether --enable-textfile or --disable-textfile was given.
5341if test "${enable_textfile+set}" = set; then
5342 enableval="$enable_textfile"
e6cc62c6 5343
10f2d63a 5344 if test "$enableval" = yes; then
e46d2a18 5345 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5346 else
e46d2a18 5347 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5348 fi
e6cc62c6 5349
10f2d63a 5350else
e6cc62c6 5351
e46d2a18 5352 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
e46d2a18 5359 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5360
e6cc62c6 5361fi;
10f2d63a 5362
e46d2a18 5363 eval "$ac_cv_use_textfile"
10f2d63a 5364 if test "$no_cache" != 1; then
e46d2a18 5365 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5366 fi
5367
e46d2a18 5368 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5369 echo "$as_me:$LINENO: result: yes" >&5
5370echo "${ECHO_T}yes" >&6
10f2d63a 5371 else
e6cc62c6
VS
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
10f2d63a 5374 fi
e6cc62c6 5375
8284b0c5 5376
5005acfe 5377 enablestring=
e46d2a18
VS
5378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5379echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5380 no_cache=0
e46d2a18
VS
5381 # Check whether --enable-timer or --disable-timer was given.
5382if test "${enable_timer+set}" = set; then
5383 enableval="$enable_timer"
e6cc62c6 5384
eb4efbdc 5385 if test "$enableval" = yes; then
e46d2a18 5386 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5387 else
e46d2a18 5388 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5389 fi
e6cc62c6 5390
eb4efbdc 5391else
e6cc62c6 5392
e46d2a18 5393 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5394 if test "x$LINE" != x ; then
5395 eval "DEFAULT_$LINE"
5396 else
5397 no_cache=1
5398 fi
5399
e46d2a18 5400 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5401
e6cc62c6 5402fi;
eb4efbdc 5403
e46d2a18 5404 eval "$ac_cv_use_timer"
eb4efbdc 5405 if test "$no_cache" != 1; then
e46d2a18 5406 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5407 fi
5408
e46d2a18 5409 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5410 echo "$as_me:$LINENO: result: yes" >&5
5411echo "${ECHO_T}yes" >&6
eb4efbdc 5412 else
e6cc62c6
VS
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
eb4efbdc 5415 fi
e6cc62c6 5416
eb4efbdc 5417
5005acfe 5418 enablestring=
e46d2a18
VS
5419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5420echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5421 no_cache=0
e46d2a18
VS
5422 # Check whether --enable-unicode or --disable-unicode was given.
5423if test "${enable_unicode+set}" = set; then
5424 enableval="$enable_unicode"
e6cc62c6 5425
4f3c5f06 5426 if test "$enableval" = yes; then
e46d2a18 5427 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5428 else
e46d2a18 5429 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5430 fi
e6cc62c6 5431
4f3c5f06 5432else
e6cc62c6 5433
e46d2a18 5434 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
e46d2a18 5441 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5442
e6cc62c6 5443fi;
4f3c5f06 5444
e46d2a18 5445 eval "$ac_cv_use_unicode"
4f3c5f06 5446 if test "$no_cache" != 1; then
e46d2a18 5447 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5448 fi
5449
e46d2a18 5450 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5451 echo "$as_me:$LINENO: result: yes" >&5
5452echo "${ECHO_T}yes" >&6
4f3c5f06 5453 else
e6cc62c6
VS
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
4f3c5f06 5456 fi
e6cc62c6 5457
52127426 5458
e46d2a18
VS
5459 enablestring=
5460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5461echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5462 no_cache=0
5463 # Check whether --enable-wave or --disable-wave was given.
5464if test "${enable_wave+set}" = set; then
5465 enableval="$enable_wave"
5466
5467 if test "$enableval" = yes; then
5468 ac_cv_use_wave='wxUSE_WAVE=yes'
5469 else
5470 ac_cv_use_wave='wxUSE_WAVE=no'
5471 fi
5472
5473else
5474
5475 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5483
5484fi;
5485
5486 eval "$ac_cv_use_wave"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_WAVE" = yes; then
5492 echo "$as_me:$LINENO: result: yes" >&5
5493echo "${ECHO_T}yes" >&6
5494 else
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497 fi
5498
8284b0c5 5499
5005acfe 5500 enablestring=
e46d2a18
VS
5501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5502echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5503 no_cache=0
e46d2a18
VS
5504 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5505if test "${enable_wxprintfv+set}" = set; then
5506 enableval="$enable_wxprintfv"
e6cc62c6 5507
1e6feb95 5508 if test "$enableval" = yes; then
e46d2a18 5509 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5510 else
e46d2a18 5511 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5512 fi
e6cc62c6 5513
1e6feb95 5514else
e6cc62c6 5515
e46d2a18 5516 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
e46d2a18 5523 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5524
e6cc62c6 5525fi;
1e6feb95 5526
e46d2a18 5527 eval "$ac_cv_use_wxprintfv"
1e6feb95 5528 if test "$no_cache" != 1; then
e46d2a18 5529 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5530 fi
5531
e46d2a18 5532 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5533 echo "$as_me:$LINENO: result: yes" >&5
5534echo "${ECHO_T}yes" >&6
1e6feb95 5535 else
e6cc62c6
VS
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
1e6feb95 5538 fi
e6cc62c6 5539
1e6feb95 5540
5005acfe 5541 enablestring=
e46d2a18
VS
5542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5543echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5544 no_cache=0
e46d2a18
VS
5545 # Check whether --enable-zipstream or --disable-zipstream was given.
5546if test "${enable_zipstream+set}" = set; then
5547 enableval="$enable_zipstream"
e6cc62c6 5548
3e44f09d 5549 if test "$enableval" = yes; then
e46d2a18 5550 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5551 else
e46d2a18 5552 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5553 fi
e6cc62c6 5554
3e44f09d 5555else
e6cc62c6 5556
e46d2a18 5557 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
e46d2a18 5564 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5565
e6cc62c6 5566fi;
3e44f09d 5567
e46d2a18 5568 eval "$ac_cv_use_zipstream"
3e44f09d 5569 if test "$no_cache" != 1; then
e46d2a18 5570 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5571 fi
5572
e46d2a18 5573 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5574 echo "$as_me:$LINENO: result: yes" >&5
5575echo "${ECHO_T}yes" >&6
3e44f09d 5576 else
e6cc62c6
VS
5577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
3e44f09d 5579 fi
e6cc62c6 5580
8284b0c5 5581
7015ef3a
VZ
5582 enablestring=
5583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5584echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5585 no_cache=0
5586 # Check whether --enable-gzstream or --disable-gzstream was given.
5587if test "${enable_gzstream+set}" = set; then
5588 enableval="$enable_gzstream"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5592 else
5593 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5594 fi
5595
5596else
5597
5598 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5606
5607fi;
5608
5609 eval "$ac_cv_use_gzstream"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_GZSTREAM" = yes; then
5615 echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
5617 else
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
5620 fi
5621
5622
52127426 5623
5005acfe 5624 enablestring=
e6cc62c6
VS
5625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5626echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5627 no_cache=0
5628 # Check whether --enable-url or --disable-url was given.
5629if test "${enable_url+set}" = set; then
5630 enableval="$enable_url"
e6cc62c6 5631
4cdb0ab0
VS
5632 if test "$enableval" = yes; then
5633 ac_cv_use_url='wxUSE_URL=yes'
5634 else
5635 ac_cv_use_url='wxUSE_URL=no'
5636 fi
e6cc62c6 5637
4cdb0ab0 5638else
e6cc62c6 5639
4cdb0ab0
VS
5640 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5641 if test "x$LINE" != x ; then
5642 eval "DEFAULT_$LINE"
5643 else
5644 no_cache=1
5645 fi
5646
5647 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5648
e6cc62c6 5649fi;
4cdb0ab0
VS
5650
5651 eval "$ac_cv_use_url"
5652 if test "$no_cache" != 1; then
5653 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5654 fi
5655
5656 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5657 echo "$as_me:$LINENO: result: yes" >&5
5658echo "${ECHO_T}yes" >&6
4cdb0ab0 5659 else
e6cc62c6
VS
5660 echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
4cdb0ab0 5662 fi
e6cc62c6 5663
4cdb0ab0 5664
5005acfe 5665 enablestring=
e6cc62c6
VS
5666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5667echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5668 no_cache=0
5669 # Check whether --enable-protocol or --disable-protocol was given.
5670if test "${enable_protocol+set}" = set; then
5671 enableval="$enable_protocol"
e6cc62c6 5672
4cdb0ab0
VS
5673 if test "$enableval" = yes; then
5674 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5675 else
5676 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5677 fi
e6cc62c6 5678
4cdb0ab0 5679else
e6cc62c6 5680
4cdb0ab0
VS
5681 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5682 if test "x$LINE" != x ; then
5683 eval "DEFAULT_$LINE"
5684 else
5685 no_cache=1
5686 fi
5687
5688 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5689
e6cc62c6 5690fi;
4cdb0ab0
VS
5691
5692 eval "$ac_cv_use_protocol"
5693 if test "$no_cache" != 1; then
5694 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5695 fi
5696
5697 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5698 echo "$as_me:$LINENO: result: yes" >&5
5699echo "${ECHO_T}yes" >&6
4cdb0ab0 5700 else
e6cc62c6
VS
5701 echo "$as_me:$LINENO: result: no" >&5
5702echo "${ECHO_T}no" >&6
4cdb0ab0 5703 fi
e6cc62c6 5704
4cdb0ab0 5705
5005acfe 5706 enablestring=
e6cc62c6
VS
5707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5708echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5709 no_cache=0
5710 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5711if test "${enable_protocol_http+set}" = set; then
5712 enableval="$enable_protocol_http"
e6cc62c6 5713
4cdb0ab0
VS
5714 if test "$enableval" = yes; then
5715 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5716 else
5717 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5718 fi
e6cc62c6 5719
4cdb0ab0 5720else
e6cc62c6 5721
4cdb0ab0
VS
5722 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5723 if test "x$LINE" != x ; then
5724 eval "DEFAULT_$LINE"
5725 else
5726 no_cache=1
5727 fi
5728
5729 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5730
e6cc62c6 5731fi;
4cdb0ab0
VS
5732
5733 eval "$ac_cv_use_protocol_http"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5739 echo "$as_me:$LINENO: result: yes" >&5
5740echo "${ECHO_T}yes" >&6
4cdb0ab0 5741 else
e6cc62c6
VS
5742 echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
4cdb0ab0 5744 fi
e6cc62c6 5745
4cdb0ab0 5746
5005acfe 5747 enablestring=
e6cc62c6
VS
5748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5749echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5750 no_cache=0
5751 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5752if test "${enable_protocol_ftp+set}" = set; then
5753 enableval="$enable_protocol_ftp"
e6cc62c6 5754
4cdb0ab0
VS
5755 if test "$enableval" = yes; then
5756 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5757 else
5758 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5759 fi
e6cc62c6 5760
4cdb0ab0 5761else
e6cc62c6 5762
4cdb0ab0
VS
5763 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5771
e6cc62c6 5772fi;
4cdb0ab0
VS
5773
5774 eval "$ac_cv_use_protocol_ftp"
5775 if test "$no_cache" != 1; then
5776 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5777 fi
5778
5779 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5780 echo "$as_me:$LINENO: result: yes" >&5
5781echo "${ECHO_T}yes" >&6
4cdb0ab0 5782 else
e6cc62c6
VS
5783 echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6
4cdb0ab0 5785 fi
e6cc62c6 5786
4cdb0ab0 5787
5005acfe 5788 enablestring=
e6cc62c6
VS
5789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5790echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5791 no_cache=0
5792 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5793if test "${enable_protocol_file+set}" = set; then
5794 enableval="$enable_protocol_file"
e6cc62c6 5795
4cdb0ab0
VS
5796 if test "$enableval" = yes; then
5797 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5798 else
5799 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5800 fi
e6cc62c6 5801
4cdb0ab0 5802else
e6cc62c6 5803
4cdb0ab0
VS
5804 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
5811 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5812
e6cc62c6 5813fi;
4cdb0ab0
VS
5814
5815 eval "$ac_cv_use_protocol_file"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5821 echo "$as_me:$LINENO: result: yes" >&5
5822echo "${ECHO_T}yes" >&6
4cdb0ab0 5823 else
e6cc62c6
VS
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
4cdb0ab0 5826 fi
e6cc62c6 5827
52127426 5828
8284b0c5
MB
5829
5830
5831
5005acfe 5832 enablestring=
e6cc62c6
VS
5833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5834echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5835 no_cache=0
5836 # Check whether --enable-threads or --disable-threads was given.
5837if test "${enable_threads+set}" = set; then
5838 enableval="$enable_threads"
e6cc62c6 5839
10f2d63a
VZ
5840 if test "$enableval" = yes; then
5841 ac_cv_use_threads='wxUSE_THREADS=yes'
5842 else
5843 ac_cv_use_threads='wxUSE_THREADS=no'
5844 fi
e6cc62c6 5845
10f2d63a 5846else
e6cc62c6 5847
10f2d63a
VZ
5848 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5849 if test "x$LINE" != x ; then
5850 eval "DEFAULT_$LINE"
5851 else
5852 no_cache=1
5853 fi
5854
5855 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5856
e6cc62c6 5857fi;
10f2d63a
VZ
5858
5859 eval "$ac_cv_use_threads"
5860 if test "$no_cache" != 1; then
5861 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5862 fi
5863
5864 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5865 echo "$as_me:$LINENO: result: yes" >&5
5866echo "${ECHO_T}yes" >&6
10f2d63a 5867 else
e6cc62c6
VS
5868 echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
10f2d63a 5870 fi
e6cc62c6 5871
10f2d63a 5872
b12915c1
VZ
5873if test "$wxUSE_GUI" = "yes"; then
5874
8284b0c5
MB
5875
5876
5005acfe 5877 enablestring=
e6cc62c6
VS
5878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5879echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5880 no_cache=0
5881 # Check whether --enable-docview or --disable-docview was given.
5882if test "${enable_docview+set}" = set; then
5883 enableval="$enable_docview"
e6cc62c6 5884
10f2d63a
VZ
5885 if test "$enableval" = yes; then
5886 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5887 else
5888 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5889 fi
e6cc62c6 5890
10f2d63a 5891else
e6cc62c6 5892
10f2d63a
VZ
5893 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5894 if test "x$LINE" != x ; then
5895 eval "DEFAULT_$LINE"
5896 else
5897 no_cache=1
5898 fi
5899
5900 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5901
e6cc62c6 5902fi;
10f2d63a
VZ
5903
5904 eval "$ac_cv_use_docview"
5905 if test "$no_cache" != 1; then
5906 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5907 fi
5908
5909 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5910 echo "$as_me:$LINENO: result: yes" >&5
5911echo "${ECHO_T}yes" >&6
10f2d63a 5912 else
e6cc62c6
VS
5913 echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
10f2d63a 5915 fi
e6cc62c6 5916
10f2d63a 5917
5005acfe 5918 enablestring=
e6cc62c6
VS
5919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5920echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5921 no_cache=0
5922 # Check whether --enable-help or --disable-help was given.
5923if test "${enable_help+set}" = set; then
5924 enableval="$enable_help"
e6cc62c6 5925
10f2d63a
VZ
5926 if test "$enableval" = yes; then
5927 ac_cv_use_help='wxUSE_HELP=yes'
5928 else
5929 ac_cv_use_help='wxUSE_HELP=no'
5930 fi
e6cc62c6 5931
10f2d63a 5932else
e6cc62c6 5933
10f2d63a
VZ
5934 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5935 if test "x$LINE" != x ; then
5936 eval "DEFAULT_$LINE"
5937 else
5938 no_cache=1
5939 fi
5940
5941 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5942
e6cc62c6 5943fi;
10f2d63a
VZ
5944
5945 eval "$ac_cv_use_help"
5946 if test "$no_cache" != 1; then
5947 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5948 fi
5949
5950 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5951 echo "$as_me:$LINENO: result: yes" >&5
5952echo "${ECHO_T}yes" >&6
10f2d63a 5953 else
e6cc62c6
VS
5954 echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
10f2d63a 5956 fi
e6cc62c6 5957
10f2d63a 5958
5005acfe 5959 enablestring=
e6cc62c6
VS
5960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5961echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5962 no_cache=0
5963 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5964if test "${enable_mshtmlhelp+set}" = set; then
5965 enableval="$enable_mshtmlhelp"
e6cc62c6 5966
29fd3c0c
VS
5967 if test "$enableval" = yes; then
5968 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5969 else
5970 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5971 fi
e6cc62c6 5972
29fd3c0c 5973else
e6cc62c6 5974
29fd3c0c
VS
5975 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5976 if test "x$LINE" != x ; then
5977 eval "DEFAULT_$LINE"
5978 else
5979 no_cache=1
5980 fi
5981
5982 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5983
e6cc62c6 5984fi;
29fd3c0c
VS
5985
5986 eval "$ac_cv_use_mshtmlhelp"
5987 if test "$no_cache" != 1; then
5988 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5989 fi
5990
5991 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5992 echo "$as_me:$LINENO: result: yes" >&5
5993echo "${ECHO_T}yes" >&6
29fd3c0c 5994 else
e6cc62c6
VS
5995 echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6
29fd3c0c 5997 fi
e6cc62c6 5998
29fd3c0c 5999
5005acfe 6000 enablestring=
e6cc62c6
VS
6001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6002echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6003 no_cache=0
6004 # Check whether --enable-html or --disable-html was given.
6005if test "${enable_html+set}" = set; then
6006 enableval="$enable_html"
e6cc62c6 6007
3379ed37
VZ
6008 if test "$enableval" = yes; then
6009 ac_cv_use_html='wxUSE_HTML=yes'
6010 else
6011 ac_cv_use_html='wxUSE_HTML=no'
6012 fi
e6cc62c6 6013
3379ed37 6014else
e6cc62c6 6015
3379ed37
VZ
6016 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6017 if test "x$LINE" != x ; then
6018 eval "DEFAULT_$LINE"
6019 else
6020 no_cache=1
6021 fi
6022
6023 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6024
e6cc62c6 6025fi;
3379ed37
VZ
6026
6027 eval "$ac_cv_use_html"
6028 if test "$no_cache" != 1; then
6029 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6030 fi
6031
6032 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6033 echo "$as_me:$LINENO: result: yes" >&5
6034echo "${ECHO_T}yes" >&6
3379ed37 6035 else
e6cc62c6
VS
6036 echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
3379ed37 6038 fi
e6cc62c6 6039
3379ed37 6040
5005acfe 6041 enablestring=
e6cc62c6
VS
6042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6043echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6044 no_cache=0
6045 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6046if test "${enable_htmlhelp+set}" = set; then
6047 enableval="$enable_htmlhelp"
e6cc62c6 6048
3379ed37
VZ
6049 if test "$enableval" = yes; then
6050 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6051 else
6052 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6053 fi
e6cc62c6 6054
3379ed37 6055else
e6cc62c6 6056
3379ed37
VZ
6057 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6058 if test "x$LINE" != x ; then
6059 eval "DEFAULT_$LINE"
6060 else
6061 no_cache=1
6062 fi
6063
6064 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6065
e6cc62c6 6066fi;
3379ed37
VZ
6067
6068 eval "$ac_cv_use_htmlhelp"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6074 echo "$as_me:$LINENO: result: yes" >&5
6075echo "${ECHO_T}yes" >&6
3379ed37 6076 else
e6cc62c6
VS
6077 echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6
3379ed37 6079 fi
e6cc62c6 6080
3379ed37 6081
5005acfe 6082 enablestring=
e6cc62c6
VS
6083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6084echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6085 no_cache=0
6086 # Check whether --enable-constraints or --disable-constraints was given.
6087if test "${enable_constraints+set}" = set; then
6088 enableval="$enable_constraints"
e6cc62c6 6089
10f2d63a
VZ
6090 if test "$enableval" = yes; then
6091 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6092 else
6093 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6094 fi
e6cc62c6 6095
10f2d63a 6096else
e6cc62c6 6097
10f2d63a
VZ
6098 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6099 if test "x$LINE" != x ; then
6100 eval "DEFAULT_$LINE"
6101 else
6102 no_cache=1
6103 fi
6104
6105 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6106
e6cc62c6 6107fi;
10f2d63a
VZ
6108
6109 eval "$ac_cv_use_constraints"
6110 if test "$no_cache" != 1; then
6111 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6112 fi
6113
6114 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6115 echo "$as_me:$LINENO: result: yes" >&5
6116echo "${ECHO_T}yes" >&6
10f2d63a 6117 else
e6cc62c6
VS
6118 echo "$as_me:$LINENO: result: no" >&5
6119echo "${ECHO_T}no" >&6
10f2d63a 6120 fi
e6cc62c6 6121
10f2d63a 6122
5005acfe 6123 enablestring=
e6cc62c6
VS
6124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6125echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6126 no_cache=0
6127 # Check whether --enable-printarch or --disable-printarch was given.
6128if test "${enable_printarch+set}" = set; then
6129 enableval="$enable_printarch"
e6cc62c6 6130
10f2d63a
VZ
6131 if test "$enableval" = yes; then
6132 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6133 else
6134 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6135 fi
e6cc62c6 6136
10f2d63a 6137else
e6cc62c6 6138
10f2d63a
VZ
6139 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6140 if test "x$LINE" != x ; then
6141 eval "DEFAULT_$LINE"
6142 else
6143 no_cache=1
6144 fi
6145
6146 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6147
e6cc62c6 6148fi;
10f2d63a
VZ
6149
6150 eval "$ac_cv_use_printarch"
6151 if test "$no_cache" != 1; then
6152 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6153 fi
6154
6155 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6156 echo "$as_me:$LINENO: result: yes" >&5
6157echo "${ECHO_T}yes" >&6
10f2d63a 6158 else
e6cc62c6
VS
6159 echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
10f2d63a 6161 fi
e6cc62c6 6162
10f2d63a 6163
5005acfe 6164 enablestring=
e6cc62c6
VS
6165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6166echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6167 no_cache=0
6168 # Check whether --enable-mdi or --disable-mdi was given.
6169if test "${enable_mdi+set}" = set; then
6170 enableval="$enable_mdi"
e6cc62c6 6171
10f2d63a
VZ
6172 if test "$enableval" = yes; then
6173 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6174 else
6175 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6176 fi
e6cc62c6 6177
10f2d63a 6178else
e6cc62c6 6179
10f2d63a
VZ
6180 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6181 if test "x$LINE" != x ; then
6182 eval "DEFAULT_$LINE"
6183 else
6184 no_cache=1
6185 fi
6186
6187 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6188
e6cc62c6 6189fi;
10f2d63a
VZ
6190
6191 eval "$ac_cv_use_mdi"
6192 if test "$no_cache" != 1; then
6193 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6194 fi
6195
6196 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6197 echo "$as_me:$LINENO: result: yes" >&5
6198echo "${ECHO_T}yes" >&6
10f2d63a 6199 else
e6cc62c6
VS
6200 echo "$as_me:$LINENO: result: no" >&5
6201echo "${ECHO_T}no" >&6
10f2d63a 6202 fi
e6cc62c6 6203
698dcdb6 6204
5005acfe 6205 enablestring=
e6cc62c6
VS
6206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6207echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6208 no_cache=0
6209 # Check whether --enable-loggui or --disable-loggui was given.
6210if test "${enable_loggui+set}" = set; then
6211 enableval="$enable_loggui"
e6cc62c6 6212
1e6feb95
VZ
6213 if test "$enableval" = yes; then
6214 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6215 else
6216 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6217 fi
e6cc62c6 6218
1e6feb95 6219else
e6cc62c6 6220
1e6feb95
VZ
6221 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6222 if test "x$LINE" != x ; then
6223 eval "DEFAULT_$LINE"
6224 else
6225 no_cache=1
6226 fi
6227
6228 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6229
e6cc62c6 6230fi;
1e6feb95
VZ
6231
6232 eval "$ac_cv_use_loggui"
6233 if test "$no_cache" != 1; then
6234 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6235 fi
6236
6237 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6238 echo "$as_me:$LINENO: result: yes" >&5
6239echo "${ECHO_T}yes" >&6
1e6feb95 6240 else
e6cc62c6
VS
6241 echo "$as_me:$LINENO: result: no" >&5
6242echo "${ECHO_T}no" >&6
1e6feb95 6243 fi
e6cc62c6 6244
1e6feb95 6245
5005acfe 6246 enablestring=
e6cc62c6
VS
6247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6248echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6249 no_cache=0
6250 # Check whether --enable-logwin or --disable-logwin was given.
6251if test "${enable_logwin+set}" = set; then
6252 enableval="$enable_logwin"
e6cc62c6 6253
1e6feb95
VZ
6254 if test "$enableval" = yes; then
6255 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6256 else
6257 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6258 fi
e6cc62c6 6259
1e6feb95 6260else
e6cc62c6 6261
1e6feb95
VZ
6262 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6263 if test "x$LINE" != x ; then
6264 eval "DEFAULT_$LINE"
6265 else
6266 no_cache=1
6267 fi
6268
6269 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6270
e6cc62c6 6271fi;
1e6feb95
VZ
6272
6273 eval "$ac_cv_use_logwin"
6274 if test "$no_cache" != 1; then
6275 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6276 fi
6277
6278 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6279 echo "$as_me:$LINENO: result: yes" >&5
6280echo "${ECHO_T}yes" >&6
1e6feb95 6281 else
e6cc62c6
VS
6282 echo "$as_me:$LINENO: result: no" >&5
6283echo "${ECHO_T}no" >&6
1e6feb95 6284 fi
e6cc62c6 6285
1e6feb95 6286
5005acfe 6287 enablestring=
e6cc62c6
VS
6288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6289echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6290 no_cache=0
6291 # Check whether --enable-logdialog or --disable-logdialog was given.
6292if test "${enable_logdialog+set}" = set; then
6293 enableval="$enable_logdialog"
e6cc62c6 6294
69d27ff7
MB
6295 if test "$enableval" = yes; then
6296 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6297 else
6298 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6299 fi
e6cc62c6 6300
69d27ff7 6301else
e6cc62c6 6302
69d27ff7
MB
6303 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6304 if test "x$LINE" != x ; then
6305 eval "DEFAULT_$LINE"
6306 else
6307 no_cache=1
6308 fi
6309
6310 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6311
e6cc62c6 6312fi;
69d27ff7
MB
6313
6314 eval "$ac_cv_use_logdialog"
6315 if test "$no_cache" != 1; then
6316 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6317 fi
6318
6319 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6320 echo "$as_me:$LINENO: result: yes" >&5
6321echo "${ECHO_T}yes" >&6
69d27ff7 6322 else
e6cc62c6
VS
6323 echo "$as_me:$LINENO: result: no" >&5
6324echo "${ECHO_T}no" >&6
69d27ff7 6325 fi
e6cc62c6 6326
8284b0c5 6327
52127426 6328
5005acfe 6329 enablestring=
e6cc62c6
VS
6330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6331echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6332 no_cache=0
6333 # Check whether --enable-postscript or --disable-postscript was given.
6334if test "${enable_postscript+set}" = set; then
6335 enableval="$enable_postscript"
e6cc62c6 6336
10f2d63a
VZ
6337 if test "$enableval" = yes; then
6338 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6339 else
6340 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6341 fi
e6cc62c6 6342
10f2d63a 6343else
e6cc62c6 6344
10f2d63a
VZ
6345 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6346 if test "x$LINE" != x ; then
6347 eval "DEFAULT_$LINE"
6348 else
6349 no_cache=1
6350 fi
6351
6352 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6353
e6cc62c6 6354fi;
10f2d63a
VZ
6355
6356 eval "$ac_cv_use_postscript"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6362 echo "$as_me:$LINENO: result: yes" >&5
6363echo "${ECHO_T}yes" >&6
10f2d63a 6364 else
e6cc62c6
VS
6365 echo "$as_me:$LINENO: result: no" >&5
6366echo "${ECHO_T}no" >&6
10f2d63a 6367 fi
e6cc62c6 6368
8284b0c5
MB
6369
6370
52127426 6371
8284b0c5 6372
5005acfe 6373 enablestring=
e6cc62c6
VS
6374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6375echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6376 no_cache=0
3c907f20
VZ
6377 # Check whether --enable-prologio or --disable-prologio was given.
6378if test "${enable_prologio+set}" = set; then
6379 enableval="$enable_prologio"
e6cc62c6 6380
10f2d63a 6381 if test "$enableval" = yes; then
3c907f20 6382 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6383 else
3c907f20 6384 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6385 fi
e6cc62c6 6386
10f2d63a 6387else
e6cc62c6 6388
3c907f20 6389 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
3c907f20 6396 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6397
e6cc62c6 6398fi;
10f2d63a 6399
3c907f20 6400 eval "$ac_cv_use_prologio"
10f2d63a 6401 if test "$no_cache" != 1; then
3c907f20 6402 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6403 fi
6404
3c907f20 6405 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6406 echo "$as_me:$LINENO: result: yes" >&5
6407echo "${ECHO_T}yes" >&6
10f2d63a 6408 else
e6cc62c6
VS
6409 echo "$as_me:$LINENO: result: no" >&5
6410echo "${ECHO_T}no" >&6
10f2d63a 6411 fi
e6cc62c6 6412
8284b0c5 6413
5005acfe 6414 enablestring=
e6cc62c6
VS
6415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6416echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6417 no_cache=0
3c907f20
VZ
6418 # Check whether --enable-resources or --disable-resources was given.
6419if test "${enable_resources+set}" = set; then
6420 enableval="$enable_resources"
e6cc62c6 6421
10f2d63a 6422 if test "$enableval" = yes; then
3c907f20 6423 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6424 else
3c907f20 6425 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6426 fi
e6cc62c6 6427
10f2d63a 6428else
e6cc62c6 6429
3c907f20 6430 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6431 if test "x$LINE" != x ; then
6432 eval "DEFAULT_$LINE"
6433 else
6434 no_cache=1
6435 fi
6436
3c907f20 6437 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6438
e6cc62c6 6439fi;
10f2d63a 6440
3c907f20 6441 eval "$ac_cv_use_resources"
10f2d63a 6442 if test "$no_cache" != 1; then
3c907f20 6443 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6444 fi
6445
3c907f20 6446 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6447 echo "$as_me:$LINENO: result: yes" >&5
6448echo "${ECHO_T}yes" >&6
10f2d63a 6449 else
e6cc62c6
VS
6450 echo "$as_me:$LINENO: result: no" >&5
6451echo "${ECHO_T}no" >&6
10f2d63a 6452 fi
e6cc62c6 6453
8284b0c5
MB
6454
6455
52127426 6456
5005acfe 6457 enablestring=
e6cc62c6
VS
6458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6459echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6460 no_cache=0
6461 # Check whether --enable-clipboard or --disable-clipboard was given.
6462if test "${enable_clipboard+set}" = set; then
6463 enableval="$enable_clipboard"
e6cc62c6 6464
10f2d63a
VZ
6465 if test "$enableval" = yes; then
6466 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6467 else
6468 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6469 fi
e6cc62c6 6470
10f2d63a 6471else
e6cc62c6 6472
10f2d63a
VZ
6473 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6474 if test "x$LINE" != x ; then
6475 eval "DEFAULT_$LINE"
6476 else
6477 no_cache=1
6478 fi
6479
6480 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6481
e6cc62c6 6482fi;
10f2d63a
VZ
6483
6484 eval "$ac_cv_use_clipboard"
6485 if test "$no_cache" != 1; then
6486 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6487 fi
6488
6489 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6490 echo "$as_me:$LINENO: result: yes" >&5
6491echo "${ECHO_T}yes" >&6
10f2d63a 6492 else
e6cc62c6
VS
6493 echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6
10f2d63a 6495 fi
e6cc62c6 6496
10f2d63a 6497
5005acfe 6498 enablestring=
e6cc62c6
VS
6499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6500echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6501 no_cache=0
6502 # Check whether --enable-dnd or --disable-dnd was given.
6503if test "${enable_dnd+set}" = set; then
6504 enableval="$enable_dnd"
e6cc62c6 6505
10f2d63a
VZ
6506 if test "$enableval" = yes; then
6507 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6508 else
6509 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6510 fi
e6cc62c6 6511
10f2d63a 6512else
e6cc62c6 6513
10f2d63a
VZ
6514 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6522
e6cc62c6 6523fi;
10f2d63a
VZ
6524
6525 eval "$ac_cv_use_dnd"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6531 echo "$as_me:$LINENO: result: yes" >&5
6532echo "${ECHO_T}yes" >&6
10f2d63a 6533 else
e6cc62c6
VS
6534 echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
10f2d63a 6536 fi
e6cc62c6 6537
10f2d63a 6538
5005acfe 6539 enablestring=
e6cc62c6
VS
6540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6541echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6542 no_cache=0
6543 # Check whether --enable-metafile or --disable-metafile was given.
6544if test "${enable_metafile+set}" = set; then
6545 enableval="$enable_metafile"
e6cc62c6 6546
b64f0a5f
RL
6547 if test "$enableval" = yes; then
6548 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6549 else
6550 ac_cv_use_metafile='wxUSE_METAFILE=no'
6551 fi
e6cc62c6 6552
b64f0a5f 6553else
e6cc62c6 6554
b64f0a5f
RL
6555 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6563
e6cc62c6 6564fi;
b64f0a5f
RL
6565
6566 eval "$ac_cv_use_metafile"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6572 echo "$as_me:$LINENO: result: yes" >&5
6573echo "${ECHO_T}yes" >&6
b64f0a5f 6574 else
e6cc62c6
VS
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
b64f0a5f 6577 fi
e6cc62c6 6578
52127426 6579
8284b0c5 6580
52127426 6581
8284b0c5 6582
5005acfe 6583 enablestring=
e6cc62c6
VS
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6586 no_cache=0
6587 # Check whether --enable-controls or --disable-controls was given.
6588if test "${enable_controls+set}" = set; then
6589 enableval="$enable_controls"
e6cc62c6 6590
10f2d63a
VZ
6591 if test "$enableval" = yes; then
6592 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6593 else
6594 ac_cv_use_controls='wxUSE_CONTROLS=no'
6595 fi
e6cc62c6 6596
10f2d63a 6597else
e6cc62c6 6598
10f2d63a
VZ
6599 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6607
e6cc62c6 6608fi;
10f2d63a
VZ
6609
6610 eval "$ac_cv_use_controls"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
10f2d63a 6618 else
e6cc62c6
VS
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
10f2d63a 6621 fi
e6cc62c6 6622
10f2d63a
VZ
6623
6624if test "$wxUSE_CONTROLS" = "yes"; then
6625 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6626 DEFAULT_wxUSE_BMPBUTTON=yes
6627 DEFAULT_wxUSE_BUTTON=yes
6628 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6629 DEFAULT_wxUSE_CARET=yes
6630 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6631 DEFAULT_wxUSE_CHECKBOX=yes
6632 DEFAULT_wxUSE_CHECKLISTBOX=yes
6633 DEFAULT_wxUSE_CHOICE=yes
6634 DEFAULT_wxUSE_GAUGE=yes
6635 DEFAULT_wxUSE_GRID=yes
10f2d63a 6636 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6637 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6638 DEFAULT_wxUSE_LISTBOX=yes
6639 DEFAULT_wxUSE_LISTCTRL=yes
6640 DEFAULT_wxUSE_NOTEBOOK=yes
6641 DEFAULT_wxUSE_RADIOBOX=yes
6642 DEFAULT_wxUSE_RADIOBTN=yes
6643 DEFAULT_wxUSE_SASH=yes
6644 DEFAULT_wxUSE_SCROLLBAR=yes
6645 DEFAULT_wxUSE_SLIDER=yes
6646 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6647 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6648 DEFAULT_wxUSE_SPLITTER=yes
6649 DEFAULT_wxUSE_STATBMP=yes
6650 DEFAULT_wxUSE_STATBOX=yes
6651 DEFAULT_wxUSE_STATLINE=yes
6652 DEFAULT_wxUSE_STATUSBAR=yes
6653 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6654 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6655 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6656 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6657 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6658 DEFAULT_wxUSE_TOOLTIPS=yes
6659 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6660 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6661 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6662elif test "$wxUSE_CONTROLS" = "no"; then
6663 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6664 DEFAULT_wxUSE_BMPBUTTON=no
6665 DEFAULT_wxUSE_BUTTON=no
6666 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6667 DEFAULT_wxUSE_CARET=no
6668 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6669 DEFAULT_wxUSE_CHECKBOX=no
6670 DEFAULT_wxUSE_CHECKLISTBOX=no
6671 DEFAULT_wxUSE_CHOICE=no
6672 DEFAULT_wxUSE_GAUGE=no
6673 DEFAULT_wxUSE_GRID=no
10f2d63a 6674 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6675 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6676 DEFAULT_wxUSE_LISTBOX=no
6677 DEFAULT_wxUSE_LISTCTRL=no
6678 DEFAULT_wxUSE_NOTEBOOK=no
6679 DEFAULT_wxUSE_RADIOBOX=no
6680 DEFAULT_wxUSE_RADIOBTN=no
6681 DEFAULT_wxUSE_SASH=no
6682 DEFAULT_wxUSE_SCROLLBAR=no
6683 DEFAULT_wxUSE_SLIDER=no
6684 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6685 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6686 DEFAULT_wxUSE_SPLITTER=no
6687 DEFAULT_wxUSE_STATBMP=no
6688 DEFAULT_wxUSE_STATBOX=no
6689 DEFAULT_wxUSE_STATLINE=no
6690 DEFAULT_wxUSE_STATUSBAR=no
6691 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6692 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6693 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6694 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6695 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6696 DEFAULT_wxUSE_TOOLTIPS=no
6697 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6698 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6699 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6700fi
6701
ac0c4cc3
DE
6702## FIXME: This is a blatant hack
6703if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6704 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6705 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6706 # Generic notebook requires tab dialog
6707 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6708 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6709 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6710 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6711fi
6712
8284b0c5 6713
5005acfe 6714 enablestring=
e6cc62c6
VS
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6717 no_cache=0
6718 # Check whether --enable-accel or --disable-accel was given.
6719if test "${enable_accel+set}" = set; then
6720 enableval="$enable_accel"
e6cc62c6 6721
10f2d63a
VZ
6722 if test "$enableval" = yes; then
6723 ac_cv_use_accel='wxUSE_ACCEL=yes'
6724 else
6725 ac_cv_use_accel='wxUSE_ACCEL=no'
6726 fi
e6cc62c6 6727
10f2d63a 6728else
e6cc62c6 6729
10f2d63a
VZ
6730 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6738
e6cc62c6 6739fi;
10f2d63a
VZ
6740
6741 eval "$ac_cv_use_accel"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
10f2d63a 6749 else
e6cc62c6
VS
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
10f2d63a 6752 fi
e6cc62c6 6753
10f2d63a 6754
5005acfe 6755 enablestring=
e6cc62c6
VS
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6758 no_cache=0
1e6feb95
VZ
6759 # Check whether --enable-button or --disable-button was given.
6760if test "${enable_button+set}" = set; then
6761 enableval="$enable_button"
e6cc62c6 6762
10f2d63a 6763 if test "$enableval" = yes; then
1e6feb95 6764 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6765 else
1e6feb95 6766 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6767 fi
e6cc62c6 6768
10f2d63a 6769else
e6cc62c6 6770
1e6feb95 6771 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
1e6feb95 6778 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6779
e6cc62c6 6780fi;
10f2d63a 6781
1e6feb95 6782 eval "$ac_cv_use_button"
10f2d63a 6783 if test "$no_cache" != 1; then
1e6feb95 6784 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6785 fi
6786
1e6feb95 6787 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
10f2d63a 6790 else
e6cc62c6
VS
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
10f2d63a 6793 fi
e6cc62c6 6794
10f2d63a 6795
5005acfe 6796 enablestring=
e6cc62c6
VS
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6798echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6799 no_cache=0
6800 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6801if test "${enable_bmpbutton+set}" = set; then
6802 enableval="$enable_bmpbutton"
e6cc62c6 6803
10f2d63a
VZ
6804 if test "$enableval" = yes; then
6805 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6806 else
6807 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6808 fi
e6cc62c6 6809
10f2d63a 6810else
e6cc62c6 6811
10f2d63a
VZ
6812 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6820
e6cc62c6 6821fi;
10f2d63a
VZ
6822
6823 eval "$ac_cv_use_bmpbutton"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6829 echo "$as_me:$LINENO: result: yes" >&5
6830echo "${ECHO_T}yes" >&6
10f2d63a 6831 else
e6cc62c6
VS
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
10f2d63a 6834 fi
e6cc62c6 6835
10f2d63a 6836
5005acfe 6837 enablestring=
e6cc62c6
VS
6838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6839echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6840 no_cache=0
6841 # Check whether --enable-calendar or --disable-calendar was given.
6842if test "${enable_calendar+set}" = set; then
6843 enableval="$enable_calendar"
e6cc62c6 6844
1e6feb95
VZ
6845 if test "$enableval" = yes; then
6846 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6847 else
6848 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6849 fi
e6cc62c6 6850
1e6feb95 6851else
e6cc62c6 6852
1e6feb95
VZ
6853 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6861
e6cc62c6 6862fi;
1e6feb95
VZ
6863
6864 eval "$ac_cv_use_calendar"
6865 if test "$no_cache" != 1; then
6866 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6867 fi
6868
6869 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6870 echo "$as_me:$LINENO: result: yes" >&5
6871echo "${ECHO_T}yes" >&6
1e6feb95 6872 else
e6cc62c6
VS
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
1e6feb95 6875 fi
e6cc62c6 6876
1e6feb95 6877
5005acfe 6878 enablestring=
e6cc62c6
VS
6879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6880echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6881 no_cache=0
6882 # Check whether --enable-caret or --disable-caret was given.
6883if test "${enable_caret+set}" = set; then
6884 enableval="$enable_caret"
e6cc62c6 6885
1e6feb95
VZ
6886 if test "$enableval" = yes; then
6887 ac_cv_use_caret='wxUSE_CARET=yes'
6888 else
6889 ac_cv_use_caret='wxUSE_CARET=no'
6890 fi
e6cc62c6 6891
1e6feb95 6892else
e6cc62c6 6893
1e6feb95
VZ
6894 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6895 if test "x$LINE" != x ; then
6896 eval "DEFAULT_$LINE"
6897 else
6898 no_cache=1
6899 fi
6900
6901 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6902
e6cc62c6 6903fi;
1e6feb95
VZ
6904
6905 eval "$ac_cv_use_caret"
6906 if test "$no_cache" != 1; then
6907 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6908 fi
6909
6910 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6911 echo "$as_me:$LINENO: result: yes" >&5
6912echo "${ECHO_T}yes" >&6
1e6feb95 6913 else
e6cc62c6
VS
6914 echo "$as_me:$LINENO: result: no" >&5
6915echo "${ECHO_T}no" >&6
1e6feb95 6916 fi
e6cc62c6 6917
1e6feb95 6918
5005acfe 6919 enablestring=
e6cc62c6
VS
6920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6921echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6922 no_cache=0
6923 # Check whether --enable-checkbox or --disable-checkbox was given.
6924if test "${enable_checkbox+set}" = set; then
6925 enableval="$enable_checkbox"
e6cc62c6 6926
10f2d63a
VZ
6927 if test "$enableval" = yes; then
6928 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6929 else
6930 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6931 fi
e6cc62c6 6932
10f2d63a 6933else
e6cc62c6 6934
10f2d63a
VZ
6935 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6936 if test "x$LINE" != x ; then
6937 eval "DEFAULT_$LINE"
6938 else
6939 no_cache=1
6940 fi
6941
6942 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6943
e6cc62c6 6944fi;
10f2d63a
VZ
6945
6946 eval "$ac_cv_use_checkbox"
6947 if test "$no_cache" != 1; then
6948 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6949 fi
6950
6951 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6952 echo "$as_me:$LINENO: result: yes" >&5
6953echo "${ECHO_T}yes" >&6
10f2d63a 6954 else
e6cc62c6
VS
6955 echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6
10f2d63a 6957 fi
e6cc62c6 6958
10f2d63a 6959
5005acfe 6960 enablestring=
e6cc62c6
VS
6961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6962echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6963 no_cache=0
6964 # Check whether --enable-checklst or --disable-checklst was given.
6965if test "${enable_checklst+set}" = set; then
6966 enableval="$enable_checklst"
e6cc62c6 6967
10f2d63a
VZ
6968 if test "$enableval" = yes; then
6969 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6970 else
6971 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6972 fi
e6cc62c6 6973
10f2d63a 6974else
e6cc62c6 6975
10f2d63a
VZ
6976 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6984
e6cc62c6 6985fi;
10f2d63a
VZ
6986
6987 eval "$ac_cv_use_checklst"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
10f2d63a 6995 else
e6cc62c6
VS
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
10f2d63a 6998 fi
e6cc62c6 6999
10f2d63a 7000
5005acfe 7001 enablestring=
e6cc62c6
VS
7002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7003echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7004 no_cache=0
7005 # Check whether --enable-choice or --disable-choice was given.
7006if test "${enable_choice+set}" = set; then
7007 enableval="$enable_choice"
e6cc62c6 7008
10f2d63a
VZ
7009 if test "$enableval" = yes; then
7010 ac_cv_use_choice='wxUSE_CHOICE=yes'
7011 else
7012 ac_cv_use_choice='wxUSE_CHOICE=no'
7013 fi
e6cc62c6 7014
10f2d63a 7015else
e6cc62c6 7016
10f2d63a
VZ
7017 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7018 if test "x$LINE" != x ; then
7019 eval "DEFAULT_$LINE"
7020 else
7021 no_cache=1
7022 fi
7023
7024 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7025
e6cc62c6 7026fi;
10f2d63a
VZ
7027
7028 eval "$ac_cv_use_choice"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7034 echo "$as_me:$LINENO: result: yes" >&5
7035echo "${ECHO_T}yes" >&6
10f2d63a 7036 else
e6cc62c6
VS
7037 echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6
10f2d63a 7039 fi
e6cc62c6 7040
10f2d63a 7041
5005acfe 7042 enablestring=
e6cc62c6
VS
7043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7044echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7045 no_cache=0
7046 # Check whether --enable-combobox or --disable-combobox was given.
7047if test "${enable_combobox+set}" = set; then
7048 enableval="$enable_combobox"
e6cc62c6 7049
10f2d63a
VZ
7050 if test "$enableval" = yes; then
7051 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7052 else
7053 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7054 fi
e6cc62c6 7055
10f2d63a 7056else
e6cc62c6 7057
10f2d63a
VZ
7058 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7059 if test "x$LINE" != x ; then
7060 eval "DEFAULT_$LINE"
7061 else
7062 no_cache=1
7063 fi
7064
7065 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7066
e6cc62c6 7067fi;
10f2d63a
VZ
7068
7069 eval "$ac_cv_use_combobox"
7070 if test "$no_cache" != 1; then
7071 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7072 fi
7073
7074 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7075 echo "$as_me:$LINENO: result: yes" >&5
7076echo "${ECHO_T}yes" >&6
10f2d63a 7077 else
e6cc62c6
VS
7078 echo "$as_me:$LINENO: result: no" >&5
7079echo "${ECHO_T}no" >&6
10f2d63a 7080 fi
e6cc62c6 7081
10f2d63a 7082
da494b40 7083 enablestring=
e6cc62c6
VS
7084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7085echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7086 no_cache=0
7087 # Check whether --enable-display or --disable-display was given.
7088if test "${enable_display+set}" = set; then
7089 enableval="$enable_display"
e6cc62c6 7090
da494b40
MB
7091 if test "$enableval" = yes; then
7092 ac_cv_use_display='wxUSE_DISPLAY=yes'
7093 else
7094 ac_cv_use_display='wxUSE_DISPLAY=no'
7095 fi
e6cc62c6 7096
da494b40 7097else
e6cc62c6 7098
da494b40
MB
7099 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7100 if test "x$LINE" != x ; then
7101 eval "DEFAULT_$LINE"
7102 else
7103 no_cache=1
7104 fi
7105
7106 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7107
e6cc62c6 7108fi;
da494b40
MB
7109
7110 eval "$ac_cv_use_display"
7111 if test "$no_cache" != 1; then
7112 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7113 fi
7114
7115 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7116 echo "$as_me:$LINENO: result: yes" >&5
7117echo "${ECHO_T}yes" >&6
da494b40 7118 else
e6cc62c6
VS
7119 echo "$as_me:$LINENO: result: no" >&5
7120echo "${ECHO_T}no" >&6
da494b40 7121 fi
e6cc62c6 7122
da494b40 7123
5005acfe 7124 enablestring=
e6cc62c6
VS
7125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7126echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7127 no_cache=0
7128 # Check whether --enable-gauge or --disable-gauge was given.
7129if test "${enable_gauge+set}" = set; then
7130 enableval="$enable_gauge"
e6cc62c6 7131
10f2d63a
VZ
7132 if test "$enableval" = yes; then
7133 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7134 else
7135 ac_cv_use_gauge='wxUSE_GAUGE=no'
7136 fi
e6cc62c6 7137
10f2d63a 7138else
e6cc62c6 7139
10f2d63a
VZ
7140 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7141 if test "x$LINE" != x ; then
7142 eval "DEFAULT_$LINE"
7143 else
7144 no_cache=1
7145 fi
7146
7147 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7148
e6cc62c6 7149fi;
10f2d63a
VZ
7150
7151 eval "$ac_cv_use_gauge"
7152 if test "$no_cache" != 1; then
7153 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7154 fi
7155
7156 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7157 echo "$as_me:$LINENO: result: yes" >&5
7158echo "${ECHO_T}yes" >&6
10f2d63a 7159 else
e6cc62c6
VS
7160 echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
10f2d63a 7162 fi
e6cc62c6 7163
10f2d63a 7164
5005acfe 7165 enablestring=
e6cc62c6
VS
7166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7167echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7168 no_cache=0
7169 # Check whether --enable-grid or --disable-grid was given.
7170if test "${enable_grid+set}" = set; then
7171 enableval="$enable_grid"
e6cc62c6 7172
10f2d63a
VZ
7173 if test "$enableval" = yes; then
7174 ac_cv_use_grid='wxUSE_GRID=yes'
7175 else
7176 ac_cv_use_grid='wxUSE_GRID=no'
7177 fi
e6cc62c6 7178
10f2d63a 7179else
e6cc62c6 7180
10f2d63a
VZ
7181 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7182 if test "x$LINE" != x ; then
7183 eval "DEFAULT_$LINE"
7184 else
7185 no_cache=1
7186 fi
7187
7188 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7189
e6cc62c6 7190fi;
10f2d63a
VZ
7191
7192 eval "$ac_cv_use_grid"
7193 if test "$no_cache" != 1; then
7194 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7195 fi
7196
7197 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7198 echo "$as_me:$LINENO: result: yes" >&5
7199echo "${ECHO_T}yes" >&6
10f2d63a 7200 else
e6cc62c6
VS
7201 echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6
10f2d63a 7203 fi
e6cc62c6 7204
10f2d63a 7205
5005acfe 7206 enablestring=
e6cc62c6
VS
7207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7208echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7209 no_cache=0
7210 # Check whether --enable-imaglist or --disable-imaglist was given.
7211if test "${enable_imaglist+set}" = set; then
7212 enableval="$enable_imaglist"
e6cc62c6 7213
10f2d63a
VZ
7214 if test "$enableval" = yes; then
7215 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7216 else
7217 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7218 fi
e6cc62c6 7219
10f2d63a 7220else
e6cc62c6 7221
10f2d63a
VZ
7222 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7223 if test "x$LINE" != x ; then
7224 eval "DEFAULT_$LINE"
7225 else
7226 no_cache=1
7227 fi
7228
7229 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7230
e6cc62c6 7231fi;
10f2d63a
VZ
7232
7233 eval "$ac_cv_use_imaglist"
7234 if test "$no_cache" != 1; then
7235 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7236 fi
7237
7238 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7239 echo "$as_me:$LINENO: result: yes" >&5
7240echo "${ECHO_T}yes" >&6
10f2d63a 7241 else
e6cc62c6
VS
7242 echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6
10f2d63a 7244 fi
e6cc62c6 7245
10f2d63a 7246
0e012a93
VZ
7247 enablestring=
7248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7249echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7250 no_cache=0
7251 # Check whether --enable-listbook or --disable-listbook was given.
7252if test "${enable_listbook+set}" = set; then
7253 enableval="$enable_listbook"
7254
7255 if test "$enableval" = yes; then
7256 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7257 else
7258 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7259 fi
7260
7261else
7262
7263 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7264 if test "x$LINE" != x ; then
7265 eval "DEFAULT_$LINE"
7266 else
7267 no_cache=1
7268 fi
7269
7270 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7271
7272fi;
7273
7274 eval "$ac_cv_use_listbook"
7275 if test "$no_cache" != 1; then
7276 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7277 fi
7278
7279 if test "$wxUSE_LISTBOOK" = yes; then
7280 echo "$as_me:$LINENO: result: yes" >&5
7281echo "${ECHO_T}yes" >&6
7282 else
7283 echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
7285 fi
7286
7287
5005acfe 7288 enablestring=
e6cc62c6
VS
7289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7290echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7291 no_cache=0
7292 # Check whether --enable-listbox or --disable-listbox was given.
7293if test "${enable_listbox+set}" = set; then
7294 enableval="$enable_listbox"
e6cc62c6 7295
10f2d63a
VZ
7296 if test "$enableval" = yes; then
7297 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7298 else
7299 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7300 fi
e6cc62c6 7301
10f2d63a 7302else
e6cc62c6 7303
10f2d63a
VZ
7304 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7312
e6cc62c6 7313fi;
10f2d63a
VZ
7314
7315 eval "$ac_cv_use_listbox"
7316 if test "$no_cache" != 1; then
7317 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7318 fi
7319
7320 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7321 echo "$as_me:$LINENO: result: yes" >&5
7322echo "${ECHO_T}yes" >&6
10f2d63a 7323 else
e6cc62c6
VS
7324 echo "$as_me:$LINENO: result: no" >&5
7325echo "${ECHO_T}no" >&6
10f2d63a 7326 fi
e6cc62c6 7327
10f2d63a 7328
5005acfe 7329 enablestring=
e6cc62c6
VS
7330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7331echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7332 no_cache=0
7333 # Check whether --enable-listctrl or --disable-listctrl was given.
7334if test "${enable_listctrl+set}" = set; then
7335 enableval="$enable_listctrl"
e6cc62c6 7336
10f2d63a
VZ
7337 if test "$enableval" = yes; then
7338 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7339 else
7340 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7341 fi
e6cc62c6 7342
10f2d63a 7343else
e6cc62c6 7344
10f2d63a
VZ
7345 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7353
e6cc62c6 7354fi;
10f2d63a
VZ
7355
7356 eval "$ac_cv_use_listctrl"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7362 echo "$as_me:$LINENO: result: yes" >&5
7363echo "${ECHO_T}yes" >&6
10f2d63a 7364 else
e6cc62c6
VS
7365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
10f2d63a 7367 fi
e6cc62c6 7368
10f2d63a 7369
5005acfe 7370 enablestring=
e6cc62c6
VS
7371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7372echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7373 no_cache=0
7374 # Check whether --enable-notebook or --disable-notebook was given.
7375if test "${enable_notebook+set}" = set; then
7376 enableval="$enable_notebook"
e6cc62c6 7377
10f2d63a
VZ
7378 if test "$enableval" = yes; then
7379 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7380 else
7381 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7382 fi
e6cc62c6 7383
10f2d63a 7384else
e6cc62c6 7385
10f2d63a
VZ
7386 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7387 if test "x$LINE" != x ; then
7388 eval "DEFAULT_$LINE"
7389 else
7390 no_cache=1
7391 fi
7392
7393 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7394
e6cc62c6 7395fi;
10f2d63a
VZ
7396
7397 eval "$ac_cv_use_notebook"
7398 if test "$no_cache" != 1; then
7399 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7400 fi
7401
7402 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7403 echo "$as_me:$LINENO: result: yes" >&5
7404echo "${ECHO_T}yes" >&6
10f2d63a 7405 else
e6cc62c6
VS
7406 echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6
10f2d63a 7408 fi
e6cc62c6 7409
10f2d63a 7410
5005acfe 7411 enablestring=
e6cc62c6
VS
7412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7413echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7414 no_cache=0
7415 # Check whether --enable-radiobox or --disable-radiobox was given.
7416if test "${enable_radiobox+set}" = set; then
7417 enableval="$enable_radiobox"
e6cc62c6 7418
10f2d63a
VZ
7419 if test "$enableval" = yes; then
7420 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7421 else
7422 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7423 fi
e6cc62c6 7424
10f2d63a 7425else
e6cc62c6 7426
10f2d63a
VZ
7427 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7435
e6cc62c6 7436fi;
10f2d63a
VZ
7437
7438 eval "$ac_cv_use_radiobox"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7444 echo "$as_me:$LINENO: result: yes" >&5
7445echo "${ECHO_T}yes" >&6
10f2d63a 7446 else
e6cc62c6
VS
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
10f2d63a 7449 fi
e6cc62c6 7450
10f2d63a 7451
5005acfe 7452 enablestring=
e6cc62c6
VS
7453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7454echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7455 no_cache=0
7456 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7457if test "${enable_radiobtn+set}" = set; then
7458 enableval="$enable_radiobtn"
e6cc62c6 7459
10f2d63a
VZ
7460 if test "$enableval" = yes; then
7461 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7462 else
7463 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7464 fi
e6cc62c6 7465
10f2d63a 7466else
e6cc62c6 7467
10f2d63a
VZ
7468 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7469 if test "x$LINE" != x ; then
7470 eval "DEFAULT_$LINE"
7471 else
7472 no_cache=1
7473 fi
7474
7475 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7476
e6cc62c6 7477fi;
10f2d63a
VZ
7478
7479 eval "$ac_cv_use_radiobtn"
7480 if test "$no_cache" != 1; then
7481 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7482 fi
7483
7484 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7485 echo "$as_me:$LINENO: result: yes" >&5
7486echo "${ECHO_T}yes" >&6
10f2d63a 7487 else
e6cc62c6
VS
7488 echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6
10f2d63a 7490 fi
e6cc62c6 7491
10f2d63a 7492
5005acfe 7493 enablestring=
e6cc62c6
VS
7494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7495echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7496 no_cache=0
7497 # Check whether --enable-sash or --disable-sash was given.
7498if test "${enable_sash+set}" = set; then
7499 enableval="$enable_sash"
e6cc62c6 7500
10f2d63a
VZ
7501 if test "$enableval" = yes; then
7502 ac_cv_use_sash='wxUSE_SASH=yes'
7503 else
7504 ac_cv_use_sash='wxUSE_SASH=no'
7505 fi
e6cc62c6 7506
10f2d63a 7507else
e6cc62c6 7508
10f2d63a
VZ
7509 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7510 if test "x$LINE" != x ; then
7511 eval "DEFAULT_$LINE"
7512 else
7513 no_cache=1
7514 fi
7515
7516 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7517
e6cc62c6 7518fi;
10f2d63a
VZ
7519
7520 eval "$ac_cv_use_sash"
7521 if test "$no_cache" != 1; then
7522 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7523 fi
7524
7525 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7526 echo "$as_me:$LINENO: result: yes" >&5
7527echo "${ECHO_T}yes" >&6
10f2d63a 7528 else
e6cc62c6
VS
7529 echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
10f2d63a 7531 fi
e6cc62c6 7532
10f2d63a 7533
5005acfe 7534 enablestring=
e6cc62c6
VS
7535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7536echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7537 no_cache=0
7538 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7539if test "${enable_scrollbar+set}" = set; then
7540 enableval="$enable_scrollbar"
e6cc62c6 7541
10f2d63a
VZ
7542 if test "$enableval" = yes; then
7543 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7544 else
7545 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7546 fi
e6cc62c6 7547
10f2d63a 7548else
e6cc62c6 7549
10f2d63a
VZ
7550 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7551 if test "x$LINE" != x ; then
7552 eval "DEFAULT_$LINE"
7553 else
7554 no_cache=1
7555 fi
7556
7557 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7558
e6cc62c6 7559fi;
10f2d63a
VZ
7560
7561 eval "$ac_cv_use_scrollbar"
7562 if test "$no_cache" != 1; then
7563 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7564 fi
7565
7566 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7567 echo "$as_me:$LINENO: result: yes" >&5
7568echo "${ECHO_T}yes" >&6
10f2d63a 7569 else
e6cc62c6
VS
7570 echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6
10f2d63a 7572 fi
e6cc62c6 7573
10f2d63a 7574
5005acfe 7575 enablestring=
e6cc62c6
VS
7576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7577echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7578 no_cache=0
7579 # Check whether --enable-slider or --disable-slider was given.
7580if test "${enable_slider+set}" = set; then
7581 enableval="$enable_slider"
e6cc62c6 7582
10f2d63a
VZ
7583 if test "$enableval" = yes; then
7584 ac_cv_use_slider='wxUSE_SLIDER=yes'
7585 else
7586 ac_cv_use_slider='wxUSE_SLIDER=no'
7587 fi
e6cc62c6 7588
10f2d63a 7589else
e6cc62c6 7590
10f2d63a
VZ
7591 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7592 if test "x$LINE" != x ; then
7593 eval "DEFAULT_$LINE"
7594 else
7595 no_cache=1
7596 fi
7597
7598 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7599
e6cc62c6 7600fi;
10f2d63a
VZ
7601
7602 eval "$ac_cv_use_slider"
7603 if test "$no_cache" != 1; then
7604 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7605 fi
7606
7607 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7608 echo "$as_me:$LINENO: result: yes" >&5
7609echo "${ECHO_T}yes" >&6
10f2d63a 7610 else
e6cc62c6
VS
7611 echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6
10f2d63a 7613 fi
e6cc62c6 7614
10f2d63a 7615
5005acfe 7616 enablestring=
e6cc62c6
VS
7617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7618echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7619 no_cache=0
7620 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7621if test "${enable_spinbtn+set}" = set; then
7622 enableval="$enable_spinbtn"
e6cc62c6 7623
10f2d63a
VZ
7624 if test "$enableval" = yes; then
7625 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7626 else
7627 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7628 fi
e6cc62c6 7629
10f2d63a 7630else
e6cc62c6 7631
10f2d63a
VZ
7632 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7633 if test "x$LINE" != x ; then
7634 eval "DEFAULT_$LINE"
7635 else
7636 no_cache=1
7637 fi
7638
7639 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7640
e6cc62c6 7641fi;
10f2d63a
VZ
7642
7643 eval "$ac_cv_use_spinbtn"
7644 if test "$no_cache" != 1; then
7645 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7646 fi
7647
7648 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7649 echo "$as_me:$LINENO: result: yes" >&5
7650echo "${ECHO_T}yes" >&6
10f2d63a 7651 else
e6cc62c6
VS
7652 echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
10f2d63a 7654 fi
e6cc62c6 7655
10f2d63a 7656
5005acfe 7657 enablestring=
e6cc62c6
VS
7658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7659echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7660 no_cache=0
7661 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7662if test "${enable_spinctrl+set}" = set; then
7663 enableval="$enable_spinctrl"
e6cc62c6 7664
56cfaa52
RR
7665 if test "$enableval" = yes; then
7666 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7667 else
7668 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7669 fi
e6cc62c6 7670
56cfaa52 7671else
e6cc62c6 7672
56cfaa52
RR
7673 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7674 if test "x$LINE" != x ; then
7675 eval "DEFAULT_$LINE"
7676 else
7677 no_cache=1
7678 fi
7679
7680 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7681
e6cc62c6 7682fi;
56cfaa52
RR
7683
7684 eval "$ac_cv_use_spinctrl"
7685 if test "$no_cache" != 1; then
7686 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7687 fi
7688
7689 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7690 echo "$as_me:$LINENO: result: yes" >&5
7691echo "${ECHO_T}yes" >&6
56cfaa52 7692 else
e6cc62c6
VS
7693 echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
56cfaa52 7695 fi
e6cc62c6 7696
56cfaa52 7697
5005acfe 7698 enablestring=
e6cc62c6
VS
7699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7700echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7701 no_cache=0
7702 # Check whether --enable-splitter or --disable-splitter was given.
7703if test "${enable_splitter+set}" = set; then
7704 enableval="$enable_splitter"
e6cc62c6 7705
10f2d63a
VZ
7706 if test "$enableval" = yes; then
7707 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7708 else
7709 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7710 fi
e6cc62c6 7711
10f2d63a 7712else
e6cc62c6 7713
10f2d63a
VZ
7714 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7715 if test "x$LINE" != x ; then
7716 eval "DEFAULT_$LINE"
7717 else
7718 no_cache=1
7719 fi
7720
7721 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7722
e6cc62c6 7723fi;
10f2d63a
VZ
7724
7725 eval "$ac_cv_use_splitter"
7726 if test "$no_cache" != 1; then
7727 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7728 fi
7729
7730 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7731 echo "$as_me:$LINENO: result: yes" >&5
7732echo "${ECHO_T}yes" >&6
10f2d63a 7733 else
e6cc62c6
VS
7734 echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6
10f2d63a 7736 fi
e6cc62c6 7737
10f2d63a 7738
5005acfe 7739 enablestring=
e6cc62c6
VS
7740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7741echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7742 no_cache=0
7743 # Check whether --enable-statbmp or --disable-statbmp was given.
7744if test "${enable_statbmp+set}" = set; then
7745 enableval="$enable_statbmp"
e6cc62c6 7746
10f2d63a
VZ
7747 if test "$enableval" = yes; then
7748 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7749 else
7750 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7751 fi
e6cc62c6 7752
10f2d63a 7753else
e6cc62c6 7754
10f2d63a
VZ
7755 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7756 if test "x$LINE" != x ; then
7757 eval "DEFAULT_$LINE"
7758 else
7759 no_cache=1
7760 fi
7761
7762 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7763
e6cc62c6 7764fi;
10f2d63a
VZ
7765
7766 eval "$ac_cv_use_statbmp"
7767 if test "$no_cache" != 1; then
7768 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7769 fi
7770
7771 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7772 echo "$as_me:$LINENO: result: yes" >&5
7773echo "${ECHO_T}yes" >&6
10f2d63a 7774 else
e6cc62c6
VS
7775 echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6
10f2d63a 7777 fi
e6cc62c6 7778
10f2d63a 7779
5005acfe 7780 enablestring=
e6cc62c6
VS
7781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7782echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7783 no_cache=0
7784 # Check whether --enable-statbox or --disable-statbox was given.
7785if test "${enable_statbox+set}" = set; then
7786 enableval="$enable_statbox"
e6cc62c6 7787
10f2d63a
VZ
7788 if test "$enableval" = yes; then
7789 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7790 else
7791 ac_cv_use_statbox='wxUSE_STATBOX=no'
7792 fi
e6cc62c6 7793
10f2d63a 7794else
e6cc62c6 7795
10f2d63a
VZ
7796 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7797 if test "x$LINE" != x ; then
7798 eval "DEFAULT_$LINE"
7799 else
7800 no_cache=1
7801 fi
7802
7803 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7804
e6cc62c6 7805fi;
10f2d63a
VZ
7806
7807 eval "$ac_cv_use_statbox"
7808 if test "$no_cache" != 1; then
7809 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7810 fi
7811
7812 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7813 echo "$as_me:$LINENO: result: yes" >&5
7814echo "${ECHO_T}yes" >&6
10f2d63a 7815 else
e6cc62c6
VS
7816 echo "$as_me:$LINENO: result: no" >&5
7817echo "${ECHO_T}no" >&6
10f2d63a 7818 fi
e6cc62c6 7819
10f2d63a 7820
5005acfe 7821 enablestring=
e6cc62c6
VS
7822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7823echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7824 no_cache=0
7825 # Check whether --enable-statline or --disable-statline was given.
7826if test "${enable_statline+set}" = set; then
7827 enableval="$enable_statline"
e6cc62c6 7828
10f2d63a
VZ
7829 if test "$enableval" = yes; then
7830 ac_cv_use_statline='wxUSE_STATLINE=yes'
7831 else
7832 ac_cv_use_statline='wxUSE_STATLINE=no'
7833 fi
e6cc62c6 7834
10f2d63a 7835else
e6cc62c6 7836
10f2d63a
VZ
7837 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7838 if test "x$LINE" != x ; then
7839 eval "DEFAULT_$LINE"
7840 else
7841 no_cache=1
7842 fi
7843
7844 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7845
e6cc62c6 7846fi;
10f2d63a
VZ
7847
7848 eval "$ac_cv_use_statline"
7849 if test "$no_cache" != 1; then
7850 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7851 fi
7852
7853 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7854 echo "$as_me:$LINENO: result: yes" >&5
7855echo "${ECHO_T}yes" >&6
10f2d63a 7856 else
e6cc62c6
VS
7857 echo "$as_me:$LINENO: result: no" >&5
7858echo "${ECHO_T}no" >&6
10f2d63a 7859 fi
e6cc62c6 7860
10f2d63a 7861
5005acfe 7862 enablestring=
e6cc62c6
VS
7863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7864echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7865 no_cache=0
7866 # Check whether --enable-stattext or --disable-stattext was given.
7867if test "${enable_stattext+set}" = set; then
7868 enableval="$enable_stattext"
e6cc62c6 7869
1e6feb95
VZ
7870 if test "$enableval" = yes; then
7871 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7872 else
7873 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7874 fi
e6cc62c6 7875
1e6feb95 7876else
e6cc62c6 7877
1e6feb95
VZ
7878 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7879 if test "x$LINE" != x ; then
7880 eval "DEFAULT_$LINE"
7881 else
7882 no_cache=1
7883 fi
7884
7885 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7886
e6cc62c6 7887fi;
1e6feb95
VZ
7888
7889 eval "$ac_cv_use_stattext"
7890 if test "$no_cache" != 1; then
7891 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7892 fi
7893
7894 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7895 echo "$as_me:$LINENO: result: yes" >&5
7896echo "${ECHO_T}yes" >&6
1e6feb95 7897 else
e6cc62c6
VS
7898 echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
1e6feb95 7900 fi
e6cc62c6 7901
1e6feb95 7902
5005acfe 7903 enablestring=
e6cc62c6
VS
7904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7905echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7906 no_cache=0
7907 # Check whether --enable-statusbar or --disable-statusbar was given.
7908if test "${enable_statusbar+set}" = set; then
7909 enableval="$enable_statusbar"
e6cc62c6 7910
10f2d63a
VZ
7911 if test "$enableval" = yes; then
7912 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7913 else
7914 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7915 fi
e6cc62c6 7916
10f2d63a 7917else
e6cc62c6 7918
10f2d63a
VZ
7919 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7920 if test "x$LINE" != x ; then
7921 eval "DEFAULT_$LINE"
7922 else
7923 no_cache=1
7924 fi
7925
7926 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7927
e6cc62c6 7928fi;
10f2d63a
VZ
7929
7930 eval "$ac_cv_use_statusbar"
7931 if test "$no_cache" != 1; then
7932 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7933 fi
7934
7935 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7936 echo "$as_me:$LINENO: result: yes" >&5
7937echo "${ECHO_T}yes" >&6
10f2d63a 7938 else
e6cc62c6
VS
7939 echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6
10f2d63a 7941 fi
e6cc62c6 7942
10f2d63a 7943
5005acfe 7944 enablestring=
e6cc62c6
VS
7945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7946echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7947 no_cache=0
7948 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7949if test "${enable_tabdialog+set}" = set; then
7950 enableval="$enable_tabdialog"
e6cc62c6 7951
10f2d63a
VZ
7952 if test "$enableval" = yes; then
7953 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7954 else
7955 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7956 fi
e6cc62c6 7957
10f2d63a 7958else
e6cc62c6 7959
10f2d63a
VZ
7960 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7961 if test "x$LINE" != x ; then
7962 eval "DEFAULT_$LINE"
7963 else
7964 no_cache=1
7965 fi
7966
7967 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7968
e6cc62c6 7969fi;
10f2d63a
VZ
7970
7971 eval "$ac_cv_use_tabdialog"
7972 if test "$no_cache" != 1; then
7973 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7974 fi
7975
7976 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7977 echo "$as_me:$LINENO: result: yes" >&5
7978echo "${ECHO_T}yes" >&6
10f2d63a 7979 else
e6cc62c6
VS
7980 echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
10f2d63a 7982 fi
e6cc62c6 7983
10f2d63a 7984
5005acfe 7985 enablestring=
e6cc62c6
VS
7986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7987echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7988 no_cache=0
7989 # Check whether --enable-textctrl or --disable-textctrl was given.
7990if test "${enable_textctrl+set}" = set; then
7991 enableval="$enable_textctrl"
e6cc62c6 7992
1e6feb95
VZ
7993 if test "$enableval" = yes; then
7994 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7995 else
7996 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7997 fi
e6cc62c6 7998
1e6feb95 7999else
e6cc62c6 8000
1e6feb95
VZ
8001 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8002 if test "x$LINE" != x ; then
8003 eval "DEFAULT_$LINE"
8004 else
8005 no_cache=1
8006 fi
8007
8008 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8009
e6cc62c6 8010fi;
1e6feb95
VZ
8011
8012 eval "$ac_cv_use_textctrl"
8013 if test "$no_cache" != 1; then
8014 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8015 fi
8016
8017 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8018 echo "$as_me:$LINENO: result: yes" >&5
8019echo "${ECHO_T}yes" >&6
1e6feb95 8020 else
e6cc62c6
VS
8021 echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6
1e6feb95 8023 fi
e6cc62c6 8024
1e6feb95 8025
5005acfe 8026 enablestring=
e6cc62c6
VS
8027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8028echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8029 no_cache=0
8030 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8031if test "${enable_togglebtn+set}" = set; then
8032 enableval="$enable_togglebtn"
e6cc62c6 8033
1db8dc4a
VZ
8034 if test "$enableval" = yes; then
8035 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8036 else
8037 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8038 fi
e6cc62c6 8039
1db8dc4a 8040else
e6cc62c6 8041
1db8dc4a
VZ
8042 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8043 if test "x$LINE" != x ; then
8044 eval "DEFAULT_$LINE"
8045 else
8046 no_cache=1
8047 fi
8048
8049 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8050
e6cc62c6 8051fi;
1db8dc4a
VZ
8052
8053 eval "$ac_cv_use_togglebtn"
8054 if test "$no_cache" != 1; then
8055 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8056 fi
8057
8058 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8059 echo "$as_me:$LINENO: result: yes" >&5
8060echo "${ECHO_T}yes" >&6
1db8dc4a 8061 else
e6cc62c6
VS
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
1db8dc4a 8064 fi
e6cc62c6 8065
1db8dc4a 8066
5005acfe 8067 enablestring=
e6cc62c6
VS
8068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8069echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8070 no_cache=0
8071 # Check whether --enable-toolbar or --disable-toolbar was given.
8072if test "${enable_toolbar+set}" = set; then
8073 enableval="$enable_toolbar"
e6cc62c6 8074
10f2d63a
VZ
8075 if test "$enableval" = yes; then
8076 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8077 else
8078 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8079 fi
e6cc62c6 8080
10f2d63a 8081else
e6cc62c6 8082
10f2d63a
VZ
8083 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8084 if test "x$LINE" != x ; then
8085 eval "DEFAULT_$LINE"
8086 else
8087 no_cache=1
8088 fi
8089
8090 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8091
e6cc62c6 8092fi;
10f2d63a
VZ
8093
8094 eval "$ac_cv_use_toolbar"
8095 if test "$no_cache" != 1; then
8096 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8097 fi
8098
8099 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8100 echo "$as_me:$LINENO: result: yes" >&5
8101echo "${ECHO_T}yes" >&6
10f2d63a 8102 else
e6cc62c6
VS
8103 echo "$as_me:$LINENO: result: no" >&5
8104echo "${ECHO_T}no" >&6
10f2d63a 8105 fi
e6cc62c6 8106
10f2d63a 8107
5005acfe 8108 enablestring=
e6cc62c6
VS
8109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8110echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8111 no_cache=0
8112 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8113if test "${enable_tbarnative+set}" = set; then
8114 enableval="$enable_tbarnative"
e6cc62c6 8115
360d6699
VZ
8116 if test "$enableval" = yes; then
8117 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8118 else
8119 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8120 fi
e6cc62c6 8121
360d6699 8122else
e6cc62c6 8123
360d6699
VZ
8124 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8125 if test "x$LINE" != x ; then
8126 eval "DEFAULT_$LINE"
8127 else
8128 no_cache=1
8129 fi
8130
8131 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8132
e6cc62c6 8133fi;
360d6699
VZ
8134
8135 eval "$ac_cv_use_tbarnative"
8136 if test "$no_cache" != 1; then
8137 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8138 fi
8139
8140 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8141 echo "$as_me:$LINENO: result: yes" >&5
8142echo "${ECHO_T}yes" >&6
360d6699 8143 else
e6cc62c6
VS
8144 echo "$as_me:$LINENO: result: no" >&5
8145echo "${ECHO_T}no" >&6
360d6699 8146 fi
e6cc62c6 8147
360d6699 8148
5005acfe 8149 enablestring=
e6cc62c6
VS
8150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8151echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8152 no_cache=0
8153 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8154if test "${enable_tbarsmpl+set}" = set; then
8155 enableval="$enable_tbarsmpl"
e6cc62c6 8156
360d6699
VZ
8157 if test "$enableval" = yes; then
8158 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8159 else
8160 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8161 fi
e6cc62c6 8162
360d6699 8163else
e6cc62c6 8164
360d6699
VZ
8165 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8166 if test "x$LINE" != x ; then
8167 eval "DEFAULT_$LINE"
8168 else
8169 no_cache=1
8170 fi
8171
8172 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8173
e6cc62c6 8174fi;
360d6699
VZ
8175
8176 eval "$ac_cv_use_tbarsmpl"
8177 if test "$no_cache" != 1; then
8178 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8179 fi
8180
8181 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8182 echo "$as_me:$LINENO: result: yes" >&5
8183echo "${ECHO_T}yes" >&6
360d6699 8184 else
e6cc62c6
VS
8185 echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6
360d6699 8187 fi
e6cc62c6 8188
360d6699 8189
5005acfe 8190 enablestring=
e6cc62c6
VS
8191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8192echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8193 no_cache=0
8194 # Check whether --enable-treectrl or --disable-treectrl was given.
8195if test "${enable_treectrl+set}" = set; then
8196 enableval="$enable_treectrl"
e6cc62c6 8197
10f2d63a
VZ
8198 if test "$enableval" = yes; then
8199 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8200 else
8201 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8202 fi
e6cc62c6 8203
10f2d63a 8204else
e6cc62c6 8205
10f2d63a
VZ
8206 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8207 if test "x$LINE" != x ; then
8208 eval "DEFAULT_$LINE"
8209 else
8210 no_cache=1
8211 fi
8212
8213 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8214
e6cc62c6 8215fi;
10f2d63a 8216
1e6feb95
VZ
8217 eval "$ac_cv_use_treectrl"
8218 if test "$no_cache" != 1; then
8219 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8220 fi
8221
8222 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8223 echo "$as_me:$LINENO: result: yes" >&5
8224echo "${ECHO_T}yes" >&6
1e6feb95 8225 else
e6cc62c6
VS
8226 echo "$as_me:$LINENO: result: no" >&5
8227echo "${ECHO_T}no" >&6
1e6feb95 8228 fi
e6cc62c6 8229
1e6feb95 8230
5005acfe 8231 enablestring=
e6cc62c6
VS
8232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8233echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8234 no_cache=0
8235 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8236if test "${enable_tipwindow+set}" = set; then
8237 enableval="$enable_tipwindow"
e6cc62c6 8238
9926e4a4
VZ
8239 if test "$enableval" = yes; then
8240 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8241 else
8242 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8243 fi
e6cc62c6 8244
9926e4a4 8245else
e6cc62c6 8246
9926e4a4
VZ
8247 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8248 if test "x$LINE" != x ; then
8249 eval "DEFAULT_$LINE"
8250 else
8251 no_cache=1
8252 fi
8253
8254 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8255
e6cc62c6 8256fi;
9926e4a4
VZ
8257
8258 eval "$ac_cv_use_tipwindow"
8259 if test "$no_cache" != 1; then
8260 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8261 fi
8262
8263 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8264 echo "$as_me:$LINENO: result: yes" >&5
8265echo "${ECHO_T}yes" >&6
9926e4a4 8266 else
e6cc62c6
VS
8267 echo "$as_me:$LINENO: result: no" >&5
8268echo "${ECHO_T}no" >&6
9926e4a4 8269 fi
e6cc62c6 8270
9926e4a4 8271
5005acfe 8272 enablestring=
e6cc62c6
VS
8273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8274echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8275 no_cache=0
8276 # Check whether --enable-popupwin or --disable-popupwin was given.
8277if test "${enable_popupwin+set}" = set; then
8278 enableval="$enable_popupwin"
e6cc62c6 8279
9f41d601
RR
8280 if test "$enableval" = yes; then
8281 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8282 else
8283 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8284 fi
e6cc62c6 8285
9f41d601 8286else
e6cc62c6 8287
9f41d601
RR
8288 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8289 if test "x$LINE" != x ; then
8290 eval "DEFAULT_$LINE"
8291 else
8292 no_cache=1
8293 fi
8294
8295 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8296
e6cc62c6 8297fi;
9f41d601
RR
8298
8299 eval "$ac_cv_use_popupwin"
8300 if test "$no_cache" != 1; then
8301 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8302 fi
8303
8304 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8305 echo "$as_me:$LINENO: result: yes" >&5
8306echo "${ECHO_T}yes" >&6
9f41d601 8307 else
e6cc62c6
VS
8308 echo "$as_me:$LINENO: result: no" >&5
8309echo "${ECHO_T}no" >&6
9f41d601 8310 fi
e6cc62c6 8311
52127426 8312
8284b0c5
MB
8313
8314
5005acfe 8315 enablestring=
e6cc62c6
VS
8316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8317echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8318 no_cache=0
8319 # Check whether --enable-commondlg or --disable-commondlg was given.
8320if test "${enable_commondlg+set}" = set; then
8321 enableval="$enable_commondlg"
e6cc62c6 8322
1e6feb95
VZ
8323 if test "$enableval" = yes; then
8324 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8325 else
8326 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8327 fi
e6cc62c6 8328
1e6feb95 8329else
e6cc62c6 8330
1e6feb95
VZ
8331 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8339
e6cc62c6 8340fi;
1e6feb95
VZ
8341
8342 eval "$ac_cv_use_commondlg"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8348 echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
1e6feb95 8350 else
e6cc62c6
VS
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
1e6feb95 8353 fi
e6cc62c6 8354
1e6feb95 8355
5005acfe 8356 enablestring=
e6cc62c6
VS
8357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8358echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8359 no_cache=0
8360 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8361if test "${enable_choicedlg+set}" = set; then
8362 enableval="$enable_choicedlg"
e6cc62c6 8363
1e6feb95
VZ
8364 if test "$enableval" = yes; then
8365 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8366 else
8367 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8368 fi
e6cc62c6 8369
1e6feb95 8370else
e6cc62c6 8371
1e6feb95
VZ
8372 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
8379 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8380
e6cc62c6 8381fi;
1e6feb95
VZ
8382
8383 eval "$ac_cv_use_choicedlg"
8384 if test "$no_cache" != 1; then
8385 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8386 fi
8387
8388 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8389 echo "$as_me:$LINENO: result: yes" >&5
8390echo "${ECHO_T}yes" >&6
1e6feb95 8391 else
e6cc62c6
VS
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
1e6feb95 8394 fi
e6cc62c6 8395
1e6feb95 8396
5005acfe 8397 enablestring=
e6cc62c6
VS
8398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8399echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8400 no_cache=0
8401 # Check whether --enable-coldlg or --disable-coldlg was given.
8402if test "${enable_coldlg+set}" = set; then
8403 enableval="$enable_coldlg"
e6cc62c6 8404
1e6feb95
VZ
8405 if test "$enableval" = yes; then
8406 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8407 else
8408 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8409 fi
e6cc62c6 8410
1e6feb95 8411else
e6cc62c6 8412
1e6feb95
VZ
8413 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
8420 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8421
e6cc62c6 8422fi;
1e6feb95
VZ
8423
8424 eval "$ac_cv_use_coldlg"
8425 if test "$no_cache" != 1; then
8426 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8427 fi
8428
8429 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
1e6feb95 8432 else
e6cc62c6
VS
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
1e6feb95 8435 fi
e6cc62c6 8436
1e6feb95 8437
5005acfe 8438 enablestring=
e6cc62c6
VS
8439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8440echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8441 no_cache=0
8442 # Check whether --enable-filedlg or --disable-filedlg was given.
8443if test "${enable_filedlg+set}" = set; then
8444 enableval="$enable_filedlg"
e6cc62c6 8445
1e6feb95
VZ
8446 if test "$enableval" = yes; then
8447 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8448 else
8449 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8450 fi
e6cc62c6 8451
1e6feb95 8452else
e6cc62c6 8453
1e6feb95
VZ
8454 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8455 if test "x$LINE" != x ; then
8456 eval "DEFAULT_$LINE"
8457 else
8458 no_cache=1
8459 fi
8460
8461 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8462
e6cc62c6 8463fi;
1e6feb95
VZ
8464
8465 eval "$ac_cv_use_filedlg"
8466 if test "$no_cache" != 1; then
8467 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8468 fi
8469
8470 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8471 echo "$as_me:$LINENO: result: yes" >&5
8472echo "${ECHO_T}yes" >&6
1e6feb95 8473 else
e6cc62c6
VS
8474 echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6
1e6feb95 8476 fi
e6cc62c6 8477
1e6feb95 8478
5005acfe 8479 enablestring=
e6cc62c6
VS
8480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8481echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8482 no_cache=0
69d27ff7
MB
8483 # Check whether --enable-finddlg or --disable-finddlg was given.
8484if test "${enable_finddlg+set}" = set; then
8485 enableval="$enable_finddlg"
e6cc62c6 8486
8db37e06 8487 if test "$enableval" = yes; then
69d27ff7 8488 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8489 else
69d27ff7 8490 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8491 fi
e6cc62c6 8492
8db37e06 8493else
e6cc62c6 8494
8db37e06
VZ
8495 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8496 if test "x$LINE" != x ; then
8497 eval "DEFAULT_$LINE"
8498 else
8499 no_cache=1
8500 fi
8501
69d27ff7 8502 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8503
e6cc62c6 8504fi;
8db37e06 8505
69d27ff7 8506 eval "$ac_cv_use_finddlg"
8db37e06 8507 if test "$no_cache" != 1; then
69d27ff7 8508 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8509 fi
8510
8511 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8512 echo "$as_me:$LINENO: result: yes" >&5
8513echo "${ECHO_T}yes" >&6
8db37e06 8514 else
e6cc62c6
VS
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
8db37e06 8517 fi
e6cc62c6 8518
8db37e06 8519
5005acfe 8520 enablestring=
e6cc62c6
VS
8521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8522echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8523 no_cache=0
8524 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8525if test "${enable_fontdlg+set}" = set; then
8526 enableval="$enable_fontdlg"
e6cc62c6 8527
1e6feb95
VZ
8528 if test "$enableval" = yes; then
8529 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8530 else
8531 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8532 fi
e6cc62c6 8533
1e6feb95 8534else
e6cc62c6 8535
1e6feb95
VZ
8536 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8537 if test "x$LINE" != x ; then
8538 eval "DEFAULT_$LINE"
8539 else
8540 no_cache=1
8541 fi
8542
8543 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8544
e6cc62c6 8545fi;
1e6feb95
VZ
8546
8547 eval "$ac_cv_use_fontdlg"
8548 if test "$no_cache" != 1; then
8549 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8550 fi
8551
8552 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8553 echo "$as_me:$LINENO: result: yes" >&5
8554echo "${ECHO_T}yes" >&6
1e6feb95 8555 else
e6cc62c6
VS
8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
1e6feb95 8558 fi
e6cc62c6 8559
1e6feb95 8560
5005acfe 8561 enablestring=
e6cc62c6
VS
8562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8563echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8564 no_cache=0
8565 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8566if test "${enable_dirdlg+set}" = set; then
8567 enableval="$enable_dirdlg"
e6cc62c6 8568
1e6feb95
VZ
8569 if test "$enableval" = yes; then
8570 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8571 else
8572 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8573 fi
e6cc62c6 8574
1e6feb95 8575else
e6cc62c6 8576
1e6feb95
VZ
8577 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8578 if test "x$LINE" != x ; then
8579 eval "DEFAULT_$LINE"
8580 else
8581 no_cache=1
8582 fi
8583
8584 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8585
e6cc62c6 8586fi;
1e6feb95
VZ
8587
8588 eval "$ac_cv_use_dirdlg"
10f2d63a 8589 if test "$no_cache" != 1; then
1e6feb95 8590 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8591 fi
8592
1e6feb95 8593 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8594 echo "$as_me:$LINENO: result: yes" >&5
8595echo "${ECHO_T}yes" >&6
10f2d63a 8596 else
e6cc62c6
VS
8597 echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6
10f2d63a 8599 fi
e6cc62c6 8600
698dcdb6 8601
5005acfe 8602 enablestring=
e6cc62c6
VS
8603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8604echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8605 no_cache=0
1e6feb95
VZ
8606 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8607if test "${enable_msgdlg+set}" = set; then
8608 enableval="$enable_msgdlg"
e6cc62c6 8609
10f2d63a 8610 if test "$enableval" = yes; then
1e6feb95 8611 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8612 else
1e6feb95 8613 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8614 fi
e6cc62c6 8615
10f2d63a 8616else
e6cc62c6 8617
1e6feb95 8618 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8619 if test "x$LINE" != x ; then
8620 eval "DEFAULT_$LINE"
8621 else
8622 no_cache=1
8623 fi
8624
1e6feb95 8625 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8626
e6cc62c6 8627fi;
10f2d63a 8628
1e6feb95 8629 eval "$ac_cv_use_msgdlg"
10f2d63a 8630 if test "$no_cache" != 1; then
1e6feb95 8631 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8632 fi
8633
1e6feb95 8634 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8635 echo "$as_me:$LINENO: result: yes" >&5
8636echo "${ECHO_T}yes" >&6
10f2d63a 8637 else
e6cc62c6
VS
8638 echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6
10f2d63a 8640 fi
e6cc62c6 8641
10f2d63a 8642
5005acfe 8643 enablestring=
e6cc62c6
VS
8644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8645echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8646 no_cache=0
1e6feb95
VZ
8647 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8648if test "${enable_numberdlg+set}" = set; then
8649 enableval="$enable_numberdlg"
e6cc62c6 8650
10f2d63a 8651 if test "$enableval" = yes; then
1e6feb95 8652 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8653 else
1e6feb95 8654 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8655 fi
e6cc62c6 8656
10f2d63a 8657else
e6cc62c6 8658
1e6feb95 8659 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8660 if test "x$LINE" != x ; then
8661 eval "DEFAULT_$LINE"
8662 else
8663 no_cache=1
8664 fi
8665
1e6feb95 8666 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8667
e6cc62c6 8668fi;
10f2d63a 8669
1e6feb95 8670 eval "$ac_cv_use_numberdlg"
10f2d63a 8671 if test "$no_cache" != 1; then
1e6feb95 8672 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8673 fi
8674
1e6feb95 8675 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8676 echo "$as_me:$LINENO: result: yes" >&5
8677echo "${ECHO_T}yes" >&6
10f2d63a 8678 else
e6cc62c6
VS
8679 echo "$as_me:$LINENO: result: no" >&5
8680echo "${ECHO_T}no" >&6
10f2d63a 8681 fi
e6cc62c6 8682
10f2d63a 8683
5005acfe 8684 enablestring=
e6cc62c6
VS
8685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8686echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8687 no_cache=0
8688 # Check whether --enable-splash or --disable-splash was given.
8689if test "${enable_splash+set}" = set; then
8690 enableval="$enable_splash"
e6cc62c6 8691
cbca9943
VZ
8692 if test "$enableval" = yes; then
8693 ac_cv_use_splash='wxUSE_SPLASH=yes'
8694 else
8695 ac_cv_use_splash='wxUSE_SPLASH=no'
8696 fi
e6cc62c6 8697
cbca9943 8698else
e6cc62c6 8699
cbca9943
VZ
8700 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8701 if test "x$LINE" != x ; then
8702 eval "DEFAULT_$LINE"
8703 else
8704 no_cache=1
8705 fi
8706
8707 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8708
e6cc62c6 8709fi;
cbca9943
VZ
8710
8711 eval "$ac_cv_use_splash"
8712 if test "$no_cache" != 1; then
8713 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8714 fi
8715
8716 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8717 echo "$as_me:$LINENO: result: yes" >&5
8718echo "${ECHO_T}yes" >&6
cbca9943 8719 else
e6cc62c6
VS
8720 echo "$as_me:$LINENO: result: no" >&5
8721echo "${ECHO_T}no" >&6
cbca9943 8722 fi
e6cc62c6 8723
cbca9943 8724
5005acfe 8725 enablestring=
e6cc62c6
VS
8726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8727echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8728 no_cache=0
8729 # Check whether --enable-textdlg or --disable-textdlg was given.
8730if test "${enable_textdlg+set}" = set; then
8731 enableval="$enable_textdlg"
e6cc62c6 8732
10f2d63a
VZ
8733 if test "$enableval" = yes; then
8734 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8735 else
8736 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8737 fi
e6cc62c6 8738
10f2d63a 8739else
e6cc62c6 8740
10f2d63a
VZ
8741 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8742 if test "x$LINE" != x ; then
8743 eval "DEFAULT_$LINE"
8744 else
8745 no_cache=1
8746 fi
8747
8748 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8749
e6cc62c6 8750fi;
10f2d63a
VZ
8751
8752 eval "$ac_cv_use_textdlg"
8753 if test "$no_cache" != 1; then
8754 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8755 fi
8756
8757 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8758 echo "$as_me:$LINENO: result: yes" >&5
8759echo "${ECHO_T}yes" >&6
10f2d63a 8760 else
e6cc62c6
VS
8761 echo "$as_me:$LINENO: result: no" >&5
8762echo "${ECHO_T}no" >&6
10f2d63a 8763 fi
e6cc62c6 8764
10f2d63a 8765
5005acfe 8766 enablestring=
e6cc62c6
VS
8767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8768echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8769 no_cache=0
8770 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8771if test "${enable_tipdlg+set}" = set; then
8772 enableval="$enable_tipdlg"
e6cc62c6 8773
10f2d63a
VZ
8774 if test "$enableval" = yes; then
8775 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8776 else
8777 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8778 fi
e6cc62c6 8779
10f2d63a 8780else
e6cc62c6 8781
10f2d63a
VZ
8782 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8783 if test "x$LINE" != x ; then
8784 eval "DEFAULT_$LINE"
8785 else
8786 no_cache=1
8787 fi
8788
8789 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8790
e6cc62c6 8791fi;
10f2d63a
VZ
8792
8793 eval "$ac_cv_use_tipdlg"
8794 if test "$no_cache" != 1; then
8795 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8796 fi
8797
8798 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8799 echo "$as_me:$LINENO: result: yes" >&5
8800echo "${ECHO_T}yes" >&6
10f2d63a 8801 else
e6cc62c6
VS
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
10f2d63a 8804 fi
e6cc62c6 8805
10f2d63a 8806
5005acfe 8807 enablestring=
e6cc62c6
VS
8808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8809echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8810 no_cache=0
8811 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8812if test "${enable_progressdlg+set}" = set; then
8813 enableval="$enable_progressdlg"
e6cc62c6 8814
10f2d63a
VZ
8815 if test "$enableval" = yes; then
8816 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8817 else
8818 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8819 fi
e6cc62c6 8820
10f2d63a 8821else
e6cc62c6 8822
10f2d63a
VZ
8823 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8824 if test "x$LINE" != x ; then
8825 eval "DEFAULT_$LINE"
8826 else
8827 no_cache=1
8828 fi
8829
8830 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8831
e6cc62c6 8832fi;
10f2d63a
VZ
8833
8834 eval "$ac_cv_use_progressdlg"
8835 if test "$no_cache" != 1; then
8836 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8837 fi
8838
8839 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8840 echo "$as_me:$LINENO: result: yes" >&5
8841echo "${ECHO_T}yes" >&6
10f2d63a 8842 else
e6cc62c6
VS
8843 echo "$as_me:$LINENO: result: no" >&5
8844echo "${ECHO_T}no" >&6
10f2d63a 8845 fi
e6cc62c6 8846
10f2d63a 8847
5005acfe 8848 enablestring=
e6cc62c6
VS
8849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8850echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8851 no_cache=0
8852 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8853if test "${enable_wizarddlg+set}" = set; then
8854 enableval="$enable_wizarddlg"
e6cc62c6 8855
b1f5d087
VZ
8856 if test "$enableval" = yes; then
8857 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8858 else
8859 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8860 fi
e6cc62c6 8861
b1f5d087 8862else
e6cc62c6 8863
b1f5d087
VZ
8864 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8865 if test "x$LINE" != x ; then
8866 eval "DEFAULT_$LINE"
8867 else
8868 no_cache=1
8869 fi
8870
8871 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8872
e6cc62c6 8873fi;
b1f5d087
VZ
8874
8875 eval "$ac_cv_use_wizarddlg"
8876 if test "$no_cache" != 1; then
8877 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8878 fi
8879
8880 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8881 echo "$as_me:$LINENO: result: yes" >&5
8882echo "${ECHO_T}yes" >&6
b1f5d087 8883 else
e6cc62c6
VS
8884 echo "$as_me:$LINENO: result: no" >&5
8885echo "${ECHO_T}no" >&6
b1f5d087 8886 fi
e6cc62c6 8887
8284b0c5
MB
8888
8889
52127426 8890
5005acfe 8891 enablestring=
e6cc62c6
VS
8892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8893echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8894 no_cache=0
8895 # Check whether --enable-menus or --disable-menus was given.
8896if test "${enable_menus+set}" = set; then
8897 enableval="$enable_menus"
e6cc62c6 8898
1e6feb95
VZ
8899 if test "$enableval" = yes; then
8900 ac_cv_use_menus='wxUSE_MENUS=yes'
8901 else
8902 ac_cv_use_menus='wxUSE_MENUS=no'
8903 fi
e6cc62c6 8904
1e6feb95 8905else
e6cc62c6 8906
1e6feb95
VZ
8907 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8908 if test "x$LINE" != x ; then
8909 eval "DEFAULT_$LINE"
8910 else
8911 no_cache=1
8912 fi
8913
8914 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8915
e6cc62c6 8916fi;
1e6feb95
VZ
8917
8918 eval "$ac_cv_use_menus"
8919 if test "$no_cache" != 1; then
8920 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8921 fi
8922
8923 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8924 echo "$as_me:$LINENO: result: yes" >&5
8925echo "${ECHO_T}yes" >&6
1e6feb95 8926 else
e6cc62c6
VS
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
1e6feb95 8929 fi
e6cc62c6 8930
1e6feb95 8931
5005acfe 8932 enablestring=
e6cc62c6
VS
8933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8934echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8935 no_cache=0
8936 # Check whether --enable-miniframe or --disable-miniframe was given.
8937if test "${enable_miniframe+set}" = set; then
8938 enableval="$enable_miniframe"
e6cc62c6 8939
10f2d63a
VZ
8940 if test "$enableval" = yes; then
8941 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8942 else
8943 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8944 fi
e6cc62c6 8945
10f2d63a 8946else
e6cc62c6 8947
10f2d63a
VZ
8948 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8949 if test "x$LINE" != x ; then
8950 eval "DEFAULT_$LINE"
8951 else
8952 no_cache=1
8953 fi
8954
8955 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8956
e6cc62c6 8957fi;
10f2d63a
VZ
8958
8959 eval "$ac_cv_use_miniframe"
8960 if test "$no_cache" != 1; then
8961 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8962 fi
8963
8964 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8965 echo "$as_me:$LINENO: result: yes" >&5
8966echo "${ECHO_T}yes" >&6
10f2d63a 8967 else
e6cc62c6
VS
8968 echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
10f2d63a 8970 fi
e6cc62c6 8971
10f2d63a 8972
5005acfe 8973 enablestring=
e6cc62c6
VS
8974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8975echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8976 no_cache=0
8977 # Check whether --enable-tooltips or --disable-tooltips was given.
8978if test "${enable_tooltips+set}" = set; then
8979 enableval="$enable_tooltips"
e6cc62c6 8980
10f2d63a
VZ
8981 if test "$enableval" = yes; then
8982 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8983 else
8984 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8985 fi
e6cc62c6 8986
10f2d63a 8987else
e6cc62c6 8988
10f2d63a
VZ
8989 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8990 if test "x$LINE" != x ; then
8991 eval "DEFAULT_$LINE"
8992 else
8993 no_cache=1
8994 fi
8995
8996 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8997
e6cc62c6 8998fi;
10f2d63a
VZ
8999
9000 eval "$ac_cv_use_tooltips"
9001 if test "$no_cache" != 1; then
9002 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9003 fi
9004
9005 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9006 echo "$as_me:$LINENO: result: yes" >&5
9007echo "${ECHO_T}yes" >&6
10f2d63a 9008 else
e6cc62c6
VS
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
10f2d63a 9011 fi
e6cc62c6 9012
10f2d63a 9013
5005acfe 9014 enablestring=
e6cc62c6
VS
9015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9016echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9017 no_cache=0
9018 # Check whether --enable-splines or --disable-splines was given.
9019if test "${enable_splines+set}" = set; then
9020 enableval="$enable_splines"
e6cc62c6 9021
10f2d63a
VZ
9022 if test "$enableval" = yes; then
9023 ac_cv_use_splines='wxUSE_SPLINES=yes'
9024 else
9025 ac_cv_use_splines='wxUSE_SPLINES=no'
9026 fi
e6cc62c6 9027
10f2d63a 9028else
e6cc62c6 9029
10f2d63a
VZ
9030 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9031 if test "x$LINE" != x ; then
9032 eval "DEFAULT_$LINE"
9033 else
9034 no_cache=1
9035 fi
9036
9037 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9038
e6cc62c6 9039fi;
10f2d63a
VZ
9040
9041 eval "$ac_cv_use_splines"
9042 if test "$no_cache" != 1; then
9043 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9044 fi
9045
9046 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9047 echo "$as_me:$LINENO: result: yes" >&5
9048echo "${ECHO_T}yes" >&6
10f2d63a 9049 else
e6cc62c6
VS
9050 echo "$as_me:$LINENO: result: no" >&5
9051echo "${ECHO_T}no" >&6
10f2d63a 9052 fi
e6cc62c6 9053
10f2d63a 9054
5005acfe 9055 enablestring=
e6cc62c6
VS
9056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9057echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9058 no_cache=0
9059 # Check whether --enable-validators or --disable-validators was given.
9060if test "${enable_validators+set}" = set; then
9061 enableval="$enable_validators"
e6cc62c6 9062
10f2d63a
VZ
9063 if test "$enableval" = yes; then
9064 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9065 else
9066 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9067 fi
e6cc62c6 9068
10f2d63a 9069else
e6cc62c6 9070
10f2d63a
VZ
9071 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9072 if test "x$LINE" != x ; then
9073 eval "DEFAULT_$LINE"
9074 else
9075 no_cache=1
9076 fi
9077
9078 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9079
e6cc62c6 9080fi;
10f2d63a
VZ
9081
9082 eval "$ac_cv_use_validators"
9083 if test "$no_cache" != 1; then
9084 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9085 fi
9086
9087 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9088 echo "$as_me:$LINENO: result: yes" >&5
9089echo "${ECHO_T}yes" >&6
10f2d63a 9090 else
e6cc62c6
VS
9091 echo "$as_me:$LINENO: result: no" >&5
9092echo "${ECHO_T}no" >&6
10f2d63a 9093 fi
e6cc62c6 9094
10f2d63a 9095
5005acfe 9096 enablestring=
e6cc62c6
VS
9097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9098echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9099 no_cache=0
9100 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9101if test "${enable_busyinfo+set}" = set; then
9102 enableval="$enable_busyinfo"
e6cc62c6 9103
10f2d63a
VZ
9104 if test "$enableval" = yes; then
9105 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9106 else
9107 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9108 fi
e6cc62c6 9109
10f2d63a 9110else
e6cc62c6 9111
10f2d63a
VZ
9112 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9113 if test "x$LINE" != x ; then
9114 eval "DEFAULT_$LINE"
9115 else
9116 no_cache=1
9117 fi
9118
9119 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9120
e6cc62c6 9121fi;
10f2d63a
VZ
9122
9123 eval "$ac_cv_use_busyinfo"
9124 if test "$no_cache" != 1; then
9125 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9126 fi
9127
9128 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9129 echo "$as_me:$LINENO: result: yes" >&5
9130echo "${ECHO_T}yes" >&6
10f2d63a 9131 else
e6cc62c6
VS
9132 echo "$as_me:$LINENO: result: no" >&5
9133echo "${ECHO_T}no" >&6
10f2d63a 9134 fi
e6cc62c6 9135
10f2d63a 9136
5005acfe 9137 enablestring=
e6cc62c6
VS
9138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9139echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9140 no_cache=0
9141 # Check whether --enable-joystick or --disable-joystick was given.
9142if test "${enable_joystick+set}" = set; then
9143 enableval="$enable_joystick"
e6cc62c6 9144
f6bcfd97
BP
9145 if test "$enableval" = yes; then
9146 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9147 else
9148 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9149 fi
e6cc62c6 9150
f6bcfd97 9151else
e6cc62c6 9152
f6bcfd97
BP
9153 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9154 if test "x$LINE" != x ; then
9155 eval "DEFAULT_$LINE"
9156 else
9157 no_cache=1
9158 fi
9159
9160 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9161
e6cc62c6 9162fi;
f6bcfd97
BP
9163
9164 eval "$ac_cv_use_joystick"
9165 if test "$no_cache" != 1; then
9166 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9167 fi
9168
9169 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9170 echo "$as_me:$LINENO: result: yes" >&5
9171echo "${ECHO_T}yes" >&6
f6bcfd97 9172 else
e6cc62c6
VS
9173 echo "$as_me:$LINENO: result: no" >&5
9174echo "${ECHO_T}no" >&6
f6bcfd97 9175 fi
e6cc62c6 9176
698dcdb6 9177
5005acfe 9178 enablestring=
e6cc62c6
VS
9179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9180echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9181 no_cache=0
9182 # Check whether --enable-metafile or --disable-metafile was given.
9183if test "${enable_metafile+set}" = set; then
9184 enableval="$enable_metafile"
e6cc62c6 9185
1e6feb95
VZ
9186 if test "$enableval" = yes; then
9187 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9188 else
9189 ac_cv_use_metafile='wxUSE_METAFILE=no'
9190 fi
e6cc62c6 9191
1e6feb95 9192else
e6cc62c6 9193
1e6feb95
VZ
9194 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9195 if test "x$LINE" != x ; then
9196 eval "DEFAULT_$LINE"
9197 else
9198 no_cache=1
9199 fi
9200
9201 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9202
e6cc62c6 9203fi;
1e6feb95
VZ
9204
9205 eval "$ac_cv_use_metafile"
9206 if test "$no_cache" != 1; then
9207 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9208 fi
9209
9210 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9211 echo "$as_me:$LINENO: result: yes" >&5
9212echo "${ECHO_T}yes" >&6
1e6feb95 9213 else
e6cc62c6
VS
9214 echo "$as_me:$LINENO: result: no" >&5
9215echo "${ECHO_T}no" >&6
1e6feb95 9216 fi
e6cc62c6 9217
1e6feb95 9218
5005acfe 9219 enablestring=
e6cc62c6
VS
9220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9221echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9222 no_cache=0
9223 # Check whether --enable-dragimage or --disable-dragimage was given.
9224if test "${enable_dragimage+set}" = set; then
9225 enableval="$enable_dragimage"
e6cc62c6 9226
24fd6d87
VZ
9227 if test "$enableval" = yes; then
9228 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9229 else
9230 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9231 fi
e6cc62c6 9232
24fd6d87 9233else
e6cc62c6 9234
24fd6d87
VZ
9235 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9236 if test "x$LINE" != x ; then
9237 eval "DEFAULT_$LINE"
9238 else
9239 no_cache=1
9240 fi
9241
9242 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9243
e6cc62c6 9244fi;
24fd6d87
VZ
9245
9246 eval "$ac_cv_use_dragimage"
9247 if test "$no_cache" != 1; then
9248 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9249 fi
9250
9251 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9252 echo "$as_me:$LINENO: result: yes" >&5
9253echo "${ECHO_T}yes" >&6
24fd6d87 9254 else
e6cc62c6
VS
9255 echo "$as_me:$LINENO: result: no" >&5
9256echo "${ECHO_T}no" >&6
24fd6d87 9257 fi
e6cc62c6 9258
52127426 9259
7bb2947d 9260 enablestring=
e6cc62c6
VS
9261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9262echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9263 no_cache=0
9264 # Check whether --enable-accessibility or --disable-accessibility was given.
9265if test "${enable_accessibility+set}" = set; then
9266 enableval="$enable_accessibility"
e6cc62c6 9267
7bb2947d
MB
9268 if test "$enableval" = yes; then
9269 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9270 else
9271 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9272 fi
e6cc62c6 9273
7bb2947d 9274else
e6cc62c6 9275
7bb2947d
MB
9276 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9277 if test "x$LINE" != x ; then
9278 eval "DEFAULT_$LINE"
9279 else
9280 no_cache=1
9281 fi
9282
9283 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9284
e6cc62c6 9285fi;
7bb2947d
MB
9286
9287 eval "$ac_cv_use_accessibility"
9288 if test "$no_cache" != 1; then
9289 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9290 fi
9291
9292 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9293 echo "$as_me:$LINENO: result: yes" >&5
9294echo "${ECHO_T}yes" >&6
7bb2947d 9295 else
e6cc62c6
VS
9296 echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
7bb2947d 9298 fi
e6cc62c6 9299
7bb2947d 9300
8284b0c5
MB
9301
9302
5005acfe 9303 enablestring=
e6cc62c6
VS
9304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9305echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9306 no_cache=0
9307 # Check whether --enable-palette or --disable-palette was given.
9308if test "${enable_palette+set}" = set; then
9309 enableval="$enable_palette"
e6cc62c6 9310
edae8572
VZ
9311 if test "$enableval" = yes; then
9312 ac_cv_use_palette='wxUSE_PALETTE=yes'
9313 else
9314 ac_cv_use_palette='wxUSE_PALETTE=no'
9315 fi
e6cc62c6 9316
edae8572 9317else
e6cc62c6 9318
edae8572
VZ
9319 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9320 if test "x$LINE" != x ; then
9321 eval "DEFAULT_$LINE"
9322 else
9323 no_cache=1
9324 fi
9325
9326 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9327
e6cc62c6 9328fi;
edae8572
VZ
9329
9330 eval "$ac_cv_use_palette"
9331 if test "$no_cache" != 1; then
9332 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9333 fi
9334
9335 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
edae8572 9338 else
e6cc62c6
VS
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
edae8572 9341 fi
e6cc62c6 9342
edae8572 9343
5005acfe 9344 enablestring=
e6cc62c6
VS
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9346echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9347 no_cache=0
9348 # Check whether --enable-image or --disable-image was given.
9349if test "${enable_image+set}" = set; then
9350 enableval="$enable_image"
e6cc62c6 9351
0046ff7c
VS
9352 if test "$enableval" = yes; then
9353 ac_cv_use_image='wxUSE_IMAGE=yes'
9354 else
9355 ac_cv_use_image='wxUSE_IMAGE=no'
9356 fi
e6cc62c6 9357
0046ff7c 9358else
e6cc62c6 9359
0046ff7c
VS
9360 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
9367 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9368
e6cc62c6 9369fi;
0046ff7c
VS
9370
9371 eval "$ac_cv_use_image"
9372 if test "$no_cache" != 1; then
9373 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9374 fi
9375
9376 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9377 echo "$as_me:$LINENO: result: yes" >&5
9378echo "${ECHO_T}yes" >&6
0046ff7c 9379 else
e6cc62c6
VS
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
0046ff7c 9382 fi
e6cc62c6 9383
0046ff7c 9384
5005acfe 9385 enablestring=
e6cc62c6
VS
9386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9387echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9388 no_cache=0
9389 # Check whether --enable-gif or --disable-gif was given.
9390if test "${enable_gif+set}" = set; then
9391 enableval="$enable_gif"
e6cc62c6 9392
10f2d63a
VZ
9393 if test "$enableval" = yes; then
9394 ac_cv_use_gif='wxUSE_GIF=yes'
9395 else
9396 ac_cv_use_gif='wxUSE_GIF=no'
9397 fi
e6cc62c6 9398
10f2d63a 9399else
e6cc62c6 9400
10f2d63a
VZ
9401 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9402 if test "x$LINE" != x ; then
9403 eval "DEFAULT_$LINE"
9404 else
9405 no_cache=1
9406 fi
9407
9408 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9409
e6cc62c6 9410fi;
10f2d63a
VZ
9411
9412 eval "$ac_cv_use_gif"
9413 if test "$no_cache" != 1; then
9414 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9415 fi
9416
9417 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9418 echo "$as_me:$LINENO: result: yes" >&5
9419echo "${ECHO_T}yes" >&6
10f2d63a 9420 else
e6cc62c6
VS
9421 echo "$as_me:$LINENO: result: no" >&5
9422echo "${ECHO_T}no" >&6
10f2d63a 9423 fi
e6cc62c6 9424
10f2d63a 9425
5005acfe 9426 enablestring=
e6cc62c6
VS
9427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9428echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9429 no_cache=0
9430 # Check whether --enable-pcx or --disable-pcx was given.
9431if test "${enable_pcx+set}" = set; then
9432 enableval="$enable_pcx"
e6cc62c6 9433
10f2d63a
VZ
9434 if test "$enableval" = yes; then
9435 ac_cv_use_pcx='wxUSE_PCX=yes'
9436 else
9437 ac_cv_use_pcx='wxUSE_PCX=no'
9438 fi
e6cc62c6 9439
10f2d63a 9440else
e6cc62c6 9441
10f2d63a
VZ
9442 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9443 if test "x$LINE" != x ; then
9444 eval "DEFAULT_$LINE"
9445 else
9446 no_cache=1
9447 fi
9448
9449 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9450
e6cc62c6 9451fi;
10f2d63a
VZ
9452
9453 eval "$ac_cv_use_pcx"
9454 if test "$no_cache" != 1; then
9455 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9456 fi
9457
9458 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9459 echo "$as_me:$LINENO: result: yes" >&5
9460echo "${ECHO_T}yes" >&6
10f2d63a 9461 else
e6cc62c6
VS
9462 echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
10f2d63a 9464 fi
e6cc62c6 9465
10f2d63a 9466
5005acfe 9467 enablestring=
e6cc62c6
VS
9468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9469echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9470 no_cache=0
9471 # Check whether --enable-iff or --disable-iff was given.
9472if test "${enable_iff+set}" = set; then
9473 enableval="$enable_iff"
e6cc62c6 9474
4b6b4dfc
RR
9475 if test "$enableval" = yes; then
9476 ac_cv_use_iff='wxUSE_IFF=yes'
9477 else
9478 ac_cv_use_iff='wxUSE_IFF=no'
9479 fi
e6cc62c6 9480
4b6b4dfc 9481else
e6cc62c6 9482
4b6b4dfc
RR
9483 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9484 if test "x$LINE" != x ; then
9485 eval "DEFAULT_$LINE"
9486 else
9487 no_cache=1
9488 fi
9489
9490 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9491
e6cc62c6 9492fi;
4b6b4dfc
RR
9493
9494 eval "$ac_cv_use_iff"
9495 if test "$no_cache" != 1; then
9496 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9497 fi
9498
9499 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9500 echo "$as_me:$LINENO: result: yes" >&5
9501echo "${ECHO_T}yes" >&6
4b6b4dfc 9502 else
e6cc62c6
VS
9503 echo "$as_me:$LINENO: result: no" >&5
9504echo "${ECHO_T}no" >&6
4b6b4dfc 9505 fi
e6cc62c6 9506
4b6b4dfc 9507
5005acfe 9508 enablestring=
e6cc62c6
VS
9509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9510echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9511 no_cache=0
9512 # Check whether --enable-pnm or --disable-pnm was given.
9513if test "${enable_pnm+set}" = set; then
9514 enableval="$enable_pnm"
e6cc62c6 9515
10f2d63a
VZ
9516 if test "$enableval" = yes; then
9517 ac_cv_use_pnm='wxUSE_PNM=yes'
9518 else
9519 ac_cv_use_pnm='wxUSE_PNM=no'
9520 fi
e6cc62c6 9521
10f2d63a 9522else
e6cc62c6 9523
10f2d63a
VZ
9524 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9525 if test "x$LINE" != x ; then
9526 eval "DEFAULT_$LINE"
9527 else
9528 no_cache=1
9529 fi
9530
9531 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9532
e6cc62c6 9533fi;
10f2d63a
VZ
9534
9535 eval "$ac_cv_use_pnm"
9536 if test "$no_cache" != 1; then
9537 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9538 fi
9539
9540 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9541 echo "$as_me:$LINENO: result: yes" >&5
9542echo "${ECHO_T}yes" >&6
10f2d63a 9543 else
e6cc62c6
VS
9544 echo "$as_me:$LINENO: result: no" >&5
9545echo "${ECHO_T}no" >&6
10f2d63a 9546 fi
e6cc62c6 9547
10f2d63a 9548
5005acfe 9549 enablestring=
e6cc62c6
VS
9550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9551echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9552 no_cache=0
69d27ff7
MB
9553 # Check whether --enable-xpm or --disable-xpm was given.
9554if test "${enable_xpm+set}" = set; then
9555 enableval="$enable_xpm"
e6cc62c6 9556
0046ff7c 9557 if test "$enableval" = yes; then
69d27ff7 9558 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9559 else
69d27ff7 9560 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9561 fi
e6cc62c6 9562
0046ff7c 9563else
e6cc62c6 9564
0046ff7c
VS
9565 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9566 if test "x$LINE" != x ; then
9567 eval "DEFAULT_$LINE"
9568 else
9569 no_cache=1
9570 fi
9571
69d27ff7 9572 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9573
e6cc62c6 9574fi;
0046ff7c 9575
69d27ff7 9576 eval "$ac_cv_use_xpm"
0046ff7c 9577 if test "$no_cache" != 1; then
69d27ff7 9578 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9579 fi
9580
9581 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9582 echo "$as_me:$LINENO: result: yes" >&5
9583echo "${ECHO_T}yes" >&6
0046ff7c 9584 else
e6cc62c6
VS
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
0046ff7c 9587 fi
e6cc62c6 9588
0046ff7c 9589
5005acfe 9590 enablestring=
e6cc62c6
VS
9591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9592echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9593 no_cache=0
c7206e64
VS
9594 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9595if test "${enable_ico_cur+set}" = set; then
9596 enableval="$enable_ico_cur"
e6cc62c6 9597
658974ae 9598 if test "$enableval" = yes; then
c7206e64 9599 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9600 else
c7206e64 9601 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9602 fi
e6cc62c6 9603
658974ae 9604else
e6cc62c6 9605
658974ae
VS
9606 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9607 if test "x$LINE" != x ; then
9608 eval "DEFAULT_$LINE"
9609 else
9610 no_cache=1
9611 fi
9612
c7206e64 9613 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9614
e6cc62c6 9615fi;
658974ae 9616
c7206e64 9617 eval "$ac_cv_use_ico_cur"
658974ae 9618 if test "$no_cache" != 1; then
c7206e64 9619 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9620 fi
9621
9622 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9623 echo "$as_me:$LINENO: result: yes" >&5
9624echo "${ECHO_T}yes" >&6
658974ae 9625 else
e6cc62c6
VS
9626 echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6
658974ae 9628 fi
e6cc62c6 9629
658974ae 9630
b12915c1
VZ
9631fi
9632
029b47ad
VS
9633
9634
9635 enablestring=
9636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9637echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9638 no_cache=0
9639 # Check whether --enable-official_build or --disable-official_build was given.
9640if test "${enable_official_build+set}" = set; then
9641 enableval="$enable_official_build"
9642
9643 if test "$enableval" = yes; then
9644 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9645 else
9646 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9647 fi
9648
9649else
9650
9651 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9652 if test "x$LINE" != x ; then
9653 eval "DEFAULT_$LINE"
9654 else
9655 no_cache=1
9656 fi
9657
9658 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9659
9660fi;
9661
9662 eval "$ac_cv_use_official_build"
9663 if test "$no_cache" != 1; then
9664 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9665 fi
9666
9667 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9668 echo "$as_me:$LINENO: result: yes" >&5
9669echo "${ECHO_T}yes" >&6
9670 else
9671 echo "$as_me:$LINENO: result: no" >&5
9672echo "${ECHO_T}no" >&6
9673 fi
9674
9675# Check whether --enable-vendor or --disable-vendor was given.
9676if test "${enable_vendor+set}" = set; then
9677 enableval="$enable_vendor"
9678 VENDOR="$enableval"
9679fi;
9680if test "x$VENDOR" = "x"; then
9681 VENDOR="custom"
9682fi
9683
d558c907
VS
9684case "${host}" in
9685 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9686 PATH_IFS=';'
d558c907
VS
9687 ;;
9688 *)
9689 PATH_IFS=':'
d558c907
VS
9690 ;;
9691esac
9692
8284b0c5
MB
9693
9694
10f2d63a
VZ
9695 echo "saving argument cache $wx_arg_cache_file"
9696 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9697
8284b0c5 9698
e6cc62c6
VS
9699
9700echo "$as_me:$LINENO: checking for toolkit" >&5
9701echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9702
9703# In Wine, we need to default to MSW, not GTK or MOTIF
9704if test "$wxUSE_WINE" = "yes"; then
9705 DEFAULT_DEFAULT_wxUSE_GTK=0
9706 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9707 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9708 wxUSE_SHARED=no
89e6bf6d 9709fi
10f2d63a
VZ
9710
9711if test "$wxUSE_GUI" = "yes"; then
9712
3a922bb4 9713 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9714 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9715echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9716 { (exit 1); exit 1; }; }
3a922bb4 9717 fi
b12915c1 9718
3a922bb4
RL
9719 if test "$TOOLKIT_GIVEN" = 1; then
9720 for toolkit in `echo $ALL_TOOLKITS`; do
9721 var=wxUSE_$toolkit
9722 eval "value=\$${var}"
9723 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9724 done
10f2d63a 9725 else
3a922bb4
RL
9726 for toolkit in `echo $ALL_TOOLKITS`; do
9727 if test "$has_toolkit_in_cache" != 1; then
9728 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9729 else
9730 var=DEFAULT_wxUSE_$toolkit
9731 fi
9732 eval "wxUSE_$toolkit=\$${var}"
9733 done
10f2d63a 9734 fi
10f2d63a 9735
ac0c4cc3
DE
9736 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9737 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9738 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9739
d558c907 9740 case "${host}" in
6fa882bd 9741 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9742 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9743 esac
10f2d63a 9744
3a922bb4
RL
9745 case "$NUM_TOOLKITS" in
9746 1)
9747 ;;
9748 0)
e6cc62c6
VS
9749 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9750echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9751 { (exit 1); exit 1; }; }
3a922bb4
RL
9752 ;;
9753 *)
e6cc62c6
VS
9754 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9755echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9756 { (exit 1); exit 1; }; }
3a922bb4 9757 esac
10f2d63a 9758
3a922bb4
RL
9759 for toolkit in `echo $ALL_TOOLKITS`; do
9760 var=wxUSE_$toolkit
9761 eval "value=\$${var}"
9762 if test "x$value" != x; then
9763 cache_var=CACHE_$toolkit
9764 eval "cache=\$${cache_var}"
9765 if test "$cache" = 1; then
9766 echo "$var=$value" >> ${wx_arg_cache_file}
9767 fi
9768 if test "$value" = 1; then
89fe663f 9769 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9770 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9771echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9772 fi
9773 fi
9774 done
10f2d63a 9775else
9de9b8f0
VZ
9776 if test "x$host_alias" != "x"; then
9777 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9778echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9779 else
9780 echo "$as_me:$LINENO: result: base only" >&5
9781echo "${ECHO_T}base only" >&6
9782 fi
10f2d63a
VZ
9783fi
9784
43d99b6d
VS
9785wants_win32=0
9786doesnt_want_win32=0
17234b26
MB
9787case "${host}" in
9788 *-*-cygwin*)
9789 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9790 wants_win32=1
9791 else
9792 doesnt_want_win32=1
17234b26
MB
9793 fi
9794 ;;
9795 *-*-mingw*)
43d99b6d 9796 wants_win32=1
17234b26
MB
9797 ;;
9798esac
9799
89e6bf6d
VZ
9800if test "$wxUSE_WINE" = "yes"; then
9801 wants_win32=1
9802 CC=winegcc
9803 CXX=wineg++
9804 RESCOMP=wrc
30f2fa6c 9805 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9806fi
9807
43d99b6d 9808if test "$wants_win32" = 1 ; then
17234b26
MB
9809 USE_UNIX=0
9810 USE_WIN32=1
e6cc62c6 9811 cat >>confdefs.h <<\_ACEOF
17234b26 9812#define __WIN32__ 1
e6cc62c6 9813_ACEOF
17234b26 9814
e6cc62c6 9815 cat >>confdefs.h <<\_ACEOF
17234b26 9816#define __WIN95__ 1
e6cc62c6 9817_ACEOF
17234b26 9818
e6cc62c6 9819 cat >>confdefs.h <<\_ACEOF
17234b26 9820#define __WINDOWS__ 1
e6cc62c6 9821_ACEOF
17234b26 9822
e6cc62c6 9823 cat >>confdefs.h <<\_ACEOF
17234b26 9824#define __GNUWIN32__ 1
e6cc62c6 9825_ACEOF
17234b26 9826
e6cc62c6 9827 cat >>confdefs.h <<\_ACEOF
17234b26 9828#define STRICT 1
e6cc62c6 9829_ACEOF
17234b26 9830
e6cc62c6 9831 cat >>confdefs.h <<\_ACEOF
17234b26 9832#define WINVER 0x0400
e6cc62c6 9833_ACEOF
17234b26 9834
43d99b6d
VS
9835fi
9836if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9837 USE_UNIX=1
9838 USE_WIN32=0
9839fi
9840
9841if test "$USE_UNIX" = 1 ; then
9842 wxUSE_UNIX=yes
e6cc62c6 9843 cat >>confdefs.h <<\_ACEOF
17234b26 9844#define __UNIX__ 1
e6cc62c6 9845_ACEOF
17234b26
MB
9846
9847fi
9848
8284b0c5 9849
e6cc62c6 9850cat >confcache <<\_ACEOF
10f2d63a
VZ
9851# This file is a shell script that caches the results of configure
9852# tests run on this system so they can be shared between configure
e6cc62c6
VS
9853# scripts and configure runs, see configure's option --config-cache.
9854# It is not useful on other systems. If it contains results you don't
9855# want to keep, you may remove or edit it.
10f2d63a 9856#
e6cc62c6
VS
9857# config.status only pays attention to the cache file if you give it
9858# the --recheck option to rerun configure.
10f2d63a 9859#
e6cc62c6
VS
9860# `ac_cv_env_foo' variables (set or unset) will be overridden when
9861# loading this file, other *unset* `ac_cv_foo' will be assigned the
9862# following values.
9863
9864_ACEOF
9865
10f2d63a
VZ
9866# The following way of writing the cache mishandles newlines in values,
9867# but we know of no workaround that is simple, portable, and efficient.
9868# So, don't put newlines in cache variables' values.
9869# Ultrix sh set writes to stderr and can't be redirected directly,
9870# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9871{
9872 (set) 2>&1 |
9873 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9874 *ac_space=\ *)
9875 # `set' does not quote correctly, so add quotes (double-quote
9876 # substitution turns \\\\ into \\, and sed turns \\ into \).
9877 sed -n \
09d3439c
VZ
9878 "s/'/'\\\\''/g;
9879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9880 ;;
9881 *)
9882 # `set' quotes correctly as required by POSIX, so do not add quotes.
9883 sed -n \
09d3439c 9884 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9885 ;;
9886 esac;
9887} |
9888 sed '
9889 t clear
9890 : clear
9891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9892 t end
9893 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9894 : end' >>confcache
9895if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9896 if test -w $cache_file; then
e6cc62c6
VS
9897 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9898 cat confcache >$cache_file
10f2d63a
VZ
9899 else
9900 echo "not updating unwritable cache $cache_file"
9901 fi
9902fi
9903rm -f confcache
9904
e59890c3 9905if test "$build" != "$host" ; then
9d353d4a 9906 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9907 CC=$host_alias-gcc
9908 CXX=$host_alias-c++
9909 AR=$host_alias-ar
9910 RANLIB=$host_alias-ranlib
9911 DLLTOOL=$host_alias-dlltool
9912 RESCOMP=$host_alias-windres
9913 LD=$host_alias-ld
9914 NM=$host_alias-nm
9915 STRIP=$host_alias-strip
9916 else
e6cc62c6
VS
9917 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9918echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9919 { (exit 1); exit 1; }; }
3a922bb4 9920 fi
10f2d63a
VZ
9921fi
9922
ec603395 9923CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9924ac_ext=c
9925ac_cpp='$CPP $CPPFLAGS'
9926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9928ac_compiler_gnu=$ac_cv_c_compiler_gnu
9929if test -n "$ac_tool_prefix"; then
9930 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9931set dummy ${ac_tool_prefix}gcc; ac_word=$2
9932echo "$as_me:$LINENO: checking for $ac_word" >&5
9933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9934if test "${ac_cv_prog_CC+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937 if test -n "$CC"; then
9938 ac_cv_prog_CC="$CC" # Let the user override the test.
9939else
9940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941for as_dir in $PATH
9942do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9947 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 break 2
9950 fi
9951done
9952done
9953
9954fi
9955fi
9956CC=$ac_cv_prog_CC
9957if test -n "$CC"; then
9958 echo "$as_me:$LINENO: result: $CC" >&5
9959echo "${ECHO_T}$CC" >&6
9960else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963fi
9964
9965fi
9966if test -z "$ac_cv_prog_CC"; then
9967 ac_ct_CC=$CC
9968 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9969set dummy gcc; ac_word=$2
e6cc62c6
VS
9970echo "$as_me:$LINENO: checking for $ac_word" >&5
9971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974else
9975 if test -n "$ac_ct_CC"; then
9976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9977else
9978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979for as_dir in $PATH
9980do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9985 ac_cv_prog_ac_ct_CC="gcc"
9986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9988 fi
9989done
9990done
9991
9992fi
9993fi
9994ac_ct_CC=$ac_cv_prog_ac_ct_CC
9995if test -n "$ac_ct_CC"; then
9996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9997echo "${ECHO_T}$ac_ct_CC" >&6
9998else
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
10001fi
10002
10003 CC=$ac_ct_CC
10004else
10005 CC="$ac_cv_prog_CC"
10006fi
10007
10008if test -z "$CC"; then
10009 if test -n "$ac_tool_prefix"; then
10010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10011set dummy ${ac_tool_prefix}cc; ac_word=$2
10012echo "$as_me:$LINENO: checking for $ac_word" >&5
10013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10014if test "${ac_cv_prog_CC+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10016else
10017 if test -n "$CC"; then
10018 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10019else
e6cc62c6
VS
10020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021for as_dir in $PATH
10022do
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10027 ac_cv_prog_CC="${ac_tool_prefix}cc"
10028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10030 fi
10031done
10032done
10033
10f2d63a 10034fi
6232543b 10035fi
e6cc62c6 10036CC=$ac_cv_prog_CC
6232543b 10037if test -n "$CC"; then
e6cc62c6
VS
10038 echo "$as_me:$LINENO: result: $CC" >&5
10039echo "${ECHO_T}$CC" >&6
10040else
10041 echo "$as_me:$LINENO: result: no" >&5
10042echo "${ECHO_T}no" >&6
10043fi
10044
10045fi
10046if test -z "$ac_cv_prog_CC"; then
10047 ac_ct_CC=$CC
10048 # Extract the first word of "cc", so it can be a program name with args.
10049set dummy cc; ac_word=$2
10050echo "$as_me:$LINENO: checking for $ac_word" >&5
10051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055 if test -n "$ac_ct_CC"; then
10056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_ac_ct_CC="cc"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070done
10071
10072fi
10073fi
10074ac_ct_CC=$ac_cv_prog_ac_ct_CC
10075if test -n "$ac_ct_CC"; then
10076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10077echo "${ECHO_T}$ac_ct_CC" >&6
10078else
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
10081fi
10082
10083 CC=$ac_ct_CC
247f5006 10084else
e6cc62c6 10085 CC="$ac_cv_prog_CC"
247f5006
VZ
10086fi
10087
e6cc62c6 10088fi
5c6fa7d2
RR
10089if test -z "$CC"; then
10090 # Extract the first word of "cc", so it can be a program name with args.
10091set dummy cc; ac_word=$2
e6cc62c6
VS
10092echo "$as_me:$LINENO: checking for $ac_word" >&5
10093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10094if test "${ac_cv_prog_CC+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10096else
10097 if test -n "$CC"; then
10098 ac_cv_prog_CC="$CC" # Let the user override the test.
10099else
10100 ac_prog_rejected=no
e6cc62c6
VS
10101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $PATH
10103do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10109 ac_prog_rejected=yes
10110 continue
10111 fi
10112 ac_cv_prog_CC="cc"
10113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10115 fi
10116done
10117done
10118
328a083c
RR
10119if test $ac_prog_rejected = yes; then
10120 # We found a bogon in the path, so make sure we never use it.
10121 set dummy $ac_cv_prog_CC
10122 shift
e6cc62c6 10123 if test $# != 0; then
328a083c 10124 # We chose a different compiler from the bogus one.
1e487827
VS
10125 # However, it has the same basename, so the bogon will be chosen
10126 # first if we set CC to just the basename; use the full file name.
10127 shift
e6cc62c6 10128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10129 fi
1e487827
VS
10130fi
10131fi
10132fi
e6cc62c6 10133CC=$ac_cv_prog_CC
1e487827 10134if test -n "$CC"; then
e6cc62c6
VS
10135 echo "$as_me:$LINENO: result: $CC" >&5
10136echo "${ECHO_T}$CC" >&6
703e0a69 10137else
e6cc62c6
VS
10138 echo "$as_me:$LINENO: result: no" >&5
10139echo "${ECHO_T}no" >&6
703e0a69 10140fi
1e487827 10141
e6cc62c6
VS
10142fi
10143if test -z "$CC"; then
10144 if test -n "$ac_tool_prefix"; then
10145 for ac_prog in cl
10146 do
10147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10148set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10149echo "$as_me:$LINENO: checking for $ac_word" >&5
10150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10151if test "${ac_cv_prog_CC+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10153else
10154 if test -n "$CC"; then
10155 ac_cv_prog_CC="$CC" # Let the user override the test.
10156else
e6cc62c6
VS
10157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158for as_dir in $PATH
10159do
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
10163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 break 2
10167 fi
10168done
10169done
10170
f09359cf
VS
10171fi
10172fi
e6cc62c6 10173CC=$ac_cv_prog_CC
f09359cf 10174if test -n "$CC"; then
e6cc62c6
VS
10175 echo "$as_me:$LINENO: result: $CC" >&5
10176echo "${ECHO_T}$CC" >&6
f09359cf 10177else
e6cc62c6
VS
10178 echo "$as_me:$LINENO: result: no" >&5
10179echo "${ECHO_T}no" >&6
5c6fa7d2 10180fi
1e487827 10181
e6cc62c6
VS
10182 test -n "$CC" && break
10183 done
10184fi
10185if test -z "$CC"; then
10186 ac_ct_CC=$CC
10187 for ac_prog in cl
10188do
10189 # Extract the first word of "$ac_prog", so it can be a program name with args.
10190set dummy $ac_prog; ac_word=$2
10191echo "$as_me:$LINENO: checking for $ac_word" >&5
10192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 if test -n "$ac_ct_CC"; then
10197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10198else
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_prog_ac_ct_CC="$ac_prog"
10207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210done
10211done
f09359cf 10212
e6cc62c6
VS
10213fi
10214fi
10215ac_ct_CC=$ac_cv_prog_ac_ct_CC
10216if test -n "$ac_ct_CC"; then
10217 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10218echo "${ECHO_T}$ac_ct_CC" >&6
10219else
10220 echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222fi
f09359cf 10223
e6cc62c6
VS
10224 test -n "$ac_ct_CC" && break
10225done
247f5006 10226
e6cc62c6
VS
10227 CC=$ac_ct_CC
10228fi
10229
10230fi
10231
10232
10233test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10234See \`config.log' for more details." >&5
10235echo "$as_me: error: no acceptable C compiler found in \$PATH
10236See \`config.log' for more details." >&2;}
10237 { (exit 1); exit 1; }; }
10238
10239# Provide some information about the compiler.
10240echo "$as_me:$LINENO:" \
10241 "checking for C compiler version" >&5
10242ac_compiler=`set X $ac_compile; echo $2`
10243{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10244 (eval $ac_compiler --version </dev/null >&5) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }
10248{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10249 (eval $ac_compiler -v </dev/null >&5) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }
10253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10254 (eval $ac_compiler -V </dev/null >&5) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }
10258
10259cat >conftest.$ac_ext <<_ACEOF
09d3439c 10260#line $LINENO "configure"
e6cc62c6
VS
10261/* confdefs.h. */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h. */
10266
10267int
10268main ()
10269{
247f5006 10270
e6cc62c6
VS
10271 ;
10272 return 0;
10273}
10274_ACEOF
10275ac_clean_files_save=$ac_clean_files
10276ac_clean_files="$ac_clean_files a.out a.exe b.out"
10277# Try to create an executable without -o first, disregard a.out.
10278# It will help us diagnose broken compilers, and finding out an intuition
10279# of exeext.
09d3439c
VZ
10280echo "$as_me:$LINENO: checking for C compiler default output" >&5
10281echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
e6cc62c6
VS
10282ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10283if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10284 (eval $ac_link_default) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; then
10288 # Find the output, starting from the most likely. This scheme is
10289# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10290# resort.
10291
10292# Be careful to initialize this variable, since it used to be cached.
10293# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10294ac_cv_exeext=
10295# b.out is created by i960 compilers.
10296for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10297do
10298 test -f "$ac_file" || continue
10299 case $ac_file in
10300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
09d3439c 10301 ;;
e6cc62c6 10302 conftest.$ac_ext )
09d3439c
VZ
10303 # This is the source file.
10304 ;;
e6cc62c6 10305 [ab].out )
09d3439c
VZ
10306 # We found the default executable, but exeext='' is most
10307 # certainly right.
10308 break;;
e6cc62c6 10309 *.* )
09d3439c
VZ
10310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10311 # FIXME: I believe we export ac_cv_exeext for Libtool,
10312 # but it would be cool to find out if it's true. Does anybody
10313 # maintain Libtool? --akim.
10314 export ac_cv_exeext
10315 break;;
e6cc62c6 10316 * )
09d3439c 10317 break;;
e6cc62c6
VS
10318 esac
10319done
10320else
10321 echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10325See \`config.log' for more details." >&5
10326echo "$as_me: error: C compiler cannot create executables
10327See \`config.log' for more details." >&2;}
10328 { (exit 77); exit 77; }; }
10329fi
10330
10331ac_exeext=$ac_cv_exeext
10332echo "$as_me:$LINENO: result: $ac_file" >&5
10333echo "${ECHO_T}$ac_file" >&6
10334
10335# Check the compiler produces executables we can run. If not, either
10336# the compiler is broken, or we cross compile.
10337echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10338echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10339# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10340# If not cross compiling, check that we can run a simple program.
10341if test "$cross_compiling" != yes; then
10342 if { ac_try='./$ac_file'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 cross_compiling=no
698dcdb6 10349 else
e6cc62c6
VS
10350 if test "$cross_compiling" = maybe; then
10351 cross_compiling=yes
10352 else
10353 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10354If you meant to cross compile, use \`--host'.
10355See \`config.log' for more details." >&5
10356echo "$as_me: error: cannot run C compiled programs.
10357If you meant to cross compile, use \`--host'.
10358See \`config.log' for more details." >&2;}
10359 { (exit 1); exit 1; }; }
10360 fi
698dcdb6 10361 fi
52127426 10362fi
e6cc62c6
VS
10363echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365
10366rm -f a.out a.exe conftest$ac_cv_exeext b.out
10367ac_clean_files=$ac_clean_files_save
10368# Check the compiler produces executables we can run. If not, either
10369# the compiler is broken, or we cross compile.
10370echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10371echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10372echo "$as_me:$LINENO: result: $cross_compiling" >&5
10373echo "${ECHO_T}$cross_compiling" >&6
10374
10375echo "$as_me:$LINENO: checking for suffix of executables" >&5
10376echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378 (eval $ac_link) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; then
10382 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10383# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10384# work properly (i.e., refer to `conftest.exe'), while it won't with
10385# `rm'.
10386for ac_file in conftest.exe conftest conftest.*; do
10387 test -f "$ac_file" || continue
10388 case $ac_file in
10389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10390 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
09d3439c
VZ
10391 export ac_cv_exeext
10392 break;;
e6cc62c6
VS
10393 * ) break;;
10394 esac
10395done
5c6fa7d2 10396else
e6cc62c6
VS
10397 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10398See \`config.log' for more details." >&5
10399echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10400See \`config.log' for more details." >&2;}
10401 { (exit 1); exit 1; }; }
10402fi
10403
10404rm -f conftest$ac_cv_exeext
10405echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10406echo "${ECHO_T}$ac_cv_exeext" >&6
10407
10408rm -f conftest.$ac_ext
10409EXEEXT=$ac_cv_exeext
10410ac_exeext=$EXEEXT
10411echo "$as_me:$LINENO: checking for suffix of object files" >&5
10412echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10413if test "${ac_cv_objext+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415else
10416 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10417#line $LINENO "configure"
e6cc62c6
VS
10418/* confdefs.h. */
10419_ACEOF
10420cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h. */
10423
10424int
10425main ()
10426{
f09359cf 10427
e6cc62c6
VS
10428 ;
10429 return 0;
10430}
10431_ACEOF
10432rm -f conftest.o conftest.obj
10433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; then
10438 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10439 case $ac_file in
10440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10442 break;;
10443 esac
10444done
a0b9e27f 10445else
e6cc62c6
VS
10446 echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10450See \`config.log' for more details." >&5
10451echo "$as_me: error: cannot compute suffix of object files: cannot compile
10452See \`config.log' for more details." >&2;}
10453 { (exit 1); exit 1; }; }
a0b9e27f 10454fi
247f5006 10455
e6cc62c6
VS
10456rm -f conftest.$ac_cv_objext conftest.$ac_ext
10457fi
10458echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10459echo "${ECHO_T}$ac_cv_objext" >&6
10460OBJEXT=$ac_cv_objext
10461ac_objext=$OBJEXT
10462echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10463echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10464if test "${ac_cv_c_compiler_gnu+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10466else
e6cc62c6 10467 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10468#line $LINENO "configure"
e6cc62c6
VS
10469/* confdefs.h. */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h. */
10474
10475int
10476main ()
10477{
10478#ifndef __GNUC__
10479 choke me
10480#endif
10481
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486rm -f conftest.$ac_objext
10487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 10488 (eval $ac_compile) 2>&5
e6cc62c6
VS
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
09d3439c 10492 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 ac_compiler_gnu=yes
10499else
10500 echo "$as_me: failed program was:" >&5
10501sed 's/^/| /' conftest.$ac_ext >&5
10502
10503ac_compiler_gnu=no
10504fi
09d3439c 10505rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10506ac_cv_c_compiler_gnu=$ac_compiler_gnu
10507
10508fi
10509echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10510echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10511GCC=`test $ac_compiler_gnu = yes && echo yes`
10512ac_test_CFLAGS=${CFLAGS+set}
10513ac_save_CFLAGS=$CFLAGS
10514CFLAGS="-g"
10515echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10516echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10517if test "${ac_cv_prog_cc_g+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10521#line $LINENO "configure"
e6cc62c6
VS
10522/* confdefs.h. */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h. */
10527
10528int
10529main ()
10530{
10531
10532 ;
10533 return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext
10537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 10538 (eval $ac_compile) 2>&5
e6cc62c6
VS
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
09d3439c 10542 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10f2d63a
VZ
10548 ac_cv_prog_cc_g=yes
10549else
e6cc62c6
VS
10550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10552
e6cc62c6 10553ac_cv_prog_cc_g=no
10f2d63a 10554fi
09d3439c 10555rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10556fi
10557echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10558echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10559if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10560 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10561elif test $ac_cv_prog_cc_g = yes; then
10562 if test "$GCC" = yes; then
10f2d63a
VZ
10563 CFLAGS="-g -O2"
10564 else
f09359cf 10565 CFLAGS="-g"
10f2d63a 10566 fi
5c0a20c3 10567else
f09359cf
VS
10568 if test "$GCC" = yes; then
10569 CFLAGS="-O2"
10570 else
10571 CFLAGS=
10572 fi
10f2d63a 10573fi
e6cc62c6
VS
10574echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10575echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10576if test "${ac_cv_prog_cc_stdc+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579 ac_cv_prog_cc_stdc=no
10580ac_save_CC=$CC
10581cat >conftest.$ac_ext <<_ACEOF
09d3439c 10582#line $LINENO "configure"
e6cc62c6
VS
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588#include <stdarg.h>
10589#include <stdio.h>
10590#include <sys/types.h>
10591#include <sys/stat.h>
10592/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10593struct buf { int x; };
10594FILE * (*rcsopen) (struct buf *, struct stat *, int);
10595static char *e (p, i)
10596 char **p;
10597 int i;
10598{
10599 return p[i];
10600}
10601static char *f (char * (*g) (char **, int), char **p, ...)
10602{
10603 char *s;
10604 va_list v;
10605 va_start (v,p);
10606 s = g (p, va_arg (v,int));
10607 va_end (v);
10608 return s;
10609}
10610int test (int i, double x);
10611struct s1 {int (*f) (int a);};
10612struct s2 {int (*f) (double a);};
10613int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10614int argc;
10615char **argv;
10616int
10617main ()
10618{
10619return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10620 ;
10621 return 0;
10622}
10623_ACEOF
10624# Don't try gcc -ansi; that turns off useful extensions and
10625# breaks some systems' header files.
10626# AIX -qlanglvl=ansi
10627# Ultrix and OSF/1 -std1
10628# HP-UX 10.20 and later -Ae
10629# HP-UX older versions -Aa -D_HPUX_SOURCE
10630# SVR4 -Xc -D__EXTENSIONS__
10631for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10632do
10633 CC="$ac_save_CC $ac_arg"
10634 rm -f conftest.$ac_objext
10635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 10636 (eval $ac_compile) 2>&5
e6cc62c6
VS
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
09d3439c 10640 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_cv_prog_cc_stdc=$ac_arg
10647break
10648else
10649 echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652fi
09d3439c 10653rm -f conftest.$ac_objext
e6cc62c6
VS
10654done
10655rm -f conftest.$ac_ext conftest.$ac_objext
10656CC=$ac_save_CC
10657
10658fi
10659
10660case "x$ac_cv_prog_cc_stdc" in
10661 x|xno)
10662 echo "$as_me:$LINENO: result: none needed" >&5
10663echo "${ECHO_T}none needed" >&6 ;;
10664 *)
10665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10666echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10667 CC="$CC $ac_cv_prog_cc_stdc" ;;
10668esac
10669
10670# Some people use a C++ compiler to compile C. Since we use `exit',
10671# in C++ we need to declare it. In case someone uses the same compiler
10672# for both compiling C and C++ we need to have the C++ compiler decide
10673# the declaration of exit, since it's the most demanding environment.
10674cat >conftest.$ac_ext <<_ACEOF
10675#ifndef __cplusplus
10676 choke me
10677#endif
10678_ACEOF
10679rm -f conftest.$ac_objext
10680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 10681 (eval $ac_compile) 2>&5
e6cc62c6
VS
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
09d3439c 10685 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 for ac_declaration in \
09d3439c
VZ
10692 ''\
10693 '#include <stdlib.h>' \
e6cc62c6
VS
10694 'extern "C" void std::exit (int) throw (); using std::exit;' \
10695 'extern "C" void std::exit (int); using std::exit;' \
10696 'extern "C" void exit (int) throw ();' \
10697 'extern "C" void exit (int);' \
10698 'void exit (int);'
10699do
10700 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10701#line $LINENO "configure"
e6cc62c6
VS
10702/* confdefs.h. */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h. */
eea650d8 10707#include <stdlib.h>
09d3439c 10708$ac_declaration
e6cc62c6
VS
10709int
10710main ()
10711{
10712exit (42);
10713 ;
10714 return 0;
10715}
10716_ACEOF
10717rm -f conftest.$ac_objext
10718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 10719 (eval $ac_compile) 2>&5
e6cc62c6
VS
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
09d3439c 10723 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 :
10730else
10731 echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
10734continue
10735fi
09d3439c 10736rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10737 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10738#line $LINENO "configure"
e6cc62c6
VS
10739/* confdefs.h. */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h. */
10744$ac_declaration
10745int
10746main ()
10747{
10748exit (42);
10749 ;
10750 return 0;
10751}
10752_ACEOF
10753rm -f conftest.$ac_objext
10754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 10755 (eval $ac_compile) 2>&5
e6cc62c6
VS
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
09d3439c 10759 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 break
10766else
10767 echo "$as_me: failed program was:" >&5
10768sed 's/^/| /' conftest.$ac_ext >&5
10769
10770fi
09d3439c 10771rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10772done
10773rm -f conftest*
10774if test -n "$ac_declaration"; then
10775 echo '#ifdef __cplusplus' >>confdefs.h
10776 echo $ac_declaration >>confdefs.h
10777 echo '#endif' >>confdefs.h
10778fi
10779
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784fi
09d3439c 10785rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10786ac_ext=c
10787ac_cpp='$CPP $CPPFLAGS'
10788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10790ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10791
10792
e6cc62c6
VS
10793
10794ac_ext=c
10795ac_cpp='$CPP $CPPFLAGS'
10796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10800echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10801# On Suns, sometimes $CPP names a directory.
10802if test -n "$CPP" && test -d "$CPP"; then
10803 CPP=
10804fi
10805if test -z "$CPP"; then
e6cc62c6
VS
10806 if test "${ac_cv_prog_CPP+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809 # Double quotes because CPP needs to be expanded
10810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10811 do
10812 ac_preproc_ok=false
10813for ac_c_preproc_warn_flag in '' yes
10814do
10815 # Use a header file that comes with gcc, so configuring glibc
10816 # with a fresh cross-compiler works.
10817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 # <limits.h> exists even on freestanding compilers.
10f2d63a 10819 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10820 # not just through cpp. "Syntax error" is here to catch this case.
10821 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10822#line $LINENO "configure"
e6cc62c6
VS
10823/* confdefs.h. */
10824_ACEOF
10825cat confdefs.h >>conftest.$ac_ext
10826cat >>conftest.$ac_ext <<_ACEOF
10827/* end confdefs.h. */
10828#ifdef __STDC__
10829# include <limits.h>
10830#else
10831# include <assert.h>
10832#endif
09d3439c 10833 Syntax error
e6cc62c6
VS
10834_ACEOF
10835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } >/dev/null; then
10843 if test -s conftest.err; then
10844 ac_cpp_err=$ac_c_preproc_warn_flag
10845 else
10846 ac_cpp_err=
10847 fi
10f2d63a 10848else
e6cc62c6
VS
10849 ac_cpp_err=yes
10850fi
10851if test -z "$ac_cpp_err"; then
a0b9e27f 10852 :
247f5006 10853else
e6cc62c6
VS
10854 echo "$as_me: failed program was:" >&5
10855sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 # Broken: fails on valid input.
10858continue
10859fi
10860rm -f conftest.err conftest.$ac_ext
10861
10862 # OK, works on sane cases. Now check whether non-existent headers
10863 # can be detected and how.
10864 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10865#line $LINENO "configure"
e6cc62c6
VS
10866/* confdefs.h. */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
10871#include <ac_nonexistent.h>
10872_ACEOF
10873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } >/dev/null; then
10881 if test -s conftest.err; then
10882 ac_cpp_err=$ac_c_preproc_warn_flag
10883 else
10884 ac_cpp_err=
10885 fi
10f2d63a 10886else
e6cc62c6 10887 ac_cpp_err=yes
579d8138 10888fi
e6cc62c6
VS
10889if test -z "$ac_cpp_err"; then
10890 # Broken: success on invalid input.
10891continue
10892else
10893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 # Passes both tests.
10897ac_preproc_ok=:
10898break
52127426 10899fi
e6cc62c6
VS
10900rm -f conftest.err conftest.$ac_ext
10901
10902done
10903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10904rm -f conftest.err conftest.$ac_ext
10905if $ac_preproc_ok; then
10906 break
8284b0c5 10907fi
e6cc62c6
VS
10908
10909 done
10910 ac_cv_prog_CPP=$CPP
10911
10912fi
10913 CPP=$ac_cv_prog_CPP
10914else
10915 ac_cv_prog_CPP=$CPP
10916fi
10917echo "$as_me:$LINENO: result: $CPP" >&5
10918echo "${ECHO_T}$CPP" >&6
10919ac_preproc_ok=false
10920for ac_c_preproc_warn_flag in '' yes
10921do
10922 # Use a header file that comes with gcc, so configuring glibc
10923 # with a fresh cross-compiler works.
10924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925 # <limits.h> exists even on freestanding compilers.
10926 # On the NeXT, cc -E runs the code through the compiler's parser,
10927 # not just through cpp. "Syntax error" is here to catch this case.
10928 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10929#line $LINENO "configure"
e6cc62c6
VS
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
10935#ifdef __STDC__
10936# include <limits.h>
10937#else
10938# include <assert.h>
10939#endif
09d3439c 10940 Syntax error
e6cc62c6
VS
10941_ACEOF
10942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } >/dev/null; then
10950 if test -s conftest.err; then
10951 ac_cpp_err=$ac_c_preproc_warn_flag
10952 else
10953 ac_cpp_err=
10954 fi
10955else
10956 ac_cpp_err=yes
10957fi
10958if test -z "$ac_cpp_err"; then
10959 :
10960else
10961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 # Broken: fails on valid input.
10965continue
10966fi
10967rm -f conftest.err conftest.$ac_ext
10968
10969 # OK, works on sane cases. Now check whether non-existent headers
10970 # can be detected and how.
10971 cat >conftest.$ac_ext <<_ACEOF
09d3439c 10972#line $LINENO "configure"
e6cc62c6
VS
10973/* confdefs.h. */
10974_ACEOF
10975cat confdefs.h >>conftest.$ac_ext
10976cat >>conftest.$ac_ext <<_ACEOF
10977/* end confdefs.h. */
10978#include <ac_nonexistent.h>
10979_ACEOF
10980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } >/dev/null; then
10988 if test -s conftest.err; then
10989 ac_cpp_err=$ac_c_preproc_warn_flag
10990 else
10991 ac_cpp_err=
10992 fi
10993else
10994 ac_cpp_err=yes
10995fi
10996if test -z "$ac_cpp_err"; then
10997 # Broken: success on invalid input.
10998continue
10999else
11000 echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 # Passes both tests.
11004ac_preproc_ok=:
11005break
a0b9e27f 11006fi
e6cc62c6
VS
11007rm -f conftest.err conftest.$ac_ext
11008
11009done
11010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11011rm -f conftest.err conftest.$ac_ext
11012if $ac_preproc_ok; then
11013 :
11014else
11015 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11016See \`config.log' for more details." >&5
11017echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11018See \`config.log' for more details." >&2;}
11019 { (exit 1); exit 1; }; }
11020fi
11021
11022ac_ext=c
11023ac_cpp='$CPP $CPPFLAGS'
11024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11026ac_compiler_gnu=$ac_cv_c_compiler_gnu
11027
11028
11029echo "$as_me:$LINENO: checking for egrep" >&5
11030echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11031if test "${ac_cv_prog_egrep+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11033else
e6cc62c6
VS
11034 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11035 then ac_cv_prog_egrep='grep -E'
11036 else ac_cv_prog_egrep='egrep'
11037 fi
10f2d63a 11038fi
e6cc62c6
VS
11039echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11040echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11041 EGREP=$ac_cv_prog_egrep
11042
10f2d63a 11043
e6cc62c6
VS
11044if test $ac_cv_c_compiler_gnu = yes; then
11045 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11046echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11047if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11049else
11050 ac_pattern="Autoconf.*'x'"
e6cc62c6 11051 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11052#line $LINENO "configure"
e6cc62c6
VS
11053/* confdefs.h. */
11054_ACEOF
11055cat confdefs.h >>conftest.$ac_ext
11056cat >>conftest.$ac_ext <<_ACEOF
11057/* end confdefs.h. */
10f2d63a
VZ
11058#include <sgtty.h>
11059Autoconf TIOCGETP
e6cc62c6 11060_ACEOF
10f2d63a 11061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11062 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11063 ac_cv_prog_gcc_traditional=yes
11064else
10f2d63a
VZ
11065 ac_cv_prog_gcc_traditional=no
11066fi
11067rm -f conftest*
11068
8284b0c5 11069
10f2d63a 11070 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11071 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11072#line $LINENO "configure"
e6cc62c6
VS
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
10f2d63a
VZ
11078#include <termio.h>
11079Autoconf TCGETA
e6cc62c6 11080_ACEOF
10f2d63a 11081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11082 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11083 ac_cv_prog_gcc_traditional=yes
11084fi
11085rm -f conftest*
11086
11087 fi
11088fi
e6cc62c6
VS
11089echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11090echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11091 if test $ac_cv_prog_gcc_traditional = yes; then
11092 CC="$CC -traditional"
11093 fi
11094fi
11095
8284b0c5
MB
11096
11097
e6cc62c6
VS
11098
11099ac_ext=cc
1e487827 11100ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11104
698dcdb6 11105
ec603395 11106CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11107ac_ext=cc
11108ac_cpp='$CXXCPP $CPPFLAGS'
11109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11112if test -n "$ac_tool_prefix"; then
11113 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11114 do
11115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11116set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11117echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11119if test "${ac_cv_prog_CXX+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11121else
11122 if test -n "$CXX"; then
11123 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11124else
e6cc62c6
VS
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136done
11137done
11138
10f2d63a
VZ
11139fi
11140fi
e6cc62c6 11141CXX=$ac_cv_prog_CXX
10f2d63a 11142if test -n "$CXX"; then
e6cc62c6
VS
11143 echo "$as_me:$LINENO: result: $CXX" >&5
11144echo "${ECHO_T}$CXX" >&6
10f2d63a 11145else
e6cc62c6
VS
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
10f2d63a
VZ
11148fi
11149
e6cc62c6
VS
11150 test -n "$CXX" && break
11151 done
11152fi
11153if test -z "$CXX"; then
11154 ac_ct_CXX=$CXX
11155 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11156do
11157 # Extract the first word of "$ac_prog", so it can be a program name with args.
11158set dummy $ac_prog; ac_word=$2
11159echo "$as_me:$LINENO: checking for $ac_word" >&5
11160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11161if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163else
11164 if test -n "$ac_ct_CXX"; then
11165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174 ac_cv_prog_ac_ct_CXX="$ac_prog"
11175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11177 fi
11178done
10f2d63a 11179done
a0b9e27f 11180
8284b0c5 11181fi
a0b9e27f 11182fi
e6cc62c6
VS
11183ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11184if test -n "$ac_ct_CXX"; then
11185 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11186echo "${ECHO_T}$ac_ct_CXX" >&6
11187else
11188 echo "$as_me:$LINENO: result: no" >&5
11189echo "${ECHO_T}no" >&6
a0b9e27f 11190fi
10f2d63a 11191
e6cc62c6
VS
11192 test -n "$ac_ct_CXX" && break
11193done
11194test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11195
11196 CXX=$ac_ct_CXX
11197fi
11198
11199
11200# Provide some information about the compiler.
11201echo "$as_me:$LINENO:" \
11202 "checking for C++ compiler version" >&5
11203ac_compiler=`set X $ac_compile; echo $2`
11204{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11205 (eval $ac_compiler --version </dev/null >&5) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }
11209{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11210 (eval $ac_compiler -v </dev/null >&5) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }
11214{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11215 (eval $ac_compiler -V </dev/null >&5) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }
11219
11220echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11221echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11222if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11226#line $LINENO "configure"
e6cc62c6
VS
11227/* confdefs.h. */
11228_ACEOF
11229cat confdefs.h >>conftest.$ac_ext
11230cat >>conftest.$ac_ext <<_ACEOF
11231/* end confdefs.h. */
11232
11233int
11234main ()
11235{
11236#ifndef __GNUC__
11237 choke me
11238#endif
10f2d63a 11239
e6cc62c6
VS
11240 ;
11241 return 0;
11242}
11243_ACEOF
11244rm -f conftest.$ac_objext
11245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 11246 (eval $ac_compile) 2>&5
e6cc62c6
VS
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
09d3439c 11250 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_compiler_gnu=yes
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261ac_compiler_gnu=no
11262fi
09d3439c 11263rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11264ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11265
11266fi
11267echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11268echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11269GXX=`test $ac_compiler_gnu = yes && echo yes`
11270ac_test_CXXFLAGS=${CXXFLAGS+set}
11271ac_save_CXXFLAGS=$CXXFLAGS
11272CXXFLAGS="-g"
11273echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11274echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11275if test "${ac_cv_prog_cxx_g+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277else
11278 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11279#line $LINENO "configure"
e6cc62c6
VS
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285
11286int
11287main ()
11288{
f09359cf 11289
e6cc62c6
VS
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294rm -f conftest.$ac_objext
11295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 11296 (eval $ac_compile) 2>&5
e6cc62c6
VS
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
09d3439c 11300 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
10f2d63a
VZ
11306 ac_cv_prog_cxx_g=yes
11307else
e6cc62c6
VS
11308 echo "$as_me: failed program was:" >&5
11309sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11310
e6cc62c6 11311ac_cv_prog_cxx_g=no
10f2d63a 11312fi
09d3439c 11313rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11314fi
11315echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11316echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11317if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11318 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11319elif test $ac_cv_prog_cxx_g = yes; then
11320 if test "$GXX" = yes; then
10f2d63a
VZ
11321 CXXFLAGS="-g -O2"
11322 else
f09359cf 11323 CXXFLAGS="-g"
10f2d63a 11324 fi
5c0a20c3 11325else
f09359cf
VS
11326 if test "$GXX" = yes; then
11327 CXXFLAGS="-O2"
11328 else
11329 CXXFLAGS=
11330 fi
10f2d63a 11331fi
e6cc62c6 11332for ac_declaration in \
09d3439c
VZ
11333 ''\
11334 '#include <stdlib.h>' \
e6cc62c6
VS
11335 'extern "C" void std::exit (int) throw (); using std::exit;' \
11336 'extern "C" void std::exit (int); using std::exit;' \
11337 'extern "C" void exit (int) throw ();' \
11338 'extern "C" void exit (int);' \
11339 'void exit (int);'
11340do
11341 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11342#line $LINENO "configure"
e6cc62c6
VS
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
eea650d8 11348#include <stdlib.h>
09d3439c 11349$ac_declaration
e6cc62c6
VS
11350int
11351main ()
11352{
11353exit (42);
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358rm -f conftest.$ac_objext
11359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 11360 (eval $ac_compile) 2>&5
e6cc62c6
VS
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
09d3439c 11364 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 :
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375continue
11376fi
09d3439c 11377rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11378 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11379#line $LINENO "configure"
e6cc62c6
VS
11380/* confdefs.h. */
11381_ACEOF
11382cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */
11385$ac_declaration
11386int
11387main ()
11388{
11389exit (42);
11390 ;
11391 return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext
11395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 11396 (eval $ac_compile) 2>&5
e6cc62c6
VS
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
09d3439c 11400 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 break
11407else
11408 echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
11411fi
09d3439c 11412rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11413done
11414rm -f conftest*
11415if test -n "$ac_declaration"; then
11416 echo '#ifdef __cplusplus' >>confdefs.h
11417 echo $ac_declaration >>confdefs.h
11418 echo '#endif' >>confdefs.h
11419fi
11420
11421ac_ext=cc
11422ac_cpp='$CXXCPP $CPPFLAGS'
11423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11426
11427
10f2d63a 11428ac_ext=c
10f2d63a 11429ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11432ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11433
11434
e6cc62c6
VS
11435if test -n "$ac_tool_prefix"; then
11436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11437set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11438echo "$as_me:$LINENO: checking for $ac_word" >&5
11439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11440if test "${ac_cv_prog_RANLIB+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11442else
11443 if test -n "$RANLIB"; then
11444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11445else
e6cc62c6
VS
11446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447for as_dir in $PATH
11448do
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11456 fi
11457done
11458done
11459
10f2d63a
VZ
11460fi
11461fi
e6cc62c6 11462RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11463if test -n "$RANLIB"; then
e6cc62c6
VS
11464 echo "$as_me:$LINENO: result: $RANLIB" >&5
11465echo "${ECHO_T}$RANLIB" >&6
11466else
11467 echo "$as_me:$LINENO: result: no" >&5
11468echo "${ECHO_T}no" >&6
11469fi
11470
11471fi
11472if test -z "$ac_cv_prog_RANLIB"; then
11473 ac_ct_RANLIB=$RANLIB
11474 # Extract the first word of "ranlib", so it can be a program name with args.
11475set dummy ranlib; ac_word=$2
11476echo "$as_me:$LINENO: checking for $ac_word" >&5
11477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11478if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11480else
e6cc62c6
VS
11481 if test -n "$ac_ct_RANLIB"; then
11482 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11483else
11484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485for as_dir in $PATH
11486do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11491 ac_cv_prog_ac_ct_RANLIB="ranlib"
11492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11494 fi
11495done
11496done
11497
11498 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11499fi
11500fi
11501ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11502if test -n "$ac_ct_RANLIB"; then
11503 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11504echo "${ECHO_T}$ac_ct_RANLIB" >&6
11505else
11506 echo "$as_me:$LINENO: result: no" >&5
11507echo "${ECHO_T}no" >&6
11508fi
11509
11510 RANLIB=$ac_ct_RANLIB
11511else
11512 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11513fi
11514
10f2d63a
VZ
11515
11516# Extract the first word of "ar", so it can be a program name with args.
11517set dummy ar; ac_word=$2
e6cc62c6
VS
11518echo "$as_me:$LINENO: checking for $ac_word" >&5
11519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11520if test "${ac_cv_prog_AR+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11522else
11523 if test -n "$AR"; then
11524 ac_cv_prog_AR="$AR" # Let the user override the test.
11525else
e6cc62c6
VS
11526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527for as_dir in $PATH
11528do
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533 ac_cv_prog_AR="ar"
11534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 break 2
11536 fi
11537done
11538done
11539
10f2d63a
VZ
11540fi
11541fi
e6cc62c6 11542AR=$ac_cv_prog_AR
10f2d63a 11543if test -n "$AR"; then
e6cc62c6
VS
11544 echo "$as_me:$LINENO: result: $AR" >&5
11545echo "${ECHO_T}$AR" >&6
10f2d63a 11546else
e6cc62c6
VS
11547 echo "$as_me:$LINENO: result: no" >&5
11548echo "${ECHO_T}no" >&6
10f2d63a
VZ
11549fi
11550
911740e7
VS
11551if test "x$AR" = "x" ; then
11552 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11553echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11554 { (exit 1); exit 1; }; }
11555fi
8284b0c5 11556
6054113a 11557# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11558# so one script is as good as another. But avoid the broken or
11559# incompatible versions:
11560# SysV /etc/install, /usr/sbin/install
11561# SunOS /usr/etc/install
11562# IRIX /sbin/install
11563# AIX /bin/install
e6cc62c6 11564# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11566# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11568# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11569echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11570echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11571if test -z "$INSTALL"; then
e6cc62c6
VS
11572if test "${ac_cv_path_install+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
11577do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 # Account for people who put trailing slashes in PATH elements.
11581case $as_dir/ in
11582 ./ | .// | /cC/* | \
11583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11584 /usr/ucb/* ) ;;
11585 *)
11586 # OSF1 and SCO ODT 3.0 have their own names for install.
11587 # Don't use installbsd from OSF since it installs stuff as root
11588 # by default.
11589 for ac_prog in ginstall scoinst install; do
11590 for ac_exec_ext in '' $ac_executable_extensions; do
09d3439c
VZ
11591 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11592 if test $ac_prog = install &&
11593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11594 # AIX install. It has an incompatible calling convention.
11595 :
11596 elif test $ac_prog = install &&
11597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11598 # program-specific install script used by HP pwplus--don't use.
11599 :
11600 else
11601 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11602 break 3
11603 fi
11604 fi
10f2d63a 11605 done
e6cc62c6
VS
11606 done
11607 ;;
11608esac
11609done
11610
10f2d63a
VZ
11611
11612fi
11613 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11614 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11615 else
11616 # As a last resort, use the slow shell script. We don't cache a
11617 # path for INSTALL within a source directory, because that will
11618 # break other packages using the cache if that directory is
11619 # removed, or if the path is relative.
e6cc62c6 11620 INSTALL=$ac_install_sh
10f2d63a
VZ
11621 fi
11622fi
e6cc62c6
VS
11623echo "$as_me:$LINENO: result: $INSTALL" >&5
11624echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11625
11626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11627# It thinks the first close brace ends the variable substitution.
11628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11629
e6cc62c6 11630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11631
10f2d63a
VZ
11632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11633
8284b0c5 11634
1d1b75ac
VZ
11635case ${INSTALL} in
11636 /* ) # Absolute
11637 ;;
4f5a7f74
VZ
11638 ?:* ) # Drive letter, considered as absolute.
11639 ;;
3bd8fb5f 11640 *)
1d1b75ac
VZ
11641 INSTALL=`pwd`/${INSTALL} ;;
11642esac
11643
4f5a7f74
VZ
11644case ${host} in
11645 *-hp-hpux* )
11646 INSTALL_DIR="mkdir"
11647 ;;
11648
11649 *) INSTALL_DIR="$INSTALL -d"
11650 ;;
11651esac
11652
8284b0c5 11653
6054113a
GD
11654case "${host}" in
11655
b5853384 11656 powerpc-*-darwin* )
eb99ae0b
GD
11657 INSTALL_PROGRAM="cp -fp"
11658 INSTALL_DATA="cp -fp"
6054113a
GD
11659 ;;
11660 *)
11661 ;;
d6853540 11662esac
698dcdb6 11663
10f2d63a
VZ
11664# Extract the first word of "strip", so it can be a program name with args.
11665set dummy strip; ac_word=$2
e6cc62c6
VS
11666echo "$as_me:$LINENO: checking for $ac_word" >&5
11667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11668if test "${ac_cv_prog_STRIP+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11670else
11671 if test -n "$STRIP"; then
11672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11673else
e6cc62c6
VS
11674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_STRIP="strip"
11682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11684 fi
11685done
11686done
11687
10f2d63a
VZ
11688 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11689fi
11690fi
e6cc62c6 11691STRIP=$ac_cv_prog_STRIP
10f2d63a 11692if test -n "$STRIP"; then
e6cc62c6
VS
11693 echo "$as_me:$LINENO: result: $STRIP" >&5
11694echo "${ECHO_T}$STRIP" >&6
10f2d63a 11695else
e6cc62c6
VS
11696 echo "$as_me:$LINENO: result: no" >&5
11697echo "${ECHO_T}no" >&6
10f2d63a
VZ
11698fi
11699
5c6fa7d2 11700
e6cc62c6
VS
11701echo "$as_me:$LINENO: checking if make is GNU make" >&5
11702echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11703if test "${wx_cv_prog_makeisgnu+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11705else
e6cc62c6 11706
414eab6d 11707 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11708 egrep -s GNU > /dev/null); then
414eab6d
VZ
11709 wx_cv_prog_makeisgnu="yes"
11710 else
11711 wx_cv_prog_makeisgnu="no"
11712 fi
11713
11714fi
e6cc62c6
VS
11715echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11716echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11717
11718if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11719 IF_GNU_MAKE=""
11720else
11721 IF_GNU_MAKE="#"
11722fi
11723
8284b0c5
MB
11724
11725
414eab6d 11726if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11727echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11728echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11729if test "${wx_cv_prog_makevpath+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11731else
e6cc62c6 11732
10f2d63a
VZ
11733cat - << EOF > confMake
11734check : file
11735 cp \$? \$@
11736 cp \$? final_file
11737EOF
11738
11739if test ! -d sub ; then
11740 mkdir sub
11741fi
11742echo dummy > sub/file
f6bcfd97 11743${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11744RESULT=$?
11745rm -f sub/file check final_file confMake
11746rmdir sub
11747if test "$RESULT" = 0; then
04e7a216 11748 wx_cv_prog_makevpath="yes"
10f2d63a 11749else
04e7a216
VZ
11750 wx_cv_prog_makevpath="no"
11751fi
11752
11753fi
e6cc62c6
VS
11754echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11755echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11756
11757if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11758{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11759You need a make-utility that is able to use the variable
11760VPATH correctly.
11761If your version of make does not support VPATH correctly,
11762please install GNU-make (possibly as gmake), and start
11763configure with the following command:
11764export MAKE=gmake; ./configure for sh-type shells
11765setenv MAKE gmake; ./configure for csh-type shells
11766Also please do remember to use gmake in this case every time
11767you are trying to compile.
e6cc62c6
VS
11768" >&5
11769echo "$as_me: error:
11770You need a make-utility that is able to use the variable
11771VPATH correctly.
11772If your version of make does not support VPATH correctly,
11773please install GNU-make (possibly as gmake), and start
11774configure with the following command:
11775export MAKE=gmake; ./configure for sh-type shells
11776setenv MAKE gmake; ./configure for csh-type shells
11777Also please do remember to use gmake in this case every time
11778you are trying to compile.
11779" >&2;}
11780 { (exit 1); exit 1; }; }
11781fi fi
e6cc62c6
VS
11782echo "$as_me:$LINENO: checking whether ln -s works" >&5
11783echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11784LN_S=$as_ln_s
11785if test "$LN_S" = "ln -s"; then
11786 echo "$as_me:$LINENO: result: yes" >&5
11787echo "${ECHO_T}yes" >&6
10f2d63a 11788else
e6cc62c6
VS
11789 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11790echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11791fi
5c6fa7d2 11792
247f5006 11793
2b5f62a0
VZ
11794case "${host}" in
11795 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11796 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11797 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11798echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11799if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11801else
e6cc62c6 11802 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11803LIBS="-lcExt $LIBS"
e6cc62c6 11804cat >conftest.$ac_ext <<_ACEOF
09d3439c 11805#line $LINENO "configure"
e6cc62c6
VS
11806/* confdefs.h. */
11807_ACEOF
11808cat confdefs.h >>conftest.$ac_ext
11809cat >>conftest.$ac_ext <<_ACEOF
11810/* end confdefs.h. */
11811
2b5f62a0 11812/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11813#ifdef __cplusplus
11814extern "C"
11815#endif
2b5f62a0 11816/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11817 builtin and then its argument prototype would still apply. */
11818char drand48 ();
11819int
11820main ()
11821{
11822drand48 ();
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext conftest$ac_exeext
11828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 11829 (eval $ac_link) 2>&5
e6cc62c6
VS
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
09d3439c 11833 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_cv_lib_cExt_drand48=yes
11840else
11841 echo "$as_me: failed program was:" >&5
11842sed 's/^/| /' conftest.$ac_ext >&5
11843
11844ac_cv_lib_cExt_drand48=no
11845fi
09d3439c 11846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11847LIBS=$ac_check_lib_save_LIBS
11848fi
11849echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11850echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11851if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11852 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11853fi
11854
11855 else
11856 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11857 fi
73d617c9
MB
11858 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11859echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11860if test "${wx_cv_gcc3+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863
11864 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11865#line $LINENO "configure"
73d617c9
MB
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
3527f29c 11871
73d617c9
MB
11872int
11873main ()
11874{
11875
11876 #if (__GNUC__ < 3)
11877 #error old gcc
11878 #endif
11879
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext
11885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 11886 (eval $ac_compile) 2>&5
73d617c9
MB
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
09d3439c 11890 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896
11897 wx_cv_gcc3=yes
11898
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903
11904 wx_cv_gcc3=no
11905
11906
11907fi
09d3439c 11908rm -f conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
11909
11910fi
11911echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
11912echo "${ECHO_T}$wx_cv_gcc3" >&6
11913 if test "$wx_cv_gcc3" = "no"; then
11914 LIBS="$LIBS -lstdcpp"
11915 else
11916 LIBS="$LIBS -lstdcxx"
11917 fi
2b5f62a0
VZ
11918 ;;
11919esac
11920
a0b9e27f 11921
01aa5863
VS
11922if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11923 echo "$as_me:$LINENO: checking for strings.h" >&5
11924echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11925if test "${ac_cv_header_strings_h+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927else
11928 ac_cv_header_strings_h=no
11929fi
11930echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11931echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11932 if test "$ac_cv_header_strings_h" = "no"; then
11933 echo "$as_me:$LINENO: result: forced no into cache" >&5
11934echo "${ECHO_T}forced no into cache" >&6
11935 else
11936 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11937echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11938 fi
11939fi
11940echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11941echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11942if test "${ac_cv_header_stdc+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11946#line $LINENO "configure"
e6cc62c6
VS
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952#include <stdlib.h>
11953#include <stdarg.h>
11954#include <string.h>
11955#include <float.h>
247f5006 11956
e6cc62c6
VS
11957int
11958main ()
11959{
90dd450c 11960
e6cc62c6
VS
11961 ;
11962 return 0;
11963}
11964_ACEOF
11965rm -f conftest.$ac_objext
11966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 11967 (eval $ac_compile) 2>&5
e6cc62c6
VS
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
09d3439c 11971 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_header_stdc=yes
8284b0c5 11978else
e6cc62c6
VS
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
11982ac_cv_header_stdc=no
21d1c967 11983fi
09d3439c 11984rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11985
e6cc62c6
VS
11986if test $ac_cv_header_stdc = yes; then
11987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11988 cat >conftest.$ac_ext <<_ACEOF
09d3439c 11989#line $LINENO "configure"
e6cc62c6
VS
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
11995#include <string.h>
11996
11997_ACEOF
11998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999 $EGREP "memchr" >/dev/null 2>&1; then
12000 :
12001else
12002 ac_cv_header_stdc=no
3a922bb4 12003fi
a0b9e27f 12004rm -f conftest*
e6cc62c6 12005
90dd450c 12006fi
e6cc62c6
VS
12007
12008if test $ac_cv_header_stdc = yes; then
12009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12010 cat >conftest.$ac_ext <<_ACEOF
09d3439c 12011#line $LINENO "configure"
e6cc62c6
VS
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017#include <stdlib.h>
12018
12019_ACEOF
12020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12021 $EGREP "free" >/dev/null 2>&1; then
12022 :
a0b9e27f 12023else
e6cc62c6 12024 ac_cv_header_stdc=no
21d1c967 12025fi
e6cc62c6 12026rm -f conftest*
247f5006
VZ
12027
12028fi
e6cc62c6
VS
12029
12030if test $ac_cv_header_stdc = yes; then
12031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12032 if test "$cross_compiling" = yes; then
12033 :
12034else
12035 cat >conftest.$ac_ext <<_ACEOF
09d3439c 12036#line $LINENO "configure"
e6cc62c6
VS
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042#include <ctype.h>
12043#if ((' ' & 0x0FF) == 0x020)
12044# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12045# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12046#else
12047# define ISLOWER(c) \
09d3439c
VZ
12048 (('a' <= (c) && (c) <= 'i') \
12049 || ('j' <= (c) && (c) <= 'r') \
12050 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12051# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12052#endif
12053
12054#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12055int
12056main ()
12057{
12058 int i;
12059 for (i = 0; i < 256; i++)
12060 if (XOR (islower (i), ISLOWER (i))
09d3439c 12061 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12062 exit(2);
12063 exit (0);
12064}
12065_ACEOF
12066rm -f conftest$ac_exeext
12067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 :
a0b9e27f 12078else
e6cc62c6
VS
12079 echo "$as_me: program exited with status $ac_status" >&5
12080echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083( exit $ac_status )
12084ac_cv_header_stdc=no
12085fi
09d3439c 12086rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12087fi
12088fi
12089fi
12090echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12091echo "${ECHO_T}$ac_cv_header_stdc" >&6
12092if test $ac_cv_header_stdc = yes; then
12093
12094cat >>confdefs.h <<\_ACEOF
12095#define STDC_HEADERS 1
12096_ACEOF
12097
a0b9e27f 12098fi
e6cc62c6
VS
12099
12100# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
09d3439c 12111 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12112do
12113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12114echo "$as_me:$LINENO: checking for $ac_header" >&5
12115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12116if eval "test \"\${$as_ac_Header+set}\" = set"; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119 cat >conftest.$ac_ext <<_ACEOF
09d3439c 12120#line $LINENO "configure"
e6cc62c6
VS
12121/* confdefs.h. */
12122_ACEOF
12123cat confdefs.h >>conftest.$ac_ext
12124cat >>conftest.$ac_ext <<_ACEOF
12125/* end confdefs.h. */
12126$ac_includes_default
12127
12128#include <$ac_header>
12129_ACEOF
12130rm -f conftest.$ac_objext
12131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 12132 (eval $ac_compile) 2>&5
e6cc62c6
VS
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
09d3439c 12136 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 eval "$as_ac_Header=yes"
12143else
12144 echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
12147eval "$as_ac_Header=no"
12148fi
09d3439c 12149rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12150fi
12151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12153if test `eval echo '${'$as_ac_Header'}'` = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12156_ACEOF
12157
12158fi
12159
a0b9e27f 12160done
90dd450c 12161
e6cc62c6
VS
12162
12163
12164for ac_header in strings.h
21d1c967 12165do
e6cc62c6
VS
12166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12167if eval "test \"\${$as_ac_Header+set}\" = set"; then
12168 echo "$as_me:$LINENO: checking for $ac_header" >&5
12169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12170if eval "test \"\${$as_ac_Header+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172fi
12173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12175else
12176 # Is the header compilable?
12177echo "$as_me:$LINENO: checking $ac_header usability" >&5
12178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12179cat >conftest.$ac_ext <<_ACEOF
09d3439c 12180#line $LINENO "configure"
e6cc62c6
VS
12181/* confdefs.h. */
12182_ACEOF
12183cat confdefs.h >>conftest.$ac_ext
12184cat >>conftest.$ac_ext <<_ACEOF
12185/* end confdefs.h. */
12186$ac_includes_default
12187#include <$ac_header>
12188_ACEOF
12189rm -f conftest.$ac_objext
12190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 12191 (eval $ac_compile) 2>&5
e6cc62c6
VS
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
09d3439c 12195 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_header_compiler=yes
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206ac_header_compiler=no
12207fi
09d3439c 12208rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12210echo "${ECHO_T}$ac_header_compiler" >&6
12211
12212# Is the header present?
12213echo "$as_me:$LINENO: checking $ac_header presence" >&5
12214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12215cat >conftest.$ac_ext <<_ACEOF
09d3439c 12216#line $LINENO "configure"
e6cc62c6
VS
12217/* confdefs.h. */
12218_ACEOF
12219cat confdefs.h >>conftest.$ac_ext
12220cat >>conftest.$ac_ext <<_ACEOF
12221/* end confdefs.h. */
12222#include <$ac_header>
12223_ACEOF
12224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } >/dev/null; then
12232 if test -s conftest.err; then
12233 ac_cpp_err=$ac_c_preproc_warn_flag
12234 else
12235 ac_cpp_err=
12236 fi
12237else
12238 ac_cpp_err=yes
12239fi
12240if test -z "$ac_cpp_err"; then
12241 ac_header_preproc=yes
12242else
12243 echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_header_preproc=no
12247fi
12248rm -f conftest.err conftest.$ac_ext
12249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12250echo "${ECHO_T}$ac_header_preproc" >&6
12251
12252# So? What about this header?
09d3439c
VZ
12253case $ac_header_compiler:$ac_header_preproc in
12254 yes:no )
e6cc62c6
VS
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12259 (
12260 cat <<\_ASBOX
12261## ------------------------------------ ##
12262## Report this to bug-autoconf@gnu.org. ##
12263## ------------------------------------ ##
12264_ASBOX
12265 ) |
12266 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12267 ;;
09d3439c 12268 no:yes )
e6cc62c6
VS
12269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12270echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12272echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12275 (
12276 cat <<\_ASBOX
09d3439c
VZ
12277## ------------------------------------ ##
12278## Report this to bug-autoconf@gnu.org. ##
12279## ------------------------------------ ##
e6cc62c6
VS
12280_ASBOX
12281 ) |
12282 sed "s/^/$as_me: WARNING: /" >&2
12283 ;;
12284esac
12285echo "$as_me:$LINENO: checking for $ac_header" >&5
12286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12287if eval "test \"\${$as_ac_Header+set}\" = set"; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289else
09d3439c 12290 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12291fi
e6cc62c6
VS
12292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12294
a0b9e27f 12295fi
e6cc62c6
VS
12296if test `eval echo '${'$as_ac_Header'}'` = yes; then
12297 cat >>confdefs.h <<_ACEOF
12298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12299_ACEOF
12300
12301fi
12302
12303done
12304
e6cc62c6
VS
12305
12306
12307for ac_header in stdlib.h
12308do
12309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12310if eval "test \"\${$as_ac_Header+set}\" = set"; then
12311 echo "$as_me:$LINENO: checking for $ac_header" >&5
12312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12313if eval "test \"\${$as_ac_Header+set}\" = set"; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315fi
12316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12318else
12319 # Is the header compilable?
12320echo "$as_me:$LINENO: checking $ac_header usability" >&5
12321echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12322cat >conftest.$ac_ext <<_ACEOF
09d3439c 12323#line $LINENO "configure"
e6cc62c6
VS
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329$ac_includes_default
12330#include <$ac_header>
12331_ACEOF
12332rm -f conftest.$ac_objext
12333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 12334 (eval $ac_compile) 2>&5
e6cc62c6
VS
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
09d3439c 12338 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_header_compiler=yes
12345else
12346 echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349ac_header_compiler=no
12350fi
09d3439c 12351rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12353echo "${ECHO_T}$ac_header_compiler" >&6
12354
12355# Is the header present?
12356echo "$as_me:$LINENO: checking $ac_header presence" >&5
12357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12358cat >conftest.$ac_ext <<_ACEOF
09d3439c 12359#line $LINENO "configure"
e6cc62c6
VS
12360/* confdefs.h. */
12361_ACEOF
12362cat confdefs.h >>conftest.$ac_ext
12363cat >>conftest.$ac_ext <<_ACEOF
12364/* end confdefs.h. */
12365#include <$ac_header>
12366_ACEOF
12367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } >/dev/null; then
12375 if test -s conftest.err; then
12376 ac_cpp_err=$ac_c_preproc_warn_flag
12377 else
12378 ac_cpp_err=
12379 fi
12380else
12381 ac_cpp_err=yes
12382fi
12383if test -z "$ac_cpp_err"; then
12384 ac_header_preproc=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 ac_header_preproc=no
12390fi
12391rm -f conftest.err conftest.$ac_ext
12392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12393echo "${ECHO_T}$ac_header_preproc" >&6
12394
12395# So? What about this header?
09d3439c
VZ
12396case $ac_header_compiler:$ac_header_preproc in
12397 yes:no )
e6cc62c6
VS
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12402 (
12403 cat <<\_ASBOX
12404## ------------------------------------ ##
12405## Report this to bug-autoconf@gnu.org. ##
12406## ------------------------------------ ##
12407_ASBOX
12408 ) |
12409 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12410 ;;
09d3439c 12411 no:yes )
e6cc62c6
VS
12412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
12414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12418 (
12419 cat <<\_ASBOX
09d3439c
VZ
12420## ------------------------------------ ##
12421## Report this to bug-autoconf@gnu.org. ##
12422## ------------------------------------ ##
e6cc62c6
VS
12423_ASBOX
12424 ) |
12425 sed "s/^/$as_me: WARNING: /" >&2
12426 ;;
12427esac
12428echo "$as_me:$LINENO: checking for $ac_header" >&5
12429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12430if eval "test \"\${$as_ac_Header+set}\" = set"; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12432else
09d3439c 12433 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12434fi
12435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12437
21d1c967 12438fi
e6cc62c6
VS
12439if test `eval echo '${'$as_ac_Header'}'` = yes; then
12440 cat >>confdefs.h <<_ACEOF
12441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12442_ACEOF
12443
12444fi
12445
21d1c967 12446done
4f14bcd8 12447
5c6fa7d2 12448
e6cc62c6 12449for ac_header in malloc.h
21d1c967 12450do
e6cc62c6
VS
12451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12452if eval "test \"\${$as_ac_Header+set}\" = set"; then
12453 echo "$as_me:$LINENO: checking for $ac_header" >&5
12454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12455if eval "test \"\${$as_ac_Header+set}\" = set"; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457fi
12458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12460else
12461 # Is the header compilable?
12462echo "$as_me:$LINENO: checking $ac_header usability" >&5
12463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12464cat >conftest.$ac_ext <<_ACEOF
09d3439c 12465#line $LINENO "configure"
e6cc62c6
VS
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471$ac_includes_default
12472#include <$ac_header>
12473_ACEOF
12474rm -f conftest.$ac_objext
12475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 12476 (eval $ac_compile) 2>&5
e6cc62c6
VS
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
09d3439c 12480 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_header_compiler=yes
12487else
12488 echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
12490
12491ac_header_compiler=no
12492fi
09d3439c 12493rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12495echo "${ECHO_T}$ac_header_compiler" >&6
12496
12497# Is the header present?
12498echo "$as_me:$LINENO: checking $ac_header presence" >&5
12499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12500cat >conftest.$ac_ext <<_ACEOF
09d3439c 12501#line $LINENO "configure"
e6cc62c6
VS
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507#include <$ac_header>
12508_ACEOF
12509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null; then
12517 if test -s conftest.err; then
12518 ac_cpp_err=$ac_c_preproc_warn_flag
12519 else
12520 ac_cpp_err=
12521 fi
12522else
12523 ac_cpp_err=yes
12524fi
12525if test -z "$ac_cpp_err"; then
12526 ac_header_preproc=yes
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ac_header_preproc=no
12532fi
12533rm -f conftest.err conftest.$ac_ext
12534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12535echo "${ECHO_T}$ac_header_preproc" >&6
12536
12537# So? What about this header?
09d3439c
VZ
12538case $ac_header_compiler:$ac_header_preproc in
12539 yes:no )
e6cc62c6
VS
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12544 (
12545 cat <<\_ASBOX
12546## ------------------------------------ ##
12547## Report this to bug-autoconf@gnu.org. ##
12548## ------------------------------------ ##
12549_ASBOX
12550 ) |
12551 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12552 ;;
09d3439c 12553 no:yes )
e6cc62c6
VS
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12560 (
12561 cat <<\_ASBOX
09d3439c
VZ
12562## ------------------------------------ ##
12563## Report this to bug-autoconf@gnu.org. ##
12564## ------------------------------------ ##
e6cc62c6
VS
12565_ASBOX
12566 ) |
12567 sed "s/^/$as_me: WARNING: /" >&2
12568 ;;
12569esac
12570echo "$as_me:$LINENO: checking for $ac_header" >&5
12571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12572if eval "test \"\${$as_ac_Header+set}\" = set"; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
09d3439c 12575 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12576fi
e6cc62c6
VS
12577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12579
21d1c967 12580fi
e6cc62c6
VS
12581if test `eval echo '${'$as_ac_Header'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12584_ACEOF
12585
12586fi
12587
12588done
12589
12590
12591for ac_header in unistd.h
12592do
12593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12594if eval "test \"\${$as_ac_Header+set}\" = set"; then
12595 echo "$as_me:$LINENO: checking for $ac_header" >&5
12596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12597if eval "test \"\${$as_ac_Header+set}\" = set"; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599fi
12600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12602else
12603 # Is the header compilable?
12604echo "$as_me:$LINENO: checking $ac_header usability" >&5
12605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12606cat >conftest.$ac_ext <<_ACEOF
09d3439c 12607#line $LINENO "configure"
e6cc62c6
VS
12608/* confdefs.h. */
12609_ACEOF
12610cat confdefs.h >>conftest.$ac_ext
12611cat >>conftest.$ac_ext <<_ACEOF
12612/* end confdefs.h. */
12613$ac_includes_default
12614#include <$ac_header>
12615_ACEOF
12616rm -f conftest.$ac_objext
12617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 12618 (eval $ac_compile) 2>&5
e6cc62c6
VS
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
09d3439c 12622 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_header_compiler=yes
12629else
12630 echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633ac_header_compiler=no
12634fi
09d3439c 12635rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12637echo "${ECHO_T}$ac_header_compiler" >&6
12638
12639# Is the header present?
12640echo "$as_me:$LINENO: checking $ac_header presence" >&5
12641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12642cat >conftest.$ac_ext <<_ACEOF
09d3439c 12643#line $LINENO "configure"
e6cc62c6
VS
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649#include <$ac_header>
12650_ACEOF
12651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev/null; then
12659 if test -s conftest.err; then
12660 ac_cpp_err=$ac_c_preproc_warn_flag
12661 else
12662 ac_cpp_err=
12663 fi
a0b9e27f 12664else
e6cc62c6
VS
12665 ac_cpp_err=yes
12666fi
12667if test -z "$ac_cpp_err"; then
12668 ac_header_preproc=yes
12669else
12670 echo "$as_me: failed program was:" >&5
12671sed 's/^/| /' conftest.$ac_ext >&5
12672
12673 ac_header_preproc=no
12674fi
12675rm -f conftest.err conftest.$ac_ext
12676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12677echo "${ECHO_T}$ac_header_preproc" >&6
12678
12679# So? What about this header?
09d3439c
VZ
12680case $ac_header_compiler:$ac_header_preproc in
12681 yes:no )
e6cc62c6
VS
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12683echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12686 (
12687 cat <<\_ASBOX
12688## ------------------------------------ ##
12689## Report this to bug-autoconf@gnu.org. ##
12690## ------------------------------------ ##
12691_ASBOX
12692 ) |
12693 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12694 ;;
09d3439c 12695 no:yes )
e6cc62c6
VS
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12702 (
12703 cat <<\_ASBOX
09d3439c
VZ
12704## ------------------------------------ ##
12705## Report this to bug-autoconf@gnu.org. ##
12706## ------------------------------------ ##
e6cc62c6
VS
12707_ASBOX
12708 ) |
12709 sed "s/^/$as_me: WARNING: /" >&2
12710 ;;
12711esac
12712echo "$as_me:$LINENO: checking for $ac_header" >&5
12713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12714if eval "test \"\${$as_ac_Header+set}\" = set"; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716else
09d3439c 12717 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12718fi
12719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12721
12722fi
12723if test `eval echo '${'$as_ac_Header'}'` = yes; then
12724 cat >>confdefs.h <<_ACEOF
12725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12726_ACEOF
12727
d4158b5d 12728fi
e6cc62c6 12729
21d1c967 12730done
f6bcfd97 12731
e6cc62c6
VS
12732
12733for ac_header in wchar.h
12734do
12735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12736if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737 echo "$as_me:$LINENO: checking for $ac_header" >&5
12738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12739if eval "test \"\${$as_ac_Header+set}\" = set"; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741fi
12742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12744else
12745 # Is the header compilable?
12746echo "$as_me:$LINENO: checking $ac_header usability" >&5
12747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12748cat >conftest.$ac_ext <<_ACEOF
09d3439c 12749#line $LINENO "configure"
e6cc62c6
VS
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
12754/* end confdefs.h. */
12755$ac_includes_default
12756#include <$ac_header>
12757_ACEOF
12758rm -f conftest.$ac_objext
12759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 12760 (eval $ac_compile) 2>&5
e6cc62c6
VS
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
09d3439c 12764 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_header_compiler=yes
12771else
12772 echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775ac_header_compiler=no
12776fi
09d3439c 12777rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12779echo "${ECHO_T}$ac_header_compiler" >&6
12780
12781# Is the header present?
12782echo "$as_me:$LINENO: checking $ac_header presence" >&5
12783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12784cat >conftest.$ac_ext <<_ACEOF
09d3439c 12785#line $LINENO "configure"
e6cc62c6
VS
12786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
12791#include <$ac_header>
12792_ACEOF
12793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } >/dev/null; then
12801 if test -s conftest.err; then
12802 ac_cpp_err=$ac_c_preproc_warn_flag
12803 else
12804 ac_cpp_err=
12805 fi
12806else
12807 ac_cpp_err=yes
12808fi
12809if test -z "$ac_cpp_err"; then
12810 ac_header_preproc=yes
12811else
12812 echo "$as_me: failed program was:" >&5
12813sed 's/^/| /' conftest.$ac_ext >&5
12814
12815 ac_header_preproc=no
12816fi
12817rm -f conftest.err conftest.$ac_ext
12818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12819echo "${ECHO_T}$ac_header_preproc" >&6
12820
12821# So? What about this header?
09d3439c
VZ
12822case $ac_header_compiler:$ac_header_preproc in
12823 yes:no )
e6cc62c6
VS
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12828 (
12829 cat <<\_ASBOX
12830## ------------------------------------ ##
12831## Report this to bug-autoconf@gnu.org. ##
12832## ------------------------------------ ##
12833_ASBOX
12834 ) |
12835 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12836 ;;
09d3439c 12837 no:yes )
e6cc62c6
VS
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12841echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12844 (
12845 cat <<\_ASBOX
09d3439c
VZ
12846## ------------------------------------ ##
12847## Report this to bug-autoconf@gnu.org. ##
12848## ------------------------------------ ##
e6cc62c6
VS
12849_ASBOX
12850 ) |
12851 sed "s/^/$as_me: WARNING: /" >&2
12852 ;;
12853esac
12854echo "$as_me:$LINENO: checking for $ac_header" >&5
12855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12856if eval "test \"\${$as_ac_Header+set}\" = set"; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
09d3439c 12859 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12860fi
12861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12862echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12863
90dd450c 12864fi
e6cc62c6
VS
12865if test `eval echo '${'$as_ac_Header'}'` = yes; then
12866 cat >>confdefs.h <<_ACEOF
12867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12868_ACEOF
12869
12870fi
12871
12872done
90dd450c 12873
e6cc62c6
VS
12874
12875if test "$ac_cv_header_wchar_h" != "yes"; then
12876
12877for ac_header in wcstr.h
21d1c967 12878do
e6cc62c6
VS
12879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12880if eval "test \"\${$as_ac_Header+set}\" = set"; then
12881 echo "$as_me:$LINENO: checking for $ac_header" >&5
12882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12883if eval "test \"\${$as_ac_Header+set}\" = set"; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885fi
12886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12888else
12889 # Is the header compilable?
12890echo "$as_me:$LINENO: checking $ac_header usability" >&5
12891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12892cat >conftest.$ac_ext <<_ACEOF
09d3439c 12893#line $LINENO "configure"
e6cc62c6
VS
12894/* confdefs.h. */
12895_ACEOF
12896cat confdefs.h >>conftest.$ac_ext
12897cat >>conftest.$ac_ext <<_ACEOF
12898/* end confdefs.h. */
12899$ac_includes_default
12900#include <$ac_header>
12901_ACEOF
12902rm -f conftest.$ac_objext
12903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 12904 (eval $ac_compile) 2>&5
e6cc62c6
VS
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
09d3439c 12908 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_header_compiler=yes
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919ac_header_compiler=no
12920fi
09d3439c 12921rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12923echo "${ECHO_T}$ac_header_compiler" >&6
12924
12925# Is the header present?
12926echo "$as_me:$LINENO: checking $ac_header presence" >&5
12927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12928cat >conftest.$ac_ext <<_ACEOF
09d3439c 12929#line $LINENO "configure"
e6cc62c6
VS
12930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
12935#include <$ac_header>
12936_ACEOF
12937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } >/dev/null; then
12945 if test -s conftest.err; then
12946 ac_cpp_err=$ac_c_preproc_warn_flag
12947 else
12948 ac_cpp_err=
12949 fi
12950else
12951 ac_cpp_err=yes
12952fi
12953if test -z "$ac_cpp_err"; then
12954 ac_header_preproc=yes
12955else
12956 echo "$as_me: failed program was:" >&5
12957sed 's/^/| /' conftest.$ac_ext >&5
12958
12959 ac_header_preproc=no
12960fi
12961rm -f conftest.err conftest.$ac_ext
12962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12963echo "${ECHO_T}$ac_header_preproc" >&6
12964
12965# So? What about this header?
09d3439c
VZ
12966case $ac_header_compiler:$ac_header_preproc in
12967 yes:no )
e6cc62c6
VS
12968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12972 (
12973 cat <<\_ASBOX
12974## ------------------------------------ ##
12975## Report this to bug-autoconf@gnu.org. ##
12976## ------------------------------------ ##
12977_ASBOX
12978 ) |
12979 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12980 ;;
09d3439c 12981 no:yes )
e6cc62c6
VS
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12988 (
12989 cat <<\_ASBOX
09d3439c
VZ
12990## ------------------------------------ ##
12991## Report this to bug-autoconf@gnu.org. ##
12992## ------------------------------------ ##
e6cc62c6
VS
12993_ASBOX
12994 ) |
12995 sed "s/^/$as_me: WARNING: /" >&2
12996 ;;
12997esac
12998echo "$as_me:$LINENO: checking for $ac_header" >&5
12999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13000if eval "test \"\${$as_ac_Header+set}\" = set"; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
09d3439c 13003 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13004fi
e6cc62c6
VS
13005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13007
4f14bcd8 13008fi
e6cc62c6
VS
13009if test `eval echo '${'$as_ac_Header'}'` = yes; then
13010 cat >>confdefs.h <<_ACEOF
13011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13012_ACEOF
13013
13014fi
13015
13016done
13017
13018fi
13019
13020
13021for ac_header in fnmatch.h
13022do
13023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13024if eval "test \"\${$as_ac_Header+set}\" = set"; then
13025 echo "$as_me:$LINENO: checking for $ac_header" >&5
13026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13027if eval "test \"\${$as_ac_Header+set}\" = set"; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029fi
13030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13032else
13033 # Is the header compilable?
13034echo "$as_me:$LINENO: checking $ac_header usability" >&5
13035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13036cat >conftest.$ac_ext <<_ACEOF
09d3439c 13037#line $LINENO "configure"
e6cc62c6
VS
13038/* confdefs.h. */
13039_ACEOF
13040cat confdefs.h >>conftest.$ac_ext
13041cat >>conftest.$ac_ext <<_ACEOF
13042/* end confdefs.h. */
13043$ac_includes_default
13044#include <$ac_header>
13045_ACEOF
13046rm -f conftest.$ac_objext
13047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13048 (eval $ac_compile) 2>&5
e6cc62c6
VS
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
09d3439c 13052 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_header_compiler=yes
13059else
13060 echo "$as_me: failed program was:" >&5
13061sed 's/^/| /' conftest.$ac_ext >&5
13062
13063ac_header_compiler=no
13064fi
09d3439c 13065rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067echo "${ECHO_T}$ac_header_compiler" >&6
13068
13069# Is the header present?
13070echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13072cat >conftest.$ac_ext <<_ACEOF
09d3439c 13073#line $LINENO "configure"
e6cc62c6
VS
13074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
13078/* end confdefs.h. */
13079#include <$ac_header>
13080_ACEOF
13081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev/null; then
13089 if test -s conftest.err; then
13090 ac_cpp_err=$ac_c_preproc_warn_flag
13091 else
13092 ac_cpp_err=
13093 fi
13094else
13095 ac_cpp_err=yes
13096fi
13097if test -z "$ac_cpp_err"; then
13098 ac_header_preproc=yes
13099else
13100 echo "$as_me: failed program was:" >&5
13101sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 ac_header_preproc=no
13104fi
13105rm -f conftest.err conftest.$ac_ext
13106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13107echo "${ECHO_T}$ac_header_preproc" >&6
13108
13109# So? What about this header?
09d3439c
VZ
13110case $ac_header_compiler:$ac_header_preproc in
13111 yes:no )
e6cc62c6
VS
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13116 (
13117 cat <<\_ASBOX
13118## ------------------------------------ ##
13119## Report this to bug-autoconf@gnu.org. ##
13120## ------------------------------------ ##
13121_ASBOX
13122 ) |
13123 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13124 ;;
09d3439c 13125 no:yes )
e6cc62c6
VS
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13132 (
13133 cat <<\_ASBOX
09d3439c
VZ
13134## ------------------------------------ ##
13135## Report this to bug-autoconf@gnu.org. ##
13136## ------------------------------------ ##
e6cc62c6
VS
13137_ASBOX
13138 ) |
13139 sed "s/^/$as_me: WARNING: /" >&2
13140 ;;
13141esac
13142echo "$as_me:$LINENO: checking for $ac_header" >&5
13143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13146else
09d3439c 13147 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
13148fi
13149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13151
21d1c967 13152fi
e6cc62c6
VS
13153if test `eval echo '${'$as_ac_Header'}'` = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13156_ACEOF
13157
13158fi
13159
21d1c967 13160done
90dd450c 13161
5c6fa7d2 13162
a0b9e27f 13163if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13164
13165for ac_func in fnmatch
21d1c967 13166do
e6cc62c6
VS
13167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13168echo "$as_me:$LINENO: checking for $ac_func" >&5
13169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13170if eval "test \"\${$as_ac_var+set}\" = set"; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172else
13173 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13174#line $LINENO "configure"
e6cc62c6
VS
13175/* confdefs.h. */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h. */
a0b9e27f 13180/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13181 which can conflict with char $ac_func (); below.
13182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13183 <limits.h> exists even on freestanding compilers. */
13184#ifdef __STDC__
13185# include <limits.h>
13186#else
13187# include <assert.h>
13188#endif
a0b9e27f 13189/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13190#ifdef __cplusplus
13191extern "C"
13192{
13193#endif
a0b9e27f 13194/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13195 builtin and then its argument prototype would still apply. */
13196char $ac_func ();
a0b9e27f
MB
13197/* The GNU C library defines this for functions which it implements
13198 to always fail with ENOSYS. Some functions are actually named
13199 something starting with __ and the normal name is an alias. */
13200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13201choke me
13202#else
e6cc62c6
VS
13203char (*f) () = $ac_func;
13204#endif
13205#ifdef __cplusplus
13206}
a0b9e27f
MB
13207#endif
13208
e6cc62c6
VS
13209int
13210main ()
13211{
13212return f != $ac_func;
13213 ;
13214 return 0;
13215}
13216_ACEOF
13217rm -f conftest.$ac_objext conftest$ac_exeext
13218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 13219 (eval $ac_link) 2>&5
e6cc62c6
VS
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
09d3439c 13223 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 eval "$as_ac_var=yes"
13230else
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
13234eval "$as_ac_var=no"
13235fi
09d3439c 13236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13237fi
13238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13240if test `eval echo '${'$as_ac_var'}'` = yes; then
13241 cat >>confdefs.h <<_ACEOF
13242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13243_ACEOF
32832908 13244
21d1c967
GD
13245fi
13246done
90dd450c 13247
a0b9e27f 13248fi
90dd450c 13249
e6cc62c6
VS
13250
13251for ac_header in langinfo.h
21d1c967 13252do
e6cc62c6
VS
13253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13254if eval "test \"\${$as_ac_Header+set}\" = set"; then
13255 echo "$as_me:$LINENO: checking for $ac_header" >&5
13256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13257if eval "test \"\${$as_ac_Header+set}\" = set"; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259fi
13260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13262else
13263 # Is the header compilable?
13264echo "$as_me:$LINENO: checking $ac_header usability" >&5
13265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13266cat >conftest.$ac_ext <<_ACEOF
09d3439c 13267#line $LINENO "configure"
e6cc62c6
VS
13268/* confdefs.h. */
13269_ACEOF
13270cat confdefs.h >>conftest.$ac_ext
13271cat >>conftest.$ac_ext <<_ACEOF
13272/* end confdefs.h. */
13273$ac_includes_default
13274#include <$ac_header>
13275_ACEOF
13276rm -f conftest.$ac_objext
13277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13278 (eval $ac_compile) 2>&5
e6cc62c6
VS
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
09d3439c 13282 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_header_compiler=yes
13289else
13290 echo "$as_me: failed program was:" >&5
13291sed 's/^/| /' conftest.$ac_ext >&5
13292
13293ac_header_compiler=no
13294fi
09d3439c 13295rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13297echo "${ECHO_T}$ac_header_compiler" >&6
13298
13299# Is the header present?
13300echo "$as_me:$LINENO: checking $ac_header presence" >&5
13301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13302cat >conftest.$ac_ext <<_ACEOF
09d3439c 13303#line $LINENO "configure"
e6cc62c6
VS
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h. */
13309#include <$ac_header>
13310_ACEOF
13311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } >/dev/null; then
13319 if test -s conftest.err; then
13320 ac_cpp_err=$ac_c_preproc_warn_flag
13321 else
13322 ac_cpp_err=
13323 fi
13324else
13325 ac_cpp_err=yes
13326fi
13327if test -z "$ac_cpp_err"; then
13328 ac_header_preproc=yes
13329else
13330 echo "$as_me: failed program was:" >&5
13331sed 's/^/| /' conftest.$ac_ext >&5
13332
13333 ac_header_preproc=no
13334fi
13335rm -f conftest.err conftest.$ac_ext
13336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13337echo "${ECHO_T}$ac_header_preproc" >&6
13338
13339# So? What about this header?
09d3439c
VZ
13340case $ac_header_compiler:$ac_header_preproc in
13341 yes:no )
e6cc62c6
VS
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346 (
13347 cat <<\_ASBOX
13348## ------------------------------------ ##
13349## Report this to bug-autoconf@gnu.org. ##
13350## ------------------------------------ ##
13351_ASBOX
13352 ) |
13353 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13354 ;;
09d3439c 13355 no:yes )
e6cc62c6
VS
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
13358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13362 (
13363 cat <<\_ASBOX
09d3439c
VZ
13364## ------------------------------------ ##
13365## Report this to bug-autoconf@gnu.org. ##
13366## ------------------------------------ ##
e6cc62c6
VS
13367_ASBOX
13368 ) |
13369 sed "s/^/$as_me: WARNING: /" >&2
13370 ;;
13371esac
13372echo "$as_me:$LINENO: checking for $ac_header" >&5
13373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13374if eval "test \"\${$as_ac_Header+set}\" = set"; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
09d3439c 13377 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13378fi
e6cc62c6
VS
13379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13381
4f14bcd8 13382fi
e6cc62c6
VS
13383if test `eval echo '${'$as_ac_Header'}'` = yes; then
13384 cat >>confdefs.h <<_ACEOF
13385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13386_ACEOF
13387
21d1c967 13388fi
e6cc62c6 13389
21d1c967 13390done
3a922bb4 13391
8284b0c5 13392
4f5a7f74
VZ
13393case "${host}" in
13394 *-pc-os2_emx | *-pc-os2-emx )
13395 if test $ac_cv_header_langinfo_h = "yes"; then
13396 LIBS="$LIBS -lintl"
13397 fi
13398 ;;
13399esac
1542ea39 13400
a0b9e27f 13401if test "$wxUSE_GUI" = "yes"; then
73d617c9 13402 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13403
eb69fda5 13404for ac_header in X11/Xlib.h
21d1c967 13405do
e6cc62c6
VS
13406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13407if eval "test \"\${$as_ac_Header+set}\" = set"; then
13408 echo "$as_me:$LINENO: checking for $ac_header" >&5
13409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13410if eval "test \"\${$as_ac_Header+set}\" = set"; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412fi
13413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13415else
13416 # Is the header compilable?
13417echo "$as_me:$LINENO: checking $ac_header usability" >&5
13418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13419cat >conftest.$ac_ext <<_ACEOF
09d3439c 13420#line $LINENO "configure"
e6cc62c6
VS
13421/* confdefs.h. */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h. */
13426$ac_includes_default
13427#include <$ac_header>
13428_ACEOF
13429rm -f conftest.$ac_objext
13430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13431 (eval $ac_compile) 2>&5
e6cc62c6
VS
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
09d3439c 13435 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_header_compiler=yes
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
13446ac_header_compiler=no
13447fi
09d3439c 13448rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13450echo "${ECHO_T}$ac_header_compiler" >&6
13451
13452# Is the header present?
13453echo "$as_me:$LINENO: checking $ac_header presence" >&5
13454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13455cat >conftest.$ac_ext <<_ACEOF
09d3439c 13456#line $LINENO "configure"
e6cc62c6
VS
13457/* confdefs.h. */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
13461/* end confdefs.h. */
13462#include <$ac_header>
13463_ACEOF
13464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } >/dev/null; then
13472 if test -s conftest.err; then
13473 ac_cpp_err=$ac_c_preproc_warn_flag
13474 else
13475 ac_cpp_err=
13476 fi
13477else
13478 ac_cpp_err=yes
13479fi
13480if test -z "$ac_cpp_err"; then
13481 ac_header_preproc=yes
13482else
13483 echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 ac_header_preproc=no
13487fi
13488rm -f conftest.err conftest.$ac_ext
13489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490echo "${ECHO_T}$ac_header_preproc" >&6
13491
13492# So? What about this header?
09d3439c
VZ
13493case $ac_header_compiler:$ac_header_preproc in
13494 yes:no )
e6cc62c6
VS
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13499 (
13500 cat <<\_ASBOX
13501## ------------------------------------ ##
13502## Report this to bug-autoconf@gnu.org. ##
13503## ------------------------------------ ##
13504_ASBOX
13505 ) |
13506 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13507 ;;
09d3439c 13508 no:yes )
e6cc62c6
VS
13509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13512echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13515 (
13516 cat <<\_ASBOX
09d3439c
VZ
13517## ------------------------------------ ##
13518## Report this to bug-autoconf@gnu.org. ##
13519## ------------------------------------ ##
e6cc62c6
VS
13520_ASBOX
13521 ) |
13522 sed "s/^/$as_me: WARNING: /" >&2
13523 ;;
13524esac
13525echo "$as_me:$LINENO: checking for $ac_header" >&5
13526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13527if eval "test \"\${$as_ac_Header+set}\" = set"; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529else
09d3439c 13530 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13531fi
e6cc62c6
VS
13532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13534
90dd450c 13535fi
e6cc62c6
VS
13536if test `eval echo '${'$as_ac_Header'}'` = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13539_ACEOF
13540
247f5006 13541fi
e6cc62c6 13542
eb69fda5
VS
13543done
13544
13545
13546for ac_header in X11/XKBlib.h
13547do
13548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13549echo "$as_me:$LINENO: checking for $ac_header" >&5
13550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13551if eval "test \"\${$as_ac_Header+set}\" = set"; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553else
13554 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13555#line $LINENO "configure"
eb69fda5
VS
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h. */
13561
13562 #if HAVE_X11_XLIB_H
13563 #include <X11/Xlib.h>
13564 #endif
13565
13566
13567#include <$ac_header>
13568_ACEOF
13569rm -f conftest.$ac_objext
13570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13571 (eval $ac_compile) 2>&5
eb69fda5
VS
13572 ac_status=$?
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
09d3439c 13575 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 eval "$as_ac_Header=yes"
13582else
13583 echo "$as_me: failed program was:" >&5
13584sed 's/^/| /' conftest.$ac_ext >&5
13585
13586eval "$as_ac_Header=no"
13587fi
09d3439c 13588rm -f conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13589fi
13590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13592if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h <<_ACEOF
13594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13595_ACEOF
13596
13597fi
13598
247f5006
VZ
13599done
13600
a0b9e27f
MB
13601 fi
13602fi
247f5006 13603
247f5006 13604
e6cc62c6
VS
13605echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13606echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13607if test "${ac_cv_c_const+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609else
13610 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13611#line $LINENO "configure"
e6cc62c6
VS
13612/* confdefs.h. */
13613_ACEOF
13614cat confdefs.h >>conftest.$ac_ext
13615cat >>conftest.$ac_ext <<_ACEOF
13616/* end confdefs.h. */
13617
13618int
13619main ()
13620{
13621/* FIXME: Include the comments suggested by Paul. */
13622#ifndef __cplusplus
13623 /* Ultrix mips cc rejects this. */
13624 typedef int charset[2];
13625 const charset x;
13626 /* SunOS 4.1.1 cc rejects this. */
13627 char const *const *ccp;
13628 char **p;
13629 /* NEC SVR4.0.2 mips cc rejects this. */
13630 struct point {int x, y;};
13631 static struct point const zero = {0,0};
13632 /* AIX XL C 1.02.0.0 rejects this.
13633 It does not let you subtract one const X* pointer from another in
13634 an arm of an if-expression whose if-part is not a constant
13635 expression */
13636 const char *g = "string";
13637 ccp = &g + (g ? g-g : 0);
13638 /* HPUX 7.0 cc rejects these. */
13639 ++ccp;
13640 p = (char**) ccp;
13641 ccp = (char const *const *) p;
13642 { /* SCO 3.2v4 cc rejects this. */
13643 char *t;
13644 char const *s = 0 ? (char *) 0 : (char const *) 0;
13645
13646 *t++ = 0;
13647 }
13648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13649 int x[] = {25, 17};
13650 const int *foo = &x[0];
13651 ++foo;
13652 }
13653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13654 typedef const int *iptr;
13655 iptr p = 0;
13656 ++p;
13657 }
13658 { /* AIX XL C 1.02.0.0 rejects this saying
13659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13660 struct s { int j; const int *ap[3]; };
13661 struct s *b; b->j = 5;
13662 }
13663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13664 const int foo = 10;
13665 }
13666#endif
13667
13668 ;
13669 return 0;
13670}
13671_ACEOF
13672rm -f conftest.$ac_objext
13673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13674 (eval $ac_compile) 2>&5
e6cc62c6
VS
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
09d3439c 13678 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
a0b9e27f 13684 ac_cv_c_const=yes
247f5006 13685else
e6cc62c6
VS
13686 echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
13689ac_cv_c_const=no
247f5006 13690fi
09d3439c 13691rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13692fi
e6cc62c6
VS
13693echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13694echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13695if test $ac_cv_c_const = no; then
e6cc62c6
VS
13696
13697cat >>confdefs.h <<\_ACEOF
13698#define const
13699_ACEOF
10f2d63a 13700
90dd450c 13701fi
81809c07 13702
e6cc62c6
VS
13703echo "$as_me:$LINENO: checking for inline" >&5
13704echo $ECHO_N "checking for inline... $ECHO_C" >&6
13705if test "${ac_cv_c_inline+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13707else
a0b9e27f
MB
13708 ac_cv_c_inline=no
13709for ac_kw in inline __inline__ __inline; do
e6cc62c6 13710 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13711#line $LINENO "configure"
e6cc62c6
VS
13712/* confdefs.h. */
13713_ACEOF
13714cat confdefs.h >>conftest.$ac_ext
13715cat >>conftest.$ac_ext <<_ACEOF
13716/* end confdefs.h. */
13717#ifndef __cplusplus
13718typedef int foo_t;
13719static $ac_kw foo_t static_foo () {return 0; }
13720$ac_kw foo_t foo () {return 0; }
13721#endif
a0b9e27f 13722
e6cc62c6
VS
13723_ACEOF
13724rm -f conftest.$ac_objext
13725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13726 (eval $ac_compile) 2>&5
e6cc62c6
VS
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
09d3439c 13730 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
a0b9e27f 13736 ac_cv_c_inline=$ac_kw; break
247f5006 13737else
e6cc62c6
VS
13738 echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
247f5006 13741fi
09d3439c 13742rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13743done
247f5006
VZ
13744
13745fi
e6cc62c6
VS
13746echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13747echo "${ECHO_T}$ac_cv_c_inline" >&6
13748case $ac_cv_c_inline in
a0b9e27f 13749 inline | yes) ;;
09d3439c
VZ
13750 no)
13751cat >>confdefs.h <<\_ACEOF
13752#define inline
e6cc62c6 13753_ACEOF
09d3439c
VZ
13754 ;;
13755 *) cat >>confdefs.h <<_ACEOF
13756#define inline $ac_cv_c_inline
13757_ACEOF
13758 ;;
a0b9e27f 13759esac
247f5006 13760
247f5006 13761
e6cc62c6
VS
13762echo "$as_me:$LINENO: checking for char" >&5
13763echo $ECHO_N "checking for char... $ECHO_C" >&6
13764if test "${ac_cv_type_char+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766else
13767 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13768#line $LINENO "configure"
e6cc62c6
VS
13769/* confdefs.h. */
13770_ACEOF
13771cat confdefs.h >>conftest.$ac_ext
13772cat >>conftest.$ac_ext <<_ACEOF
13773/* end confdefs.h. */
13774$ac_includes_default
13775int
13776main ()
13777{
13778if ((char *) 0)
13779 return 0;
13780if (sizeof (char))
13781 return 0;
13782 ;
13783 return 0;
13784}
13785_ACEOF
13786rm -f conftest.$ac_objext
13787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13788 (eval $ac_compile) 2>&5
e6cc62c6
VS
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
09d3439c 13792 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_type_char=yes
13799else
13800 echo "$as_me: failed program was:" >&5
13801sed 's/^/| /' conftest.$ac_ext >&5
13802
13803ac_cv_type_char=no
13804fi
09d3439c 13805rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13806fi
13807echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13808echo "${ECHO_T}$ac_cv_type_char" >&6
13809
13810echo "$as_me:$LINENO: checking size of char" >&5
13811echo $ECHO_N "checking size of char... $ECHO_C" >&6
13812if test "${ac_cv_sizeof_char+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814else
13815 if test "$ac_cv_type_char" = yes; then
13816 # The cast to unsigned long works around a bug in the HP C Compiler
13817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13819 # This bug is HP SR number 8606223364.
a0b9e27f 13820 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13821 # Depending upon the size, compute the lo and hi bounds.
13822cat >conftest.$ac_ext <<_ACEOF
09d3439c 13823#line $LINENO "configure"
e6cc62c6
VS
13824/* confdefs.h. */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h. */
13829$ac_includes_default
13830int
13831main ()
13832{
13833static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13834test_array [0] = 0
13835
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext
13841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13842 (eval $ac_compile) 2>&5
e6cc62c6
VS
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
09d3439c 13846 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_lo=0 ac_mid=0
13853 while :; do
13854 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13855#line $LINENO "configure"
e6cc62c6
VS
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861$ac_includes_default
13862int
13863main ()
13864{
13865static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13866test_array [0] = 0
13867
13868 ;
13869 return 0;
13870}
13871_ACEOF
13872rm -f conftest.$ac_objext
13873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13874 (eval $ac_compile) 2>&5
e6cc62c6
VS
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
09d3439c 13878 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_hi=$ac_mid; break
13885else
13886 echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
13890 if test $ac_lo -le $ac_mid; then
13891 ac_lo= ac_hi=
13892 break
13893 fi
13894 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 13895fi
09d3439c 13896rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 13897 done
a0b9e27f 13898else
e6cc62c6
VS
13899 echo "$as_me: failed program was:" >&5
13900sed 's/^/| /' conftest.$ac_ext >&5
13901
13902cat >conftest.$ac_ext <<_ACEOF
09d3439c 13903#line $LINENO "configure"
e6cc62c6
VS
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909$ac_includes_default
13910int
13911main ()
13912{
13913static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13914test_array [0] = 0
13915
13916 ;
13917 return 0;
13918}
13919_ACEOF
13920rm -f conftest.$ac_objext
13921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13922 (eval $ac_compile) 2>&5
e6cc62c6
VS
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
09d3439c 13926 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_hi=-1 ac_mid=-1
13933 while :; do
13934 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13935#line $LINENO "configure"
e6cc62c6
VS
13936/* confdefs.h. */
13937_ACEOF
13938cat confdefs.h >>conftest.$ac_ext
13939cat >>conftest.$ac_ext <<_ACEOF
13940/* end confdefs.h. */
13941$ac_includes_default
13942int
13943main ()
13944{
13945static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13946test_array [0] = 0
13947
13948 ;
13949 return 0;
13950}
13951_ACEOF
13952rm -f conftest.$ac_objext
13953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 13954 (eval $ac_compile) 2>&5
e6cc62c6
VS
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
09d3439c 13958 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_lo=$ac_mid; break
13965else
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
13970 if test $ac_mid -le $ac_hi; then
13971 ac_lo= ac_hi=
13972 break
13973 fi
13974 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 13975fi
09d3439c 13976rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13977 done
13978else
13979 echo "$as_me: failed program was:" >&5
13980sed 's/^/| /' conftest.$ac_ext >&5
13981
13982ac_lo= ac_hi=
13983fi
09d3439c 13984rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 13985fi
09d3439c 13986rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13987# Binary search between lo and hi bounds.
13988while test "x$ac_lo" != "x$ac_hi"; do
13989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13990 cat >conftest.$ac_ext <<_ACEOF
09d3439c 13991#line $LINENO "configure"
e6cc62c6
VS
13992/* confdefs.h. */
13993_ACEOF
13994cat confdefs.h >>conftest.$ac_ext
13995cat >>conftest.$ac_ext <<_ACEOF
13996/* end confdefs.h. */
13997$ac_includes_default
13998int
13999main ()
14000{
14001static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14002test_array [0] = 0
14003
14004 ;
14005 return 0;
14006}
14007_ACEOF
14008rm -f conftest.$ac_objext
14009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14010 (eval $ac_compile) 2>&5
e6cc62c6
VS
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
09d3439c 14014 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_hi=$ac_mid
14021else
14022 echo "$as_me: failed program was:" >&5
14023sed 's/^/| /' conftest.$ac_ext >&5
14024
14025ac_lo=`expr '(' $ac_mid ')' + 1`
14026fi
09d3439c 14027rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14028done
14029case $ac_lo in
14030?*) ac_cv_sizeof_char=$ac_lo;;
14031'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14032See \`config.log' for more details." >&5
14033echo "$as_me: error: cannot compute sizeof (char), 77
14034See \`config.log' for more details." >&2;}
14035 { (exit 1); exit 1; }; } ;;
14036esac
14037else
14038 if test "$cross_compiling" = yes; then
14039 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14040See \`config.log' for more details." >&5
14041echo "$as_me: error: cannot run test program while cross compiling
14042See \`config.log' for more details." >&2;}
14043 { (exit 1); exit 1; }; }
14044else
14045 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14046#line $LINENO "configure"
e6cc62c6
VS
14047/* confdefs.h. */
14048_ACEOF
14049cat confdefs.h >>conftest.$ac_ext
14050cat >>conftest.$ac_ext <<_ACEOF
14051/* end confdefs.h. */
14052$ac_includes_default
14053long longval () { return (long) (sizeof (char)); }
14054unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14055#include <stdio.h>
e6cc62c6
VS
14056#include <stdlib.h>
14057int
14058main ()
247f5006 14059{
e6cc62c6
VS
14060
14061 FILE *f = fopen ("conftest.val", "w");
14062 if (! f)
14063 exit (1);
14064 if (((long) (sizeof (char))) < 0)
14065 {
14066 long i = longval ();
14067 if (i != ((long) (sizeof (char))))
14068 exit (1);
14069 fprintf (f, "%ld\n", i);
14070 }
14071 else
14072 {
14073 unsigned long i = ulongval ();
14074 if (i != ((long) (sizeof (char))))
14075 exit (1);
14076 fprintf (f, "%lu\n", i);
14077 }
14078 exit (ferror (f) || fclose (f) != 0);
14079
14080 ;
14081 return 0;
52127426 14082}
e6cc62c6
VS
14083_ACEOF
14084rm -f conftest$ac_exeext
14085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_cv_sizeof_char=`cat conftest.val`
14096else
14097 echo "$as_me: program exited with status $ac_status" >&5
14098echo "$as_me: failed program was:" >&5
14099sed 's/^/| /' conftest.$ac_ext >&5
14100
14101( exit $ac_status )
14102{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14103See \`config.log' for more details." >&5
14104echo "$as_me: error: cannot compute sizeof (char), 77
14105See \`config.log' for more details." >&2;}
14106 { (exit 1); exit 1; }; }
14107fi
09d3439c 14108rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14109fi
14110fi
14111rm -f conftest.val
247f5006 14112else
a0b9e27f 14113 ac_cv_sizeof_char=0
247f5006 14114fi
247f5006 14115fi
e6cc62c6
VS
14116echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14117echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14118cat >>confdefs.h <<_ACEOF
14119#define SIZEOF_CHAR $ac_cv_sizeof_char
14120_ACEOF
14121
14122
14123echo "$as_me:$LINENO: checking for short" >&5
14124echo $ECHO_N "checking for short... $ECHO_C" >&6
14125if test "${ac_cv_type_short+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127else
14128 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14129#line $LINENO "configure"
e6cc62c6
VS
14130/* confdefs.h. */
14131_ACEOF
14132cat confdefs.h >>conftest.$ac_ext
14133cat >>conftest.$ac_ext <<_ACEOF
14134/* end confdefs.h. */
14135$ac_includes_default
14136int
14137main ()
14138{
14139if ((short *) 0)
14140 return 0;
14141if (sizeof (short))
14142 return 0;
14143 ;
14144 return 0;
14145}
14146_ACEOF
14147rm -f conftest.$ac_objext
14148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14149 (eval $ac_compile) 2>&5
e6cc62c6
VS
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
09d3439c 14153 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_type_short=yes
14160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
14164ac_cv_type_short=no
14165fi
09d3439c 14166rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14167fi
14168echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14169echo "${ECHO_T}$ac_cv_type_short" >&6
14170
14171echo "$as_me:$LINENO: checking size of short" >&5
14172echo $ECHO_N "checking size of short... $ECHO_C" >&6
14173if test "${ac_cv_sizeof_short+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175else
14176 if test "$ac_cv_type_short" = yes; then
14177 # The cast to unsigned long works around a bug in the HP C Compiler
14178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14180 # This bug is HP SR number 8606223364.
14181 if test "$cross_compiling" = yes; then
14182 # Depending upon the size, compute the lo and hi bounds.
14183cat >conftest.$ac_ext <<_ACEOF
09d3439c 14184#line $LINENO "configure"
e6cc62c6
VS
14185/* confdefs.h. */
14186_ACEOF
14187cat confdefs.h >>conftest.$ac_ext
14188cat >>conftest.$ac_ext <<_ACEOF
14189/* end confdefs.h. */
14190$ac_includes_default
14191int
14192main ()
14193{
14194static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14195test_array [0] = 0
247f5006 14196
e6cc62c6
VS
14197 ;
14198 return 0;
14199}
14200_ACEOF
14201rm -f conftest.$ac_objext
14202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14203 (eval $ac_compile) 2>&5
e6cc62c6
VS
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
09d3439c 14207 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_lo=0 ac_mid=0
14214 while :; do
14215 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14216#line $LINENO "configure"
e6cc62c6
VS
14217/* confdefs.h. */
14218_ACEOF
14219cat confdefs.h >>conftest.$ac_ext
14220cat >>conftest.$ac_ext <<_ACEOF
14221/* end confdefs.h. */
14222$ac_includes_default
14223int
14224main ()
14225{
14226static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14227test_array [0] = 0
14228
14229 ;
14230 return 0;
14231}
14232_ACEOF
14233rm -f conftest.$ac_objext
14234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14235 (eval $ac_compile) 2>&5
e6cc62c6
VS
14236 ac_status=$?
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
09d3439c 14239 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_hi=$ac_mid; break
14246else
14247 echo "$as_me: failed program was:" >&5
14248sed 's/^/| /' conftest.$ac_ext >&5
14249
14250ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
14251 if test $ac_lo -le $ac_mid; then
14252 ac_lo= ac_hi=
14253 break
14254 fi
14255 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14256fi
09d3439c 14257rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14258 done
14259else
14260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263cat >conftest.$ac_ext <<_ACEOF
09d3439c 14264#line $LINENO "configure"
e6cc62c6
VS
14265/* confdefs.h. */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
14269/* end confdefs.h. */
14270$ac_includes_default
14271int
14272main ()
14273{
14274static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14275test_array [0] = 0
247f5006 14276
e6cc62c6
VS
14277 ;
14278 return 0;
14279}
14280_ACEOF
14281rm -f conftest.$ac_objext
14282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14283 (eval $ac_compile) 2>&5
e6cc62c6
VS
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
09d3439c 14287 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_hi=-1 ac_mid=-1
14294 while :; do
14295 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14296#line $LINENO "configure"
e6cc62c6
VS
14297/* confdefs.h. */
14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
14302$ac_includes_default
14303int
14304main ()
14305{
14306static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14307test_array [0] = 0
247f5006 14308
e6cc62c6
VS
14309 ;
14310 return 0;
14311}
14312_ACEOF
14313rm -f conftest.$ac_objext
14314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14315 (eval $ac_compile) 2>&5
e6cc62c6
VS
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
09d3439c 14319 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 ac_lo=$ac_mid; break
14326else
14327 echo "$as_me: failed program was:" >&5
14328sed 's/^/| /' conftest.$ac_ext >&5
14329
14330ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
14331 if test $ac_mid -le $ac_hi; then
14332 ac_lo= ac_hi=
14333 break
14334 fi
14335 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14336fi
09d3439c 14337rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14338 done
247f5006 14339else
e6cc62c6
VS
14340 echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
14343ac_lo= ac_hi=
14344fi
09d3439c 14345rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14346fi
09d3439c 14347rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14348# Binary search between lo and hi bounds.
14349while test "x$ac_lo" != "x$ac_hi"; do
14350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14351 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14352#line $LINENO "configure"
e6cc62c6
VS
14353/* confdefs.h. */
14354_ACEOF
14355cat confdefs.h >>conftest.$ac_ext
14356cat >>conftest.$ac_ext <<_ACEOF
14357/* end confdefs.h. */
14358$ac_includes_default
14359int
14360main ()
14361{
14362static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14363test_array [0] = 0
14364
14365 ;
14366 return 0;
14367}
14368_ACEOF
14369rm -f conftest.$ac_objext
14370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14371 (eval $ac_compile) 2>&5
e6cc62c6
VS
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } &&
09d3439c 14375 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_hi=$ac_mid
14382else
14383 echo "$as_me: failed program was:" >&5
14384sed 's/^/| /' conftest.$ac_ext >&5
14385
14386ac_lo=`expr '(' $ac_mid ')' + 1`
14387fi
09d3439c 14388rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14389done
14390case $ac_lo in
14391?*) ac_cv_sizeof_short=$ac_lo;;
14392'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14393See \`config.log' for more details." >&5
14394echo "$as_me: error: cannot compute sizeof (short), 77
14395See \`config.log' for more details." >&2;}
14396 { (exit 1); exit 1; }; } ;;
14397esac
247f5006 14398else
e6cc62c6
VS
14399 if test "$cross_compiling" = yes; then
14400 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14401See \`config.log' for more details." >&5
14402echo "$as_me: error: cannot run test program while cross compiling
14403See \`config.log' for more details." >&2;}
14404 { (exit 1); exit 1; }; }
14405else
14406 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14407#line $LINENO "configure"
e6cc62c6
VS
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413$ac_includes_default
14414long longval () { return (long) (sizeof (short)); }
14415unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14416#include <stdio.h>
e6cc62c6
VS
14417#include <stdlib.h>
14418int
14419main ()
a0b9e27f 14420{
e6cc62c6
VS
14421
14422 FILE *f = fopen ("conftest.val", "w");
14423 if (! f)
14424 exit (1);
14425 if (((long) (sizeof (short))) < 0)
14426 {
14427 long i = longval ();
14428 if (i != ((long) (sizeof (short))))
14429 exit (1);
14430 fprintf (f, "%ld\n", i);
14431 }
14432 else
14433 {
14434 unsigned long i = ulongval ();
14435 if (i != ((long) (sizeof (short))))
14436 exit (1);
14437 fprintf (f, "%lu\n", i);
14438 }
14439 exit (ferror (f) || fclose (f) != 0);
14440
14441 ;
14442 return 0;
a0b9e27f 14443}
e6cc62c6
VS
14444_ACEOF
14445rm -f conftest$ac_exeext
14446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14447 (eval $ac_link) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_cv_sizeof_short=`cat conftest.val`
14457else
14458 echo "$as_me: program exited with status $ac_status" >&5
14459echo "$as_me: failed program was:" >&5
14460sed 's/^/| /' conftest.$ac_ext >&5
14461
14462( exit $ac_status )
14463{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14464See \`config.log' for more details." >&5
14465echo "$as_me: error: cannot compute sizeof (short), 77
14466See \`config.log' for more details." >&2;}
14467 { (exit 1); exit 1; }; }
14468fi
09d3439c 14469rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14470fi
14471fi
14472rm -f conftest.val
247f5006 14473else
a0b9e27f 14474 ac_cv_sizeof_short=0
247f5006 14475fi
247f5006 14476fi
e6cc62c6
VS
14477echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14478echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14479cat >>confdefs.h <<_ACEOF
14480#define SIZEOF_SHORT $ac_cv_sizeof_short
14481_ACEOF
14482
14483
14484echo "$as_me:$LINENO: checking for void *" >&5
14485echo $ECHO_N "checking for void *... $ECHO_C" >&6
14486if test "${ac_cv_type_void_p+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488else
14489 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14490#line $LINENO "configure"
e6cc62c6
VS
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496$ac_includes_default
14497int
14498main ()
14499{
14500if ((void * *) 0)
14501 return 0;
14502if (sizeof (void *))
14503 return 0;
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14510 (eval $ac_compile) 2>&5
e6cc62c6
VS
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
09d3439c 14514 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_cv_type_void_p=yes
14521else
14522 echo "$as_me: failed program was:" >&5
14523sed 's/^/| /' conftest.$ac_ext >&5
14524
14525ac_cv_type_void_p=no
14526fi
09d3439c 14527rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14528fi
14529echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14530echo "${ECHO_T}$ac_cv_type_void_p" >&6
14531
14532echo "$as_me:$LINENO: checking size of void *" >&5
14533echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14534if test "${ac_cv_sizeof_void_p+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537 if test "$ac_cv_type_void_p" = yes; then
14538 # The cast to unsigned long works around a bug in the HP C Compiler
14539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14541 # This bug is HP SR number 8606223364.
14542 if test "$cross_compiling" = yes; then
14543 # Depending upon the size, compute the lo and hi bounds.
14544cat >conftest.$ac_ext <<_ACEOF
09d3439c 14545#line $LINENO "configure"
e6cc62c6
VS
14546/* confdefs.h. */
14547_ACEOF
14548cat confdefs.h >>conftest.$ac_ext
14549cat >>conftest.$ac_ext <<_ACEOF
14550/* end confdefs.h. */
14551$ac_includes_default
14552int
14553main ()
14554{
14555static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14556test_array [0] = 0
14557
14558 ;
14559 return 0;
14560}
14561_ACEOF
14562rm -f conftest.$ac_objext
14563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14564 (eval $ac_compile) 2>&5
e6cc62c6
VS
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
09d3439c 14568 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_lo=0 ac_mid=0
14575 while :; do
14576 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14577#line $LINENO "configure"
e6cc62c6
VS
14578/* confdefs.h. */
14579_ACEOF
14580cat confdefs.h >>conftest.$ac_ext
14581cat >>conftest.$ac_ext <<_ACEOF
14582/* end confdefs.h. */
14583$ac_includes_default
14584int
14585main ()
14586{
14587static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14588test_array [0] = 0
247f5006 14589
e6cc62c6
VS
14590 ;
14591 return 0;
14592}
14593_ACEOF
14594rm -f conftest.$ac_objext
14595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14596 (eval $ac_compile) 2>&5
e6cc62c6
VS
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
09d3439c 14600 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_hi=$ac_mid; break
14607else
14608 echo "$as_me: failed program was:" >&5
14609sed 's/^/| /' conftest.$ac_ext >&5
14610
14611ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
14612 if test $ac_lo -le $ac_mid; then
14613 ac_lo= ac_hi=
14614 break
14615 fi
14616 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14617fi
09d3439c 14618rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14619 done
14620else
14621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624cat >conftest.$ac_ext <<_ACEOF
09d3439c 14625#line $LINENO "configure"
e6cc62c6
VS
14626/* confdefs.h. */
14627_ACEOF
14628cat confdefs.h >>conftest.$ac_ext
14629cat >>conftest.$ac_ext <<_ACEOF
14630/* end confdefs.h. */
14631$ac_includes_default
14632int
14633main ()
14634{
14635static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14636test_array [0] = 0
247f5006 14637
e6cc62c6
VS
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext
14643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14644 (eval $ac_compile) 2>&5
e6cc62c6
VS
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
09d3439c 14648 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_hi=-1 ac_mid=-1
14655 while :; do
14656 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14657#line $LINENO "configure"
e6cc62c6
VS
14658/* confdefs.h. */
14659_ACEOF
14660cat confdefs.h >>conftest.$ac_ext
14661cat >>conftest.$ac_ext <<_ACEOF
14662/* end confdefs.h. */
14663$ac_includes_default
14664int
14665main ()
14666{
14667static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14668test_array [0] = 0
247f5006 14669
e6cc62c6
VS
14670 ;
14671 return 0;
14672}
14673_ACEOF
14674rm -f conftest.$ac_objext
14675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14676 (eval $ac_compile) 2>&5
e6cc62c6
VS
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
09d3439c 14680 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_lo=$ac_mid; break
14687else
14688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
14691ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
14692 if test $ac_mid -le $ac_hi; then
14693 ac_lo= ac_hi=
14694 break
14695 fi
14696 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14697fi
09d3439c 14698rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14699 done
a0b9e27f 14700else
e6cc62c6
VS
14701 echo "$as_me: failed program was:" >&5
14702sed 's/^/| /' conftest.$ac_ext >&5
14703
14704ac_lo= ac_hi=
14705fi
09d3439c 14706rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14707fi
09d3439c 14708rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14709# Binary search between lo and hi bounds.
14710while test "x$ac_lo" != "x$ac_hi"; do
14711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14712 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14713#line $LINENO "configure"
e6cc62c6
VS
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
14718/* end confdefs.h. */
14719$ac_includes_default
14720int
14721main ()
14722{
14723static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14724test_array [0] = 0
14725
14726 ;
14727 return 0;
14728}
14729_ACEOF
14730rm -f conftest.$ac_objext
14731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14732 (eval $ac_compile) 2>&5
e6cc62c6
VS
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
09d3439c 14736 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_hi=$ac_mid
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747ac_lo=`expr '(' $ac_mid ')' + 1`
14748fi
09d3439c 14749rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14750done
14751case $ac_lo in
14752?*) ac_cv_sizeof_void_p=$ac_lo;;
14753'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14754See \`config.log' for more details." >&5
14755echo "$as_me: error: cannot compute sizeof (void *), 77
14756See \`config.log' for more details." >&2;}
14757 { (exit 1); exit 1; }; } ;;
14758esac
247f5006 14759else
e6cc62c6
VS
14760 if test "$cross_compiling" = yes; then
14761 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14762See \`config.log' for more details." >&5
14763echo "$as_me: error: cannot run test program while cross compiling
14764See \`config.log' for more details." >&2;}
14765 { (exit 1); exit 1; }; }
14766else
14767 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14768#line $LINENO "configure"
e6cc62c6
VS
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774$ac_includes_default
14775long longval () { return (long) (sizeof (void *)); }
14776unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14777#include <stdio.h>
e6cc62c6
VS
14778#include <stdlib.h>
14779int
14780main ()
247f5006 14781{
e6cc62c6
VS
14782
14783 FILE *f = fopen ("conftest.val", "w");
14784 if (! f)
14785 exit (1);
14786 if (((long) (sizeof (void *))) < 0)
14787 {
14788 long i = longval ();
14789 if (i != ((long) (sizeof (void *))))
14790 exit (1);
14791 fprintf (f, "%ld\n", i);
14792 }
14793 else
14794 {
14795 unsigned long i = ulongval ();
14796 if (i != ((long) (sizeof (void *))))
14797 exit (1);
14798 fprintf (f, "%lu\n", i);
14799 }
14800 exit (ferror (f) || fclose (f) != 0);
14801
14802 ;
14803 return 0;
5c6fa7d2 14804}
e6cc62c6
VS
14805_ACEOF
14806rm -f conftest$ac_exeext
14807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14808 (eval $ac_link) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_cv_sizeof_void_p=`cat conftest.val`
14818else
14819 echo "$as_me: program exited with status $ac_status" >&5
14820echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823( exit $ac_status )
14824{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14825See \`config.log' for more details." >&5
14826echo "$as_me: error: cannot compute sizeof (void *), 77
14827See \`config.log' for more details." >&2;}
14828 { (exit 1); exit 1; }; }
14829fi
09d3439c 14830rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14831fi
14832fi
14833rm -f conftest.val
a0b9e27f 14834else
a0b9e27f
MB
14835 ac_cv_sizeof_void_p=0
14836fi
a0b9e27f 14837fi
e6cc62c6
VS
14838echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14839echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14840cat >>confdefs.h <<_ACEOF
14841#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14842_ACEOF
14843
14844
14845echo "$as_me:$LINENO: checking for int" >&5
14846echo $ECHO_N "checking for int... $ECHO_C" >&6
14847if test "${ac_cv_type_int+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14851#line $LINENO "configure"
e6cc62c6
VS
14852/* confdefs.h. */
14853_ACEOF
14854cat confdefs.h >>conftest.$ac_ext
14855cat >>conftest.$ac_ext <<_ACEOF
14856/* end confdefs.h. */
14857$ac_includes_default
14858int
14859main ()
14860{
14861if ((int *) 0)
14862 return 0;
14863if (sizeof (int))
14864 return 0;
14865 ;
14866 return 0;
14867}
14868_ACEOF
14869rm -f conftest.$ac_objext
14870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14871 (eval $ac_compile) 2>&5
e6cc62c6
VS
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
09d3439c 14875 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 ac_cv_type_int=yes
14882else
14883 echo "$as_me: failed program was:" >&5
14884sed 's/^/| /' conftest.$ac_ext >&5
14885
14886ac_cv_type_int=no
14887fi
09d3439c 14888rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14889fi
14890echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14891echo "${ECHO_T}$ac_cv_type_int" >&6
14892
14893echo "$as_me:$LINENO: checking size of int" >&5
14894echo $ECHO_N "checking size of int... $ECHO_C" >&6
14895if test "${ac_cv_sizeof_int+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897else
14898 if test "$ac_cv_type_int" = yes; then
14899 # The cast to unsigned long works around a bug in the HP C Compiler
14900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14902 # This bug is HP SR number 8606223364.
14903 if test "$cross_compiling" = yes; then
14904 # Depending upon the size, compute the lo and hi bounds.
14905cat >conftest.$ac_ext <<_ACEOF
09d3439c 14906#line $LINENO "configure"
e6cc62c6
VS
14907/* confdefs.h. */
14908_ACEOF
14909cat confdefs.h >>conftest.$ac_ext
14910cat >>conftest.$ac_ext <<_ACEOF
14911/* end confdefs.h. */
14912$ac_includes_default
14913int
14914main ()
14915{
14916static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14917test_array [0] = 0
8284b0c5 14918
e6cc62c6
VS
14919 ;
14920 return 0;
14921}
14922_ACEOF
14923rm -f conftest.$ac_objext
14924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14925 (eval $ac_compile) 2>&5
e6cc62c6
VS
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
09d3439c 14929 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_lo=0 ac_mid=0
14936 while :; do
14937 cat >conftest.$ac_ext <<_ACEOF
09d3439c 14938#line $LINENO "configure"
e6cc62c6
VS
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
14944$ac_includes_default
14945int
14946main ()
14947{
14948static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14949test_array [0] = 0
14950
14951 ;
14952 return 0;
14953}
14954_ACEOF
14955rm -f conftest.$ac_objext
14956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 14957 (eval $ac_compile) 2>&5
e6cc62c6
VS
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
09d3439c 14961 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_hi=$ac_mid; break
14968else
14969 echo "$as_me: failed program was:" >&5
14970sed 's/^/| /' conftest.$ac_ext >&5
14971
14972ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
14973 if test $ac_lo -le $ac_mid; then
14974 ac_lo= ac_hi=
14975 break
14976 fi
14977 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14978fi
09d3439c 14979rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14980 done
14981else
14982 echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985cat >conftest.$ac_ext <<_ACEOF
09d3439c 14986#line $LINENO "configure"
e6cc62c6
VS
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992$ac_includes_default
14993int
14994main ()
14995{
14996static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14997test_array [0] = 0
247f5006 14998
e6cc62c6
VS
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003rm -f conftest.$ac_objext
15004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15005 (eval $ac_compile) 2>&5
e6cc62c6
VS
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
09d3439c 15009 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_hi=-1 ac_mid=-1
15016 while :; do
15017 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15018#line $LINENO "configure"
e6cc62c6
VS
15019/* confdefs.h. */
15020_ACEOF
15021cat confdefs.h >>conftest.$ac_ext
15022cat >>conftest.$ac_ext <<_ACEOF
15023/* end confdefs.h. */
15024$ac_includes_default
15025int
15026main ()
15027{
15028static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15029test_array [0] = 0
247f5006 15030
e6cc62c6
VS
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035rm -f conftest.$ac_objext
15036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15037 (eval $ac_compile) 2>&5
e6cc62c6
VS
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } &&
09d3439c 15041 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_lo=$ac_mid; break
15048else
15049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
15053 if test $ac_mid -le $ac_hi; then
15054 ac_lo= ac_hi=
15055 break
15056 fi
15057 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15058fi
09d3439c 15059rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15060 done
247f5006 15061else
e6cc62c6
VS
15062 echo "$as_me: failed program was:" >&5
15063sed 's/^/| /' conftest.$ac_ext >&5
15064
15065ac_lo= ac_hi=
15066fi
09d3439c 15067rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15068fi
09d3439c 15069rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15070# Binary search between lo and hi bounds.
15071while test "x$ac_lo" != "x$ac_hi"; do
15072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15073 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15074#line $LINENO "configure"
e6cc62c6
VS
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080$ac_includes_default
15081int
15082main ()
15083{
15084static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15085test_array [0] = 0
15086
15087 ;
15088 return 0;
15089}
15090_ACEOF
15091rm -f conftest.$ac_objext
15092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15093 (eval $ac_compile) 2>&5
e6cc62c6
VS
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
09d3439c 15097 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 ac_hi=$ac_mid
15104else
15105 echo "$as_me: failed program was:" >&5
15106sed 's/^/| /' conftest.$ac_ext >&5
15107
15108ac_lo=`expr '(' $ac_mid ')' + 1`
15109fi
09d3439c 15110rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15111done
15112case $ac_lo in
15113?*) ac_cv_sizeof_int=$ac_lo;;
15114'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15115See \`config.log' for more details." >&5
15116echo "$as_me: error: cannot compute sizeof (int), 77
15117See \`config.log' for more details." >&2;}
15118 { (exit 1); exit 1; }; } ;;
15119esac
a0b9e27f 15120else
e6cc62c6
VS
15121 if test "$cross_compiling" = yes; then
15122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15123See \`config.log' for more details." >&5
15124echo "$as_me: error: cannot run test program while cross compiling
15125See \`config.log' for more details." >&2;}
15126 { (exit 1); exit 1; }; }
15127else
15128 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15129#line $LINENO "configure"
e6cc62c6
VS
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
15135$ac_includes_default
15136long longval () { return (long) (sizeof (int)); }
15137unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15138#include <stdio.h>
e6cc62c6
VS
15139#include <stdlib.h>
15140int
15141main ()
247f5006 15142{
e6cc62c6
VS
15143
15144 FILE *f = fopen ("conftest.val", "w");
15145 if (! f)
15146 exit (1);
15147 if (((long) (sizeof (int))) < 0)
15148 {
15149 long i = longval ();
15150 if (i != ((long) (sizeof (int))))
15151 exit (1);
15152 fprintf (f, "%ld\n", i);
15153 }
15154 else
15155 {
15156 unsigned long i = ulongval ();
15157 if (i != ((long) (sizeof (int))))
15158 exit (1);
15159 fprintf (f, "%lu\n", i);
15160 }
15161 exit (ferror (f) || fclose (f) != 0);
15162
15163 ;
15164 return 0;
247f5006 15165}
e6cc62c6
VS
15166_ACEOF
15167rm -f conftest$ac_exeext
15168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_cv_sizeof_int=`cat conftest.val`
15179else
15180 echo "$as_me: program exited with status $ac_status" >&5
15181echo "$as_me: failed program was:" >&5
15182sed 's/^/| /' conftest.$ac_ext >&5
15183
15184( exit $ac_status )
15185{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15186See \`config.log' for more details." >&5
15187echo "$as_me: error: cannot compute sizeof (int), 77
15188See \`config.log' for more details." >&2;}
15189 { (exit 1); exit 1; }; }
15190fi
09d3439c 15191rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15192fi
15193fi
15194rm -f conftest.val
6f72b082 15195else
a0b9e27f 15196 ac_cv_sizeof_int=0
21d1c967 15197fi
698dcdb6 15198fi
e6cc62c6
VS
15199echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15200echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15201cat >>confdefs.h <<_ACEOF
15202#define SIZEOF_INT $ac_cv_sizeof_int
15203_ACEOF
15204
15205
15206echo "$as_me:$LINENO: checking for long" >&5
15207echo $ECHO_N "checking for long... $ECHO_C" >&6
15208if test "${ac_cv_type_long+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210else
15211 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15212#line $LINENO "configure"
e6cc62c6
VS
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219int
15220main ()
15221{
15222if ((long *) 0)
15223 return 0;
15224if (sizeof (long))
15225 return 0;
15226 ;
15227 return 0;
15228}
15229_ACEOF
15230rm -f conftest.$ac_objext
15231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15232 (eval $ac_compile) 2>&5
e6cc62c6
VS
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } &&
09d3439c 15236 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_cv_type_long=yes
15243else
15244 echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247ac_cv_type_long=no
15248fi
09d3439c 15249rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15250fi
15251echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15252echo "${ECHO_T}$ac_cv_type_long" >&6
15253
15254echo "$as_me:$LINENO: checking size of long" >&5
15255echo $ECHO_N "checking size of long... $ECHO_C" >&6
15256if test "${ac_cv_sizeof_long+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258else
15259 if test "$ac_cv_type_long" = yes; then
15260 # The cast to unsigned long works around a bug in the HP C Compiler
15261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15263 # This bug is HP SR number 8606223364.
15264 if test "$cross_compiling" = yes; then
15265 # Depending upon the size, compute the lo and hi bounds.
15266cat >conftest.$ac_ext <<_ACEOF
09d3439c 15267#line $LINENO "configure"
e6cc62c6
VS
15268/* confdefs.h. */
15269_ACEOF
15270cat confdefs.h >>conftest.$ac_ext
15271cat >>conftest.$ac_ext <<_ACEOF
15272/* end confdefs.h. */
15273$ac_includes_default
15274int
15275main ()
15276{
15277static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15278test_array [0] = 0
15279
15280 ;
15281 return 0;
15282}
15283_ACEOF
15284rm -f conftest.$ac_objext
15285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15286 (eval $ac_compile) 2>&5
e6cc62c6
VS
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
09d3439c 15290 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_lo=0 ac_mid=0
15297 while :; do
15298 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15299#line $LINENO "configure"
e6cc62c6
VS
15300/* confdefs.h. */
15301_ACEOF
15302cat confdefs.h >>conftest.$ac_ext
15303cat >>conftest.$ac_ext <<_ACEOF
15304/* end confdefs.h. */
15305$ac_includes_default
15306int
15307main ()
15308{
15309static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15310test_array [0] = 0
4f14bcd8 15311
e6cc62c6
VS
15312 ;
15313 return 0;
15314}
15315_ACEOF
15316rm -f conftest.$ac_objext
15317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15318 (eval $ac_compile) 2>&5
e6cc62c6
VS
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
09d3439c 15322 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_hi=$ac_mid; break
15329else
15330 echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
15333ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
15334 if test $ac_lo -le $ac_mid; then
15335 ac_lo= ac_hi=
15336 break
15337 fi
15338 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15339fi
09d3439c 15340rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15341 done
15342else
15343 echo "$as_me: failed program was:" >&5
15344sed 's/^/| /' conftest.$ac_ext >&5
15345
15346cat >conftest.$ac_ext <<_ACEOF
09d3439c 15347#line $LINENO "configure"
e6cc62c6
VS
15348/* confdefs.h. */
15349_ACEOF
15350cat confdefs.h >>conftest.$ac_ext
15351cat >>conftest.$ac_ext <<_ACEOF
15352/* end confdefs.h. */
15353$ac_includes_default
15354int
15355main ()
15356{
15357static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15358test_array [0] = 0
4f14bcd8 15359
e6cc62c6
VS
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext
15365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15366 (eval $ac_compile) 2>&5
e6cc62c6
VS
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
09d3439c 15370 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_hi=-1 ac_mid=-1
15377 while :; do
15378 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15379#line $LINENO "configure"
e6cc62c6
VS
15380/* confdefs.h. */
15381_ACEOF
15382cat confdefs.h >>conftest.$ac_ext
15383cat >>conftest.$ac_ext <<_ACEOF
15384/* end confdefs.h. */
15385$ac_includes_default
15386int
15387main ()
15388{
15389static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15390test_array [0] = 0
5c6fa7d2 15391
e6cc62c6
VS
15392 ;
15393 return 0;
15394}
15395_ACEOF
15396rm -f conftest.$ac_objext
15397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15398 (eval $ac_compile) 2>&5
e6cc62c6
VS
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
09d3439c 15402 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_lo=$ac_mid; break
15409else
15410 echo "$as_me: failed program was:" >&5
15411sed 's/^/| /' conftest.$ac_ext >&5
15412
15413ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
15414 if test $ac_mid -le $ac_hi; then
15415 ac_lo= ac_hi=
15416 break
15417 fi
15418 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15419fi
09d3439c 15420rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15421 done
247f5006 15422else
e6cc62c6
VS
15423 echo "$as_me: failed program was:" >&5
15424sed 's/^/| /' conftest.$ac_ext >&5
15425
15426ac_lo= ac_hi=
15427fi
09d3439c 15428rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15429fi
09d3439c 15430rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15431# Binary search between lo and hi bounds.
15432while test "x$ac_lo" != "x$ac_hi"; do
15433 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15434 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15435#line $LINENO "configure"
e6cc62c6
VS
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441$ac_includes_default
15442int
15443main ()
15444{
15445static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15446test_array [0] = 0
15447
15448 ;
15449 return 0;
15450}
15451_ACEOF
15452rm -f conftest.$ac_objext
15453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15454 (eval $ac_compile) 2>&5
e6cc62c6
VS
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
09d3439c 15458 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_hi=$ac_mid
15465else
15466 echo "$as_me: failed program was:" >&5
15467sed 's/^/| /' conftest.$ac_ext >&5
15468
15469ac_lo=`expr '(' $ac_mid ')' + 1`
15470fi
09d3439c 15471rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15472done
15473case $ac_lo in
15474?*) ac_cv_sizeof_long=$ac_lo;;
15475'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15476See \`config.log' for more details." >&5
15477echo "$as_me: error: cannot compute sizeof (long), 77
15478See \`config.log' for more details." >&2;}
15479 { (exit 1); exit 1; }; } ;;
15480esac
247f5006 15481else
e6cc62c6
VS
15482 if test "$cross_compiling" = yes; then
15483 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15484See \`config.log' for more details." >&5
15485echo "$as_me: error: cannot run test program while cross compiling
15486See \`config.log' for more details." >&2;}
15487 { (exit 1); exit 1; }; }
15488else
15489 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15490#line $LINENO "configure"
e6cc62c6
VS
15491/* confdefs.h. */
15492_ACEOF
15493cat confdefs.h >>conftest.$ac_ext
15494cat >>conftest.$ac_ext <<_ACEOF
15495/* end confdefs.h. */
15496$ac_includes_default
15497long longval () { return (long) (sizeof (long)); }
15498unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15499#include <stdio.h>
e6cc62c6
VS
15500#include <stdlib.h>
15501int
15502main ()
247f5006 15503{
e6cc62c6
VS
15504
15505 FILE *f = fopen ("conftest.val", "w");
15506 if (! f)
15507 exit (1);
15508 if (((long) (sizeof (long))) < 0)
15509 {
15510 long i = longval ();
15511 if (i != ((long) (sizeof (long))))
15512 exit (1);
15513 fprintf (f, "%ld\n", i);
15514 }
15515 else
15516 {
15517 unsigned long i = ulongval ();
15518 if (i != ((long) (sizeof (long))))
15519 exit (1);
15520 fprintf (f, "%lu\n", i);
15521 }
15522 exit (ferror (f) || fclose (f) != 0);
15523
15524 ;
15525 return 0;
247f5006 15526}
e6cc62c6
VS
15527_ACEOF
15528rm -f conftest$ac_exeext
15529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_cv_sizeof_long=`cat conftest.val`
15540else
15541 echo "$as_me: program exited with status $ac_status" >&5
15542echo "$as_me: failed program was:" >&5
15543sed 's/^/| /' conftest.$ac_ext >&5
15544
15545( exit $ac_status )
15546{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15547See \`config.log' for more details." >&5
15548echo "$as_me: error: cannot compute sizeof (long), 77
15549See \`config.log' for more details." >&2;}
15550 { (exit 1); exit 1; }; }
15551fi
09d3439c 15552rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15553fi
15554fi
15555rm -f conftest.val
247f5006 15556else
a0b9e27f 15557 ac_cv_sizeof_long=0
247f5006 15558fi
247f5006 15559fi
e6cc62c6
VS
15560echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15561echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15562cat >>confdefs.h <<_ACEOF
a0b9e27f 15563#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15564_ACEOF
247f5006 15565
a0b9e27f
MB
15566
15567
15568case "${host}" in
15569 arm-*-linux* )
e6cc62c6
VS
15570 echo "$as_me:$LINENO: checking for long long" >&5
15571echo $ECHO_N "checking for long long... $ECHO_C" >&6
15572if test "${ac_cv_type_long_long+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574else
15575 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15576#line $LINENO "configure"
e6cc62c6
VS
15577/* confdefs.h. */
15578_ACEOF
15579cat confdefs.h >>conftest.$ac_ext
15580cat >>conftest.$ac_ext <<_ACEOF
15581/* end confdefs.h. */
15582$ac_includes_default
15583int
15584main ()
15585{
15586if ((long long *) 0)
15587 return 0;
15588if (sizeof (long long))
15589 return 0;
15590 ;
15591 return 0;
15592}
15593_ACEOF
15594rm -f conftest.$ac_objext
15595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15596 (eval $ac_compile) 2>&5
e6cc62c6
VS
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
09d3439c 15600 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 ac_cv_type_long_long=yes
15607else
15608 echo "$as_me: failed program was:" >&5
15609sed 's/^/| /' conftest.$ac_ext >&5
15610
15611ac_cv_type_long_long=no
15612fi
09d3439c 15613rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15614fi
15615echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15616echo "${ECHO_T}$ac_cv_type_long_long" >&6
15617
15618echo "$as_me:$LINENO: checking size of long long" >&5
15619echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15620if test "${ac_cv_sizeof_long_long+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15622else
15623 if test "$ac_cv_type_long_long" = yes; then
15624 # The cast to unsigned long works around a bug in the HP C Compiler
15625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15627 # This bug is HP SR number 8606223364.
a0b9e27f 15628 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15629 # Depending upon the size, compute the lo and hi bounds.
15630cat >conftest.$ac_ext <<_ACEOF
09d3439c 15631#line $LINENO "configure"
e6cc62c6
VS
15632/* confdefs.h. */
15633_ACEOF
15634cat confdefs.h >>conftest.$ac_ext
15635cat >>conftest.$ac_ext <<_ACEOF
15636/* end confdefs.h. */
15637$ac_includes_default
15638int
15639main ()
15640{
15641static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15642test_array [0] = 0
15643
15644 ;
15645 return 0;
15646}
15647_ACEOF
15648rm -f conftest.$ac_objext
15649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15650 (eval $ac_compile) 2>&5
e6cc62c6
VS
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
09d3439c 15654 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_lo=0 ac_mid=0
15661 while :; do
15662 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15663#line $LINENO "configure"
e6cc62c6
VS
15664/* confdefs.h. */
15665_ACEOF
15666cat confdefs.h >>conftest.$ac_ext
15667cat >>conftest.$ac_ext <<_ACEOF
15668/* end confdefs.h. */
15669$ac_includes_default
15670int
15671main ()
15672{
15673static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15674test_array [0] = 0
15675
15676 ;
15677 return 0;
15678}
15679_ACEOF
15680rm -f conftest.$ac_objext
15681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15682 (eval $ac_compile) 2>&5
e6cc62c6
VS
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
09d3439c 15686 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_hi=$ac_mid; break
15693else
15694 echo "$as_me: failed program was:" >&5
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
15697ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
15698 if test $ac_lo -le $ac_mid; then
15699 ac_lo= ac_hi=
15700 break
15701 fi
15702 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 15703fi
09d3439c 15704rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15705 done
15706else
15707 echo "$as_me: failed program was:" >&5
15708sed 's/^/| /' conftest.$ac_ext >&5
15709
15710cat >conftest.$ac_ext <<_ACEOF
09d3439c 15711#line $LINENO "configure"
e6cc62c6
VS
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718int
15719main ()
15720{
15721static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15722test_array [0] = 0
15723
15724 ;
15725 return 0;
15726}
15727_ACEOF
15728rm -f conftest.$ac_objext
15729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15730 (eval $ac_compile) 2>&5
e6cc62c6
VS
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
09d3439c 15734 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_hi=-1 ac_mid=-1
15741 while :; do
15742 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15743#line $LINENO "configure"
e6cc62c6
VS
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749$ac_includes_default
15750int
15751main ()
15752{
15753static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15754test_array [0] = 0
15755
15756 ;
15757 return 0;
15758}
15759_ACEOF
15760rm -f conftest.$ac_objext
15761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15762 (eval $ac_compile) 2>&5
e6cc62c6
VS
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
09d3439c 15766 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_lo=$ac_mid; break
15773else
15774 echo "$as_me: failed program was:" >&5
15775sed 's/^/| /' conftest.$ac_ext >&5
15776
15777ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
15778 if test $ac_mid -le $ac_hi; then
15779 ac_lo= ac_hi=
15780 break
15781 fi
15782 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15783fi
09d3439c 15784rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15785 done
15786else
15787 echo "$as_me: failed program was:" >&5
15788sed 's/^/| /' conftest.$ac_ext >&5
15789
15790ac_lo= ac_hi=
15791fi
09d3439c 15792rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15793fi
09d3439c 15794rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15795# Binary search between lo and hi bounds.
15796while test "x$ac_lo" != "x$ac_hi"; do
15797 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15798 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15799#line $LINENO "configure"
e6cc62c6
VS
15800/* confdefs.h. */
15801_ACEOF
15802cat confdefs.h >>conftest.$ac_ext
15803cat >>conftest.$ac_ext <<_ACEOF
15804/* end confdefs.h. */
15805$ac_includes_default
15806int
15807main ()
15808{
15809static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15810test_array [0] = 0
15811
15812 ;
15813 return 0;
15814}
15815_ACEOF
15816rm -f conftest.$ac_objext
15817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15818 (eval $ac_compile) 2>&5
e6cc62c6
VS
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
09d3439c 15822 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828 ac_hi=$ac_mid
15829else
15830 echo "$as_me: failed program was:" >&5
15831sed 's/^/| /' conftest.$ac_ext >&5
15832
15833ac_lo=`expr '(' $ac_mid ')' + 1`
15834fi
09d3439c 15835rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15836done
15837case $ac_lo in
15838?*) ac_cv_sizeof_long_long=$ac_lo;;
15839'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15840See \`config.log' for more details." >&5
15841echo "$as_me: error: cannot compute sizeof (long long), 77
15842See \`config.log' for more details." >&2;}
15843 { (exit 1); exit 1; }; } ;;
15844esac
a0b9e27f 15845else
e6cc62c6
VS
15846 if test "$cross_compiling" = yes; then
15847 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15848See \`config.log' for more details." >&5
15849echo "$as_me: error: cannot run test program while cross compiling
15850See \`config.log' for more details." >&2;}
15851 { (exit 1); exit 1; }; }
15852else
15853 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15854#line $LINENO "configure"
e6cc62c6
VS
15855/* confdefs.h. */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
15859/* end confdefs.h. */
15860$ac_includes_default
15861long longval () { return (long) (sizeof (long long)); }
15862unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15863#include <stdio.h>
e6cc62c6
VS
15864#include <stdlib.h>
15865int
15866main ()
247f5006 15867{
e6cc62c6
VS
15868
15869 FILE *f = fopen ("conftest.val", "w");
15870 if (! f)
15871 exit (1);
15872 if (((long) (sizeof (long long))) < 0)
15873 {
15874 long i = longval ();
15875 if (i != ((long) (sizeof (long long))))
15876 exit (1);
15877 fprintf (f, "%ld\n", i);
15878 }
15879 else
15880 {
15881 unsigned long i = ulongval ();
15882 if (i != ((long) (sizeof (long long))))
15883 exit (1);
15884 fprintf (f, "%lu\n", i);
15885 }
15886 exit (ferror (f) || fclose (f) != 0);
15887
15888 ;
15889 return 0;
247f5006 15890}
e6cc62c6
VS
15891_ACEOF
15892rm -f conftest$ac_exeext
15893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15894 (eval $ac_link) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_cv_sizeof_long_long=`cat conftest.val`
15904else
15905 echo "$as_me: program exited with status $ac_status" >&5
15906echo "$as_me: failed program was:" >&5
15907sed 's/^/| /' conftest.$ac_ext >&5
15908
15909( exit $ac_status )
15910{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15911See \`config.log' for more details." >&5
15912echo "$as_me: error: cannot compute sizeof (long long), 77
15913See \`config.log' for more details." >&2;}
15914 { (exit 1); exit 1; }; }
15915fi
09d3439c 15916rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15917fi
15918fi
15919rm -f conftest.val
7b4a847f 15920else
a0b9e27f 15921 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15922fi
15923fi
e6cc62c6
VS
15924echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15925echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15926cat >>confdefs.h <<_ACEOF
15927#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15928_ACEOF
15929
15930
15931 ;;
15932 *-hp-hpux* )
15933 echo "$as_me:$LINENO: checking for long long" >&5
15934echo $ECHO_N "checking for long long... $ECHO_C" >&6
15935if test "${ac_cv_type_long_long+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15937else
15938 cat >conftest.$ac_ext <<_ACEOF
09d3439c 15939#line $LINENO "configure"
e6cc62c6
VS
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945$ac_includes_default
15946int
15947main ()
15948{
15949if ((long long *) 0)
15950 return 0;
15951if (sizeof (long long))
15952 return 0;
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 15959 (eval $ac_compile) 2>&5
e6cc62c6
VS
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
09d3439c 15963 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_cv_type_long_long=yes
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974ac_cv_type_long_long=no
15975fi
09d3439c 15976rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15977fi
15978echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15979echo "${ECHO_T}$ac_cv_type_long_long" >&6
15980
15981echo "$as_me:$LINENO: checking size of long long" >&5
15982echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15983if test "${ac_cv_sizeof_long_long+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985else
15986 if test "$ac_cv_type_long_long" = yes; then
15987 # The cast to unsigned long works around a bug in the HP C Compiler
15988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15990 # This bug is HP SR number 8606223364.
15991 if test "$cross_compiling" = yes; then
15992 # Depending upon the size, compute the lo and hi bounds.
15993cat >conftest.$ac_ext <<_ACEOF
09d3439c 15994#line $LINENO "configure"
e6cc62c6
VS
15995/* confdefs.h. */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h. */
16000$ac_includes_default
16001int
16002main ()
16003{
16004static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16005test_array [0] = 0
16006
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011rm -f conftest.$ac_objext
16012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16013 (eval $ac_compile) 2>&5
e6cc62c6
VS
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
09d3439c 16017 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_lo=0 ac_mid=0
16024 while :; do
16025 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16026#line $LINENO "configure"
e6cc62c6
VS
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032$ac_includes_default
16033int
16034main ()
16035{
16036static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16037test_array [0] = 0
8284b0c5 16038
e6cc62c6
VS
16039 ;
16040 return 0;
16041}
16042_ACEOF
16043rm -f conftest.$ac_objext
16044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16045 (eval $ac_compile) 2>&5
e6cc62c6
VS
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
09d3439c 16049 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055 ac_hi=$ac_mid; break
16056else
16057 echo "$as_me: failed program was:" >&5
16058sed 's/^/| /' conftest.$ac_ext >&5
16059
16060ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
16061 if test $ac_lo -le $ac_mid; then
16062 ac_lo= ac_hi=
16063 break
16064 fi
16065 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16066fi
09d3439c 16067rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16068 done
16069else
16070 echo "$as_me: failed program was:" >&5
16071sed 's/^/| /' conftest.$ac_ext >&5
16072
16073cat >conftest.$ac_ext <<_ACEOF
09d3439c 16074#line $LINENO "configure"
e6cc62c6
VS
16075/* confdefs.h. */
16076_ACEOF
16077cat confdefs.h >>conftest.$ac_ext
16078cat >>conftest.$ac_ext <<_ACEOF
16079/* end confdefs.h. */
16080$ac_includes_default
16081int
16082main ()
16083{
16084static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16085test_array [0] = 0
a0b9e27f 16086
e6cc62c6
VS
16087 ;
16088 return 0;
16089}
16090_ACEOF
16091rm -f conftest.$ac_objext
16092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16093 (eval $ac_compile) 2>&5
e6cc62c6
VS
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
09d3439c 16097 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_hi=-1 ac_mid=-1
16104 while :; do
16105 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16106#line $LINENO "configure"
e6cc62c6
VS
16107/* confdefs.h. */
16108_ACEOF
16109cat confdefs.h >>conftest.$ac_ext
16110cat >>conftest.$ac_ext <<_ACEOF
16111/* end confdefs.h. */
16112$ac_includes_default
16113int
16114main ()
16115{
16116static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16117test_array [0] = 0
a0b9e27f 16118
e6cc62c6
VS
16119 ;
16120 return 0;
16121}
16122_ACEOF
16123rm -f conftest.$ac_objext
16124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16125 (eval $ac_compile) 2>&5
e6cc62c6
VS
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
09d3439c 16129 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ac_lo=$ac_mid; break
16136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
16141 if test $ac_mid -le $ac_hi; then
16142 ac_lo= ac_hi=
16143 break
16144 fi
16145 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16146fi
09d3439c 16147rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16148 done
8284b0c5 16149else
e6cc62c6
VS
16150 echo "$as_me: failed program was:" >&5
16151sed 's/^/| /' conftest.$ac_ext >&5
16152
16153ac_lo= ac_hi=
16154fi
09d3439c 16155rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16156fi
09d3439c 16157rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16158# Binary search between lo and hi bounds.
16159while test "x$ac_lo" != "x$ac_hi"; do
16160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16161 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16162#line $LINENO "configure"
e6cc62c6
VS
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168$ac_includes_default
16169int
16170main ()
16171{
16172static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16173test_array [0] = 0
16174
16175 ;
16176 return 0;
16177}
16178_ACEOF
16179rm -f conftest.$ac_objext
16180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16181 (eval $ac_compile) 2>&5
e6cc62c6
VS
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
09d3439c 16185 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_hi=$ac_mid
16192else
16193 echo "$as_me: failed program was:" >&5
16194sed 's/^/| /' conftest.$ac_ext >&5
16195
16196ac_lo=`expr '(' $ac_mid ')' + 1`
16197fi
09d3439c 16198rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16199done
16200case $ac_lo in
16201?*) ac_cv_sizeof_long_long=$ac_lo;;
16202'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16203See \`config.log' for more details." >&5
16204echo "$as_me: error: cannot compute sizeof (long long), 77
16205See \`config.log' for more details." >&2;}
16206 { (exit 1); exit 1; }; } ;;
16207esac
8284b0c5 16208else
e6cc62c6
VS
16209 if test "$cross_compiling" = yes; then
16210 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16211See \`config.log' for more details." >&5
16212echo "$as_me: error: cannot run test program while cross compiling
16213See \`config.log' for more details." >&2;}
16214 { (exit 1); exit 1; }; }
16215else
16216 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16217#line $LINENO "configure"
e6cc62c6
VS
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223$ac_includes_default
16224long longval () { return (long) (sizeof (long long)); }
16225unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16226#include <stdio.h>
e6cc62c6
VS
16227#include <stdlib.h>
16228int
16229main ()
8284b0c5 16230{
e6cc62c6
VS
16231
16232 FILE *f = fopen ("conftest.val", "w");
16233 if (! f)
16234 exit (1);
16235 if (((long) (sizeof (long long))) < 0)
16236 {
16237 long i = longval ();
16238 if (i != ((long) (sizeof (long long))))
16239 exit (1);
16240 fprintf (f, "%ld\n", i);
16241 }
16242 else
16243 {
16244 unsigned long i = ulongval ();
16245 if (i != ((long) (sizeof (long long))))
16246 exit (1);
16247 fprintf (f, "%lu\n", i);
16248 }
16249 exit (ferror (f) || fclose (f) != 0);
16250
16251 ;
16252 return 0;
8284b0c5 16253}
e6cc62c6
VS
16254_ACEOF
16255rm -f conftest$ac_exeext
16256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 ac_cv_sizeof_long_long=`cat conftest.val`
16267else
16268 echo "$as_me: program exited with status $ac_status" >&5
16269echo "$as_me: failed program was:" >&5
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
16272( exit $ac_status )
16273{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16274See \`config.log' for more details." >&5
16275echo "$as_me: error: cannot compute sizeof (long long), 77
16276See \`config.log' for more details." >&2;}
16277 { (exit 1); exit 1; }; }
16278fi
09d3439c 16279rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16280fi
16281fi
16282rm -f conftest.val
5c6fa7d2
RR
16283else
16284 ac_cv_sizeof_long_long=0
52127426 16285fi
4f57cf11 16286fi
e6cc62c6
VS
16287echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16288echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16289cat >>confdefs.h <<_ACEOF
4f57cf11 16290#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16291_ACEOF
4f57cf11
GD
16292
16293
16294 if test "$ac_cv_sizeof_long_long" != "0"; then
16295 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16296 fi
16297 ;;
16298 * )
e6cc62c6
VS
16299 echo "$as_me:$LINENO: checking for long long" >&5
16300echo $ECHO_N "checking for long long... $ECHO_C" >&6
16301if test "${ac_cv_type_long_long+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303else
16304 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16305#line $LINENO "configure"
e6cc62c6
VS
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311$ac_includes_default
16312int
16313main ()
16314{
16315if ((long long *) 0)
16316 return 0;
16317if (sizeof (long long))
16318 return 0;
16319 ;
16320 return 0;
16321}
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16325 (eval $ac_compile) 2>&5
e6cc62c6
VS
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } &&
09d3439c 16329 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_cv_type_long_long=yes
16336else
16337 echo "$as_me: failed program was:" >&5
16338sed 's/^/| /' conftest.$ac_ext >&5
16339
16340ac_cv_type_long_long=no
16341fi
09d3439c 16342rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16343fi
16344echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16345echo "${ECHO_T}$ac_cv_type_long_long" >&6
16346
16347echo "$as_me:$LINENO: checking size of long long" >&5
16348echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16349if test "${ac_cv_sizeof_long_long+set}" = set; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16351else
16352 if test "$ac_cv_type_long_long" = yes; then
16353 # The cast to unsigned long works around a bug in the HP C Compiler
16354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16356 # This bug is HP SR number 8606223364.
4f57cf11 16357 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16358 # Depending upon the size, compute the lo and hi bounds.
16359cat >conftest.$ac_ext <<_ACEOF
09d3439c 16360#line $LINENO "configure"
e6cc62c6
VS
16361/* confdefs.h. */
16362_ACEOF
16363cat confdefs.h >>conftest.$ac_ext
16364cat >>conftest.$ac_ext <<_ACEOF
16365/* end confdefs.h. */
16366$ac_includes_default
16367int
16368main ()
16369{
16370static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16371test_array [0] = 0
16372
16373 ;
16374 return 0;
16375}
16376_ACEOF
16377rm -f conftest.$ac_objext
16378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16379 (eval $ac_compile) 2>&5
e6cc62c6
VS
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
09d3439c 16383 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_lo=0 ac_mid=0
16390 while :; do
16391 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16392#line $LINENO "configure"
e6cc62c6
VS
16393/* confdefs.h. */
16394_ACEOF
16395cat confdefs.h >>conftest.$ac_ext
16396cat >>conftest.$ac_ext <<_ACEOF
16397/* end confdefs.h. */
16398$ac_includes_default
16399int
16400main ()
16401{
16402static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16403test_array [0] = 0
16404
16405 ;
16406 return 0;
16407}
16408_ACEOF
16409rm -f conftest.$ac_objext
16410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16411 (eval $ac_compile) 2>&5
e6cc62c6
VS
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
09d3439c 16415 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_hi=$ac_mid; break
16422else
16423 echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426ac_lo=`expr $ac_mid + 1`
09d3439c
VZ
16427 if test $ac_lo -le $ac_mid; then
16428 ac_lo= ac_hi=
16429 break
16430 fi
16431 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16432fi
09d3439c 16433rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16434 done
16435else
16436 echo "$as_me: failed program was:" >&5
16437sed 's/^/| /' conftest.$ac_ext >&5
16438
16439cat >conftest.$ac_ext <<_ACEOF
09d3439c 16440#line $LINENO "configure"
e6cc62c6
VS
16441/* confdefs.h. */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h. */
16446$ac_includes_default
16447int
16448main ()
16449{
16450static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16451test_array [0] = 0
16452
16453 ;
16454 return 0;
16455}
16456_ACEOF
16457rm -f conftest.$ac_objext
16458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16459 (eval $ac_compile) 2>&5
e6cc62c6
VS
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
09d3439c 16463 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_hi=-1 ac_mid=-1
16470 while :; do
16471 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16472#line $LINENO "configure"
e6cc62c6
VS
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479int
16480main ()
16481{
16482static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16483test_array [0] = 0
16484
16485 ;
16486 return 0;
16487}
16488_ACEOF
16489rm -f conftest.$ac_objext
16490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16491 (eval $ac_compile) 2>&5
e6cc62c6
VS
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
09d3439c 16495 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_lo=$ac_mid; break
16502else
16503 echo "$as_me: failed program was:" >&5
16504sed 's/^/| /' conftest.$ac_ext >&5
16505
16506ac_hi=`expr '(' $ac_mid ')' - 1`
09d3439c
VZ
16507 if test $ac_mid -le $ac_hi; then
16508 ac_lo= ac_hi=
16509 break
16510 fi
16511 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16512fi
09d3439c 16513rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16514 done
4f57cf11 16515else
e6cc62c6
VS
16516 echo "$as_me: failed program was:" >&5
16517sed 's/^/| /' conftest.$ac_ext >&5
16518
16519ac_lo= ac_hi=
16520fi
09d3439c 16521rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16522fi
09d3439c 16523rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16524# Binary search between lo and hi bounds.
16525while test "x$ac_lo" != "x$ac_hi"; do
16526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16527 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16528#line $LINENO "configure"
e6cc62c6
VS
16529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
16534$ac_includes_default
16535int
16536main ()
16537{
16538static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16539test_array [0] = 0
16540
16541 ;
16542 return 0;
16543}
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16547 (eval $ac_compile) 2>&5
e6cc62c6
VS
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
09d3439c 16551 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 ac_hi=$ac_mid
16558else
16559 echo "$as_me: failed program was:" >&5
16560sed 's/^/| /' conftest.$ac_ext >&5
16561
16562ac_lo=`expr '(' $ac_mid ')' + 1`
16563fi
09d3439c 16564rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16565done
16566case $ac_lo in
16567?*) ac_cv_sizeof_long_long=$ac_lo;;
16568'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16569See \`config.log' for more details." >&5
16570echo "$as_me: error: cannot compute sizeof (long long), 77
16571See \`config.log' for more details." >&2;}
16572 { (exit 1); exit 1; }; } ;;
16573esac
16574else
16575 if test "$cross_compiling" = yes; then
16576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16577See \`config.log' for more details." >&5
16578echo "$as_me: error: cannot run test program while cross compiling
16579See \`config.log' for more details." >&2;}
16580 { (exit 1); exit 1; }; }
16581else
16582 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16583#line $LINENO "configure"
e6cc62c6
VS
16584/* confdefs.h. */
16585_ACEOF
16586cat confdefs.h >>conftest.$ac_ext
16587cat >>conftest.$ac_ext <<_ACEOF
16588/* end confdefs.h. */
16589$ac_includes_default
16590long longval () { return (long) (sizeof (long long)); }
16591unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16592#include <stdio.h>
e6cc62c6
VS
16593#include <stdlib.h>
16594int
16595main ()
4f57cf11 16596{
e6cc62c6
VS
16597
16598 FILE *f = fopen ("conftest.val", "w");
16599 if (! f)
16600 exit (1);
16601 if (((long) (sizeof (long long))) < 0)
16602 {
16603 long i = longval ();
16604 if (i != ((long) (sizeof (long long))))
16605 exit (1);
16606 fprintf (f, "%ld\n", i);
16607 }
16608 else
16609 {
16610 unsigned long i = ulongval ();
16611 if (i != ((long) (sizeof (long long))))
16612 exit (1);
16613 fprintf (f, "%lu\n", i);
16614 }
16615 exit (ferror (f) || fclose (f) != 0);
16616
16617 ;
16618 return 0;
4f57cf11 16619}
e6cc62c6
VS
16620_ACEOF
16621rm -f conftest$ac_exeext
16622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16623 (eval $ac_link) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 ac_cv_sizeof_long_long=`cat conftest.val`
16633else
16634 echo "$as_me: program exited with status $ac_status" >&5
16635echo "$as_me: failed program was:" >&5
16636sed 's/^/| /' conftest.$ac_ext >&5
16637
16638( exit $ac_status )
16639{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16640See \`config.log' for more details." >&5
16641echo "$as_me: error: cannot compute sizeof (long long), 77
16642See \`config.log' for more details." >&2;}
16643 { (exit 1); exit 1; }; }
16644fi
09d3439c 16645rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16646fi
16647fi
16648rm -f conftest.val
4f57cf11 16649else
4f57cf11
GD
16650 ac_cv_sizeof_long_long=0
16651fi
7b4a847f 16652fi
e6cc62c6
VS
16653echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16654echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16655cat >>confdefs.h <<_ACEOF
21d1c967 16656#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16657_ACEOF
9e691f46 16658
8284b0c5 16659
21d1c967
GD
16660esac
16661
e6cc62c6
VS
16662echo "$as_me:$LINENO: checking size of wchar_t" >&5
16663echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16664if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16666else
e6cc62c6 16667
21d1c967 16668 if test "$cross_compiling" = yes; then
e6cc62c6 16669
2b5f62a0
VZ
16670 case "${host}" in
16671 *-pc-msdosdjgpp )
16672 wx_cv_sizeof_wchar_t=0
16673 ;;
16674 * )
16675 wx_cv_sizeof_wchar_t=4
16676 ;;
16677 esac
e6cc62c6
VS
16678
16679
6f72b082 16680else
e6cc62c6 16681 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16682#line $LINENO "configure"
e6cc62c6
VS
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
21d1c967 16688
2b5f62a0
VZ
16689 /* DJGPP only has fake wchar_t: */
16690 #ifdef __DJGPP__
16691 # error "fake wchar_t"
16692 #endif
21d1c967
GD
16693 #ifdef HAVE_WCHAR_H
16694 # ifdef __CYGWIN__
16695 # include <stddef.h>
16696 # endif
16697 # include <wchar.h>
16698 #endif
16699 #ifdef HAVE_STDLIB_H
16700 # include <stdlib.h>
16701 #endif
16702 #include <stdio.h>
16703 int main()
16704 {
16705 FILE *f=fopen("conftestval", "w");
16706 if (!f) exit(1);
16707 fprintf(f, "%i", sizeof(wchar_t));
16708 exit(0);
16709 }
e6cc62c6
VS
16710
16711_ACEOF
16712rm -f conftest$ac_exeext
16713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16714 (eval $ac_link) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
21d1c967 16723 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16724else
e6cc62c6
VS
16725 echo "$as_me: program exited with status $ac_status" >&5
16726echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
16728
16729( exit $ac_status )
16730wx_cv_sizeof_wchar_t=0
6f72b082 16731fi
09d3439c 16732rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16733fi
6f72b082 16734
3f345b47 16735fi
e6cc62c6
VS
16736echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16737echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16738
e6cc62c6 16739cat >>confdefs.h <<_ACEOF
21d1c967 16740#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16741_ACEOF
90dd450c 16742
8284b0c5 16743
21d1c967
GD
16744# Check whether --enable-largefile or --disable-largefile was given.
16745if test "${enable_largefile+set}" = set; then
16746 enableval="$enable_largefile"
3f345b47 16747
e6cc62c6 16748fi;
21d1c967
GD
16749if test "$enable_largefile" != no; then
16750 wx_largefile=no
e6cc62c6
VS
16751
16752 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16753echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16754if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
16757
16758 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16759#line $LINENO "configure"
e6cc62c6
VS
16760/* confdefs.h. */
16761_ACEOF
16762cat confdefs.h >>conftest.$ac_ext
16763cat >>conftest.$ac_ext <<_ACEOF
16764/* end confdefs.h. */
21d1c967
GD
16765#define _FILE_OFFSET_BITS 64
16766 #include <sys/types.h>
e6cc62c6
VS
16767int
16768main ()
16769{
21d1c967
GD
16770typedef struct {
16771 unsigned int field: sizeof(off_t) == 8;
16772} wxlf;
16773
e6cc62c6
VS
16774 ;
16775 return 0;
16776}
16777_ACEOF
16778rm -f conftest.$ac_objext
16779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16780 (eval $ac_compile) 2>&5
e6cc62c6
VS
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
09d3439c 16784 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
21d1c967 16790 ac_cv_sys_file_offset_bits=64
f6bcfd97 16791else
e6cc62c6
VS
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795ac_cv_sys_file_offset_bits=no
247f5006 16796fi
09d3439c 16797rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16798
a0b9e27f 16799
e6cc62c6
VS
16800fi
16801echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16802echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16803
16804 if test "$ac_cv_sys_file_offset_bits" != no; then
16805 wx_largefile=yes
e6cc62c6 16806 cat >>confdefs.h <<_ACEOF
21d1c967 16807#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16808_ACEOF
21d1c967
GD
16809
16810 fi
16811
16812 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16813
16814 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16815echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16816if test "${ac_cv_sys_large_files+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818else
16819
16820 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16821#line $LINENO "configure"
e6cc62c6
VS
16822/* confdefs.h. */
16823_ACEOF
16824cat confdefs.h >>conftest.$ac_ext
16825cat >>conftest.$ac_ext <<_ACEOF
16826/* end confdefs.h. */
21d1c967
GD
16827#define _LARGE_FILES 1
16828 #include <sys/types.h>
e6cc62c6
VS
16829int
16830main ()
16831{
21d1c967
GD
16832typedef struct {
16833 unsigned int field: sizeof(off_t) == 8;
16834} wxlf;
16835
e6cc62c6
VS
16836 ;
16837 return 0;
16838}
16839_ACEOF
16840rm -f conftest.$ac_objext
16841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16842 (eval $ac_compile) 2>&5
e6cc62c6
VS
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
09d3439c 16846 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
21d1c967 16852 ac_cv_sys_large_files=1
f6bcfd97 16853else
e6cc62c6
VS
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_cv_sys_large_files=no
247f5006 16858fi
09d3439c 16859rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16860
e6cc62c6
VS
16861
16862fi
16863echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16864echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16865
21d1c967
GD
16866 if test "$ac_cv_sys_large_files" != no; then
16867 wx_largefile=yes
e6cc62c6 16868 cat >>confdefs.h <<_ACEOF
21d1c967 16869#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16870_ACEOF
90dd450c 16871
90dd450c
VZ
16872 fi
16873
90dd450c 16874 fi
90dd450c 16875
e6cc62c6
VS
16876 echo "$as_me:$LINENO: checking if large file support is available" >&5
16877echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16878 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16879 cat >>confdefs.h <<\_ACEOF
21d1c967 16880#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16881_ACEOF
90dd450c 16882
90dd450c 16883 fi
e6cc62c6
VS
16884 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16885echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16886fi
90dd450c 16887
8284b0c5 16888
f02444d0 16889if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16890 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16891 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16892 else
e26c13cf 16893 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16894 fi
e26c13cf 16895 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16896fi
16897
e6cc62c6
VS
16898echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16899echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16900if test "${ac_cv_c_bigendian+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16902else
21d1c967
GD
16903 ac_cv_c_bigendian=unknown
16904# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 16905cat >conftest.$ac_ext <<_ACEOF
09d3439c 16906#line $LINENO "configure"
e6cc62c6
VS
16907/* confdefs.h. */
16908_ACEOF
16909cat confdefs.h >>conftest.$ac_ext
16910cat >>conftest.$ac_ext <<_ACEOF
16911/* end confdefs.h. */
21d1c967
GD
16912#include <sys/types.h>
16913#include <sys/param.h>
e6cc62c6
VS
16914int
16915main ()
16916{
21d1c967
GD
16917
16918#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16919 bogus endian macros
16920#endif
e6cc62c6
VS
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925rm -f conftest.$ac_objext
16926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16927 (eval $ac_compile) 2>&5
e6cc62c6
VS
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
09d3439c 16931 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; }; then
21d1c967 16937 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 16938cat >conftest.$ac_ext <<_ACEOF
09d3439c 16939#line $LINENO "configure"
e6cc62c6
VS
16940/* confdefs.h. */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h. */
21d1c967
GD
16945#include <sys/types.h>
16946#include <sys/param.h>
e6cc62c6
VS
16947int
16948main ()
16949{
21d1c967
GD
16950
16951#if BYTE_ORDER != BIG_ENDIAN
16952 not big endian
16953#endif
e6cc62c6
VS
16954 ;
16955 return 0;
16956}
16957_ACEOF
16958rm -f conftest.$ac_objext
16959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 16960 (eval $ac_compile) 2>&5
e6cc62c6
VS
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
09d3439c 16964 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
21d1c967 16970 ac_cv_c_bigendian=yes
3f345b47 16971else
e6cc62c6
VS
16972 echo "$as_me: failed program was:" >&5
16973sed 's/^/| /' conftest.$ac_ext >&5
16974
16975ac_cv_c_bigendian=no
3f345b47 16976fi
09d3439c 16977rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16978else
e6cc62c6
VS
16979 echo "$as_me: failed program was:" >&5
16980sed 's/^/| /' conftest.$ac_ext >&5
16981
3f345b47 16982fi
09d3439c 16983rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16984if test $ac_cv_c_bigendian = unknown; then
16985if test "$cross_compiling" = yes; then
16986 ac_cv_c_bigendian=unknown
10f2d63a 16987else
e6cc62c6 16988 cat >conftest.$ac_ext <<_ACEOF
09d3439c 16989#line $LINENO "configure"
e6cc62c6
VS
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
21d1c967
GD
16995main () {
16996 /* Are we little or big endian? From Harbison&Steele. */
16997 union
16998 {
16999 long l;
17000 char c[sizeof (long)];
17001 } u;
17002 u.l = 1;
17003 exit (u.c[sizeof (long) - 1] == 1);
17004}
e6cc62c6
VS
17005_ACEOF
17006rm -f conftest$ac_exeext
17007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008 (eval $ac_link) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
21d1c967 17017 ac_cv_c_bigendian=no
3f345b47 17018else
e6cc62c6
VS
17019 echo "$as_me: program exited with status $ac_status" >&5
17020echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023( exit $ac_status )
17024ac_cv_c_bigendian=yes
247f5006 17025fi
09d3439c 17026rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17027fi
3f345b47 17028fi
8168de4c 17029fi
e6cc62c6
VS
17030echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17031echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17032if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17033 { 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
17034echo "$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
17035fi
17036if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17037 cat >>confdefs.h <<\_ACEOF
247f5006 17038#define WORDS_BIGENDIAN 1
e6cc62c6 17039_ACEOF
247f5006
VZ
17040
17041fi
17042
17043
e6cc62c6
VS
17044
17045ac_ext=cc
17046ac_cpp='$CXXCPP $CPPFLAGS'
17047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17050echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17051echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17052if test -z "$CXXCPP"; then
e6cc62c6
VS
17053 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 # Double quotes because CXXCPP needs to be expanded
17057 for CXXCPP in "$CXX -E" "/lib/cpp"
17058 do
17059 ac_preproc_ok=false
17060for ac_cxx_preproc_warn_flag in '' yes
17061do
17062 # Use a header file that comes with gcc, so configuring glibc
17063 # with a fresh cross-compiler works.
17064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065 # <limits.h> exists even on freestanding compilers.
17066 # On the NeXT, cc -E runs the code through the compiler's parser,
17067 # not just through cpp. "Syntax error" is here to catch this case.
17068 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17069#line $LINENO "configure"
e6cc62c6
VS
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075#ifdef __STDC__
17076# include <limits.h>
17077#else
17078# include <assert.h>
17079#endif
09d3439c 17080 Syntax error
e6cc62c6
VS
17081_ACEOF
17082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } >/dev/null; then
17090 if test -s conftest.err; then
17091 ac_cpp_err=$ac_cxx_preproc_warn_flag
17092 else
17093 ac_cpp_err=
17094 fi
247f5006 17095else
e6cc62c6
VS
17096 ac_cpp_err=yes
17097fi
17098if test -z "$ac_cpp_err"; then
17099 :
17100else
17101 echo "$as_me: failed program was:" >&5
17102sed 's/^/| /' conftest.$ac_ext >&5
17103
17104 # Broken: fails on valid input.
17105continue
17106fi
17107rm -f conftest.err conftest.$ac_ext
17108
17109 # OK, works on sane cases. Now check whether non-existent headers
17110 # can be detected and how.
17111 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17112#line $LINENO "configure"
e6cc62c6
VS
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118#include <ac_nonexistent.h>
17119_ACEOF
17120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17122 ac_status=$?
17123 grep -v '^ *+' conftest.er1 >conftest.err
17124 rm -f conftest.er1
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } >/dev/null; then
17128 if test -s conftest.err; then
17129 ac_cpp_err=$ac_cxx_preproc_warn_flag
17130 else
17131 ac_cpp_err=
17132 fi
17133else
17134 ac_cpp_err=yes
17135fi
17136if test -z "$ac_cpp_err"; then
17137 # Broken: success on invalid input.
17138continue
17139else
17140 echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143 # Passes both tests.
17144ac_preproc_ok=:
17145break
17146fi
17147rm -f conftest.err conftest.$ac_ext
17148
17149done
17150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17151rm -f conftest.err conftest.$ac_ext
17152if $ac_preproc_ok; then
17153 break
17154fi
17155
17156 done
17157 ac_cv_prog_CXXCPP=$CXXCPP
17158
17159fi
17160 CXXCPP=$ac_cv_prog_CXXCPP
17161else
17162 ac_cv_prog_CXXCPP=$CXXCPP
17163fi
17164echo "$as_me:$LINENO: result: $CXXCPP" >&5
17165echo "${ECHO_T}$CXXCPP" >&6
17166ac_preproc_ok=false
17167for ac_cxx_preproc_warn_flag in '' yes
17168do
17169 # Use a header file that comes with gcc, so configuring glibc
17170 # with a fresh cross-compiler works.
17171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17172 # <limits.h> exists even on freestanding compilers.
17173 # On the NeXT, cc -E runs the code through the compiler's parser,
17174 # not just through cpp. "Syntax error" is here to catch this case.
17175 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17176#line $LINENO "configure"
e6cc62c6
VS
17177/* confdefs.h. */
17178_ACEOF
17179cat confdefs.h >>conftest.$ac_ext
17180cat >>conftest.$ac_ext <<_ACEOF
17181/* end confdefs.h. */
17182#ifdef __STDC__
17183# include <limits.h>
17184#else
17185# include <assert.h>
17186#endif
09d3439c 17187 Syntax error
e6cc62c6
VS
17188_ACEOF
17189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } >/dev/null; then
17197 if test -s conftest.err; then
17198 ac_cpp_err=$ac_cxx_preproc_warn_flag
17199 else
17200 ac_cpp_err=
17201 fi
17202else
17203 ac_cpp_err=yes
17204fi
17205if test -z "$ac_cpp_err"; then
21d1c967 17206 :
698dcdb6 17207else
e6cc62c6
VS
17208 echo "$as_me: failed program was:" >&5
17209sed 's/^/| /' conftest.$ac_ext >&5
17210
17211 # Broken: fails on valid input.
17212continue
17213fi
17214rm -f conftest.err conftest.$ac_ext
17215
17216 # OK, works on sane cases. Now check whether non-existent headers
17217 # can be detected and how.
17218 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17219#line $LINENO "configure"
e6cc62c6
VS
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225#include <ac_nonexistent.h>
17226_ACEOF
17227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } >/dev/null; then
17235 if test -s conftest.err; then
17236 ac_cpp_err=$ac_cxx_preproc_warn_flag
17237 else
17238 ac_cpp_err=
17239 fi
17240else
17241 ac_cpp_err=yes
247f5006 17242fi
e6cc62c6
VS
17243if test -z "$ac_cpp_err"; then
17244 # Broken: success on invalid input.
17245continue
17246else
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 # Passes both tests.
17251ac_preproc_ok=:
17252break
328a083c 17253fi
e6cc62c6
VS
17254rm -f conftest.err conftest.$ac_ext
17255
17256done
17257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17258rm -f conftest.err conftest.$ac_ext
17259if $ac_preproc_ok; then
17260 :
17261else
17262 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17263See \`config.log' for more details." >&5
17264echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17265See \`config.log' for more details." >&2;}
17266 { (exit 1); exit 1; }; }
90dd450c 17267fi
e6cc62c6
VS
17268
17269ac_ext=cc
17270ac_cpp='$CXXCPP $CPPFLAGS'
17271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17274
1e6feb95 17275
1725144d 17276
21d1c967 17277 if test "$cross_compiling" = "yes"; then
e6cc62c6 17278 cat >>confdefs.h <<\_ACEOF
21d1c967 17279#define wxUSE_IOSTREAMH 1
e6cc62c6 17280_ACEOF
ab9b9eab 17281
21d1c967 17282 else
e6cc62c6
VS
17283
17284
17285 ac_ext=cc
5c6fa7d2 17286ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17290
52127426 17291
247f5006 17292
e6cc62c6 17293for ac_header in iostream
21d1c967 17294do
e6cc62c6
VS
17295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17296if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297 echo "$as_me:$LINENO: checking for $ac_header" >&5
17298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17299if eval "test \"\${$as_ac_Header+set}\" = set"; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301fi
17302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17304else
17305 # Is the header compilable?
17306echo "$as_me:$LINENO: checking $ac_header usability" >&5
17307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17308cat >conftest.$ac_ext <<_ACEOF
09d3439c 17309#line $LINENO "configure"
e6cc62c6
VS
17310/* confdefs.h. */
17311_ACEOF
17312cat confdefs.h >>conftest.$ac_ext
17313cat >>conftest.$ac_ext <<_ACEOF
17314/* end confdefs.h. */
17315$ac_includes_default
17316#include <$ac_header>
17317_ACEOF
17318rm -f conftest.$ac_objext
17319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17320 (eval $ac_compile) 2>&5
e6cc62c6
VS
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
09d3439c 17324 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_header_compiler=yes
17331else
17332 echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
17335ac_header_compiler=no
17336fi
09d3439c 17337rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17339echo "${ECHO_T}$ac_header_compiler" >&6
17340
17341# Is the header present?
17342echo "$as_me:$LINENO: checking $ac_header presence" >&5
17343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17344cat >conftest.$ac_ext <<_ACEOF
09d3439c 17345#line $LINENO "configure"
e6cc62c6
VS
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351#include <$ac_header>
17352_ACEOF
17353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } >/dev/null; then
17361 if test -s conftest.err; then
17362 ac_cpp_err=$ac_cxx_preproc_warn_flag
17363 else
17364 ac_cpp_err=
17365 fi
17366else
17367 ac_cpp_err=yes
17368fi
17369if test -z "$ac_cpp_err"; then
17370 ac_header_preproc=yes
17371else
17372 echo "$as_me: failed program was:" >&5
17373sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ac_header_preproc=no
17376fi
17377rm -f conftest.err conftest.$ac_ext
17378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17379echo "${ECHO_T}$ac_header_preproc" >&6
17380
17381# So? What about this header?
09d3439c
VZ
17382case $ac_header_compiler:$ac_header_preproc in
17383 yes:no )
e6cc62c6
VS
17384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
17386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17388 (
17389 cat <<\_ASBOX
17390## ------------------------------------ ##
17391## Report this to bug-autoconf@gnu.org. ##
17392## ------------------------------------ ##
17393_ASBOX
17394 ) |
17395 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 17396 ;;
09d3439c 17397 no:yes )
e6cc62c6
VS
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17404 (
17405 cat <<\_ASBOX
09d3439c
VZ
17406## ------------------------------------ ##
17407## Report this to bug-autoconf@gnu.org. ##
17408## ------------------------------------ ##
e6cc62c6
VS
17409_ASBOX
17410 ) |
17411 sed "s/^/$as_me: WARNING: /" >&2
17412 ;;
17413esac
17414echo "$as_me:$LINENO: checking for $ac_header" >&5
17415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17416if eval "test \"\${$as_ac_Header+set}\" = set"; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
09d3439c 17419 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17420fi
e6cc62c6
VS
17421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17423
90dd450c 17424fi
e6cc62c6
VS
17425if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17428_ACEOF
17429
90dd450c 17430fi
e6cc62c6 17431
21d1c967 17432done
10f2d63a 17433
8284b0c5 17434
21d1c967
GD
17435 if test "$ac_cv_header_iostream" = "yes" ; then
17436 :
17437 else
e6cc62c6 17438 cat >>confdefs.h <<\_ACEOF
21d1c967 17439#define wxUSE_IOSTREAMH 1
e6cc62c6 17440_ACEOF
788deba1 17441
90dd450c 17442 fi
ab9b9eab 17443
21d1c967 17444 ac_ext=c
21d1c967 17445ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17448ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17449
21d1c967 17450 fi
ab9b9eab 17451
52127426 17452
8284b0c5 17453
e6cc62c6
VS
17454 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17455echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17456if test "${wx_cv_cpp_bool+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17458else
e6cc62c6
VS
17459
17460
17461
17462 ac_ext=cc
5c6fa7d2 17463ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17467
8284b0c5 17468
e6cc62c6 17469 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17470#line $LINENO "configure"
e6cc62c6
VS
17471/* confdefs.h. */
17472_ACEOF
17473cat confdefs.h >>conftest.$ac_ext
17474cat >>conftest.$ac_ext <<_ACEOF
17475/* end confdefs.h. */
21d1c967 17476
e6cc62c6
VS
17477
17478int
17479main ()
17480{
21d1c967
GD
17481
17482 bool b = true;
17483
17484 return 0;
e6cc62c6
VS
17485
17486 ;
17487 return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext
17491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17492 (eval $ac_compile) 2>&5
e6cc62c6
VS
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
09d3439c 17496 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502
21d1c967 17503 wx_cv_cpp_bool=yes
e6cc62c6 17504
698dcdb6 17505else
e6cc62c6
VS
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509
21d1c967 17510 wx_cv_cpp_bool=no
e6cc62c6
VS
17511
17512
698dcdb6 17513fi
09d3439c 17514rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17515
17516 ac_ext=c
21d1c967 17517ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17520ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17521
a0b9e27f 17522
e6cc62c6
VS
17523fi
17524echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17525echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17526
17527 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17528 cat >>confdefs.h <<\_ACEOF
21d1c967 17529#define HAVE_BOOL 1
e6cc62c6 17530_ACEOF
ab9b9eab 17531
21d1c967
GD
17532 fi
17533
52127426 17534
8284b0c5 17535
e6cc62c6
VS
17536 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17537echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17538if test "${wx_cv_explicit+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17540else
e6cc62c6
VS
17541
17542
17543
17544 ac_ext=cc
5c6fa7d2 17545ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17549
8284b0c5 17550
e6cc62c6 17551 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17552#line $LINENO "configure"
e6cc62c6
VS
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
986ecc86
VZ
17558
17559 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17560
17561int
17562main ()
17563{
986ecc86
VZ
17564
17565 return 0;
e6cc62c6
VS
17566
17567 ;
17568 return 0;
17569}
17570_ACEOF
17571rm -f conftest.$ac_objext
17572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17573 (eval $ac_compile) 2>&5
e6cc62c6
VS
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
09d3439c 17577 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583
17584 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17585#line $LINENO "configure"
e6cc62c6
VS
17586/* confdefs.h. */
17587_ACEOF
17588cat confdefs.h >>conftest.$ac_ext
17589cat >>conftest.$ac_ext <<_ACEOF
17590/* end confdefs.h. */
986ecc86
VZ
17591
17592 class Foo { public: explicit Foo(int) {} };
17593 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17594
17595int
17596main ()
17597{
986ecc86
VZ
17598
17599 TakeFoo(17);
17600 return 0;
e6cc62c6
VS
17601
17602 ;
17603 return 0;
17604}
17605_ACEOF
17606rm -f conftest.$ac_objext
17607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17608 (eval $ac_compile) 2>&5
e6cc62c6
VS
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
09d3439c 17612 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
986ecc86
VZ
17618 wx_cv_explicit=no
17619else
e6cc62c6
VS
17620 echo "$as_me: failed program was:" >&5
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
17623wx_cv_explicit=yes
17624
986ecc86 17625fi
09d3439c 17626rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17627
986ecc86 17628else
e6cc62c6
VS
17629 echo "$as_me: failed program was:" >&5
17630sed 's/^/| /' conftest.$ac_ext >&5
17631
17632wx_cv_explicit=no
17633
986ecc86 17634fi
09d3439c 17635rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17636
17637 ac_ext=c
986ecc86 17638ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17642
a0b9e27f 17643
e6cc62c6
VS
17644fi
17645echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17646echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17647
17648 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17649 cat >>confdefs.h <<\_ACEOF
986ecc86 17650#define HAVE_EXPLICIT 1
e6cc62c6 17651_ACEOF
986ecc86
VZ
17652
17653 fi
17654
8284b0c5 17655
e6cc62c6
VS
17656echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17657echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17658if test "${ac_cv_cxx_const_cast+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17660else
521196a2 17661
521196a2 17662
e6cc62c6
VS
17663 ac_ext=cc
17664ac_cpp='$CXXCPP $CPPFLAGS'
17665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17668
17669 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17670#line $LINENO "configure"
e6cc62c6
VS
17671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
17676
17677int
17678main ()
17679{
521196a2 17680int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17681 ;
17682 return 0;
17683}
17684_ACEOF
17685rm -f conftest.$ac_objext
17686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17687 (eval $ac_compile) 2>&5
e6cc62c6
VS
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
09d3439c 17691 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
521196a2
MB
17697 ac_cv_cxx_const_cast=yes
17698else
e6cc62c6
VS
17699 echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702ac_cv_cxx_const_cast=no
521196a2 17703fi
09d3439c 17704rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17705 ac_ext=c
521196a2 17706ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17709ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17710
17711
17712fi
e6cc62c6
VS
17713echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17714echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17715if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17716
17717cat >>confdefs.h <<\_ACEOF
17718#define HAVE_CONST_CAST
17719_ACEOF
521196a2
MB
17720
17721fi
17722
17723
e87b7833
MB
17724if test "$wxUSE_STL" = "yes"; then
17725 ac_ext=cc
17726ac_cpp='$CXXCPP $CPPFLAGS'
17727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17730
17731
17732 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17733echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17734 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17735#line $LINENO "configure"
e87b7833
MB
17736/* confdefs.h. */
17737_ACEOF
17738cat confdefs.h >>conftest.$ac_ext
17739cat >>conftest.$ac_ext <<_ACEOF
17740/* end confdefs.h. */
17741#include <string>
17742 #include <functional>
17743 #include <algorithm>
17744 #include <vector>
17745 #include <list>
17746int
17747main ()
17748{
17749std::vector<int> moo;
17750 std::list<int> foo;
17751 std::vector<int>::iterator it =
17752 std::find_if(moo.begin(), moo.end(),
17753 std::bind2nd(std::less<int>(), 3));
17754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext
17759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17760 (eval $ac_compile) 2>&5
e87b7833
MB
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
09d3439c 17764 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 echo "$as_me:$LINENO: result: yes" >&5
17771echo "${ECHO_T}yes" >&6
17772else
17773 echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776echo "$as_me:$LINENO: result: no" >&5
17777echo "${ECHO_T}no" >&6
17778 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17779echo "$as_me: error: Basic STL functionality missing" >&2;}
17780 { (exit 1); exit 1; }; }
17781fi
09d3439c 17782rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
17783
17784 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17785echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17786 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17787#line $LINENO "configure"
e87b7833
MB
17788/* confdefs.h. */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h. */
17793#include <string>
17794int
17795main ()
17796{
17797std::wstring foo;
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17804 (eval $ac_compile) 2>&5
e87b7833
MB
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
09d3439c 17808 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 echo "$as_me:$LINENO: result: yes" >&5
17815echo "${ECHO_T}yes" >&6
17816 cat >>confdefs.h <<\_ACEOF
17817#define HAVE_STD_WSTRING 1
17818_ACEOF
17819
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824echo "$as_me:$LINENO: result: no" >&5
17825echo "${ECHO_T}no" >&6
17826fi
09d3439c 17827rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
17828
17829 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17830echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17831 cat >conftest.$ac_ext <<_ACEOF
09d3439c 17832#line $LINENO "configure"
e87b7833
MB
17833/* confdefs.h. */
17834_ACEOF
17835cat confdefs.h >>conftest.$ac_ext
17836cat >>conftest.$ac_ext <<_ACEOF
17837/* end confdefs.h. */
17838#include <string>
17839int
17840main ()
17841{
17842std::string foo, bar;
17843 foo.compare(bar);
17844 foo.compare(1, 1, bar);
17845 foo.compare(1, 1, bar, 1, 1);
17846 foo.compare("");
17847 foo.compare(1, 1, "");
17848 foo.compare(1, 1, "", 2);
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext
17854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 17855 (eval $ac_compile) 2>&5
e87b7833
MB
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
09d3439c 17859 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 echo "$as_me:$LINENO: result: yes" >&5
17866echo "${ECHO_T}yes" >&6
17867 cat >>confdefs.h <<\_ACEOF
17868#define HAVE_STD_STRING_COMPARE 1
17869_ACEOF
17870
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875echo "$as_me:$LINENO: result: no" >&5
17876echo "${ECHO_T}no" >&6
17877fi
09d3439c 17878rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
17879
17880 ac_ext=c
17881ac_cpp='$CPP $CPPFLAGS'
17882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884ac_compiler_gnu=$ac_cv_c_compiler_gnu
17885
17886fi
17887
8284b0c5 17888
21d1c967
GD
17889SEARCH_INCLUDE="\
17890 /usr/local/include \
17891 \
17892 /usr/Motif-1.2/include \
17893 /usr/Motif-2.1/include \
17894 \
17895 /usr/include/Motif1.2 \
17896 /opt/xpm/include/X11 \
17897 /opt/GBxpm/include/ \
17898 /opt/GBxpm/X11/include/ \
17899 \
17900 /usr/Motif1.2/include \
17901 /usr/dt/include \
17902 /usr/openwin/include \
17903 \
17904 /usr/include/Xm \
17905 \
17906 /usr/X11R6/include \
17907 /usr/X11R6.4/include \
17908 /usr/X11R5/include \
17909 /usr/X11R4/include \
17910 \
17911 /usr/include/X11R6 \
17912 /usr/include/X11R5 \
17913 /usr/include/X11R4 \
17914 \
17915 /usr/local/X11R6/include \
17916 /usr/local/X11R5/include \
17917 /usr/local/X11R4/include \
17918 \
17919 /usr/local/include/X11R6 \
17920 /usr/local/include/X11R5 \
17921 /usr/local/include/X11R4 \
17922 \
17923 /usr/X11/include \
17924 /usr/include/X11 \
17925 /usr/local/X11/include \
17926 /usr/local/include/X11 \
17927 \
17928 /usr/X386/include \
17929 /usr/x386/include \
17930 /usr/XFree86/include/X11 \
17931 \
17932 X:/XFree86/include \
17933 X:/XFree86/include/X11 \
17934 \
17935 /usr/include/gtk \
17936 /usr/local/include/gtk \
17937 /usr/include/glib \
17938 /usr/local/include/glib \
17939 \
17940 /usr/include/qt \
17941 /usr/local/include/qt \
17942 \
17943 /usr/include/windows \
17944 /usr/include/wine \
17945 /usr/local/include/wine \
17946 \
17947 /usr/unsupported/include \
17948 /usr/athena/include \
17949 /usr/local/x11r5/include \
17950 /usr/lpp/Xamples/include \
17951 \
2b5f62a0 17952 /usr/openwin/share/include"
21d1c967
GD
17953
17954SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17955
8284b0c5 17956
e6cc62c6 17957cat >confcache <<\_ACEOF
21d1c967
GD
17958# This file is a shell script that caches the results of configure
17959# tests run on this system so they can be shared between configure
e6cc62c6
VS
17960# scripts and configure runs, see configure's option --config-cache.
17961# It is not useful on other systems. If it contains results you don't
17962# want to keep, you may remove or edit it.
21d1c967 17963#
e6cc62c6
VS
17964# config.status only pays attention to the cache file if you give it
17965# the --recheck option to rerun configure.
21d1c967 17966#
e6cc62c6
VS
17967# `ac_cv_env_foo' variables (set or unset) will be overridden when
17968# loading this file, other *unset* `ac_cv_foo' will be assigned the
17969# following values.
17970
17971_ACEOF
17972
21d1c967
GD
17973# The following way of writing the cache mishandles newlines in values,
17974# but we know of no workaround that is simple, portable, and efficient.
17975# So, don't put newlines in cache variables' values.
17976# Ultrix sh set writes to stderr and can't be redirected directly,
17977# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17978{
17979 (set) 2>&1 |
17980 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17981 *ac_space=\ *)
17982 # `set' does not quote correctly, so add quotes (double-quote
17983 # substitution turns \\\\ into \\, and sed turns \\ into \).
17984 sed -n \
09d3439c
VZ
17985 "s/'/'\\\\''/g;
17986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
17987 ;;
17988 *)
17989 # `set' quotes correctly as required by POSIX, so do not add quotes.
17990 sed -n \
09d3439c 17991 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
17992 ;;
17993 esac;
17994} |
17995 sed '
17996 t clear
17997 : clear
17998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17999 t end
18000 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18001 : end' >>confcache
18002if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18003 if test -w $cache_file; then
e6cc62c6
VS
18004 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18005 cat confcache >$cache_file
21d1c967
GD
18006 else
18007 echo "not updating unwritable cache $cache_file"
18008 fi
ab9b9eab 18009fi
21d1c967 18010rm -f confcache
ab9b9eab 18011
fe0895cf 18012if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18013 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18014echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18015if test "${wx_cv_lib_glibc21+set}" = set; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18017else
18018
18019 cat >conftest.$ac_ext <<_ACEOF
09d3439c 18020#line $LINENO "configure"
e6cc62c6
VS
18021/* confdefs.h. */
18022_ACEOF
18023cat confdefs.h >>conftest.$ac_ext
18024cat >>conftest.$ac_ext <<_ACEOF
18025/* end confdefs.h. */
21d1c967 18026#include <features.h>
e6cc62c6
VS
18027int
18028main ()
18029{
ab9b9eab 18030
21d1c967
GD
18031 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18032 #error not glibc2.1
18033 #endif
e6cc62c6
VS
18034
18035 ;
18036 return 0;
18037}
18038_ACEOF
18039rm -f conftest.$ac_objext
18040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 18041 (eval $ac_compile) 2>&5
e6cc62c6
VS
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
09d3439c 18045 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051
21d1c967 18052 wx_cv_lib_glibc21=yes
e6cc62c6 18053
698dcdb6 18054else
e6cc62c6
VS
18055 echo "$as_me: failed program was:" >&5
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
18058
21d1c967 18059 wx_cv_lib_glibc21=no
e6cc62c6
VS
18060
18061
247f5006 18062fi
09d3439c 18063rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18064
e6cc62c6
VS
18065fi
18066echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18067echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18068 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18069 cat >>confdefs.h <<\_ACEOF
21d1c967 18070#define wxHAVE_GLIBC2 1
e6cc62c6 18071_ACEOF
1e487827 18072
90dd450c 18073 fi
ab9b9eab
VZ
18074fi
18075
5c0a20c3
VZ
18076if test "x$wx_cv_lib_glibc21" = "xyes"; then
18077 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18078 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18079#define _GNU_SOURCE 1
e6cc62c6 18080_ACEOF
5c0a20c3
VZ
18081
18082 fi
18083fi
18084
8284b0c5
MB
18085
18086
21d1c967 18087if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18088 cat >>confdefs.h <<\_ACEOF
21d1c967 18089#define wxUSE_REGEX 1
e6cc62c6 18090_ACEOF
698dcdb6 18091
8284b0c5 18092
30f2fa6c
VS
18093 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18094 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18095echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18096 wxUSE_REGEX=builtin
18097 fi
18098
21d1c967 18099 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18100 if test "${ac_cv_header_regex_h+set}" = set; then
18101 echo "$as_me:$LINENO: checking for regex.h" >&5
18102echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18103if test "${ac_cv_header_regex_h+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18105fi
18106echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18107echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18108else
18109 # Is the header compilable?
18110echo "$as_me:$LINENO: checking regex.h usability" >&5
18111echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18112cat >conftest.$ac_ext <<_ACEOF
09d3439c 18113#line $LINENO "configure"
e6cc62c6
VS
18114/* confdefs.h. */
18115_ACEOF
18116cat confdefs.h >>conftest.$ac_ext
18117cat >>conftest.$ac_ext <<_ACEOF
18118/* end confdefs.h. */
18119$ac_includes_default
247f5006 18120#include <regex.h>
e6cc62c6
VS
18121_ACEOF
18122rm -f conftest.$ac_objext
18123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 18124 (eval $ac_compile) 2>&5
e6cc62c6
VS
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
09d3439c 18128 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 ac_header_compiler=yes
18135else
18136 echo "$as_me: failed program was:" >&5
18137sed 's/^/| /' conftest.$ac_ext >&5
18138
18139ac_header_compiler=no
18140fi
09d3439c 18141rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18143echo "${ECHO_T}$ac_header_compiler" >&6
18144
18145# Is the header present?
18146echo "$as_me:$LINENO: checking regex.h presence" >&5
18147echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18148cat >conftest.$ac_ext <<_ACEOF
09d3439c 18149#line $LINENO "configure"
e6cc62c6
VS
18150/* confdefs.h. */
18151_ACEOF
18152cat confdefs.h >>conftest.$ac_ext
18153cat >>conftest.$ac_ext <<_ACEOF
18154/* end confdefs.h. */
18155#include <regex.h>
18156_ACEOF
18157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } >/dev/null; then
18165 if test -s conftest.err; then
18166 ac_cpp_err=$ac_c_preproc_warn_flag
18167 else
18168 ac_cpp_err=
18169 fi
18170else
18171 ac_cpp_err=yes
18172fi
18173if test -z "$ac_cpp_err"; then
18174 ac_header_preproc=yes
18175else
18176 echo "$as_me: failed program was:" >&5
18177sed 's/^/| /' conftest.$ac_ext >&5
18178
18179 ac_header_preproc=no
18180fi
18181rm -f conftest.err conftest.$ac_ext
18182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18183echo "${ECHO_T}$ac_header_preproc" >&6
18184
18185# So? What about this header?
09d3439c
VZ
18186case $ac_header_compiler:$ac_header_preproc in
18187 yes:no )
e6cc62c6
VS
18188 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18189echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
18190 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18191echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18192 (
18193 cat <<\_ASBOX
18194## ------------------------------------ ##
18195## Report this to bug-autoconf@gnu.org. ##
18196## ------------------------------------ ##
18197_ASBOX
18198 ) |
18199 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18200 ;;
09d3439c 18201 no:yes )
e6cc62c6
VS
18202 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18203echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
09d3439c
VZ
18204 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18205echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18206 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18207echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18208 (
18209 cat <<\_ASBOX
09d3439c
VZ
18210## ------------------------------------ ##
18211## Report this to bug-autoconf@gnu.org. ##
18212## ------------------------------------ ##
e6cc62c6
VS
18213_ASBOX
18214 ) |
18215 sed "s/^/$as_me: WARNING: /" >&2
18216 ;;
18217esac
18218echo "$as_me:$LINENO: checking for regex.h" >&5
18219echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18220if test "${ac_cv_header_regex_h+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18222else
18223 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18224fi
e6cc62c6
VS
18225echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18226echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18227
698dcdb6 18228fi
e6cc62c6
VS
18229if test $ac_cv_header_regex_h = yes; then
18230
18231for ac_func in regcomp
21d1c967 18232do
e6cc62c6
VS
18233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18234echo "$as_me:$LINENO: checking for $ac_func" >&5
18235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18236if eval "test \"\${$as_ac_var+set}\" = set"; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238else
18239 cat >conftest.$ac_ext <<_ACEOF
09d3439c 18240#line $LINENO "configure"
e6cc62c6
VS
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
a0b9e27f 18246/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18247 which can conflict with char $ac_func (); below.
18248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249 <limits.h> exists even on freestanding compilers. */
18250#ifdef __STDC__
18251# include <limits.h>
18252#else
18253# include <assert.h>
18254#endif
21d1c967 18255/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18256#ifdef __cplusplus
18257extern "C"
18258{
18259#endif
21d1c967 18260/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18261 builtin and then its argument prototype would still apply. */
18262char $ac_func ();
21d1c967
GD
18263/* The GNU C library defines this for functions which it implements
18264 to always fail with ENOSYS. Some functions are actually named
18265 something starting with __ and the normal name is an alias. */
18266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18267choke me
18268#else
e6cc62c6
VS
18269char (*f) () = $ac_func;
18270#endif
18271#ifdef __cplusplus
18272}
21d1c967 18273#endif
90dd450c 18274
e6cc62c6
VS
18275int
18276main ()
18277{
18278return f != $ac_func;
18279 ;
18280 return 0;
18281}
18282_ACEOF
18283rm -f conftest.$ac_objext conftest$ac_exeext
18284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 18285 (eval $ac_link) 2>&5
e6cc62c6
VS
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
09d3439c 18289 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 eval "$as_ac_var=yes"
18296else
18297 echo "$as_me: failed program was:" >&5
18298sed 's/^/| /' conftest.$ac_ext >&5
18299
18300eval "$as_ac_var=no"
18301fi
09d3439c 18302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18303fi
18304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18306if test `eval echo '${'$as_ac_var'}'` = yes; then
18307 cat >>confdefs.h <<_ACEOF
18308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18309_ACEOF
5c6fa7d2 18310
698dcdb6 18311fi
21d1c967
GD
18312done
18313
ab9b9eab
VZ
18314fi
18315
8284b0c5 18316
e6cc62c6 18317
21d1c967
GD
18318 if test "x$ac_cv_func_regcomp" != "xyes"; then
18319 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18320 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18321echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18322 { (exit 1); exit 1; }; }
21d1c967 18323 else
e6cc62c6
VS
18324 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18325echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18326 wxUSE_REGEX=builtin
18327 fi
18328 else
18329 wxUSE_REGEX=sys
18330 fi
ab9b9eab 18331 fi
21d1c967 18332fi
90dd450c 18333
8284b0c5 18334
21d1c967
GD
18335ZLIB_LINK=
18336if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18337 cat >>confdefs.h <<\_ACEOF
21d1c967 18338#define wxUSE_ZLIB 1
e6cc62c6 18339_ACEOF
21d1c967 18340
8284b0c5 18341
21d1c967 18342 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18343 if test "$USE_DARWIN" = 1; then
18344 system_zlib_h_ok="yes"
18345 else
e6cc62c6
VS
18346 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18347echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18348if test "${ac_cv_header_zlib_h+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18350else
18351 if test "$cross_compiling" = yes; then
89e6bf6d 18352 unset ac_cv_header_zlib_h
e6cc62c6 18353
d643b80e 18354else
e6cc62c6 18355 cat >conftest.$ac_ext <<_ACEOF
09d3439c 18356#line $LINENO "configure"
e6cc62c6
VS
18357/* confdefs.h. */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h. */
18362
ef33c576 18363 #include <zlib.h>
d775acfa 18364 #include <stdio.h>
d643b80e 18365
d775acfa
VZ
18366 int main()
18367 {
18368 FILE *f=fopen("conftestval", "w");
18369 if (!f) exit(1);
18370 fprintf(f, "%s",
18371 ZLIB_VERSION[0] == '1' &&
18372 (ZLIB_VERSION[2] > '1' ||
18373 (ZLIB_VERSION[2] == '1' &&
18374 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18375 exit(0);
18376 }
e6cc62c6
VS
18377
18378_ACEOF
18379rm -f conftest$ac_exeext
18380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381 (eval $ac_link) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
d643b80e
VZ
18390 ac_cv_header_zlib_h=`cat conftestval`
18391else
e6cc62c6
VS
18392 echo "$as_me: program exited with status $ac_status" >&5
18393echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396( exit $ac_status )
18397ac_cv_header_zlib_h=no
d643b80e 18398fi
09d3439c 18399rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18400fi
18401
d643b80e 18402fi
e6cc62c6
VS
18403echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18404echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18405 if test "${ac_cv_header_zlib_h+set}" = set; then
18406 echo "$as_me:$LINENO: checking for zlib.h" >&5
18407echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18408if test "${ac_cv_header_zlib_h+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18410fi
18411echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18412echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18413else
e6cc62c6
VS
18414 # Is the header compilable?
18415echo "$as_me:$LINENO: checking zlib.h usability" >&5
18416echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18417cat >conftest.$ac_ext <<_ACEOF
09d3439c 18418#line $LINENO "configure"
e6cc62c6
VS
18419/* confdefs.h. */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h. */
18424$ac_includes_default
89e6bf6d 18425#include <zlib.h>
e6cc62c6
VS
18426_ACEOF
18427rm -f conftest.$ac_objext
18428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 18429 (eval $ac_compile) 2>&5
e6cc62c6
VS
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
09d3439c 18433 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_header_compiler=yes
18440else
18441 echo "$as_me: failed program was:" >&5
18442sed 's/^/| /' conftest.$ac_ext >&5
18443
18444ac_header_compiler=no
18445fi
09d3439c 18446rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18447echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18448echo "${ECHO_T}$ac_header_compiler" >&6
18449
18450# Is the header present?
18451echo "$as_me:$LINENO: checking zlib.h presence" >&5
18452echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18453cat >conftest.$ac_ext <<_ACEOF
09d3439c 18454#line $LINENO "configure"
e6cc62c6
VS
18455/* confdefs.h. */
18456_ACEOF
18457cat confdefs.h >>conftest.$ac_ext
18458cat >>conftest.$ac_ext <<_ACEOF
18459/* end confdefs.h. */
18460#include <zlib.h>
18461_ACEOF
18462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } >/dev/null; then
18470 if test -s conftest.err; then
18471 ac_cpp_err=$ac_c_preproc_warn_flag
18472 else
18473 ac_cpp_err=
18474 fi
18475else
18476 ac_cpp_err=yes
18477fi
18478if test -z "$ac_cpp_err"; then
18479 ac_header_preproc=yes
18480else
18481 echo "$as_me: failed program was:" >&5
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_header_preproc=no
18485fi
18486rm -f conftest.err conftest.$ac_ext
18487echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18488echo "${ECHO_T}$ac_header_preproc" >&6
18489
18490# So? What about this header?
09d3439c
VZ
18491case $ac_header_compiler:$ac_header_preproc in
18492 yes:no )
e6cc62c6
VS
18493 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18494echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
18495 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18496echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18497 (
18498 cat <<\_ASBOX
18499## ------------------------------------ ##
18500## Report this to bug-autoconf@gnu.org. ##
18501## ------------------------------------ ##
18502_ASBOX
18503 ) |
18504 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18505 ;;
09d3439c 18506 no:yes )
e6cc62c6
VS
18507 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18508echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
09d3439c
VZ
18509 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18510echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18511 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18512echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18513 (
18514 cat <<\_ASBOX
09d3439c
VZ
18515## ------------------------------------ ##
18516## Report this to bug-autoconf@gnu.org. ##
18517## ------------------------------------ ##
e6cc62c6
VS
18518_ASBOX
18519 ) |
18520 sed "s/^/$as_me: WARNING: /" >&2
18521 ;;
18522esac
18523echo "$as_me:$LINENO: checking for zlib.h" >&5
18524echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18525if test "${ac_cv_header_zlib_h+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18527else
e6cc62c6
VS
18528 ac_cv_header_zlib_h=$ac_header_preproc
18529fi
18530echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18531echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18532
89e6bf6d
VZ
18533fi
18534
d643b80e 18535
e6cc62c6 18536
d775acfa
VZ
18537 system_zlib_h_ok=$ac_cv_header_zlib_h
18538 fi
18539
18540 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18541 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18542echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18543if test "${ac_cv_lib_z_deflate+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18545else
e6cc62c6 18546 ac_check_lib_save_LIBS=$LIBS
21d1c967 18547LIBS="-lz $LIBS"
e6cc62c6 18548cat >conftest.$ac_ext <<_ACEOF
09d3439c 18549#line $LINENO "configure"
e6cc62c6
VS
18550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h. */
18555
21d1c967 18556/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18557#ifdef __cplusplus
18558extern "C"
18559#endif
21d1c967 18560/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18561 builtin and then its argument prototype would still apply. */
18562char deflate ();
18563int
18564main ()
18565{
18566deflate ();
18567 ;
18568 return 0;
18569}
18570_ACEOF
18571rm -f conftest.$ac_objext conftest$ac_exeext
18572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 18573 (eval $ac_link) 2>&5
e6cc62c6
VS
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
09d3439c 18577 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_lib_z_deflate=yes
18584else
18585 echo "$as_me: failed program was:" >&5
18586sed 's/^/| /' conftest.$ac_ext >&5
18587
18588ac_cv_lib_z_deflate=no
18589fi
09d3439c 18590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18591LIBS=$ac_check_lib_save_LIBS
18592fi
18593echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18594echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18595if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18596 ZLIB_LINK=" -lz"
a0b9e27f 18597fi
698dcdb6 18598
d643b80e 18599 fi
247f5006 18600
21d1c967
GD
18601 if test "x$ZLIB_LINK" = "x" ; then
18602 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18603 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18604echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18605 { (exit 1); exit 1; }; }
21d1c967 18606 else
e6cc62c6
VS
18607 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18608echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18609 wxUSE_ZLIB=builtin
18610 fi
18611 else
18612 wxUSE_ZLIB=sys
18613 fi
18614 fi
ab9b9eab
VZ
18615fi
18616
8284b0c5 18617
21d1c967
GD
18618PNG_LINK=
18619if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18620 cat >>confdefs.h <<\_ACEOF
21d1c967 18621#define wxUSE_LIBPNG 1
e6cc62c6 18622_ACEOF
90dd450c 18623
8284b0c5 18624
21d1c967 18625 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18626 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18627echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18628 wxUSE_LIBPNG=sys
18629 fi
90dd450c 18630
21d1c967 18631 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18632 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18633echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18634 wxUSE_LIBPNG=builtin
18635 fi
18636
18637 if test "$wxUSE_MGL" != 1 ; then
18638 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18639 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18640echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18641if test "${ac_cv_header_png_h+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18643else
18644 if test "$cross_compiling" = yes; then
89e6bf6d 18645 unset ac_cv_header_png_h
e6cc62c6 18646
5d3f766d 18647else
e6cc62c6 18648 cat >conftest.$ac_ext <<_ACEOF
09d3439c 18649#line $LINENO "configure"
e6cc62c6
VS
18650/* confdefs.h. */
18651_ACEOF
18652cat confdefs.h >>conftest.$ac_ext
18653cat >>conftest.$ac_ext <<_ACEOF
18654/* end confdefs.h. */
18655
ef33c576 18656 #include <png.h>
5d3f766d
VZ
18657 #include <stdio.h>
18658
18659 int main()
18660 {
18661 FILE *f=fopen("conftestval", "w");
18662 if (!f) exit(1);
18663 fprintf(f, "%s",
18664 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18665 exit(0);
18666 }
e6cc62c6
VS
18667
18668_ACEOF
18669rm -f conftest$ac_exeext
18670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
5d3f766d
VZ
18680 ac_cv_header_png_h=`cat conftestval`
18681else
e6cc62c6
VS
18682 echo "$as_me: program exited with status $ac_status" >&5
18683echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686( exit $ac_status )
18687ac_cv_header_png_h=no
5d3f766d 18688fi
09d3439c 18689rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18690fi
18691
5d3f766d 18692fi
e6cc62c6
VS
18693echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18694echo "${ECHO_T}$ac_cv_header_png_h" >&6
18695 if test "${ac_cv_header_png_h+set}" = set; then
18696 echo "$as_me:$LINENO: checking for png.h" >&5
18697echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18698if test "${ac_cv_header_png_h+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18700fi
18701echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18702echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18703else
e6cc62c6
VS
18704 # Is the header compilable?
18705echo "$as_me:$LINENO: checking png.h usability" >&5
18706echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18707cat >conftest.$ac_ext <<_ACEOF
09d3439c 18708#line $LINENO "configure"
e6cc62c6
VS
18709/* confdefs.h. */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h. */
18714$ac_includes_default
89e6bf6d 18715#include <png.h>
e6cc62c6
VS
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 18719 (eval $ac_compile) 2>&5
e6cc62c6
VS
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
09d3439c 18723 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_header_compiler=yes
18730else
18731 echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734ac_header_compiler=no
18735fi
09d3439c 18736rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18738echo "${ECHO_T}$ac_header_compiler" >&6
18739
18740# Is the header present?
18741echo "$as_me:$LINENO: checking png.h presence" >&5
18742echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18743cat >conftest.$ac_ext <<_ACEOF
09d3439c 18744#line $LINENO "configure"
e6cc62c6
VS
18745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
18750#include <png.h>
18751_ACEOF
18752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } >/dev/null; then
18760 if test -s conftest.err; then
18761 ac_cpp_err=$ac_c_preproc_warn_flag
18762 else
18763 ac_cpp_err=
18764 fi
18765else
18766 ac_cpp_err=yes
18767fi
18768if test -z "$ac_cpp_err"; then
18769 ac_header_preproc=yes
18770else
18771 echo "$as_me: failed program was:" >&5
18772sed 's/^/| /' conftest.$ac_ext >&5
18773
18774 ac_header_preproc=no
18775fi
18776rm -f conftest.err conftest.$ac_ext
18777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18778echo "${ECHO_T}$ac_header_preproc" >&6
18779
18780# So? What about this header?
09d3439c
VZ
18781case $ac_header_compiler:$ac_header_preproc in
18782 yes:no )
e6cc62c6
VS
18783 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18784echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
18785 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18786echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18787 (
18788 cat <<\_ASBOX
18789## ------------------------------------ ##
18790## Report this to bug-autoconf@gnu.org. ##
18791## ------------------------------------ ##
18792_ASBOX
18793 ) |
18794 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18795 ;;
09d3439c 18796 no:yes )
e6cc62c6
VS
18797 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18798echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
09d3439c
VZ
18799 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18800echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18801 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18802echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18803 (
18804 cat <<\_ASBOX
09d3439c
VZ
18805## ------------------------------------ ##
18806## Report this to bug-autoconf@gnu.org. ##
18807## ------------------------------------ ##
e6cc62c6
VS
18808_ASBOX
18809 ) |
18810 sed "s/^/$as_me: WARNING: /" >&2
18811 ;;
18812esac
18813echo "$as_me:$LINENO: checking for png.h" >&5
18814echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18815if test "${ac_cv_header_png_h+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18817else
e6cc62c6
VS
18818 ac_cv_header_png_h=$ac_header_preproc
18819fi
18820echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18821echo "${ECHO_T}$ac_cv_header_png_h" >&6
18822
89e6bf6d
VZ
18823fi
18824
5d3f766d 18825
e6cc62c6 18826
5d3f766d 18827 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18828 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18829echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18830if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18832else
e6cc62c6 18833 ac_check_lib_save_LIBS=$LIBS
21d1c967 18834LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 18835cat >conftest.$ac_ext <<_ACEOF
09d3439c 18836#line $LINENO "configure"
e6cc62c6
VS
18837/* confdefs.h. */
18838_ACEOF
18839cat confdefs.h >>conftest.$ac_ext
18840cat >>conftest.$ac_ext <<_ACEOF
18841/* end confdefs.h. */
18842
21d1c967 18843/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18844#ifdef __cplusplus
18845extern "C"
18846#endif
21d1c967 18847/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18848 builtin and then its argument prototype would still apply. */
18849char png_check_sig ();
18850int
18851main ()
18852{
18853png_check_sig ();
18854 ;
18855 return 0;
18856}
18857_ACEOF
18858rm -f conftest.$ac_objext conftest$ac_exeext
18859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 18860 (eval $ac_link) 2>&5
e6cc62c6
VS
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
09d3439c 18864 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 ac_cv_lib_png_png_check_sig=yes
18871else
18872 echo "$as_me: failed program was:" >&5
18873sed 's/^/| /' conftest.$ac_ext >&5
18874
18875ac_cv_lib_png_png_check_sig=no
18876fi
09d3439c 18877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18878LIBS=$ac_check_lib_save_LIBS
18879fi
18880echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18881echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18882if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18883 PNG_LINK=" -lpng"
a0b9e27f 18884fi
90dd450c 18885
5d3f766d 18886 fi
247f5006 18887
21d1c967
GD
18888 if test "x$PNG_LINK" = "x" ; then
18889 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18890 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18891echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18892 { (exit 1); exit 1; }; }
21d1c967 18893 else
e6cc62c6
VS
18894 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18895echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18896 wxUSE_LIBPNG=builtin
18897 fi
18898 else
2b5f62a0 18899 wxUSE_LIBPNG=sys
21d1c967
GD
18900 fi
18901 fi
18902 fi
90dd450c 18903
21d1c967 18904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18905fi
18906
8284b0c5 18907
21d1c967
GD
18908JPEG_LINK=
18909if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18910 cat >>confdefs.h <<\_ACEOF
21d1c967 18911#define wxUSE_LIBJPEG 1
e6cc62c6 18912_ACEOF
90dd450c 18913
8284b0c5 18914
21d1c967 18915 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18916 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18917echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18918 wxUSE_LIBJPEG=sys
18919 fi
90dd450c 18920
21d1c967
GD
18921 if test "$wxUSE_MGL" != 1 ; then
18922 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18923 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18924echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18925 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928 cat >conftest.$ac_ext <<_ACEOF
09d3439c 18929#line $LINENO "configure"
e6cc62c6
VS
18930/* confdefs.h. */
18931_ACEOF
18932cat confdefs.h >>conftest.$ac_ext
18933cat >>conftest.$ac_ext <<_ACEOF
18934/* end confdefs.h. */
90dd450c 18935
21d1c967
GD
18936 #undef HAVE_STDLIB_H
18937 #include <stdio.h>
18938 #include <jpeglib.h>
90dd450c 18939
e6cc62c6
VS
18940int
18941main ()
18942{
18943
18944
18945 ;
18946 return 0;
18947}
18948_ACEOF
18949rm -f conftest.$ac_objext
18950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 18951 (eval $ac_compile) 2>&5
e6cc62c6
VS
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
09d3439c 18955 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
21d1c967 18961 ac_cv_header_jpeglib_h=yes
90dd450c 18962else
e6cc62c6
VS
18963 echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966ac_cv_header_jpeglib_h=no
18967
90dd450c 18968fi
09d3439c 18969rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18970
90dd450c
VZ
18971fi
18972
e6cc62c6
VS
18973 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18974echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18975
21d1c967 18976 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18977 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18978echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18979if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18981else
e6cc62c6 18982 ac_check_lib_save_LIBS=$LIBS
21d1c967 18983LIBS="-ljpeg $LIBS"
e6cc62c6 18984cat >conftest.$ac_ext <<_ACEOF
09d3439c 18985#line $LINENO "configure"
e6cc62c6
VS
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991
21d1c967 18992/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18993#ifdef __cplusplus
18994extern "C"
18995#endif
21d1c967 18996/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18997 builtin and then its argument prototype would still apply. */
18998char jpeg_read_header ();
18999int
19000main ()
19001{
19002jpeg_read_header ();
19003 ;
19004 return 0;
19005}
19006_ACEOF
19007rm -f conftest.$ac_objext conftest$ac_exeext
19008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 19009 (eval $ac_link) 2>&5
e6cc62c6
VS
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
09d3439c 19013 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_cv_lib_jpeg_jpeg_read_header=yes
19020else
19021 echo "$as_me: failed program was:" >&5
19022sed 's/^/| /' conftest.$ac_ext >&5
19023
19024ac_cv_lib_jpeg_jpeg_read_header=no
19025fi
09d3439c 19026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19027LIBS=$ac_check_lib_save_LIBS
19028fi
19029echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19030echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19031if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19032 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19033fi
19034
21d1c967 19035 fi
90dd450c 19036
21d1c967
GD
19037 if test "x$JPEG_LINK" = "x" ; then
19038 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19039 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19040echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19041 { (exit 1); exit 1; }; }
21d1c967 19042 else
e6cc62c6
VS
19043 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19044echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19045 wxUSE_LIBJPEG=builtin
19046 fi
19047 else
19048 wxUSE_LIBJPEG=sys
19049 fi
19050 fi
19051 fi
21d1c967 19052fi
90dd450c 19053
8284b0c5 19054
21d1c967 19055TIFF_LINK=
2b5f62a0 19056TIFF_PREREQ_LINKS=-lm
21d1c967 19057if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19058 cat >>confdefs.h <<\_ACEOF
21d1c967 19059#define wxUSE_LIBTIFF 1
e6cc62c6 19060_ACEOF
21d1c967 19061
8284b0c5 19062
21d1c967 19063 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19064 if test "$wxUSE_LIBJPEG" = "sys"; then
19065 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19066 fi
19067 if test "$wxUSE_ZLIB" = "sys"; then
19068 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19069 fi
e6cc62c6
VS
19070 if test "${ac_cv_header_tiffio_h+set}" = set; then
19071 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19072echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19073if test "${ac_cv_header_tiffio_h+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19075fi
19076echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19077echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19078else
19079 # Is the header compilable?
19080echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19081echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19082cat >conftest.$ac_ext <<_ACEOF
09d3439c 19083#line $LINENO "configure"
e6cc62c6
VS
19084/* confdefs.h. */
19085_ACEOF
19086cat confdefs.h >>conftest.$ac_ext
19087cat >>conftest.$ac_ext <<_ACEOF
19088/* end confdefs.h. */
19089$ac_includes_default
247f5006 19090#include <tiffio.h>
e6cc62c6
VS
19091_ACEOF
19092rm -f conftest.$ac_objext
19093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 19094 (eval $ac_compile) 2>&5
e6cc62c6
VS
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
09d3439c 19098 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 ac_header_compiler=yes
19105else
19106 echo "$as_me: failed program was:" >&5
19107sed 's/^/| /' conftest.$ac_ext >&5
19108
19109ac_header_compiler=no
19110fi
09d3439c 19111rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19113echo "${ECHO_T}$ac_header_compiler" >&6
19114
19115# Is the header present?
19116echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19117echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19118cat >conftest.$ac_ext <<_ACEOF
09d3439c 19119#line $LINENO "configure"
e6cc62c6
VS
19120/* confdefs.h. */
19121_ACEOF
19122cat confdefs.h >>conftest.$ac_ext
19123cat >>conftest.$ac_ext <<_ACEOF
19124/* end confdefs.h. */
19125#include <tiffio.h>
19126_ACEOF
19127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } >/dev/null; then
19135 if test -s conftest.err; then
19136 ac_cpp_err=$ac_c_preproc_warn_flag
19137 else
19138 ac_cpp_err=
19139 fi
19140else
19141 ac_cpp_err=yes
19142fi
19143if test -z "$ac_cpp_err"; then
19144 ac_header_preproc=yes
19145else
19146 echo "$as_me: failed program was:" >&5
19147sed 's/^/| /' conftest.$ac_ext >&5
19148
19149 ac_header_preproc=no
19150fi
19151rm -f conftest.err conftest.$ac_ext
19152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19153echo "${ECHO_T}$ac_header_preproc" >&6
19154
19155# So? What about this header?
09d3439c
VZ
19156case $ac_header_compiler:$ac_header_preproc in
19157 yes:no )
e6cc62c6
VS
19158 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19159echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
19160 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19161echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19162 (
19163 cat <<\_ASBOX
19164## ------------------------------------ ##
19165## Report this to bug-autoconf@gnu.org. ##
19166## ------------------------------------ ##
19167_ASBOX
19168 ) |
19169 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19170 ;;
09d3439c 19171 no:yes )
e6cc62c6
VS
19172 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19173echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
09d3439c
VZ
19174 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19175echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19176 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19177echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19178 (
19179 cat <<\_ASBOX
09d3439c
VZ
19180## ------------------------------------ ##
19181## Report this to bug-autoconf@gnu.org. ##
19182## ------------------------------------ ##
e6cc62c6
VS
19183_ASBOX
19184 ) |
19185 sed "s/^/$as_me: WARNING: /" >&2
19186 ;;
19187esac
19188echo "$as_me:$LINENO: checking for tiffio.h" >&5
19189echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19190if test "${ac_cv_header_tiffio_h+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192else
19193 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19194fi
e6cc62c6
VS
19195echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19196echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19197
21d1c967 19198fi
e6cc62c6 19199if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19200
19201 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19202echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19203if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19205else
e6cc62c6 19206 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19207LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 19208cat >conftest.$ac_ext <<_ACEOF
09d3439c 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
ab9b9eab 19216/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19217#ifdef __cplusplus
19218extern "C"
19219#endif
ab9b9eab 19220/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19221 builtin and then its argument prototype would still apply. */
19222char TIFFError ();
19223int
19224main ()
19225{
19226TIFFError ();
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext conftest$ac_exeext
19232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 19233 (eval $ac_link) 2>&5
e6cc62c6
VS
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
09d3439c 19237 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 ac_cv_lib_tiff_TIFFError=yes
19244else
19245 echo "$as_me: failed program was:" >&5
19246sed 's/^/| /' conftest.$ac_ext >&5
19247
19248ac_cv_lib_tiff_TIFFError=no
19249fi
09d3439c 19250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19251LIBS=$ac_check_lib_save_LIBS
19252fi
19253echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19254echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19255if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19256 TIFF_LINK=" -ltiff"
a0b9e27f 19257fi
cd6d6d5b 19258
e6cc62c6 19259
0e012a93 19260
a0b9e27f 19261fi
8284b0c5 19262
247f5006 19263
e6cc62c6 19264
21d1c967
GD
19265 if test "x$TIFF_LINK" = "x" ; then
19266 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19267 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19268echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19269 { (exit 1); exit 1; }; }
90dd450c 19270 else
e6cc62c6
VS
19271 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19272echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19273 wxUSE_LIBTIFF=builtin
d8356fa3 19274 fi
d8356fa3 19275 else
21d1c967 19276 wxUSE_LIBTIFF=sys
d8356fa3 19277 fi
21d1c967 19278 fi
21d1c967 19279fi
10f2d63a 19280
8284b0c5 19281
672abd7a 19282if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19283 wxUSE_XML=yes
672abd7a
VS
19284 cat >>confdefs.h <<\_ACEOF
19285#define wxUSE_EXPAT 1
19286_ACEOF
19287
19288 cat >>confdefs.h <<\_ACEOF
19289#define wxUSE_XML 1
19290_ACEOF
19291
19292
19293 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19294 if test "${ac_cv_header_expat_h+set}" = set; then
19295 echo "$as_me:$LINENO: checking for expat.h" >&5
19296echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19297if test "${ac_cv_header_expat_h+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299fi
19300echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19301echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19302else
19303 # Is the header compilable?
19304echo "$as_me:$LINENO: checking expat.h usability" >&5
19305echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19306cat >conftest.$ac_ext <<_ACEOF
09d3439c 19307#line $LINENO "configure"
672abd7a
VS
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313$ac_includes_default
19314#include <expat.h>
19315_ACEOF
19316rm -f conftest.$ac_objext
19317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 19318 (eval $ac_compile) 2>&5
672abd7a
VS
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
09d3439c 19322 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_header_compiler=yes
19329else
19330 echo "$as_me: failed program was:" >&5
19331sed 's/^/| /' conftest.$ac_ext >&5
19332
19333ac_header_compiler=no
19334fi
09d3439c 19335rm -f conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
19336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19337echo "${ECHO_T}$ac_header_compiler" >&6
19338
19339# Is the header present?
19340echo "$as_me:$LINENO: checking expat.h presence" >&5
19341echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19342cat >conftest.$ac_ext <<_ACEOF
09d3439c 19343#line $LINENO "configure"
672abd7a
VS
19344/* confdefs.h. */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
19348/* end confdefs.h. */
19349#include <expat.h>
19350_ACEOF
19351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } >/dev/null; then
19359 if test -s conftest.err; then
19360 ac_cpp_err=$ac_c_preproc_warn_flag
19361 else
19362 ac_cpp_err=
19363 fi
19364else
19365 ac_cpp_err=yes
19366fi
19367if test -z "$ac_cpp_err"; then
19368 ac_header_preproc=yes
19369else
19370 echo "$as_me: failed program was:" >&5
19371sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ac_header_preproc=no
19374fi
19375rm -f conftest.err conftest.$ac_ext
19376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19377echo "${ECHO_T}$ac_header_preproc" >&6
19378
19379# So? What about this header?
09d3439c
VZ
19380case $ac_header_compiler:$ac_header_preproc in
19381 yes:no )
672abd7a
VS
19382 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19383echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
19384 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19385echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19386 (
19387 cat <<\_ASBOX
19388## ------------------------------------ ##
19389## Report this to bug-autoconf@gnu.org. ##
19390## ------------------------------------ ##
19391_ASBOX
19392 ) |
19393 sed "s/^/$as_me: WARNING: /" >&2
672abd7a 19394 ;;
09d3439c 19395 no:yes )
672abd7a
VS
19396 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19397echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
09d3439c
VZ
19398 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19399echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
672abd7a
VS
19400 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19401echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19402 (
19403 cat <<\_ASBOX
09d3439c
VZ
19404## ------------------------------------ ##
19405## Report this to bug-autoconf@gnu.org. ##
19406## ------------------------------------ ##
672abd7a
VS
19407_ASBOX
19408 ) |
19409 sed "s/^/$as_me: WARNING: /" >&2
19410 ;;
19411esac
19412echo "$as_me:$LINENO: checking for expat.h" >&5
19413echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19414if test "${ac_cv_header_expat_h+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19416else
19417 ac_cv_header_expat_h=$ac_header_preproc
19418fi
19419echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19420echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19421
19422fi
5f0b6dff
VS
19423if test $ac_cv_header_expat_h = yes; then
19424 found_expat_h=1
19425fi
19426
19427
19428 if test "x$found_expat_h" = "x1"; then
19429 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19430echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19431if test "${wx_cv_expat_is_not_broken+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433else
19434
19435
672abd7a 19436
5f0b6dff
VS
19437 ac_ext=cc
19438ac_cpp='$CXXCPP $CPPFLAGS'
19439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19442
19443 cat >conftest.$ac_ext <<_ACEOF
09d3439c 19444#line $LINENO "configure"
5f0b6dff
VS
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
19450#include <expat.h>
19451int
19452main ()
19453{
672abd7a 19454
5f0b6dff
VS
19455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext
19460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 19461 (eval $ac_compile) 2>&5
5f0b6dff
VS
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
09d3439c 19465 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 wx_cv_expat_is_not_broken=yes
19472else
19473 echo "$as_me: failed program was:" >&5
19474sed 's/^/| /' conftest.$ac_ext >&5
19475
19476wx_cv_expat_is_not_broken=no
19477
19478fi
09d3439c 19479rm -f conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
19480 ac_ext=c
19481ac_cpp='$CPP $CPPFLAGS'
19482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484ac_compiler_gnu=$ac_cv_c_compiler_gnu
19485
19486
19487
19488fi
19489echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19490echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19491 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19492 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19493echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19494if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19496else
19497 ac_check_lib_save_LIBS=$LIBS
19498LIBS="-lexpat $LIBS"
19499cat >conftest.$ac_ext <<_ACEOF
09d3439c 19500#line $LINENO "configure"
672abd7a
VS
19501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
19506
19507/* Override any gcc2 internal prototype to avoid an error. */
19508#ifdef __cplusplus
19509extern "C"
19510#endif
19511/* We use char because int might match the return type of a gcc2
19512 builtin and then its argument prototype would still apply. */
19513char XML_ParserCreate ();
19514int
19515main ()
19516{
19517XML_ParserCreate ();
19518 ;
19519 return 0;
19520}
19521_ACEOF
19522rm -f conftest.$ac_objext conftest$ac_exeext
19523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 19524 (eval $ac_link) 2>&5
672abd7a
VS
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
09d3439c 19528 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 ac_cv_lib_expat_XML_ParserCreate=yes
19535else
19536 echo "$as_me: failed program was:" >&5
19537sed 's/^/| /' conftest.$ac_ext >&5
19538
19539ac_cv_lib_expat_XML_ParserCreate=no
19540fi
09d3439c 19541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
19542LIBS=$ac_check_lib_save_LIBS
19543fi
19544echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19545echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19546if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19547 EXPAT_LINK=" -lexpat"
19548fi
19549
5f0b6dff 19550 fi
672abd7a
VS
19551 fi
19552 if test "x$EXPAT_LINK" = "x" ; then
19553 if test "$wxUSE_EXPAT" = "sys" ; then
19554 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19555echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19556 { (exit 1); exit 1; }; }
19557 else
19558 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19559echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19560 wxUSE_EXPAT=builtin
19561 fi
19562 else
19563 wxUSE_EXPAT=sys
19564 fi
19565 fi
19566 if test "$wxUSE_EXPAT" = "builtin" ; then
19567
19568
19569subdirs="$subdirs src/expat"
19570
19571 fi
19572fi
19573
19574
19575
3527f29c
VS
19576if test "$wxUSE_LIBMSPACK" != "no"; then
19577
19578 if test "${ac_cv_header_mspack_h+set}" = set; then
19579 echo "$as_me:$LINENO: checking for mspack.h" >&5
19580echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
19581if test "${ac_cv_header_mspack_h+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19583fi
19584echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
19585echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
19586else
19587 # Is the header compilable?
19588echo "$as_me:$LINENO: checking mspack.h usability" >&5
19589echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
19590cat >conftest.$ac_ext <<_ACEOF
09d3439c 19591#line $LINENO "configure"
3527f29c
VS
19592/* confdefs.h. */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
19596/* end confdefs.h. */
19597$ac_includes_default
19598#include <mspack.h>
19599_ACEOF
19600rm -f conftest.$ac_objext
19601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 19602 (eval $ac_compile) 2>&5
3527f29c
VS
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } &&
09d3439c 19606 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 ac_header_compiler=yes
19613else
19614 echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617ac_header_compiler=no
19618fi
09d3439c 19619rm -f conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
19620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19621echo "${ECHO_T}$ac_header_compiler" >&6
19622
19623# Is the header present?
19624echo "$as_me:$LINENO: checking mspack.h presence" >&5
19625echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
19626cat >conftest.$ac_ext <<_ACEOF
09d3439c 19627#line $LINENO "configure"
3527f29c
VS
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633#include <mspack.h>
19634_ACEOF
19635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null; then
19643 if test -s conftest.err; then
19644 ac_cpp_err=$ac_c_preproc_warn_flag
19645 else
19646 ac_cpp_err=
19647 fi
19648else
19649 ac_cpp_err=yes
19650fi
19651if test -z "$ac_cpp_err"; then
19652 ac_header_preproc=yes
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_header_preproc=no
19658fi
19659rm -f conftest.err conftest.$ac_ext
19660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19661echo "${ECHO_T}$ac_header_preproc" >&6
19662
19663# So? What about this header?
09d3439c
VZ
19664case $ac_header_compiler:$ac_header_preproc in
19665 yes:no )
3527f29c
VS
19666 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
19667echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
19668 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
19669echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
19670 (
19671 cat <<\_ASBOX
19672## ------------------------------------ ##
19673## Report this to bug-autoconf@gnu.org. ##
19674## ------------------------------------ ##
19675_ASBOX
19676 ) |
19677 sed "s/^/$as_me: WARNING: /" >&2
3527f29c 19678 ;;
09d3439c 19679 no:yes )
3527f29c
VS
19680 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
19681echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
09d3439c
VZ
19682 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
19683echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
3527f29c
VS
19684 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
19685echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
19686 (
19687 cat <<\_ASBOX
09d3439c
VZ
19688## ------------------------------------ ##
19689## Report this to bug-autoconf@gnu.org. ##
19690## ------------------------------------ ##
3527f29c
VS
19691_ASBOX
19692 ) |
19693 sed "s/^/$as_me: WARNING: /" >&2
19694 ;;
19695esac
19696echo "$as_me:$LINENO: checking for mspack.h" >&5
19697echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
19698if test "${ac_cv_header_mspack_h+set}" = set; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19700else
19701 ac_cv_header_mspack_h=$ac_header_preproc
19702fi
19703echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
19704echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
19705
19706fi
19707if test $ac_cv_header_mspack_h = yes; then
19708 found_mspack_h=1
19709fi
19710
19711
19712 if test "x$found_mspack_h" = "x1"; then
19713 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
19714echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
19715if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717else
19718 ac_check_lib_save_LIBS=$LIBS
19719LIBS="-lmspack $LIBS"
19720cat >conftest.$ac_ext <<_ACEOF
09d3439c 19721#line $LINENO "configure"
3527f29c
VS
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
19727
19728/* Override any gcc2 internal prototype to avoid an error. */
19729#ifdef __cplusplus
19730extern "C"
19731#endif
19732/* We use char because int might match the return type of a gcc2
19733 builtin and then its argument prototype would still apply. */
19734char mspack_create_chm_decompressor ();
19735int
19736main ()
19737{
19738mspack_create_chm_decompressor ();
19739 ;
19740 return 0;
19741}
19742_ACEOF
19743rm -f conftest.$ac_objext conftest$ac_exeext
19744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 19745 (eval $ac_link) 2>&5
3527f29c
VS
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
09d3439c 19749 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
19756else
19757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760ac_cv_lib_mspack_mspack_create_chm_decompressor=no
19761fi
09d3439c 19762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
19763LIBS=$ac_check_lib_save_LIBS
19764fi
19765echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
19766echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
19767if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
19768 MSPACK_LINK=" -lmspack"
19769fi
19770
19771 fi
19772 if test "x$MSPACK_LINK" = "x" ; then
19773 wxUSE_LIBMSPACK=no
19774 else
19775 cat >>confdefs.h <<\_ACEOF
19776#define wxUSE_LIBMSPACK 1
19777_ACEOF
19778
19779 fi
19780fi
19781
19782
19783
21d1c967 19784AFMINSTALL=
2b5f62a0 19785WIN32INSTALL=
90dd450c 19786
21d1c967
GD
19787TOOLKIT=
19788TOOLKIT_INCLUDE=
19789WIDGET_SET=
19790
19791if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19792
19793for ac_header in w32api.h
21d1c967 19794do
e6cc62c6
VS
19795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19796if eval "test \"\${$as_ac_Header+set}\" = set"; then
19797 echo "$as_me:$LINENO: checking for $ac_header" >&5
19798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19799if eval "test \"\${$as_ac_Header+set}\" = set"; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801fi
19802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19804else
19805 # Is the header compilable?
19806echo "$as_me:$LINENO: checking $ac_header usability" >&5
19807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19808cat >conftest.$ac_ext <<_ACEOF
09d3439c 19809#line $LINENO "configure"
e6cc62c6
VS
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h. */
19815$ac_includes_default
19816#include <$ac_header>
19817_ACEOF
19818rm -f conftest.$ac_objext
19819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 19820 (eval $ac_compile) 2>&5
e6cc62c6
VS
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
09d3439c 19824 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 ac_header_compiler=yes
19831else
19832 echo "$as_me: failed program was:" >&5
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
19835ac_header_compiler=no
19836fi
09d3439c 19837rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19838echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839echo "${ECHO_T}$ac_header_compiler" >&6
19840
19841# Is the header present?
19842echo "$as_me:$LINENO: checking $ac_header presence" >&5
19843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19844cat >conftest.$ac_ext <<_ACEOF
09d3439c 19845#line $LINENO "configure"
e6cc62c6
VS
19846/* confdefs.h. */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h. */
19851#include <$ac_header>
19852_ACEOF
19853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } >/dev/null; then
19861 if test -s conftest.err; then
19862 ac_cpp_err=$ac_c_preproc_warn_flag
19863 else
19864 ac_cpp_err=
19865 fi
19866else
19867 ac_cpp_err=yes
19868fi
19869if test -z "$ac_cpp_err"; then
19870 ac_header_preproc=yes
19871else
19872 echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
19874
19875 ac_header_preproc=no
19876fi
19877rm -f conftest.err conftest.$ac_ext
19878echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879echo "${ECHO_T}$ac_header_preproc" >&6
19880
19881# So? What about this header?
09d3439c
VZ
19882case $ac_header_compiler:$ac_header_preproc in
19883 yes:no )
e6cc62c6
VS
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19885echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19888 (
19889 cat <<\_ASBOX
19890## ------------------------------------ ##
19891## Report this to bug-autoconf@gnu.org. ##
19892## ------------------------------------ ##
19893_ASBOX
19894 ) |
19895 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19896 ;;
09d3439c 19897 no:yes )
e6cc62c6
VS
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19901echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19904 (
19905 cat <<\_ASBOX
09d3439c
VZ
19906## ------------------------------------ ##
19907## Report this to bug-autoconf@gnu.org. ##
19908## ------------------------------------ ##
e6cc62c6
VS
19909_ASBOX
19910 ) |
19911 sed "s/^/$as_me: WARNING: /" >&2
19912 ;;
19913esac
19914echo "$as_me:$LINENO: checking for $ac_header" >&5
19915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19916if eval "test \"\${$as_ac_Header+set}\" = set"; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918else
09d3439c 19919 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19920fi
e6cc62c6
VS
19921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19923
21d1c967 19924fi
e6cc62c6
VS
19925if test `eval echo '${'$as_ac_Header'}'` = yes; then
19926 cat >>confdefs.h <<_ACEOF
19927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19928_ACEOF
19929
21d1c967 19930fi
e6cc62c6 19931
21d1c967 19932done
f79bd02d 19933
e6cc62c6
VS
19934 if test "${ac_cv_header_windows_h+set}" = set; then
19935 echo "$as_me:$LINENO: checking for windows.h" >&5
19936echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19937if test "${ac_cv_header_windows_h+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939fi
19940echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19941echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19942else
19943 # Is the header compilable?
19944echo "$as_me:$LINENO: checking windows.h usability" >&5
19945echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19946cat >conftest.$ac_ext <<_ACEOF
09d3439c 19947#line $LINENO "configure"
e6cc62c6
VS
19948/* confdefs.h. */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h. */
19953$ac_includes_default
247f5006 19954#include <windows.h>
e6cc62c6
VS
19955_ACEOF
19956rm -f conftest.$ac_objext
19957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 19958 (eval $ac_compile) 2>&5
e6cc62c6
VS
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
09d3439c 19962 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_header_compiler=yes
19969else
19970 echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973ac_header_compiler=no
19974fi
09d3439c 19975rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19977echo "${ECHO_T}$ac_header_compiler" >&6
19978
19979# Is the header present?
19980echo "$as_me:$LINENO: checking windows.h presence" >&5
19981echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19982cat >conftest.$ac_ext <<_ACEOF
09d3439c 19983#line $LINENO "configure"
e6cc62c6
VS
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h. */
19989#include <windows.h>
19990_ACEOF
19991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } >/dev/null; then
19999 if test -s conftest.err; then
20000 ac_cpp_err=$ac_c_preproc_warn_flag
20001 else
20002 ac_cpp_err=
20003 fi
20004else
20005 ac_cpp_err=yes
20006fi
20007if test -z "$ac_cpp_err"; then
20008 ac_header_preproc=yes
20009else
20010 echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 ac_header_preproc=no
20014fi
20015rm -f conftest.err conftest.$ac_ext
20016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20017echo "${ECHO_T}$ac_header_preproc" >&6
20018
20019# So? What about this header?
09d3439c
VZ
20020case $ac_header_compiler:$ac_header_preproc in
20021 yes:no )
e6cc62c6
VS
20022 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20023echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
20024 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20025echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20026 (
20027 cat <<\_ASBOX
20028## ------------------------------------ ##
20029## Report this to bug-autoconf@gnu.org. ##
20030## ------------------------------------ ##
20031_ASBOX
20032 ) |
20033 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 20034 ;;
09d3439c 20035 no:yes )
e6cc62c6
VS
20036 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20037echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
09d3439c
VZ
20038 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20039echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
20040 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20041echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20042 (
20043 cat <<\_ASBOX
09d3439c
VZ
20044## ------------------------------------ ##
20045## Report this to bug-autoconf@gnu.org. ##
20046## ------------------------------------ ##
e6cc62c6
VS
20047_ASBOX
20048 ) |
20049 sed "s/^/$as_me: WARNING: /" >&2
20050 ;;
20051esac
20052echo "$as_me:$LINENO: checking for windows.h" >&5
20053echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20054if test "${ac_cv_header_windows_h+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056else
20057 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 20058fi
e6cc62c6
VS
20059echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20060echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20061
90dd450c 20062fi
e6cc62c6 20063if test $ac_cv_header_windows_h = yes; then
21d1c967 20064 :
90dd450c 20065else
21d1c967 20066
e6cc62c6
VS
20067 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20068echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20069 { (exit 1); exit 1; }; }
20070
5c6fa7d2 20071fi
7b4a847f 20072
5c6fa7d2 20073
e6cc62c6 20074
b3dfbbc9 20075 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 20076
7bb2947d
MB
20077 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20078 LIBS="$LIBS -loleacc"
20079 fi
20080
21d1c967
GD
20081 case "${host}" in
20082 *-*-cygwin* )
b3dfbbc9 20083 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 20084 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 20085 esac
f79bd02d 20086
8647bec6
RG
20087 if test "$wxUSE_ODBC" = "sys" ; then
20088 wxUSE_ODBC = "yes"
21d1c967 20089 fi
8647bec6
RG
20090 if test "$wxUSE_ODBC" = "yes" ; then
20091 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 20092 cat >>confdefs.h <<\_ACEOF
8647bec6 20093#define wxUSE_ODBC 1
e6cc62c6 20094_ACEOF
f79bd02d 20095
8647bec6 20096 fi
e6cc62c6 20097
21d1c967
GD
20098 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20099 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
20100
20101 WIN32INSTALL=win32install
f79bd02d 20102fi
f79bd02d 20103
21d1c967
GD
20104if test "$wxUSE_GUI" = "yes"; then
20105 USE_GUI=1
f79bd02d 20106
21d1c967 20107 GUI_TK_LIBRARY=
f79bd02d 20108
21d1c967
GD
20109 WXGTK12=
20110 WXGTK127=
20111 WXGTK20=
f79bd02d 20112
21d1c967
GD
20113 if test "$wxUSE_MSW" = 1 ; then
20114 TOOLKIT=MSW
20115 GUIDIST=MSW_DIST
ffef10f6
VS
20116
20117 case "${host}" in
20118 *-*-mingw32* )
20119 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20120 esac
f79bd02d
JS
20121 fi
20122
21d1c967 20123 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
20124 echo "$as_me:$LINENO: checking for GTK+ version" >&5
20125echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
20126
20127 gtk_version_cached=1
e6cc62c6
VS
20128 if test "${wx_cv_lib_gtk+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 20130else
e6cc62c6 20131
21d1c967 20132 gtk_version_cached=0
e6cc62c6
VS
20133 echo "$as_me:$LINENO: result: " >&5
20134echo "${ECHO_T}" >&6
f79bd02d 20135
21d1c967
GD
20136 GTK_MODULES=
20137 if test "$wxUSE_THREADS" = "yes"; then
20138 GTK_MODULES=gthread
20139 fi
f79bd02d 20140
2b5f62a0 20141 wx_cv_lib_gtk=
21d1c967
GD
20142 if test "x$wxUSE_GTK2" = "xyes"; then
20143 # Check whether --enable-gtktest or --disable-gtktest was given.
20144if test "${enable_gtktest+set}" = set; then
20145 enableval="$enable_gtktest"
e6cc62c6 20146
f79bd02d 20147else
21d1c967 20148 enable_gtktest=yes
e6cc62c6 20149fi;
f79bd02d 20150
21d1c967
GD
20151 pkg_config_args=gtk+-2.0
20152 for module in . $GTK_MODULES
20153 do
20154 case "$module" in
e6cc62c6 20155 gthread)
21d1c967
GD
20156 pkg_config_args="$pkg_config_args gthread-2.0"
20157 ;;
20158 esac
20159 done
20160
20161 no_gtk=""
f79bd02d 20162
21d1c967
GD
20163 # Extract the first word of "pkg-config", so it can be a program name with args.
20164set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20165echo "$as_me:$LINENO: checking for $ac_word" >&5
20166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20167if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20169else
e6cc62c6
VS
20170 case $PKG_CONFIG in
20171 [\\/]* | ?:[\\/]*)
21d1c967
GD
20172 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20173 ;;
21d1c967 20174 *)
e6cc62c6
VS
20175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176for as_dir in $PATH
20177do
20178 IFS=$as_save_IFS
20179 test -z "$as_dir" && as_dir=.
20180 for ac_exec_ext in '' $ac_executable_extensions; do
20181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20182 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20184 break 2
20185 fi
20186done
20187done
20188
21d1c967
GD
20189 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20190 ;;
20191esac
f79bd02d 20192fi
e6cc62c6
VS
20193PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20194
21d1c967 20195if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20196 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20197echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 20198else
e6cc62c6
VS
20199 echo "$as_me:$LINENO: result: no" >&5
20200echo "${ECHO_T}no" >&6
f79bd02d
JS
20201fi
20202
8284b0c5 20203
21d1c967
GD
20204 if test x$PKG_CONFIG != xno ; then
20205 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20206 :
20207 else
20208 echo *** pkg-config too old; version 0.7 or better required.
20209 no_gtk=yes
20210 PKG_CONFIG=no
20211 fi
20212 else
20213 no_gtk=yes
20214 fi
f79bd02d 20215
21d1c967 20216 min_gtk_version=2.0.0
e6cc62c6
VS
20217 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20218echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20219
21d1c967
GD
20220 if test x$PKG_CONFIG != xno ; then
20221 ## don't try to run the test against uninstalled libtool libs
20222 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20223 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20224 enable_gtktest=no
20225 fi
f79bd02d 20226
21d1c967
GD
20227 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20228 :
20229 else
20230 no_gtk=yes
20231 fi
20232 fi
f79bd02d 20233
21d1c967
GD
20234 if test x"$no_gtk" = x ; then
20235 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20236 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20237 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20239 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20241 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20243 if test "x$enable_gtktest" = "xyes" ; then
20244 ac_save_CFLAGS="$CFLAGS"
20245 ac_save_LIBS="$LIBS"
20246 CFLAGS="$CFLAGS $GTK_CFLAGS"
20247 LIBS="$GTK_LIBS $LIBS"
20248 rm -f conf.gtktest
20249 if test "$cross_compiling" = yes; then
20250 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20251else
e6cc62c6 20252 cat >conftest.$ac_ext <<_ACEOF
09d3439c 20253#line $LINENO "configure"
e6cc62c6
VS
20254/* confdefs.h. */
20255_ACEOF
20256cat confdefs.h >>conftest.$ac_ext
20257cat >>conftest.$ac_ext <<_ACEOF
20258/* end confdefs.h. */
f79bd02d 20259
21d1c967
GD
20260#include <gtk/gtk.h>
20261#include <stdio.h>
20262#include <stdlib.h>
f79bd02d 20263
e6cc62c6 20264int
21d1c967
GD
20265main ()
20266{
20267 int major, minor, micro;
20268 char *tmp_version;
f79bd02d 20269
21d1c967 20270 system ("touch conf.gtktest");
f79bd02d 20271
21d1c967
GD
20272 /* HP/UX 9 (%@#!) writes to sscanf strings */
20273 tmp_version = g_strdup("$min_gtk_version");
20274 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20275 printf("%s, bad version string\n", "$min_gtk_version");
20276 exit(1);
20277 }
f79bd02d 20278
21d1c967
GD
20279 if ((gtk_major_version != $gtk_config_major_version) ||
20280 (gtk_minor_version != $gtk_config_minor_version) ||
20281 (gtk_micro_version != $gtk_config_micro_version))
20282 {
e6cc62c6 20283 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20284 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20285 gtk_major_version, gtk_minor_version, gtk_micro_version);
20286 printf ("*** was found! If pkg-config was correct, then it is best\n");
20287 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20288 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20289 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20290 printf("*** required on your system.\n");
20291 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20292 printf("*** to point to the correct configuration files\n");
e6cc62c6 20293 }
21d1c967
GD
20294 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20295 (gtk_minor_version != GTK_MINOR_VERSION) ||
20296 (gtk_micro_version != GTK_MICRO_VERSION))
20297 {
20298 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20299 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20300 printf("*** library (version %d.%d.%d)\n",
20301 gtk_major_version, gtk_minor_version, gtk_micro_version);
20302 }
20303 else
20304 {
20305 if ((gtk_major_version > major) ||
20306 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20307 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20308 {
20309 return 0;
20310 }
20311 else
20312 {
20313 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20314 gtk_major_version, gtk_minor_version, gtk_micro_version);
20315 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20316 major, minor, micro);
20317 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20318 printf("***\n");
20319 printf("*** If you have already installed a sufficiently new version, this error\n");
20320 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20321 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20322 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20323 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20324 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20325 printf("*** so that the correct libraries are found at run-time))\n");
20326 }
20327 }
20328 return 1;
20329}
f79bd02d 20330
e6cc62c6
VS
20331_ACEOF
20332rm -f conftest$ac_exeext
20333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20334 (eval $ac_link) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
21d1c967 20343 :
f79bd02d 20344else
e6cc62c6
VS
20345 echo "$as_me: program exited with status $ac_status" >&5
20346echo "$as_me: failed program was:" >&5
20347sed 's/^/| /' conftest.$ac_ext >&5
20348
20349( exit $ac_status )
20350no_gtk=yes
f79bd02d 20351fi
09d3439c 20352rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20353fi
21d1c967
GD
20354 CFLAGS="$ac_save_CFLAGS"
20355 LIBS="$ac_save_LIBS"
20356 fi
20357 fi
20358 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20359 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20360echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20361 wx_cv_lib_gtk=2.0
21d1c967 20362 else
e6cc62c6
VS
20363 echo "$as_me:$LINENO: result: no" >&5
20364echo "${ECHO_T}no" >&6
21d1c967
GD
20365 if test "$PKG_CONFIG" = "no" ; then
20366 echo "*** A new enough version of pkg-config was not found."
20367 echo "*** See http://pkgconfig.sourceforge.net"
20368 else
20369 if test -f conf.gtktest ; then
20370 :
20371 else
20372 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20373 ac_save_CFLAGS="$CFLAGS"
20374 ac_save_LIBS="$LIBS"
21d1c967
GD
20375 CFLAGS="$CFLAGS $GTK_CFLAGS"
20376 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 20377 cat >conftest.$ac_ext <<_ACEOF
09d3439c 20378#line $LINENO "configure"
e6cc62c6
VS
20379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
21d1c967
GD
20384
20385#include <gtk/gtk.h>
20386#include <stdio.h>
f79bd02d 20387
e6cc62c6
VS
20388int
20389main ()
20390{
20391 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20392 ;
20393 return 0;
20394}
20395_ACEOF
20396rm -f conftest.$ac_objext conftest$ac_exeext
20397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 20398 (eval $ac_link) 2>&5
e6cc62c6
VS
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
09d3439c 20402 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
21d1c967
GD
20408 echo "*** The test program compiled, but did not run. This usually means"
20409 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20410 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20411 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20412 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20413 echo "*** is required on your system"
20414 echo "***"
20415 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20416 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20417else
e6cc62c6
VS
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20422 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20423fi
09d3439c 20424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20425 CFLAGS="$ac_save_CFLAGS"
20426 LIBS="$ac_save_LIBS"
20427 fi
20428 fi
20429 GTK_CFLAGS=""
20430 GTK_LIBS=""
20431 :
20432 fi
e6cc62c6
VS
20433
20434
21d1c967 20435 rm -f conf.gtktest
f79bd02d 20436
2b5f62a0 20437 else
e6cc62c6
VS
20438
20439# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20440if test "${with_gtk_prefix+set}" = set; then
20441 withval="$with_gtk_prefix"
20442 gtk_config_prefix="$withval"
20443else
20444 gtk_config_prefix=""
e6cc62c6 20445fi;
f79bd02d 20446
21d1c967
GD
20447# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20448if test "${with_gtk_exec_prefix+set}" = set; then
20449 withval="$with_gtk_exec_prefix"
20450 gtk_config_exec_prefix="$withval"
20451else
20452 gtk_config_exec_prefix=""
e6cc62c6 20453fi;
21d1c967
GD
20454# Check whether --enable-gtktest or --disable-gtktest was given.
20455if test "${enable_gtktest+set}" = set; then
20456 enableval="$enable_gtktest"
e6cc62c6 20457
21d1c967
GD
20458else
20459 enable_gtktest=yes
e6cc62c6 20460fi;
21d1c967
GD
20461
20462 for module in . $GTK_MODULES
20463 do
20464 case "$module" in
e6cc62c6 20465 gthread)
21d1c967
GD
20466 gtk_config_args="$gtk_config_args gthread"
20467 ;;
20468 esac
20469 done
20470
20471 if test x$gtk_config_exec_prefix != x ; then
20472 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20473 if test x${GTK_CONFIG+set} != xset ; then
20474 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20475 fi
20476 fi
20477 if test x$gtk_config_prefix != x ; then
20478 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20479 if test x${GTK_CONFIG+set} != xset ; then
20480 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20481 fi
20482 fi
20483
20484 # Extract the first word of "gtk-config", so it can be a program name with args.
20485set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20486echo "$as_me:$LINENO: checking for $ac_word" >&5
20487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20488if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20490else
e6cc62c6
VS
20491 case $GTK_CONFIG in
20492 [\\/]* | ?:[\\/]*)
21d1c967
GD
20493 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20494 ;;
21d1c967 20495 *)
e6cc62c6
VS
20496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20497for as_dir in $PATH
20498do
20499 IFS=$as_save_IFS
20500 test -z "$as_dir" && as_dir=.
20501 for ac_exec_ext in '' $ac_executable_extensions; do
20502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20503 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20505 break 2
20506 fi
20507done
20508done
20509
21d1c967
GD
20510 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20511 ;;
20512esac
20513fi
e6cc62c6
VS
20514GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20515
21d1c967 20516if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20517 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20518echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20519else
e6cc62c6
VS
20520 echo "$as_me:$LINENO: result: no" >&5
20521echo "${ECHO_T}no" >&6
21d1c967
GD
20522fi
20523
20524 min_gtk_version=1.2.7
e6cc62c6
VS
20525 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20526echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20527 no_gtk=""
20528 if test "$GTK_CONFIG" = "no" ; then
20529 no_gtk=yes
20530 else
20531 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20532 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20533 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20534 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20535 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20536 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20537 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20538 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20539 if test "x$enable_gtktest" = "xyes" ; then
20540 ac_save_CFLAGS="$CFLAGS"
20541 ac_save_LIBS="$LIBS"
20542 CFLAGS="$CFLAGS $GTK_CFLAGS"
20543 LIBS="$GTK_LIBS $LIBS"
20544 rm -f conf.gtktest
20545 if test "$cross_compiling" = yes; then
20546 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20547else
e6cc62c6 20548 cat >conftest.$ac_ext <<_ACEOF
09d3439c 20549#line $LINENO "configure"
e6cc62c6
VS
20550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
f79bd02d 20555
21d1c967
GD
20556#include <gtk/gtk.h>
20557#include <stdio.h>
20558#include <stdlib.h>
f79bd02d 20559
e6cc62c6 20560int
21d1c967
GD
20561main ()
20562{
20563 int major, minor, micro;
20564 char *tmp_version;
20565
20566 system ("touch conf.gtktest");
20567
20568 /* HP/UX 9 (%@#!) writes to sscanf strings */
20569 tmp_version = g_strdup("$min_gtk_version");
20570 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20571 printf("%s, bad version string\n", "$min_gtk_version");
20572 exit(1);
20573 }
90dd450c 20574
21d1c967
GD
20575 if ((gtk_major_version != $gtk_config_major_version) ||
20576 (gtk_minor_version != $gtk_config_minor_version) ||
20577 (gtk_micro_version != $gtk_config_micro_version))
20578 {
e6cc62c6 20579 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20580 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20581 gtk_major_version, gtk_minor_version, gtk_micro_version);
20582 printf ("*** was found! If gtk-config was correct, then it is best\n");
20583 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20584 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20585 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20586 printf("*** required on your system.\n");
20587 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20588 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20589 printf("*** before re-running configure\n");
e6cc62c6 20590 }
21d1c967
GD
20591#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20592 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20593 (gtk_minor_version != GTK_MINOR_VERSION) ||
20594 (gtk_micro_version != GTK_MICRO_VERSION))
20595 {
20596 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20597 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20598 printf("*** library (version %d.%d.%d)\n",
20599 gtk_major_version, gtk_minor_version, gtk_micro_version);
20600 }
20601#endif /* defined (GTK_MAJOR_VERSION) ... */
20602 else
20603 {
20604 if ((gtk_major_version > major) ||
20605 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20606 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20607 {
20608 return 0;
20609 }
20610 else
20611 {
20612 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20613 gtk_major_version, gtk_minor_version, gtk_micro_version);
20614 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20615 major, minor, micro);
20616 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20617 printf("***\n");
20618 printf("*** If you have already installed a sufficiently new version, this error\n");
20619 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20620 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20621 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20622 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20623 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20624 printf("*** so that the correct libraries are found at run-time))\n");
20625 }
20626 }
20627 return 1;
20628}
20629
e6cc62c6
VS
20630_ACEOF
20631rm -f conftest$ac_exeext
20632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633 (eval $ac_link) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
21d1c967
GD
20642 :
20643else
e6cc62c6
VS
20644 echo "$as_me: program exited with status $ac_status" >&5
20645echo "$as_me: failed program was:" >&5
20646sed 's/^/| /' conftest.$ac_ext >&5
20647
20648( exit $ac_status )
20649no_gtk=yes
21d1c967 20650fi
09d3439c 20651rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20652fi
21d1c967
GD
20653 CFLAGS="$ac_save_CFLAGS"
20654 LIBS="$ac_save_LIBS"
20655 fi
20656 fi
20657 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20658 echo "$as_me:$LINENO: result: yes" >&5
20659echo "${ECHO_T}yes" >&6
20660 wx_cv_lib_gtk=1.2.7
21d1c967 20661 else
e6cc62c6
VS
20662 echo "$as_me:$LINENO: result: no" >&5
20663echo "${ECHO_T}no" >&6
21d1c967
GD
20664 if test "$GTK_CONFIG" = "no" ; then
20665 echo "*** The gtk-config script installed by GTK could not be found"
20666 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20667 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20668 echo "*** full path to gtk-config."
20669 else
20670 if test -f conf.gtktest ; then
20671 :
20672 else
20673 echo "*** Could not run GTK test program, checking why..."
20674 CFLAGS="$CFLAGS $GTK_CFLAGS"
20675 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 20676 cat >conftest.$ac_ext <<_ACEOF
09d3439c 20677#line $LINENO "configure"
e6cc62c6
VS
20678/* confdefs.h. */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h. */
21d1c967
GD
20683
20684#include <gtk/gtk.h>
20685#include <stdio.h>
20686
e6cc62c6
VS
20687int
20688main ()
20689{
20690 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20691 ;
20692 return 0;
20693}
20694_ACEOF
20695rm -f conftest.$ac_objext conftest$ac_exeext
20696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 20697 (eval $ac_link) 2>&5
e6cc62c6
VS
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
09d3439c 20701 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
21d1c967
GD
20707 echo "*** The test program compiled, but did not run. This usually means"
20708 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20709 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20710 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20711 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20712 echo "*** is required on your system"
20713 echo "***"
20714 echo "*** If you have an old version installed, it is best to remove it, although"
20715 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20716 echo "***"
20717 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20718 echo "*** came with the system with the command"
20719 echo "***"
e6cc62c6 20720 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20721else
e6cc62c6
VS
20722 echo "$as_me: failed program was:" >&5
20723sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20726 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20727 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20728 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20729fi
09d3439c 20730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20731 CFLAGS="$ac_save_CFLAGS"
20732 LIBS="$ac_save_LIBS"
20733 fi
20734 fi
20735 GTK_CFLAGS=""
20736 GTK_LIBS=""
20737 :
20738 fi
e6cc62c6
VS
20739
20740
21d1c967
GD
20741 rm -f conf.gtktest
20742
21d1c967 20743
2b5f62a0 20744 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20745
20746# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20747if test "${with_gtk_prefix+set}" = set; then
20748 withval="$with_gtk_prefix"
20749 gtk_config_prefix="$withval"
20750else
20751 gtk_config_prefix=""
e6cc62c6 20752fi;
f79bd02d 20753
21d1c967
GD
20754# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20755if test "${with_gtk_exec_prefix+set}" = set; then
20756 withval="$with_gtk_exec_prefix"
20757 gtk_config_exec_prefix="$withval"
20758else
20759 gtk_config_exec_prefix=""
e6cc62c6 20760fi;
21d1c967
GD
20761# Check whether --enable-gtktest or --disable-gtktest was given.
20762if test "${enable_gtktest+set}" = set; then
20763 enableval="$enable_gtktest"
e6cc62c6 20764
90dd450c 20765else
21d1c967 20766 enable_gtktest=yes
e6cc62c6 20767fi;
21d1c967
GD
20768
20769 for module in . $GTK_MODULES
20770 do
20771 case "$module" in
e6cc62c6 20772 gthread)
21d1c967
GD
20773 gtk_config_args="$gtk_config_args gthread"
20774 ;;
20775 esac
20776 done
20777
20778 if test x$gtk_config_exec_prefix != x ; then
20779 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20780 if test x${GTK_CONFIG+set} != xset ; then
20781 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20782 fi
20783 fi
20784 if test x$gtk_config_prefix != x ; then
20785 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20786 if test x${GTK_CONFIG+set} != xset ; then
20787 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20788 fi
20789 fi
20790
20791 # Extract the first word of "gtk-config", so it can be a program name with args.
20792set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20793echo "$as_me:$LINENO: checking for $ac_word" >&5
20794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20795if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20797else
e6cc62c6
VS
20798 case $GTK_CONFIG in
20799 [\\/]* | ?:[\\/]*)
21d1c967
GD
20800 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20801 ;;
21d1c967 20802 *)
e6cc62c6
VS
20803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20804for as_dir in $PATH
20805do
20806 IFS=$as_save_IFS
20807 test -z "$as_dir" && as_dir=.
20808 for ac_exec_ext in '' $ac_executable_extensions; do
20809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20810 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20812 break 2
20813 fi
20814done
20815done
20816
21d1c967
GD
20817 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20818 ;;
20819esac
20820fi
e6cc62c6
VS
20821GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20822
21d1c967 20823if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20824 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20825echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20826else
e6cc62c6
VS
20827 echo "$as_me:$LINENO: result: no" >&5
20828echo "${ECHO_T}no" >&6
21d1c967
GD
20829fi
20830
20831 min_gtk_version=1.2.3
e6cc62c6
VS
20832 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20833echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20834 no_gtk=""
20835 if test "$GTK_CONFIG" = "no" ; then
20836 no_gtk=yes
20837 else
20838 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20839 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20840 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20842 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20843 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20844 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20845 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20846 if test "x$enable_gtktest" = "xyes" ; then
20847 ac_save_CFLAGS="$CFLAGS"
20848 ac_save_LIBS="$LIBS"
20849 CFLAGS="$CFLAGS $GTK_CFLAGS"
20850 LIBS="$GTK_LIBS $LIBS"
20851 rm -f conf.gtktest
20852 if test "$cross_compiling" = yes; then
20853 echo $ac_n "cross compiling; assumed OK... $ac_c"
20854else
e6cc62c6 20855 cat >conftest.$ac_ext <<_ACEOF
09d3439c 20856#line $LINENO "configure"
e6cc62c6
VS
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
21d1c967
GD
20862
20863#include <gtk/gtk.h>
20864#include <stdio.h>
20865#include <stdlib.h>
20866
e6cc62c6 20867int
21d1c967
GD
20868main ()
20869{
20870 int major, minor, micro;
20871 char *tmp_version;
20872
20873 system ("touch conf.gtktest");
20874
20875 /* HP/UX 9 (%@#!) writes to sscanf strings */
20876 tmp_version = g_strdup("$min_gtk_version");
20877 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20878 printf("%s, bad version string\n", "$min_gtk_version");
20879 exit(1);
20880 }
20881
20882 if ((gtk_major_version != $gtk_config_major_version) ||
20883 (gtk_minor_version != $gtk_config_minor_version) ||
20884 (gtk_micro_version != $gtk_config_micro_version))
20885 {
e6cc62c6 20886 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20887 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20888 gtk_major_version, gtk_minor_version, gtk_micro_version);
20889 printf ("*** was found! If gtk-config was correct, then it is best\n");
20890 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20891 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20892 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20893 printf("*** required on your system.\n");
20894 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20895 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20896 printf("*** before re-running configure\n");
e6cc62c6 20897 }
21d1c967
GD
20898#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20899 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20900 (gtk_minor_version != GTK_MINOR_VERSION) ||
20901 (gtk_micro_version != GTK_MICRO_VERSION))
20902 {
20903 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20904 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20905 printf("*** library (version %d.%d.%d)\n",
20906 gtk_major_version, gtk_minor_version, gtk_micro_version);
20907 }
20908#endif /* defined (GTK_MAJOR_VERSION) ... */
20909 else
20910 {
20911 if ((gtk_major_version > major) ||
20912 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20913 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20914 {
20915 return 0;
20916 }
20917 else
20918 {
20919 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20920 gtk_major_version, gtk_minor_version, gtk_micro_version);
20921 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20922 major, minor, micro);
20923 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20924 printf("***\n");
20925 printf("*** If you have already installed a sufficiently new version, this error\n");
20926 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20927 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20928 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20929 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20930 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20931 printf("*** so that the correct libraries are found at run-time))\n");
20932 }
20933 }
20934 return 1;
20935}
20936
e6cc62c6
VS
20937_ACEOF
20938rm -f conftest$ac_exeext
20939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20940 (eval $ac_link) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
21d1c967
GD
20949 :
20950else
e6cc62c6
VS
20951 echo "$as_me: program exited with status $ac_status" >&5
20952echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955( exit $ac_status )
20956no_gtk=yes
21d1c967 20957fi
09d3439c 20958rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20959fi
21d1c967
GD
20960 CFLAGS="$ac_save_CFLAGS"
20961 LIBS="$ac_save_LIBS"
20962 fi
20963 fi
20964 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20965 echo "$as_me:$LINENO: result: yes" >&5
20966echo "${ECHO_T}yes" >&6
20967 wx_cv_lib_gtk=1.2.3
21d1c967 20968 else
e6cc62c6
VS
20969 echo "$as_me:$LINENO: result: no" >&5
20970echo "${ECHO_T}no" >&6
21d1c967
GD
20971 if test "$GTK_CONFIG" = "no" ; then
20972 echo "*** The gtk-config script installed by GTK could not be found"
20973 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20974 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20975 echo "*** full path to gtk-config."
20976 else
20977 if test -f conf.gtktest ; then
20978 :
20979 else
20980 echo "*** Could not run GTK test program, checking why..."
20981 CFLAGS="$CFLAGS $GTK_CFLAGS"
20982 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 20983 cat >conftest.$ac_ext <<_ACEOF
09d3439c 20984#line $LINENO "configure"
e6cc62c6
VS
20985/* confdefs.h. */
20986_ACEOF
20987cat confdefs.h >>conftest.$ac_ext
20988cat >>conftest.$ac_ext <<_ACEOF
20989/* end confdefs.h. */
21d1c967
GD
20990
20991#include <gtk/gtk.h>
20992#include <stdio.h>
f79bd02d 20993
e6cc62c6
VS
20994int
20995main ()
20996{
20997 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20998 ;
20999 return 0;
21000}
21001_ACEOF
21002rm -f conftest.$ac_objext conftest$ac_exeext
21003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21004 (eval $ac_link) 2>&5
e6cc62c6
VS
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
09d3439c 21008 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21d1c967
GD
21014 echo "*** The test program compiled, but did not run. This usually means"
21015 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21016 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21017 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21018 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21019 echo "*** is required on your system"
21020 echo "***"
21021 echo "*** If you have an old version installed, it is best to remove it, although"
21022 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21023 echo "***"
21024 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21025 echo "*** came with the system with the command"
21026 echo "***"
e6cc62c6 21027 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21028else
e6cc62c6
VS
21029 echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21033 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21034 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21035 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21036fi
09d3439c 21037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21038 CFLAGS="$ac_save_CFLAGS"
21039 LIBS="$ac_save_LIBS"
21040 fi
21041 fi
21042 GTK_CFLAGS=""
21043 GTK_LIBS=""
21044 :
21045 fi
e6cc62c6
VS
21046
21047
21d1c967 21048 rm -f conf.gtktest
f79bd02d 21049
2b5f62a0 21050 fi
21d1c967
GD
21051 fi
21052
21053 if test -z "$wx_cv_lib_gtk"; then
21054 wx_cv_lib_gtk=none
21055 else
21056 wx_cv_cflags_gtk=$GTK_CFLAGS
21057 wx_cv_libs_gtk=$GTK_LIBS
21058 fi
e6cc62c6
VS
21059
21060
5c6fa7d2 21061fi
52127426 21062
8284b0c5 21063
21d1c967 21064 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
21065 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21066echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
21067 fi
21068
21069 case "$wx_cv_lib_gtk" in
21070 2.0) WXGTK20=1
2b5f62a0 21071 TOOLKIT_VERSION=2
21d1c967
GD
21072 ;;
21073 1.2.7) WXGTK127=1
21074 WXGTK12=1
21075 ;;
21076 1.2.3) WXGTK12=1
21077 ;;
e6cc62c6
VS
21078 *) { { echo "$as_me:$LINENO: error:
21079Please check that gtk-config is in path, the directory
21080where GTK+ libraries are installed (returned by
21081'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21082equivalent variable and GTK+ is version 1.2.3 or above.
21083 " >&5
21084echo "$as_me: error:
247f5006
VZ
21085Please check that gtk-config is in path, the directory
21086where GTK+ libraries are installed (returned by
21087'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21088equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
21089 " >&2;}
21090 { (exit 1); exit 1; }; }
21d1c967
GD
21091 ;;
21092 esac
21093
b13cd66e
VZ
21094 if test "$WXGTK20" = 1; then
21095 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 21096
f09359cf
VS
21097 succeeded=no
21098
21099 if test -z "$PKG_CONFIG"; then
21100 # Extract the first word of "pkg-config", so it can be a program name with args.
21101set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21102echo "$as_me:$LINENO: checking for $ac_word" >&5
21103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21104if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 21106else
e6cc62c6
VS
21107 case $PKG_CONFIG in
21108 [\\/]* | ?:[\\/]*)
f09359cf
VS
21109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21110 ;;
f09359cf 21111 *)
e6cc62c6
VS
21112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21113for as_dir in $PATH
21114do
21115 IFS=$as_save_IFS
21116 test -z "$as_dir" && as_dir=.
21117 for ac_exec_ext in '' $ac_executable_extensions; do
21118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21121 break 2
21122 fi
21123done
21124done
21125
f09359cf
VS
21126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21127 ;;
21128esac
21129fi
e6cc62c6
VS
21130PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21131
f09359cf 21132if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21133 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21134echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 21135else
e6cc62c6
VS
21136 echo "$as_me:$LINENO: result: no" >&5
21137echo "${ECHO_T}no" >&6
f09359cf
VS
21138fi
21139
21140 fi
21141
21142 if test "$PKG_CONFIG" = "no" ; then
21143 echo "*** The pkg-config script could not be found. Make sure it is"
21144 echo "*** in your path, or set the PKG_CONFIG environment variable"
21145 echo "*** to the full path to pkg-config."
21146 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21147 else
21148 PKG_CONFIG_MIN_VERSION=0.9.0
21149 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
21150 echo "$as_me:$LINENO: checking for pangoft2" >&5
21151echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
21152
21153 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
21154 echo "$as_me:$LINENO: result: yes" >&5
21155echo "${ECHO_T}yes" >&6
f09359cf
VS
21156 succeeded=yes
21157
e6cc62c6
VS
21158 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21159echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 21160 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
21161 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21162echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 21163
e6cc62c6
VS
21164 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21165echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 21166 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
21167 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21168echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
21169 else
21170 PANGOFT2_CFLAGS=""
21171 PANGOFT2_LIBS=""
e6cc62c6 21172 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
21173 ## do set a variable so people can do so.
21174 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 21175
f09359cf
VS
21176 fi
21177
e6cc62c6
VS
21178
21179
f09359cf
VS
21180 else
21181 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21182 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21183 fi
21184 fi
21185
21186 if test $succeeded = yes; then
e6cc62c6 21187
b13cd66e 21188 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 21189 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 21190
f09359cf 21191 else
e6cc62c6
VS
21192
21193 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21194echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 21195 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
21196
21197
f09359cf
VS
21198 fi
21199
b13cd66e 21200 fi
2b5f62a0
VZ
21201 else
21202 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
21203 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21204echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21205 wxUSE_UNICODE=no
21206 fi
21207 fi
21208
21209 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21210
21211for ac_func in poll
2b5f62a0 21212do
e6cc62c6
VS
21213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21214echo "$as_me:$LINENO: checking for $ac_func" >&5
21215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21216if eval "test \"\${$as_ac_var+set}\" = set"; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21218else
21219 cat >conftest.$ac_ext <<_ACEOF
09d3439c 21220#line $LINENO "configure"
e6cc62c6
VS
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
2b5f62a0 21226/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21227 which can conflict with char $ac_func (); below.
21228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21229 <limits.h> exists even on freestanding compilers. */
21230#ifdef __STDC__
21231# include <limits.h>
21232#else
21233# include <assert.h>
21234#endif
2b5f62a0 21235/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21236#ifdef __cplusplus
21237extern "C"
21238{
21239#endif
2b5f62a0 21240/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21241 builtin and then its argument prototype would still apply. */
21242char $ac_func ();
2b5f62a0
VZ
21243/* The GNU C library defines this for functions which it implements
21244 to always fail with ENOSYS. Some functions are actually named
21245 something starting with __ and the normal name is an alias. */
21246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21247choke me
21248#else
e6cc62c6
VS
21249char (*f) () = $ac_func;
21250#endif
21251#ifdef __cplusplus
21252}
2b5f62a0
VZ
21253#endif
21254
e6cc62c6
VS
21255int
21256main ()
21257{
21258return f != $ac_func;
21259 ;
21260 return 0;
21261}
21262_ACEOF
21263rm -f conftest.$ac_objext conftest$ac_exeext
21264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21265 (eval $ac_link) 2>&5
e6cc62c6
VS
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
09d3439c 21269 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
21275 eval "$as_ac_var=yes"
21276else
21277 echo "$as_me: failed program was:" >&5
21278sed 's/^/| /' conftest.$ac_ext >&5
21279
21280eval "$as_ac_var=no"
21281fi
09d3439c 21282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21283fi
21284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21286if test `eval echo '${'$as_ac_var'}'` = yes; then
21287 cat >>confdefs.h <<_ACEOF
21288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21289_ACEOF
2b5f62a0 21290
2b5f62a0
VZ
21291fi
21292done
21293
f09359cf
VS
21294 fi
21295
21d1c967 21296 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21297 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21298
21299 AFMINSTALL=afminstall
21300 TOOLKIT=GTK
21301 GUIDIST=GTK_DIST
21302
e6cc62c6
VS
21303 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21304echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21305if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21307else
e6cc62c6 21308 ac_check_lib_save_LIBS=$LIBS
21d1c967 21309LIBS="-lgdk $LIBS"
e6cc62c6 21310cat >conftest.$ac_ext <<_ACEOF
09d3439c 21311#line $LINENO "configure"
e6cc62c6
VS
21312/* confdefs.h. */
21313_ACEOF
21314cat confdefs.h >>conftest.$ac_ext
21315cat >>conftest.$ac_ext <<_ACEOF
21316/* end confdefs.h. */
21317
5c6fa7d2 21318/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21319#ifdef __cplusplus
21320extern "C"
21321#endif
5c6fa7d2 21322/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21323 builtin and then its argument prototype would still apply. */
21324char gdk_im_open ();
21325int
21326main ()
21327{
21328gdk_im_open ();
21329 ;
21330 return 0;
21331}
21332_ACEOF
21333rm -f conftest.$ac_objext conftest$ac_exeext
21334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21335 (eval $ac_link) 2>&5
e6cc62c6
VS
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
09d3439c 21339 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_cv_lib_gdk_gdk_im_open=yes
21346else
21347 echo "$as_me: failed program was:" >&5
21348sed 's/^/| /' conftest.$ac_ext >&5
21349
21350ac_cv_lib_gdk_gdk_im_open=no
21351fi
09d3439c 21352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21353LIBS=$ac_check_lib_save_LIBS
21354fi
21355echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21356echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21357if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21358 cat >>confdefs.h <<\_ACEOF
21d1c967 21359#define HAVE_XIM 1
e6cc62c6 21360_ACEOF
21d1c967 21361
90dd450c 21362fi
1e6feb95 21363
21d1c967 21364 fi
1e6feb95 21365
21d1c967 21366 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21367 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21368echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21369 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21370 echo "$as_me:$LINENO: result: not found" >&5
21371echo "${ECHO_T}not found" >&6
21372 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21373echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21374 { (exit 1); exit 1; }; }
21d1c967 21375 else
e6cc62c6
VS
21376 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21377echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21378 fi
21379
e6cc62c6
VS
21380 echo "$as_me:$LINENO: checking for libmgl location" >&5
21381echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21382 case "${host}" in
21d1c967 21383 *-*-linux* )
e46d2a18
VS
21384 if test "x$wxUSE_SHARED" = xyes ; then
21385 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21386 else
e46d2a18 21387 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21388 fi
21d1c967
GD
21389 ;;
21390 *-pc-msdosdjgpp )
63a76696 21391 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21392 ;;
21393 *)
e6cc62c6
VS
21394 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21395echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21396 { (exit 1); exit 1; }; }
21d1c967 21397 esac
1e6feb95 21398
21d1c967 21399 mgl_lib_type=""
63a76696
VS
21400 mgl_os=""
21401
21402 for mgl_os_i in $mgl_os_candidates ; do
21403 if test "x$mgl_os" = x ; then
21404 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21405 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21406 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21407 mgl_lib_type=debug
21408 mgl_os=$mgl_os_i
21409 fi
21410 fi
21411 if test "x$mgl_lib_type" = x ; then
21412 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21413 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21414 mgl_lib_type=release
21415 mgl_os=$mgl_os_i
21416 fi
21417 fi
21d1c967 21418 fi
63a76696 21419 done
2224580a 21420
63a76696 21421 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21422 echo "$as_me:$LINENO: result: not found" >&5
21423echo "${ECHO_T}not found" >&6
21424 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21425echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21426 { (exit 1); exit 1; }; }
63a76696 21427 fi
e6cc62c6
VS
21428 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21429echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21430
1d1b75ac
VZ
21431 wxUSE_UNIVERSAL="yes"
21432
21d1c967
GD
21433 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21434 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21435
90dd450c 21436 AFMINSTALL=afminstall
21d1c967
GD
21437 TOOLKIT=MGL
21438 GUIDIST=MGL_DIST
21439 fi
dad6c0ea 21440
21d1c967 21441 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21442 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21443echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21444 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21445 echo "$as_me:$LINENO: result: not found" >&5
21446echo "${ECHO_T}not found" >&6
21447 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21448echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21449 { (exit 1); exit 1; }; }
21d1c967 21450 else
e6cc62c6
VS
21451 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21452echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21453 fi
f6bcfd97 21454
21d1c967 21455 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21456 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21457echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21458 else
e6cc62c6
VS
21459 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21460echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21461 { (exit 1); exit 1; }; }
90dd450c 21462 fi
0b2effe9 21463
21d1c967
GD
21464 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21465 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21466
1d1b75ac
VZ
21467 wxUSE_UNIVERSAL="yes"
21468
21d1c967
GD
21469 AFMINSTALL=afminstall
21470 TOOLKIT=MICROWIN
21471 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21472
21473 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21474 fi
f6bcfd97 21475
21d1c967 21476 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21477 echo "$as_me:$LINENO: checking for X" >&5
21478echo $ECHO_N "checking for X... $ECHO_C" >&6
21479
d8356fa3 21480
21d1c967
GD
21481# Check whether --with-x or --without-x was given.
21482if test "${with_x+set}" = set; then
21483 withval="$with_x"
2224580a 21484
e6cc62c6 21485fi;
21d1c967
GD
21486# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21487if test "x$with_x" = xno; then
21488 # The user explicitly disabled X.
21489 have_x=disabled
21490else
21491 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21492 # Both variables are already set.
21493 have_x=yes
21494 else
e6cc62c6
VS
21495 if test "${ac_cv_have_x+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21497else
21498 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21499ac_x_includes=no ac_x_libraries=no
21500rm -fr conftest.dir
21501if mkdir conftest.dir; then
21502 cd conftest.dir
21d1c967 21503 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21504 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21505acfindx:
21506 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21507_ACEOF
21d1c967
GD
21508 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21510 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21511 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21512 for ac_extension in a so sl; do
21513 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
09d3439c
VZ
21514 test -f $ac_im_libdir/libX11.$ac_extension; then
21515 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
21516 fi
21517 done
21518 # Screen out bogus values from the imake configuration. They are
21519 # bogus both because they are the default anyway, and because
21520 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21521 case $ac_im_incroot in
21d1c967 21522 /usr/include) ;;
e6cc62c6 21523 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21524 esac
e6cc62c6 21525 case $ac_im_usrlibdir in
21d1c967 21526 /usr/lib | /lib) ;;
e6cc62c6 21527 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21528 esac
21529 fi
21530 cd ..
e6cc62c6 21531 rm -fr conftest.dir
21d1c967 21532fi
10f2d63a 21533
e6cc62c6
VS
21534# Standard set of common directories for X headers.
21535# Check X11 before X11Rn because it is often a symlink to the current release.
21536ac_x_header_dirs='
21537/usr/X11/include
21538/usr/X11R6/include
21539/usr/X11R5/include
21540/usr/X11R4/include
21541
21542/usr/include/X11
21543/usr/include/X11R6
21544/usr/include/X11R5
21545/usr/include/X11R4
21546
21547/usr/local/X11/include
21548/usr/local/X11R6/include
21549/usr/local/X11R5/include
21550/usr/local/X11R4/include
21551
21552/usr/local/include/X11
21553/usr/local/include/X11R6
21554/usr/local/include/X11R5
21555/usr/local/include/X11R4
21556
21557/usr/X386/include
21558/usr/x386/include
21559/usr/XFree86/include/X11
21560
21561/usr/include
21562/usr/local/include
21563/usr/unsupported/include
21564/usr/athena/include
21565/usr/local/x11r5/include
21566/usr/lpp/Xamples/include
21567
21568/usr/openwin/include
21569/usr/openwin/share/include'
21570
21571if test "$ac_x_includes" = no; then
21572 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21573 # First, try using that file with no special directory specified.
e6cc62c6 21574 cat >conftest.$ac_ext <<_ACEOF
09d3439c 21575#line $LINENO "configure"
e6cc62c6
VS
21576/* confdefs.h. */
21577_ACEOF
21578cat confdefs.h >>conftest.$ac_ext
21579cat >>conftest.$ac_ext <<_ACEOF
21580/* end confdefs.h. */
21581#include <X11/Intrinsic.h>
21582_ACEOF
21583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21585 ac_status=$?
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } >/dev/null; then
21591 if test -s conftest.err; then
21592 ac_cpp_err=$ac_c_preproc_warn_flag
21593 else
21594 ac_cpp_err=
21595 fi
21596else
21597 ac_cpp_err=yes
21598fi
21599if test -z "$ac_cpp_err"; then
21d1c967
GD
21600 # We can compile using X headers with no special include directory.
21601ac_x_includes=
90dd450c 21602else
e6cc62c6
VS
21603 echo "$as_me: failed program was:" >&5
21604sed 's/^/| /' conftest.$ac_ext >&5
21605
21606 for ac_dir in $ac_x_header_dirs; do
21607 if test -r "$ac_dir/X11/Intrinsic.h"; then
21608 ac_x_includes=$ac_dir
21609 break
21610 fi
21611done
3a922bb4 21612fi
e6cc62c6
VS
21613rm -f conftest.err conftest.$ac_ext
21614fi # $ac_x_includes = no
10f2d63a 21615
e6cc62c6 21616if test "$ac_x_libraries" = no; then
21d1c967 21617 # Check for the libraries.
21d1c967
GD
21618 # See if we find them without any special options.
21619 # Don't add to $LIBS permanently.
e6cc62c6
VS
21620 ac_save_LIBS=$LIBS
21621 LIBS="-lXt $LIBS"
21622 cat >conftest.$ac_ext <<_ACEOF
09d3439c 21623#line $LINENO "configure"
e6cc62c6
VS
21624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
21629#include <X11/Intrinsic.h>
21630int
21631main ()
21632{
21633XtMalloc (0)
21634 ;
21635 return 0;
21636}
21637_ACEOF
21638rm -f conftest.$ac_objext conftest$ac_exeext
21639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21640 (eval $ac_link) 2>&5
e6cc62c6
VS
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } &&
09d3439c 21644 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 LIBS=$ac_save_LIBS
21d1c967
GD
21651# We can link X programs with no special library path.
21652ac_x_libraries=
3a922bb4 21653else
e6cc62c6
VS
21654 echo "$as_me: failed program was:" >&5
21655sed 's/^/| /' conftest.$ac_ext >&5
21656
21657LIBS=$ac_save_LIBS
21658for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21659do
e6cc62c6 21660 # Don't even attempt the hair of trying to link an X program!
21d1c967 21661 for ac_extension in a so sl; do
e6cc62c6 21662 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21663 ac_x_libraries=$ac_dir
21664 break 2
21665 fi
21666 done
21667done
3a922bb4 21668fi
09d3439c 21669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 21670fi # $ac_x_libraries = no
90dd450c 21671
e6cc62c6 21672if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21673 # Didn't find X anywhere. Cache the known absence of X.
21674 ac_cv_have_x="have_x=no"
21675else
21676 # Record where we found X for the cache.
21677 ac_cv_have_x="have_x=yes \
09d3439c 21678 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21679fi
21d1c967 21680fi
e6cc62c6 21681
21d1c967
GD
21682 fi
21683 eval "$ac_cv_have_x"
21684fi # $with_x != no
90dd450c 21685
21d1c967 21686if test "$have_x" != yes; then
e6cc62c6
VS
21687 echo "$as_me:$LINENO: result: $have_x" >&5
21688echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21689 no_x=yes
21690else
21691 # If each of the values was on the command line, it overrides each guess.
21692 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21693 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21694 # Update the cache value to reflect the command line values.
21695 ac_cv_have_x="have_x=yes \
21696 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21697 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21698echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21699fi
90dd450c 21700
21d1c967 21701if test "$no_x" = yes; then
90dd450c 21702 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21703
21704cat >>confdefs.h <<\_ACEOF
90dd450c 21705#define X_DISPLAY_MISSING 1
e6cc62c6 21706_ACEOF
90dd450c
VZ
21707
21708 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21709else
21710 if test -n "$x_includes"; then
21711 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21712 fi
3a922bb4 21713
90dd450c
VZ
21714 # It would also be nice to do this for all -L options, not just this one.
21715 if test -n "$x_libraries"; then
21716 X_LIBS="$X_LIBS -L$x_libraries"
21717 # For Solaris; some versions of Sun CC require a space after -R and
21718 # others require no space. Words are not sufficient . . . .
e6cc62c6 21719 case `(uname -sr) 2>/dev/null` in
90dd450c 21720 "SunOS 5"*)
e6cc62c6
VS
21721 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21722echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21723 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21724 cat >conftest.$ac_ext <<_ACEOF
09d3439c 21725#line $LINENO "configure"
e6cc62c6
VS
21726/* confdefs.h. */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h. */
21731
21732int
21733main ()
21734{
90dd450c 21735
e6cc62c6
VS
21736 ;
21737 return 0;
21738}
21739_ACEOF
21740rm -f conftest.$ac_objext conftest$ac_exeext
21741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21742 (eval $ac_link) 2>&5
e6cc62c6
VS
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
09d3439c 21746 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
90dd450c 21752 ac_R_nospace=yes
3a922bb4 21753else
e6cc62c6
VS
21754 echo "$as_me: failed program was:" >&5
21755sed 's/^/| /' conftest.$ac_ext >&5
21756
21757ac_R_nospace=no
3a922bb4 21758fi
09d3439c 21759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21760 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21761 echo "$as_me:$LINENO: result: no" >&5
21762echo "${ECHO_T}no" >&6
90dd450c
VZ
21763 X_LIBS="$X_LIBS -R$x_libraries"
21764 else
21765 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 21766 cat >conftest.$ac_ext <<_ACEOF
09d3439c 21767#line $LINENO "configure"
e6cc62c6
VS
21768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
21773
21774int
21775main ()
21776{
6f754473 21777
e6cc62c6
VS
21778 ;
21779 return 0;
21780}
21781_ACEOF
21782rm -f conftest.$ac_objext conftest$ac_exeext
21783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21784 (eval $ac_link) 2>&5
e6cc62c6
VS
21785 ac_status=$?
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } &&
09d3439c 21788 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
90dd450c
VZ
21794 ac_R_space=yes
21795else
e6cc62c6
VS
21796 echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
21798
21799ac_R_space=no
90dd450c 21800fi
09d3439c 21801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21802 if test $ac_R_space = yes; then
e6cc62c6
VS
21803 echo "$as_me:$LINENO: result: yes" >&5
21804echo "${ECHO_T}yes" >&6
90dd450c
VZ
21805 X_LIBS="$X_LIBS -R $x_libraries"
21806 else
e6cc62c6
VS
21807 echo "$as_me:$LINENO: result: neither works" >&5
21808echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21809 fi
21810 fi
e6cc62c6 21811 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21812 esac
21813 fi
21814
21815 # Check for system-dependent libraries X programs must link with.
21816 # Do this before checking for the system-independent R6 libraries
21817 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21818
90dd450c
VZ
21819 if test "$ISC" = yes; then
21820 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21821 else
e6cc62c6
VS
21822 # Martyn Johnson says this is needed for Ultrix, if the X
21823 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21824 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21825 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21826 cat >conftest.$ac_ext <<_ACEOF
09d3439c 21827#line $LINENO "configure"
e6cc62c6
VS
21828/* confdefs.h. */
21829_ACEOF
21830cat confdefs.h >>conftest.$ac_ext
21831cat >>conftest.$ac_ext <<_ACEOF
21832/* end confdefs.h. */
21833
247f5006 21834/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21835#ifdef __cplusplus
21836extern "C"
21837#endif
247f5006 21838/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21839 builtin and then its argument prototype would still apply. */
21840char XOpenDisplay ();
21841int
21842main ()
21843{
21844XOpenDisplay ();
21845 ;
21846 return 0;
21847}
21848_ACEOF
21849rm -f conftest.$ac_objext conftest$ac_exeext
21850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21851 (eval $ac_link) 2>&5
e6cc62c6
VS
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } &&
09d3439c 21855 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 :
21862else
21863 echo "$as_me: failed program was:" >&5
21864sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21865
e6cc62c6
VS
21866echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21867echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21868if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21870else
e6cc62c6
VS
21871 ac_check_lib_save_LIBS=$LIBS
21872LIBS="-ldnet $LIBS"
21873cat >conftest.$ac_ext <<_ACEOF
09d3439c 21874#line $LINENO "configure"
e6cc62c6
VS
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
a0b9e27f 21880
e6cc62c6
VS
21881/* Override any gcc2 internal prototype to avoid an error. */
21882#ifdef __cplusplus
21883extern "C"
21884#endif
21885/* We use char because int might match the return type of a gcc2
21886 builtin and then its argument prototype would still apply. */
21887char dnet_ntoa ();
21888int
21889main ()
21890{
21891dnet_ntoa ();
21892 ;
21893 return 0;
21894}
21895_ACEOF
21896rm -f conftest.$ac_objext conftest$ac_exeext
21897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21898 (eval $ac_link) 2>&5
e6cc62c6
VS
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
09d3439c 21902 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }; then
21908 ac_cv_lib_dnet_dnet_ntoa=yes
21909else
21910 echo "$as_me: failed program was:" >&5
21911sed 's/^/| /' conftest.$ac_ext >&5
21912
21913ac_cv_lib_dnet_dnet_ntoa=no
21914fi
09d3439c 21915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21916LIBS=$ac_check_lib_save_LIBS
21917fi
21918echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21919echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21920if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21921 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21922fi
21923
90dd450c 21924 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21925 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21926echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21927if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21929else
e6cc62c6 21930 ac_check_lib_save_LIBS=$LIBS
90dd450c 21931LIBS="-ldnet_stub $LIBS"
e6cc62c6 21932cat >conftest.$ac_ext <<_ACEOF
09d3439c 21933#line $LINENO "configure"
e6cc62c6
VS
21934/* confdefs.h. */
21935_ACEOF
21936cat confdefs.h >>conftest.$ac_ext
21937cat >>conftest.$ac_ext <<_ACEOF
21938/* end confdefs.h. */
21939
90dd450c 21940/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21941#ifdef __cplusplus
21942extern "C"
21943#endif
90dd450c 21944/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21945 builtin and then its argument prototype would still apply. */
21946char dnet_ntoa ();
21947int
21948main ()
21949{
21950dnet_ntoa ();
21951 ;
21952 return 0;
21953}
21954_ACEOF
21955rm -f conftest.$ac_objext conftest$ac_exeext
21956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 21957 (eval $ac_link) 2>&5
e6cc62c6
VS
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
09d3439c 21961 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21968else
21969 echo "$as_me: failed program was:" >&5
21970sed 's/^/| /' conftest.$ac_ext >&5
21971
21972ac_cv_lib_dnet_stub_dnet_ntoa=no
21973fi
09d3439c 21974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21975LIBS=$ac_check_lib_save_LIBS
21976fi
21977echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21978echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21979if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21980 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21981fi
21982
90dd450c 21983 fi
e6cc62c6 21984fi
09d3439c 21985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 21986 LIBS="$ac_xsave_LIBS"
978f1259 21987
90dd450c
VZ
21988 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21989 # to get the SysV transport functions.
e6cc62c6 21990 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21991 # needs -lnsl.
21992 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21993 # on Irix 5.2, according to T.E. Dickey.
21994 # The functions gethostbyname, getservbyname, and inet_addr are
21995 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21996 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21997echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21998if test "${ac_cv_func_gethostbyname+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22000else
22001 cat >conftest.$ac_ext <<_ACEOF
09d3439c 22002#line $LINENO "configure"
e6cc62c6
VS
22003/* confdefs.h. */
22004_ACEOF
22005cat confdefs.h >>conftest.$ac_ext
22006cat >>conftest.$ac_ext <<_ACEOF
22007/* end confdefs.h. */
90dd450c 22008/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22009 which can conflict with char gethostbyname (); below.
22010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22011 <limits.h> exists even on freestanding compilers. */
22012#ifdef __STDC__
22013# include <limits.h>
22014#else
22015# include <assert.h>
22016#endif
90dd450c 22017/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22018#ifdef __cplusplus
22019extern "C"
22020{
22021#endif
90dd450c 22022/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22023 builtin and then its argument prototype would still apply. */
22024char gethostbyname ();
90dd450c
VZ
22025/* The GNU C library defines this for functions which it implements
22026 to always fail with ENOSYS. Some functions are actually named
22027 something starting with __ and the normal name is an alias. */
22028#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22029choke me
22030#else
e6cc62c6
VS
22031char (*f) () = gethostbyname;
22032#endif
22033#ifdef __cplusplus
22034}
90dd450c 22035#endif
978f1259 22036
e6cc62c6
VS
22037int
22038main ()
22039{
22040return f != gethostbyname;
22041 ;
22042 return 0;
22043}
22044_ACEOF
22045rm -f conftest.$ac_objext conftest$ac_exeext
22046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22047 (eval $ac_link) 2>&5
e6cc62c6
VS
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
09d3439c 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_func_gethostbyname=yes
22058else
22059 echo "$as_me: failed program was:" >&5
22060sed 's/^/| /' conftest.$ac_ext >&5
22061
22062ac_cv_func_gethostbyname=no
22063fi
09d3439c 22064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22065fi
22066echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22067echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 22068
90dd450c 22069 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22070 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22071echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22072if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22074else
e6cc62c6 22075 ac_check_lib_save_LIBS=$LIBS
90dd450c 22076LIBS="-lnsl $LIBS"
e6cc62c6 22077cat >conftest.$ac_ext <<_ACEOF
09d3439c 22078#line $LINENO "configure"
e6cc62c6
VS
22079/* confdefs.h. */
22080_ACEOF
22081cat confdefs.h >>conftest.$ac_ext
22082cat >>conftest.$ac_ext <<_ACEOF
22083/* end confdefs.h. */
22084
90dd450c 22085/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22086#ifdef __cplusplus
22087extern "C"
22088#endif
90dd450c 22089/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22090 builtin and then its argument prototype would still apply. */
22091char gethostbyname ();
22092int
22093main ()
22094{
22095gethostbyname ();
22096 ;
22097 return 0;
22098}
22099_ACEOF
22100rm -f conftest.$ac_objext conftest$ac_exeext
22101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22102 (eval $ac_link) 2>&5
e6cc62c6
VS
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
09d3439c 22106 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 ac_cv_lib_nsl_gethostbyname=yes
22113else
22114 echo "$as_me: failed program was:" >&5
22115sed 's/^/| /' conftest.$ac_ext >&5
22116
22117ac_cv_lib_nsl_gethostbyname=no
22118fi
09d3439c 22119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22120LIBS=$ac_check_lib_save_LIBS
22121fi
22122echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22123echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22124if test $ac_cv_lib_nsl_gethostbyname = yes; then
22125 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22126fi
247f5006 22127
e6cc62c6 22128 if test $ac_cv_lib_nsl_gethostbyname = no; then
09d3439c 22129 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
22130echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22131if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22133else
e6cc62c6
VS
22134 ac_check_lib_save_LIBS=$LIBS
22135LIBS="-lbsd $LIBS"
22136cat >conftest.$ac_ext <<_ACEOF
09d3439c 22137#line $LINENO "configure"
e6cc62c6
VS
22138/* confdefs.h. */
22139_ACEOF
22140cat confdefs.h >>conftest.$ac_ext
22141cat >>conftest.$ac_ext <<_ACEOF
22142/* end confdefs.h. */
22143
22144/* Override any gcc2 internal prototype to avoid an error. */
22145#ifdef __cplusplus
22146extern "C"
22147#endif
22148/* We use char because int might match the return type of a gcc2
22149 builtin and then its argument prototype would still apply. */
22150char gethostbyname ();
22151int
22152main ()
22153{
22154gethostbyname ();
22155 ;
22156 return 0;
22157}
22158_ACEOF
22159rm -f conftest.$ac_objext conftest$ac_exeext
22160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22161 (eval $ac_link) 2>&5
e6cc62c6
VS
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
09d3439c 22165 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 ac_cv_lib_bsd_gethostbyname=yes
22172else
22173 echo "$as_me: failed program was:" >&5
22174sed 's/^/| /' conftest.$ac_ext >&5
22175
22176ac_cv_lib_bsd_gethostbyname=no
22177fi
09d3439c 22178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22179LIBS=$ac_check_lib_save_LIBS
22180fi
22181echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22182echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22183if test $ac_cv_lib_bsd_gethostbyname = yes; then
22184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 22185fi
b12915c1 22186
e6cc62c6 22187 fi
90dd450c
VZ
22188 fi
22189
22190 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22191 # socket/setsockopt and other routines are undefined under SCO ODT
22192 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22193 # on later versions), says Simon Leinen: it contains gethostby*
22194 # variants that don't use the name server (or something). -lsocket
22195 # must be given before -lnsl if both are needed. We assume that
22196 # if connect needs -lnsl, so does gethostbyname.
22197 echo "$as_me:$LINENO: checking for connect" >&5
22198echo $ECHO_N "checking for connect... $ECHO_C" >&6
22199if test "${ac_cv_func_connect+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22201else
22202 cat >conftest.$ac_ext <<_ACEOF
09d3439c 22203#line $LINENO "configure"
e6cc62c6
VS
22204/* confdefs.h. */
22205_ACEOF
22206cat confdefs.h >>conftest.$ac_ext
22207cat >>conftest.$ac_ext <<_ACEOF
22208/* end confdefs.h. */
90dd450c 22209/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22210 which can conflict with char connect (); below.
22211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22212 <limits.h> exists even on freestanding compilers. */
22213#ifdef __STDC__
22214# include <limits.h>
22215#else
22216# include <assert.h>
22217#endif
90dd450c 22218/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22219#ifdef __cplusplus
22220extern "C"
22221{
22222#endif
90dd450c 22223/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22224 builtin and then its argument prototype would still apply. */
22225char connect ();
90dd450c
VZ
22226/* The GNU C library defines this for functions which it implements
22227 to always fail with ENOSYS. Some functions are actually named
22228 something starting with __ and the normal name is an alias. */
22229#if defined (__stub_connect) || defined (__stub___connect)
22230choke me
22231#else
e6cc62c6
VS
22232char (*f) () = connect;
22233#endif
22234#ifdef __cplusplus
22235}
90dd450c
VZ
22236#endif
22237
e6cc62c6
VS
22238int
22239main ()
22240{
22241return f != connect;
22242 ;
22243 return 0;
22244}
22245_ACEOF
22246rm -f conftest.$ac_objext conftest$ac_exeext
22247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22248 (eval $ac_link) 2>&5
e6cc62c6
VS
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
09d3439c 22252 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_func_connect=yes
22259else
22260 echo "$as_me: failed program was:" >&5
22261sed 's/^/| /' conftest.$ac_ext >&5
22262
22263ac_cv_func_connect=no
22264fi
09d3439c 22265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22266fi
22267echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22268echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22269
90dd450c 22270 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22271 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22272echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22273if test "${ac_cv_lib_socket_connect+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22275else
e6cc62c6 22276 ac_check_lib_save_LIBS=$LIBS
90dd450c 22277LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 22278cat >conftest.$ac_ext <<_ACEOF
09d3439c 22279#line $LINENO "configure"
e6cc62c6
VS
22280/* confdefs.h. */
22281_ACEOF
22282cat confdefs.h >>conftest.$ac_ext
22283cat >>conftest.$ac_ext <<_ACEOF
22284/* end confdefs.h. */
22285
90dd450c 22286/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22287#ifdef __cplusplus
22288extern "C"
22289#endif
90dd450c 22290/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22291 builtin and then its argument prototype would still apply. */
22292char connect ();
22293int
22294main ()
22295{
22296connect ();
22297 ;
22298 return 0;
22299}
22300_ACEOF
22301rm -f conftest.$ac_objext conftest$ac_exeext
22302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22303 (eval $ac_link) 2>&5
e6cc62c6
VS
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } &&
09d3439c 22307 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; }; then
22313 ac_cv_lib_socket_connect=yes
22314else
22315 echo "$as_me: failed program was:" >&5
22316sed 's/^/| /' conftest.$ac_ext >&5
22317
22318ac_cv_lib_socket_connect=no
22319fi
09d3439c 22320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22321LIBS=$ac_check_lib_save_LIBS
22322fi
22323echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22324echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22325if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22326 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22327fi
77e13408 22328
90dd450c 22329 fi
25d0687a 22330
e6cc62c6
VS
22331 # Guillermo Gomez says -lposix is necessary on A/UX.
22332 echo "$as_me:$LINENO: checking for remove" >&5
22333echo $ECHO_N "checking for remove... $ECHO_C" >&6
22334if test "${ac_cv_func_remove+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22336else
22337 cat >conftest.$ac_ext <<_ACEOF
09d3439c 22338#line $LINENO "configure"
e6cc62c6
VS
22339/* confdefs.h. */
22340_ACEOF
22341cat confdefs.h >>conftest.$ac_ext
22342cat >>conftest.$ac_ext <<_ACEOF
22343/* end confdefs.h. */
90dd450c 22344/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22345 which can conflict with char remove (); below.
22346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22347 <limits.h> exists even on freestanding compilers. */
22348#ifdef __STDC__
22349# include <limits.h>
22350#else
22351# include <assert.h>
22352#endif
90dd450c 22353/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22354#ifdef __cplusplus
22355extern "C"
22356{
22357#endif
90dd450c 22358/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22359 builtin and then its argument prototype would still apply. */
22360char remove ();
90dd450c
VZ
22361/* The GNU C library defines this for functions which it implements
22362 to always fail with ENOSYS. Some functions are actually named
22363 something starting with __ and the normal name is an alias. */
22364#if defined (__stub_remove) || defined (__stub___remove)
22365choke me
22366#else
e6cc62c6
VS
22367char (*f) () = remove;
22368#endif
22369#ifdef __cplusplus
22370}
90dd450c 22371#endif
55e80573 22372
e6cc62c6
VS
22373int
22374main ()
22375{
22376return f != remove;
22377 ;
22378 return 0;
22379}
22380_ACEOF
22381rm -f conftest.$ac_objext conftest$ac_exeext
22382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22383 (eval $ac_link) 2>&5
e6cc62c6
VS
22384 ac_status=$?
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } &&
09d3439c 22387 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22393 ac_cv_func_remove=yes
22394else
22395 echo "$as_me: failed program was:" >&5
22396sed 's/^/| /' conftest.$ac_ext >&5
22397
22398ac_cv_func_remove=no
22399fi
09d3439c 22400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22401fi
22402echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22403echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22404
90dd450c 22405 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22406 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22407echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22408if test "${ac_cv_lib_posix_remove+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22410else
e6cc62c6 22411 ac_check_lib_save_LIBS=$LIBS
90dd450c 22412LIBS="-lposix $LIBS"
e6cc62c6 22413cat >conftest.$ac_ext <<_ACEOF
09d3439c 22414#line $LINENO "configure"
e6cc62c6
VS
22415/* confdefs.h. */
22416_ACEOF
22417cat confdefs.h >>conftest.$ac_ext
22418cat >>conftest.$ac_ext <<_ACEOF
22419/* end confdefs.h. */
22420
90dd450c 22421/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22422#ifdef __cplusplus
22423extern "C"
22424#endif
90dd450c 22425/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22426 builtin and then its argument prototype would still apply. */
22427char remove ();
22428int
22429main ()
22430{
22431remove ();
22432 ;
22433 return 0;
22434}
22435_ACEOF
22436rm -f conftest.$ac_objext conftest$ac_exeext
22437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22438 (eval $ac_link) 2>&5
e6cc62c6
VS
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
09d3439c 22442 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 ac_cv_lib_posix_remove=yes
22449else
22450 echo "$as_me: failed program was:" >&5
22451sed 's/^/| /' conftest.$ac_ext >&5
22452
22453ac_cv_lib_posix_remove=no
22454fi
09d3439c 22455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22456LIBS=$ac_check_lib_save_LIBS
22457fi
22458echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22459echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22460if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22461 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22462fi
f6bcfd97 22463
6fa882bd
RR
22464 fi
22465
90dd450c 22466 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22467 echo "$as_me:$LINENO: checking for shmat" >&5
22468echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22469if test "${ac_cv_func_shmat+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471else
22472 cat >conftest.$ac_ext <<_ACEOF
09d3439c 22473#line $LINENO "configure"
e6cc62c6
VS
22474/* confdefs.h. */
22475_ACEOF
22476cat confdefs.h >>conftest.$ac_ext
22477cat >>conftest.$ac_ext <<_ACEOF
22478/* end confdefs.h. */
90dd450c 22479/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22480 which can conflict with char shmat (); below.
22481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22482 <limits.h> exists even on freestanding compilers. */
22483#ifdef __STDC__
22484# include <limits.h>
22485#else
22486# include <assert.h>
22487#endif
90dd450c 22488/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22489#ifdef __cplusplus
22490extern "C"
22491{
22492#endif
90dd450c 22493/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22494 builtin and then its argument prototype would still apply. */
22495char shmat ();
90dd450c
VZ
22496/* The GNU C library defines this for functions which it implements
22497 to always fail with ENOSYS. Some functions are actually named
22498 something starting with __ and the normal name is an alias. */
22499#if defined (__stub_shmat) || defined (__stub___shmat)
22500choke me
22501#else
e6cc62c6
VS
22502char (*f) () = shmat;
22503#endif
22504#ifdef __cplusplus
22505}
90dd450c 22506#endif
10f2d63a 22507
e6cc62c6
VS
22508int
22509main ()
22510{
22511return f != shmat;
22512 ;
22513 return 0;
22514}
22515_ACEOF
22516rm -f conftest.$ac_objext conftest$ac_exeext
22517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22518 (eval $ac_link) 2>&5
e6cc62c6
VS
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } &&
09d3439c 22522 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 ac_cv_func_shmat=yes
22529else
22530 echo "$as_me: failed program was:" >&5
22531sed 's/^/| /' conftest.$ac_ext >&5
22532
22533ac_cv_func_shmat=no
22534fi
09d3439c 22535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22536fi
22537echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22538echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22539
90dd450c 22540 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22541 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22542echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22543if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22545else
e6cc62c6 22546 ac_check_lib_save_LIBS=$LIBS
90dd450c 22547LIBS="-lipc $LIBS"
e6cc62c6 22548cat >conftest.$ac_ext <<_ACEOF
09d3439c 22549#line $LINENO "configure"
e6cc62c6
VS
22550/* confdefs.h. */
22551_ACEOF
22552cat confdefs.h >>conftest.$ac_ext
22553cat >>conftest.$ac_ext <<_ACEOF
22554/* end confdefs.h. */
22555
8284b0c5 22556/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22557#ifdef __cplusplus
22558extern "C"
22559#endif
90dd450c 22560/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22561 builtin and then its argument prototype would still apply. */
22562char shmat ();
22563int
22564main ()
22565{
22566shmat ();
22567 ;
22568 return 0;
22569}
22570_ACEOF
22571rm -f conftest.$ac_objext conftest$ac_exeext
22572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22573 (eval $ac_link) 2>&5
e6cc62c6
VS
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
09d3439c 22577 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ac_cv_lib_ipc_shmat=yes
22584else
22585 echo "$as_me: failed program was:" >&5
22586sed 's/^/| /' conftest.$ac_ext >&5
22587
22588ac_cv_lib_ipc_shmat=no
22589fi
09d3439c 22590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22591LIBS=$ac_check_lib_save_LIBS
22592fi
22593echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22594echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22595if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22596 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22597fi
22598
d558c907 22599 fi
90dd450c 22600 fi
3a922bb4 22601
90dd450c 22602 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22603 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22604 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22605 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22606 # check for ICE first), but we must link in the order -lSM -lICE or
22607 # we get undefined symbols. So assume we have SM if we have ICE.
22608 # These have to be linked with before -lX11, unlike the other
22609 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22610 # John Interrante, Karl Berry
22611 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22612echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22613if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22614 echo $ECHO_N "(cached) $ECHO_C" >&6
22615else
22616 ac_check_lib_save_LIBS=$LIBS
f09359cf 22617LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 22618cat >conftest.$ac_ext <<_ACEOF
09d3439c 22619#line $LINENO "configure"
e6cc62c6
VS
22620/* confdefs.h. */
22621_ACEOF
22622cat confdefs.h >>conftest.$ac_ext
22623cat >>conftest.$ac_ext <<_ACEOF
22624/* end confdefs.h. */
22625
90dd450c 22626/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22627#ifdef __cplusplus
22628extern "C"
22629#endif
90dd450c 22630/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22631 builtin and then its argument prototype would still apply. */
22632char IceConnectionNumber ();
22633int
22634main ()
22635{
22636IceConnectionNumber ();
22637 ;
22638 return 0;
22639}
22640_ACEOF
22641rm -f conftest.$ac_objext conftest$ac_exeext
22642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 22643 (eval $ac_link) 2>&5
e6cc62c6
VS
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); } &&
09d3439c 22647 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649 (eval $ac_try) 2>&5
22650 ac_status=$?
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); }; }; then
22653 ac_cv_lib_ICE_IceConnectionNumber=yes
22654else
22655 echo "$as_me: failed program was:" >&5
22656sed 's/^/| /' conftest.$ac_ext >&5
22657
22658ac_cv_lib_ICE_IceConnectionNumber=no
22659fi
09d3439c 22660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22661LIBS=$ac_check_lib_save_LIBS
22662fi
22663echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22664echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22665if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22666 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22667fi
10f2d63a 22668
e6cc62c6 22669 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22670
22671fi
22672
8284b0c5 22673
90dd450c 22674 if test "$no_x" = "yes"; then
e6cc62c6
VS
22675 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22676echo "$as_me: error: X11 not found" >&2;}
22677 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22678 fi
22679
22680 GUI_TK_LIBRARY="$X_LIBS"
22681 TOOLKIT_INCLUDE="$X_CFLAGS"
22682 AFMINSTALL=afminstall
22683 COMPILED_X_PROGRAM=0
22684
21d1c967 22685 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22686 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22687echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22688 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22689 echo "$as_me:$LINENO: result: not found" >&5
22690echo "${ECHO_T}not found" >&6
22691 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22692echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22693 { (exit 1); exit 1; }; }
90dd450c 22694 else
e6cc62c6
VS
22695 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22696echo "${ECHO_T}$MICROWIN" >&6
22697 cat >>confdefs.h <<\_ACEOF
21d1c967 22698#define wxUSE_NANOX 1
e6cc62c6 22699_ACEOF
21d1c967 22700
90dd450c
VZ
22701 fi
22702 fi
22703
2b5f62a0 22704 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22705
2b5f62a0 22706 succeeded=no
90dd450c 22707
2b5f62a0
VZ
22708 if test -z "$PKG_CONFIG"; then
22709 # Extract the first word of "pkg-config", so it can be a program name with args.
22710set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22711echo "$as_me:$LINENO: checking for $ac_word" >&5
22712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22713if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22715else
e6cc62c6
VS
22716 case $PKG_CONFIG in
22717 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22719 ;;
2b5f62a0 22720 *)
e6cc62c6
VS
22721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22722for as_dir in $PATH
22723do
22724 IFS=$as_save_IFS
22725 test -z "$as_dir" && as_dir=.
22726 for ac_exec_ext in '' $ac_executable_extensions; do
22727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22730 break 2
22731 fi
22732done
22733done
22734
2b5f62a0
VZ
22735 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22736 ;;
22737esac
22738fi
e6cc62c6
VS
22739PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22740
2b5f62a0 22741if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22742 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22743echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22744else
e6cc62c6
VS
22745 echo "$as_me:$LINENO: result: no" >&5
22746echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22747fi
22748
22749 fi
22750
22751 if test "$PKG_CONFIG" = "no" ; then
22752 echo "*** The pkg-config script could not be found. Make sure it is"
22753 echo "*** in your path, or set the PKG_CONFIG environment variable"
22754 echo "*** to the full path to pkg-config."
22755 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22756 else
22757 PKG_CONFIG_MIN_VERSION=0.9.0
22758 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22759 echo "$as_me:$LINENO: checking for pangox" >&5
22760echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22761
22762 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22763 echo "$as_me:$LINENO: result: yes" >&5
22764echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22765 succeeded=yes
22766
e6cc62c6
VS
22767 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22768echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22769 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22770 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22771echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22772
e6cc62c6
VS
22773 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22774echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22775 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22776 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22777echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22778 else
22779 PANGOX_CFLAGS=""
22780 PANGOX_LIBS=""
e6cc62c6 22781 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22782 ## do set a variable so people can do so.
22783 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22784
2b5f62a0
VZ
22785 fi
22786
e6cc62c6
VS
22787
22788
2b5f62a0
VZ
22789 else
22790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22792 fi
22793 fi
22794
22795 if test $succeeded = yes; then
e6cc62c6 22796
2b5f62a0 22797 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22798 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22799
2b5f62a0 22800 else
e6cc62c6
VS
22801
22802 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22803echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22804 { (exit 1); exit 1; }; }
22805
22806
2b5f62a0
VZ
22807 fi
22808
e6cc62c6 22809
2b5f62a0
VZ
22810 succeeded=no
22811
22812 if test -z "$PKG_CONFIG"; then
22813 # Extract the first word of "pkg-config", so it can be a program name with args.
22814set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22815echo "$as_me:$LINENO: checking for $ac_word" >&5
22816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22817if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22819else
e6cc62c6
VS
22820 case $PKG_CONFIG in
22821 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22823 ;;
2b5f62a0 22824 *)
e6cc62c6
VS
22825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22826for as_dir in $PATH
22827do
22828 IFS=$as_save_IFS
22829 test -z "$as_dir" && as_dir=.
22830 for ac_exec_ext in '' $ac_executable_extensions; do
22831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22834 break 2
22835 fi
22836done
22837done
22838
2b5f62a0
VZ
22839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22840 ;;
22841esac
22842fi
e6cc62c6
VS
22843PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22844
2b5f62a0 22845if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22846 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22847echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22848else
e6cc62c6
VS
22849 echo "$as_me:$LINENO: result: no" >&5
22850echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22851fi
22852
22853 fi
22854
22855 if test "$PKG_CONFIG" = "no" ; then
22856 echo "*** The pkg-config script could not be found. Make sure it is"
22857 echo "*** in your path, or set the PKG_CONFIG environment variable"
22858 echo "*** to the full path to pkg-config."
22859 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22860 else
22861 PKG_CONFIG_MIN_VERSION=0.9.0
22862 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22863 echo "$as_me:$LINENO: checking for pangoft2" >&5
22864echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22865
22866 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22867 echo "$as_me:$LINENO: result: yes" >&5
22868echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22869 succeeded=yes
22870
e6cc62c6
VS
22871 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22872echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22873 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22874 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22875echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22876
e6cc62c6
VS
22877 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22878echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22879 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22880 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22881echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22882 else
22883 PANGOFT2_CFLAGS=""
22884 PANGOFT2_LIBS=""
e6cc62c6 22885 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22886 ## do set a variable so people can do so.
22887 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22888
2b5f62a0
VZ
22889 fi
22890
e6cc62c6
VS
22891
22892
2b5f62a0
VZ
22893 else
22894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22896 fi
22897 fi
22898
22899 if test $succeeded = yes; then
e6cc62c6 22900
2b5f62a0 22901 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22902 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22903
2b5f62a0 22904 else
e6cc62c6
VS
22905
22906 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22907echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22908 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22909
22910
2b5f62a0
VZ
22911 fi
22912
e6cc62c6 22913
2b5f62a0
VZ
22914 succeeded=no
22915
22916 if test -z "$PKG_CONFIG"; then
22917 # Extract the first word of "pkg-config", so it can be a program name with args.
22918set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22919echo "$as_me:$LINENO: checking for $ac_word" >&5
22920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22921if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22923else
e6cc62c6
VS
22924 case $PKG_CONFIG in
22925 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22926 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22927 ;;
2b5f62a0 22928 *)
e6cc62c6
VS
22929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22930for as_dir in $PATH
22931do
22932 IFS=$as_save_IFS
22933 test -z "$as_dir" && as_dir=.
22934 for ac_exec_ext in '' $ac_executable_extensions; do
22935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22936 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22938 break 2
22939 fi
22940done
22941done
22942
2b5f62a0
VZ
22943 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22944 ;;
22945esac
22946fi
e6cc62c6
VS
22947PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22948
2b5f62a0 22949if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22950 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22951echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22952else
e6cc62c6
VS
22953 echo "$as_me:$LINENO: result: no" >&5
22954echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22955fi
22956
22957 fi
22958
22959 if test "$PKG_CONFIG" = "no" ; then
22960 echo "*** The pkg-config script could not be found. Make sure it is"
22961 echo "*** in your path, or set the PKG_CONFIG environment variable"
22962 echo "*** to the full path to pkg-config."
22963 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22964 else
22965 PKG_CONFIG_MIN_VERSION=0.9.0
22966 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22967 echo "$as_me:$LINENO: checking for pangoxft" >&5
22968echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22969
22970 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22971 echo "$as_me:$LINENO: result: yes" >&5
22972echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22973 succeeded=yes
22974
e6cc62c6
VS
22975 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22976echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22977 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22978 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22979echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22980
e6cc62c6
VS
22981 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22982echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22983 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22984 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22985echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22986 else
22987 PANGOXFT_CFLAGS=""
22988 PANGOXFT_LIBS=""
e6cc62c6 22989 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22990 ## do set a variable so people can do so.
22991 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22992
2b5f62a0
VZ
22993 fi
22994
e6cc62c6
VS
22995
22996
2b5f62a0
VZ
22997 else
22998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23000 fi
23001 fi
23002
23003 if test $succeeded = yes; then
e6cc62c6 23004
2b5f62a0 23005 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 23006 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 23007
2b5f62a0 23008 else
e6cc62c6
VS
23009
23010 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23011echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23012
23013
2b5f62a0
VZ
23014 fi
23015
23016 fi
23017
23018 wxUSE_UNIVERSAL="yes"
23019
23020 if test "$wxUSE_NANOX" = "yes"; then
23021 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 23022 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
23023 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23024 else
93a543aa 23025 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
23026 fi
23027
23028 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23029 TOOLKIT=X11
23030 GUIDIST=X11_DIST
23031 fi
23032
21d1c967
GD
23033 if test "$wxUSE_MOTIF" = 1; then
23034 if test "$no_x" = yes; then
23035 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23036
23037cat >>confdefs.h <<\_ACEOF
21d1c967 23038#define X_DISPLAY_MISSING 1
e6cc62c6 23039_ACEOF
21d1c967
GD
23040
23041 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23042else
23043 if test -n "$x_includes"; then
23044 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
23045 fi
23046
21d1c967
GD
23047 # It would also be nice to do this for all -L options, not just this one.
23048 if test -n "$x_libraries"; then
23049 X_LIBS="$X_LIBS -L$x_libraries"
23050 # For Solaris; some versions of Sun CC require a space after -R and
23051 # others require no space. Words are not sufficient . . . .
e6cc62c6 23052 case `(uname -sr) 2>/dev/null` in
21d1c967 23053 "SunOS 5"*)
e6cc62c6
VS
23054 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23055echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23056 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23057 cat >conftest.$ac_ext <<_ACEOF
09d3439c 23058#line $LINENO "configure"
e6cc62c6
VS
23059/* confdefs.h. */
23060_ACEOF
23061cat confdefs.h >>conftest.$ac_ext
23062cat >>conftest.$ac_ext <<_ACEOF
23063/* end confdefs.h. */
23064
23065int
23066main ()
23067{
21d1c967 23068
e6cc62c6
VS
23069 ;
23070 return 0;
23071}
23072_ACEOF
23073rm -f conftest.$ac_objext conftest$ac_exeext
23074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23075 (eval $ac_link) 2>&5
e6cc62c6
VS
23076 ac_status=$?
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
09d3439c 23079 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
21d1c967 23085 ac_R_nospace=yes
698dcdb6 23086else
e6cc62c6
VS
23087 echo "$as_me: failed program was:" >&5
23088sed 's/^/| /' conftest.$ac_ext >&5
23089
23090ac_R_nospace=no
10f2d63a 23091fi
09d3439c 23092rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23093 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23094 echo "$as_me:$LINENO: result: no" >&5
23095echo "${ECHO_T}no" >&6
21d1c967
GD
23096 X_LIBS="$X_LIBS -R$x_libraries"
23097 else
23098 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23099 cat >conftest.$ac_ext <<_ACEOF
09d3439c 23100#line $LINENO "configure"
e6cc62c6
VS
23101/* confdefs.h. */
23102_ACEOF
23103cat confdefs.h >>conftest.$ac_ext
23104cat >>conftest.$ac_ext <<_ACEOF
23105/* end confdefs.h. */
23106
23107int
23108main ()
23109{
f0c87536 23110
e6cc62c6
VS
23111 ;
23112 return 0;
23113}
23114_ACEOF
23115rm -f conftest.$ac_objext conftest$ac_exeext
23116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23117 (eval $ac_link) 2>&5
e6cc62c6
VS
23118 ac_status=$?
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } &&
09d3439c 23121 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; }; then
21d1c967
GD
23127 ac_R_space=yes
23128else
e6cc62c6
VS
23129 echo "$as_me: failed program was:" >&5
23130sed 's/^/| /' conftest.$ac_ext >&5
23131
23132ac_R_space=no
21d1c967 23133fi
09d3439c 23134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23135 if test $ac_R_space = yes; then
e6cc62c6
VS
23136 echo "$as_me:$LINENO: result: yes" >&5
23137echo "${ECHO_T}yes" >&6
21d1c967
GD
23138 X_LIBS="$X_LIBS -R $x_libraries"
23139 else
e6cc62c6
VS
23140 echo "$as_me:$LINENO: result: neither works" >&5
23141echo "${ECHO_T}neither works" >&6
21d1c967
GD
23142 fi
23143 fi
e6cc62c6 23144 LIBS=$ac_xsave_LIBS
21d1c967
GD
23145 esac
23146 fi
90dd450c 23147
21d1c967
GD
23148 # Check for system-dependent libraries X programs must link with.
23149 # Do this before checking for the system-independent R6 libraries
23150 # (-lICE), since we may need -lsocket or whatever for X linking.
23151
23152 if test "$ISC" = yes; then
23153 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23154 else
e6cc62c6
VS
23155 # Martyn Johnson says this is needed for Ultrix, if the X
23156 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23157 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23158 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23159 cat >conftest.$ac_ext <<_ACEOF
09d3439c 23160#line $LINENO "configure"
e6cc62c6
VS
23161/* confdefs.h. */
23162_ACEOF
23163cat confdefs.h >>conftest.$ac_ext
23164cat >>conftest.$ac_ext <<_ACEOF
23165/* end confdefs.h. */
23166
247f5006 23167/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23168#ifdef __cplusplus
23169extern "C"
23170#endif
247f5006 23171/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23172 builtin and then its argument prototype would still apply. */
23173char XOpenDisplay ();
23174int
23175main ()
23176{
23177XOpenDisplay ();
23178 ;
23179 return 0;
23180}
23181_ACEOF
23182rm -f conftest.$ac_objext conftest$ac_exeext
23183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23184 (eval $ac_link) 2>&5
e6cc62c6
VS
23185 ac_status=$?
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } &&
09d3439c 23188 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 :
23195else
23196 echo "$as_me: failed program was:" >&5
23197sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23198
e6cc62c6
VS
23199echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23200echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23201if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23203else
e6cc62c6
VS
23204 ac_check_lib_save_LIBS=$LIBS
23205LIBS="-ldnet $LIBS"
23206cat >conftest.$ac_ext <<_ACEOF
09d3439c 23207#line $LINENO "configure"
e6cc62c6
VS
23208/* confdefs.h. */
23209_ACEOF
23210cat confdefs.h >>conftest.$ac_ext
23211cat >>conftest.$ac_ext <<_ACEOF
23212/* end confdefs.h. */
a0b9e27f 23213
e6cc62c6
VS
23214/* Override any gcc2 internal prototype to avoid an error. */
23215#ifdef __cplusplus
23216extern "C"
23217#endif
23218/* We use char because int might match the return type of a gcc2
23219 builtin and then its argument prototype would still apply. */
23220char dnet_ntoa ();
23221int
23222main ()
23223{
23224dnet_ntoa ();
23225 ;
23226 return 0;
23227}
23228_ACEOF
23229rm -f conftest.$ac_objext conftest$ac_exeext
23230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23231 (eval $ac_link) 2>&5
e6cc62c6
VS
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
09d3439c 23235 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; }; then
23241 ac_cv_lib_dnet_dnet_ntoa=yes
23242else
23243 echo "$as_me: failed program was:" >&5
23244sed 's/^/| /' conftest.$ac_ext >&5
23245
23246ac_cv_lib_dnet_dnet_ntoa=no
23247fi
09d3439c 23248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23249LIBS=$ac_check_lib_save_LIBS
23250fi
23251echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23252echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23253if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23254 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23255fi
0fb0dd83 23256
21d1c967 23257 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23258 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23259echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23260if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23262else
e6cc62c6 23263 ac_check_lib_save_LIBS=$LIBS
21d1c967 23264LIBS="-ldnet_stub $LIBS"
e6cc62c6 23265cat >conftest.$ac_ext <<_ACEOF
09d3439c 23266#line $LINENO "configure"
e6cc62c6
VS
23267/* confdefs.h. */
23268_ACEOF
23269cat confdefs.h >>conftest.$ac_ext
23270cat >>conftest.$ac_ext <<_ACEOF
23271/* end confdefs.h. */
23272
21d1c967 23273/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23274#ifdef __cplusplus
23275extern "C"
23276#endif
21d1c967 23277/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23278 builtin and then its argument prototype would still apply. */
23279char dnet_ntoa ();
23280int
23281main ()
23282{
23283dnet_ntoa ();
23284 ;
23285 return 0;
23286}
23287_ACEOF
23288rm -f conftest.$ac_objext conftest$ac_exeext
23289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23290 (eval $ac_link) 2>&5
e6cc62c6
VS
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } &&
09d3439c 23294 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23301else
23302 echo "$as_me: failed program was:" >&5
23303sed 's/^/| /' conftest.$ac_ext >&5
23304
23305ac_cv_lib_dnet_stub_dnet_ntoa=no
23306fi
09d3439c 23307rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23308LIBS=$ac_check_lib_save_LIBS
23309fi
23310echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23311echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23312if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23313 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23314fi
23315
21d1c967 23316 fi
e6cc62c6 23317fi
09d3439c 23318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23319 LIBS="$ac_xsave_LIBS"
90dd450c 23320
21d1c967
GD
23321 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23322 # to get the SysV transport functions.
e6cc62c6 23323 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23324 # needs -lnsl.
23325 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23326 # on Irix 5.2, according to T.E. Dickey.
23327 # The functions gethostbyname, getservbyname, and inet_addr are
23328 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23329 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23330echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23331if test "${ac_cv_func_gethostbyname+set}" = set; then
23332 echo $ECHO_N "(cached) $ECHO_C" >&6
23333else
23334 cat >conftest.$ac_ext <<_ACEOF
09d3439c 23335#line $LINENO "configure"
e6cc62c6
VS
23336/* confdefs.h. */
23337_ACEOF
23338cat confdefs.h >>conftest.$ac_ext
23339cat >>conftest.$ac_ext <<_ACEOF
23340/* end confdefs.h. */
21d1c967 23341/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23342 which can conflict with char gethostbyname (); below.
23343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23344 <limits.h> exists even on freestanding compilers. */
23345#ifdef __STDC__
23346# include <limits.h>
23347#else
23348# include <assert.h>
23349#endif
21d1c967 23350/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23351#ifdef __cplusplus
23352extern "C"
23353{
23354#endif
21d1c967 23355/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23356 builtin and then its argument prototype would still apply. */
23357char gethostbyname ();
21d1c967
GD
23358/* The GNU C library defines this for functions which it implements
23359 to always fail with ENOSYS. Some functions are actually named
23360 something starting with __ and the normal name is an alias. */
23361#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23362choke me
23363#else
e6cc62c6
VS
23364char (*f) () = gethostbyname;
23365#endif
23366#ifdef __cplusplus
23367}
21d1c967 23368#endif
90dd450c 23369
e6cc62c6
VS
23370int
23371main ()
23372{
23373return f != gethostbyname;
23374 ;
23375 return 0;
23376}
23377_ACEOF
23378rm -f conftest.$ac_objext conftest$ac_exeext
23379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23380 (eval $ac_link) 2>&5
e6cc62c6
VS
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } &&
09d3439c 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_func_gethostbyname=yes
23391else
23392 echo "$as_me: failed program was:" >&5
23393sed 's/^/| /' conftest.$ac_ext >&5
23394
23395ac_cv_func_gethostbyname=no
23396fi
09d3439c 23397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23398fi
23399echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23400echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23401
21d1c967 23402 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23403 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23404echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23405if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23406 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23407else
e6cc62c6 23408 ac_check_lib_save_LIBS=$LIBS
21d1c967 23409LIBS="-lnsl $LIBS"
e6cc62c6 23410cat >conftest.$ac_ext <<_ACEOF
09d3439c 23411#line $LINENO "configure"
e6cc62c6
VS
23412/* confdefs.h. */
23413_ACEOF
23414cat confdefs.h >>conftest.$ac_ext
23415cat >>conftest.$ac_ext <<_ACEOF
23416/* end confdefs.h. */
23417
21d1c967 23418/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23419#ifdef __cplusplus
23420extern "C"
23421#endif
21d1c967 23422/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23423 builtin and then its argument prototype would still apply. */
23424char gethostbyname ();
23425int
23426main ()
23427{
23428gethostbyname ();
23429 ;
23430 return 0;
23431}
23432_ACEOF
23433rm -f conftest.$ac_objext conftest$ac_exeext
23434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23435 (eval $ac_link) 2>&5
e6cc62c6
VS
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } &&
09d3439c 23439 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
23445 ac_cv_lib_nsl_gethostbyname=yes
23446else
23447 echo "$as_me: failed program was:" >&5
23448sed 's/^/| /' conftest.$ac_ext >&5
23449
23450ac_cv_lib_nsl_gethostbyname=no
23451fi
09d3439c 23452rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23453LIBS=$ac_check_lib_save_LIBS
23454fi
23455echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23456echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23457if test $ac_cv_lib_nsl_gethostbyname = yes; then
23458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23459fi
247f5006 23460
e6cc62c6 23461 if test $ac_cv_lib_nsl_gethostbyname = no; then
09d3439c 23462 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23463echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23464if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23465 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23466else
e6cc62c6
VS
23467 ac_check_lib_save_LIBS=$LIBS
23468LIBS="-lbsd $LIBS"
23469cat >conftest.$ac_ext <<_ACEOF
09d3439c 23470#line $LINENO "configure"
e6cc62c6
VS
23471/* confdefs.h. */
23472_ACEOF
23473cat confdefs.h >>conftest.$ac_ext
23474cat >>conftest.$ac_ext <<_ACEOF
23475/* end confdefs.h. */
23476
23477/* Override any gcc2 internal prototype to avoid an error. */
23478#ifdef __cplusplus
23479extern "C"
23480#endif
23481/* We use char because int might match the return type of a gcc2
23482 builtin and then its argument prototype would still apply. */
23483char gethostbyname ();
23484int
23485main ()
23486{
23487gethostbyname ();
23488 ;
23489 return 0;
23490}
23491_ACEOF
23492rm -f conftest.$ac_objext conftest$ac_exeext
23493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23494 (eval $ac_link) 2>&5
e6cc62c6
VS
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } &&
09d3439c 23498 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }; then
23504 ac_cv_lib_bsd_gethostbyname=yes
23505else
23506 echo "$as_me: failed program was:" >&5
23507sed 's/^/| /' conftest.$ac_ext >&5
23508
23509ac_cv_lib_bsd_gethostbyname=no
23510fi
09d3439c 23511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23512LIBS=$ac_check_lib_save_LIBS
23513fi
23514echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23515echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23516if test $ac_cv_lib_bsd_gethostbyname = yes; then
23517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23518fi
90dd450c 23519
e6cc62c6 23520 fi
90dd450c
VZ
23521 fi
23522
21d1c967
GD
23523 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23524 # socket/setsockopt and other routines are undefined under SCO ODT
23525 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23526 # on later versions), says Simon Leinen: it contains gethostby*
23527 # variants that don't use the name server (or something). -lsocket
23528 # must be given before -lnsl if both are needed. We assume that
23529 # if connect needs -lnsl, so does gethostbyname.
23530 echo "$as_me:$LINENO: checking for connect" >&5
23531echo $ECHO_N "checking for connect... $ECHO_C" >&6
23532if test "${ac_cv_func_connect+set}" = set; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23534else
23535 cat >conftest.$ac_ext <<_ACEOF
09d3439c 23536#line $LINENO "configure"
e6cc62c6
VS
23537/* confdefs.h. */
23538_ACEOF
23539cat confdefs.h >>conftest.$ac_ext
23540cat >>conftest.$ac_ext <<_ACEOF
23541/* end confdefs.h. */
21d1c967 23542/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23543 which can conflict with char connect (); below.
23544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23545 <limits.h> exists even on freestanding compilers. */
23546#ifdef __STDC__
23547# include <limits.h>
23548#else
23549# include <assert.h>
23550#endif
21d1c967 23551/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23552#ifdef __cplusplus
23553extern "C"
23554{
23555#endif
21d1c967 23556/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23557 builtin and then its argument prototype would still apply. */
23558char connect ();
21d1c967
GD
23559/* The GNU C library defines this for functions which it implements
23560 to always fail with ENOSYS. Some functions are actually named
23561 something starting with __ and the normal name is an alias. */
23562#if defined (__stub_connect) || defined (__stub___connect)
23563choke me
23564#else
e6cc62c6
VS
23565char (*f) () = connect;
23566#endif
23567#ifdef __cplusplus
23568}
21d1c967 23569#endif
90dd450c 23570
e6cc62c6
VS
23571int
23572main ()
23573{
23574return f != connect;
23575 ;
23576 return 0;
23577}
23578_ACEOF
23579rm -f conftest.$ac_objext conftest$ac_exeext
23580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23581 (eval $ac_link) 2>&5
e6cc62c6
VS
23582 ac_status=$?
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); } &&
09d3439c 23585 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23588 ac_status=$?
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); }; }; then
23591 ac_cv_func_connect=yes
23592else
23593 echo "$as_me: failed program was:" >&5
23594sed 's/^/| /' conftest.$ac_ext >&5
23595
23596ac_cv_func_connect=no
23597fi
09d3439c 23598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23599fi
23600echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23601echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23602
21d1c967 23603 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23604 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23605echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23606if test "${ac_cv_lib_socket_connect+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23608else
e6cc62c6 23609 ac_check_lib_save_LIBS=$LIBS
21d1c967 23610LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 23611cat >conftest.$ac_ext <<_ACEOF
09d3439c 23612#line $LINENO "configure"
e6cc62c6
VS
23613/* confdefs.h. */
23614_ACEOF
23615cat confdefs.h >>conftest.$ac_ext
23616cat >>conftest.$ac_ext <<_ACEOF
23617/* end confdefs.h. */
23618
21d1c967 23619/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23620#ifdef __cplusplus
23621extern "C"
23622#endif
21d1c967 23623/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23624 builtin and then its argument prototype would still apply. */
23625char connect ();
23626int
23627main ()
23628{
23629connect ();
23630 ;
23631 return 0;
23632}
23633_ACEOF
23634rm -f conftest.$ac_objext conftest$ac_exeext
23635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23636 (eval $ac_link) 2>&5
e6cc62c6
VS
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } &&
09d3439c 23640 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 ac_cv_lib_socket_connect=yes
23647else
23648 echo "$as_me: failed program was:" >&5
23649sed 's/^/| /' conftest.$ac_ext >&5
23650
23651ac_cv_lib_socket_connect=no
23652fi
09d3439c 23653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23654LIBS=$ac_check_lib_save_LIBS
23655fi
23656echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23657echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23658if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23659 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23660fi
90dd450c 23661
21d1c967 23662 fi
90dd450c 23663
e6cc62c6
VS
23664 # Guillermo Gomez says -lposix is necessary on A/UX.
23665 echo "$as_me:$LINENO: checking for remove" >&5
23666echo $ECHO_N "checking for remove... $ECHO_C" >&6
23667if test "${ac_cv_func_remove+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669else
23670 cat >conftest.$ac_ext <<_ACEOF
09d3439c 23671#line $LINENO "configure"
e6cc62c6
VS
23672/* confdefs.h. */
23673_ACEOF
23674cat confdefs.h >>conftest.$ac_ext
23675cat >>conftest.$ac_ext <<_ACEOF
23676/* end confdefs.h. */
21d1c967 23677/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23678 which can conflict with char remove (); below.
23679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23680 <limits.h> exists even on freestanding compilers. */
23681#ifdef __STDC__
23682# include <limits.h>
23683#else
23684# include <assert.h>
23685#endif
21d1c967 23686/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23687#ifdef __cplusplus
23688extern "C"
23689{
23690#endif
21d1c967 23691/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23692 builtin and then its argument prototype would still apply. */
23693char remove ();
21d1c967
GD
23694/* The GNU C library defines this for functions which it implements
23695 to always fail with ENOSYS. Some functions are actually named
23696 something starting with __ and the normal name is an alias. */
23697#if defined (__stub_remove) || defined (__stub___remove)
23698choke me
23699#else
e6cc62c6
VS
23700char (*f) () = remove;
23701#endif
23702#ifdef __cplusplus
23703}
21d1c967 23704#endif
90dd450c 23705
e6cc62c6
VS
23706int
23707main ()
23708{
23709return f != remove;
23710 ;
23711 return 0;
23712}
23713_ACEOF
23714rm -f conftest.$ac_objext conftest$ac_exeext
23715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23716 (eval $ac_link) 2>&5
e6cc62c6
VS
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } &&
09d3439c 23720 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }; then
23726 ac_cv_func_remove=yes
23727else
23728 echo "$as_me: failed program was:" >&5
23729sed 's/^/| /' conftest.$ac_ext >&5
23730
23731ac_cv_func_remove=no
23732fi
09d3439c 23733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23734fi
23735echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23736echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23737
21d1c967 23738 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23739 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23740echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23741if test "${ac_cv_lib_posix_remove+set}" = set; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23743else
e6cc62c6 23744 ac_check_lib_save_LIBS=$LIBS
21d1c967 23745LIBS="-lposix $LIBS"
e6cc62c6 23746cat >conftest.$ac_ext <<_ACEOF
09d3439c 23747#line $LINENO "configure"
e6cc62c6
VS
23748/* confdefs.h. */
23749_ACEOF
23750cat confdefs.h >>conftest.$ac_ext
23751cat >>conftest.$ac_ext <<_ACEOF
23752/* end confdefs.h. */
23753
21d1c967 23754/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23755#ifdef __cplusplus
23756extern "C"
23757#endif
21d1c967 23758/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23759 builtin and then its argument prototype would still apply. */
23760char remove ();
23761int
23762main ()
23763{
23764remove ();
23765 ;
23766 return 0;
23767}
23768_ACEOF
23769rm -f conftest.$ac_objext conftest$ac_exeext
23770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23771 (eval $ac_link) 2>&5
e6cc62c6
VS
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); } &&
09d3439c 23775 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23777 (eval $ac_try) 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; }; then
23781 ac_cv_lib_posix_remove=yes
23782else
23783 echo "$as_me: failed program was:" >&5
23784sed 's/^/| /' conftest.$ac_ext >&5
23785
23786ac_cv_lib_posix_remove=no
23787fi
09d3439c 23788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23789LIBS=$ac_check_lib_save_LIBS
23790fi
23791echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23792echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23793if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23795fi
19bc6aad 23796
90dd450c 23797 fi
19bc6aad 23798
21d1c967 23799 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23800 echo "$as_me:$LINENO: checking for shmat" >&5
23801echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23802if test "${ac_cv_func_shmat+set}" = set; then
23803 echo $ECHO_N "(cached) $ECHO_C" >&6
23804else
23805 cat >conftest.$ac_ext <<_ACEOF
09d3439c 23806#line $LINENO "configure"
e6cc62c6
VS
23807/* confdefs.h. */
23808_ACEOF
23809cat confdefs.h >>conftest.$ac_ext
23810cat >>conftest.$ac_ext <<_ACEOF
23811/* end confdefs.h. */
21d1c967 23812/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23813 which can conflict with char shmat (); below.
23814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23815 <limits.h> exists even on freestanding compilers. */
23816#ifdef __STDC__
23817# include <limits.h>
23818#else
23819# include <assert.h>
23820#endif
21d1c967 23821/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23822#ifdef __cplusplus
23823extern "C"
23824{
23825#endif
21d1c967 23826/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23827 builtin and then its argument prototype would still apply. */
23828char shmat ();
21d1c967
GD
23829/* The GNU C library defines this for functions which it implements
23830 to always fail with ENOSYS. Some functions are actually named
23831 something starting with __ and the normal name is an alias. */
23832#if defined (__stub_shmat) || defined (__stub___shmat)
23833choke me
23834#else
e6cc62c6
VS
23835char (*f) () = shmat;
23836#endif
23837#ifdef __cplusplus
23838}
21d1c967 23839#endif
90dd450c 23840
e6cc62c6
VS
23841int
23842main ()
23843{
23844return f != shmat;
23845 ;
23846 return 0;
23847}
23848_ACEOF
23849rm -f conftest.$ac_objext conftest$ac_exeext
23850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23851 (eval $ac_link) 2>&5
e6cc62c6
VS
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); } &&
09d3439c 23855 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23858 ac_status=$?
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 ac_cv_func_shmat=yes
23862else
23863 echo "$as_me: failed program was:" >&5
23864sed 's/^/| /' conftest.$ac_ext >&5
23865
23866ac_cv_func_shmat=no
23867fi
09d3439c 23868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23869fi
23870echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23871echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23872
21d1c967 23873 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23874 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23875echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23876if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23877 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23878else
e6cc62c6 23879 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23880LIBS="-lipc $LIBS"
e6cc62c6 23881cat >conftest.$ac_ext <<_ACEOF
09d3439c 23882#line $LINENO "configure"
e6cc62c6
VS
23883/* confdefs.h. */
23884_ACEOF
23885cat confdefs.h >>conftest.$ac_ext
23886cat >>conftest.$ac_ext <<_ACEOF
23887/* end confdefs.h. */
23888
5c6fa7d2 23889/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23890#ifdef __cplusplus
23891extern "C"
23892#endif
5c6fa7d2 23893/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23894 builtin and then its argument prototype would still apply. */
23895char shmat ();
23896int
23897main ()
23898{
23899shmat ();
23900 ;
23901 return 0;
23902}
23903_ACEOF
23904rm -f conftest.$ac_objext conftest$ac_exeext
23905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23906 (eval $ac_link) 2>&5
e6cc62c6
VS
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } &&
09d3439c 23910 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23913 ac_status=$?
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23916 ac_cv_lib_ipc_shmat=yes
23917else
23918 echo "$as_me: failed program was:" >&5
23919sed 's/^/| /' conftest.$ac_ext >&5
23920
23921ac_cv_lib_ipc_shmat=no
23922fi
09d3439c 23923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23924LIBS=$ac_check_lib_save_LIBS
23925fi
23926echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23927echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23928if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23930fi
90dd450c 23931
90dd450c 23932 fi
21d1c967 23933 fi
10f2d63a 23934
21d1c967 23935 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23936 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23937 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23938 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23939 # check for ICE first), but we must link in the order -lSM -lICE or
23940 # we get undefined symbols. So assume we have SM if we have ICE.
23941 # These have to be linked with before -lX11, unlike the other
23942 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23943 # John Interrante, Karl Berry
23944 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23945echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23946if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23948else
23949 ac_check_lib_save_LIBS=$LIBS
f09359cf 23950LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23951cat >conftest.$ac_ext <<_ACEOF
09d3439c 23952#line $LINENO "configure"
e6cc62c6
VS
23953/* confdefs.h. */
23954_ACEOF
23955cat confdefs.h >>conftest.$ac_ext
23956cat >>conftest.$ac_ext <<_ACEOF
23957/* end confdefs.h. */
23958
21d1c967 23959/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23960#ifdef __cplusplus
23961extern "C"
23962#endif
21d1c967 23963/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23964 builtin and then its argument prototype would still apply. */
23965char IceConnectionNumber ();
23966int
23967main ()
23968{
23969IceConnectionNumber ();
23970 ;
23971 return 0;
23972}
23973_ACEOF
23974rm -f conftest.$ac_objext conftest$ac_exeext
23975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 23976 (eval $ac_link) 2>&5
e6cc62c6
VS
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } &&
09d3439c 23980 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986 ac_cv_lib_ICE_IceConnectionNumber=yes
23987else
23988 echo "$as_me: failed program was:" >&5
23989sed 's/^/| /' conftest.$ac_ext >&5
23990
23991ac_cv_lib_ICE_IceConnectionNumber=no
23992fi
09d3439c 23993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23994LIBS=$ac_check_lib_save_LIBS
23995fi
23996echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23997echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23998if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23999 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 24000fi
21d1c967 24001
e6cc62c6 24002 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 24003
10f2d63a
VZ
24004fi
24005
8284b0c5 24006
21d1c967 24007 if test "$no_x" = "yes"; then
e6cc62c6
VS
24008 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24009echo "$as_me: error: X11 not found" >&2;}
24010 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
24011 fi
24012
2b5f62a0
VZ
24013 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24014 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
24015 AFMINSTALL=afminstall
24016 COMPILED_X_PROGRAM=0
24017
e6cc62c6
VS
24018 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24019echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24020
21d1c967 24021ac_find_includes=
2b5f62a0 24022for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
24023 do
24024 if test -f "$ac_dir/Xm/Xm.h"; then
24025 ac_find_includes=$ac_dir
24026 break
24027 fi
24028 done
24029
24030 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
24031 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24032echo "${ECHO_T}found in $ac_find_includes" >&6
24033
2b5f62a0 24034 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
24035 ac_path_to_include=""
24036 else
2b5f62a0
VZ
24037 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24038 result=$?
24039 if test $result = 0; then
24040 ac_path_to_include=""
24041 else
24042 ac_path_to_include=" -I$ac_find_includes"
24043 fi
dd0e4a90
VZ
24044 fi
24045
24046 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 24047 else
e6cc62c6 24048 cat >conftest.$ac_ext <<_ACEOF
09d3439c 24049#line $LINENO "configure"
e6cc62c6
VS
24050/* confdefs.h. */
24051_ACEOF
24052cat confdefs.h >>conftest.$ac_ext
24053cat >>conftest.$ac_ext <<_ACEOF
24054/* end confdefs.h. */
21d1c967
GD
24055
24056 #include <Xm/Xm.h>
e6cc62c6
VS
24057
24058int
24059main ()
24060{
21d1c967
GD
24061
24062 int version;
24063 version = xmUseVersion;
e6cc62c6
VS
24064
24065 ;
24066 return 0;
24067}
24068_ACEOF
24069rm -f conftest.$ac_objext
24070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 24071 (eval $ac_compile) 2>&5
e6cc62c6
VS
24072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } &&
09d3439c 24075 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24078 ac_status=$?
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; }; then
24081
24082 echo "$as_me:$LINENO: result: found in default search path" >&5
24083echo "${ECHO_T}found in default search path" >&6
21d1c967 24084 COMPILED_X_PROGRAM=1
e6cc62c6 24085
10f2d63a 24086else
e6cc62c6
VS
24087 echo "$as_me: failed program was:" >&5
24088sed 's/^/| /' conftest.$ac_ext >&5
24089
24090
24091 echo "$as_me:$LINENO: result: no" >&5
24092echo "${ECHO_T}no" >&6
24093 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24094echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24095 { (exit 1); exit 1; }; }
24096
24097
10f2d63a 24098fi
09d3439c 24099rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24100 fi
10f2d63a 24101
21d1c967 24102 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24103 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24104echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24105
21d1c967 24106ac_find_libraries=
2b5f62a0 24107for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24108 do
24109 for ac_extension in a so sl dylib; do
24110 if test -f "$ac_dir/libXm.$ac_extension"; then
24111 ac_find_libraries=$ac_dir
24112 break 2
24113 fi
24114 done
24115 done
24116
24117 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24118 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24119echo "${ECHO_T}found at $ac_find_libraries" >&6
24120
21d1c967 24121
21d1c967
GD
24122 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24123 result=$?
24124 if test $result = 0; then
24125 ac_path_to_link=""
24126 else
24127 ac_path_to_link=" -L$ac_find_libraries"
24128 fi
24129
21d1c967 24130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24131 else
dd0e4a90
VZ
24132 save_CFLAGS=$CFLAGS
24133 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24134
e6cc62c6 24135 cat >conftest.$ac_ext <<_ACEOF
09d3439c 24136#line $LINENO "configure"
e6cc62c6
VS
24137/* confdefs.h. */
24138_ACEOF
24139cat confdefs.h >>conftest.$ac_ext
24140cat >>conftest.$ac_ext <<_ACEOF
24141/* end confdefs.h. */
21d1c967
GD
24142
24143 #include <Xm/Xm.h>
e6cc62c6
VS
24144
24145int
24146main ()
24147{
21d1c967
GD
24148
24149 int version;
24150 version = xmUseVersion;
e6cc62c6
VS
24151
24152 ;
24153 return 0;
24154}
24155_ACEOF
24156rm -f conftest.$ac_objext
24157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 24158 (eval $ac_compile) 2>&5
e6cc62c6
VS
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } &&
09d3439c 24162 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; }; then
24168
24169 echo "$as_me:$LINENO: result: found in default search path" >&5
24170echo "${ECHO_T}found in default search path" >&6
21d1c967 24171 COMPILED_X_PROGRAM=1
e6cc62c6 24172
d836ee96 24173else
e6cc62c6
VS
24174 echo "$as_me: failed program was:" >&5
24175sed 's/^/| /' conftest.$ac_ext >&5
24176
24177
24178 echo "$as_me:$LINENO: result: no" >&5
24179echo "${ECHO_T}no" >&6
24180 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24181echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24182 { (exit 1); exit 1; }; }
24183
24184
d836ee96 24185fi
09d3439c 24186rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24187
24188 CFLAGS=$save_CFLAGS
21d1c967
GD
24189 fi
24190 fi
24191
e6cc62c6
VS
24192 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24193echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24194 libp_link=""
24195 libsm_ice_link=""
24196 libs_found=0
24197 for libp in "" " -lXp"; do
24198 if test "$libs_found" = "0"; then
7015ef3a 24199 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 24200 if test "$libs_found" = "0"; then
6a30f1c8 24201 save_LIBS="$LIBS"
93a543aa 24202 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24203 save_CFLAGS=$CFLAGS
24204 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24205
e6cc62c6 24206 cat >conftest.$ac_ext <<_ACEOF
09d3439c 24207#line $LINENO "configure"
e6cc62c6
VS
24208/* confdefs.h. */
24209_ACEOF
24210cat confdefs.h >>conftest.$ac_ext
24211cat >>conftest.$ac_ext <<_ACEOF
24212/* end confdefs.h. */
17234b26 24213
6a30f1c8
MB
24214 #include <Xm/Xm.h>
24215 #include <Xm/List.h>
e6cc62c6
VS
24216
24217int
24218main ()
24219{
6a30f1c8
MB
24220
24221 XmString string = NULL;
24222 Widget w = NULL;
24223 int position = 0;
24224 XmListAddItem(w, string, position);
e6cc62c6
VS
24225
24226 ;
24227 return 0;
24228}
24229_ACEOF
24230rm -f conftest.$ac_objext conftest$ac_exeext
24231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 24232 (eval $ac_link) 2>&5
e6cc62c6
VS
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); } &&
09d3439c 24236 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242
6a30f1c8
MB
24243 libp_link="$libp"
24244 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24245 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24246echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24247 libs_found=1
e6cc62c6 24248
6a30f1c8 24249else
e6cc62c6
VS
24250 echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
24253
24254
6a30f1c8 24255fi
09d3439c 24256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24257
6a30f1c8 24258 LIBS="$save_LIBS"
dd0e4a90 24259 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24260 fi
24261 done
24262 fi
24263 done
24264
24265 if test "$libs_found" = "0"; then
e6cc62c6
VS
24266 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24267echo "${ECHO_T}can't find the right libraries" >&6
24268 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24269echo "$as_me: error: can't link a simple motif program" >&2;}
24270 { (exit 1); exit 1; }; }
6a30f1c8
MB
24271 fi
24272
da494b40
MB
24273 save_CFLAGS=$CFLAGS
24274 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24275 echo "$as_me:$LINENO: checking for Motif 2" >&5
24276echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24277 cat >conftest.$ac_ext <<_ACEOF
09d3439c 24278#line $LINENO "configure"
e6cc62c6
VS
24279/* confdefs.h. */
24280_ACEOF
24281cat confdefs.h >>conftest.$ac_ext
24282cat >>conftest.$ac_ext <<_ACEOF
24283/* end confdefs.h. */
da494b40
MB
24284
24285 #include <Xm/Xm.h>
e6cc62c6
VS
24286
24287int
24288main ()
24289{
da494b40
MB
24290
24291 #if XmVersion < 2000
24292 #error "Not Motif 2"
24293 #endif
e6cc62c6
VS
24294
24295 ;
24296 return 0;
24297}
24298_ACEOF
24299rm -f conftest.$ac_objext
24300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 24301 (eval $ac_compile) 2>&5
e6cc62c6
VS
24302 ac_status=$?
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
09d3439c 24305 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 (eval $ac_try) 2>&5
24308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; }; then
24311
24312 cat >>confdefs.h <<\_ACEOF
da494b40 24313#define __WXMOTIF20__ 1
e6cc62c6
VS
24314_ACEOF
24315
24316 echo "$as_me:$LINENO: result: found" >&5
24317echo "${ECHO_T}found" >&6
da494b40 24318
da494b40 24319else
e6cc62c6
VS
24320 echo "$as_me: failed program was:" >&5
24321sed 's/^/| /' conftest.$ac_ext >&5
24322
24323
24324 cat >>confdefs.h <<\_ACEOF
da494b40 24325#define __WXMOTIF20__ 0
e6cc62c6
VS
24326_ACEOF
24327
24328 echo "$as_me:$LINENO: result: not found" >&5
24329echo "${ECHO_T}not found" >&6
da494b40 24330
da494b40 24331fi
09d3439c 24332rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24333 CFLAGS=$save_CFLAGS
24334
93a543aa 24335 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24336 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24337 TOOLKIT=MOTIF
24338 GUIDIST=MOTIF_DIST
f7f78039
MB
24339 fi
24340
89fe663f
VZ
24341 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
24342 if test "$wxUSE_LIBXPM" = "sys"; then
24343 echo "$as_me:$LINENO: checking for Xpm library" >&5
24344echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24345
24346ac_find_libraries=
24347for ac_dir in $SEARCH_LIB /usr/lib;
24348 do
24349 for ac_extension in a so sl dylib; do
24350 if test -f "$ac_dir/libXpm.$ac_extension"; then
24351 ac_find_libraries=$ac_dir
24352 break 2
24353 fi
24354 done
24355 done
24356
24357 if test "$ac_find_libraries" != "" ; then
24358
24359 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24360 result=$?
24361 if test $result = 0; then
24362 ac_path_to_link=""
24363 else
24364 ac_path_to_link=" -L$ac_find_libraries"
24365 fi
24366
24367 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24368 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24369echo "${ECHO_T}found at $ac_find_libraries" >&6
24370
24371 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24372echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24373if test "${wx_cv_x11_xpm_h+set}" = set; then
24374 echo $ECHO_N "(cached) $ECHO_C" >&6
24375else
24376
24377 save_CFLAGS=$CFLAGS
24378 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24379
24380 cat >conftest.$ac_ext <<_ACEOF
09d3439c 24381#line $LINENO "configure"
89fe663f
VZ
24382/* confdefs.h. */
24383_ACEOF
24384cat confdefs.h >>conftest.$ac_ext
24385cat >>conftest.$ac_ext <<_ACEOF
24386/* end confdefs.h. */
24387
24388 #include <X11/xpm.h>
24389
24390int
24391main ()
24392{
24393
24394 int version;
24395 version = XpmLibraryVersion();
24396
24397 ;
24398 return 0;
24399}
24400_ACEOF
24401rm -f conftest.$ac_objext
24402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 24403 (eval $ac_compile) 2>&5
89fe663f
VZ
24404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } &&
09d3439c 24407 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
24408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; }; then
24413 wx_cv_x11_xpm_h=yes
24414else
24415 echo "$as_me: failed program was:" >&5
24416sed 's/^/| /' conftest.$ac_ext >&5
24417
24418wx_cv_x11_xpm_h=no
24419
24420fi
09d3439c 24421rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
24422
24423 CFLAGS=$save_CFLAGS
24424
24425
24426fi
24427echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
24428echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
24429
24430 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 24431 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
24432 cat >>confdefs.h <<\_ACEOF
24433#define wxHAVE_LIB_XPM 1
24434_ACEOF
24435
24436 else
24437 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
24438echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
24439 fi
24440 fi
24441
24442 fi
f7f78039 24443
89fe663f
VZ
24444 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
24445echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
24446if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24448else
24449 ac_check_lib_save_LIBS=$LIBS
24450LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
24451cat >conftest.$ac_ext <<_ACEOF
09d3439c 24452#line $LINENO "configure"
89fe663f
VZ
24453/* confdefs.h. */
24454_ACEOF
24455cat confdefs.h >>conftest.$ac_ext
24456cat >>conftest.$ac_ext <<_ACEOF
24457/* end confdefs.h. */
24458
24459/* Override any gcc2 internal prototype to avoid an error. */
24460#ifdef __cplusplus
24461extern "C"
24462#endif
24463/* We use char because int might match the return type of a gcc2
24464 builtin and then its argument prototype would still apply. */
24465char XShapeQueryExtension ();
24466int
24467main ()
24468{
24469XShapeQueryExtension ();
24470 ;
24471 return 0;
24472}
24473_ACEOF
24474rm -f conftest.$ac_objext conftest$ac_exeext
24475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 24476 (eval $ac_link) 2>&5
89fe663f
VZ
24477 ac_status=$?
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } &&
09d3439c 24480 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; }; then
24486 ac_cv_lib_Xext_XShapeQueryExtension=yes
24487else
24488 echo "$as_me: failed program was:" >&5
24489sed 's/^/| /' conftest.$ac_ext >&5
24490
24491ac_cv_lib_Xext_XShapeQueryExtension=no
24492fi
09d3439c 24493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
24494LIBS=$ac_check_lib_save_LIBS
24495fi
24496echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
24497echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
24498if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
24499
24500 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
24501 wxHAVE_XEXT_LIB=1
24502
24503fi
24504
24505
24506 if test "$wxHAVE_XEXT_LIB" = 1; then
24507 save_CFLAGS="$CFLAGS"
24508 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24509
24510 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 24511echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 24512 cat >conftest.$ac_ext <<_ACEOF
09d3439c 24513#line $LINENO "configure"
e6cc62c6
VS
24514/* confdefs.h. */
24515_ACEOF
24516cat confdefs.h >>conftest.$ac_ext
24517cat >>conftest.$ac_ext <<_ACEOF
24518/* end confdefs.h. */
24519
89fe663f
VZ
24520 #include <X11/Xlib.h>
24521 #include <X11/extensions/shape.h>
e6cc62c6
VS
24522
24523int
24524main ()
24525{
f7f78039 24526
89fe663f
VZ
24527 int dummy1, dummy2;
24528 XShapeQueryExtension((Display*)NULL,
24529 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24530
24531 ;
24532 return 0;
24533}
24534_ACEOF
24535rm -f conftest.$ac_objext
24536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 24537 (eval $ac_compile) 2>&5
e6cc62c6
VS
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } &&
09d3439c 24541 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547
89fe663f 24548 cat >>confdefs.h <<\_ACEOF
f7f78039 24549#define HAVE_XSHAPE 1
e6cc62c6
VS
24550_ACEOF
24551
89fe663f 24552 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 24553echo "${ECHO_T}found" >&6
f7f78039 24554
f7f78039 24555else
e6cc62c6
VS
24556 echo "$as_me: failed program was:" >&5
24557sed 's/^/| /' conftest.$ac_ext >&5
24558
24559
89fe663f 24560 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
24561echo "${ECHO_T}not found" >&6
24562
f7f78039 24563fi
09d3439c 24564rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
24565 CFLAGS="$save_CFLAGS"
24566
24567 fi
21d1c967
GD
24568 fi
24569
24570 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
24571 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
24572echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
24573 if test "$GCC" = yes; then
24574 echo "$as_me:$LINENO: result: gcc" >&5
24575echo "${ECHO_T}gcc" >&6
24576 CPPFLAGS_PASCAL="-fpascal-strings"
24577 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
24578 echo "$as_me:$LINENO: result: xlc" >&5
24579echo "${ECHO_T}xlc" >&6
24580 CPPFLAGS_PASCAL="-qmacpstr"
24581 else
24582 echo "$as_me:$LINENO: result: none" >&5
24583echo "${ECHO_T}none" >&6
24584 fi
24585
24586 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24587
0c98a14e 24588 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24589 TOOLKIT=MAC
24590 GUIDIST=MACX_DIST
cf615ebb 24591 WXBASEPORT="_carbon"
21d1c967
GD
24592 fi
24593
ac0c4cc3
DE
24594 if test "$wxUSE_COCOA" = 1; then
24595 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24596 TOOLKIT=COCOA
24597 GUIDIST=COCOA_DIST
24598 fi
24599
21d1c967
GD
24600 if test "$wxUSE_PM" = 1; then
24601 TOOLKIT=PM
24602 GUIDIST=GTK_DIST
24603 fi
24604
24605 if test "$TOOLKIT" = "PM" ; then
24606 TOOLKIT_DIR="os2"
24607 else
24608 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24609 fi
24610
24611 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24612
24613 if test "$wxUSE_UNIVERSAL" = "yes"; then
24614 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24615
24616 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24617 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24618
24619 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24620 if test "$wxUSE_X11" = 1; then
24621 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24622 else
24623 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24624 fi
24625 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24626 WIDGET_SET=univ
24627 else
24628 ALL_OBJECTS="\$(GUIOBJS)"
24629 ALL_SOURCES="\$(ALL_SOURCES)"
24630 ALL_HEADERS="\$(ALL_HEADERS)"
24631 fi
24632
24633 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24634
24635 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24636 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24637 fi
24638
24639 if test "$wxUSE_HTML" = "yes"; then
24640 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24641 fi
24642
24643 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24644 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24645 fi
24646 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24647 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24648 fi
24649 if test "$wxUSE_LIBPNG" = "builtin" ; then
24650 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24651 fi
24652
24653 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24654 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24655else
21d1c967
GD
24656 USE_GUI=0
24657
24658 TOOLKIT_DIR="base"
24659
24660 if test "$USE_WIN32" = 1 ; then
24661 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24662 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24663
24664 TOOLKIT="MSW"
24665 else
24666 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24667 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24668 fi
24669
24670 ALL_SOURCES="\$(ALL_SOURCES)"
24671 ALL_HEADERS="\$(ALL_HEADERS)"
24672
24673 PORT_FILES="\${top_srcdir}/src/files.lst"
24674
24675 GUIDIST="BASE_DIST"
24676 DISTDIR="wxBase"
d836ee96
VZ
24677fi
24678
8284b0c5 24679
8647bec6
RG
24680
24681
24682IODBC_C_SRC=""
24683
24684
24685if test "$TOOLKIT" != "MSW" ; then
24686
bb41dcbe 24687 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24688
bb41dcbe 24689 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24690 echo "$as_me:$LINENO: checking for sql.h" >&5
24691echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24692if test "${ac_cv_header_sql_h+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24694fi
24695echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24696echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24697else
24698 # Is the header compilable?
24699echo "$as_me:$LINENO: checking sql.h usability" >&5
24700echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24701cat >conftest.$ac_ext <<_ACEOF
09d3439c 24702#line $LINENO "configure"
e6cc62c6
VS
24703/* confdefs.h. */
24704_ACEOF
24705cat confdefs.h >>conftest.$ac_ext
24706cat >>conftest.$ac_ext <<_ACEOF
24707/* end confdefs.h. */
24708$ac_includes_default
8647bec6 24709#include <sql.h>
e6cc62c6
VS
24710_ACEOF
24711rm -f conftest.$ac_objext
24712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 24713 (eval $ac_compile) 2>&5
e6cc62c6
VS
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); } &&
09d3439c 24717 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719 (eval $ac_try) 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 ac_header_compiler=yes
24724else
24725 echo "$as_me: failed program was:" >&5
24726sed 's/^/| /' conftest.$ac_ext >&5
24727
24728ac_header_compiler=no
24729fi
09d3439c 24730rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
24731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24732echo "${ECHO_T}$ac_header_compiler" >&6
24733
24734# Is the header present?
24735echo "$as_me:$LINENO: checking sql.h presence" >&5
24736echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24737cat >conftest.$ac_ext <<_ACEOF
09d3439c 24738#line $LINENO "configure"
e6cc62c6
VS
24739/* confdefs.h. */
24740_ACEOF
24741cat confdefs.h >>conftest.$ac_ext
24742cat >>conftest.$ac_ext <<_ACEOF
24743/* end confdefs.h. */
24744#include <sql.h>
24745_ACEOF
24746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24748 ac_status=$?
24749 grep -v '^ *+' conftest.er1 >conftest.err
24750 rm -f conftest.er1
24751 cat conftest.err >&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); } >/dev/null; then
24754 if test -s conftest.err; then
24755 ac_cpp_err=$ac_c_preproc_warn_flag
24756 else
24757 ac_cpp_err=
24758 fi
24759else
24760 ac_cpp_err=yes
24761fi
24762if test -z "$ac_cpp_err"; then
24763 ac_header_preproc=yes
24764else
24765 echo "$as_me: failed program was:" >&5
24766sed 's/^/| /' conftest.$ac_ext >&5
24767
24768 ac_header_preproc=no
24769fi
24770rm -f conftest.err conftest.$ac_ext
24771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24772echo "${ECHO_T}$ac_header_preproc" >&6
24773
24774# So? What about this header?
09d3439c
VZ
24775case $ac_header_compiler:$ac_header_preproc in
24776 yes:no )
e6cc62c6
VS
24777 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24778echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
24779 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24780echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24781 (
24782 cat <<\_ASBOX
24783## ------------------------------------ ##
24784## Report this to bug-autoconf@gnu.org. ##
24785## ------------------------------------ ##
24786_ASBOX
24787 ) |
24788 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 24789 ;;
09d3439c 24790 no:yes )
e6cc62c6
VS
24791 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24792echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
09d3439c
VZ
24793 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24794echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
24795 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24796echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24797 (
24798 cat <<\_ASBOX
09d3439c
VZ
24799## ------------------------------------ ##
24800## Report this to bug-autoconf@gnu.org. ##
24801## ------------------------------------ ##
e6cc62c6
VS
24802_ASBOX
24803 ) |
24804 sed "s/^/$as_me: WARNING: /" >&2
24805 ;;
24806esac
24807echo "$as_me:$LINENO: checking for sql.h" >&5
24808echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24809if test "${ac_cv_header_sql_h+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24811else
e6cc62c6
VS
24812 ac_cv_header_sql_h=$ac_header_preproc
24813fi
24814echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24815echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24816
bb41dcbe
VS
24817fi
24818if test $ac_cv_header_sql_h = yes; then
24819 found_sql_h=1
8647bec6
RG
24820fi
24821
e6cc62c6 24822
bb41dcbe 24823 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
24824 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
24825echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
24826if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 24827 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24828else
bb41dcbe 24829 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24830LIBS="-liodbc $LIBS"
e6cc62c6 24831cat >conftest.$ac_ext <<_ACEOF
09d3439c 24832#line $LINENO "configure"
e6cc62c6
VS
24833/* confdefs.h. */
24834_ACEOF
24835cat confdefs.h >>conftest.$ac_ext
24836cat >>conftest.$ac_ext <<_ACEOF
24837/* end confdefs.h. */
24838
8647bec6 24839/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24840#ifdef __cplusplus
24841extern "C"
24842#endif
8647bec6 24843/* We use char because int might match the return type of a gcc2
e6cc62c6 24844 builtin and then its argument prototype would still apply. */
e46d2a18 24845char SQLAllocEnv ();
e6cc62c6
VS
24846int
24847main ()
24848{
e46d2a18 24849SQLAllocEnv ();
e6cc62c6
VS
24850 ;
24851 return 0;
24852}
24853_ACEOF
24854rm -f conftest.$ac_objext conftest$ac_exeext
24855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 24856 (eval $ac_link) 2>&5
e6cc62c6
VS
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } &&
09d3439c 24860 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; }; then
e46d2a18 24866 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 24867else
e6cc62c6
VS
24868 echo "$as_me: failed program was:" >&5
24869sed 's/^/| /' conftest.$ac_ext >&5
24870
e46d2a18 24871ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 24872fi
09d3439c 24873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24874LIBS=$ac_check_lib_save_LIBS
24875fi
e46d2a18
VS
24876echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
24877echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
24878if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24879 ODBC_LINK=" -liodbc"
24880else
24881
e46d2a18
VS
24882 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
24883echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
24884if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
24886else
24887 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24888LIBS="-lunixodbc $LIBS"
bb41dcbe 24889cat >conftest.$ac_ext <<_ACEOF
09d3439c 24890#line $LINENO "configure"
e6cc62c6
VS
24891/* confdefs.h. */
24892_ACEOF
24893cat confdefs.h >>conftest.$ac_ext
24894cat >>conftest.$ac_ext <<_ACEOF
24895/* end confdefs.h. */
24896
8647bec6 24897/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24898#ifdef __cplusplus
24899extern "C"
24900#endif
8647bec6 24901/* We use char because int might match the return type of a gcc2
e6cc62c6 24902 builtin and then its argument prototype would still apply. */
e46d2a18 24903char SQLAllocEnv ();
e6cc62c6
VS
24904int
24905main ()
24906{
e46d2a18 24907SQLAllocEnv ();
e6cc62c6
VS
24908 ;
24909 return 0;
24910}
24911_ACEOF
24912rm -f conftest.$ac_objext conftest$ac_exeext
24913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 24914 (eval $ac_link) 2>&5
e6cc62c6
VS
24915 ac_status=$?
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); } &&
09d3439c 24918 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); }; }; then
e46d2a18 24924 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 24925else
e6cc62c6
VS
24926 echo "$as_me: failed program was:" >&5
24927sed 's/^/| /' conftest.$ac_ext >&5
24928
e46d2a18 24929ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 24930fi
09d3439c 24931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24932LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24933fi
e46d2a18
VS
24934echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
24935echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
24936if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24937 ODBC_LINK=" -lunixodbc"
24938else
24939
e46d2a18
VS
24940 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
24941echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
24942if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24943 echo $ECHO_N "(cached) $ECHO_C" >&6
24944else
24945 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24946LIBS="-lodbc $LIBS"
bb41dcbe 24947cat >conftest.$ac_ext <<_ACEOF
09d3439c 24948#line $LINENO "configure"
bb41dcbe
VS
24949/* confdefs.h. */
24950_ACEOF
24951cat confdefs.h >>conftest.$ac_ext
24952cat >>conftest.$ac_ext <<_ACEOF
24953/* end confdefs.h. */
e6cc62c6 24954
bb41dcbe
VS
24955/* Override any gcc2 internal prototype to avoid an error. */
24956#ifdef __cplusplus
24957extern "C"
24958#endif
24959/* We use char because int might match the return type of a gcc2
24960 builtin and then its argument prototype would still apply. */
e46d2a18 24961char SQLAllocEnv ();
bb41dcbe
VS
24962int
24963main ()
24964{
e46d2a18 24965SQLAllocEnv ();
bb41dcbe
VS
24966 ;
24967 return 0;
24968}
24969_ACEOF
24970rm -f conftest.$ac_objext conftest$ac_exeext
24971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 24972 (eval $ac_link) 2>&5
bb41dcbe
VS
24973 ac_status=$?
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } &&
09d3439c 24976 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
e46d2a18 24982 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 24983else
bb41dcbe
VS
24984 echo "$as_me: failed program was:" >&5
24985sed 's/^/| /' conftest.$ac_ext >&5
24986
e46d2a18 24987ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 24988fi
09d3439c 24989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24990LIBS=$ac_check_lib_save_LIBS
24991fi
e46d2a18
VS
24992echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
24993echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
24994if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24995 ODBC_LINK=" -lodbc"
24996fi
24997
24998
24999fi
e6cc62c6 25000
e6cc62c6 25001
8647bec6 25002fi
e6cc62c6 25003
fd3d7534 25004 fi
bb41dcbe
VS
25005 if test "x$ODBC_LINK" = "x" ; then
25006 if test "$wxUSE_ODBC" = "sys" ; then
25007 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25008echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25009 { (exit 1); exit 1; }; }
25010 else
25011 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25012echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25013 wxUSE_ODBC=builtin
25014 fi
25015 else
25016 wxUSE_ODBC=sys
8647bec6 25017 fi
8647bec6 25018 fi
bb41dcbe
VS
25019 if test "$wxUSE_ODBC" != "no" ; then
25020 cat >>confdefs.h <<\_ACEOF
25021#define wxUSE_ODBC 1
25022_ACEOF
e6cc62c6 25023
0bdb08e7
VS
25024 if test "$wxUSE_ODBC" = "builtin" ; then
25025 cat >>confdefs.h <<\_ACEOF
25026#define wxUSE_BUILTIN_IODBC 1
25027_ACEOF
25028
25029 fi
bb41dcbe
VS
25030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25031
25032 WXODBCFLAG="-D_IODBC_"
25033 fi
6232543b 25034fi
21d1c967
GD
25035
25036if test "$wxUSE_REGEX" = "builtin" ; then
25037 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 25038fi
21d1c967
GD
25039if test "$wxUSE_ZLIB" = "builtin" ; then
25040 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
25041fi
25042
74500461
VS
25043if test "$wxUSE_DISPLAY" = "yes"; then
25044 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
25045 echo "$as_me:$LINENO: checking for Xinerama" >&5
25046echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
25047
25048ac_find_libraries=
25049for ac_dir in $SEARCH_LIB /usr/lib;
25050 do
25051 for ac_extension in a so sl dylib; do
25052 if test -f "$ac_dir/libXinerama.$ac_extension"; then
25053 ac_find_libraries=$ac_dir
25054 break 2
25055 fi
25056 done
25057 done
25058
25059 if test "$ac_find_libraries" != "" ; then
25060
25061 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25062 result=$?
25063 if test $result = 0; then
25064 ac_path_to_link=""
25065 else
25066 ac_path_to_link=" -L$ac_find_libraries"
25067 fi
25068
25069 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25070 LDFLAGS="$LDFLAGS $ac_path_to_link"
25071 fi
25072 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
25073 echo "$as_me:$LINENO: result: yes" >&5
25074echo "${ECHO_T}yes" >&6
505c8ccd
VS
25075
25076 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
25077echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
25078
25079ac_find_libraries=
25080for ac_dir in $SEARCH_LIB /usr/lib;
25081 do
25082 for ac_extension in a so sl dylib; do
25083 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
25084 ac_find_libraries=$ac_dir
25085 break 2
25086 fi
25087 done
25088 done
25089
25090 if test "$ac_find_libraries" != "" ; then
25091 echo "$as_me:$LINENO: result: yes" >&5
25092echo "${ECHO_T}yes" >&6
25093
25094for ac_header in X11/extensions/xf86vmode.h
25095do
25096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25097echo "$as_me:$LINENO: checking for $ac_header" >&5
25098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25099if eval "test \"\${$as_ac_Header+set}\" = set"; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25101else
25102 cat >conftest.$ac_ext <<_ACEOF
09d3439c 25103#line $LINENO "configure"
505c8ccd
VS
25104/* confdefs.h. */
25105_ACEOF
25106cat confdefs.h >>conftest.$ac_ext
25107cat >>conftest.$ac_ext <<_ACEOF
25108/* end confdefs.h. */
25109
25110 #if HAVE_X11_XLIB_H
25111 #include <X11/Xlib.h>
25112 #endif
25113
25114
25115#include <$ac_header>
25116_ACEOF
25117rm -f conftest.$ac_objext
25118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 25119 (eval $ac_compile) 2>&5
505c8ccd 25120 ac_status=$?
505c8ccd
VS
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } &&
09d3439c 25123 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; }; then
25129 eval "$as_ac_Header=yes"
25130else
25131 echo "$as_me: failed program was:" >&5
25132sed 's/^/| /' conftest.$ac_ext >&5
25133
25134eval "$as_ac_Header=no"
25135fi
09d3439c 25136rm -f conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
25137fi
25138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25140if test `eval echo '${'$as_ac_Header'}'` = yes; then
25141 cat >>confdefs.h <<_ACEOF
25142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25143_ACEOF
25144
25145 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
25146
25147fi
25148
25149done
25150
25151 else
25152 echo "$as_me:$LINENO: result: no" >&5
25153echo "${ECHO_T}no" >&6
25154 fi
25155
74500461
VS
25156 else
25157 echo "$as_me:$LINENO: result: no" >&5
25158echo "${ECHO_T}no" >&6
25159 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
25160echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
25161 wxUSE_DISPLAY="no"
25162 fi
25163 fi
25164fi
25165
8284b0c5 25166
4d264332 25167USE_OPENGL=0
21d1c967 25168if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 25169 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
25170 OPENGL_LIBS="-framework OpenGL -framework AGL"
25171 elif test "$wxUSE_MSW" = 1; then
25172 OPENGL_LIBS="-lopengl32 -lglu32"
25173 else
01aa5863
VS
25174
25175
25176ac_find_includes=
25177for ac_dir in $SEARCH_INCLUDE /usr/include;
25178 do
25179 if test -f "$ac_dir/GL/gl.h"; then
25180 ac_find_includes=$ac_dir
25181 break
25182 fi
25183 done
25184
25185 if test "$ac_find_includes" != "" ; then
25186 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25187echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
25188
25189 if test "x$ac_find_includes" = "x/usr/include"; then
25190 ac_path_to_include=""
25191 else
25192 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25193 result=$?
25194 if test $result = 0; then
25195 ac_path_to_include=""
25196 else
25197 ac_path_to_include=" -I$ac_find_includes"
25198 fi
25199 fi
25200
25201 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
25202 fi
25203
e6cc62c6
VS
25204 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25205 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25206echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25207if test "${ac_cv_header_GL_gl_h+set}" = set; then
25208 echo $ECHO_N "(cached) $ECHO_C" >&6
25209fi
25210echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25211echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25212else
25213 # Is the header compilable?
25214echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25215echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25216cat >conftest.$ac_ext <<_ACEOF
09d3439c 25217#line $LINENO "configure"
e6cc62c6
VS
25218/* confdefs.h. */
25219_ACEOF
25220cat confdefs.h >>conftest.$ac_ext
25221cat >>conftest.$ac_ext <<_ACEOF
25222/* end confdefs.h. */
25223$ac_includes_default
21d1c967 25224#include <GL/gl.h>
e6cc62c6
VS
25225_ACEOF
25226rm -f conftest.$ac_objext
25227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 25228 (eval $ac_compile) 2>&5
e6cc62c6
VS
25229 ac_status=$?
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } &&
09d3439c 25232 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; }; then
25238 ac_header_compiler=yes
25239else
25240 echo "$as_me: failed program was:" >&5
25241sed 's/^/| /' conftest.$ac_ext >&5
25242
25243ac_header_compiler=no
25244fi
09d3439c 25245rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
25246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25247echo "${ECHO_T}$ac_header_compiler" >&6
25248
25249# Is the header present?
25250echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25251echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25252cat >conftest.$ac_ext <<_ACEOF
09d3439c 25253#line $LINENO "configure"
e6cc62c6
VS
25254/* confdefs.h. */
25255_ACEOF
25256cat confdefs.h >>conftest.$ac_ext
25257cat >>conftest.$ac_ext <<_ACEOF
25258/* end confdefs.h. */
25259#include <GL/gl.h>
25260_ACEOF
25261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25263 ac_status=$?
25264 grep -v '^ *+' conftest.er1 >conftest.err
25265 rm -f conftest.er1
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } >/dev/null; then
25269 if test -s conftest.err; then
25270 ac_cpp_err=$ac_c_preproc_warn_flag
25271 else
25272 ac_cpp_err=
25273 fi
25274else
25275 ac_cpp_err=yes
25276fi
25277if test -z "$ac_cpp_err"; then
25278 ac_header_preproc=yes
25279else
25280 echo "$as_me: failed program was:" >&5
25281sed 's/^/| /' conftest.$ac_ext >&5
25282
25283 ac_header_preproc=no
25284fi
25285rm -f conftest.err conftest.$ac_ext
25286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25287echo "${ECHO_T}$ac_header_preproc" >&6
25288
25289# So? What about this header?
09d3439c
VZ
25290case $ac_header_compiler:$ac_header_preproc in
25291 yes:no )
e6cc62c6
VS
25292 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25293echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
25294 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25295echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25296 (
25297 cat <<\_ASBOX
25298## ------------------------------------ ##
25299## Report this to bug-autoconf@gnu.org. ##
25300## ------------------------------------ ##
25301_ASBOX
25302 ) |
25303 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 25304 ;;
09d3439c 25305 no:yes )
e6cc62c6
VS
25306 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25307echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
09d3439c
VZ
25308 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25309echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
25310 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25311echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25312 (
25313 cat <<\_ASBOX
09d3439c
VZ
25314## ------------------------------------ ##
25315## Report this to bug-autoconf@gnu.org. ##
25316## ------------------------------------ ##
e6cc62c6
VS
25317_ASBOX
25318 ) |
25319 sed "s/^/$as_me: WARNING: /" >&2
25320 ;;
25321esac
25322echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25323echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25324if test "${ac_cv_header_GL_gl_h+set}" = set; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
25326else
25327 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25328fi
e6cc62c6
VS
25329echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25330echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25331
698dcdb6 25332fi
e6cc62c6
VS
25333if test $ac_cv_header_GL_gl_h = yes; then
25334
89e3b3e4
VZ
25335 found_gl=0
25336
e6cc62c6
VS
25337 echo "$as_me:$LINENO: checking for -lGL" >&5
25338echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25339
21d1c967 25340ac_find_libraries=
2b5f62a0 25341for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25342 do
25343 for ac_extension in a so sl dylib; do
25344 if test -f "$ac_dir/libGL.$ac_extension"; then
25345 ac_find_libraries=$ac_dir
25346 break 2
25347 fi
25348 done
25349 done
25350
25351 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25352
21d1c967
GD
25353 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25354 result=$?
25355 if test $result = 0; then
25356 ac_path_to_link=""
25357 else
25358 ac_path_to_link=" -L$ac_find_libraries"
25359 fi
25360
89e3b3e4
VZ
25361 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25362 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25363 fi
89e3b3e4 25364
e6cc62c6 25365
89e3b3e4
VZ
25366ac_find_libraries=
25367for ac_dir in $SEARCH_LIB /usr/lib;
25368 do
25369 for ac_extension in a so sl dylib; do
25370 if test -f "$ac_dir/libGLU.$ac_extension"; then
25371 ac_find_libraries=$ac_dir
25372 break 2
25373 fi
25374 done
25375 done
25376
25377 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25378
89e3b3e4
VZ
25379 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25380 result=$?
25381 if test $result = 0; then
25382 ac_path_to_link=""
25383 else
25384 ac_path_to_link=" -L$ac_find_libraries"
25385 fi
25386
25387 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25388 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25389 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25390 fi
25391
25392 found_gl=1
25393 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25394 echo "$as_me:$LINENO: result: yes" >&5
25395echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25396 fi
25397 fi
25398
bb41dcbe 25399 if test "$found_gl" != 1; then
e6cc62c6
VS
25400 echo "$as_me:$LINENO: result: no" >&5
25401echo "${ECHO_T}no" >&6
25402 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25403echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25404
21d1c967 25405ac_find_libraries=
2b5f62a0 25406for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25407 do
25408 for ac_extension in a so sl dylib; do
25409 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25410 ac_find_libraries=$ac_dir
25411 break 2
25412 fi
25413 done
25414 done
25415
25416 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25417
21d1c967
GD
25418 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25419 result=$?
25420 if test $result = 0; then
25421 ac_path_to_link=""
25422 else
25423 ac_path_to_link=" -L$ac_find_libraries"
25424 fi
25425
25426 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25427 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25428 echo "$as_me:$LINENO: result: yes" >&5
25429echo "${ECHO_T}yes" >&6
21d1c967 25430 else
e6cc62c6
VS
25431 echo "$as_me:$LINENO: result: no" >&5
25432echo "${ECHO_T}no" >&6
21d1c967
GD
25433 fi
25434 fi
e6cc62c6 25435
5c6fa7d2 25436fi
52127426 25437
8284b0c5 25438
e6cc62c6 25439
21d1c967 25440 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25441 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25442echo "$as_me: error: OpenGL libraries not available" >&2;}
25443 { (exit 1); exit 1; }; }
21d1c967
GD
25444 fi
25445 fi
90dd450c 25446
21d1c967 25447 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25448 USE_OPENGL=1
e6cc62c6 25449 cat >>confdefs.h <<\_ACEOF
21d1c967 25450#define wxUSE_OPENGL 1
e6cc62c6 25451_ACEOF
21d1c967 25452
e6cc62c6 25453 cat >>confdefs.h <<\_ACEOF
21d1c967 25454#define wxUSE_GLCANVAS 1
e6cc62c6 25455_ACEOF
21d1c967 25456
520755bb 25457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25458 fi
10f2d63a 25459fi
21d1c967
GD
25460
25461if test -z "$TOOLKIT_VPATH" ; then
25462 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25463fi
21d1c967
GD
25464
25465if test -n "$TOOLKIT" ; then
25466 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25467fi
25468
fe0895cf 25469UNICODE=0
21d1c967
GD
25470lib_unicode_suffix=
25471if test "$wxUSE_UNICODE" = "yes"; then
25472 lib_unicode_suffix=u
fe0895cf 25473 UNICODE=1
90dd450c 25474fi
698dcdb6 25475
21d1c967 25476lib_debug_suffix=
6c67131a 25477DEBUG_FLAG=0
21d1c967
GD
25478if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25479 lib_debug_suffix=d
6c67131a
VS
25480 DEBUG_FLAG=1
25481fi
25482
25483DEBUG_INFO=0
25484if test "$wxUSE_DEBUG_INFO" = "yes"; then
25485 DEBUG_INFO=1
21d1c967 25486fi
698dcdb6 25487
1cbb95a2 25488WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25489
25490TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25491TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25492
25493if test "$cross_compiling" = "yes"; then
25494 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25495 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25496 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25497fi
25498
25499WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25500WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25501WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25502WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25503
25504WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25505WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25506
25507WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25508WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25509WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25510WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25511
25512case "${host}" in
25513 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25514 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25515 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25516 ;;
25517
25518 *-*-darwin* )
e6cc62c6 25519
05159a27
GD
25520 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25521 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25522
25523 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25524 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25525 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25526 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25527
09d3439c
VZ
25528 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
25529 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 25530 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25531 fi
25532 ;;
25533esac
25534
25535WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25536WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25537
25538WXCONFIG_LIBS="-l${WX_LIBRARY}"
25539WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25540
25541if test "$wxUSE_OPENGL" = "yes"; then
25542 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25543 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25544fi
25545
8284b0c5
MB
25546
25547
21d1c967
GD
25548if test "$wxUSE_SHARED" = "yes"; then
25549 case "${host}" in
25550 *-pc-os2_emx | *-pc-os2-emx | \
25551 *-pc-msdosdjgpp )
25552 wxUSE_SHARED=no
e6cc62c6
VS
25553 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25554echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25555 ;;
25556 esac
25557fi
25558
fe0895cf 25559SHARED=0
2b5f62a0 25560if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25561 SHARED=1
2b5f62a0 25562
e6cc62c6 25563
2b5f62a0
VZ
25564 found_versioning=no
25565
e6cc62c6 25566
2b5f62a0 25567 if test $found_versioning = no ; then
e6cc62c6
VS
25568 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25569echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25570if test "${wx_cv_version_script+set}" = set; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25572else
e6cc62c6 25573
2b5f62a0
VZ
25574 echo "VER_1 { *; };" >conftest.sym
25575 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25576
2b5f62a0
VZ
25577 if { ac_try='
25578 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25579 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25585 if test -s conftest.stderr ; then
25586 wx_cv_version_script=no
25587 else
25588 wx_cv_version_script=yes
25589 fi
25590 else
25591 wx_cv_version_script=no
25592 fi
25593 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25594
e6cc62c6
VS
25595fi
25596echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25597echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25598 if test $wx_cv_version_script = yes ; then
e6cc62c6 25599 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25600 fi
25601 fi
21d1c967 25602
21d1c967 25603
21d1c967 25604 case "${host}" in
fe0895cf 25605 *-*-linux* | *-*-gnu* )
e6cc62c6 25606 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25607 ;;
21d1c967
GD
25608
25609 *-*-solaris2* )
25610 if test "$GCC" = yes ; then
25611 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25612
25613 saveLdflags="$LDFLAGS"
25614 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25615 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25616echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25617 cat >conftest.$ac_ext <<_ACEOF
09d3439c 25618#line $LINENO "configure"
e6cc62c6
VS
25619/* confdefs.h. */
25620_ACEOF
25621cat confdefs.h >>conftest.$ac_ext
25622cat >>conftest.$ac_ext <<_ACEOF
25623/* end confdefs.h. */
25624
25625int
25626main ()
25627{
fe0895cf 25628
e6cc62c6
VS
25629 ;
25630 return 0;
25631}
25632_ACEOF
25633rm -f conftest.$ac_objext conftest$ac_exeext
25634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 25635 (eval $ac_link) 2>&5
e6cc62c6
VS
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } &&
09d3439c 25639 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; }; then
25645
25646 echo "$as_me:$LINENO: result: yes" >&5
25647echo "${ECHO_T}yes" >&6
25648 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25649
25650else
25651 echo "$as_me: failed program was:" >&5
25652sed 's/^/| /' conftest.$ac_ext >&5
25653
25654
25655 echo "$as_me:$LINENO: result: no" >&5
25656echo "${ECHO_T}no" >&6
25657 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25658echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25659 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 25660 cat >conftest.$ac_ext <<_ACEOF
09d3439c 25661#line $LINENO "configure"
e6cc62c6
VS
25662/* confdefs.h. */
25663_ACEOF
25664cat confdefs.h >>conftest.$ac_ext
25665cat >>conftest.$ac_ext <<_ACEOF
25666/* end confdefs.h. */
25667
25668int
25669main ()
25670{
25671
25672 ;
25673 return 0;
25674}
25675_ACEOF
25676rm -f conftest.$ac_objext conftest$ac_exeext
25677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 25678 (eval $ac_link) 2>&5
e6cc62c6
VS
25679 ac_status=$?
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } &&
09d3439c 25682 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); }; }; then
25688
25689 echo "$as_me:$LINENO: result: yes" >&5
25690echo "${ECHO_T}yes" >&6
25691 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25692else
25693 echo "$as_me: failed program was:" >&5
25694sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25695
fe0895cf 25696
e6cc62c6
VS
25697 echo "$as_me:$LINENO: result: no" >&5
25698echo "${ECHO_T}no" >&6
25699
fe0895cf 25700fi
09d3439c 25701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25702
25703fi
09d3439c 25704rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25705 LDFLAGS="$saveLdflags"
21d1c967
GD
25706 else
25707 SHARED_LD="${CXX} -G -o"
25708 PIC_FLAG="-KPIC"
e6cc62c6 25709 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25710 fi
25711 ;;
0f1bc9c2
VS
25712
25713 powerpc-*-darwin* )
ef0add05
VS
25714 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25715 cat <<EOF >change-install-names
25716#!/bin/sh
25717libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25718inst_cmd="install_name_tool "
25719for i in \${libnames} ; do
25720 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25721done
25722\${inst_cmd} \${3}
25723EOF
25724 chmod +x change-install-names
0f1bc9c2
VS
25725 ;;
25726
21d1c967
GD
25727 esac
25728
25729 if test "x$WX_TARGET_LIBRARY" = "x"; then
25730 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25731 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25732 fi
25733
25734 WX_TARGET_LIBRARY_TYPE="so"
25735 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25736fi
10f2d63a 25737
21d1c967
GD
25738if test "$wxUSE_SHARED" = "no"; then
25739
25740 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25741 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25742 fi
25743
ac0c4cc3 25744 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25745 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25746 fi
25747
25748 if test "$wxUSE_OPENGL" = "yes"; then
25749 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25750 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25751 else
25752 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25753 fi
25754
25755 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25756 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25757
25758 WX_TARGET_LIBRARY_TYPE="a"
25759 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25760
25761 STATIC_FLAG="yes"
25762else
25763 STATIC_FLAG="no"
90dd450c 25764fi
1e487827 25765
09d3439c 25766if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 25767 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25768 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25769 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 25770
21d1c967
GD
25771 # Extract the first word of "Rez", so it can be a program name with args.
25772set dummy Rez; ac_word=$2
e6cc62c6
VS
25773echo "$as_me:$LINENO: checking for $ac_word" >&5
25774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25775if test "${ac_cv_prog_RESCOMP+set}" = set; then
25776 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25777else
21d1c967
GD
25778 if test -n "$RESCOMP"; then
25779 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25780else
e6cc62c6
VS
25781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25782for as_dir in $PATH
25783do
25784 IFS=$as_save_IFS
25785 test -z "$as_dir" && as_dir=.
25786 for ac_exec_ext in '' $ac_executable_extensions; do
25787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25788 ac_cv_prog_RESCOMP="Rez"
25789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25790 break 2
25791 fi
25792done
25793done
25794
21d1c967 25795 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25796fi
b93d0d08 25797fi
e6cc62c6 25798RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25799if test -n "$RESCOMP"; then
e6cc62c6
VS
25800 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25801echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25802else
e6cc62c6
VS
25803 echo "$as_me:$LINENO: result: no" >&5
25804echo "${ECHO_T}no" >&6
90dd450c 25805fi
b93d0d08 25806
21d1c967
GD
25807 # Extract the first word of "DeRez", so it can be a program name with args.
25808set dummy DeRez; ac_word=$2
e6cc62c6
VS
25809echo "$as_me:$LINENO: checking for $ac_word" >&5
25810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25811if test "${ac_cv_prog_DEREZ+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25813else
21d1c967
GD
25814 if test -n "$DEREZ"; then
25815 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25816else
e6cc62c6
VS
25817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25818for as_dir in $PATH
25819do
25820 IFS=$as_save_IFS
25821 test -z "$as_dir" && as_dir=.
25822 for ac_exec_ext in '' $ac_executable_extensions; do
25823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25824 ac_cv_prog_DEREZ="DeRez"
25825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25826 break 2
25827 fi
25828done
25829done
25830
21d1c967 25831 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25832fi
90dd450c 25833fi
e6cc62c6 25834DEREZ=$ac_cv_prog_DEREZ
21d1c967 25835if test -n "$DEREZ"; then
e6cc62c6
VS
25836 echo "$as_me:$LINENO: result: $DEREZ" >&5
25837echo "${ECHO_T}$DEREZ" >&6
90dd450c 25838else
e6cc62c6
VS
25839 echo "$as_me:$LINENO: result: no" >&5
25840echo "${ECHO_T}no" >&6
3a922bb4 25841fi
698dcdb6 25842
36825681
GD
25843 # Extract the first word of "SetFile", so it can be a program name with args.
25844set dummy SetFile; ac_word=$2
e6cc62c6
VS
25845echo "$as_me:$LINENO: checking for $ac_word" >&5
25846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25847if test "${ac_cv_prog_SETFILE+set}" = set; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25849else
25850 if test -n "$SETFILE"; then
25851 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25852else
e6cc62c6
VS
25853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25854for as_dir in $PATH
25855do
25856 IFS=$as_save_IFS
25857 test -z "$as_dir" && as_dir=.
25858 for ac_exec_ext in '' $ac_executable_extensions; do
25859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25860 ac_cv_prog_SETFILE="SetFile"
25861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25862 break 2
25863 fi
25864done
25865done
25866
36825681
GD
25867 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25868fi
25869fi
e6cc62c6 25870SETFILE=$ac_cv_prog_SETFILE
36825681 25871if test -n "$SETFILE"; then
e6cc62c6
VS
25872 echo "$as_me:$LINENO: result: $SETFILE" >&5
25873echo "${ECHO_T}$SETFILE" >&6
36825681 25874else
e6cc62c6
VS
25875 echo "$as_me:$LINENO: result: no" >&5
25876echo "${ECHO_T}no" >&6
36825681
GD
25877fi
25878
e6cc62c6 25879
09d3439c 25880 MACSETFILE="\$(SETFILE)"
64440d77 25881
09d3439c
VZ
25882 if test "$wxUSE_MAC" = 1; then
25883 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 25884
09d3439c
VZ
25885 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25886 else
25887 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25888 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25889 fi
64440d77 25890else
09d3439c
VZ
25891 MACSETFILE="@#"
25892 MACRESWXCONFIG="#"
64440d77 25893
09d3439c 25894 if test "$wxUSE_PM" = 1; then
36825681 25895 MACRESCOMP="emxbind -ep"
09d3439c
VZ
25896 else
25897 MACRESCOMP="@#"
90dd450c 25898 fi
4f14bcd8 25899fi
10f2d63a 25900
8284b0c5 25901
e6cc62c6
VS
25902echo "$as_me:$LINENO: checking for mode_t" >&5
25903echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25904if test "${ac_cv_type_mode_t+set}" = set; then
25905 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25906else
e6cc62c6 25907 cat >conftest.$ac_ext <<_ACEOF
09d3439c 25908#line $LINENO "configure"
e6cc62c6
VS
25909/* confdefs.h. */
25910_ACEOF
25911cat confdefs.h >>conftest.$ac_ext
25912cat >>conftest.$ac_ext <<_ACEOF
25913/* end confdefs.h. */
25914$ac_includes_default
25915int
25916main ()
25917{
25918if ((mode_t *) 0)
25919 return 0;
25920if (sizeof (mode_t))
25921 return 0;
25922 ;
25923 return 0;
25924}
25925_ACEOF
25926rm -f conftest.$ac_objext
25927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 25928 (eval $ac_compile) 2>&5
e6cc62c6
VS
25929 ac_status=$?
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
09d3439c 25932 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; }; then
25938 ac_cv_type_mode_t=yes
a0b9e27f 25939else
e6cc62c6
VS
25940 echo "$as_me: failed program was:" >&5
25941sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25942
e6cc62c6 25943ac_cv_type_mode_t=no
a0b9e27f 25944fi
09d3439c 25945rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25946fi
e6cc62c6
VS
25947echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25948echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25949if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25950 :
25951else
a0b9e27f 25952
e6cc62c6
VS
25953cat >>confdefs.h <<_ACEOF
25954#define mode_t int
25955_ACEOF
8284b0c5
MB
25956
25957fi
25958
e6cc62c6
VS
25959echo "$as_me:$LINENO: checking for off_t" >&5
25960echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25961if test "${ac_cv_type_off_t+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25963else
e6cc62c6 25964 cat >conftest.$ac_ext <<_ACEOF
09d3439c 25965#line $LINENO "configure"
e6cc62c6
VS
25966/* confdefs.h. */
25967_ACEOF
25968cat confdefs.h >>conftest.$ac_ext
25969cat >>conftest.$ac_ext <<_ACEOF
25970/* end confdefs.h. */
25971$ac_includes_default
25972int
25973main ()
25974{
25975if ((off_t *) 0)
25976 return 0;
25977if (sizeof (off_t))
25978 return 0;
25979 ;
25980 return 0;
25981}
25982_ACEOF
25983rm -f conftest.$ac_objext
25984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 25985 (eval $ac_compile) 2>&5
e6cc62c6
VS
25986 ac_status=$?
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } &&
09d3439c 25989 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991 (eval $ac_try) 2>&5
25992 ac_status=$?
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; }; then
25995 ac_cv_type_off_t=yes
5c6fa7d2 25996else
e6cc62c6
VS
25997 echo "$as_me: failed program was:" >&5
25998sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25999
e6cc62c6 26000ac_cv_type_off_t=no
8284b0c5 26001fi
09d3439c 26002rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26003fi
e6cc62c6
VS
26004echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26005echo "${ECHO_T}$ac_cv_type_off_t" >&6
26006if test $ac_cv_type_off_t = yes; then
26007 :
247f5006
VZ
26008else
26009
e6cc62c6 26010cat >>confdefs.h <<_ACEOF
90dd450c 26011#define off_t long
e6cc62c6 26012_ACEOF
10f2d63a 26013
90dd450c 26014fi
10f2d63a 26015
e6cc62c6
VS
26016echo "$as_me:$LINENO: checking for pid_t" >&5
26017echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26018if test "${ac_cv_type_pid_t+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26020else
e6cc62c6 26021 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26022#line $LINENO "configure"
e6cc62c6
VS
26023/* confdefs.h. */
26024_ACEOF
26025cat confdefs.h >>conftest.$ac_ext
26026cat >>conftest.$ac_ext <<_ACEOF
26027/* end confdefs.h. */
26028$ac_includes_default
26029int
26030main ()
26031{
26032if ((pid_t *) 0)
26033 return 0;
26034if (sizeof (pid_t))
26035 return 0;
26036 ;
26037 return 0;
26038}
26039_ACEOF
26040rm -f conftest.$ac_objext
26041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 26042 (eval $ac_compile) 2>&5
e6cc62c6
VS
26043 ac_status=$?
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } &&
09d3439c 26046 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26049 ac_status=$?
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
90dd450c 26052 ac_cv_type_pid_t=yes
698dcdb6 26053else
e6cc62c6
VS
26054 echo "$as_me: failed program was:" >&5
26055sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26056
e6cc62c6
VS
26057ac_cv_type_pid_t=no
26058fi
09d3439c 26059rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26060fi
e6cc62c6
VS
26061echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26062echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26063if test $ac_cv_type_pid_t = yes; then
26064 :
26065else
26066
26067cat >>confdefs.h <<_ACEOF
90dd450c 26068#define pid_t int
e6cc62c6 26069_ACEOF
10f2d63a 26070
7b4a847f
RR
26071fi
26072
e6cc62c6
VS
26073echo "$as_me:$LINENO: checking for size_t" >&5
26074echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26075if test "${ac_cv_type_size_t+set}" = set; then
26076 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 26077else
e6cc62c6 26078 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26079#line $LINENO "configure"
e6cc62c6
VS
26080/* confdefs.h. */
26081_ACEOF
26082cat confdefs.h >>conftest.$ac_ext
26083cat >>conftest.$ac_ext <<_ACEOF
26084/* end confdefs.h. */
26085$ac_includes_default
26086int
26087main ()
26088{
26089if ((size_t *) 0)
26090 return 0;
26091if (sizeof (size_t))
26092 return 0;
26093 ;
26094 return 0;
26095}
26096_ACEOF
26097rm -f conftest.$ac_objext
26098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 26099 (eval $ac_compile) 2>&5
e6cc62c6
VS
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } &&
09d3439c 26103 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
90dd450c 26109 ac_cv_type_size_t=yes
18dbb1f6 26110else
e6cc62c6
VS
26111 echo "$as_me: failed program was:" >&5
26112sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26113
e6cc62c6 26114ac_cv_type_size_t=no
a0b9e27f 26115fi
09d3439c 26116rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26117fi
26118echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26119echo "${ECHO_T}$ac_cv_type_size_t" >&6
26120if test $ac_cv_type_size_t = yes; then
26121 :
26122else
26123
26124cat >>confdefs.h <<_ACEOF
90dd450c 26125#define size_t unsigned
e6cc62c6 26126_ACEOF
90dd450c
VZ
26127
26128fi
26129
e6cc62c6
VS
26130echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26131echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26132if test "${ac_cv_type_uid_t+set}" = set; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 26134else
e6cc62c6 26135 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26136#line $LINENO "configure"
e6cc62c6
VS
26137/* confdefs.h. */
26138_ACEOF
26139cat confdefs.h >>conftest.$ac_ext
26140cat >>conftest.$ac_ext <<_ACEOF
26141/* end confdefs.h. */
90dd450c 26142#include <sys/types.h>
e6cc62c6
VS
26143
26144_ACEOF
90dd450c 26145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 26146 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 26147 ac_cv_type_uid_t=yes
b3e8d00a 26148else
90dd450c 26149 ac_cv_type_uid_t=no
b3e8d00a 26150fi
90dd450c 26151rm -f conftest*
b3e8d00a 26152
4f14bcd8 26153fi
e6cc62c6
VS
26154echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26155echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26156if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26157
26158cat >>confdefs.h <<\_ACEOF
90dd450c 26159#define uid_t int
e6cc62c6 26160_ACEOF
247f5006 26161
e6cc62c6
VS
26162
26163cat >>confdefs.h <<\_ACEOF
90dd450c 26164#define gid_t int
e6cc62c6 26165_ACEOF
4f14bcd8 26166
b3e8d00a 26167fi
b3e8d00a 26168
8284b0c5
MB
26169
26170
e6cc62c6
VS
26171
26172ac_ext=cc
4f14bcd8 26173ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26177
26178echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26179echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26180if test "${wx_cv_size_t_is_uint+set}" = set; then
26181 echo $ECHO_N "(cached) $ECHO_C" >&6
26182else
26183
26184 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26185#line $LINENO "configure"
e6cc62c6
VS
26186/* confdefs.h. */
26187_ACEOF
26188cat confdefs.h >>conftest.$ac_ext
26189cat >>conftest.$ac_ext <<_ACEOF
26190/* end confdefs.h. */
90dd450c 26191#include <stddef.h>
e6cc62c6
VS
26192int
26193main ()
26194{
90dd450c
VZ
26195
26196 return 0; }
26197
26198 struct Foo { void foo(size_t); void foo(unsigned int); };
26199
26200 int bar() {
e6cc62c6
VS
26201
26202 ;
26203 return 0;
26204}
26205_ACEOF
26206rm -f conftest.$ac_objext
26207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 26208 (eval $ac_compile) 2>&5
e6cc62c6
VS
26209 ac_status=$?
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); } &&
09d3439c 26212 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214 (eval $ac_try) 2>&5
26215 ac_status=$?
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); }; }; then
90dd450c 26218 wx_cv_size_t_is_uint=no
698dcdb6 26219else
e6cc62c6
VS
26220 echo "$as_me: failed program was:" >&5
26221sed 's/^/| /' conftest.$ac_ext >&5
26222
26223wx_cv_size_t_is_uint=yes
8284b0c5 26224
247f5006 26225fi
09d3439c 26226rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 26227
a0b9e27f 26228
e6cc62c6
VS
26229fi
26230echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26231echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26232
90dd450c 26233if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26234 cat >>confdefs.h <<\_ACEOF
90dd450c 26235#define wxSIZE_T_IS_UINT 1
e6cc62c6 26236_ACEOF
698dcdb6 26237
90dd450c 26238else
e6cc62c6
VS
26239 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26240echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26241if test "${wx_cv_size_t_is_ulong+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26243else
e6cc62c6 26244 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26245#line $LINENO "configure"
e6cc62c6
VS
26246/* confdefs.h. */
26247_ACEOF
26248cat confdefs.h >>conftest.$ac_ext
26249cat >>conftest.$ac_ext <<_ACEOF
26250/* end confdefs.h. */
90dd450c 26251#include <stddef.h>
e6cc62c6
VS
26252int
26253main ()
26254{
90dd450c
VZ
26255
26256 return 0; }
26257
26258 struct Foo { void foo(size_t); void foo(unsigned long); };
26259
26260 int bar() {
e6cc62c6
VS
26261
26262 ;
26263 return 0;
26264}
26265_ACEOF
26266rm -f conftest.$ac_objext
26267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 26268 (eval $ac_compile) 2>&5
e6cc62c6
VS
26269 ac_status=$?
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } &&
09d3439c 26272 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274 (eval $ac_try) 2>&5
26275 ac_status=$?
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); }; }; then
90dd450c 26278 wx_cv_size_t_is_ulong=no
698dcdb6 26279else
e6cc62c6
VS
26280 echo "$as_me: failed program was:" >&5
26281sed 's/^/| /' conftest.$ac_ext >&5
26282
26283wx_cv_size_t_is_ulong=yes
26284
247f5006 26285fi
09d3439c 26286rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26287
e6cc62c6
VS
26288fi
26289echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26290echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26291
90dd450c 26292 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26293 cat >>confdefs.h <<\_ACEOF
90dd450c 26294#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26295_ACEOF
4f14bcd8
GD
26296
26297 fi
90dd450c 26298fi
1e487827 26299
90dd450c 26300ac_ext=c
4f14bcd8 26301ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26304ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26305
5c6fa7d2 26306
8284b0c5 26307
e6cc62c6
VS
26308echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26309echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26310if test "${wx_cv_struct_pw_gecos+set}" = set; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26312else
e6cc62c6
VS
26313
26314 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26315#line $LINENO "configure"
e6cc62c6
VS
26316/* confdefs.h. */
26317_ACEOF
26318cat confdefs.h >>conftest.$ac_ext
26319cat >>conftest.$ac_ext <<_ACEOF
26320/* end confdefs.h. */
90dd450c 26321#include <pwd.h>
e6cc62c6
VS
26322int
26323main ()
26324{
f6bcfd97 26325
90dd450c
VZ
26326 char *p;
26327 struct passwd *pw;
26328 p = pw->pw_gecos;
e6cc62c6
VS
26329
26330 ;
26331 return 0;
26332}
26333_ACEOF
26334rm -f conftest.$ac_objext
26335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 26336 (eval $ac_compile) 2>&5
e6cc62c6
VS
26337 ac_status=$?
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } &&
09d3439c 26340 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26342 (eval $ac_try) 2>&5
26343 ac_status=$?
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); }; }; then
26346
90dd450c 26347 wx_cv_struct_pw_gecos=yes
e6cc62c6 26348
10f2d63a 26349else
e6cc62c6
VS
26350 echo "$as_me: failed program was:" >&5
26351sed 's/^/| /' conftest.$ac_ext >&5
26352
26353
90dd450c 26354 wx_cv_struct_pw_gecos=no
e6cc62c6 26355
247f5006
VZ
26356
26357fi
09d3439c 26358rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26359
e6cc62c6
VS
26360
26361fi
26362echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26363echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26364
90dd450c 26365if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26366 cat >>confdefs.h <<\_ACEOF
90dd450c 26367#define HAVE_PW_GECOS 1
e6cc62c6 26368_ACEOF
c521c494 26369
90dd450c 26370fi
4f14bcd8 26371
8284b0c5 26372
d29b553b 26373if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26374 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26375#define wxUSE_WCHAR_T 1
e6cc62c6 26376_ACEOF
d74f4b5a 26377
8284b0c5 26378
d74f4b5a
VZ
26379 WCSLEN_FOUND=0
26380 WCHAR_LINK=
e6cc62c6
VS
26381
26382for ac_func in wcslen
7a30264c 26383do
e6cc62c6
VS
26384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26385echo "$as_me:$LINENO: checking for $ac_func" >&5
26386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26387if eval "test \"\${$as_ac_var+set}\" = set"; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26389else
26390 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26391#line $LINENO "configure"
e6cc62c6
VS
26392/* confdefs.h. */
26393_ACEOF
26394cat confdefs.h >>conftest.$ac_ext
26395cat >>conftest.$ac_ext <<_ACEOF
26396/* end confdefs.h. */
7a30264c 26397/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26398 which can conflict with char $ac_func (); below.
26399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26400 <limits.h> exists even on freestanding compilers. */
26401#ifdef __STDC__
26402# include <limits.h>
26403#else
26404# include <assert.h>
26405#endif
4f14bcd8 26406/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26407#ifdef __cplusplus
26408extern "C"
26409{
26410#endif
4f14bcd8 26411/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26412 builtin and then its argument prototype would still apply. */
26413char $ac_func ();
7a30264c
VZ
26414/* The GNU C library defines this for functions which it implements
26415 to always fail with ENOSYS. Some functions are actually named
26416 something starting with __ and the normal name is an alias. */
26417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26418choke me
26419#else
e6cc62c6
VS
26420char (*f) () = $ac_func;
26421#endif
26422#ifdef __cplusplus
26423}
7a30264c
VZ
26424#endif
26425
e6cc62c6
VS
26426int
26427main ()
26428{
26429return f != $ac_func;
26430 ;
26431 return 0;
26432}
26433_ACEOF
26434rm -f conftest.$ac_objext conftest$ac_exeext
26435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 26436 (eval $ac_link) 2>&5
e6cc62c6
VS
26437 ac_status=$?
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } &&
09d3439c 26440 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); }; }; then
26446 eval "$as_ac_var=yes"
26447else
26448 echo "$as_me: failed program was:" >&5
26449sed 's/^/| /' conftest.$ac_ext >&5
26450
26451eval "$as_ac_var=no"
26452fi
09d3439c 26453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26454fi
26455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26457if test `eval echo '${'$as_ac_var'}'` = yes; then
26458 cat >>confdefs.h <<_ACEOF
26459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26460_ACEOF
d74f4b5a 26461 WCSLEN_FOUND=1
7a30264c
VZ
26462fi
26463done
9d8deca0 26464
8284b0c5 26465
d74f4b5a 26466 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26467 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26468 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26469echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26470if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26471 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26472else
e6cc62c6 26473 ac_check_lib_save_LIBS=$LIBS
7a30264c 26474LIBS="-lmsvcrt $LIBS"
e6cc62c6 26475cat >conftest.$ac_ext <<_ACEOF
09d3439c 26476#line $LINENO "configure"
e6cc62c6
VS
26477/* confdefs.h. */
26478_ACEOF
26479cat confdefs.h >>conftest.$ac_ext
26480cat >>conftest.$ac_ext <<_ACEOF
26481/* end confdefs.h. */
26482
4f14bcd8 26483/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26484#ifdef __cplusplus
26485extern "C"
26486#endif
4f14bcd8 26487/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26488 builtin and then its argument prototype would still apply. */
26489char wcslen ();
26490int
26491main ()
26492{
26493wcslen ();
26494 ;
26495 return 0;
26496}
26497_ACEOF
26498rm -f conftest.$ac_objext conftest$ac_exeext
26499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 26500 (eval $ac_link) 2>&5
e6cc62c6
VS
26501 ac_status=$?
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); } &&
09d3439c 26504 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506 (eval $ac_try) 2>&5
26507 ac_status=$?
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; }; then
26510 ac_cv_lib_msvcrt_wcslen=yes
26511else
26512 echo "$as_me: failed program was:" >&5
26513sed 's/^/| /' conftest.$ac_ext >&5
26514
26515ac_cv_lib_msvcrt_wcslen=no
26516fi
09d3439c 26517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26518LIBS=$ac_check_lib_save_LIBS
26519fi
26520echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26521echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26522if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26523 WCHAR_OK=1
d29b553b 26524fi
698dcdb6 26525
7a30264c 26526 else
e6cc62c6
VS
26527 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26528echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26529if test "${ac_cv_lib_w_wcslen+set}" = set; then
26530 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26531else
e6cc62c6 26532 ac_check_lib_save_LIBS=$LIBS
7a30264c 26533LIBS="-lw $LIBS"
e6cc62c6 26534cat >conftest.$ac_ext <<_ACEOF
09d3439c 26535#line $LINENO "configure"
e6cc62c6
VS
26536/* confdefs.h. */
26537_ACEOF
26538cat confdefs.h >>conftest.$ac_ext
26539cat >>conftest.$ac_ext <<_ACEOF
26540/* end confdefs.h. */
26541
4f14bcd8 26542/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26543#ifdef __cplusplus
26544extern "C"
26545#endif
4f14bcd8 26546/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26547 builtin and then its argument prototype would still apply. */
26548char wcslen ();
26549int
26550main ()
26551{
26552wcslen ();
26553 ;
26554 return 0;
26555}
26556_ACEOF
26557rm -f conftest.$ac_objext conftest$ac_exeext
26558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 26559 (eval $ac_link) 2>&5
e6cc62c6
VS
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } &&
09d3439c 26563 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565 (eval $ac_try) 2>&5
26566 ac_status=$?
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); }; }; then
26569 ac_cv_lib_w_wcslen=yes
26570else
26571 echo "$as_me: failed program was:" >&5
26572sed 's/^/| /' conftest.$ac_ext >&5
26573
26574ac_cv_lib_w_wcslen=no
26575fi
09d3439c 26576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26577LIBS=$ac_check_lib_save_LIBS
26578fi
26579echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26580echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26581if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26582
7a30264c 26583 WCHAR_LINK=" -lw"
d74f4b5a 26584 WCSLEN_FOUND=1
e6cc62c6 26585
4f14bcd8 26586fi
10f2d63a 26587
7a30264c 26588 fi
d29b553b 26589 fi
95c8801c 26590
d74f4b5a 26591 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26592 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26593#define HAVE_WCSLEN 1
e6cc62c6 26594_ACEOF
10f2d63a 26595
d74f4b5a 26596 fi
52127426 26597
e6cc62c6
VS
26598
26599for ac_func in wcsrtombs
eb4efbdc 26600do
e6cc62c6
VS
26601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26602echo "$as_me:$LINENO: checking for $ac_func" >&5
26603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26604if eval "test \"\${$as_ac_var+set}\" = set"; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26606else
26607 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26608#line $LINENO "configure"
e6cc62c6
VS
26609/* confdefs.h. */
26610_ACEOF
26611cat confdefs.h >>conftest.$ac_ext
26612cat >>conftest.$ac_ext <<_ACEOF
26613/* end confdefs.h. */
eb4efbdc 26614/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26615 which can conflict with char $ac_func (); below.
26616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26617 <limits.h> exists even on freestanding compilers. */
26618#ifdef __STDC__
26619# include <limits.h>
26620#else
26621# include <assert.h>
26622#endif
eb4efbdc 26623/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26624#ifdef __cplusplus
26625extern "C"
26626{
26627#endif
4f14bcd8 26628/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26629 builtin and then its argument prototype would still apply. */
26630char $ac_func ();
10f2d63a
VZ
26631/* The GNU C library defines this for functions which it implements
26632 to always fail with ENOSYS. Some functions are actually named
26633 something starting with __ and the normal name is an alias. */
247f5006 26634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26635choke me
26636#else
e6cc62c6
VS
26637char (*f) () = $ac_func;
26638#endif
26639#ifdef __cplusplus
26640}
10f2d63a
VZ
26641#endif
26642
e6cc62c6
VS
26643int
26644main ()
26645{
26646return f != $ac_func;
26647 ;
26648 return 0;
26649}
26650_ACEOF
26651rm -f conftest.$ac_objext conftest$ac_exeext
26652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 26653 (eval $ac_link) 2>&5
e6cc62c6
VS
26654 ac_status=$?
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } &&
09d3439c 26657 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659 (eval $ac_try) 2>&5
26660 ac_status=$?
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); }; }; then
26663 eval "$as_ac_var=yes"
26664else
26665 echo "$as_me: failed program was:" >&5
26666sed 's/^/| /' conftest.$ac_ext >&5
26667
26668eval "$as_ac_var=no"
26669fi
09d3439c 26670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26671fi
26672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26674if test `eval echo '${'$as_ac_var'}'` = yes; then
26675 cat >>confdefs.h <<_ACEOF
26676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26677_ACEOF
270a909e 26678
4f14bcd8 26679fi
247f5006 26680done
1e487827 26681
af15babd 26682else
e6cc62c6
VS
26683 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26684echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26685fi
52127426 26686
8284b0c5 26687
e6cc62c6
VS
26688
26689ac_ext=cc
247f5006 26690ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26694
af15babd 26695
247f5006
VZ
26696
26697for ac_func in vsnprintf
26698do
e6cc62c6
VS
26699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26700echo "$as_me:$LINENO: checking for $ac_func" >&5
26701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26702if eval "test \"\${$as_ac_var+set}\" = set"; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704else
26705 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26706#line $LINENO "configure"
e6cc62c6
VS
26707/* confdefs.h. */
26708_ACEOF
26709cat confdefs.h >>conftest.$ac_ext
26710cat >>conftest.$ac_ext <<_ACEOF
26711/* end confdefs.h. */
247f5006 26712/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26713 which can conflict with char $ac_func (); below.
26714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26715 <limits.h> exists even on freestanding compilers. */
26716#ifdef __STDC__
26717# include <limits.h>
26718#else
26719# include <assert.h>
26720#endif
247f5006
VZ
26721/* Override any gcc2 internal prototype to avoid an error. */
26722#ifdef __cplusplus
26723extern "C"
e6cc62c6 26724{
247f5006
VZ
26725#endif
26726/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26727 builtin and then its argument prototype would still apply. */
26728char $ac_func ();
247f5006
VZ
26729/* The GNU C library defines this for functions which it implements
26730 to always fail with ENOSYS. Some functions are actually named
26731 something starting with __ and the normal name is an alias. */
26732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26733choke me
26734#else
e6cc62c6
VS
26735char (*f) () = $ac_func;
26736#endif
26737#ifdef __cplusplus
26738}
247f5006 26739#endif
af15babd 26740
e6cc62c6
VS
26741int
26742main ()
26743{
26744return f != $ac_func;
26745 ;
26746 return 0;
26747}
26748_ACEOF
26749rm -f conftest.$ac_objext conftest$ac_exeext
26750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 26751 (eval $ac_link) 2>&5
e6cc62c6
VS
26752 ac_status=$?
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); } &&
09d3439c 26755 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757 (eval $ac_try) 2>&5
26758 ac_status=$?
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; }; then
26761 eval "$as_ac_var=yes"
26762else
26763 echo "$as_me: failed program was:" >&5
26764sed 's/^/| /' conftest.$ac_ext >&5
26765
26766eval "$as_ac_var=no"
26767fi
09d3439c 26768rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26769fi
26770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26771echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26772if test `eval echo '${'$as_ac_var'}'` = yes; then
26773 cat >>confdefs.h <<_ACEOF
26774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26775_ACEOF
52127426 26776
5c6fa7d2 26777fi
247f5006 26778done
8284b0c5 26779
4f14bcd8 26780
8d90d2f2 26781if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26782 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26783echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26784if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26786else
e6cc62c6
VS
26787
26788 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26789#line $LINENO "configure"
e6cc62c6
VS
26790/* confdefs.h. */
26791_ACEOF
26792cat confdefs.h >>conftest.$ac_ext
26793cat >>conftest.$ac_ext <<_ACEOF
26794/* end confdefs.h. */
8d90d2f2
VZ
26795
26796 #include <stdio.h>
26797 #include <stdarg.h>
e6cc62c6
VS
26798
26799int
26800main ()
26801{
8d90d2f2
VZ
26802
26803 char *buf;
26804 va_list ap;
26805 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26806
26807 ;
26808 return 0;
26809}
26810_ACEOF
26811rm -f conftest.$ac_objext
26812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 26813 (eval $ac_compile) 2>&5
e6cc62c6
VS
26814 ac_status=$?
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } &&
09d3439c 26817 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26819 (eval $ac_try) 2>&5
26820 ac_status=$?
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); }; }; then
8d90d2f2
VZ
26823 wx_cv_func_vsnprintf_decl=yes
26824else
e6cc62c6
VS
26825 echo "$as_me: failed program was:" >&5
26826sed 's/^/| /' conftest.$ac_ext >&5
26827
26828wx_cv_func_vsnprintf_decl=no
26829
8d90d2f2 26830fi
09d3439c 26831rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 26832
8d90d2f2 26833
e6cc62c6
VS
26834fi
26835echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26836echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26837
26838 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26839 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26840#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26841_ACEOF
8d90d2f2
VZ
26842
26843 fi
26844fi
26845
247f5006 26846if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26847
26848
26849
26850for ac_func in fputwc wprintf vswprintf
d74f4b5a 26851do
e6cc62c6
VS
26852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26853echo "$as_me:$LINENO: checking for $ac_func" >&5
26854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26855if eval "test \"\${$as_ac_var+set}\" = set"; then
26856 echo $ECHO_N "(cached) $ECHO_C" >&6
26857else
26858 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26859#line $LINENO "configure"
e6cc62c6
VS
26860/* confdefs.h. */
26861_ACEOF
26862cat confdefs.h >>conftest.$ac_ext
26863cat >>conftest.$ac_ext <<_ACEOF
26864/* end confdefs.h. */
d74f4b5a 26865/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26866 which can conflict with char $ac_func (); below.
26867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26868 <limits.h> exists even on freestanding compilers. */
26869#ifdef __STDC__
26870# include <limits.h>
26871#else
26872# include <assert.h>
26873#endif
d74f4b5a 26874/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26875#ifdef __cplusplus
26876extern "C"
e6cc62c6 26877{
247f5006 26878#endif
d74f4b5a 26879/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26880 builtin and then its argument prototype would still apply. */
26881char $ac_func ();
d74f4b5a
VZ
26882/* The GNU C library defines this for functions which it implements
26883 to always fail with ENOSYS. Some functions are actually named
26884 something starting with __ and the normal name is an alias. */
26885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26886choke me
26887#else
e6cc62c6
VS
26888char (*f) () = $ac_func;
26889#endif
26890#ifdef __cplusplus
26891}
d74f4b5a
VZ
26892#endif
26893
e6cc62c6
VS
26894int
26895main ()
26896{
26897return f != $ac_func;
26898 ;
26899 return 0;
26900}
26901_ACEOF
26902rm -f conftest.$ac_objext conftest$ac_exeext
26903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 26904 (eval $ac_link) 2>&5
e6cc62c6
VS
26905 ac_status=$?
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } &&
09d3439c 26908 { ac_try='test -s conftest$ac_exeext'
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
26914 eval "$as_ac_var=yes"
26915else
26916 echo "$as_me: failed program was:" >&5
26917sed 's/^/| /' conftest.$ac_ext >&5
26918
26919eval "$as_ac_var=no"
26920fi
09d3439c 26921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26922fi
26923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26925if test `eval echo '${'$as_ac_var'}'` = yes; then
26926 cat >>confdefs.h <<_ACEOF
26927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26928_ACEOF
d74f4b5a 26929
d74f4b5a
VZ
26930fi
26931done
26932
8d90d2f2 26933
e6cc62c6
VS
26934 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26935echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
09d3439c 26937#line $LINENO "configure"
e6cc62c6
VS
26938/* confdefs.h. */
26939_ACEOF
26940cat confdefs.h >>conftest.$ac_ext
26941cat >>conftest.$ac_ext <<_ACEOF
26942/* end confdefs.h. */
79668cae 26943#include <wchar.h>
e6cc62c6
VS
26944int
26945main ()
26946{
79668cae 26947&_vsnwprintf;
e6cc62c6
VS
26948 ;
26949 return 0;
26950}
26951_ACEOF
26952rm -f conftest.$ac_objext
26953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 26954 (eval $ac_compile) 2>&5
e6cc62c6
VS
26955 ac_status=$?
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } &&
09d3439c 26958 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960 (eval $ac_try) 2>&5
26961 ac_status=$?
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; }; then
26964 echo "$as_me:$LINENO: result: yes" >&5
26965echo "${ECHO_T}yes" >&6
26966 cat >>confdefs.h <<\_ACEOF
79668cae 26967#define HAVE__VSNWPRINTF 1
e6cc62c6 26968_ACEOF
79668cae
MB
26969
26970else
e6cc62c6
VS
26971 echo "$as_me: failed program was:" >&5
26972sed 's/^/| /' conftest.$ac_ext >&5
26973
26974echo "$as_me:$LINENO: result: no" >&5
26975echo "${ECHO_T}no" >&6
79668cae 26976fi
09d3439c 26977rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26978fi
26979
247f5006
VZ
26980ac_ext=c
26981ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26984ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26985
26986
26987
26988
4f14bcd8 26989if test "$TOOLKIT" != "MSW"; then
af15babd 26990
8284b0c5
MB
26991
26992
e6cc62c6
VS
26993
26994ac_ext=cc
4f14bcd8 26995ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26999
52127426 27000
e6cc62c6
VS
27001
27002
27003# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
27004if test "${with_libiconv_prefix+set}" = set; then
27005 withval="$with_libiconv_prefix"
e6cc62c6 27006
b040e242
VS
27007 for dir in `echo "$withval" | tr : ' '`; do
27008 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27009 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27010 done
b040e242 27011
e6cc62c6 27012fi;
b040e242 27013
e6cc62c6
VS
27014 echo "$as_me:$LINENO: checking for iconv" >&5
27015echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27016if test "${am_cv_func_iconv+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27018else
e6cc62c6 27019
b040e242
VS
27020 am_cv_func_iconv="no, consider installing GNU libiconv"
27021 am_cv_lib_iconv=no
e6cc62c6 27022 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27023#line $LINENO "configure"
e6cc62c6
VS
27024/* confdefs.h. */
27025_ACEOF
27026cat confdefs.h >>conftest.$ac_ext
27027cat >>conftest.$ac_ext <<_ACEOF
27028/* end confdefs.h. */
b040e242 27029#include <stdlib.h>
4f14bcd8 27030#include <iconv.h>
e6cc62c6
VS
27031int
27032main ()
27033{
b040e242
VS
27034iconv_t cd = iconv_open("","");
27035 iconv(cd,NULL,NULL,NULL,NULL);
27036 iconv_close(cd);
e6cc62c6
VS
27037 ;
27038 return 0;
27039}
27040_ACEOF
27041rm -f conftest.$ac_objext conftest$ac_exeext
27042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 27043 (eval $ac_link) 2>&5
e6cc62c6
VS
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); } &&
09d3439c 27047 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; }; then
b040e242 27053 am_cv_func_iconv=yes
af15babd 27054else
e6cc62c6
VS
27055 echo "$as_me: failed program was:" >&5
27056sed 's/^/| /' conftest.$ac_ext >&5
27057
b040e242 27058fi
09d3439c 27059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27060 if test "$am_cv_func_iconv" != yes; then
27061 am_save_LIBS="$LIBS"
27062 LIBS="$LIBS -liconv"
e6cc62c6 27063 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27064#line $LINENO "configure"
e6cc62c6
VS
27065/* confdefs.h. */
27066_ACEOF
27067cat confdefs.h >>conftest.$ac_ext
27068cat >>conftest.$ac_ext <<_ACEOF
27069/* end confdefs.h. */
b040e242
VS
27070#include <stdlib.h>
27071#include <iconv.h>
e6cc62c6
VS
27072int
27073main ()
27074{
b040e242
VS
27075iconv_t cd = iconv_open("","");
27076 iconv(cd,NULL,NULL,NULL,NULL);
27077 iconv_close(cd);
e6cc62c6
VS
27078 ;
27079 return 0;
27080}
27081_ACEOF
27082rm -f conftest.$ac_objext conftest$ac_exeext
27083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 27084 (eval $ac_link) 2>&5
e6cc62c6
VS
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } &&
09d3439c 27088 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090 (eval $ac_try) 2>&5
27091 ac_status=$?
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); }; }; then
b040e242
VS
27094 am_cv_lib_iconv=yes
27095 am_cv_func_iconv=yes
27096else
e6cc62c6
VS
27097 echo "$as_me: failed program was:" >&5
27098sed 's/^/| /' conftest.$ac_ext >&5
27099
af15babd 27100fi
09d3439c 27101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27102 LIBS="$am_save_LIBS"
27103 fi
247f5006 27104
e6cc62c6
VS
27105fi
27106echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27107echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 27108 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
27109
27110cat >>confdefs.h <<\_ACEOF
b040e242 27111#define HAVE_ICONV 1
e6cc62c6 27112_ACEOF
b040e242 27113
e6cc62c6
VS
27114 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27115echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27116if test "${wx_cv_func_iconv_const+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 27118else
e6cc62c6 27119 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27120#line $LINENO "configure"
e6cc62c6
VS
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
b040e242
VS
27126
27127#include <stdlib.h>
27128#include <iconv.h>
27129extern
27130#ifdef __cplusplus
27131"C"
27132#endif
27133#if defined(__STDC__) || defined(__cplusplus)
27134size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27135#else
27136size_t iconv();
27137#endif
af15babd 27138
e6cc62c6
VS
27139int
27140main ()
27141{
27142
27143 ;
27144 return 0;
27145}
27146_ACEOF
27147rm -f conftest.$ac_objext
27148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 27149 (eval $ac_compile) 2>&5
e6cc62c6
VS
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } &&
09d3439c 27153 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
b7043674 27159 wx_cv_func_iconv_const="no"
b040e242 27160else
e6cc62c6
VS
27161 echo "$as_me: failed program was:" >&5
27162sed 's/^/| /' conftest.$ac_ext >&5
27163
27164wx_cv_func_iconv_const="yes"
27165
247f5006 27166fi
09d3439c 27167rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27168
e6cc62c6
VS
27169fi
27170echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27171echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27172
27173 iconv_const=
1c405bb5 27174 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27175 iconv_const="const"
27176 fi
27177
e6cc62c6
VS
27178
27179cat >>confdefs.h <<_ACEOF
f09359cf 27180#define ICONV_CONST $iconv_const
e6cc62c6 27181_ACEOF
b040e242
VS
27182
27183 fi
27184 LIBICONV=
27185 if test "$am_cv_lib_iconv" = yes; then
27186 LIBICONV="-liconv"
27187 fi
e6cc62c6 27188
b040e242
VS
27189
27190LIBS="$LIBICONV $LIBS"
4f14bcd8 27191ac_ext=c
4f14bcd8 27192ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27195ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27196
5c6fa7d2 27197
8284b0c5 27198if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27199
27200for ac_func in sigaction
af15babd 27201do
e6cc62c6
VS
27202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27203echo "$as_me:$LINENO: checking for $ac_func" >&5
27204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27205if eval "test \"\${$as_ac_var+set}\" = set"; then
27206 echo $ECHO_N "(cached) $ECHO_C" >&6
27207else
27208 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27209#line $LINENO "configure"
e6cc62c6
VS
27210/* confdefs.h. */
27211_ACEOF
27212cat confdefs.h >>conftest.$ac_ext
27213cat >>conftest.$ac_ext <<_ACEOF
27214/* end confdefs.h. */
af15babd 27215/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27216 which can conflict with char $ac_func (); below.
27217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27218 <limits.h> exists even on freestanding compilers. */
27219#ifdef __STDC__
27220# include <limits.h>
27221#else
27222# include <assert.h>
27223#endif
af15babd 27224/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27225#ifdef __cplusplus
27226extern "C"
27227{
27228#endif
af15babd 27229/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27230 builtin and then its argument prototype would still apply. */
27231char $ac_func ();
af15babd
VZ
27232/* The GNU C library defines this for functions which it implements
27233 to always fail with ENOSYS. Some functions are actually named
27234 something starting with __ and the normal name is an alias. */
27235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27236choke me
27237#else
e6cc62c6
VS
27238char (*f) () = $ac_func;
27239#endif
27240#ifdef __cplusplus
27241}
af15babd
VZ
27242#endif
27243
e6cc62c6
VS
27244int
27245main ()
27246{
27247return f != $ac_func;
27248 ;
27249 return 0;
27250}
27251_ACEOF
27252rm -f conftest.$ac_objext conftest$ac_exeext
27253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 27254 (eval $ac_link) 2>&5
e6cc62c6
VS
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } &&
09d3439c 27258 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27261 ac_status=$?
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 eval "$as_ac_var=yes"
27265else
27266 echo "$as_me: failed program was:" >&5
27267sed 's/^/| /' conftest.$ac_ext >&5
27268
27269eval "$as_ac_var=no"
27270fi
09d3439c 27271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27272fi
27273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27275if test `eval echo '${'$as_ac_var'}'` = yes; then
27276 cat >>confdefs.h <<_ACEOF
27277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27278_ACEOF
7b4a847f 27279
4f14bcd8
GD
27280fi
27281done
27282
8284b0c5 27283
4f14bcd8 27284 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27285 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27286echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27287 wxUSE_ON_FATAL_EXCEPTION=no
27288 fi
27289
27290 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27291
27292
27293 ac_ext=cc
5c6fa7d2 27294ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27298
5c6fa7d2 27299
e6cc62c6
VS
27300 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27301echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27302if test "${wx_cv_type_sa_handler+set}" = set; then
27303 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27304else
e6cc62c6
VS
27305
27306 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27307#line $LINENO "configure"
e6cc62c6
VS
27308/* confdefs.h. */
27309_ACEOF
27310cat confdefs.h >>conftest.$ac_ext
27311cat >>conftest.$ac_ext <<_ACEOF
27312/* end confdefs.h. */
4f14bcd8 27313#include <signal.h>
e6cc62c6
VS
27314int
27315main ()
27316{
4f14bcd8
GD
27317
27318 extern void testSigHandler(int);
27319
27320 struct sigaction sa;
27321 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27322
27323 ;
27324 return 0;
27325}
27326_ACEOF
27327rm -f conftest.$ac_objext
27328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 27329 (eval $ac_compile) 2>&5
e6cc62c6
VS
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } &&
09d3439c 27333 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339
4f14bcd8 27340 wx_cv_type_sa_handler=int
e6cc62c6 27341
af15babd 27342else
e6cc62c6
VS
27343 echo "$as_me: failed program was:" >&5
27344sed 's/^/| /' conftest.$ac_ext >&5
27345
27346
4f14bcd8 27347 wx_cv_type_sa_handler=void
e6cc62c6 27348
247f5006 27349fi
09d3439c 27350rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27351
e6cc62c6
VS
27352fi
27353echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27354echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27355
27356 ac_ext=c
4f14bcd8 27357ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27360ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27361
8284b0c5 27362
e6cc62c6 27363 cat >>confdefs.h <<_ACEOF
4f14bcd8 27364#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27365_ACEOF
af15babd 27366
4f14bcd8
GD
27367 fi
27368fi
af15babd 27369
e6cc62c6
VS
27370
27371
a1d22ad7 27372for ac_func in mkstemp mktemp
af15babd 27373do
e6cc62c6
VS
27374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27375echo "$as_me:$LINENO: checking for $ac_func" >&5
27376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27377if eval "test \"\${$as_ac_var+set}\" = set"; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27379else
27380 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27381#line $LINENO "configure"
e6cc62c6
VS
27382/* confdefs.h. */
27383_ACEOF
27384cat confdefs.h >>conftest.$ac_ext
27385cat >>conftest.$ac_ext <<_ACEOF
27386/* end confdefs.h. */
af15babd 27387/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27388 which can conflict with char $ac_func (); below.
27389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27390 <limits.h> exists even on freestanding compilers. */
27391#ifdef __STDC__
27392# include <limits.h>
27393#else
27394# include <assert.h>
27395#endif
af15babd 27396/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27397#ifdef __cplusplus
27398extern "C"
27399{
27400#endif
af15babd 27401/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27402 builtin and then its argument prototype would still apply. */
27403char $ac_func ();
af15babd
VZ
27404/* The GNU C library defines this for functions which it implements
27405 to always fail with ENOSYS. Some functions are actually named
27406 something starting with __ and the normal name is an alias. */
27407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27408choke me
27409#else
e6cc62c6
VS
27410char (*f) () = $ac_func;
27411#endif
27412#ifdef __cplusplus
27413}
af15babd
VZ
27414#endif
27415
e6cc62c6
VS
27416int
27417main ()
27418{
27419return f != $ac_func;
27420 ;
27421 return 0;
27422}
27423_ACEOF
27424rm -f conftest.$ac_objext conftest$ac_exeext
27425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 27426 (eval $ac_link) 2>&5
e6cc62c6
VS
27427 ac_status=$?
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); } &&
09d3439c 27430 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27432 (eval $ac_try) 2>&5
27433 ac_status=$?
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); }; }; then
27436 eval "$as_ac_var=yes"
27437else
27438 echo "$as_me: failed program was:" >&5
27439sed 's/^/| /' conftest.$ac_ext >&5
27440
27441eval "$as_ac_var=no"
27442fi
09d3439c 27443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27444fi
27445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27447if test `eval echo '${'$as_ac_var'}'` = yes; then
27448 cat >>confdefs.h <<_ACEOF
27449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27450_ACEOF
ade35f11 27451 break
ade35f11
VZ
27452fi
27453done
27454
8284b0c5 27455
e6cc62c6
VS
27456echo "$as_me:$LINENO: checking for statfs" >&5
27457echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27458if test "${wx_cv_func_statfs+set}" = set; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27460else
e6cc62c6 27461 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27462#line $LINENO "configure"
e6cc62c6
VS
27463/* confdefs.h. */
27464_ACEOF
27465cat confdefs.h >>conftest.$ac_ext
27466cat >>conftest.$ac_ext <<_ACEOF
27467/* end confdefs.h. */
4f14bcd8
GD
27468
27469 #if defined(__BSD__)
27470 #include <sys/param.h>
27471 #include <sys/mount.h>
27472 #else
27473 #include <sys/vfs.h>
27474 #endif
e6cc62c6
VS
27475
27476int
27477main ()
27478{
4f14bcd8
GD
27479
27480 long l;
27481 struct statfs fs;
27482 statfs("/", &fs);
27483 l = fs.f_bsize;
27484 l += fs.f_blocks;
27485 l += fs.f_bavail;
e6cc62c6
VS
27486
27487 ;
27488 return 0;
27489}
27490_ACEOF
27491rm -f conftest.$ac_objext
27492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 27493 (eval $ac_compile) 2>&5
e6cc62c6
VS
27494 ac_status=$?
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); } &&
09d3439c 27497 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; }; then
27503
4f14bcd8 27504 wx_cv_func_statfs=yes
e6cc62c6 27505
4f14bcd8 27506else
e6cc62c6
VS
27507 echo "$as_me: failed program was:" >&5
27508sed 's/^/| /' conftest.$ac_ext >&5
27509
27510
4f14bcd8 27511 wx_cv_func_statfs=no
e6cc62c6 27512
8284b0c5 27513
247f5006 27514fi
09d3439c 27515rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27516
e6cc62c6
VS
27517fi
27518echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27519echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27520
27521if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27522 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27523 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27524#define HAVE_STATFS 1
e6cc62c6 27525_ACEOF
4f14bcd8
GD
27526
27527else
e6cc62c6
VS
27528 echo "$as_me:$LINENO: checking for statvfs" >&5
27529echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27530if test "${wx_cv_func_statvfs+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27532else
e6cc62c6 27533 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27534#line $LINENO "configure"
e6cc62c6
VS
27535/* confdefs.h. */
27536_ACEOF
27537cat confdefs.h >>conftest.$ac_ext
27538cat >>conftest.$ac_ext <<_ACEOF
27539/* end confdefs.h. */
af15babd 27540
54ab82b3
VZ
27541 #include <stddef.h>
27542 #include <sys/statvfs.h>
e6cc62c6
VS
27543
27544int
27545main ()
27546{
af15babd 27547
54ab82b3 27548 statvfs("/", NULL);
e6cc62c6
VS
27549
27550 ;
27551 return 0;
27552}
27553_ACEOF
27554rm -f conftest.$ac_objext
27555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 27556 (eval $ac_compile) 2>&5
e6cc62c6
VS
27557 ac_status=$?
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
09d3439c 27560 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562 (eval $ac_try) 2>&5
27563 ac_status=$?
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); }; }; then
54ab82b3 27566 wx_cv_func_statvfs=yes
af15babd 27567else
e6cc62c6
VS
27568 echo "$as_me: failed program was:" >&5
27569sed 's/^/| /' conftest.$ac_ext >&5
27570
27571wx_cv_func_statvfs=no
27572
247f5006 27573fi
09d3439c 27574rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27575
e6cc62c6
VS
27576fi
27577echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27578echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27579
4f14bcd8 27580 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27581
27582
27583 ac_ext=cc
54ab82b3 27584ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27588
27589
e6cc62c6
VS
27590 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27591echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27592if test "${wx_cv_type_statvfs_t+set}" = set; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27594else
e6cc62c6 27595 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27596#line $LINENO "configure"
e6cc62c6
VS
27597/* confdefs.h. */
27598_ACEOF
27599cat confdefs.h >>conftest.$ac_ext
27600cat >>conftest.$ac_ext <<_ACEOF
27601/* end confdefs.h. */
54ab82b3
VZ
27602
27603 #include <sys/statvfs.h>
e6cc62c6
VS
27604
27605int
27606main ()
27607{
54ab82b3
VZ
27608
27609 long l;
27610 statvfs_t fs;
27611 statvfs("/", &fs);
27612 l = fs.f_bsize;
27613 l += fs.f_blocks;
27614 l += fs.f_bavail;
e6cc62c6
VS
27615
27616 ;
27617 return 0;
27618}
27619_ACEOF
27620rm -f conftest.$ac_objext
27621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 27622 (eval $ac_compile) 2>&5
e6cc62c6
VS
27623 ac_status=$?
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
09d3439c 27626 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27629 ac_status=$?
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; }; then
54ab82b3
VZ
27632 wx_cv_type_statvfs_t=statvfs_t
27633else
e6cc62c6
VS
27634 echo "$as_me: failed program was:" >&5
27635sed 's/^/| /' conftest.$ac_ext >&5
27636
27637
27638 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27639#line $LINENO "configure"
e6cc62c6
VS
27640/* confdefs.h. */
27641_ACEOF
27642cat confdefs.h >>conftest.$ac_ext
27643cat >>conftest.$ac_ext <<_ACEOF
27644/* end confdefs.h. */
54ab82b3
VZ
27645
27646 #include <sys/statvfs.h>
e6cc62c6
VS
27647
27648int
27649main ()
27650{
54ab82b3
VZ
27651
27652 long l;
65d8ef1e 27653 struct statvfs fs;
54ab82b3
VZ
27654 statvfs("/", &fs);
27655 l = fs.f_bsize;
27656 l += fs.f_blocks;
27657 l += fs.f_bavail;
e6cc62c6
VS
27658
27659 ;
27660 return 0;
27661}
27662_ACEOF
27663rm -f conftest.$ac_objext
27664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 27665 (eval $ac_compile) 2>&5
e6cc62c6
VS
27666 ac_status=$?
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } &&
09d3439c 27669 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671 (eval $ac_try) 2>&5
27672 ac_status=$?
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; }; then
54ab82b3
VZ
27675 wx_cv_type_statvfs_t="struct statvfs"
27676else
e6cc62c6
VS
27677 echo "$as_me: failed program was:" >&5
27678sed 's/^/| /' conftest.$ac_ext >&5
27679
27680wx_cv_type_statvfs_t="unknown"
27681
54ab82b3 27682fi
09d3439c 27683rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27684
27685
54ab82b3 27686fi
09d3439c 27687rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27688
e6cc62c6
VS
27689fi
27690echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27691echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27692
27693 ac_ext=c
54ab82b3 27694ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27697ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27698
27699
27700 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27701 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27702#define HAVE_STATVFS 1
e6cc62c6 27703_ACEOF
af15babd 27704
54ab82b3 27705 fi
4f14bcd8 27706 else
54ab82b3 27707 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27708 fi
27709fi
af15babd 27710
54ab82b3 27711if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27712 cat >>confdefs.h <<_ACEOF
54ab82b3 27713#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27714_ACEOF
54ab82b3
VZ
27715
27716else
e6cc62c6
VS
27717 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27718echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27719fi
27720
4f14bcd8 27721if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27722
27723
27724for ac_func in fcntl flock
af15babd 27725do
e6cc62c6
VS
27726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27727echo "$as_me:$LINENO: checking for $ac_func" >&5
27728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27729if eval "test \"\${$as_ac_var+set}\" = set"; then
27730 echo $ECHO_N "(cached) $ECHO_C" >&6
27731else
27732 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27733#line $LINENO "configure"
e6cc62c6
VS
27734/* confdefs.h. */
27735_ACEOF
27736cat confdefs.h >>conftest.$ac_ext
27737cat >>conftest.$ac_ext <<_ACEOF
27738/* end confdefs.h. */
af15babd 27739/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27740 which can conflict with char $ac_func (); below.
27741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27742 <limits.h> exists even on freestanding compilers. */
27743#ifdef __STDC__
27744# include <limits.h>
27745#else
27746# include <assert.h>
27747#endif
af15babd 27748/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27749#ifdef __cplusplus
27750extern "C"
27751{
27752#endif
af15babd 27753/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27754 builtin and then its argument prototype would still apply. */
27755char $ac_func ();
af15babd
VZ
27756/* The GNU C library defines this for functions which it implements
27757 to always fail with ENOSYS. Some functions are actually named
27758 something starting with __ and the normal name is an alias. */
27759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27760choke me
27761#else
e6cc62c6
VS
27762char (*f) () = $ac_func;
27763#endif
27764#ifdef __cplusplus
27765}
af15babd
VZ
27766#endif
27767
e6cc62c6
VS
27768int
27769main ()
27770{
27771return f != $ac_func;
27772 ;
27773 return 0;
27774}
27775_ACEOF
27776rm -f conftest.$ac_objext conftest$ac_exeext
27777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 27778 (eval $ac_link) 2>&5
e6cc62c6
VS
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); } &&
09d3439c 27782 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
27788 eval "$as_ac_var=yes"
27789else
27790 echo "$as_me: failed program was:" >&5
27791sed 's/^/| /' conftest.$ac_ext >&5
27792
27793eval "$as_ac_var=no"
27794fi
09d3439c 27795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27796fi
27797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27799if test `eval echo '${'$as_ac_var'}'` = yes; then
27800 cat >>confdefs.h <<_ACEOF
27801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27802_ACEOF
4f14bcd8 27803 break
af15babd
VZ
27804fi
27805done
27806
8284b0c5 27807
4f14bcd8 27808 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27809 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27810echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27811 wxUSE_SNGLINST_CHECKER=no
27812 fi
27813fi
af15babd 27814
e6cc62c6 27815
4f14bcd8 27816for ac_func in timegm
af15babd 27817do
e6cc62c6
VS
27818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27819echo "$as_me:$LINENO: checking for $ac_func" >&5
27820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27821if eval "test \"\${$as_ac_var+set}\" = set"; then
27822 echo $ECHO_N "(cached) $ECHO_C" >&6
27823else
27824 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27825#line $LINENO "configure"
e6cc62c6
VS
27826/* confdefs.h. */
27827_ACEOF
27828cat confdefs.h >>conftest.$ac_ext
27829cat >>conftest.$ac_ext <<_ACEOF
27830/* end confdefs.h. */
af15babd 27831/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27832 which can conflict with char $ac_func (); below.
27833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27834 <limits.h> exists even on freestanding compilers. */
27835#ifdef __STDC__
27836# include <limits.h>
27837#else
27838# include <assert.h>
27839#endif
af15babd 27840/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27841#ifdef __cplusplus
27842extern "C"
27843{
27844#endif
af15babd 27845/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27846 builtin and then its argument prototype would still apply. */
27847char $ac_func ();
af15babd
VZ
27848/* The GNU C library defines this for functions which it implements
27849 to always fail with ENOSYS. Some functions are actually named
27850 something starting with __ and the normal name is an alias. */
247f5006
VZ
27851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27852choke me
27853#else
e6cc62c6
VS
27854char (*f) () = $ac_func;
27855#endif
27856#ifdef __cplusplus
27857}
247f5006
VZ
27858#endif
27859
e6cc62c6
VS
27860int
27861main ()
27862{
27863return f != $ac_func;
27864 ;
27865 return 0;
27866}
27867_ACEOF
27868rm -f conftest.$ac_objext conftest$ac_exeext
27869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 27870 (eval $ac_link) 2>&5
e6cc62c6
VS
27871 ac_status=$?
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); } &&
09d3439c 27874 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; }; then
27880 eval "$as_ac_var=yes"
27881else
27882 echo "$as_me: failed program was:" >&5
27883sed 's/^/| /' conftest.$ac_ext >&5
27884
27885eval "$as_ac_var=no"
27886fi
09d3439c 27887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27888fi
27889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27891if test `eval echo '${'$as_ac_var'}'` = yes; then
27892 cat >>confdefs.h <<_ACEOF
27893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27894_ACEOF
703e0a69 27895
af15babd
VZ
27896fi
27897done
27898
8284b0c5 27899
e6cc62c6
VS
27900
27901
4f14bcd8 27902for ac_func in putenv setenv
10f2d63a 27903do
e6cc62c6
VS
27904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27905echo "$as_me:$LINENO: checking for $ac_func" >&5
27906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27907if eval "test \"\${$as_ac_var+set}\" = set"; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27909else
27910 cat >conftest.$ac_ext <<_ACEOF
09d3439c 27911#line $LINENO "configure"
e6cc62c6
VS
27912/* confdefs.h. */
27913_ACEOF
27914cat confdefs.h >>conftest.$ac_ext
27915cat >>conftest.$ac_ext <<_ACEOF
27916/* end confdefs.h. */
af15babd 27917/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27918 which can conflict with char $ac_func (); below.
27919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27920 <limits.h> exists even on freestanding compilers. */
27921#ifdef __STDC__
27922# include <limits.h>
27923#else
27924# include <assert.h>
27925#endif
af15babd 27926/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27927#ifdef __cplusplus
27928extern "C"
27929{
27930#endif
af15babd 27931/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27932 builtin and then its argument prototype would still apply. */
27933char $ac_func ();
af15babd
VZ
27934/* The GNU C library defines this for functions which it implements
27935 to always fail with ENOSYS. Some functions are actually named
27936 something starting with __ and the normal name is an alias. */
27937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27938choke me
27939#else
e6cc62c6
VS
27940char (*f) () = $ac_func;
27941#endif
27942#ifdef __cplusplus
27943}
af15babd
VZ
27944#endif
27945
e6cc62c6
VS
27946int
27947main ()
27948{
27949return f != $ac_func;
27950 ;
27951 return 0;
27952}
27953_ACEOF
27954rm -f conftest.$ac_objext conftest$ac_exeext
27955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 27956 (eval $ac_link) 2>&5
e6cc62c6
VS
27957 ac_status=$?
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
09d3439c 27960 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27962 (eval $ac_try) 2>&5
27963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; }; then
27966 eval "$as_ac_var=yes"
27967else
27968 echo "$as_me: failed program was:" >&5
27969sed 's/^/| /' conftest.$ac_ext >&5
27970
27971eval "$as_ac_var=no"
27972fi
09d3439c 27973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27974fi
27975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27977if test `eval echo '${'$as_ac_var'}'` = yes; then
27978 cat >>confdefs.h <<_ACEOF
27979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27980_ACEOF
4f14bcd8 27981 break
af15babd 27982fi
af15babd
VZ
27983done
27984
8284b0c5 27985
4f14bcd8
GD
27986HAVE_SOME_SLEEP_FUNC=0
27987if test "$USE_BEOS" = 1; then
e6cc62c6 27988 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27989#define HAVE_SLEEP 1
e6cc62c6 27990_ACEOF
af15babd 27991
4f14bcd8 27992 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27993fi
27994
4f14bcd8 27995if test "$USE_DARWIN" = 1; then
e6cc62c6 27996 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27997#define HAVE_USLEEP 1
e6cc62c6 27998_ACEOF
10f2d63a 27999
4f14bcd8 28000 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28001fi
28002
4f14bcd8
GD
28003if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28004 POSIX4_LINK=
e6cc62c6
VS
28005
28006for ac_func in nanosleep
4f14bcd8 28007do
e6cc62c6
VS
28008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28009echo "$as_me:$LINENO: checking for $ac_func" >&5
28010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28011if eval "test \"\${$as_ac_var+set}\" = set"; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28013else
28014 cat >conftest.$ac_ext <<_ACEOF
09d3439c 28015#line $LINENO "configure"
e6cc62c6
VS
28016/* confdefs.h. */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h. */
4f14bcd8 28021/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28022 which can conflict with char $ac_func (); below.
28023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28024 <limits.h> exists even on freestanding compilers. */
28025#ifdef __STDC__
28026# include <limits.h>
28027#else
28028# include <assert.h>
28029#endif
10f2d63a 28030/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28031#ifdef __cplusplus
28032extern "C"
28033{
28034#endif
10f2d63a 28035/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28036 builtin and then its argument prototype would still apply. */
28037char $ac_func ();
4f14bcd8
GD
28038/* The GNU C library defines this for functions which it implements
28039 to always fail with ENOSYS. Some functions are actually named
28040 something starting with __ and the normal name is an alias. */
28041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28042choke me
28043#else
e6cc62c6
VS
28044char (*f) () = $ac_func;
28045#endif
28046#ifdef __cplusplus
28047}
4f14bcd8
GD
28048#endif
28049
e6cc62c6
VS
28050int
28051main ()
28052{
28053return f != $ac_func;
28054 ;
28055 return 0;
28056}
28057_ACEOF
28058rm -f conftest.$ac_objext conftest$ac_exeext
28059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28060 (eval $ac_link) 2>&5
e6cc62c6
VS
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } &&
09d3439c 28064 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066 (eval $ac_try) 2>&5
28067 ac_status=$?
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; }; then
28070 eval "$as_ac_var=yes"
28071else
28072 echo "$as_me: failed program was:" >&5
28073sed 's/^/| /' conftest.$ac_ext >&5
28074
28075eval "$as_ac_var=no"
28076fi
09d3439c 28077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28078fi
28079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28081if test `eval echo '${'$as_ac_var'}'` = yes; then
28082 cat >>confdefs.h <<_ACEOF
28083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28084_ACEOF
28085 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28086#define HAVE_NANOSLEEP 1
e6cc62c6 28087_ACEOF
4f14bcd8 28088
10f2d63a 28089else
e6cc62c6
VS
28090
28091 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28092echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28093if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28095else
e6cc62c6 28096 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28097LIBS="-lposix4 $LIBS"
e6cc62c6 28098cat >conftest.$ac_ext <<_ACEOF
09d3439c 28099#line $LINENO "configure"
e6cc62c6
VS
28100/* confdefs.h. */
28101_ACEOF
28102cat confdefs.h >>conftest.$ac_ext
28103cat >>conftest.$ac_ext <<_ACEOF
28104/* end confdefs.h. */
28105
10f2d63a 28106/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28107#ifdef __cplusplus
28108extern "C"
28109#endif
10f2d63a 28110/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28111 builtin and then its argument prototype would still apply. */
28112char nanosleep ();
28113int
28114main ()
28115{
28116nanosleep ();
28117 ;
28118 return 0;
28119}
28120_ACEOF
28121rm -f conftest.$ac_objext conftest$ac_exeext
28122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28123 (eval $ac_link) 2>&5
e6cc62c6
VS
28124 ac_status=$?
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } &&
09d3439c 28127 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129 (eval $ac_try) 2>&5
28130 ac_status=$?
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; }; then
28133 ac_cv_lib_posix4_nanosleep=yes
28134else
28135 echo "$as_me: failed program was:" >&5
28136sed 's/^/| /' conftest.$ac_ext >&5
28137
28138ac_cv_lib_posix4_nanosleep=no
28139fi
09d3439c 28140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28141LIBS=$ac_check_lib_save_LIBS
28142fi
28143echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28144echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28145if test $ac_cv_lib_posix4_nanosleep = yes; then
28146
28147 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28148#define HAVE_NANOSLEEP 1
e6cc62c6 28149_ACEOF
4f14bcd8 28150
3d63bc3a 28151 POSIX4_LINK=" -lposix4"
e6cc62c6 28152
10f2d63a 28153else
10f2d63a 28154
e6cc62c6
VS
28155
28156for ac_func in usleep
4f14bcd8 28157do
e6cc62c6
VS
28158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28159echo "$as_me:$LINENO: checking for $ac_func" >&5
28160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28161if eval "test \"\${$as_ac_var+set}\" = set"; then
28162 echo $ECHO_N "(cached) $ECHO_C" >&6
28163else
28164 cat >conftest.$ac_ext <<_ACEOF
09d3439c 28165#line $LINENO "configure"
e6cc62c6
VS
28166/* confdefs.h. */
28167_ACEOF
28168cat confdefs.h >>conftest.$ac_ext
28169cat >>conftest.$ac_ext <<_ACEOF
28170/* end confdefs.h. */
4f14bcd8 28171/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28172 which can conflict with char $ac_func (); below.
28173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28174 <limits.h> exists even on freestanding compilers. */
28175#ifdef __STDC__
28176# include <limits.h>
28177#else
28178# include <assert.h>
28179#endif
4f14bcd8 28180/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28181#ifdef __cplusplus
28182extern "C"
28183{
28184#endif
4f14bcd8 28185/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28186 builtin and then its argument prototype would still apply. */
28187char $ac_func ();
4f14bcd8
GD
28188/* The GNU C library defines this for functions which it implements
28189 to always fail with ENOSYS. Some functions are actually named
28190 something starting with __ and the normal name is an alias. */
28191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28192choke me
28193#else
e6cc62c6
VS
28194char (*f) () = $ac_func;
28195#endif
28196#ifdef __cplusplus
28197}
4f14bcd8
GD
28198#endif
28199
e6cc62c6
VS
28200int
28201main ()
28202{
28203return f != $ac_func;
28204 ;
28205 return 0;
28206}
28207_ACEOF
28208rm -f conftest.$ac_objext conftest$ac_exeext
28209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28210 (eval $ac_link) 2>&5
e6cc62c6
VS
28211 ac_status=$?
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); } &&
09d3439c 28214 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216 (eval $ac_try) 2>&5
28217 ac_status=$?
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; }; then
28220 eval "$as_ac_var=yes"
28221else
28222 echo "$as_me: failed program was:" >&5
28223sed 's/^/| /' conftest.$ac_ext >&5
28224
28225eval "$as_ac_var=no"
28226fi
09d3439c 28227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28228fi
28229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28231if test `eval echo '${'$as_ac_var'}'` = yes; then
28232 cat >>confdefs.h <<_ACEOF
28233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28234_ACEOF
28235 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28236#define HAVE_USLEEP 1
e6cc62c6 28237_ACEOF
4f14bcd8 28238
698dcdb6 28239else
e6cc62c6
VS
28240 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28241echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28242
10f2d63a 28243fi
4f14bcd8 28244done
10f2d63a 28245
e6cc62c6
VS
28246
28247
6232543b 28248fi
10f2d63a 28249
e6cc62c6
VS
28250
28251
1e487827 28252fi
4f14bcd8 28253done
703e0a69 28254
10f2d63a
VZ
28255fi
28256
e6cc62c6
VS
28257
28258
4f14bcd8 28259for ac_func in uname gethostname
70846f0a 28260do
e6cc62c6
VS
28261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28262echo "$as_me:$LINENO: checking for $ac_func" >&5
28263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28264if eval "test \"\${$as_ac_var+set}\" = set"; then
28265 echo $ECHO_N "(cached) $ECHO_C" >&6
28266else
28267 cat >conftest.$ac_ext <<_ACEOF
09d3439c 28268#line $LINENO "configure"
e6cc62c6
VS
28269/* confdefs.h. */
28270_ACEOF
28271cat confdefs.h >>conftest.$ac_ext
28272cat >>conftest.$ac_ext <<_ACEOF
28273/* end confdefs.h. */
70846f0a 28274/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28275 which can conflict with char $ac_func (); below.
28276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28277 <limits.h> exists even on freestanding compilers. */
28278#ifdef __STDC__
28279# include <limits.h>
28280#else
28281# include <assert.h>
28282#endif
70846f0a 28283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28284#ifdef __cplusplus
28285extern "C"
28286{
28287#endif
70846f0a 28288/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28289 builtin and then its argument prototype would still apply. */
28290char $ac_func ();
70846f0a
VZ
28291/* The GNU C library defines this for functions which it implements
28292 to always fail with ENOSYS. Some functions are actually named
28293 something starting with __ and the normal name is an alias. */
28294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28295choke me
28296#else
e6cc62c6
VS
28297char (*f) () = $ac_func;
28298#endif
28299#ifdef __cplusplus
28300}
70846f0a
VZ
28301#endif
28302
e6cc62c6
VS
28303int
28304main ()
28305{
28306return f != $ac_func;
28307 ;
28308 return 0;
28309}
28310_ACEOF
28311rm -f conftest.$ac_objext conftest$ac_exeext
28312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28313 (eval $ac_link) 2>&5
e6cc62c6
VS
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } &&
09d3439c 28317 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28319 (eval $ac_try) 2>&5
28320 ac_status=$?
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; }; then
28323 eval "$as_ac_var=yes"
28324else
28325 echo "$as_me: failed program was:" >&5
28326sed 's/^/| /' conftest.$ac_ext >&5
28327
28328eval "$as_ac_var=no"
28329fi
09d3439c 28330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28331fi
28332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28334if test `eval echo '${'$as_ac_var'}'` = yes; then
28335 cat >>confdefs.h <<_ACEOF
28336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28337_ACEOF
4f14bcd8 28338 break
70846f0a
VZ
28339fi
28340done
28341
8284b0c5
MB
28342
28343
e6cc62c6
VS
28344
28345ac_ext=cc
4f14bcd8 28346ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28350
8284b0c5 28351
4f14bcd8
GD
28352
28353for ac_func in strtok_r
10f2d63a 28354do
e6cc62c6
VS
28355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28356echo "$as_me:$LINENO: checking for $ac_func" >&5
28357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28358if eval "test \"\${$as_ac_var+set}\" = set"; then
28359 echo $ECHO_N "(cached) $ECHO_C" >&6
28360else
28361 cat >conftest.$ac_ext <<_ACEOF
09d3439c 28362#line $LINENO "configure"
e6cc62c6
VS
28363/* confdefs.h. */
28364_ACEOF
28365cat confdefs.h >>conftest.$ac_ext
28366cat >>conftest.$ac_ext <<_ACEOF
28367/* end confdefs.h. */
4f14bcd8 28368/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28369 which can conflict with char $ac_func (); below.
28370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28371 <limits.h> exists even on freestanding compilers. */
28372#ifdef __STDC__
28373# include <limits.h>
28374#else
28375# include <assert.h>
28376#endif
4f14bcd8
GD
28377/* Override any gcc2 internal prototype to avoid an error. */
28378#ifdef __cplusplus
28379extern "C"
e6cc62c6 28380{
4f14bcd8
GD
28381#endif
28382/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28383 builtin and then its argument prototype would still apply. */
28384char $ac_func ();
4f14bcd8
GD
28385/* The GNU C library defines this for functions which it implements
28386 to always fail with ENOSYS. Some functions are actually named
28387 something starting with __ and the normal name is an alias. */
28388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28389choke me
28390#else
e6cc62c6
VS
28391char (*f) () = $ac_func;
28392#endif
28393#ifdef __cplusplus
28394}
4f14bcd8
GD
28395#endif
28396
e6cc62c6
VS
28397int
28398main ()
28399{
28400return f != $ac_func;
28401 ;
28402 return 0;
28403}
28404_ACEOF
28405rm -f conftest.$ac_objext conftest$ac_exeext
28406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28407 (eval $ac_link) 2>&5
e6cc62c6
VS
28408 ac_status=$?
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); } &&
09d3439c 28411 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28413 (eval $ac_try) 2>&5
28414 ac_status=$?
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; }; then
28417 eval "$as_ac_var=yes"
28418else
28419 echo "$as_me: failed program was:" >&5
28420sed 's/^/| /' conftest.$ac_ext >&5
28421
28422eval "$as_ac_var=no"
28423fi
09d3439c 28424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28425fi
28426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28428if test `eval echo '${'$as_ac_var'}'` = yes; then
28429 cat >>confdefs.h <<_ACEOF
28430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28431_ACEOF
4f14bcd8 28432
10f2d63a
VZ
28433fi
28434done
28435
8284b0c5 28436
4f14bcd8 28437ac_ext=c
4f14bcd8 28438ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28441ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28442
5c6fa7d2 28443
8284b0c5 28444INET_LINK=
e6cc62c6 28445
4f14bcd8
GD
28446for ac_func in inet_addr
28447do
e6cc62c6
VS
28448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28449echo "$as_me:$LINENO: checking for $ac_func" >&5
28450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28451if eval "test \"\${$as_ac_var+set}\" = set"; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28453else
28454 cat >conftest.$ac_ext <<_ACEOF
09d3439c 28455#line $LINENO "configure"
e6cc62c6
VS
28456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
4f14bcd8 28461/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28462 which can conflict with char $ac_func (); below.
28463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28464 <limits.h> exists even on freestanding compilers. */
28465#ifdef __STDC__
28466# include <limits.h>
28467#else
28468# include <assert.h>
28469#endif
10f2d63a 28470/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28471#ifdef __cplusplus
28472extern "C"
28473{
28474#endif
10f2d63a 28475/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28476 builtin and then its argument prototype would still apply. */
28477char $ac_func ();
4f14bcd8
GD
28478/* The GNU C library defines this for functions which it implements
28479 to always fail with ENOSYS. Some functions are actually named
28480 something starting with __ and the normal name is an alias. */
28481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28482choke me
28483#else
e6cc62c6
VS
28484char (*f) () = $ac_func;
28485#endif
28486#ifdef __cplusplus
28487}
4f14bcd8
GD
28488#endif
28489
e6cc62c6
VS
28490int
28491main ()
28492{
28493return f != $ac_func;
28494 ;
28495 return 0;
28496}
28497_ACEOF
28498rm -f conftest.$ac_objext conftest$ac_exeext
28499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28500 (eval $ac_link) 2>&5
e6cc62c6
VS
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } &&
09d3439c 28504 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; }; then
28510 eval "$as_ac_var=yes"
28511else
28512 echo "$as_me: failed program was:" >&5
28513sed 's/^/| /' conftest.$ac_ext >&5
28514
28515eval "$as_ac_var=no"
28516fi
09d3439c 28517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28518fi
28519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28521if test `eval echo '${'$as_ac_var'}'` = yes; then
28522 cat >>confdefs.h <<_ACEOF
28523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28524_ACEOF
28525 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28526#define HAVE_INET_ADDR 1
e6cc62c6 28527_ACEOF
10f2d63a
VZ
28528
28529else
e6cc62c6
VS
28530
28531 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28532echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28533if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28534 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28535else
e6cc62c6 28536 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28537LIBS="-lnsl $LIBS"
e6cc62c6 28538cat >conftest.$ac_ext <<_ACEOF
09d3439c 28539#line $LINENO "configure"
e6cc62c6
VS
28540/* confdefs.h. */
28541_ACEOF
28542cat confdefs.h >>conftest.$ac_ext
28543cat >>conftest.$ac_ext <<_ACEOF
28544/* end confdefs.h. */
28545
10f2d63a 28546/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28547#ifdef __cplusplus
28548extern "C"
28549#endif
10f2d63a 28550/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28551 builtin and then its argument prototype would still apply. */
28552char inet_addr ();
28553int
28554main ()
28555{
28556inet_addr ();
28557 ;
28558 return 0;
28559}
28560_ACEOF
28561rm -f conftest.$ac_objext conftest$ac_exeext
28562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28563 (eval $ac_link) 2>&5
e6cc62c6
VS
28564 ac_status=$?
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); } &&
09d3439c 28567 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; }; then
28573 ac_cv_lib_nsl_inet_addr=yes
28574else
28575 echo "$as_me: failed program was:" >&5
28576sed 's/^/| /' conftest.$ac_ext >&5
28577
28578ac_cv_lib_nsl_inet_addr=no
28579fi
09d3439c 28580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28581LIBS=$ac_check_lib_save_LIBS
28582fi
28583echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28584echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28585if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28586 INET_LINK="nsl"
10f2d63a 28587else
0e012a93
VZ
28588
28589 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
28590echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28591if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28593else
e6cc62c6 28594 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28595LIBS="-lresolv $LIBS"
e6cc62c6 28596cat >conftest.$ac_ext <<_ACEOF
09d3439c 28597#line $LINENO "configure"
e6cc62c6
VS
28598/* confdefs.h. */
28599_ACEOF
28600cat confdefs.h >>conftest.$ac_ext
28601cat >>conftest.$ac_ext <<_ACEOF
28602/* end confdefs.h. */
28603
5c6fa7d2 28604/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28605#ifdef __cplusplus
28606extern "C"
28607#endif
5c6fa7d2 28608/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28609 builtin and then its argument prototype would still apply. */
28610char inet_addr ();
28611int
28612main ()
28613{
28614inet_addr ();
28615 ;
28616 return 0;
28617}
28618_ACEOF
28619rm -f conftest.$ac_objext conftest$ac_exeext
28620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28621 (eval $ac_link) 2>&5
e6cc62c6
VS
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } &&
09d3439c 28625 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
28631 ac_cv_lib_resolv_inet_addr=yes
28632else
28633 echo "$as_me: failed program was:" >&5
28634sed 's/^/| /' conftest.$ac_ext >&5
28635
28636ac_cv_lib_resolv_inet_addr=no
28637fi
09d3439c 28638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28639LIBS=$ac_check_lib_save_LIBS
28640fi
28641echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28642echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28643if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28644 INET_LINK="resolv"
698dcdb6 28645else
0e012a93
VZ
28646
28647 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
28648echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28649if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28650 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28651else
e6cc62c6 28652 ac_check_lib_save_LIBS=$LIBS
3c011993 28653LIBS="-lsocket $LIBS"
e6cc62c6 28654cat >conftest.$ac_ext <<_ACEOF
09d3439c 28655#line $LINENO "configure"
e6cc62c6
VS
28656/* confdefs.h. */
28657_ACEOF
28658cat confdefs.h >>conftest.$ac_ext
28659cat >>conftest.$ac_ext <<_ACEOF
28660/* end confdefs.h. */
28661
3c011993 28662/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28663#ifdef __cplusplus
28664extern "C"
28665#endif
3c011993 28666/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28667 builtin and then its argument prototype would still apply. */
28668char inet_addr ();
28669int
28670main ()
28671{
28672inet_addr ();
28673 ;
28674 return 0;
28675}
28676_ACEOF
28677rm -f conftest.$ac_objext conftest$ac_exeext
28678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28679 (eval $ac_link) 2>&5
e6cc62c6
VS
28680 ac_status=$?
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); } &&
09d3439c 28683 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; }; then
28689 ac_cv_lib_socket_inet_addr=yes
28690else
28691 echo "$as_me: failed program was:" >&5
28692sed 's/^/| /' conftest.$ac_ext >&5
28693
28694ac_cv_lib_socket_inet_addr=no
28695fi
09d3439c 28696rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28697LIBS=$ac_check_lib_save_LIBS
28698fi
28699echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28700echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28701if test $ac_cv_lib_socket_inet_addr = yes; then
28702 INET_LINK="socket"
4f14bcd8 28703
8284b0c5 28704fi
e6cc62c6 28705
698dcdb6 28706
0e012a93 28707
7b4a847f 28708fi
e6cc62c6
VS
28709
28710
0e012a93 28711
a0b9e27f 28712fi
579d8138 28713
e6cc62c6
VS
28714
28715
5c6fa7d2 28716fi
e6cc62c6
VS
28717done
28718
28719
28720
28721for ac_func in inet_aton
28722do
28723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28724echo "$as_me:$LINENO: checking for $ac_func" >&5
28725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28726if eval "test \"\${$as_ac_var+set}\" = set"; then
28727 echo $ECHO_N "(cached) $ECHO_C" >&6
28728else
28729 cat >conftest.$ac_ext <<_ACEOF
09d3439c 28730#line $LINENO "configure"
e6cc62c6
VS
28731/* confdefs.h. */
28732_ACEOF
28733cat confdefs.h >>conftest.$ac_ext
28734cat >>conftest.$ac_ext <<_ACEOF
28735/* end confdefs.h. */
28736/* System header to define __stub macros and hopefully few prototypes,
28737 which can conflict with char $ac_func (); below.
28738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28739 <limits.h> exists even on freestanding compilers. */
28740#ifdef __STDC__
28741# include <limits.h>
28742#else
28743# include <assert.h>
28744#endif
28745/* Override any gcc2 internal prototype to avoid an error. */
28746#ifdef __cplusplus
28747extern "C"
28748{
28749#endif
28750/* We use char because int might match the return type of a gcc2
28751 builtin and then its argument prototype would still apply. */
28752char $ac_func ();
28753/* The GNU C library defines this for functions which it implements
28754 to always fail with ENOSYS. Some functions are actually named
28755 something starting with __ and the normal name is an alias. */
28756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28757choke me
28758#else
28759char (*f) () = $ac_func;
28760#endif
28761#ifdef __cplusplus
28762}
28763#endif
28764
28765int
28766main ()
28767{
28768return f != $ac_func;
28769 ;
28770 return 0;
28771}
28772_ACEOF
28773rm -f conftest.$ac_objext conftest$ac_exeext
28774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28775 (eval $ac_link) 2>&5
e6cc62c6
VS
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } &&
09d3439c 28779 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 eval "$as_ac_var=yes"
28786else
28787 echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
28790eval "$as_ac_var=no"
28791fi
09d3439c 28792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28793fi
28794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28796if test `eval echo '${'$as_ac_var'}'` = yes; then
28797 cat >>confdefs.h <<_ACEOF
28798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28799_ACEOF
28800 cat >>confdefs.h <<\_ACEOF
28801#define HAVE_INET_ATON 1
28802_ACEOF
28803
28804else
28805
28806 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28807echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28808echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28809if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28810 echo $ECHO_N "(cached) $ECHO_C" >&6
28811else
28812 ac_check_lib_save_LIBS=$LIBS
28813LIBS="-l$INET_LINK $LIBS"
28814cat >conftest.$ac_ext <<_ACEOF
09d3439c 28815#line $LINENO "configure"
e6cc62c6
VS
28816/* confdefs.h. */
28817_ACEOF
28818cat confdefs.h >>conftest.$ac_ext
28819cat >>conftest.$ac_ext <<_ACEOF
28820/* end confdefs.h. */
28821
28822/* Override any gcc2 internal prototype to avoid an error. */
28823#ifdef __cplusplus
28824extern "C"
28825#endif
28826/* We use char because int might match the return type of a gcc2
28827 builtin and then its argument prototype would still apply. */
28828char inet_aton ();
28829int
28830main ()
28831{
28832inet_aton ();
28833 ;
28834 return 0;
28835}
28836_ACEOF
28837rm -f conftest.$ac_objext conftest$ac_exeext
28838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28839 (eval $ac_link) 2>&5
e6cc62c6
VS
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); } &&
09d3439c 28843 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28845 (eval $ac_try) 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; }; then
28849 eval "$as_ac_Lib=yes"
28850else
28851 echo "$as_me: failed program was:" >&5
28852sed 's/^/| /' conftest.$ac_ext >&5
28853
28854eval "$as_ac_Lib=no"
28855fi
09d3439c 28856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28857LIBS=$ac_check_lib_save_LIBS
28858fi
28859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28860echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28861if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28862 cat >>confdefs.h <<\_ACEOF
28863#define HAVE_INET_ATON 1
28864_ACEOF
52127426 28865
a0b9e27f 28866fi
247f5006 28867
8284b0c5 28868
698dcdb6 28869fi
4f14bcd8
GD
28870done
28871
8284b0c5 28872
e6cc62c6
VS
28873if test "x$INET_LINK" != "x"; then
28874 cat >>confdefs.h <<\_ACEOF
28875#define HAVE_INET_ADDR 1
28876_ACEOF
28877
28878 INET_LINK=" -l$INET_LINK"
28879fi
28880
28881fi
a0b9e27f 28882
a0b9e27f 28883
4f14bcd8 28884
edd891e2
VS
28885EXTRALIBS_ESD=
28886echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28887echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28888if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28889 echo $ECHO_N "(cached) $ECHO_C" >&6
28890else
28891 ac_check_lib_save_LIBS=$LIBS
28892LIBS="-lesd $LIBS"
28893cat >conftest.$ac_ext <<_ACEOF
09d3439c 28894#line $LINENO "configure"
edd891e2
VS
28895/* confdefs.h. */
28896_ACEOF
28897cat confdefs.h >>conftest.$ac_ext
28898cat >>conftest.$ac_ext <<_ACEOF
28899/* end confdefs.h. */
28900
28901/* Override any gcc2 internal prototype to avoid an error. */
28902#ifdef __cplusplus
28903extern "C"
28904#endif
28905/* We use char because int might match the return type of a gcc2
28906 builtin and then its argument prototype would still apply. */
28907char esd_close ();
28908int
28909main ()
28910{
28911esd_close ();
28912 ;
28913 return 0;
28914}
28915_ACEOF
28916rm -f conftest.$ac_objext conftest$ac_exeext
28917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 28918 (eval $ac_link) 2>&5
edd891e2
VS
28919 ac_status=$?
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); } &&
09d3439c 28922 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
28923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 (eval $ac_try) 2>&5
28925 ac_status=$?
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); }; }; then
28928 ac_cv_lib_esd_esd_close=yes
28929else
28930 echo "$as_me: failed program was:" >&5
28931sed 's/^/| /' conftest.$ac_ext >&5
28932
28933ac_cv_lib_esd_esd_close=no
28934fi
09d3439c 28935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
28936LIBS=$ac_check_lib_save_LIBS
28937fi
28938echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28939echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28940if test $ac_cv_lib_esd_esd_close = yes; then
28941
28942
28943for ac_header in esd.h
28944do
28945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28946if eval "test \"\${$as_ac_Header+set}\" = set"; then
28947 echo "$as_me:$LINENO: checking for $ac_header" >&5
28948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28949if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951fi
edd891e2
VS
28952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28954else
28955 # Is the header compilable?
edd891e2
VS
28956echo "$as_me:$LINENO: checking $ac_header usability" >&5
28957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 28958cat >conftest.$ac_ext <<_ACEOF
09d3439c 28959#line $LINENO "configure"
e6cc62c6
VS
28960/* confdefs.h. */
28961_ACEOF
28962cat confdefs.h >>conftest.$ac_ext
28963cat >>conftest.$ac_ext <<_ACEOF
28964/* end confdefs.h. */
28965$ac_includes_default
edd891e2 28966#include <$ac_header>
e6cc62c6
VS
28967_ACEOF
28968rm -f conftest.$ac_objext
28969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 28970 (eval $ac_compile) 2>&5
e6cc62c6
VS
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); } &&
09d3439c 28974 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980 ac_header_compiler=yes
28981else
28982 echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
28985ac_header_compiler=no
28986fi
09d3439c 28987rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28989echo "${ECHO_T}$ac_header_compiler" >&6
28990
28991# Is the header present?
edd891e2
VS
28992echo "$as_me:$LINENO: checking $ac_header presence" >&5
28993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 28994cat >conftest.$ac_ext <<_ACEOF
09d3439c 28995#line $LINENO "configure"
e6cc62c6
VS
28996/* confdefs.h. */
28997_ACEOF
28998cat confdefs.h >>conftest.$ac_ext
28999cat >>conftest.$ac_ext <<_ACEOF
29000/* end confdefs.h. */
edd891e2 29001#include <$ac_header>
e6cc62c6
VS
29002_ACEOF
29003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29005 ac_status=$?
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } >/dev/null; then
29011 if test -s conftest.err; then
29012 ac_cpp_err=$ac_c_preproc_warn_flag
29013 else
29014 ac_cpp_err=
29015 fi
a0b9e27f 29016else
e6cc62c6
VS
29017 ac_cpp_err=yes
29018fi
29019if test -z "$ac_cpp_err"; then
29020 ac_header_preproc=yes
29021else
29022 echo "$as_me: failed program was:" >&5
29023sed 's/^/| /' conftest.$ac_ext >&5
29024
29025 ac_header_preproc=no
29026fi
29027rm -f conftest.err conftest.$ac_ext
29028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29029echo "${ECHO_T}$ac_header_preproc" >&6
29030
29031# So? What about this header?
09d3439c
VZ
29032case $ac_header_compiler:$ac_header_preproc in
29033 yes:no )
edd891e2
VS
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29038 (
29039 cat <<\_ASBOX
29040## ------------------------------------ ##
29041## Report this to bug-autoconf@gnu.org. ##
29042## ------------------------------------ ##
29043_ASBOX
29044 ) |
29045 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 29046 ;;
09d3439c 29047 no:yes )
edd891e2
VS
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
29050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
edd891e2
VS
29052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
29054 (
29055 cat <<\_ASBOX
09d3439c
VZ
29056## ------------------------------------ ##
29057## Report this to bug-autoconf@gnu.org. ##
29058## ------------------------------------ ##
e6cc62c6
VS
29059_ASBOX
29060 ) |
29061 sed "s/^/$as_me: WARNING: /" >&2
29062 ;;
29063esac
edd891e2
VS
29064echo "$as_me:$LINENO: checking for $ac_header" >&5
29065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29066if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29067 echo $ECHO_N "(cached) $ECHO_C" >&6
29068else
09d3439c 29069 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 29070fi
edd891e2
VS
29071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 29073
e6cc62c6 29074fi
edd891e2
VS
29075if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076 cat >>confdefs.h <<_ACEOF
29077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 29078_ACEOF
e6cc62c6 29079
edd891e2 29080 EXTRALIBS_ESD="-lesd"
4f14bcd8 29081
a0b9e27f 29082fi
247f5006 29083
edd891e2 29084done
8284b0c5 29085
4f14bcd8 29086
6232543b 29087fi
10f2d63a 29088
703e0a69 29089
8284b0c5 29090
d19d1899
MB
29091echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29092echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29093cat >conftest.$ac_ext <<_ACEOF
09d3439c 29094#line $LINENO "configure"
d19d1899
MB
29095/* confdefs.h. */
29096_ACEOF
29097cat confdefs.h >>conftest.$ac_ext
29098cat >>conftest.$ac_ext <<_ACEOF
29099/* end confdefs.h. */
29100#ifdef __linux__
29101 #include <linux/cdrom.h>
29102 #else
29103 /* For Solaris */
29104 #include <sys/cdio.h>
29105 #endif
29106
29107int
29108main ()
29109{
29110struct cdrom_tocentry entry, old_entry;
29111 ;
29112 return 0;
29113}
29114_ACEOF
29115rm -f conftest.$ac_objext
29116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 29117 (eval $ac_compile) 2>&5
d19d1899
MB
29118 ac_status=$?
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
09d3439c 29121 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
29122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29123 (eval $ac_try) 2>&5
29124 ac_status=$?
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; }; then
29127 echo "$as_me:$LINENO: result: yes" >&5
29128echo "${ECHO_T}yes" >&6
29129 cat >>confdefs.h <<\_ACEOF
29130#define HAVE_KNOWN_CDROM_INTERFACE 1
29131_ACEOF
29132
29133else
29134 echo "$as_me: failed program was:" >&5
29135sed 's/^/| /' conftest.$ac_ext >&5
29136
29137echo "$as_me:$LINENO: result: no" >&5
29138echo "${ECHO_T}no" >&6
29139fi
09d3439c 29140rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29141
29142
29143cat >confcache <<\_ACEOF
4f14bcd8
GD
29144# This file is a shell script that caches the results of configure
29145# tests run on this system so they can be shared between configure
e6cc62c6
VS
29146# scripts and configure runs, see configure's option --config-cache.
29147# It is not useful on other systems. If it contains results you don't
29148# want to keep, you may remove or edit it.
4f14bcd8 29149#
e6cc62c6
VS
29150# config.status only pays attention to the cache file if you give it
29151# the --recheck option to rerun configure.
4f14bcd8 29152#
e6cc62c6
VS
29153# `ac_cv_env_foo' variables (set or unset) will be overridden when
29154# loading this file, other *unset* `ac_cv_foo' will be assigned the
29155# following values.
29156
29157_ACEOF
29158
4f14bcd8
GD
29159# The following way of writing the cache mishandles newlines in values,
29160# but we know of no workaround that is simple, portable, and efficient.
29161# So, don't put newlines in cache variables' values.
29162# Ultrix sh set writes to stderr and can't be redirected directly,
29163# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
29164{
29165 (set) 2>&1 |
29166 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29167 *ac_space=\ *)
29168 # `set' does not quote correctly, so add quotes (double-quote
29169 # substitution turns \\\\ into \\, and sed turns \\ into \).
29170 sed -n \
09d3439c
VZ
29171 "s/'/'\\\\''/g;
29172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
29173 ;;
29174 *)
29175 # `set' quotes correctly as required by POSIX, so do not add quotes.
29176 sed -n \
09d3439c 29177 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
29178 ;;
29179 esac;
29180} |
29181 sed '
29182 t clear
29183 : clear
29184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29185 t end
29186 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29187 : end' >>confcache
29188if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 29189 if test -w $cache_file; then
e6cc62c6
VS
29190 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29191 cat confcache >$cache_file
f6bcfd97 29192 else
4f14bcd8 29193 echo "not updating unwritable cache $cache_file"
f6bcfd97 29194 fi
4f14bcd8
GD
29195fi
29196rm -f confcache
f6bcfd97 29197
8284b0c5 29198
009fead0 29199CPP_MT_FLAG=
73d617c9 29200if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 29201
e6cc62c6 29202
7274f1c7 29203 THREADS_LINK=
009fead0 29204 THREADS_CFLAGS=
7274f1c7
RL
29205
29206 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 29207 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29208 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29209echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29210 wxUSE_THREADS="no"
29211 fi
4f14bcd8 29212 fi
4f14bcd8 29213
7274f1c7 29214 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29215
29216
009fead0
VZ
29217 THREAD_OPTS="-pthread"
29218 case "${host}" in
29219 *-*-solaris2* | *-*-sunos4* )
29220 if test "x$GCC" = "xyes"; then
126be6b4 29221 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29222 else
29223 THREAD_OPTS="-mt $THREAD_OPTS"
29224 fi
29225 ;;
29226 *-*-freebsd*)
29227 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29228 ;;
17234b26
MB
29229 *-*-darwin* | *-*-cygwin* )
29230 THREAD_OPTS=""
4101db81 29231 ;;
8f4a9a10 29232 *-*-aix*)
009fead0
VZ
29233 THREAD_OPTS="pthreads"
29234 ;;
4f5a7f74
VZ
29235 *-hp-hpux* )
29236 if test "x$GCC" != "xyes"; then
29237 THREAD_OPTS=""
29238 fi
89e3b3e4
VZ
29239 ;;
29240
29241 *-*-irix* )
29242 if test "x$GCC" = "xyes"; then
29243 THREAD_OPTS=""
29244 fi
29245 ;;
29246
29247 *-*-*UnixWare*)
29248 if test "x$GCC" != "xyes"; then
29249 THREAD_OPTS="-Ethread"
29250 fi
29251 ;;
009fead0 29252 esac
4f14bcd8 29253
02a1dfba 29254 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29255
009fead0
VZ
29256 THREADS_OK=no
29257 for flag in $THREAD_OPTS; do
29258 case $flag in
29259 none)
e6cc62c6
VS
29260 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29261echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29262 ;;
698dcdb6 29263
009fead0 29264 -*)
e6cc62c6
VS
29265 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29266echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29267 THREADS_CFLAGS="$flag"
29268 ;;
698dcdb6 29269
009fead0 29270 *)
e6cc62c6
VS
29271 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29272echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29273 THREADS_LINK="-l$flag"
29274 ;;
29275 esac
10f2d63a 29276
009fead0
VZ
29277 save_LIBS="$LIBS"
29278 save_CFLAGS="$CFLAGS"
29279 LIBS="$THREADS_LINK $LIBS"
04727afd 29280 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29281
e6cc62c6 29282 cat >conftest.$ac_ext <<_ACEOF
09d3439c 29283#line $LINENO "configure"
e6cc62c6
VS
29284/* confdefs.h. */
29285_ACEOF
29286cat confdefs.h >>conftest.$ac_ext
29287cat >>conftest.$ac_ext <<_ACEOF
29288/* end confdefs.h. */
009fead0 29289#include <pthread.h>
e6cc62c6
VS
29290int
29291main ()
29292{
009fead0 29293pthread_create(0,0,0,0);
e6cc62c6
VS
29294 ;
29295 return 0;
29296}
29297_ACEOF
29298rm -f conftest.$ac_objext conftest$ac_exeext
29299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 29300 (eval $ac_link) 2>&5
e6cc62c6
VS
29301 ac_status=$?
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
09d3439c 29304 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306 (eval $ac_try) 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; }; then
009fead0 29310 THREADS_OK=yes
10f2d63a 29311else
e6cc62c6
VS
29312 echo "$as_me: failed program was:" >&5
29313sed 's/^/| /' conftest.$ac_ext >&5
29314
6232543b 29315fi
09d3439c 29316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29317
009fead0
VZ
29318 LIBS="$save_LIBS"
29319 CFLAGS="$save_CFLAGS"
d9b9876f 29320
e6cc62c6
VS
29321 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29322echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29323 if test "x$THREADS_OK" = "xyes"; then
29324 break;
29325 fi
d9b9876f 29326
009fead0
VZ
29327 THREADS_LINK=""
29328 THREADS_CFLAGS=""
29329 done
4f14bcd8 29330
009fead0
VZ
29331 if test "x$THREADS_OK" != "xyes"; then
29332 wxUSE_THREADS=no
e6cc62c6
VS
29333 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29334echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29335 else
db82f09e
VZ
29336 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29337 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29338
e6cc62c6
VS
29339 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29340echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29341 flag=no
29342 case "${host}" in
2b5f62a0
VZ
29343 *-aix*)
29344 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29345 flag="-D_THREAD_SAFE"
29346 ;;
29347 *-freebsd*)
009fead0
VZ
29348 flag="-D_THREAD_SAFE"
29349 ;;
06313569
GD
29350 *-hp-hpux* )
29351 flag="-D_REENTRANT"
4f5a7f74
VZ
29352 if test "x$GCC" != "xyes"; then
29353 flag="$flag -D_RWSTD_MULTI_THREAD"
29354 fi
06313569 29355 ;;
009fead0
VZ
29356 *solaris* | alpha*-osf*)
29357 flag="-D_REENTRANT"
29358 ;;
29359 esac
e6cc62c6
VS
29360 echo "$as_me:$LINENO: result: ${flag}" >&5
29361echo "${ECHO_T}${flag}" >&6
009fead0 29362 if test "x$flag" != xno; then
04727afd 29363 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29364 fi
29365
009fead0 29366 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29367 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29368 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29369 fi
29370 fi
4f14bcd8 29371 fi
4f14bcd8 29372
7274f1c7 29373 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29374
29375for ac_func in thr_setconcurrency
4f14bcd8 29376do
e6cc62c6
VS
29377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29378echo "$as_me:$LINENO: checking for $ac_func" >&5
29379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29380if eval "test \"\${$as_ac_var+set}\" = set"; then
29381 echo $ECHO_N "(cached) $ECHO_C" >&6
29382else
29383 cat >conftest.$ac_ext <<_ACEOF
09d3439c 29384#line $LINENO "configure"
e6cc62c6
VS
29385/* confdefs.h. */
29386_ACEOF
29387cat confdefs.h >>conftest.$ac_ext
29388cat >>conftest.$ac_ext <<_ACEOF
29389/* end confdefs.h. */
4f14bcd8 29390/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29391 which can conflict with char $ac_func (); below.
29392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29393 <limits.h> exists even on freestanding compilers. */
29394#ifdef __STDC__
29395# include <limits.h>
29396#else
29397# include <assert.h>
29398#endif
4f14bcd8 29399/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29400#ifdef __cplusplus
29401extern "C"
29402{
29403#endif
4f14bcd8 29404/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29405 builtin and then its argument prototype would still apply. */
29406char $ac_func ();
4f14bcd8
GD
29407/* The GNU C library defines this for functions which it implements
29408 to always fail with ENOSYS. Some functions are actually named
29409 something starting with __ and the normal name is an alias. */
29410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29411choke me
29412#else
e6cc62c6
VS
29413char (*f) () = $ac_func;
29414#endif
29415#ifdef __cplusplus
29416}
4f14bcd8
GD
29417#endif
29418
e6cc62c6
VS
29419int
29420main ()
29421{
29422return f != $ac_func;
29423 ;
29424 return 0;
29425}
29426_ACEOF
29427rm -f conftest.$ac_objext conftest$ac_exeext
29428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 29429 (eval $ac_link) 2>&5
e6cc62c6
VS
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
09d3439c 29433 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; }; then
29439 eval "$as_ac_var=yes"
29440else
29441 echo "$as_me: failed program was:" >&5
29442sed 's/^/| /' conftest.$ac_ext >&5
29443
29444eval "$as_ac_var=no"
29445fi
09d3439c 29446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29447fi
29448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29450if test `eval echo '${'$as_ac_var'}'` = yes; then
29451 cat >>confdefs.h <<_ACEOF
29452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29453_ACEOF
698dcdb6 29454
10f2d63a 29455fi
4f14bcd8 29456done
10f2d63a 29457
8284b0c5 29458
e6cc62c6
VS
29459
29460for ac_header in sched.h
4f14bcd8 29461do
e6cc62c6
VS
29462as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29463if eval "test \"\${$as_ac_Header+set}\" = set"; then
29464 echo "$as_me:$LINENO: checking for $ac_header" >&5
29465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29466if eval "test \"\${$as_ac_Header+set}\" = set"; then
29467 echo $ECHO_N "(cached) $ECHO_C" >&6
29468fi
29469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29471else
29472 # Is the header compilable?
29473echo "$as_me:$LINENO: checking $ac_header usability" >&5
29474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29475cat >conftest.$ac_ext <<_ACEOF
09d3439c 29476#line $LINENO "configure"
e6cc62c6
VS
29477/* confdefs.h. */
29478_ACEOF
29479cat confdefs.h >>conftest.$ac_ext
29480cat >>conftest.$ac_ext <<_ACEOF
29481/* end confdefs.h. */
29482$ac_includes_default
29483#include <$ac_header>
29484_ACEOF
29485rm -f conftest.$ac_objext
29486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 29487 (eval $ac_compile) 2>&5
e6cc62c6
VS
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
09d3439c 29491 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29497 ac_header_compiler=yes
29498else
29499 echo "$as_me: failed program was:" >&5
29500sed 's/^/| /' conftest.$ac_ext >&5
29501
29502ac_header_compiler=no
29503fi
09d3439c 29504rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29506echo "${ECHO_T}$ac_header_compiler" >&6
29507
29508# Is the header present?
29509echo "$as_me:$LINENO: checking $ac_header presence" >&5
29510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29511cat >conftest.$ac_ext <<_ACEOF
09d3439c 29512#line $LINENO "configure"
e6cc62c6
VS
29513/* confdefs.h. */
29514_ACEOF
29515cat confdefs.h >>conftest.$ac_ext
29516cat >>conftest.$ac_ext <<_ACEOF
29517/* end confdefs.h. */
29518#include <$ac_header>
29519_ACEOF
29520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29522 ac_status=$?
29523 grep -v '^ *+' conftest.er1 >conftest.err
29524 rm -f conftest.er1
29525 cat conftest.err >&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); } >/dev/null; then
29528 if test -s conftest.err; then
29529 ac_cpp_err=$ac_c_preproc_warn_flag
29530 else
29531 ac_cpp_err=
29532 fi
29533else
29534 ac_cpp_err=yes
29535fi
29536if test -z "$ac_cpp_err"; then
29537 ac_header_preproc=yes
29538else
29539 echo "$as_me: failed program was:" >&5
29540sed 's/^/| /' conftest.$ac_ext >&5
29541
29542 ac_header_preproc=no
29543fi
29544rm -f conftest.err conftest.$ac_ext
29545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29546echo "${ECHO_T}$ac_header_preproc" >&6
29547
29548# So? What about this header?
09d3439c
VZ
29549case $ac_header_compiler:$ac_header_preproc in
29550 yes:no )
e6cc62c6
VS
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29555 (
29556 cat <<\_ASBOX
29557## ------------------------------------ ##
29558## Report this to bug-autoconf@gnu.org. ##
29559## ------------------------------------ ##
29560_ASBOX
29561 ) |
29562 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 29563 ;;
09d3439c 29564 no:yes )
e6cc62c6
VS
29565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
29567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29568echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29571 (
29572 cat <<\_ASBOX
09d3439c
VZ
29573## ------------------------------------ ##
29574## Report this to bug-autoconf@gnu.org. ##
29575## ------------------------------------ ##
e6cc62c6
VS
29576_ASBOX
29577 ) |
29578 sed "s/^/$as_me: WARNING: /" >&2
29579 ;;
29580esac
29581echo "$as_me:$LINENO: checking for $ac_header" >&5
29582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29583if eval "test \"\${$as_ac_Header+set}\" = set"; then
29584 echo $ECHO_N "(cached) $ECHO_C" >&6
29585else
09d3439c 29586 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29587fi
e6cc62c6
VS
29588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29590
10f2d63a 29591fi
e6cc62c6
VS
29592if test `eval echo '${'$as_ac_Header'}'` = yes; then
29593 cat >>confdefs.h <<_ACEOF
29594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29595_ACEOF
29596
f6bcfd97 29597fi
e6cc62c6 29598
4f14bcd8 29599done
f6bcfd97 29600
009fead0 29601 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29602 echo "$as_me:$LINENO: checking for sched_yield" >&5
29603echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29604if test "${ac_cv_func_sched_yield+set}" = set; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29606else
29607 cat >conftest.$ac_ext <<_ACEOF
09d3439c 29608#line $LINENO "configure"
e6cc62c6
VS
29609/* confdefs.h. */
29610_ACEOF
29611cat confdefs.h >>conftest.$ac_ext
29612cat >>conftest.$ac_ext <<_ACEOF
29613/* end confdefs.h. */
009fead0 29614/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29615 which can conflict with char sched_yield (); below.
29616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29617 <limits.h> exists even on freestanding compilers. */
29618#ifdef __STDC__
29619# include <limits.h>
29620#else
29621# include <assert.h>
29622#endif
4f14bcd8 29623/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29624#ifdef __cplusplus
29625extern "C"
29626{
29627#endif
4f14bcd8 29628/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29629 builtin and then its argument prototype would still apply. */
29630char sched_yield ();
009fead0
VZ
29631/* The GNU C library defines this for functions which it implements
29632 to always fail with ENOSYS. Some functions are actually named
29633 something starting with __ and the normal name is an alias. */
29634#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29635choke me
29636#else
e6cc62c6
VS
29637char (*f) () = sched_yield;
29638#endif
29639#ifdef __cplusplus
29640}
009fead0
VZ
29641#endif
29642
e6cc62c6
VS
29643int
29644main ()
29645{
29646return f != sched_yield;
29647 ;
29648 return 0;
29649}
29650_ACEOF
29651rm -f conftest.$ac_objext conftest$ac_exeext
29652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 29653 (eval $ac_link) 2>&5
e6cc62c6
VS
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); } &&
09d3439c 29657 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659 (eval $ac_try) 2>&5
29660 ac_status=$?
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
29663 ac_cv_func_sched_yield=yes
29664else
29665 echo "$as_me: failed program was:" >&5
29666sed 's/^/| /' conftest.$ac_ext >&5
29667
29668ac_cv_func_sched_yield=no
29669fi
09d3439c 29670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29671fi
29672echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29673echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29674if test $ac_cv_func_sched_yield = yes; then
29675 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29676#define HAVE_SCHED_YIELD 1
e6cc62c6 29677_ACEOF
10f2d63a 29678
4f14bcd8 29679else
009fead0 29680
e6cc62c6
VS
29681 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29682echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29683if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29684 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29685else
e6cc62c6 29686 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29687LIBS="-lposix4 $LIBS"
e6cc62c6 29688cat >conftest.$ac_ext <<_ACEOF
09d3439c 29689#line $LINENO "configure"
e6cc62c6
VS
29690/* confdefs.h. */
29691_ACEOF
29692cat confdefs.h >>conftest.$ac_ext
29693cat >>conftest.$ac_ext <<_ACEOF
29694/* end confdefs.h. */
29695
4f14bcd8 29696/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29697#ifdef __cplusplus
29698extern "C"
29699#endif
4f14bcd8 29700/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29701 builtin and then its argument prototype would still apply. */
29702char sched_yield ();
29703int
29704main ()
29705{
29706sched_yield ();
29707 ;
29708 return 0;
29709}
29710_ACEOF
29711rm -f conftest.$ac_objext conftest$ac_exeext
29712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 29713 (eval $ac_link) 2>&5
e6cc62c6
VS
29714 ac_status=$?
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
09d3439c 29717 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719 (eval $ac_try) 2>&5
29720 ac_status=$?
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; }; then
29723 ac_cv_lib_posix4_sched_yield=yes
29724else
29725 echo "$as_me: failed program was:" >&5
29726sed 's/^/| /' conftest.$ac_ext >&5
29727
29728ac_cv_lib_posix4_sched_yield=no
29729fi
09d3439c 29730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29731LIBS=$ac_check_lib_save_LIBS
29732fi
29733echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29734echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29735if test $ac_cv_lib_posix4_sched_yield = yes; then
29736 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29737#define HAVE_SCHED_YIELD 1
e6cc62c6 29738_ACEOF
3d63bc3a 29739 POSIX4_LINK=" -lposix4"
4f14bcd8 29740else
e6cc62c6
VS
29741 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29742echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29743
54276ccf
VZ
29744fi
29745
e6cc62c6
VS
29746
29747
4f14bcd8 29748fi
698dcdb6 29749
009fead0 29750 fi
10f2d63a 29751
7274f1c7 29752 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29753 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29754echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29755if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29756 echo $ECHO_N "(cached) $ECHO_C" >&6
29757else
29758 cat >conftest.$ac_ext <<_ACEOF
09d3439c 29759#line $LINENO "configure"
e6cc62c6
VS
29760/* confdefs.h. */
29761_ACEOF
29762cat confdefs.h >>conftest.$ac_ext
29763cat >>conftest.$ac_ext <<_ACEOF
29764/* end confdefs.h. */
009fead0 29765/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29766 which can conflict with char pthread_attr_getschedpolicy (); below.
29767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29768 <limits.h> exists even on freestanding compilers. */
29769#ifdef __STDC__
29770# include <limits.h>
29771#else
29772# include <assert.h>
29773#endif
4f14bcd8 29774/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29775#ifdef __cplusplus
29776extern "C"
29777{
29778#endif
4f14bcd8 29779/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29780 builtin and then its argument prototype would still apply. */
29781char pthread_attr_getschedpolicy ();
009fead0
VZ
29782/* The GNU C library defines this for functions which it implements
29783 to always fail with ENOSYS. Some functions are actually named
29784 something starting with __ and the normal name is an alias. */
29785#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29786choke me
29787#else
e6cc62c6
VS
29788char (*f) () = pthread_attr_getschedpolicy;
29789#endif
29790#ifdef __cplusplus
29791}
009fead0
VZ
29792#endif
29793
e6cc62c6
VS
29794int
29795main ()
29796{
29797return f != pthread_attr_getschedpolicy;
29798 ;
29799 return 0;
29800}
29801_ACEOF
29802rm -f conftest.$ac_objext conftest$ac_exeext
29803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 29804 (eval $ac_link) 2>&5
e6cc62c6
VS
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } &&
09d3439c 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_func_pthread_attr_getschedpolicy=yes
29815else
29816 echo "$as_me: failed program was:" >&5
29817sed 's/^/| /' conftest.$ac_ext >&5
29818
29819ac_cv_func_pthread_attr_getschedpolicy=no
29820fi
09d3439c 29821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29822fi
29823echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29824echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29825if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29826 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29827echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29828if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29829 echo $ECHO_N "(cached) $ECHO_C" >&6
29830else
29831 cat >conftest.$ac_ext <<_ACEOF
09d3439c 29832#line $LINENO "configure"
e6cc62c6
VS
29833/* confdefs.h. */
29834_ACEOF
29835cat confdefs.h >>conftest.$ac_ext
29836cat >>conftest.$ac_ext <<_ACEOF
29837/* end confdefs.h. */
a0b9e27f 29838/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29839 which can conflict with char pthread_attr_setschedparam (); below.
29840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29841 <limits.h> exists even on freestanding compilers. */
29842#ifdef __STDC__
29843# include <limits.h>
29844#else
29845# include <assert.h>
29846#endif
422107f9 29847/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29848#ifdef __cplusplus
29849extern "C"
29850{
29851#endif
422107f9 29852/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29853 builtin and then its argument prototype would still apply. */
29854char pthread_attr_setschedparam ();
009fead0
VZ
29855/* The GNU C library defines this for functions which it implements
29856 to always fail with ENOSYS. Some functions are actually named
29857 something starting with __ and the normal name is an alias. */
29858#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29859choke me
29860#else
e6cc62c6
VS
29861char (*f) () = pthread_attr_setschedparam;
29862#endif
29863#ifdef __cplusplus
29864}
009fead0
VZ
29865#endif
29866
e6cc62c6
VS
29867int
29868main ()
29869{
29870return f != pthread_attr_setschedparam;
29871 ;
29872 return 0;
29873}
29874_ACEOF
29875rm -f conftest.$ac_objext conftest$ac_exeext
29876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 29877 (eval $ac_link) 2>&5
e6cc62c6
VS
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } &&
09d3439c 29881 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883 (eval $ac_try) 2>&5
29884 ac_status=$?
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); }; }; then
29887 ac_cv_func_pthread_attr_setschedparam=yes
29888else
29889 echo "$as_me: failed program was:" >&5
29890sed 's/^/| /' conftest.$ac_ext >&5
29891
29892ac_cv_func_pthread_attr_setschedparam=no
29893fi
09d3439c 29894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29895fi
29896echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29897echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29898if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29899 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29900echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29901if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903else
29904 cat >conftest.$ac_ext <<_ACEOF
09d3439c 29905#line $LINENO "configure"
e6cc62c6
VS
29906/* confdefs.h. */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h. */
ef33c576 29911/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29912 which can conflict with char sched_get_priority_max (); below.
29913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29914 <limits.h> exists even on freestanding compilers. */
29915#ifdef __STDC__
29916# include <limits.h>
29917#else
29918# include <assert.h>
29919#endif
4f14bcd8 29920/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29921#ifdef __cplusplus
29922extern "C"
29923{
29924#endif
4f14bcd8 29925/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29926 builtin and then its argument prototype would still apply. */
29927char sched_get_priority_max ();
009fead0
VZ
29928/* The GNU C library defines this for functions which it implements
29929 to always fail with ENOSYS. Some functions are actually named
29930 something starting with __ and the normal name is an alias. */
29931#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29932choke me
29933#else
e6cc62c6
VS
29934char (*f) () = sched_get_priority_max;
29935#endif
29936#ifdef __cplusplus
29937}
009fead0
VZ
29938#endif
29939
e6cc62c6
VS
29940int
29941main ()
29942{
29943return f != sched_get_priority_max;
29944 ;
29945 return 0;
29946}
29947_ACEOF
29948rm -f conftest.$ac_objext conftest$ac_exeext
29949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 29950 (eval $ac_link) 2>&5
e6cc62c6
VS
29951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } &&
09d3439c 29954 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29957 ac_status=$?
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; }; then
29960 ac_cv_func_sched_get_priority_max=yes
29961else
29962 echo "$as_me: failed program was:" >&5
29963sed 's/^/| /' conftest.$ac_ext >&5
29964
29965ac_cv_func_sched_get_priority_max=no
29966fi
09d3439c 29967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29968fi
29969echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29970echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29971if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29972 HAVE_PRIOR_FUNCS=1
29973else
e6cc62c6
VS
29974 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29975echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29976if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29977 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29978else
e6cc62c6 29979 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29980LIBS="-lposix4 $LIBS"
e6cc62c6 29981cat >conftest.$ac_ext <<_ACEOF
09d3439c 29982#line $LINENO "configure"
e6cc62c6
VS
29983/* confdefs.h. */
29984_ACEOF
29985cat confdefs.h >>conftest.$ac_ext
29986cat >>conftest.$ac_ext <<_ACEOF
29987/* end confdefs.h. */
29988
422107f9 29989/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29990#ifdef __cplusplus
29991extern "C"
29992#endif
422107f9 29993/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29994 builtin and then its argument prototype would still apply. */
29995char sched_get_priority_max ();
29996int
29997main ()
29998{
29999sched_get_priority_max ();
30000 ;
30001 return 0;
30002}
30003_ACEOF
30004rm -f conftest.$ac_objext conftest$ac_exeext
30005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 30006 (eval $ac_link) 2>&5
e6cc62c6
VS
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
09d3439c 30010 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; }; then
30016 ac_cv_lib_posix4_sched_get_priority_max=yes
30017else
30018 echo "$as_me: failed program was:" >&5
30019sed 's/^/| /' conftest.$ac_ext >&5
30020
30021ac_cv_lib_posix4_sched_get_priority_max=no
30022fi
09d3439c 30023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30024LIBS=$ac_check_lib_save_LIBS
30025fi
30026echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30027echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30028if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 30029
7274f1c7
RL
30030 HAVE_PRIOR_FUNCS=1
30031 POSIX4_LINK=" -lposix4"
e6cc62c6 30032
4f14bcd8 30033fi
463abc64 30034
e6cc62c6 30035
328a083c 30036fi
463abc64 30037
e6cc62c6 30038
7b4a847f 30039fi
579d8138 30040
e6cc62c6 30041
5c6fa7d2 30042fi
52127426 30043
8284b0c5 30044
7274f1c7 30045 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 30046 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30047#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 30048_ACEOF
463abc64 30049
7274f1c7 30050 else
e6cc62c6
VS
30051 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30052echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 30053 fi
463abc64 30054
e6cc62c6
VS
30055 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30056echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30057if test "${ac_cv_func_pthread_cancel+set}" = set; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30059else
30060 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30061#line $LINENO "configure"
e6cc62c6
VS
30062/* confdefs.h. */
30063_ACEOF
30064cat confdefs.h >>conftest.$ac_ext
30065cat >>conftest.$ac_ext <<_ACEOF
30066/* end confdefs.h. */
009fead0 30067/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30068 which can conflict with char pthread_cancel (); below.
30069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30070 <limits.h> exists even on freestanding compilers. */
30071#ifdef __STDC__
30072# include <limits.h>
30073#else
30074# include <assert.h>
30075#endif
422107f9 30076/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30077#ifdef __cplusplus
30078extern "C"
30079{
30080#endif
422107f9 30081/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30082 builtin and then its argument prototype would still apply. */
30083char pthread_cancel ();
009fead0
VZ
30084/* The GNU C library defines this for functions which it implements
30085 to always fail with ENOSYS. Some functions are actually named
30086 something starting with __ and the normal name is an alias. */
30087#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30088choke me
30089#else
e6cc62c6
VS
30090char (*f) () = pthread_cancel;
30091#endif
30092#ifdef __cplusplus
30093}
009fead0
VZ
30094#endif
30095
e6cc62c6
VS
30096int
30097main ()
30098{
30099return f != pthread_cancel;
30100 ;
30101 return 0;
30102}
30103_ACEOF
30104rm -f conftest.$ac_objext conftest$ac_exeext
30105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 30106 (eval $ac_link) 2>&5
e6cc62c6
VS
30107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); } &&
09d3439c 30110 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30113 ac_status=$?
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; }; then
30116 ac_cv_func_pthread_cancel=yes
30117else
30118 echo "$as_me: failed program was:" >&5
30119sed 's/^/| /' conftest.$ac_ext >&5
30120
30121ac_cv_func_pthread_cancel=no
30122fi
09d3439c 30123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30124fi
30125echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30126echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30127if test $ac_cv_func_pthread_cancel = yes; then
30128 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30129#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 30130_ACEOF
4f14bcd8 30131
698dcdb6 30132else
e6cc62c6
VS
30133 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30134echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
30135fi
30136
5c6fa7d2 30137
4f14bcd8 30138
e6cc62c6
VS
30139
30140 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30141echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30142if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 30144else
e6cc62c6
VS
30145
30146 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30147#line $LINENO "configure"
e6cc62c6
VS
30148/* confdefs.h. */
30149_ACEOF
30150cat confdefs.h >>conftest.$ac_ext
30151cat >>conftest.$ac_ext <<_ACEOF
30152/* end confdefs.h. */
4f14bcd8 30153#include <pthread.h>
e6cc62c6
VS
30154int
30155main ()
30156{
4f14bcd8 30157
7274f1c7
RL
30158 pthread_mutexattr_t attr;
30159 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30160
30161 ;
30162 return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext
30166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 30167 (eval $ac_compile) 2>&5
e6cc62c6
VS
30168 ac_status=$?
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); } &&
09d3439c 30171 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30173 (eval $ac_try) 2>&5
30174 ac_status=$?
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177
7274f1c7 30178 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30179
3fed1840 30180else
e6cc62c6
VS
30181 echo "$as_me: failed program was:" >&5
30182sed 's/^/| /' conftest.$ac_ext >&5
30183
30184
7274f1c7 30185 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30186
30187
247f5006 30188fi
09d3439c 30189rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30190
e6cc62c6
VS
30191fi
30192echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30193echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30194
7274f1c7 30195 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30196 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30197#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30198_ACEOF
4f14bcd8 30199
7274f1c7 30200 else
e6cc62c6
VS
30201 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30202echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30203if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30204 echo $ECHO_N "(cached) $ECHO_C" >&6
30205else
30206
30207 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30208#line $LINENO "configure"
e6cc62c6
VS
30209/* confdefs.h. */
30210_ACEOF
30211cat confdefs.h >>conftest.$ac_ext
30212cat >>conftest.$ac_ext <<_ACEOF
30213/* end confdefs.h. */
4f14bcd8 30214#include <pthread.h>
e6cc62c6
VS
30215int
30216main ()
30217{
4f14bcd8 30218
7274f1c7 30219 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30220
30221 ;
30222 return 0;
30223}
30224_ACEOF
30225rm -f conftest.$ac_objext
30226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 30227 (eval $ac_compile) 2>&5
e6cc62c6
VS
30228 ac_status=$?
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); } &&
09d3439c 30231 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233 (eval $ac_try) 2>&5
30234 ac_status=$?
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; }; then
30237
7274f1c7 30238 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30239
698dcdb6 30240else
e6cc62c6
VS
30241 echo "$as_me: failed program was:" >&5
30242sed 's/^/| /' conftest.$ac_ext >&5
30243
30244
7274f1c7 30245 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30246
30247
247f5006 30248fi
09d3439c 30249rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30250
e6cc62c6
VS
30251fi
30252echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30253echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30254 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30255 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30256#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30257_ACEOF
3fed1840 30258
7274f1c7 30259 else
e6cc62c6
VS
30260 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30261echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30262 fi
30263 fi
7274f1c7 30264 fi
3fed1840 30265
a0b9e27f
MB
30266else
30267 if test "$wxUSE_THREADS" = "yes" ; then
30268 case "${host}" in
30269 *-*-mingw32* )
e6cc62c6
VS
30270 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30271echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30272if test "${wx_cv_cflags_mthread+set}" = set; then
30273 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30274else
e6cc62c6 30275
ca8e52b3
VZ
30276 CFLAGS_OLD="$CFLAGS"
30277 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 30278 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30279#line $LINENO "configure"
e6cc62c6
VS
30280/* confdefs.h. */
30281_ACEOF
30282cat confdefs.h >>conftest.$ac_ext
30283cat >>conftest.$ac_ext <<_ACEOF
30284/* end confdefs.h. */
30285
30286int
30287main ()
30288{
ca8e52b3 30289
e6cc62c6
VS
30290 ;
30291 return 0;
30292}
30293_ACEOF
30294rm -f conftest.$ac_objext
30295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 30296 (eval $ac_compile) 2>&5
e6cc62c6
VS
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } &&
09d3439c 30300 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302 (eval $ac_try) 2>&5
30303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
ca8e52b3
VZ
30306 wx_cv_cflags_mthread=yes
30307else
e6cc62c6
VS
30308 echo "$as_me: failed program was:" >&5
30309sed 's/^/| /' conftest.$ac_ext >&5
30310
30311wx_cv_cflags_mthread=no
30312
ca8e52b3 30313fi
09d3439c 30314rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 30315
ca8e52b3 30316
e6cc62c6
VS
30317fi
30318echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30319echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30320
30321 if test "$wx_cv_cflags_mthread" = "yes"; then
30322 CXXFLAGS="$CXXFLAGS -mthreads"
30323 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30324 LDFLAGS="$LDFLAGS -mthreads"
30325 else
30326 CFLAGS="$CFLAGS_OLD"
30327 fi
a0b9e27f 30328 ;;
73d617c9
MB
30329 *-pc-os2*emx )
30330 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30331 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30332 LDFLAGS="$LDFLAGS -Zmt"
30333 ;;
a0b9e27f
MB
30334 esac
30335 fi
4f14bcd8
GD
30336fi
30337
30338if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30339 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30340#define wxUSE_THREADS 1
e6cc62c6 30341_ACEOF
7b6058cd 30342
8284b0c5 30343
4f14bcd8 30344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30345else
4f14bcd8 30346 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30347 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30348echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30349 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30350 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30351 echo "$as_me:$LINENO: result: yes" >&5
30352echo "${ECHO_T}yes" >&6
4f14bcd8 30353 else
e6cc62c6
VS
30354 echo "$as_me:$LINENO: result: no" >&5
30355echo "${ECHO_T}no" >&6
4f14bcd8
GD
30356 fi
30357 fi
30358fi
30359
30360if test "$WXGTK20" = 1 ; then
e6cc62c6 30361 cat >>confdefs.h <<_ACEOF
4f14bcd8 30362#define __WXGTK20__ $WXGTK20
e6cc62c6 30363_ACEOF
4f14bcd8
GD
30364
30365 WXGTK12=1
10f2d63a 30366fi
4f14bcd8
GD
30367
30368if test "$WXGTK12" = 1 ; then
e6cc62c6 30369 cat >>confdefs.h <<_ACEOF
4f14bcd8 30370#define __WXGTK12__ $WXGTK12
e6cc62c6 30371_ACEOF
4f14bcd8 30372
10f2d63a 30373fi
698dcdb6 30374
4f14bcd8 30375if test "$WXGTK127" = 1 ; then
e6cc62c6 30376 cat >>confdefs.h <<_ACEOF
4f14bcd8 30377#define __WXGTK127__ $WXGTK127
e6cc62c6 30378_ACEOF
4f14bcd8 30379
698dcdb6 30380fi
10f2d63a 30381
4f14bcd8
GD
30382WXDEBUG=
30383
30384if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30385 WXDEBUG="-g"
30386 wxUSE_OPTIMISE=no
698dcdb6 30387fi
4f14bcd8
GD
30388
30389if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30390 wxUSE_DEBUG_INFO=yes
30391 WXDEBUG="-ggdb"
10f2d63a
VZ
30392fi
30393
4f14bcd8 30394if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30395 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30396#define WXDEBUG 1
e6cc62c6 30397_ACEOF
4f14bcd8
GD
30398
30399 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30400else
4f14bcd8
GD
30401 if test "$wxUSE_GTK" = 1 ; then
30402 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30403 fi
30404fi
30405
30406if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30407 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30408#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30409_ACEOF
4f14bcd8 30410
e6cc62c6 30411 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30412#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30413_ACEOF
4f14bcd8 30414
e6cc62c6 30415 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30416#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30417_ACEOF
4f14bcd8
GD
30418
30419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30420fi
30421
30422if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30423 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30424fi
30425
30426PROFILE=
30427if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30428 PROFILE=" -pg"
10f2d63a
VZ
30429fi
30430
009fead0
VZ
30431CODE_GEN_FLAGS=
30432CODE_GEN_FLAGS_CXX=
88e30f2b 30433if test "$GCC" = "yes" ; then
4f14bcd8
GD
30434 if test "$wxUSE_NO_RTTI" = "yes" ; then
30435 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30436 fi
4f14bcd8
GD
30437 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30438 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30439 fi
30440 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30441 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30442 fi
1d1b75ac 30443
2b5f62a0 30444 case "${host}" in
1d1b75ac
VZ
30445 powerpc*-*-aix* )
30446 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30447 ;;
2b5f62a0
VZ
30448 *-hppa* )
30449 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30450 ;;
1d1b75ac 30451 esac
4f14bcd8
GD
30452fi
30453
af7b5345 30454OPTIMISE=
4f14bcd8 30455if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30456 if test "$GCC" = yes ; then
30457 OPTIMISE="-O0"
30458 fi
4f14bcd8
GD
30459else
30460 if test "$GCC" = yes ; then
30461 OPTIMISE="-O2"
af7b5345
VZ
30462
30463 case "${host}" in
4f14bcd8
GD
30464 i586-*-*|i686-*-* )
30465 OPTIMISE="${OPTIMISE} "
30466 ;;
30467 esac
30468 else
30469 OPTIMISE="-O"
30470 fi
30471fi
30472
8d90d2f2 30473
65d8ef1e 30474if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30475 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30476#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30477_ACEOF
4f14bcd8 30478
8d90d2f2
VZ
30479
30480 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30481fi
30482
65d8ef1e 30483if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30484 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30485#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30486_ACEOF
65d8ef1e
VS
30487
30488fi
30489
8284b0c5 30490
10f2d63a 30491if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30492 cat >>confdefs.h <<\_ACEOF
10f2d63a 30493#define wxUSE_GUI 1
e6cc62c6 30494_ACEOF
10f2d63a 30495
8284b0c5 30496
10f2d63a 30497 else
e6cc62c6 30498 cat >>confdefs.h <<\_ACEOF
10f2d63a 30499#define wxUSE_NOGUI 1
e6cc62c6 30500_ACEOF
10f2d63a
VZ
30501
30502fi
30503
8284b0c5 30504
10f2d63a 30505if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30506 cat >>confdefs.h <<\_ACEOF
10f2d63a 30507#define wxUSE_UNIX 1
e6cc62c6 30508_ACEOF
10f2d63a
VZ
30509
30510fi
30511
8284b0c5 30512
df5168c4
MB
30513if test "$wxUSE_STL" = "yes"; then
30514 cat >>confdefs.h <<\_ACEOF
30515#define wxUSE_STL 1
30516_ACEOF
30517
30518fi
30519
10f2d63a 30520if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30521 cat >>confdefs.h <<\_ACEOF
10f2d63a 30522#define wxUSE_APPLE_IEEE 1
e6cc62c6 30523_ACEOF
10f2d63a
VZ
30524
30525fi
30526
1e6feb95 30527if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30528 cat >>confdefs.h <<\_ACEOF
1e6feb95 30529#define wxUSE_TIMER 1
e6cc62c6 30530_ACEOF
1e6feb95
VZ
30531
30532fi
30533
10f2d63a 30534if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30535 cat >>confdefs.h <<\_ACEOF
10f2d63a 30536#define wxUSE_WAVE 1
e6cc62c6 30537_ACEOF
10f2d63a
VZ
30538
30539fi
30540
1e6feb95 30541if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30542 cat >>confdefs.h <<\_ACEOF
1e6feb95 30543#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30544_ACEOF
1e6feb95
VZ
30545
30546fi
30547
30548if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30549 cat >>confdefs.h <<\_ACEOF
1e6feb95 30550#define wxUSE_STOPWATCH 1
e6cc62c6 30551_ACEOF
1e6feb95
VZ
30552
30553fi
30554
30555if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30556 cat >>confdefs.h <<\_ACEOF
1e6feb95 30557#define wxUSE_DATETIME 1
e6cc62c6 30558_ACEOF
1e6feb95
VZ
30559
30560fi
30561
10f2d63a 30562if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30563 cat >>confdefs.h <<\_ACEOF
10f2d63a 30564#define wxUSE_FILE 1
e6cc62c6 30565_ACEOF
10f2d63a
VZ
30566
30567fi
30568
1e6feb95 30569if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30570 cat >>confdefs.h <<\_ACEOF
1e6feb95 30571#define wxUSE_FFILE 1
e6cc62c6 30572_ACEOF
1e6feb95
VZ
30573
30574fi
30575
24528b0c 30576if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30577 cat >>confdefs.h <<\_ACEOF
24528b0c 30578#define wxUSE_FILESYSTEM 1
e6cc62c6 30579_ACEOF
24528b0c
VS
30580
30581fi
30582
10f2d63a 30583if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30584 cat >>confdefs.h <<\_ACEOF
10f2d63a 30585#define wxUSE_FS_ZIP 1
e6cc62c6 30586_ACEOF
10f2d63a
VZ
30587
30588fi
30589
30590if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30591 cat >>confdefs.h <<\_ACEOF
10f2d63a 30592#define wxUSE_ZIPSTREAM 1
e6cc62c6 30593_ACEOF
10f2d63a
VZ
30594
30595fi
30596
7015ef3a
VZ
30597if test "$wxUSE_GZSTREAM" = "yes"; then
30598 cat >>confdefs.h <<\_ACEOF
30599#define wxUSE_GZSTREAM 1
30600_ACEOF
30601
30602fi
30603
eb4efbdc 30604if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30605 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30606#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30607_ACEOF
eb4efbdc
VZ
30608
30609fi
30610
4f3c5f06 30611if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30612 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30613#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30614_ACEOF
4f3c5f06
VZ
30615
30616fi
30617
10f2d63a 30618if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30619 cat >>confdefs.h <<\_ACEOF
10f2d63a 30620#define wxUSE_BUSYINFO 1
e6cc62c6 30621_ACEOF
10f2d63a
VZ
30622
30623fi
30624
30625if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30626 cat >>confdefs.h <<\_ACEOF
10f2d63a 30627#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30628_ACEOF
10f2d63a
VZ
30629
30630fi
30631
a3a584a7 30632if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30633 cat >>confdefs.h <<\_ACEOF
a3a584a7 30634#define wxUSE_TEXTBUFFER 1
e6cc62c6 30635_ACEOF
a3a584a7
VZ
30636
30637fi
30638
10f2d63a 30639if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30640 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30641 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30642echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30643 else
e6cc62c6 30644 cat >>confdefs.h <<\_ACEOF
10f2d63a 30645#define wxUSE_TEXTFILE 1
e6cc62c6 30646_ACEOF
10f2d63a
VZ
30647
30648 fi
30649fi
30650
30651if test "$wxUSE_CONFIG" = "yes" ; then
30652 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30653 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30654echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30655 else
e6cc62c6 30656 cat >>confdefs.h <<\_ACEOF
10f2d63a 30657#define wxUSE_CONFIG 1
e6cc62c6 30658_ACEOF
10f2d63a
VZ
30659
30660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30661 fi
30662fi
30663
30664if test "$wxUSE_INTL" = "yes" ; then
30665 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30666 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30667echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30668 else
e6cc62c6 30669 cat >>confdefs.h <<\_ACEOF
10f2d63a 30670#define wxUSE_INTL 1
e6cc62c6 30671_ACEOF
10f2d63a
VZ
30672
30673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30674 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30675 fi
30676fi
30677
30678if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30679 cat >>confdefs.h <<\_ACEOF
10f2d63a 30680#define wxUSE_LOG 1
e6cc62c6 30681_ACEOF
10f2d63a 30682
8284b0c5 30683
d73be714 30684 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30685 cat >>confdefs.h <<\_ACEOF
d73be714 30686#define wxUSE_LOGGUI 1
e6cc62c6 30687_ACEOF
d73be714
VZ
30688
30689 fi
30690
30691 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30692 cat >>confdefs.h <<\_ACEOF
d73be714 30693#define wxUSE_LOGWINDOW 1
e6cc62c6 30694_ACEOF
69d27ff7
MB
30695
30696 fi
30697
30698 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30699 cat >>confdefs.h <<\_ACEOF
69d27ff7 30700#define wxUSE_LOG_DIALOG 1
e6cc62c6 30701_ACEOF
d73be714
VZ
30702
30703 fi
10f2d63a
VZ
30704fi
30705
30706if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30707 cat >>confdefs.h <<\_ACEOF
10f2d63a 30708#define wxUSE_LONGLONG 1
e6cc62c6 30709_ACEOF
10f2d63a
VZ
30710
30711fi
30712
e8f65ba6 30713if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30714 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30715#define wxUSE_GEOMETRY 1
e6cc62c6 30716_ACEOF
e8f65ba6
RR
30717
30718fi
30719
10f2d63a 30720if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30721 cat >>confdefs.h <<\_ACEOF
10f2d63a 30722#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30723_ACEOF
10f2d63a 30724
70f7a477 30725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30726fi
30727
30728if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30729 cat >>confdefs.h <<\_ACEOF
10f2d63a 30730#define wxUSE_STREAMS 1
e6cc62c6 30731_ACEOF
10f2d63a
VZ
30732
30733fi
30734
5c6fa7d2 30735
8284b0c5 30736if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30737
30738for ac_func in strptime
83307f33 30739do
e6cc62c6
VS
30740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30741echo "$as_me:$LINENO: checking for $ac_func" >&5
30742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30743if eval "test \"\${$as_ac_var+set}\" = set"; then
30744 echo $ECHO_N "(cached) $ECHO_C" >&6
30745else
30746 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30747#line $LINENO "configure"
e6cc62c6
VS
30748/* confdefs.h. */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h. */
83307f33 30753/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30754 which can conflict with char $ac_func (); below.
30755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30756 <limits.h> exists even on freestanding compilers. */
30757#ifdef __STDC__
30758# include <limits.h>
30759#else
30760# include <assert.h>
30761#endif
83307f33 30762/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30763#ifdef __cplusplus
30764extern "C"
30765{
30766#endif
83307f33 30767/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30768 builtin and then its argument prototype would still apply. */
30769char $ac_func ();
83307f33
VZ
30770/* The GNU C library defines this for functions which it implements
30771 to always fail with ENOSYS. Some functions are actually named
30772 something starting with __ and the normal name is an alias. */
30773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30774choke me
30775#else
e6cc62c6
VS
30776char (*f) () = $ac_func;
30777#endif
30778#ifdef __cplusplus
30779}
83307f33
VZ
30780#endif
30781
e6cc62c6
VS
30782int
30783main ()
30784{
30785return f != $ac_func;
30786 ;
30787 return 0;
30788}
30789_ACEOF
30790rm -f conftest.$ac_objext conftest$ac_exeext
30791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 30792 (eval $ac_link) 2>&5
e6cc62c6
VS
30793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } &&
09d3439c 30796 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30798 (eval $ac_try) 2>&5
30799 ac_status=$?
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); }; }; then
30802 eval "$as_ac_var=yes"
30803else
30804 echo "$as_me: failed program was:" >&5
30805sed 's/^/| /' conftest.$ac_ext >&5
30806
30807eval "$as_ac_var=no"
30808fi
09d3439c 30809rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30810fi
30811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30813if test `eval echo '${'$as_ac_var'}'` = yes; then
30814 cat >>confdefs.h <<_ACEOF
30815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30816_ACEOF
83307f33 30817
83307f33
VZ
30818fi
30819done
30820
5c6fa7d2 30821
e6cc62c6
VS
30822 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30823echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30824if test "${wx_cv_var_timezone+set}" = set; then
30825 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30826else
e6cc62c6
VS
30827
30828 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30829#line $LINENO "configure"
e6cc62c6
VS
30830/* confdefs.h. */
30831_ACEOF
30832cat confdefs.h >>conftest.$ac_ext
30833cat >>conftest.$ac_ext <<_ACEOF
30834/* end confdefs.h. */
360d6699 30835
b4085ce6 30836 #include <time.h>
e6cc62c6
VS
30837
30838int
30839main ()
30840{
360d6699
VZ
30841
30842 int tz;
4f11a343 30843 tz = timezone;
e6cc62c6
VS
30844
30845 ;
30846 return 0;
30847}
30848_ACEOF
30849rm -f conftest.$ac_objext
30850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 30851 (eval $ac_compile) 2>&5
e6cc62c6
VS
30852 ac_status=$?
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); } &&
09d3439c 30855 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; }; then
30861
4f11a343 30862 wx_cv_var_timezone=timezone
e6cc62c6 30863
360d6699 30864else
e6cc62c6
VS
30865 echo "$as_me: failed program was:" >&5
30866sed 's/^/| /' conftest.$ac_ext >&5
30867
30868
30869 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30870#line $LINENO "configure"
e6cc62c6
VS
30871/* confdefs.h. */
30872_ACEOF
30873cat confdefs.h >>conftest.$ac_ext
30874cat >>conftest.$ac_ext <<_ACEOF
30875/* end confdefs.h. */
360d6699 30876
b4085ce6 30877 #include <time.h>
e6cc62c6
VS
30878
30879int
30880main ()
30881{
360d6699
VZ
30882
30883 int tz;
30884 tz = _timezone;
e6cc62c6
VS
30885
30886 ;
30887 return 0;
30888}
30889_ACEOF
30890rm -f conftest.$ac_objext
30891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 30892 (eval $ac_compile) 2>&5
e6cc62c6
VS
30893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); } &&
09d3439c 30896 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30898 (eval $ac_try) 2>&5
30899 ac_status=$?
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); }; }; then
30902
360d6699 30903 wx_cv_var_timezone=_timezone
e6cc62c6 30904
5357c8e8 30905else
e6cc62c6
VS
30906 echo "$as_me: failed program was:" >&5
30907sed 's/^/| /' conftest.$ac_ext >&5
30908
30909
30910 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30911#line $LINENO "configure"
e6cc62c6
VS
30912/* confdefs.h. */
30913_ACEOF
30914cat confdefs.h >>conftest.$ac_ext
30915cat >>conftest.$ac_ext <<_ACEOF
30916/* end confdefs.h. */
5357c8e8 30917
b4085ce6 30918 #include <time.h>
e6cc62c6
VS
30919
30920int
30921main ()
30922{
5357c8e8
VZ
30923
30924 int tz;
4f11a343 30925 tz = __timezone;
e6cc62c6
VS
30926
30927 ;
30928 return 0;
30929}
30930_ACEOF
30931rm -f conftest.$ac_objext
30932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 30933 (eval $ac_compile) 2>&5
e6cc62c6
VS
30934 ac_status=$?
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); } &&
09d3439c 30937 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939 (eval $ac_try) 2>&5
30940 ac_status=$?
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; }; then
30943
4f11a343 30944 wx_cv_var_timezone=__timezone
e6cc62c6 30945
360d6699 30946else
e6cc62c6
VS
30947 echo "$as_me: failed program was:" >&5
30948sed 's/^/| /' conftest.$ac_ext >&5
30949
30950
f9bc1684 30951 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30952 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30953echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30954 fi
e6cc62c6
VS
30955
30956
7b4a847f 30957fi
09d3439c 30958rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30959
30960
5c6fa7d2 30961fi
09d3439c 30962rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30963
30964
247f5006 30965fi
09d3439c 30966rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30967
e6cc62c6
VS
30968
30969fi
30970echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30971echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30972
f9bc1684 30973 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30974 cat >>confdefs.h <<_ACEOF
360d6699 30975#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30976_ACEOF
360d6699 30977
f9bc1684 30978 fi
698dcdb6 30979
e6cc62c6
VS
30980
30981for ac_func in localtime
afc31813 30982do
e6cc62c6
VS
30983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984echo "$as_me:$LINENO: checking for $ac_func" >&5
30985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30986if eval "test \"\${$as_ac_var+set}\" = set"; then
30987 echo $ECHO_N "(cached) $ECHO_C" >&6
30988else
30989 cat >conftest.$ac_ext <<_ACEOF
09d3439c 30990#line $LINENO "configure"
e6cc62c6
VS
30991/* confdefs.h. */
30992_ACEOF
30993cat confdefs.h >>conftest.$ac_ext
30994cat >>conftest.$ac_ext <<_ACEOF
30995/* end confdefs.h. */
afc31813 30996/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30997 which can conflict with char $ac_func (); below.
30998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30999 <limits.h> exists even on freestanding compilers. */
31000#ifdef __STDC__
31001# include <limits.h>
31002#else
31003# include <assert.h>
31004#endif
afc31813 31005/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31006#ifdef __cplusplus
31007extern "C"
31008{
31009#endif
afc31813 31010/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31011 builtin and then its argument prototype would still apply. */
31012char $ac_func ();
afc31813
VZ
31013/* The GNU C library defines this for functions which it implements
31014 to always fail with ENOSYS. Some functions are actually named
31015 something starting with __ and the normal name is an alias. */
31016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31017choke me
31018#else
e6cc62c6
VS
31019char (*f) () = $ac_func;
31020#endif
31021#ifdef __cplusplus
31022}
afc31813
VZ
31023#endif
31024
e6cc62c6
VS
31025int
31026main ()
31027{
31028return f != $ac_func;
31029 ;
31030 return 0;
31031}
31032_ACEOF
31033rm -f conftest.$ac_objext conftest$ac_exeext
31034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 31035 (eval $ac_link) 2>&5
e6cc62c6
VS
31036 ac_status=$?
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); } &&
09d3439c 31039 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31041 (eval $ac_try) 2>&5
31042 ac_status=$?
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); }; }; then
31045 eval "$as_ac_var=yes"
31046else
31047 echo "$as_me: failed program was:" >&5
31048sed 's/^/| /' conftest.$ac_ext >&5
31049
31050eval "$as_ac_var=no"
31051fi
09d3439c 31052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31053fi
31054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31055echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31056if test `eval echo '${'$as_ac_var'}'` = yes; then
31057 cat >>confdefs.h <<_ACEOF
31058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31059_ACEOF
afc31813 31060
afc31813
VZ
31061fi
31062done
31063
5c6fa7d2 31064
8284b0c5 31065 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
31066 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
31067echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
31068if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
31069 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31070else
e6cc62c6
VS
31071
31072 cat >conftest.$ac_ext <<_ACEOF
09d3439c 31073#line $LINENO "configure"
e6cc62c6
VS
31074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
0470b1e6 31079
b4085ce6 31080 #include <time.h>
e6cc62c6
VS
31081
31082int
31083main ()
31084{
0470b1e6
VZ
31085
31086 struct tm tm;
31087 tm.tm_gmtoff++;
e6cc62c6
VS
31088
31089 ;
31090 return 0;
31091}
31092_ACEOF
31093rm -f conftest.$ac_objext
31094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 31095 (eval $ac_compile) 2>&5
e6cc62c6
VS
31096 ac_status=$?
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); } &&
09d3439c 31099 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31101 (eval $ac_try) 2>&5
31102 ac_status=$?
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; }; then
31105
f03a98d8 31106 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 31107
0470b1e6 31108else
e6cc62c6
VS
31109 echo "$as_me: failed program was:" >&5
31110sed 's/^/| /' conftest.$ac_ext >&5
31111
31112wx_cv_struct_tm_has_gmtoff=no
31113
247f5006 31114fi
09d3439c 31115rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31116
e6cc62c6
VS
31117fi
31118echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
31119echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
31120 fi
31121
31122 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 31123 cat >>confdefs.h <<\_ACEOF
6232543b 31124#define WX_GMTOFF_IN_TM 1
e6cc62c6 31125_ACEOF
0470b1e6 31126
3fcdd07b
VZ
31127 fi
31128
e6cc62c6
VS
31129
31130
31131for ac_func in gettimeofday ftime
3fcdd07b 31132do
e6cc62c6
VS
31133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31134echo "$as_me:$LINENO: checking for $ac_func" >&5
31135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31136if eval "test \"\${$as_ac_var+set}\" = set"; then
31137 echo $ECHO_N "(cached) $ECHO_C" >&6
31138else
31139 cat >conftest.$ac_ext <<_ACEOF
09d3439c 31140#line $LINENO "configure"
e6cc62c6
VS
31141/* confdefs.h. */
31142_ACEOF
31143cat confdefs.h >>conftest.$ac_ext
31144cat >>conftest.$ac_ext <<_ACEOF
31145/* end confdefs.h. */
3fcdd07b 31146/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31147 which can conflict with char $ac_func (); below.
31148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31149 <limits.h> exists even on freestanding compilers. */
31150#ifdef __STDC__
31151# include <limits.h>
31152#else
31153# include <assert.h>
31154#endif
3fcdd07b 31155/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31156#ifdef __cplusplus
31157extern "C"
31158{
31159#endif
3fcdd07b 31160/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31161 builtin and then its argument prototype would still apply. */
31162char $ac_func ();
3fcdd07b
VZ
31163/* The GNU C library defines this for functions which it implements
31164 to always fail with ENOSYS. Some functions are actually named
31165 something starting with __ and the normal name is an alias. */
31166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31167choke me
31168#else
e6cc62c6
VS
31169char (*f) () = $ac_func;
31170#endif
31171#ifdef __cplusplus
31172}
3fcdd07b
VZ
31173#endif
31174
e6cc62c6
VS
31175int
31176main ()
31177{
31178return f != $ac_func;
31179 ;
31180 return 0;
31181}
31182_ACEOF
31183rm -f conftest.$ac_objext conftest$ac_exeext
31184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 31185 (eval $ac_link) 2>&5
e6cc62c6
VS
31186 ac_status=$?
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
09d3439c 31189 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
31195 eval "$as_ac_var=yes"
31196else
31197 echo "$as_me: failed program was:" >&5
31198sed 's/^/| /' conftest.$ac_ext >&5
31199
31200eval "$as_ac_var=no"
31201fi
09d3439c 31202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31203fi
31204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31206if test `eval echo '${'$as_ac_var'}'` = yes; then
31207 cat >>confdefs.h <<_ACEOF
31208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31209_ACEOF
3fcdd07b 31210 break
3fcdd07b
VZ
31211fi
31212done
31213
698dcdb6 31214
8284b0c5 31215 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
31216 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31217echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31218if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31220else
31221
31222
31223
31224 ac_ext=cc
5c6fa7d2 31225ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31229
8284b0c5 31230
e6cc62c6 31231 cat >conftest.$ac_ext <<_ACEOF
09d3439c 31232#line $LINENO "configure"
e6cc62c6
VS
31233/* confdefs.h. */
31234_ACEOF
31235cat confdefs.h >>conftest.$ac_ext
31236cat >>conftest.$ac_ext <<_ACEOF
31237/* end confdefs.h. */
afc31813
VZ
31238
31239 #include <sys/time.h>
31240 #include <unistd.h>
e6cc62c6
VS
31241
31242int
31243main ()
31244{
afc31813
VZ
31245
31246 struct timeval tv;
776862b4 31247 gettimeofday(&tv, NULL);
e6cc62c6
VS
31248
31249 ;
31250 return 0;
31251}
31252_ACEOF
31253rm -f conftest.$ac_objext
31254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 31255 (eval $ac_compile) 2>&5
e6cc62c6
VS
31256 ac_status=$?
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } &&
09d3439c 31259 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31261 (eval $ac_try) 2>&5
31262 ac_status=$?
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
afc31813 31265 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31266else
e6cc62c6
VS
31267 echo "$as_me: failed program was:" >&5
31268sed 's/^/| /' conftest.$ac_ext >&5
31269
31270cat >conftest.$ac_ext <<_ACEOF
09d3439c 31271#line $LINENO "configure"
e6cc62c6
VS
31272/* confdefs.h. */
31273_ACEOF
31274cat confdefs.h >>conftest.$ac_ext
31275cat >>conftest.$ac_ext <<_ACEOF
31276/* end confdefs.h. */
afc31813
VZ
31277
31278 #include <sys/time.h>
31279 #include <unistd.h>
e6cc62c6
VS
31280
31281int
31282main ()
31283{
afc31813
VZ
31284
31285 struct timeval tv;
31286 gettimeofday(&tv);
e6cc62c6
VS
31287
31288 ;
31289 return 0;
31290}
31291_ACEOF
31292rm -f conftest.$ac_objext
31293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 31294 (eval $ac_compile) 2>&5
e6cc62c6
VS
31295 ac_status=$?
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
09d3439c 31298 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
afc31813 31304 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31305else
e6cc62c6
VS
31306 echo "$as_me: failed program was:" >&5
31307sed 's/^/| /' conftest.$ac_ext >&5
31308
31309
31310 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31311echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31312 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31313
31314
10f2d63a 31315fi
09d3439c 31316rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 31317
10f2d63a 31318fi
09d3439c 31319rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31320 ac_ext=c
10f2d63a 31321ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31324ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31325
a0b9e27f 31326
e6cc62c6
VS
31327fi
31328echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31329echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31330
afc31813 31331 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31332 cat >>confdefs.h <<\_ACEOF
afc31813 31333#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31334_ACEOF
afc31813
VZ
31335
31336 fi
31337 fi
31338
afc31813
VZ
31339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31340fi
31341
8284b0c5 31342
52127426 31343if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31344 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31345 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31346echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31347 wxUSE_SOCKETS="no"
31348 fi
0feee163 31349fi
b089607b 31350
0feee163
VZ
31351if test "$wxUSE_SOCKETS" = "yes"; then
31352 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31353 echo "$as_me:$LINENO: checking for socket" >&5
31354echo $ECHO_N "checking for socket... $ECHO_C" >&6
31355if test "${ac_cv_func_socket+set}" = set; then
31356 echo $ECHO_N "(cached) $ECHO_C" >&6
31357else
31358 cat >conftest.$ac_ext <<_ACEOF
09d3439c 31359#line $LINENO "configure"
e6cc62c6
VS
31360/* confdefs.h. */
31361_ACEOF
31362cat confdefs.h >>conftest.$ac_ext
31363cat >>conftest.$ac_ext <<_ACEOF
31364/* end confdefs.h. */
c63c7106 31365/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31366 which can conflict with char socket (); below.
31367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31368 <limits.h> exists even on freestanding compilers. */
31369#ifdef __STDC__
31370# include <limits.h>
31371#else
31372# include <assert.h>
31373#endif
c63c7106 31374/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31375#ifdef __cplusplus
31376extern "C"
31377{
31378#endif
c63c7106 31379/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31380 builtin and then its argument prototype would still apply. */
31381char socket ();
c63c7106
VZ
31382/* The GNU C library defines this for functions which it implements
31383 to always fail with ENOSYS. Some functions are actually named
31384 something starting with __ and the normal name is an alias. */
31385#if defined (__stub_socket) || defined (__stub___socket)
31386choke me
31387#else
e6cc62c6
VS
31388char (*f) () = socket;
31389#endif
31390#ifdef __cplusplus
31391}
c63c7106
VZ
31392#endif
31393
e6cc62c6
VS
31394int
31395main ()
31396{
31397return f != socket;
31398 ;
31399 return 0;
31400}
31401_ACEOF
31402rm -f conftest.$ac_objext conftest$ac_exeext
31403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 31404 (eval $ac_link) 2>&5
e6cc62c6
VS
31405 ac_status=$?
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); } &&
09d3439c 31408 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31410 (eval $ac_try) 2>&5
31411 ac_status=$?
31412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413 (exit $ac_status); }; }; then
31414 ac_cv_func_socket=yes
31415else
31416 echo "$as_me: failed program was:" >&5
31417sed 's/^/| /' conftest.$ac_ext >&5
31418
31419ac_cv_func_socket=no
31420fi
09d3439c 31421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31422fi
31423echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31424echo "${ECHO_T}$ac_cv_func_socket" >&6
31425if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31426 :
31427else
0e012a93
VZ
31428
31429 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
31430echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31431if test "${ac_cv_lib_socket_socket+set}" = set; then
31432 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31433else
e6cc62c6 31434 ac_check_lib_save_LIBS=$LIBS
c63c7106 31435LIBS="-lsocket $LIBS"
e6cc62c6 31436cat >conftest.$ac_ext <<_ACEOF
09d3439c 31437#line $LINENO "configure"
e6cc62c6
VS
31438/* confdefs.h. */
31439_ACEOF
31440cat confdefs.h >>conftest.$ac_ext
31441cat >>conftest.$ac_ext <<_ACEOF
31442/* end confdefs.h. */
31443
c63c7106 31444/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31445#ifdef __cplusplus
31446extern "C"
31447#endif
c63c7106 31448/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31449 builtin and then its argument prototype would still apply. */
31450char socket ();
31451int
31452main ()
31453{
31454socket ();
31455 ;
31456 return 0;
31457}
31458_ACEOF
31459rm -f conftest.$ac_objext conftest$ac_exeext
31460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 31461 (eval $ac_link) 2>&5
e6cc62c6
VS
31462 ac_status=$?
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } &&
09d3439c 31465 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31467 (eval $ac_try) 2>&5
31468 ac_status=$?
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); }; }; then
31471 ac_cv_lib_socket_socket=yes
31472else
31473 echo "$as_me: failed program was:" >&5
31474sed 's/^/| /' conftest.$ac_ext >&5
31475
31476ac_cv_lib_socket_socket=no
31477fi
09d3439c 31478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31479LIBS=$ac_check_lib_save_LIBS
31480fi
31481echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31482echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31483if test $ac_cv_lib_socket_socket = yes; then
d558c907 31484 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
31485 INET_LINK="$INET_LINK -lsocket"
31486 fi
c63c7106 31487else
afc31813 31488
0e012a93 31489 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 31490echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 31491 wxUSE_SOCKETS=no
e6cc62c6
VS
31492
31493
6232543b 31494fi
b089607b 31495
e6cc62c6 31496
0e012a93 31497
1e487827 31498fi
afc31813 31499
3a922bb4 31500 fi
0feee163 31501fi
51a9faba 31502
0feee163
VZ
31503if test "$wxUSE_SOCKETS" = "yes" ; then
31504 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31505 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31506echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31507if test "${wx_cv_type_getsockname3+set}" = set; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31509else
e6cc62c6
VS
31510
31511 cat >conftest.$ac_ext <<_ACEOF
09d3439c 31512#line $LINENO "configure"
e6cc62c6
VS
31513/* confdefs.h. */
31514_ACEOF
31515cat confdefs.h >>conftest.$ac_ext
31516cat >>conftest.$ac_ext <<_ACEOF
31517/* end confdefs.h. */
51a9faba 31518
3a922bb4
RL
31519 #include <sys/types.h>
31520 #include <sys/socket.h>
e6cc62c6
VS
31521
31522int
31523main ()
31524{
51a9faba 31525
3a922bb4
RL
31526 socklen_t len;
31527 getsockname(0, 0, &len);
e6cc62c6
VS
31528
31529 ;
31530 return 0;
31531}
31532_ACEOF
31533rm -f conftest.$ac_objext
31534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 31535 (eval $ac_compile) 2>&5
e6cc62c6
VS
31536 ac_status=$?
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } &&
09d3439c 31539 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
51a9faba 31545 wx_cv_type_getsockname3=socklen_t
afc31813 31546else
e6cc62c6
VS
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
31550
9711d31e
GD
31551 CFLAGS_OLD="$CFLAGS"
31552 if test "$GCC" = yes ; then
31553 CFLAGS="$CFLAGS -Werror"
31554 fi
31555
e6cc62c6 31556 cat >conftest.$ac_ext <<_ACEOF
09d3439c 31557#line $LINENO "configure"
e6cc62c6
VS
31558/* confdefs.h. */
31559_ACEOF
31560cat confdefs.h >>conftest.$ac_ext
31561cat >>conftest.$ac_ext <<_ACEOF
31562/* end confdefs.h. */
51a9faba 31563
9711d31e
GD
31564 #include <sys/types.h>
31565 #include <sys/socket.h>
e6cc62c6
VS
31566
31567int
31568main ()
31569{
51a9faba 31570
9711d31e
GD
31571 size_t len;
31572 getsockname(0, 0, &len);
e6cc62c6
VS
31573
31574 ;
31575 return 0;
31576}
31577_ACEOF
31578rm -f conftest.$ac_objext
31579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 31580 (eval $ac_compile) 2>&5
e6cc62c6
VS
31581 ac_status=$?
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); } &&
09d3439c 31584 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31586 (eval $ac_try) 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; }; then
51a9faba 31590 wx_cv_type_getsockname3=size_t
afc31813 31591else
e6cc62c6
VS
31592 echo "$as_me: failed program was:" >&5
31593sed 's/^/| /' conftest.$ac_ext >&5
31594
31595cat >conftest.$ac_ext <<_ACEOF
09d3439c 31596#line $LINENO "configure"
e6cc62c6
VS
31597/* confdefs.h. */
31598_ACEOF
31599cat confdefs.h >>conftest.$ac_ext
31600cat >>conftest.$ac_ext <<_ACEOF
31601/* end confdefs.h. */
51a9faba 31602
9711d31e
GD
31603 #include <sys/types.h>
31604 #include <sys/socket.h>
e6cc62c6
VS
31605
31606int
31607main ()
31608{
51a9faba 31609
9711d31e
GD
31610 int len;
31611 getsockname(0, 0, &len);
e6cc62c6
VS
31612
31613 ;
31614 return 0;
31615}
31616_ACEOF
31617rm -f conftest.$ac_objext
31618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 31619 (eval $ac_compile) 2>&5
e6cc62c6
VS
31620 ac_status=$?
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); } &&
09d3439c 31623 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31625 (eval $ac_try) 2>&5
31626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; }; then
51a9faba 31629 wx_cv_type_getsockname3=int
afc31813 31630else
e6cc62c6
VS
31631 echo "$as_me: failed program was:" >&5
31632sed 's/^/| /' conftest.$ac_ext >&5
31633
31634wx_cv_type_getsockname3=unknown
31635
afc31813 31636fi
09d3439c 31637rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 31638
afc31813 31639fi
09d3439c 31640rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31641
31642 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31643
31644
247f5006 31645fi
09d3439c 31646rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31647
e6cc62c6
VS
31648fi
31649echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31650echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31651
3a922bb4
RL
31652 if test "$wx_cv_type_getsockname3" = "unknown"; then
31653 wxUSE_SOCKETS=no
e6cc62c6
VS
31654 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31655echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31656 else
e6cc62c6 31657 cat >>confdefs.h <<_ACEOF
51a9faba 31658#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31659_ACEOF
51a9faba 31660
3a922bb4 31661 fi
51a9faba
VZ
31662 fi
31663fi
afc31813 31664
51a9faba 31665if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31666 cat >>confdefs.h <<\_ACEOF
afc31813 31667#define wxUSE_SOCKETS 1
e6cc62c6 31668_ACEOF
afc31813 31669
70f7a477 31670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31671fi
31672
3879ecda
VZ
31673if test "$wxUSE_PROTOCOL" = "yes"; then
31674 if test "$wxUSE_SOCKETS" != "yes"; then
31675 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31676echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31677 wxUSE_PROTOCOL=no
31678 fi
31679fi
31680
31681if test "$wxUSE_PROTOCOL" = "yes"; then
31682 cat >>confdefs.h <<\_ACEOF
31683#define wxUSE_PROTOCOL 1
31684_ACEOF
31685
31686
31687 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31688 cat >>confdefs.h <<\_ACEOF
31689#define wxUSE_PROTOCOL_HTTP 1
31690_ACEOF
31691
31692 fi
31693 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31694 cat >>confdefs.h <<\_ACEOF
31695#define wxUSE_PROTOCOL_FTP 1
31696_ACEOF
31697
31698 fi
31699 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31700 cat >>confdefs.h <<\_ACEOF
31701#define wxUSE_PROTOCOL_FILE 1
31702_ACEOF
31703
31704 fi
31705else
31706 if test "$wxUSE_FS_INET" = "yes"; then
31707 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31708echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31709 wxUSE_FS_INET="no"
31710 fi
31711fi
31712
31713if test "$wxUSE_URL" = "yes"; then
31714 if test "$wxUSE_PROTOCOL" != "yes"; then
31715 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31716echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31717 wxUSE_URL=no
31718 fi
31719 if test "$wxUSE_URL" = "yes"; then
31720 cat >>confdefs.h <<\_ACEOF
31721#define wxUSE_URL 1
31722_ACEOF
31723
31724 fi
31725fi
31726
31727if test "$wxUSE_FS_INET" = "yes"; then
31728 cat >>confdefs.h <<\_ACEOF
31729#define wxUSE_FS_INET 1
31730_ACEOF
31731
31732fi
31733
8284b0c5 31734
dc3d889d
VZ
31735if test "$wxUSE_GUI" = "yes"; then
31736
ac0c4cc3 31737 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31738 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31739echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31740 wxUSE_JOYSTICK=no
156b2523
GD
31741 fi
31742
131f235d 31743 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31744 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31745
31746for ac_header in linux/joystick.h
10f2d63a 31747do
e6cc62c6
VS
31748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31749if eval "test \"\${$as_ac_Header+set}\" = set"; then
31750 echo "$as_me:$LINENO: checking for $ac_header" >&5
31751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31752if eval "test \"\${$as_ac_Header+set}\" = set"; then
31753 echo $ECHO_N "(cached) $ECHO_C" >&6
31754fi
31755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31757else
31758 # Is the header compilable?
31759echo "$as_me:$LINENO: checking $ac_header usability" >&5
31760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31761cat >conftest.$ac_ext <<_ACEOF
09d3439c 31762#line $LINENO "configure"
e6cc62c6
VS
31763/* confdefs.h. */
31764_ACEOF
31765cat confdefs.h >>conftest.$ac_ext
31766cat >>conftest.$ac_ext <<_ACEOF
31767/* end confdefs.h. */
31768$ac_includes_default
31769#include <$ac_header>
31770_ACEOF
31771rm -f conftest.$ac_objext
31772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 31773 (eval $ac_compile) 2>&5
e6cc62c6
VS
31774 ac_status=$?
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); } &&
09d3439c 31777 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779 (eval $ac_try) 2>&5
31780 ac_status=$?
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); }; }; then
31783 ac_header_compiler=yes
31784else
31785 echo "$as_me: failed program was:" >&5
31786sed 's/^/| /' conftest.$ac_ext >&5
31787
31788ac_header_compiler=no
31789fi
09d3439c 31790rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31792echo "${ECHO_T}$ac_header_compiler" >&6
31793
31794# Is the header present?
31795echo "$as_me:$LINENO: checking $ac_header presence" >&5
31796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31797cat >conftest.$ac_ext <<_ACEOF
09d3439c 31798#line $LINENO "configure"
e6cc62c6
VS
31799/* confdefs.h. */
31800_ACEOF
31801cat confdefs.h >>conftest.$ac_ext
31802cat >>conftest.$ac_ext <<_ACEOF
31803/* end confdefs.h. */
31804#include <$ac_header>
31805_ACEOF
31806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31808 ac_status=$?
31809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } >/dev/null; then
31814 if test -s conftest.err; then
31815 ac_cpp_err=$ac_c_preproc_warn_flag
31816 else
31817 ac_cpp_err=
31818 fi
31819else
31820 ac_cpp_err=yes
31821fi
31822if test -z "$ac_cpp_err"; then
31823 ac_header_preproc=yes
31824else
31825 echo "$as_me: failed program was:" >&5
31826sed 's/^/| /' conftest.$ac_ext >&5
31827
31828 ac_header_preproc=no
31829fi
31830rm -f conftest.err conftest.$ac_ext
31831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31832echo "${ECHO_T}$ac_header_preproc" >&6
31833
31834# So? What about this header?
09d3439c
VZ
31835case $ac_header_compiler:$ac_header_preproc in
31836 yes:no )
e6cc62c6
VS
31837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
31839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31841 (
31842 cat <<\_ASBOX
31843## ------------------------------------ ##
31844## Report this to bug-autoconf@gnu.org. ##
31845## ------------------------------------ ##
31846_ASBOX
31847 ) |
31848 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 31849 ;;
09d3439c 31850 no:yes )
e6cc62c6
VS
31851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
31853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
31855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31857 (
31858 cat <<\_ASBOX
09d3439c
VZ
31859## ------------------------------------ ##
31860## Report this to bug-autoconf@gnu.org. ##
31861## ------------------------------------ ##
e6cc62c6
VS
31862_ASBOX
31863 ) |
31864 sed "s/^/$as_me: WARNING: /" >&2
31865 ;;
31866esac
31867echo "$as_me:$LINENO: checking for $ac_header" >&5
31868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31869if eval "test \"\${$as_ac_Header+set}\" = set"; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31871else
09d3439c 31872 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31873fi
e6cc62c6
VS
31874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31876
10f2d63a 31877fi
e6cc62c6
VS
31878if test `eval echo '${'$as_ac_Header'}'` = yes; then
31879 cat >>confdefs.h <<_ACEOF
31880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31881_ACEOF
31882
247f5006 31883fi
e6cc62c6 31884
10f2d63a
VZ
31885done
31886
3a922bb4
RL
31887 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31888 wxUSE_JOYSTICK=no
e6cc62c6
VS
31889 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31890echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31891 fi
31892 fi
31893 fi
b089607b 31894
3a922bb4 31895 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31896 cat >>confdefs.h <<\_ACEOF
10f2d63a 31897#define wxUSE_JOYSTICK 1
e6cc62c6 31898_ACEOF
10f2d63a 31899
3a922bb4
RL
31900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31901 fi
dc3d889d
VZ
31902fi
31903
8284b0c5 31904
73d617c9 31905if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 31906
3a922bb4
RL
31907 HAVE_DL_FUNCS=0
31908 HAVE_SHL_FUNCS=0
0b9ab0bd 31909 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31910 if test "$USE_DARWIN" = 1; then
31911 HAVE_DL_FUNCS=1
31912 else
e6cc62c6
VS
31913
31914for ac_func in dlopen
10f2d63a 31915do
e6cc62c6
VS
31916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31917echo "$as_me:$LINENO: checking for $ac_func" >&5
31918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31919if eval "test \"\${$as_ac_var+set}\" = set"; then
31920 echo $ECHO_N "(cached) $ECHO_C" >&6
31921else
31922 cat >conftest.$ac_ext <<_ACEOF
09d3439c 31923#line $LINENO "configure"
e6cc62c6
VS
31924/* confdefs.h. */
31925_ACEOF
31926cat confdefs.h >>conftest.$ac_ext
31927cat >>conftest.$ac_ext <<_ACEOF
31928/* end confdefs.h. */
10f2d63a 31929/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31930 which can conflict with char $ac_func (); below.
31931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31932 <limits.h> exists even on freestanding compilers. */
31933#ifdef __STDC__
31934# include <limits.h>
31935#else
31936# include <assert.h>
31937#endif
10f2d63a 31938/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31939#ifdef __cplusplus
31940extern "C"
31941{
31942#endif
10f2d63a 31943/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31944 builtin and then its argument prototype would still apply. */
31945char $ac_func ();
10f2d63a
VZ
31946/* The GNU C library defines this for functions which it implements
31947 to always fail with ENOSYS. Some functions are actually named
31948 something starting with __ and the normal name is an alias. */
31949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31950choke me
31951#else
e6cc62c6
VS
31952char (*f) () = $ac_func;
31953#endif
31954#ifdef __cplusplus
31955}
10f2d63a
VZ
31956#endif
31957
e6cc62c6
VS
31958int
31959main ()
31960{
31961return f != $ac_func;
31962 ;
31963 return 0;
31964}
31965_ACEOF
31966rm -f conftest.$ac_objext conftest$ac_exeext
31967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 31968 (eval $ac_link) 2>&5
e6cc62c6
VS
31969 ac_status=$?
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); } &&
09d3439c 31972 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31974 (eval $ac_try) 2>&5
31975 ac_status=$?
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); }; }; then
31978 eval "$as_ac_var=yes"
31979else
31980 echo "$as_me: failed program was:" >&5
31981sed 's/^/| /' conftest.$ac_ext >&5
31982
31983eval "$as_ac_var=no"
31984fi
09d3439c 31985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31986fi
31987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31989if test `eval echo '${'$as_ac_var'}'` = yes; then
31990 cat >>confdefs.h <<_ACEOF
31991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31992_ACEOF
31993
31994 cat >>confdefs.h <<\_ACEOF
10f2d63a 31995#define HAVE_DLOPEN 1
e6cc62c6 31996_ACEOF
10f2d63a 31997
3a922bb4 31998 HAVE_DL_FUNCS=1
e6cc62c6 31999
10f2d63a 32000else
e6cc62c6
VS
32001
32002 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32003echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
32004if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32005 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 32006else
e6cc62c6 32007 ac_check_lib_save_LIBS=$LIBS
10f2d63a 32008LIBS="-ldl $LIBS"
e6cc62c6 32009cat >conftest.$ac_ext <<_ACEOF
09d3439c 32010#line $LINENO "configure"
e6cc62c6
VS
32011/* confdefs.h. */
32012_ACEOF
32013cat confdefs.h >>conftest.$ac_ext
32014cat >>conftest.$ac_ext <<_ACEOF
32015/* end confdefs.h. */
32016
10f2d63a 32017/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32018#ifdef __cplusplus
32019extern "C"
32020#endif
10f2d63a 32021/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32022 builtin and then its argument prototype would still apply. */
32023char dlopen ();
32024int
32025main ()
32026{
32027dlopen ();
32028 ;
32029 return 0;
32030}
32031_ACEOF
32032rm -f conftest.$ac_objext conftest$ac_exeext
32033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 32034 (eval $ac_link) 2>&5
e6cc62c6
VS
32035 ac_status=$?
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); } &&
09d3439c 32038 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32040 (eval $ac_try) 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; }; then
32044 ac_cv_lib_dl_dlopen=yes
32045else
32046 echo "$as_me: failed program was:" >&5
32047sed 's/^/| /' conftest.$ac_ext >&5
32048
32049ac_cv_lib_dl_dlopen=no
32050fi
09d3439c 32051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32052LIBS=$ac_check_lib_save_LIBS
32053fi
32054echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32055echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
32056if test $ac_cv_lib_dl_dlopen = yes; then
32057
32058 cat >>confdefs.h <<\_ACEOF
10f2d63a 32059#define HAVE_DLOPEN 1
e6cc62c6 32060_ACEOF
10f2d63a 32061
3a922bb4 32062 HAVE_DL_FUNCS=1
3d63bc3a 32063 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 32064
10f2d63a 32065else
10f2d63a 32066
e6cc62c6
VS
32067
32068for ac_func in shl_load
10f2d63a 32069do
e6cc62c6
VS
32070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32071echo "$as_me:$LINENO: checking for $ac_func" >&5
32072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32073if eval "test \"\${$as_ac_var+set}\" = set"; then
32074 echo $ECHO_N "(cached) $ECHO_C" >&6
32075else
32076 cat >conftest.$ac_ext <<_ACEOF
09d3439c 32077#line $LINENO "configure"
e6cc62c6
VS
32078/* confdefs.h. */
32079_ACEOF
32080cat confdefs.h >>conftest.$ac_ext
32081cat >>conftest.$ac_ext <<_ACEOF
32082/* end confdefs.h. */
10f2d63a 32083/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32084 which can conflict with char $ac_func (); below.
32085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32086 <limits.h> exists even on freestanding compilers. */
32087#ifdef __STDC__
32088# include <limits.h>
32089#else
32090# include <assert.h>
32091#endif
10f2d63a 32092/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32093#ifdef __cplusplus
32094extern "C"
32095{
32096#endif
10f2d63a 32097/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32098 builtin and then its argument prototype would still apply. */
32099char $ac_func ();
10f2d63a
VZ
32100/* The GNU C library defines this for functions which it implements
32101 to always fail with ENOSYS. Some functions are actually named
32102 something starting with __ and the normal name is an alias. */
32103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32104choke me
32105#else
e6cc62c6
VS
32106char (*f) () = $ac_func;
32107#endif
32108#ifdef __cplusplus
32109}
10f2d63a
VZ
32110#endif
32111
e6cc62c6
VS
32112int
32113main ()
32114{
32115return f != $ac_func;
32116 ;
32117 return 0;
32118}
32119_ACEOF
32120rm -f conftest.$ac_objext conftest$ac_exeext
32121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 32122 (eval $ac_link) 2>&5
e6cc62c6
VS
32123 ac_status=$?
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } &&
09d3439c 32126 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 eval "$as_ac_var=yes"
32133else
32134 echo "$as_me: failed program was:" >&5
32135sed 's/^/| /' conftest.$ac_ext >&5
32136
32137eval "$as_ac_var=no"
32138fi
09d3439c 32139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32140fi
32141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32143if test `eval echo '${'$as_ac_var'}'` = yes; then
32144 cat >>confdefs.h <<_ACEOF
32145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32146_ACEOF
32147
32148 cat >>confdefs.h <<\_ACEOF
10f2d63a 32149#define HAVE_SHL_LOAD 1
e6cc62c6 32150_ACEOF
10f2d63a 32151
3a922bb4 32152 HAVE_SHL_FUNCS=1
e6cc62c6 32153
10f2d63a 32154else
e6cc62c6
VS
32155
32156 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32157echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32158if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32159 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32160else
e6cc62c6 32161 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32162LIBS="-lshl_load $LIBS"
e6cc62c6 32163cat >conftest.$ac_ext <<_ACEOF
09d3439c 32164#line $LINENO "configure"
e6cc62c6
VS
32165/* confdefs.h. */
32166_ACEOF
32167cat confdefs.h >>conftest.$ac_ext
32168cat >>conftest.$ac_ext <<_ACEOF
32169/* end confdefs.h. */
32170
8284b0c5 32171/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32172#ifdef __cplusplus
32173extern "C"
32174#endif
f6bcfd97 32175/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32176 builtin and then its argument prototype would still apply. */
32177char dld ();
32178int
32179main ()
32180{
32181dld ();
32182 ;
32183 return 0;
32184}
32185_ACEOF
32186rm -f conftest.$ac_objext conftest$ac_exeext
32187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 32188 (eval $ac_link) 2>&5
e6cc62c6
VS
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); } &&
09d3439c 32192 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32194 (eval $ac_try) 2>&5
32195 ac_status=$?
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; }; then
32198 ac_cv_lib_shl_load_dld=yes
32199else
32200 echo "$as_me: failed program was:" >&5
32201sed 's/^/| /' conftest.$ac_ext >&5
32202
32203ac_cv_lib_shl_load_dld=no
32204fi
09d3439c 32205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32206LIBS=$ac_check_lib_save_LIBS
32207fi
32208echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32209echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32210if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 32211
3a922bb4 32212 HAVE_SHL_FUNCS=1
3d63bc3a 32213 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 32214
f6bcfd97
BP
32215fi
32216
e6cc62c6 32217
10f2d63a
VZ
32218fi
32219done
32220
e6cc62c6 32221
10f2d63a
VZ
32222fi
32223
e6cc62c6 32224
10f2d63a
VZ
32225fi
32226done
32227
5c6fa7d2 32228
8284b0c5 32229 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32230
32231for ac_func in dlerror
f6bcfd97 32232do
e6cc62c6
VS
32233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32234echo "$as_me:$LINENO: checking for $ac_func" >&5
32235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32236if eval "test \"\${$as_ac_var+set}\" = set"; then
32237 echo $ECHO_N "(cached) $ECHO_C" >&6
32238else
32239 cat >conftest.$ac_ext <<_ACEOF
09d3439c 32240#line $LINENO "configure"
e6cc62c6
VS
32241/* confdefs.h. */
32242_ACEOF
32243cat confdefs.h >>conftest.$ac_ext
32244cat >>conftest.$ac_ext <<_ACEOF
32245/* end confdefs.h. */
f6bcfd97 32246/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32247 which can conflict with char $ac_func (); below.
32248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32249 <limits.h> exists even on freestanding compilers. */
32250#ifdef __STDC__
32251# include <limits.h>
32252#else
32253# include <assert.h>
32254#endif
f6bcfd97 32255/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32256#ifdef __cplusplus
32257extern "C"
32258{
32259#endif
f6bcfd97 32260/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32261 builtin and then its argument prototype would still apply. */
32262char $ac_func ();
f6bcfd97
BP
32263/* The GNU C library defines this for functions which it implements
32264 to always fail with ENOSYS. Some functions are actually named
32265 something starting with __ and the normal name is an alias. */
32266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32267choke me
32268#else
e6cc62c6
VS
32269char (*f) () = $ac_func;
32270#endif
32271#ifdef __cplusplus
32272}
f6bcfd97
BP
32273#endif
32274
e6cc62c6
VS
32275int
32276main ()
32277{
32278return f != $ac_func;
32279 ;
32280 return 0;
32281}
32282_ACEOF
32283rm -f conftest.$ac_objext conftest$ac_exeext
32284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 32285 (eval $ac_link) 2>&5
e6cc62c6
VS
32286 ac_status=$?
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); } &&
09d3439c 32289 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291 (eval $ac_try) 2>&5
32292 ac_status=$?
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; }; then
32295 eval "$as_ac_var=yes"
32296else
32297 echo "$as_me: failed program was:" >&5
32298sed 's/^/| /' conftest.$ac_ext >&5
32299
32300eval "$as_ac_var=no"
32301fi
09d3439c 32302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32303fi
32304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32306if test `eval echo '${'$as_ac_var'}'` = yes; then
32307 cat >>confdefs.h <<_ACEOF
32308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32309_ACEOF
32310 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32311#define HAVE_DLERROR 1
e6cc62c6 32312_ACEOF
f6bcfd97
BP
32313
32314else
0e012a93
VZ
32315
32316 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
32317echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32318if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32320else
e6cc62c6 32321 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32322LIBS="-ldl $LIBS"
e6cc62c6 32323cat >conftest.$ac_ext <<_ACEOF
09d3439c 32324#line $LINENO "configure"
e6cc62c6
VS
32325/* confdefs.h. */
32326_ACEOF
32327cat confdefs.h >>conftest.$ac_ext
32328cat >>conftest.$ac_ext <<_ACEOF
32329/* end confdefs.h. */
32330
f6bcfd97 32331/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32332#ifdef __cplusplus
32333extern "C"
32334#endif
f6bcfd97 32335/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32336 builtin and then its argument prototype would still apply. */
32337char dlerror ();
32338int
32339main ()
32340{
32341dlerror ();
32342 ;
32343 return 0;
32344}
32345_ACEOF
32346rm -f conftest.$ac_objext conftest$ac_exeext
32347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 32348 (eval $ac_link) 2>&5
e6cc62c6
VS
32349 ac_status=$?
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); } &&
09d3439c 32352 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32354 (eval $ac_try) 2>&5
32355 ac_status=$?
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; }; then
32358 ac_cv_lib_dl_dlerror=yes
32359else
32360 echo "$as_me: failed program was:" >&5
32361sed 's/^/| /' conftest.$ac_ext >&5
32362
32363ac_cv_lib_dl_dlerror=no
32364fi
09d3439c 32365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32366LIBS=$ac_check_lib_save_LIBS
32367fi
32368echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32369echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32370if test $ac_cv_lib_dl_dlerror = yes; then
32371 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32372#define HAVE_DLERROR 1
e6cc62c6 32373_ACEOF
f6bcfd97 32374
f6bcfd97
BP
32375fi
32376
0e012a93
VZ
32377
32378
f6bcfd97
BP
32379fi
32380done
32381
3a922bb4
RL
32382 fi
32383 fi
f6bcfd97 32384
3a922bb4
RL
32385 if test "$HAVE_DL_FUNCS" = 0; then
32386 if test "$HAVE_SHL_FUNCS" = 0; then
32387 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32388 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32389echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32390 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32391 wxUSE_DYNLIB_CLASS=no
32392 else
e6cc62c6
VS
32393 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32394echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32395 fi
32396 fi
10f2d63a
VZ
32397 fi
32398 fi
32399fi
32400
0b9ab0bd 32401if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32402 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32403#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32404_ACEOF
0b9ab0bd 32405
1948bb32
VS
32406fi
32407if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32408 cat >>confdefs.h <<\_ACEOF
10f2d63a 32409#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32410_ACEOF
10f2d63a
VZ
32411
32412fi
32413
8284b0c5 32414
1e6feb95 32415if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32416 cat >>confdefs.h <<\_ACEOF
1e6feb95 32417#define wxUSE_FONTMAP 1
e6cc62c6 32418_ACEOF
1e6feb95
VZ
32419
32420fi
32421
10f2d63a 32422if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32423 cat >>confdefs.h <<\_ACEOF
10f2d63a 32424#define wxUSE_UNICODE 1
e6cc62c6 32425_ACEOF
10f2d63a 32426
8284b0c5 32427
eb854003 32428 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32429 wxUSE_UNICODE_MSLU=no
32430 fi
a72a4bfa 32431
eb854003 32432 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32433 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32434echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32435if test "${ac_cv_lib_unicows_main+set}" = set; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32437else
e6cc62c6 32438 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32439LIBS="-lunicows $LIBS"
e6cc62c6 32440cat >conftest.$ac_ext <<_ACEOF
09d3439c 32441#line $LINENO "configure"
e6cc62c6
VS
32442/* confdefs.h. */
32443_ACEOF
32444cat confdefs.h >>conftest.$ac_ext
32445cat >>conftest.$ac_ext <<_ACEOF
32446/* end confdefs.h. */
a72a4bfa 32447
8284b0c5 32448
e6cc62c6
VS
32449int
32450main ()
32451{
32452main ();
32453 ;
32454 return 0;
32455}
32456_ACEOF
32457rm -f conftest.$ac_objext conftest$ac_exeext
32458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 32459 (eval $ac_link) 2>&5
e6cc62c6
VS
32460 ac_status=$?
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } &&
09d3439c 32463 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32465 (eval $ac_try) 2>&5
32466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; }; then
32469 ac_cv_lib_unicows_main=yes
32470else
32471 echo "$as_me: failed program was:" >&5
32472sed 's/^/| /' conftest.$ac_ext >&5
32473
32474ac_cv_lib_unicows_main=no
32475fi
09d3439c 32476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32477LIBS=$ac_check_lib_save_LIBS
32478fi
32479echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32480echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32481if test $ac_cv_lib_unicows_main = yes; then
32482
32483 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32484#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32485_ACEOF
32486
a72a4bfa 32487
a72a4bfa 32488else
a72a4bfa 32489
e6cc62c6
VS
32490 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32491 Applications will only run on Windows NT/2000/XP!" >&5
32492echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32493 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32494 wxUSE_UNICODE_MSLU=no
e6cc62c6 32495
a72a4bfa
VS
32496fi
32497
32498 fi
10f2d63a
VZ
32499fi
32500
10f2d63a 32501if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32502 cat >>confdefs.h <<\_ACEOF
10f2d63a 32503#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32504_ACEOF
10f2d63a
VZ
32505
32506fi
32507
8284b0c5 32508
10f2d63a 32509if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32510 cat >>confdefs.h <<\_ACEOF
10f2d63a 32511#define wxUSE_POSTSCRIPT 1
e6cc62c6 32512_ACEOF
10f2d63a
VZ
32513
32514fi
32515
e6cc62c6 32516cat >>confdefs.h <<\_ACEOF
10f2d63a 32517#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32518_ACEOF
10f2d63a 32519
8284b0c5 32520
e6cc62c6 32521cat >>confdefs.h <<\_ACEOF
10f2d63a 32522#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32523_ACEOF
10f2d63a 32524
8284b0c5
MB
32525
32526
10f2d63a 32527if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32528 cat >>confdefs.h <<\_ACEOF
10f2d63a 32529#define wxUSE_CONSTRAINTS 1
e6cc62c6 32530_ACEOF
10f2d63a
VZ
32531
32532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32533fi
32534
3879ecda 32535if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32536 cat >>confdefs.h <<\_ACEOF
10f2d63a 32537#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32538_ACEOF
10f2d63a 32539
1772d20c 32540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32541fi
32542
32543if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32544 cat >>confdefs.h <<\_ACEOF
10f2d63a 32545#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32546_ACEOF
10f2d63a
VZ
32547
32548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32549 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32551 fi
32552fi
32553
32554if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32555 cat >>confdefs.h <<\_ACEOF
10f2d63a 32556#define wxUSE_HELP 1
e6cc62c6 32557_ACEOF
10f2d63a
VZ
32558
32559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32560
77e13408 32561 if test "$wxUSE_MSW" = 1; then
031d8228 32562 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32563 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32564#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32565_ACEOF
29fd3c0c 32566
3e44f09d 32567 fi
3379ed37 32568 fi
031d8228
VS
32569
32570 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32571 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32572 cat >>confdefs.h <<\_ACEOF
031d8228 32573#define wxUSE_WXHTML_HELP 1
e6cc62c6 32574_ACEOF
031d8228
VS
32575
32576 else
e6cc62c6
VS
32577 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32578echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32579 wxUSE_WXHTML_HELP=no
32580 fi
32581 fi
10f2d63a
VZ
32582fi
32583
32584if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32585 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32586 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32587echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32588 else
e6cc62c6 32589 cat >>confdefs.h <<\_ACEOF
10f2d63a 32590#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32591_ACEOF
10f2d63a
VZ
32592
32593 fi
32594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32595fi
32596
e6cc62c6
VS
32597if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32598 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32599echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32600 { (exit 1); exit 1; }; }
32601fi
32602
32603
32604if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32605 -o "$wxUSE_CLIPBOARD" = "yes" \
32606 -o "$wxUSE_OLE" = "yes" \
32607 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32608
32609for ac_header in ole2.h
32610do
32611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32612if eval "test \"\${$as_ac_Header+set}\" = set"; then
32613 echo "$as_me:$LINENO: checking for $ac_header" >&5
32614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32615if eval "test \"\${$as_ac_Header+set}\" = set"; then
32616 echo $ECHO_N "(cached) $ECHO_C" >&6
32617fi
32618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32620else
32621 # Is the header compilable?
32622echo "$as_me:$LINENO: checking $ac_header usability" >&5
32623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32624cat >conftest.$ac_ext <<_ACEOF
09d3439c 32625#line $LINENO "configure"
e6cc62c6
VS
32626/* confdefs.h. */
32627_ACEOF
32628cat confdefs.h >>conftest.$ac_ext
32629cat >>conftest.$ac_ext <<_ACEOF
32630/* end confdefs.h. */
32631$ac_includes_default
32632#include <$ac_header>
32633_ACEOF
32634rm -f conftest.$ac_objext
32635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 32636 (eval $ac_compile) 2>&5
e6cc62c6
VS
32637 ac_status=$?
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); } &&
09d3439c 32640 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
32646 ac_header_compiler=yes
32647else
32648 echo "$as_me: failed program was:" >&5
32649sed 's/^/| /' conftest.$ac_ext >&5
32650
32651ac_header_compiler=no
32652fi
09d3439c 32653rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
32654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32655echo "${ECHO_T}$ac_header_compiler" >&6
32656
32657# Is the header present?
32658echo "$as_me:$LINENO: checking $ac_header presence" >&5
32659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32660cat >conftest.$ac_ext <<_ACEOF
09d3439c 32661#line $LINENO "configure"
e6cc62c6
VS
32662/* confdefs.h. */
32663_ACEOF
32664cat confdefs.h >>conftest.$ac_ext
32665cat >>conftest.$ac_ext <<_ACEOF
32666/* end confdefs.h. */
32667#include <$ac_header>
32668_ACEOF
32669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32671 ac_status=$?
32672 grep -v '^ *+' conftest.er1 >conftest.err
32673 rm -f conftest.er1
32674 cat conftest.err >&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } >/dev/null; then
32677 if test -s conftest.err; then
32678 ac_cpp_err=$ac_c_preproc_warn_flag
32679 else
32680 ac_cpp_err=
32681 fi
32682else
32683 ac_cpp_err=yes
32684fi
32685if test -z "$ac_cpp_err"; then
32686 ac_header_preproc=yes
32687else
32688 echo "$as_me: failed program was:" >&5
32689sed 's/^/| /' conftest.$ac_ext >&5
32690
32691 ac_header_preproc=no
32692fi
32693rm -f conftest.err conftest.$ac_ext
32694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32695echo "${ECHO_T}$ac_header_preproc" >&6
32696
32697# So? What about this header?
09d3439c
VZ
32698case $ac_header_compiler:$ac_header_preproc in
32699 yes:no )
e6cc62c6
VS
32700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
09d3439c
VZ
32702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32704 (
32705 cat <<\_ASBOX
32706## ------------------------------------ ##
32707## Report this to bug-autoconf@gnu.org. ##
32708## ------------------------------------ ##
32709_ASBOX
32710 ) |
32711 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 32712 ;;
09d3439c 32713 no:yes )
e6cc62c6
VS
32714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
09d3439c
VZ
32716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
32718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32720 (
32721 cat <<\_ASBOX
09d3439c
VZ
32722## ------------------------------------ ##
32723## Report this to bug-autoconf@gnu.org. ##
32724## ------------------------------------ ##
e6cc62c6
VS
32725_ASBOX
32726 ) |
32727 sed "s/^/$as_me: WARNING: /" >&2
32728 ;;
32729esac
32730echo "$as_me:$LINENO: checking for $ac_header" >&5
32731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32732if eval "test \"\${$as_ac_Header+set}\" = set"; then
32733 echo $ECHO_N "(cached) $ECHO_C" >&6
32734else
09d3439c 32735 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
32736fi
32737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32739
10f2d63a 32740fi
e6cc62c6
VS
32741if test `eval echo '${'$as_ac_Header'}'` = yes; then
32742 cat >>confdefs.h <<_ACEOF
32743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32744_ACEOF
10f2d63a 32745
10f2d63a 32746fi
e6cc62c6 32747
10f2d63a
VZ
32748done
32749
8284b0c5 32750
2b9bdf71
VZ
32751 if test "$ac_cv_header_ole2_h" = "yes" ; then
32752 if test "$GCC" = yes ; then
8284b0c5
MB
32753
32754
e6cc62c6
VS
32755 ac_ext=cc
32756ac_cpp='$CXXCPP $CPPFLAGS'
32757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32760
32761
32762 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32763echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32764 cat >conftest.$ac_ext <<_ACEOF
09d3439c 32765#line $LINENO "configure"
e6cc62c6
VS
32766/* confdefs.h. */
32767_ACEOF
32768cat confdefs.h >>conftest.$ac_ext
32769cat >>conftest.$ac_ext <<_ACEOF
32770/* end confdefs.h. */
8284b0c5
MB
32771#include <windows.h>
32772 #include <ole2.h>
e6cc62c6
VS
32773int
32774main ()
32775{
8284b0c5 32776
e6cc62c6
VS
32777 ;
32778 return 0;
32779}
32780_ACEOF
32781rm -f conftest.$ac_objext
32782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 32783 (eval $ac_compile) 2>&5
e6cc62c6
VS
32784 ac_status=$?
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); } &&
09d3439c 32787 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32789 (eval $ac_try) 2>&5
32790 ac_status=$?
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); }; }; then
32793 echo "$as_me:$LINENO: result: no" >&5
32794echo "${ECHO_T}no" >&6
32795else
32796 echo "$as_me: failed program was:" >&5
32797sed 's/^/| /' conftest.$ac_ext >&5
32798
32799echo "$as_me:$LINENO: result: yes" >&5
32800echo "${ECHO_T}yes" >&6
8284b0c5
MB
32801 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32802fi
09d3439c 32803rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32804 ac_ext=c
8284b0c5 32805ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32808ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32809
2b9bdf71 32810 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32811 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32812 cat >>confdefs.h <<\_ACEOF
4f11a343 32813#define wxUSE_OLE 1
e6cc62c6 32814_ACEOF
4f11a343 32815
8284b0c5 32816
2b9bdf71
VZ
32817 fi
32818
e6cc62c6 32819 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32820#define wxUSE_DATAOBJ 1
e6cc62c6 32821_ACEOF
2b9bdf71
VZ
32822
32823 else
e6cc62c6
VS
32824 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32825echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32826
32827 wxUSE_CLIPBOARD=no
32828 wxUSE_DRAG_AND_DROP=no
32829 wxUSE_DATAOBJ=no
3bce6687
JS
32830 wxUSE_OLE=no
32831 fi
32832
32833 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32834 cat >>confdefs.h <<\_ACEOF
3bce6687 32835#define wxUSE_METAFILE 1
e6cc62c6 32836_ACEOF
3bce6687
JS
32837
32838
e6cc62c6 32839 cat >>confdefs.h <<\_ACEOF
3bce6687 32840#define wxUSE_ENH_METAFILE 1
e6cc62c6 32841_ACEOF
3bce6687
JS
32842
32843 fi
32844fi
32845
2b9bdf71
VZ
32846if test "$wxUSE_IPC" = "yes"; then
32847 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32848 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32849echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32850 fi
32851
e6cc62c6 32852 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32853#define wxUSE_IPC 1
e6cc62c6 32854_ACEOF
2b9bdf71
VZ
32855
32856fi
32857
32858if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32859 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32860 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32861echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32862 wxUSE_CLIPBOARD=no
32863 fi
32864
32865 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32866 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32867#define wxUSE_CLIPBOARD 1
e6cc62c6 32868_ACEOF
2b9bdf71 32869
8284b0c5 32870
e6cc62c6 32871 cat >>confdefs.h <<\_ACEOF
673f4220 32872#define wxUSE_DATAOBJ 1
e6cc62c6 32873_ACEOF
673f4220 32874
6c657b52 32875 fi
2b9bdf71
VZ
32876fi
32877
32878if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32879 if test "$wxUSE_GTK" = 1; then
32880 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32881 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32882echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32883 wxUSE_DRAG_AND_DROP=no
32884 fi
32885 fi
32886
2b9bdf71 32887 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32888 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32889echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32890 wxUSE_DRAG_AND_DROP=no
32891 fi
32892
f79bd02d 32893 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32894 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32895echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32896 wxUSE_DRAG_AND_DROP=no
32897 fi
32898
6c657b52 32899 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32900 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32901echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32902 wxUSE_DRAG_AND_DROP=no
32903 fi
32904
10f2d63a 32905 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32906 cat >>confdefs.h <<\_ACEOF
10f2d63a 32907#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32908_ACEOF
10f2d63a
VZ
32909
32910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32911 fi
32912
32913fi
32914
32915if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32916 cat >>confdefs.h <<\_ACEOF
10f2d63a 32917#define wxUSE_SPLINES 1
e6cc62c6 32918_ACEOF
10f2d63a
VZ
32919
32920fi
32921
8284b0c5 32922
1e6feb95
VZ
32923USES_CONTROLS=0
32924if test "$wxUSE_CONTROLS" = "yes"; then
32925 USES_CONTROLS=1
32926fi
32927
10f2d63a 32928if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32929 cat >>confdefs.h <<\_ACEOF
10f2d63a 32930#define wxUSE_ACCEL 1
e6cc62c6 32931_ACEOF
10f2d63a 32932
1e6feb95
VZ
32933 USES_CONTROLS=1
32934fi
32935
32936if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32937 cat >>confdefs.h <<\_ACEOF
1e6feb95 32938#define wxUSE_BUTTON 1
e6cc62c6 32939_ACEOF
1e6feb95
VZ
32940
32941 USES_CONTROLS=1
32942fi
32943
32944if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32945 cat >>confdefs.h <<\_ACEOF
1e6feb95 32946#define wxUSE_BMPBUTTON 1
e6cc62c6 32947_ACEOF
1e6feb95
VZ
32948
32949 USES_CONTROLS=1
32950fi
32951
32952if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32953 cat >>confdefs.h <<\_ACEOF
1e6feb95 32954#define wxUSE_CALENDARCTRL 1
e6cc62c6 32955_ACEOF
1e6feb95
VZ
32956
32957 USES_CONTROLS=1
32958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32959fi
32960
32961if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32962 cat >>confdefs.h <<\_ACEOF
10f2d63a 32963#define wxUSE_CARET 1
e6cc62c6 32964_ACEOF
10f2d63a 32965
1e6feb95 32966 USES_CONTROLS=1
10f2d63a
VZ
32967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32968fi
32969
32970if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32971 cat >>confdefs.h <<\_ACEOF
10f2d63a 32972#define wxUSE_COMBOBOX 1
e6cc62c6 32973_ACEOF
10f2d63a 32974
1e6feb95 32975 USES_CONTROLS=1
10f2d63a
VZ
32976fi
32977
32978if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32979 cat >>confdefs.h <<\_ACEOF
10f2d63a 32980#define wxUSE_CHOICE 1
e6cc62c6 32981_ACEOF
10f2d63a 32982
1e6feb95 32983 USES_CONTROLS=1
10f2d63a
VZ
32984fi
32985
32986if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32987 cat >>confdefs.h <<\_ACEOF
10f2d63a 32988#define wxUSE_CHECKBOX 1
e6cc62c6 32989_ACEOF
10f2d63a 32990
1e6feb95 32991 USES_CONTROLS=1
10f2d63a
VZ
32992fi
32993
32994if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32995 cat >>confdefs.h <<\_ACEOF
10f2d63a 32996#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32997_ACEOF
10f2d63a 32998
1e6feb95 32999 USES_CONTROLS=1
10f2d63a
VZ
33000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
33001fi
33002
da494b40 33003if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 33004 cat >>confdefs.h <<\_ACEOF
da494b40 33005#define wxUSE_DISPLAY 1
e6cc62c6 33006_ACEOF
da494b40
MB
33007
33008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
33009fi
33010
10f2d63a 33011if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 33012 cat >>confdefs.h <<\_ACEOF
10f2d63a 33013#define wxUSE_GAUGE 1
e6cc62c6 33014_ACEOF
10f2d63a 33015
1e6feb95 33016 USES_CONTROLS=1
10f2d63a
VZ
33017fi
33018
d6a55c4b 33019if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 33020 cat >>confdefs.h <<\_ACEOF
d6a55c4b 33021#define wxUSE_GRID 1
e6cc62c6 33022_ACEOF
10f2d63a 33023
1e6feb95 33024 USES_CONTROLS=1
d6a55c4b 33025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
33026fi
33027
33028if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33029 cat >>confdefs.h <<\_ACEOF
10f2d63a 33030#define wxUSE_IMAGLIST 1
e6cc62c6 33031_ACEOF
10f2d63a
VZ
33032
33033fi
33034
0e012a93
VZ
33035if test "$wxUSE_LISTBOOK" = "yes"; then
33036 cat >>confdefs.h <<\_ACEOF
33037#define wxUSE_LISTBOOK 1
33038_ACEOF
33039
33040 USES_CONTROLS=1
33041fi
33042
10f2d63a 33043if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 33044 cat >>confdefs.h <<\_ACEOF
10f2d63a 33045#define wxUSE_LISTBOX 1
e6cc62c6 33046_ACEOF
10f2d63a 33047
1e6feb95 33048 USES_CONTROLS=1
10f2d63a
VZ
33049fi
33050
33051if test "$wxUSE_LISTCTRL" = "yes"; then
33052 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33053 cat >>confdefs.h <<\_ACEOF
10f2d63a 33054#define wxUSE_LISTCTRL 1
e6cc62c6 33055_ACEOF
10f2d63a 33056
1e6feb95 33057 USES_CONTROLS=1
10f2d63a
VZ
33058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
33059 else
e6cc62c6
VS
33060 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
33061echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33062 fi
33063fi
33064
33065if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 33066 cat >>confdefs.h <<\_ACEOF
10f2d63a 33067#define wxUSE_NOTEBOOK 1
e6cc62c6 33068_ACEOF
10f2d63a 33069
1e6feb95 33070 USES_CONTROLS=1
10f2d63a
VZ
33071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
33072fi
33073
24176f2c 33074
10f2d63a 33075if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 33076 cat >>confdefs.h <<\_ACEOF
10f2d63a 33077#define wxUSE_RADIOBOX 1
e6cc62c6 33078_ACEOF
10f2d63a 33079
1e6feb95 33080 USES_CONTROLS=1
10f2d63a
VZ
33081fi
33082
33083if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 33084 cat >>confdefs.h <<\_ACEOF
10f2d63a 33085#define wxUSE_RADIOBTN 1
e6cc62c6 33086_ACEOF
10f2d63a 33087
1e6feb95 33088 USES_CONTROLS=1
10f2d63a
VZ
33089fi
33090
33091if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 33092 cat >>confdefs.h <<\_ACEOF
10f2d63a 33093#define wxUSE_SASH 1
e6cc62c6 33094_ACEOF
10f2d63a
VZ
33095
33096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
33097fi
33098
33099if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 33100 cat >>confdefs.h <<\_ACEOF
10f2d63a 33101#define wxUSE_SCROLLBAR 1
e6cc62c6 33102_ACEOF
10f2d63a 33103
1e6feb95 33104 USES_CONTROLS=1
741a9306 33105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
33106fi
33107
33108if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 33109 cat >>confdefs.h <<\_ACEOF
10f2d63a 33110#define wxUSE_SLIDER 1
e6cc62c6 33111_ACEOF
10f2d63a 33112
1e6feb95 33113 USES_CONTROLS=1
10f2d63a
VZ
33114fi
33115
33116if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 33117 cat >>confdefs.h <<\_ACEOF
10f2d63a 33118#define wxUSE_SPINBTN 1
e6cc62c6 33119_ACEOF
10f2d63a 33120
1e6feb95 33121 USES_CONTROLS=1
10f2d63a
VZ
33122fi
33123
56cfaa52 33124if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 33125 cat >>confdefs.h <<\_ACEOF
56cfaa52 33126#define wxUSE_SPINCTRL 1
e6cc62c6 33127_ACEOF
56cfaa52 33128
1e6feb95 33129 USES_CONTROLS=1
56cfaa52
RR
33130fi
33131
10f2d63a 33132if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 33133 cat >>confdefs.h <<\_ACEOF
10f2d63a 33134#define wxUSE_SPLITTER 1
e6cc62c6 33135_ACEOF
10f2d63a
VZ
33136
33137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
33138fi
33139
33140if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 33141 cat >>confdefs.h <<\_ACEOF
10f2d63a 33142#define wxUSE_STATBMP 1
e6cc62c6 33143_ACEOF
10f2d63a 33144
1e6feb95 33145 USES_CONTROLS=1
10f2d63a
VZ
33146fi
33147
33148if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 33149 cat >>confdefs.h <<\_ACEOF
10f2d63a 33150#define wxUSE_STATBOX 1
e6cc62c6 33151_ACEOF
10f2d63a 33152
1e6feb95
VZ
33153 USES_CONTROLS=1
33154fi
33155
33156if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 33157 cat >>confdefs.h <<\_ACEOF
1e6feb95 33158#define wxUSE_STATTEXT 1
e6cc62c6 33159_ACEOF
1e6feb95
VZ
33160
33161 USES_CONTROLS=1
10f2d63a
VZ
33162fi
33163
33164if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 33165 cat >>confdefs.h <<\_ACEOF
10f2d63a 33166#define wxUSE_STATLINE 1
e6cc62c6 33167_ACEOF
10f2d63a 33168
89e6bf6d 33169 USES_CONTROLS=1
10f2d63a
VZ
33170fi
33171
33172if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 33173 cat >>confdefs.h <<\_ACEOF
10f2d63a 33174#define wxUSE_STATUSBAR 1
e6cc62c6 33175_ACEOF
10f2d63a 33176
1e6feb95 33177 USES_CONTROLS=1
698dcdb6 33178
2286341c 33179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
33180fi
33181
33182if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 33183 cat >>confdefs.h <<\_ACEOF
10f2d63a 33184#define wxUSE_TAB_DIALOG 1
e6cc62c6 33185_ACEOF
10f2d63a
VZ
33186
33187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33188fi
33189
1e6feb95 33190if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 33191 cat >>confdefs.h <<\_ACEOF
1e6feb95 33192#define wxUSE_TEXTCTRL 1
e6cc62c6 33193_ACEOF
1e6feb95
VZ
33194
33195 USES_CONTROLS=1
33196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33197fi
33198
1db8dc4a 33199if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 33200 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33201 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33202echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
33203 wxUSE_TOGGLEBTN=no
33204 fi
33205 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33206 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33207echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
33208 wxUSE_TOGGLEBTN=no
33209 fi
33210
33211 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 33212 cat >>confdefs.h <<\_ACEOF
1db8dc4a 33213#define wxUSE_TOGGLEBTN 1
e6cc62c6 33214_ACEOF
1db8dc4a 33215
1e6feb95 33216 USES_CONTROLS=1
a45d7ab7 33217 fi
1db8dc4a
VZ
33218fi
33219
360d6699 33220if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33221 cat >>confdefs.h <<\_ACEOF
360d6699 33222#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33223_ACEOF
360d6699
VZ
33224
33225 wxUSE_TOOLBAR="yes"
1e6feb95 33226 USES_CONTROLS=1
360d6699
VZ
33227fi
33228
10f2d63a 33229if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33230 cat >>confdefs.h <<\_ACEOF
10f2d63a 33231#define wxUSE_TOOLBAR 1
e6cc62c6 33232_ACEOF
10f2d63a 33233
1e6feb95 33234 USES_CONTROLS=1
698dcdb6 33235
360d6699
VZ
33236 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33237 wxUSE_TOOLBAR_NATIVE="yes"
33238 fi
33239
1e6feb95 33240 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33241 cat >>confdefs.h <<\_ACEOF
360d6699 33242#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33243_ACEOF
360d6699 33244
1e6feb95
VZ
33245 USES_CONTROLS=1
33246 fi
33247
33248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33249fi
33250
10f2d63a
VZ
33251if test "$wxUSE_TOOLTIPS" = "yes"; then
33252 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33253 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33254echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33255 else
89e6bf6d 33256 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33257 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33258echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33259 else
e6cc62c6 33260 cat >>confdefs.h <<\_ACEOF
10f2d63a 33261#define wxUSE_TOOLTIPS 1
e6cc62c6 33262_ACEOF
10f2d63a
VZ
33263
33264 fi
33265 fi
33266fi
33267
33268if test "$wxUSE_TREECTRL" = "yes"; then
33269 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33270 cat >>confdefs.h <<\_ACEOF
10f2d63a 33271#define wxUSE_TREECTRL 1
e6cc62c6 33272_ACEOF
10f2d63a 33273
1e6feb95 33274 USES_CONTROLS=1
10f2d63a
VZ
33275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33276 else
e6cc62c6
VS
33277 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33278echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33279 fi
33280fi
33281
9f41d601 33282if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33283 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33284 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33285echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33286 else
833a51f6
MB
33287 if test "$wxUSE_PM" = 1; then
33288 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 33289echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
33290 else
33291 cat >>confdefs.h <<\_ACEOF
9f41d601 33292#define wxUSE_POPUPWIN 1
e6cc62c6 33293_ACEOF
9f41d601 33294
8284b0c5 33295
833a51f6 33296 USES_CONTROLS=1
485cf710 33297 fi
6abe4b65 33298 fi
9f41d601
RR
33299fi
33300
dd964dcc 33301if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33302 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33303 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33304echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33305 else
e6cc62c6 33306 cat >>confdefs.h <<\_ACEOF
dd964dcc 33307#define wxUSE_TIPWINDOW 1
e6cc62c6 33308_ACEOF
dd964dcc 33309
3c011993 33310 fi
dd964dcc
VZ
33311fi
33312
1e6feb95 33313if test "$USES_CONTROLS" = 1; then
e6cc62c6 33314 cat >>confdefs.h <<\_ACEOF
1e6feb95 33315#define wxUSE_CONTROLS 1
e6cc62c6 33316_ACEOF
10f2d63a 33317
10f2d63a
VZ
33318fi
33319
8284b0c5 33320
e46d2a18
VS
33321if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33322 cat >>confdefs.h <<\_ACEOF
33323#define wxUSE_ACCESSIBILITY 1
33324_ACEOF
33325
33326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33327fi
1e6feb95 33328
24fd6d87 33329if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33330 cat >>confdefs.h <<\_ACEOF
24fd6d87 33331#define wxUSE_DRAGIMAGE 1
e6cc62c6 33332_ACEOF
24fd6d87
VZ
33333
33334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33335fi
33336
e46d2a18 33337if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 33338 cat >>confdefs.h <<\_ACEOF
e46d2a18 33339#define wxUSE_EXCEPTIONS 1
e6cc62c6 33340_ACEOF
7bb2947d 33341
e46d2a18
VS
33342fi
33343
33344USE_HTML=0
33345if test "$wxUSE_HTML" = "yes"; then
33346 cat >>confdefs.h <<\_ACEOF
33347#define wxUSE_HTML 1
33348_ACEOF
33349
33350 USE_HTML=1
33351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
33352fi
33353
1e6feb95 33354if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33355 cat >>confdefs.h <<\_ACEOF
1e6feb95 33356#define wxUSE_MENUS 1
e6cc62c6 33357_ACEOF
10f2d63a 33358
1e6feb95 33359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33360fi
33361
1e6feb95 33362if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33363 cat >>confdefs.h <<\_ACEOF
1e6feb95 33364#define wxUSE_METAFILE 1
e6cc62c6 33365_ACEOF
10f2d63a 33366
10f2d63a
VZ
33367fi
33368
1e6feb95 33369if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33370 cat >>confdefs.h <<\_ACEOF
1e6feb95 33371#define wxUSE_MIMETYPE 1
e6cc62c6 33372_ACEOF
10f2d63a 33373
10f2d63a
VZ
33374fi
33375
33376if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33377 cat >>confdefs.h <<\_ACEOF
10f2d63a 33378#define wxUSE_MINIFRAME 1
e6cc62c6 33379_ACEOF
10f2d63a
VZ
33380
33381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33382fi
33383
e46d2a18 33384if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33385 cat >>confdefs.h <<\_ACEOF
e46d2a18 33386#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33387_ACEOF
10f2d63a 33388
e46d2a18
VS
33389 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33390 "$TOOLKIT" = "MOTIF"; then
33391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33392 fi
10f2d63a
VZ
33393fi
33394
e46d2a18 33395
10f2d63a 33396if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33397 cat >>confdefs.h <<\_ACEOF
1e487827 33398#define wxUSE_VALIDATORS 1
e6cc62c6 33399_ACEOF
703e0a69 33400
698dcdb6
VZ
33401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33402fi
33403
edae8572 33404if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33405 cat >>confdefs.h <<\_ACEOF
edae8572 33406#define wxUSE_PALETTE 1
e6cc62c6 33407_ACEOF
edae8572
VZ
33408
33409fi
33410
e46d2a18
VS
33411if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33412 LIBS=" -lunicows $LIBS"
33413fi
33414
33415
698dcdb6 33416if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 33417 cat >>confdefs.h <<\_ACEOF
698dcdb6 33418#define wxUSE_IMAGE 1
e6cc62c6 33419_ACEOF
698dcdb6 33420
698dcdb6 33421
e46d2a18
VS
33422 if test "$wxUSE_GIF" = "yes" ; then
33423 cat >>confdefs.h <<\_ACEOF
698dcdb6 33424#define wxUSE_GIF 1
e6cc62c6 33425_ACEOF
698dcdb6 33426
e46d2a18 33427 fi
698dcdb6 33428
e46d2a18
VS
33429 if test "$wxUSE_PCX" = "yes" ; then
33430 cat >>confdefs.h <<\_ACEOF
698dcdb6 33431#define wxUSE_PCX 1
e6cc62c6 33432_ACEOF
698dcdb6 33433
e46d2a18 33434 fi
698dcdb6 33435
e46d2a18
VS
33436 if test "$wxUSE_IFF" = "yes" ; then
33437 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33438#define wxUSE_IFF 1
e6cc62c6 33439_ACEOF
4b6b4dfc 33440
e46d2a18 33441 fi
4b6b4dfc 33442
e46d2a18
VS
33443 if test "$wxUSE_PNM" = "yes" ; then
33444 cat >>confdefs.h <<\_ACEOF
698dcdb6 33445#define wxUSE_PNM 1
e6cc62c6 33446_ACEOF
698dcdb6 33447
e46d2a18 33448 fi
698dcdb6 33449
e46d2a18
VS
33450 if test "$wxUSE_XPM" = "yes" ; then
33451 cat >>confdefs.h <<\_ACEOF
698dcdb6 33452#define wxUSE_XPM 1
e6cc62c6 33453_ACEOF
698dcdb6 33454
e46d2a18 33455 fi
698dcdb6 33456
e46d2a18
VS
33457 if test "$wxUSE_ICO_CUR" = "yes" ; then
33458 cat >>confdefs.h <<\_ACEOF
658974ae 33459#define wxUSE_ICO_CUR 1
e6cc62c6 33460_ACEOF
658974ae 33461
e46d2a18 33462 fi
a72a4bfa
VS
33463fi
33464
8284b0c5 33465
1e6feb95 33466if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33467 cat >>confdefs.h <<\_ACEOF
1e6feb95 33468#define wxUSE_CHOICEDLG 1
e6cc62c6 33469_ACEOF
1e6feb95
VZ
33470
33471fi
33472
33473if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33474 cat >>confdefs.h <<\_ACEOF
1e6feb95 33475#define wxUSE_COLOURDLG 1
e6cc62c6 33476_ACEOF
1e6feb95
VZ
33477
33478fi
33479
33480if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33481 cat >>confdefs.h <<\_ACEOF
1e6feb95 33482#define wxUSE_FILEDLG 1
e6cc62c6 33483_ACEOF
1e6feb95
VZ
33484
33485fi
33486
8db37e06 33487if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33488 cat >>confdefs.h <<\_ACEOF
8db37e06 33489#define wxUSE_FINDREPLDLG 1
e6cc62c6 33490_ACEOF
8db37e06
VZ
33491
33492fi
33493
1e6feb95 33494if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33495 cat >>confdefs.h <<\_ACEOF
1e6feb95 33496#define wxUSE_FONTDLG 1
e6cc62c6 33497_ACEOF
1e6feb95
VZ
33498
33499fi
33500
33501if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33502 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33503 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33504echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33505 else
e6cc62c6 33506 cat >>confdefs.h <<\_ACEOF
1e6feb95 33507#define wxUSE_DIRDLG 1
e6cc62c6 33508_ACEOF
1e6feb95 33509
1e6feb95
VZ
33510 fi
33511fi
33512
33513if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33514 cat >>confdefs.h <<\_ACEOF
1e6feb95 33515#define wxUSE_MSGDLG 1
e6cc62c6 33516_ACEOF
1e6feb95
VZ
33517
33518fi
33519
33520if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33521 cat >>confdefs.h <<\_ACEOF
1e6feb95 33522#define wxUSE_NUMBERDLG 1
e6cc62c6 33523_ACEOF
1e6feb95
VZ
33524
33525fi
33526
33527if test "$wxUSE_PROGRESSDLG" = "yes"; then
33528 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33529 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33530echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33531 else
e6cc62c6 33532 cat >>confdefs.h <<\_ACEOF
1e6feb95 33533#define wxUSE_PROGRESSDLG 1
e6cc62c6 33534_ACEOF
1e6feb95
VZ
33535
33536 fi
33537fi
33538
cbca9943 33539if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33540 cat >>confdefs.h <<\_ACEOF
cbca9943 33541#define wxUSE_SPLASH 1
e6cc62c6 33542_ACEOF
cbca9943
VZ
33543
33544fi
33545
1e6feb95
VZ
33546if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33547 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33548 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33549echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33550 else
e6cc62c6 33551 cat >>confdefs.h <<\_ACEOF
1e6feb95 33552#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33553_ACEOF
1e6feb95 33554
7b4a847f
RR
33555 fi
33556fi
579d8138 33557
8284b0c5 33558if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33559 cat >>confdefs.h <<\_ACEOF
8284b0c5 33560#define wxUSE_TEXTDLG 1
e6cc62c6 33561_ACEOF
8284b0c5
MB
33562
33563fi
33564
33565if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33566 cat >>confdefs.h <<\_ACEOF
8284b0c5 33567#define wxUSE_WIZARDDLG 1
e6cc62c6 33568_ACEOF
8284b0c5
MB
33569
33570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33571fi
33572
33573
33574if test "$cross_compiling" = "yes"; then
33575 OSINFO="\"$host\""
33576else
33577 OSINFO=`uname -s -r -m`
33578 OSINFO="\"$OSINFO\""
33579fi
33580
e6cc62c6 33581cat >>confdefs.h <<_ACEOF
8284b0c5 33582#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33583_ACEOF
8284b0c5
MB
33584
33585
33586
33587if test "x$prefix" != "xNONE"; then
33588 wxPREFIX=$prefix
33589else
33590 wxPREFIX=$ac_default_prefix
33591fi
33592
e6cc62c6 33593cat >>confdefs.h <<_ACEOF
8284b0c5 33594#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33595_ACEOF
8284b0c5
MB
33596
33597
e6cc62c6 33598top_builddir_wxconfig=`pwd`
52c71b80 33599
8284b0c5
MB
33600
33601
edd891e2
VS
33602CORE_BASE_LIBS="net base"
33603CORE_GUI_LIBS="adv core"
33604
33605if test "$wxUSE_XML" = "yes" ; then
33606 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33607fi
45293562
VS
33608if test "$wxUSE_ODBC" != "no" ; then
33609 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33610 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33611fi
33612if test "$wxUSE_HTML" = "yes" ; then
33613 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33614fi
33615
57e7d4ac
VS
33616if test "$wxUSE_GUI" != "yes"; then
33617 CORE_GUI_LIBS=""
33618fi
33619
edd891e2
VS
33620
33621
33622
33623
33624
33625
8284b0c5
MB
33626
33627if test "$wxUSE_MAC" = 1 ; then
33628 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33629fi
ac0c4cc3
DE
33630if test "$wxUSE_COCOA" = 1 ; then
33631 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33632fi
8284b0c5
MB
33633
33634
2b5f62a0
VZ
33635LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33636
33637have_cos=0
33638have_floor=0
e6cc62c6 33639
2b5f62a0
VZ
33640for ac_func in cos
33641do
e6cc62c6
VS
33642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33643echo "$as_me:$LINENO: checking for $ac_func" >&5
33644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33645if eval "test \"\${$as_ac_var+set}\" = set"; then
33646 echo $ECHO_N "(cached) $ECHO_C" >&6
33647else
33648 cat >conftest.$ac_ext <<_ACEOF
09d3439c 33649#line $LINENO "configure"
e6cc62c6
VS
33650/* confdefs.h. */
33651_ACEOF
33652cat confdefs.h >>conftest.$ac_ext
33653cat >>conftest.$ac_ext <<_ACEOF
33654/* end confdefs.h. */
2b5f62a0 33655/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33656 which can conflict with char $ac_func (); below.
33657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33658 <limits.h> exists even on freestanding compilers. */
33659#ifdef __STDC__
33660# include <limits.h>
33661#else
33662# include <assert.h>
33663#endif
2b5f62a0 33664/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33665#ifdef __cplusplus
33666extern "C"
33667{
33668#endif
2b5f62a0 33669/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33670 builtin and then its argument prototype would still apply. */
33671char $ac_func ();
2b5f62a0
VZ
33672/* The GNU C library defines this for functions which it implements
33673 to always fail with ENOSYS. Some functions are actually named
33674 something starting with __ and the normal name is an alias. */
33675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33676choke me
33677#else
e6cc62c6
VS
33678char (*f) () = $ac_func;
33679#endif
33680#ifdef __cplusplus
33681}
2b5f62a0
VZ
33682#endif
33683
e6cc62c6
VS
33684int
33685main ()
33686{
33687return f != $ac_func;
33688 ;
33689 return 0;
33690}
33691_ACEOF
33692rm -f conftest.$ac_objext conftest$ac_exeext
33693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 33694 (eval $ac_link) 2>&5
e6cc62c6
VS
33695 ac_status=$?
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); } &&
09d3439c 33698 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33700 (eval $ac_try) 2>&5
33701 ac_status=$?
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); }; }; then
33704 eval "$as_ac_var=yes"
33705else
33706 echo "$as_me: failed program was:" >&5
33707sed 's/^/| /' conftest.$ac_ext >&5
33708
33709eval "$as_ac_var=no"
33710fi
09d3439c 33711rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33712fi
33713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33714echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33715if test `eval echo '${'$as_ac_var'}'` = yes; then
33716 cat >>confdefs.h <<_ACEOF
33717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33718_ACEOF
2b5f62a0 33719 have_cos=1
2b5f62a0
VZ
33720fi
33721done
33722
e6cc62c6 33723
2b5f62a0
VZ
33724for ac_func in floor
33725do
e6cc62c6
VS
33726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33727echo "$as_me:$LINENO: checking for $ac_func" >&5
33728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33729if eval "test \"\${$as_ac_var+set}\" = set"; then
33730 echo $ECHO_N "(cached) $ECHO_C" >&6
33731else
33732 cat >conftest.$ac_ext <<_ACEOF
09d3439c 33733#line $LINENO "configure"
e6cc62c6
VS
33734/* confdefs.h. */
33735_ACEOF
33736cat confdefs.h >>conftest.$ac_ext
33737cat >>conftest.$ac_ext <<_ACEOF
33738/* end confdefs.h. */
2b5f62a0 33739/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33740 which can conflict with char $ac_func (); below.
33741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33742 <limits.h> exists even on freestanding compilers. */
33743#ifdef __STDC__
33744# include <limits.h>
33745#else
33746# include <assert.h>
33747#endif
2b5f62a0 33748/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33749#ifdef __cplusplus
33750extern "C"
33751{
33752#endif
2b5f62a0 33753/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33754 builtin and then its argument prototype would still apply. */
33755char $ac_func ();
2b5f62a0
VZ
33756/* The GNU C library defines this for functions which it implements
33757 to always fail with ENOSYS. Some functions are actually named
33758 something starting with __ and the normal name is an alias. */
33759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33760choke me
33761#else
e6cc62c6
VS
33762char (*f) () = $ac_func;
33763#endif
33764#ifdef __cplusplus
33765}
2b5f62a0
VZ
33766#endif
33767
e6cc62c6
VS
33768int
33769main ()
33770{
33771return f != $ac_func;
33772 ;
33773 return 0;
33774}
33775_ACEOF
33776rm -f conftest.$ac_objext conftest$ac_exeext
33777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 33778 (eval $ac_link) 2>&5
e6cc62c6
VS
33779 ac_status=$?
33780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781 (exit $ac_status); } &&
09d3439c 33782 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33784 (eval $ac_try) 2>&5
33785 ac_status=$?
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); }; }; then
33788 eval "$as_ac_var=yes"
33789else
33790 echo "$as_me: failed program was:" >&5
33791sed 's/^/| /' conftest.$ac_ext >&5
33792
33793eval "$as_ac_var=no"
33794fi
09d3439c 33795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33796fi
33797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33799if test `eval echo '${'$as_ac_var'}'` = yes; then
33800 cat >>confdefs.h <<_ACEOF
33801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33802_ACEOF
2b5f62a0 33803 have_floor=1
2b5f62a0
VZ
33804fi
33805done
33806
e6cc62c6
VS
33807echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33808echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33809if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33810 echo "$as_me:$LINENO: result: yes" >&5
33811echo "${ECHO_T}yes" >&6
2b5f62a0 33812else
e6cc62c6
VS
33813 echo "$as_me:$LINENO: result: no" >&5
33814echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33815 LIBS="$LIBS -lm"
33816 # use different functions to avoid configure caching
33817 have_sin=0
33818 have_ceil=0
e6cc62c6
VS
33819
33820for ac_func in sin
2b5f62a0 33821do
e6cc62c6
VS
33822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33823echo "$as_me:$LINENO: checking for $ac_func" >&5
33824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33825if eval "test \"\${$as_ac_var+set}\" = set"; then
33826 echo $ECHO_N "(cached) $ECHO_C" >&6
33827else
33828 cat >conftest.$ac_ext <<_ACEOF
09d3439c 33829#line $LINENO "configure"
e6cc62c6
VS
33830/* confdefs.h. */
33831_ACEOF
33832cat confdefs.h >>conftest.$ac_ext
33833cat >>conftest.$ac_ext <<_ACEOF
33834/* end confdefs.h. */
2b5f62a0 33835/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33836 which can conflict with char $ac_func (); below.
33837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33838 <limits.h> exists even on freestanding compilers. */
33839#ifdef __STDC__
33840# include <limits.h>
33841#else
33842# include <assert.h>
33843#endif
2b5f62a0 33844/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33845#ifdef __cplusplus
33846extern "C"
33847{
33848#endif
2b5f62a0 33849/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33850 builtin and then its argument prototype would still apply. */
33851char $ac_func ();
2b5f62a0
VZ
33852/* The GNU C library defines this for functions which it implements
33853 to always fail with ENOSYS. Some functions are actually named
33854 something starting with __ and the normal name is an alias. */
33855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33856choke me
33857#else
e6cc62c6
VS
33858char (*f) () = $ac_func;
33859#endif
33860#ifdef __cplusplus
33861}
2b5f62a0
VZ
33862#endif
33863
e6cc62c6
VS
33864int
33865main ()
33866{
33867return f != $ac_func;
33868 ;
33869 return 0;
33870}
33871_ACEOF
33872rm -f conftest.$ac_objext conftest$ac_exeext
33873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 33874 (eval $ac_link) 2>&5
e6cc62c6
VS
33875 ac_status=$?
33876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877 (exit $ac_status); } &&
09d3439c 33878 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33881 ac_status=$?
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; }; then
33884 eval "$as_ac_var=yes"
33885else
33886 echo "$as_me: failed program was:" >&5
33887sed 's/^/| /' conftest.$ac_ext >&5
33888
33889eval "$as_ac_var=no"
33890fi
09d3439c 33891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33892fi
33893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33895if test `eval echo '${'$as_ac_var'}'` = yes; then
33896 cat >>confdefs.h <<_ACEOF
33897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33898_ACEOF
2b5f62a0 33899 have_sin=1
2b5f62a0
VZ
33900fi
33901done
33902
e6cc62c6
VS
33903
33904for ac_func in ceil
2b5f62a0 33905do
e6cc62c6
VS
33906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33907echo "$as_me:$LINENO: checking for $ac_func" >&5
33908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33909if eval "test \"\${$as_ac_var+set}\" = set"; then
33910 echo $ECHO_N "(cached) $ECHO_C" >&6
33911else
33912 cat >conftest.$ac_ext <<_ACEOF
09d3439c 33913#line $LINENO "configure"
e6cc62c6
VS
33914/* confdefs.h. */
33915_ACEOF
33916cat confdefs.h >>conftest.$ac_ext
33917cat >>conftest.$ac_ext <<_ACEOF
33918/* end confdefs.h. */
2b5f62a0 33919/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33920 which can conflict with char $ac_func (); below.
33921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33922 <limits.h> exists even on freestanding compilers. */
33923#ifdef __STDC__
33924# include <limits.h>
33925#else
33926# include <assert.h>
33927#endif
2b5f62a0 33928/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33929#ifdef __cplusplus
33930extern "C"
33931{
33932#endif
2b5f62a0 33933/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33934 builtin and then its argument prototype would still apply. */
33935char $ac_func ();
2b5f62a0
VZ
33936/* The GNU C library defines this for functions which it implements
33937 to always fail with ENOSYS. Some functions are actually named
33938 something starting with __ and the normal name is an alias. */
33939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33940choke me
33941#else
e6cc62c6
VS
33942char (*f) () = $ac_func;
33943#endif
33944#ifdef __cplusplus
33945}
2b5f62a0
VZ
33946#endif
33947
e6cc62c6
VS
33948int
33949main ()
33950{
33951return f != $ac_func;
33952 ;
33953 return 0;
33954}
33955_ACEOF
33956rm -f conftest.$ac_objext conftest$ac_exeext
33957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
09d3439c 33958 (eval $ac_link) 2>&5
e6cc62c6
VS
33959 ac_status=$?
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); } &&
09d3439c 33962 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964 (eval $ac_try) 2>&5
33965 ac_status=$?
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); }; }; then
33968 eval "$as_ac_var=yes"
33969else
33970 echo "$as_me: failed program was:" >&5
33971sed 's/^/| /' conftest.$ac_ext >&5
33972
33973eval "$as_ac_var=no"
33974fi
09d3439c 33975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33976fi
33977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33978echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33979if test `eval echo '${'$as_ac_var'}'` = yes; then
33980 cat >>confdefs.h <<_ACEOF
33981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33982_ACEOF
2b5f62a0 33983 have_ceil=1
2b5f62a0
VZ
33984fi
33985done
33986
e6cc62c6
VS
33987 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33988echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33989 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33990 echo "$as_me:$LINENO: result: yes" >&5
33991echo "${ECHO_T}yes" >&6
2b5f62a0 33992 else
e6cc62c6
VS
33993 echo "$as_me:$LINENO: result: no" >&5
33994echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33995 # not sure we should warn the user, crash, etc.
33996 fi
33997fi
8284b0c5
MB
33998
33999if test "$wxUSE_GUI" = "yes"; then
34000
e6cc62c6 34001
8284b0c5
MB
34002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
34003 drawing dynamic erase event exec font image \
1dd02ac0 34004 minimal propsize rotate shaped widgets render"
b625909c
VS
34005
34006 if test "$wxUSE_MONOLITHIC" != "yes"; then
34007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
34008 fi
8284b0c5
MB
34009else
34010 SAMPLES_SUBDIRS="console"
34011fi
34012
34013
e6cc62c6 34014INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 34015-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 34016
fddeb06b
VS
34017if test "$GXX" = yes ; then
34018 CXXWARNINGS="-Wall"
34019 fi
34020
34021EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34022
95318f7d 34023CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
34024CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34025CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
34026
34027
fddeb06b 34028LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 34029EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 34030EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 34031EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 34032EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
34033if test "$wxUSE_GUI" = "yes"; then
34034 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
34035fi
34b08d2c
VS
34036if test "$wxUSE_OPENGL" = "yes"; then
34037 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
34038fi
fddeb06b
VS
34039
34040LDFLAGS="$LDFLAGS $PROFILE"
34041
8284b0c5
MB
34042if test "$wxUSE_GTK" = 1; then
34043 WXCONFIG_INCLUDE=
34044else
34045 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
34046fi
34047
67c13b6c
VS
34048WXCONFIG_EXTRALIBS="$LIBS"
34049
34050if test "$wxUSE_REGEX" = "builtin" ; then
34051 wxconfig_3rdparty="$wxconfig_3rdparty regex"
34052fi
34053if test "$wxUSE_EXPAT" = "builtin" ; then
34054 wxconfig_3rdparty="$wxconfig_3rdparty expat"
34055fi
34056if test "$wxUSE_ODBC" = "builtin" ; then
34057 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
34058fi
34059if test "$wxUSE_LIBTIFF" = "builtin" ; then
34060 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
34061fi
34062if test "$wxUSE_LIBJPEG" = "builtin" ; then
34063 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
34064fi
34065if test "$wxUSE_LIBPNG" = "builtin" ; then
34066 wxconfig_3rdparty="$wxconfig_3rdparty png"
34067fi
34068if test "$wxUSE_ZLIB" = "builtin" ; then
34069 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
34070fi
bb41dcbe
VS
34071if test "$wxUSE_ODBC" = "builtin" ; then
34072 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
34073fi
67c13b6c
VS
34074
34075for i in $wxconfig_3rdparty ; do
34076 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
34077done
34078
34079
fe0895cf
VS
34080if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
34081 WXUNIV=1
34082else
34083 WXUNIV=0
8284b0c5
MB
34084fi
34085
8284b0c5
MB
34086
34087
34088
34089
34090
34091
34092
672abd7a 34093
9747f85d
VS
34094if test $wxUSE_MONOLITHIC = "yes" ; then
34095 MONOLITHIC=1
34096else
34097 MONOLITHIC=0
34098fi
8284b0c5 34099
bb41dcbe
VS
34100if test $wxUSE_ODBC != "no" ; then
34101 USE_ODBC=1
34102else
34103 USE_ODBC=0
34104fi
34105
029b47ad
VS
34106if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
34107 OFFICIAL_BUILD=1
34108else
34109 OFFICIAL_BUILD=0
34110fi
34111
8ee2dd05
VS
34112
34113
34114
8284b0c5
MB
34115
34116
34117
34118
34119
34120
c74dc163 34121
34b08d2c 34122
672abd7a 34123
cf615ebb 34124
6c67131a
VS
34125
34126
bb41dcbe 34127
3527f29c 34128
89fe663f 34129TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
34130
34131
34132
34133
34134
ea66c762 34135
0f1bc9c2 34136
fe0895cf 34137 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
34138
34139 if test -n "$ac_tool_prefix"; then
34140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34141set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34142echo "$as_me:$LINENO: checking for $ac_word" >&5
34143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34144if test "${ac_cv_prog_RANLIB+set}" = set; then
34145 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34146else
fe0895cf
VS
34147 if test -n "$RANLIB"; then
34148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 34149else
e6cc62c6
VS
34150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34151for as_dir in $PATH
34152do
34153 IFS=$as_save_IFS
34154 test -z "$as_dir" && as_dir=.
34155 for ac_exec_ext in '' $ac_executable_extensions; do
34156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34159 break 2
34160 fi
34161done
34162done
34163
10f2d63a 34164fi
10f2d63a 34165fi
e6cc62c6 34166RANLIB=$ac_cv_prog_RANLIB
fe0895cf 34167if test -n "$RANLIB"; then
e6cc62c6
VS
34168 echo "$as_me:$LINENO: result: $RANLIB" >&5
34169echo "${ECHO_T}$RANLIB" >&6
34170else
34171 echo "$as_me:$LINENO: result: no" >&5
34172echo "${ECHO_T}no" >&6
34173fi
34174
34175fi
34176if test -z "$ac_cv_prog_RANLIB"; then
34177 ac_ct_RANLIB=$RANLIB
34178 # Extract the first word of "ranlib", so it can be a program name with args.
34179set dummy ranlib; ac_word=$2
34180echo "$as_me:$LINENO: checking for $ac_word" >&5
34181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34182if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34183 echo $ECHO_N "(cached) $ECHO_C" >&6
34184else
34185 if test -n "$ac_ct_RANLIB"; then
34186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34187else
34188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34189for as_dir in $PATH
34190do
34191 IFS=$as_save_IFS
34192 test -z "$as_dir" && as_dir=.
34193 for ac_exec_ext in '' $ac_executable_extensions; do
34194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34195 ac_cv_prog_ac_ct_RANLIB="ranlib"
34196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34197 break 2
34198 fi
34199done
34200done
34201
34202 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34203fi
34204fi
34205ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34206if test -n "$ac_ct_RANLIB"; then
34207 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34208echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 34209else
e6cc62c6
VS
34210 echo "$as_me:$LINENO: result: no" >&5
34211echo "${ECHO_T}no" >&6
34212fi
34213
34214 RANLIB=$ac_ct_RANLIB
34215else
34216 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 34217fi
665bbe97 34218
fe0895cf
VS
34219 # Find a good install program. We prefer a C program (faster),
34220# so one script is as good as another. But avoid the broken or
34221# incompatible versions:
34222# SysV /etc/install, /usr/sbin/install
34223# SunOS /usr/etc/install
34224# IRIX /sbin/install
34225# AIX /bin/install
e6cc62c6 34226# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34230# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34231echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34232echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34233if test -z "$INSTALL"; then
e6cc62c6
VS
34234if test "${ac_cv_path_install+set}" = set; then
34235 echo $ECHO_N "(cached) $ECHO_C" >&6
34236else
34237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34238for as_dir in $PATH
34239do
34240 IFS=$as_save_IFS
34241 test -z "$as_dir" && as_dir=.
34242 # Account for people who put trailing slashes in PATH elements.
34243case $as_dir/ in
34244 ./ | .// | /cC/* | \
34245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34246 /usr/ucb/* ) ;;
34247 *)
34248 # OSF1 and SCO ODT 3.0 have their own names for install.
34249 # Don't use installbsd from OSF since it installs stuff as root
34250 # by default.
34251 for ac_prog in ginstall scoinst install; do
34252 for ac_exec_ext in '' $ac_executable_extensions; do
09d3439c
VZ
34253 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34254 if test $ac_prog = install &&
34255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34256 # AIX install. It has an incompatible calling convention.
34257 :
34258 elif test $ac_prog = install &&
34259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34260 # program-specific install script used by HP pwplus--don't use.
34261 :
34262 else
34263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34264 break 3
34265 fi
34266 fi
fe0895cf 34267 done
e6cc62c6
VS
34268 done
34269 ;;
34270esac
34271done
34272
fe0895cf
VS
34273
34274fi
34275 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34276 INSTALL=$ac_cv_path_install
fe0895cf
VS
34277 else
34278 # As a last resort, use the slow shell script. We don't cache a
34279 # path for INSTALL within a source directory, because that will
34280 # break other packages using the cache if that directory is
34281 # removed, or if the path is relative.
e6cc62c6 34282 INSTALL=$ac_install_sh
fe0895cf
VS
34283 fi
34284fi
e6cc62c6
VS
34285echo "$as_me:$LINENO: result: $INSTALL" >&5
34286echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34287
34288# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34289# It thinks the first close brace ends the variable substitution.
34290test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34291
e6cc62c6 34292test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34293
34294test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34295
e6cc62c6
VS
34296 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34297echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34298LN_S=$as_ln_s
34299if test "$LN_S" = "ln -s"; then
34300 echo "$as_me:$LINENO: result: yes" >&5
34301echo "${ECHO_T}yes" >&6
fe0895cf 34302else
e6cc62c6
VS
34303 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34304echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34305fi
34306
34307
e6cc62c6
VS
34308 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34309echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
09d3439c 34310set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
34311if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34312 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34313else
e6cc62c6 34314 cat >conftest.make <<\_ACEOF
fe0895cf 34315all:
e6cc62c6
VS
34316 @echo 'ac_maketemp="$(MAKE)"'
34317_ACEOF
fe0895cf 34318# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34319eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34320if test -n "$ac_maketemp"; then
34321 eval ac_cv_prog_make_${ac_make}_set=yes
34322else
34323 eval ac_cv_prog_make_${ac_make}_set=no
34324fi
e6cc62c6 34325rm -f conftest.make
fe0895cf
VS
34326fi
34327if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34328 echo "$as_me:$LINENO: result: yes" >&5
34329echo "${ECHO_T}yes" >&6
fe0895cf
VS
34330 SET_MAKE=
34331else
e6cc62c6
VS
34332 echo "$as_me:$LINENO: result: no" >&5
34333echo "${ECHO_T}no" >&6
fe0895cf
VS
34334 SET_MAKE="MAKE=${MAKE-make}"
34335fi
34336
e6cc62c6
VS
34337
34338
874d12cf
VS
34339 if test -n "$ac_tool_prefix"; then
34340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34341set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
34342echo "$as_me:$LINENO: checking for $ac_word" >&5
34343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34344if test "${ac_cv_prog_AR+set}" = set; then
34345 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34346else
34347 if test -n "$AR"; then
34348 ac_cv_prog_AR="$AR" # Let the user override the test.
34349else
e6cc62c6
VS
34350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34351for as_dir in $PATH
34352do
34353 IFS=$as_save_IFS
34354 test -z "$as_dir" && as_dir=.
34355 for ac_exec_ext in '' $ac_executable_extensions; do
34356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34357 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
34358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34359 break 2
34360 fi
34361done
34362done
34363
fe0895cf
VS
34364fi
34365fi
e6cc62c6 34366AR=$ac_cv_prog_AR
fe0895cf 34367if test -n "$AR"; then
e6cc62c6
VS
34368 echo "$as_me:$LINENO: result: $AR" >&5
34369echo "${ECHO_T}$AR" >&6
fe0895cf 34370else
e6cc62c6
VS
34371 echo "$as_me:$LINENO: result: no" >&5
34372echo "${ECHO_T}no" >&6
fe0895cf
VS
34373fi
34374
874d12cf
VS
34375fi
34376if test -z "$ac_cv_prog_AR"; then
34377 ac_ct_AR=$AR
34378 # Extract the first word of "ar", so it can be a program name with args.
34379set dummy ar; ac_word=$2
34380echo "$as_me:$LINENO: checking for $ac_word" >&5
34381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34382if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34383 echo $ECHO_N "(cached) $ECHO_C" >&6
34384else
34385 if test -n "$ac_ct_AR"; then
34386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34387else
34388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389for as_dir in $PATH
34390do
34391 IFS=$as_save_IFS
34392 test -z "$as_dir" && as_dir=.
34393 for ac_exec_ext in '' $ac_executable_extensions; do
34394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34395 ac_cv_prog_ac_ct_AR="ar"
34396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34397 break 2
34398 fi
34399done
34400done
34401
34402 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
34403fi
34404fi
34405ac_ct_AR=$ac_cv_prog_ac_ct_AR
34406if test -n "$ac_ct_AR"; then
34407 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34408echo "${ECHO_T}$ac_ct_AR" >&6
34409else
34410 echo "$as_me:$LINENO: result: no" >&5
34411echo "${ECHO_T}no" >&6
34412fi
34413
34414 AR=$ac_ct_AR
34415else
34416 AR="$ac_cv_prog_AR"
34417fi
34418
34419 if test -n "$ac_tool_prefix"; then
34420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34421set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
34422echo "$as_me:$LINENO: checking for $ac_word" >&5
34423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34424if test "${ac_cv_prog_STRIP+set}" = set; then
34425 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34426else
34427 if test -n "$STRIP"; then
34428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34429else
e6cc62c6
VS
34430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34431for as_dir in $PATH
34432do
34433 IFS=$as_save_IFS
34434 test -z "$as_dir" && as_dir=.
34435 for ac_exec_ext in '' $ac_executable_extensions; do
34436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
34438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34439 break 2
34440 fi
34441done
34442done
34443
fe0895cf
VS
34444fi
34445fi
e6cc62c6 34446STRIP=$ac_cv_prog_STRIP
fe0895cf 34447if test -n "$STRIP"; then
e6cc62c6
VS
34448 echo "$as_me:$LINENO: result: $STRIP" >&5
34449echo "${ECHO_T}$STRIP" >&6
fe0895cf 34450else
e6cc62c6
VS
34451 echo "$as_me:$LINENO: result: no" >&5
34452echo "${ECHO_T}no" >&6
fe0895cf
VS
34453fi
34454
874d12cf
VS
34455fi
34456if test -z "$ac_cv_prog_STRIP"; then
34457 ac_ct_STRIP=$STRIP
34458 # Extract the first word of "strip", so it can be a program name with args.
34459set dummy strip; ac_word=$2
34460echo "$as_me:$LINENO: checking for $ac_word" >&5
34461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34462if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34463 echo $ECHO_N "(cached) $ECHO_C" >&6
34464else
34465 if test -n "$ac_ct_STRIP"; then
34466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34467else
34468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34469for as_dir in $PATH
34470do
34471 IFS=$as_save_IFS
34472 test -z "$as_dir" && as_dir=.
34473 for ac_exec_ext in '' $ac_executable_extensions; do
34474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34475 ac_cv_prog_ac_ct_STRIP="strip"
34476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34477 break 2
34478 fi
34479done
34480done
34481
34482 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
34483fi
34484fi
34485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34486if test -n "$ac_ct_STRIP"; then
34487 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34488echo "${ECHO_T}$ac_ct_STRIP" >&6
34489else
34490 echo "$as_me:$LINENO: result: no" >&5
34491echo "${ECHO_T}no" >&6
34492fi
34493
34494 STRIP=$ac_ct_STRIP
34495else
34496 STRIP="$ac_cv_prog_STRIP"
34497fi
34498
34499 if test -n "$ac_tool_prefix"; then
34500 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
34501set dummy ${ac_tool_prefix}nm; ac_word=$2
34502echo "$as_me:$LINENO: checking for $ac_word" >&5
34503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34504if test "${ac_cv_prog_NM+set}" = set; then
34505 echo $ECHO_N "(cached) $ECHO_C" >&6
34506else
34507 if test -n "$NM"; then
34508 ac_cv_prog_NM="$NM" # Let the user override the test.
34509else
34510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34511for as_dir in $PATH
34512do
34513 IFS=$as_save_IFS
34514 test -z "$as_dir" && as_dir=.
34515 for ac_exec_ext in '' $ac_executable_extensions; do
34516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34517 ac_cv_prog_NM="${ac_tool_prefix}nm"
34518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34519 break 2
34520 fi
34521done
34522done
34523
34524fi
34525fi
34526NM=$ac_cv_prog_NM
34527if test -n "$NM"; then
34528 echo "$as_me:$LINENO: result: $NM" >&5
34529echo "${ECHO_T}$NM" >&6
34530else
34531 echo "$as_me:$LINENO: result: no" >&5
34532echo "${ECHO_T}no" >&6
34533fi
34534
34535fi
34536if test -z "$ac_cv_prog_NM"; then
34537 ac_ct_NM=$NM
34538 # Extract the first word of "nm", so it can be a program name with args.
34539set dummy nm; ac_word=$2
34540echo "$as_me:$LINENO: checking for $ac_word" >&5
34541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34542if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
34543 echo $ECHO_N "(cached) $ECHO_C" >&6
34544else
34545 if test -n "$ac_ct_NM"; then
34546 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
34547else
34548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34549for as_dir in $PATH
34550do
34551 IFS=$as_save_IFS
34552 test -z "$as_dir" && as_dir=.
34553 for ac_exec_ext in '' $ac_executable_extensions; do
34554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34555 ac_cv_prog_ac_ct_NM="nm"
34556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34557 break 2
34558 fi
34559done
34560done
34561
34562 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
34563fi
34564fi
34565ac_ct_NM=$ac_cv_prog_ac_ct_NM
34566if test -n "$ac_ct_NM"; then
34567 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
34568echo "${ECHO_T}$ac_ct_NM" >&6
34569else
34570 echo "$as_me:$LINENO: result: no" >&5
34571echo "${ECHO_T}no" >&6
34572fi
34573
34574 NM=$ac_ct_NM
34575else
34576 NM="$ac_cv_prog_NM"
34577fi
34578
fe0895cf
VS
34579
34580 case ${host} in
34581 *-hp-hpux* )
34582 INSTALL_DIR="mkdir"
34583 ;;
34584 *) INSTALL_DIR="$INSTALL -d"
34585 ;;
34586 esac
e6cc62c6 34587
fe0895cf 34588
6b9d41a5
VS
34589 LDFLAGS_GUI=
34590 case ${host} in
34591 *-*-cygwin* | *-*-mingw32* )
34592 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34593 esac
34594
34595
fe0895cf 34596 fi
e6cc62c6
VS
34597
34598 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34599echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34600if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34601 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34602else
e6cc62c6 34603
fe0895cf
VS
34604 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34605 egrep -s GNU > /dev/null); then
34606 bakefile_cv_prog_makeisgnu="yes"
34607 else
34608 bakefile_cv_prog_makeisgnu="no"
34609 fi
fe0895cf 34610
e6cc62c6 34611fi
49b0a3aa
VS
34612echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34613echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34614
34615 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34616 IF_GNU_MAKE=""
34617 else
34618 IF_GNU_MAKE="#"
34619 fi
fe0895cf 34620
e6cc62c6
VS
34621
34622
fe0895cf
VS
34623 PLATFORM_UNIX=0
34624 PLATFORM_WIN32=0
34625 PLATFORM_MSDOS=0
34626 PLATFORM_MAC=0
34627 PLATFORM_MACOSX=0
96c1699d 34628 PLATFORM_OS2=0
e6cc62c6 34629
fe0895cf
VS
34630 case "${host}" in
34631 *-*-cygwin* | *-*-mingw32* )
34632 PLATFORM_WIN32=1
34633 ;;
96c1699d 34634 *-pc-msdosdjgpp )
fe0895cf
VS
34635 PLATFORM_MSDOS=1
34636 ;;
96c1699d
VS
34637 *-pc-os2_emx | *-pc-os2-emx )
34638 PLATFORM_OS2=1
34639 ;;
fe0895cf
VS
34640 powerpc-*-darwin* )
34641 PLATFORM_MAC=1
34642 PLATFORM_MACOSX=1
34643 ;;
34644 * )
34645 PLATFORM_UNIX=1
34646 ;;
34647 esac
34648
fe0895cf 34649
e6cc62c6
VS
34650
34651
34652
34653
34654
34655
96c1699d 34656
fe0895cf 34657 SO_SUFFIX="so"
131f235d 34658 SO_SUFFIX_MODULE="so"
fe0895cf 34659 EXEEXT=""
4b1f6360 34660 LIBPREFIX=lib
fe0895cf 34661 DLLPREFIX=lib
131f235d 34662 DLLPREFIX_MODULE=
e6cc62c6 34663
fe0895cf
VS
34664 case "${host}" in
34665 *-hp-hpux* )
34666 SO_SUFFIX="sl"
131f235d 34667 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34668 ;;
34669 *-*-aix* )
34670 SO_SUFFIX="a"
131f235d 34671 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34672 ;;
34673 *-*-cygwin* | *-*-mingw32* )
34674 SO_SUFFIX="dll"
131f235d 34675 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34676 EXEEXT=".exe"
34677 DLLPREFIX=""
34678 ;;
4b1f6360
VS
34679 *-pc-msdosdjgpp )
34680 EXEEXT=".exe"
34681 DLLPREFIX=""
34682 ;;
34683 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
34684 EXEEXT=".exe"
34685 DLLPREFIX=""
4b1f6360 34686 LIBPREFIX=""
fe0895cf
VS
34687 ;;
34688 powerpc-*-darwin* )
34689 SO_SUFFIX="dylib"
131f235d 34690 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34691 ;;
34692 esac
34693
fe0895cf 34694
e6cc62c6
VS
34695
34696
34697
34698
131f235d
VS
34699
34700
4b1f6360 34701
fe0895cf
VS
34702 SHARED_LD_CC="\$(CC) -shared -o"
34703 SHARED_LD_CXX="\$(CXX) -shared -o"
34704
34705 if test "x$GCC" = "xyes"; then
34706 PIC_FLAG="-fPIC"
34707 fi
34708
34709 case "${host}" in
34710 *-hp-hpux* )
34711 if test "x$GCC" = "xyes"; then
34712 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34713 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34714 else
34715 LDFLAGS="$LDFLAGS -L/usr/lib"
34716
34717 SHARED_LD_CC="${CC} -b -o"
34718 SHARED_LD_CXX="${CXX} -b -o"
34719 PIC_FLAG="+Z"
34720 fi
34721 ;;
34722
34723 *-*-linux* )
34724 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34725 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34726echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34727if test "${bakefile_cv_prog_icc+set}" = set; then
34728 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34729else
fe0895cf 34730
e6cc62c6 34731 cat >conftest.$ac_ext <<_ACEOF
09d3439c 34732#line $LINENO "configure"
e6cc62c6
VS
34733/* confdefs.h. */
34734_ACEOF
34735cat confdefs.h >>conftest.$ac_ext
34736cat >>conftest.$ac_ext <<_ACEOF
34737/* end confdefs.h. */
34738
34739int
34740main ()
34741{
fe0895cf
VS
34742
34743 #ifndef __INTEL_COMPILER
34744 #error Not icc
34745 #endif
e6cc62c6
VS
34746
34747 ;
34748 return 0;
34749}
34750_ACEOF
34751rm -f conftest.$ac_objext
34752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 34753 (eval $ac_compile) 2>&5
e6cc62c6
VS
34754 ac_status=$?
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); } &&
09d3439c 34757 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34759 (eval $ac_try) 2>&5
34760 ac_status=$?
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); }; }; then
fe0895cf
VS
34763 bakefile_cv_prog_icc=yes
34764else
e6cc62c6
VS
34765 echo "$as_me: failed program was:" >&5
34766sed 's/^/| /' conftest.$ac_ext >&5
34767
34768bakefile_cv_prog_icc=no
34769
fe0895cf 34770fi
09d3439c 34771rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34772
e6cc62c6
VS
34773fi
34774echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34775echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34776 if test "$bakefile_cv_prog_icc" = "yes"; then
34777 PIC_FLAG="-KPIC"
34778 fi
34779 fi
34780 ;;
34781
34782 *-*-solaris2* )
34783 if test "x$GCC" != xyes ; then
34784 SHARED_LD_CC="${CC} -G -o"
34785 SHARED_LD_CXX="${CXX} -G -o"
34786 PIC_FLAG="-KPIC"
34787 fi
34788 ;;
34789
34790 *-*-darwin* )
34791 CFLAGS="$CFLAGS -fno-common"
34792 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34793
34794
2a879853 34795 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
34796echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
34797if test "${wx_cv_gcc31+set}" = set; then
34798 echo $ECHO_N "(cached) $ECHO_C" >&6
34799else
34800
2a879853 34801 cat >conftest.$ac_ext <<_ACEOF
09d3439c 34802#line $LINENO "configure"
43948499
RD
34803/* confdefs.h. */
34804_ACEOF
34805cat confdefs.h >>conftest.$ac_ext
34806cat >>conftest.$ac_ext <<_ACEOF
34807/* end confdefs.h. */
34808
34809int
34810main ()
34811{
34812
2a879853
VS
34813 #if (__GNUC__ < 3) || \
34814 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
34815 #error old gcc
34816 #endif
43948499
RD
34817
34818 ;
34819 return 0;
34820}
34821_ACEOF
34822rm -f conftest.$ac_objext
34823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 34824 (eval $ac_compile) 2>&5
43948499
RD
34825 ac_status=$?
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); } &&
09d3439c 34828 { ac_try='test -s conftest.$ac_objext'
43948499
RD
34829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830 (eval $ac_try) 2>&5
34831 ac_status=$?
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); }; }; then
34834
2a879853 34835 wx_cv_gcc31=yes
43948499
RD
34836
34837else
34838 echo "$as_me: failed program was:" >&5
34839sed 's/^/| /' conftest.$ac_ext >&5
34840
34841
2a879853 34842 wx_cv_gcc31=no
43948499
RD
34843
34844
34845fi
09d3439c 34846rm -f conftest.$ac_objext conftest.$ac_ext
43948499
RD
34847
34848fi
34849echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
34850echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 34851 if test "$wx_cv_gcc31" = "no"; then
43948499 34852 cat <<EOF >shared-ld-sh
fe0895cf
VS
34853#!/bin/sh
34854#-----------------------------------------------------------------------------
34855#-- Name: distrib/mac/shared-ld-sh
34856#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34857#-- Author: Gilles Depeyrot
34858#-- Copyright: (c) 2002 Gilles Depeyrot
34859#-- Licence: any use permitted
34860#-----------------------------------------------------------------------------
34861
34862verbose=0
34863args=""
34864objects=""
131f235d 34865linking_flag="-dynamiclib"
fe0895cf
VS
34866
34867while test \${#} -gt 0; do
34868 case \${1} in
34869
34870 -v)
34871 verbose=1
34872 ;;
34873
34874 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34875 # collect these options and values
34876 args="\${args} \${1} \${2}"
34877 shift
34878 ;;
34879
74500461 34880 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
34881 # collect these options
34882 args="\${args} \${1}"
34883 ;;
34884
131f235d
VS
34885 -dynamiclib|-bundle)
34886 linking_flag="\${1}"
fe0895cf
VS
34887 ;;
34888
34889 -*)
34890 echo "shared-ld: unhandled option '\${1}'"
34891 exit 1
34892 ;;
34893
4d264332 34894 *.o | *.a | *.dylib)
fe0895cf
VS
34895 # collect object files
34896 objects="\${objects} \${1}"
34897 ;;
34898
34899 *)
34900 echo "shared-ld: unhandled argument '\${1}'"
34901 exit 1
34902 ;;
34903
34904 esac
34905 shift
34906done
34907
34908#
34909# Link one module containing all the others
34910#
34911if test \${verbose} = 1; then
34912 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34913fi
34914c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34915status=\$?
34916if test \${status} != 0; then
34917 exit \${status}
34918fi
34919
34920#
34921# Link the shared library from the single module created
34922#
34923if test \${verbose} = 1; then
2a879853 34924 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34925fi
131f235d 34926c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34927status=\$?
34928if test \${status} != 0; then
34929 exit \${status}
34930fi
34931
34932#
34933# Remove intermediate module
34934#
34935rm -f master.\$\$.o
34936
34937exit 0
34938EOF
43948499 34939 chmod +x shared-ld-sh
fe0895cf 34940
7f523214
VS
34941 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
34942 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
34943 SHARED_LD_CXX="$SHARED_LD_CC"
34944 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34945 else
7f523214
VS
34946 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
34947 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
34948 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
34949 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
34950 fi
34951
fe0895cf 34952 PIC_FLAG="-dynamic -fPIC"
2a879853 34953 ;;
fe0895cf
VS
34954
34955 *-*-aix* )
34956 if test "x$GCC" != "xyes"; then
34957 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34958set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34959echo "$as_me:$LINENO: checking for $ac_word" >&5
34960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34961if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34962 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34963else
34964 if test -n "$AIX_CXX_LD"; then
34965 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34966else
e6cc62c6
VS
34967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34968for as_dir in $PATH
34969do
34970 IFS=$as_save_IFS
34971 test -z "$as_dir" && as_dir=.
34972 for ac_exec_ext in '' $ac_executable_extensions; do
34973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34974 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34976 break 2
34977 fi
34978done
34979done
34980
fe0895cf
VS
34981 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34982fi
34983fi
e6cc62c6 34984AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34985if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34986 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34987echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34988else
e6cc62c6
VS
34989 echo "$as_me:$LINENO: result: no" >&5
34990echo "${ECHO_T}no" >&6
fe0895cf
VS
34991fi
34992
34993 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34994 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34995 fi
34996 ;;
34997
34998 *-*-beos* )
34999 SHARED_LD_CC="${LD} -shared -o"
35000 SHARED_LD_CXX="${LD} -shared -o"
35001 ;;
35002
35003 *-*-irix* )
35004 if test "x$GCC" != "xyes"; then
35005 PIC_FLAG="-KPIC"
35006 fi
35007 ;;
e6cc62c6 35008
fe0895cf
VS
35009 *-*-cygwin* | *-*-mingw32* )
35010 PIC_FLAG=""
35011 ;;
e6cc62c6 35012
fe0895cf
VS
35013 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
35014 *-*-sunos4* | \
35015 *-*-osf* | \
35016 *-*-dgux5* | \
4b1f6360 35017 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
35018 *-*-sysv5* )
35019 ;;
35020
35021 *)
e6cc62c6
VS
35022 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
35023echo "$as_me: error: unknown system type $host." >&2;}
35024 { (exit 1); exit 1; }; }
fe0895cf
VS
35025 esac
35026
131f235d
VS
35027 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
35028 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
35029 fi
35030 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 35031 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
35032 fi
35033
35034
35035
fe0895cf 35036
e6cc62c6
VS
35037
35038
35039
35040
fe0895cf
VS
35041 USE_SOVERSION=0
35042 USE_SOVERLINUX=0
35043 USE_SOVERSOLARIS=0
35044 USE_SOSYMLINKS=0
35045 USE_MACVERSION=0
35046 SONAME_FLAG=
35047
35048 case "${host}" in
35049 *-*-linux* )
35050 SONAME_FLAG="-Wl,-soname,"
35051 USE_SOVERSION=1
35052 USE_SOVERLINUX=1
35053 USE_SOSYMLINKS=1
35054 ;;
35055
35056 *-*-solaris2* )
35057 SONAME_FLAG="-h "
35058 USE_SOVERSION=1
35059 USE_SOVERSOLARIS=1
35060 USE_SOSYMLINKS=1
35061 ;;
35062
35063 *-*-darwin* )
35064 USE_MACVERSION=1
35065 USE_SOVERSION=1
35066 USE_SOSYMLINKS=1
e6cc62c6 35067 ;;
fe0895cf
VS
35068 esac
35069
fe0895cf 35070
e6cc62c6
VS
35071
35072
35073
35074
35075
35076
35077
49b0a3aa
VS
35078 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
35079echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
35080 DEPS_TRACKING=0
35081
fe0895cf 35082 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
35083 DEPSMODE=gcc
35084 DEPS_TRACKING=1
3e5c3c83
VS
35085 case "${host}" in
35086 powerpc-*-darwin* )
35087 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
35088 ;;
35089 * )
35090 DEPSFLAG_GCC="-MMD"
35091 ;;
35092 esac
49b0a3aa
VS
35093 echo "$as_me:$LINENO: result: gcc" >&5
35094echo "${ECHO_T}gcc" >&6
35095 else
35096 echo "$as_me:$LINENO: result: none" >&5
35097echo "${ECHO_T}none" >&6
35098 fi
35099
35100 if test $DEPS_TRACKING = 1 ; then
35101 cat <<EOF >bk-deps
35102#!/bin/sh
35103
45842500
VS
35104# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35105# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
35106#
35107# Permission is given to use this file in any way.
35108
35109DEPSMODE=$DEPSMODE
35110DEPSDIR=.deps
3e5c3c83 35111DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
35112
35113mkdir -p \$DEPSDIR
35114
35115if test \$DEPSMODE = gcc ; then
3e5c3c83 35116 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
35117 status=\${?}
35118 if test \${status} != 0 ; then
35119 exit \${status}
35120 fi
35121 # move created file to the location we want it in:
35122 while test \${#} -gt 0; do
35123 case "\${1}" in
35124 -o )
35125 shift
35126 objfile=\${1}
35127 ;;
35128 -* )
35129 ;;
35130 * )
35131 srcfile=\${1}
35132 ;;
35133 esac
35134 shift
35135 done
35136 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
35137 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
35138 if test -f \$depfile ; then
35139 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
35140 rm -f \$depfile
35141 else
35142 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
35143 if test -f \$depfile ; then
9d0be83a 35144 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
35145 rm -f \$depfile
35146 fi
35147 fi
49b0a3aa
VS
35148 exit 0
35149else
35150 \${*}
35151 exit \${?}
35152fi
35153EOF
35154 chmod +x bk-deps
fe0895cf 35155 fi
fe0895cf 35156
e6cc62c6
VS
35157
35158
35159
fe0895cf
VS
35160 RESCOMP=
35161 SETFILE=
35162
e6cc62c6 35163 case ${host} in
fe0895cf
VS
35164 *-*-cygwin* | *-*-mingw32* )
35165 if test "$build" != "$host" ; then
35166 RESCOMP=$host_alias-windres
35167 else
35168 # Extract the first word of "windres", so it can be a program name with args.
35169set dummy windres; ac_word=$2
e6cc62c6
VS
35170echo "$as_me:$LINENO: checking for $ac_word" >&5
35171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35172if test "${ac_cv_prog_RESCOMP+set}" = set; then
35173 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35174else
35175 if test -n "$RESCOMP"; then
35176 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
35177else
e6cc62c6
VS
35178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35179for as_dir in $PATH
35180do
35181 IFS=$as_save_IFS
35182 test -z "$as_dir" && as_dir=.
35183 for ac_exec_ext in '' $ac_executable_extensions; do
35184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35185 ac_cv_prog_RESCOMP="windres"
35186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35187 break 2
35188 fi
35189done
35190done
35191
fe0895cf
VS
35192 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
35193fi
35194fi
e6cc62c6 35195RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35196if test -n "$RESCOMP"; then
e6cc62c6
VS
35197 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35198echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35199else
e6cc62c6
VS
35200 echo "$as_me:$LINENO: result: no" >&5
35201echo "${ECHO_T}no" >&6
fe0895cf
VS
35202fi
35203
35204 fi
35205 ;;
e6cc62c6 35206
fe0895cf
VS
35207 *-*-darwin* )
35208 # Extract the first word of "Rez", so it can be a program name with args.
35209set dummy Rez; ac_word=$2
e6cc62c6
VS
35210echo "$as_me:$LINENO: checking for $ac_word" >&5
35211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35212if test "${ac_cv_prog_RESCOMP+set}" = set; then
35213 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35214else
35215 if test -n "$RESCOMP"; then
35216 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
35217else
e6cc62c6
VS
35218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35219for as_dir in $PATH
35220do
35221 IFS=$as_save_IFS
35222 test -z "$as_dir" && as_dir=.
35223 for ac_exec_ext in '' $ac_executable_extensions; do
35224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35225 ac_cv_prog_RESCOMP="Rez"
35226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35227 break 2
35228 fi
35229done
35230done
35231
fe0895cf
VS
35232 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
35233fi
35234fi
e6cc62c6 35235RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35236if test -n "$RESCOMP"; then
e6cc62c6
VS
35237 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35238echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35239else
e6cc62c6
VS
35240 echo "$as_me:$LINENO: result: no" >&5
35241echo "${ECHO_T}no" >&6
fe0895cf
VS
35242fi
35243
35244 # Extract the first word of "SetFile", so it can be a program name with args.
35245set dummy SetFile; ac_word=$2
e6cc62c6
VS
35246echo "$as_me:$LINENO: checking for $ac_word" >&5
35247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35248if test "${ac_cv_prog_SETFILE+set}" = set; then
35249 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35250else
35251 if test -n "$SETFILE"; then
35252 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
35253else
e6cc62c6
VS
35254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35255for as_dir in $PATH
35256do
35257 IFS=$as_save_IFS
35258 test -z "$as_dir" && as_dir=.
35259 for ac_exec_ext in '' $ac_executable_extensions; do
35260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35261 ac_cv_prog_SETFILE="SetFile"
35262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35263 break 2
35264 fi
35265done
35266done
35267
fe0895cf
VS
35268 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
35269fi
35270fi
e6cc62c6 35271SETFILE=$ac_cv_prog_SETFILE
fe0895cf 35272if test -n "$SETFILE"; then
e6cc62c6
VS
35273 echo "$as_me:$LINENO: result: $SETFILE" >&5
35274echo "${ECHO_T}$SETFILE" >&6
fe0895cf 35275else
e6cc62c6
VS
35276 echo "$as_me:$LINENO: result: no" >&5
35277echo "${ECHO_T}no" >&6
fe0895cf
VS
35278fi
35279
35280 ;;
35281 esac
35282
fe0895cf
VS
35283
35284
e6cc62c6
VS
35285
35286
35287
35288
45842500 35289
74500461
VS
35290
35291
45842500
VS
35292 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
35293if test "${enable_precomp_headers+set}" = set; then
35294 enableval="$enable_precomp_headers"
35295 bk_use_pch="$enableval"
35296fi;
35297
35298 GCC_PCH=0
35299
35300 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
35301 if test "x$GCC" = "xyes"; then
35302 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
35303echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
35304 cat >conftest.$ac_ext <<_ACEOF
09d3439c 35305#line $LINENO "configure"
45842500
VS
35306/* confdefs.h. */
35307_ACEOF
35308cat confdefs.h >>conftest.$ac_ext
35309cat >>conftest.$ac_ext <<_ACEOF
35310/* end confdefs.h. */
35311
35312int
35313main ()
35314{
35315
8bcf2d20
VS
35316 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
35317 #error "no pch support"
35318 #endif
35319 #if (__GNUC__ < 3)
35320 #error "no pch support"
35321 #endif
35322 #if (__GNUC__ == 3) && \
35323 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
35324 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
35325 #error "no pch support"
45842500
VS
35326 #endif
35327
35328 ;
35329 return 0;
35330}
35331_ACEOF
35332rm -f conftest.$ac_objext
35333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
09d3439c 35334 (eval $ac_compile) 2>&5
45842500
VS
35335 ac_status=$?
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); } &&
09d3439c 35338 { ac_try='test -s conftest.$ac_objext'
45842500
VS
35339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35340 (eval $ac_try) 2>&5
35341 ac_status=$?
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); }; }; then
35344
35345 echo "$as_me:$LINENO: result: yes" >&5
35346echo "${ECHO_T}yes" >&6
35347 CPPFLAGS="-fpch-deps $CPPFLAGS"
35348 GCC_PCH=1
35349
35350else
35351 echo "$as_me: failed program was:" >&5
35352sed 's/^/| /' conftest.$ac_ext >&5
35353
35354
35355 echo "$as_me:$LINENO: result: no" >&5
35356echo "${ECHO_T}no" >&6
35357
35358fi
09d3439c 35359rm -f conftest.$ac_objext conftest.$ac_ext
45842500
VS
35360 if test $GCC_PCH = 1 ; then
35361 cat <<EOF >bk-make-pch
35362#!/bin/sh
35363
35364# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35365# script. It is used to generated precompiled headers.
35366#
35367# Permission is given to use this file in any way.
35368
35369outfile="\${1}"
35370header="\${2}"
35371shift
35372shift
35373
35374compiler=
35375headerfile=
35376while test \${#} -gt 0; do
35377 case "\${1}" in
35378 -I* )
35379 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35380 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35381 headerfile="\${incdir}/\${header}"
35382 fi
35383 ;;
35384 esac
35385 compiler="\${compiler} \${1}"
35386 shift
35387done
35388
35389if test "x\${headerfile}" = "x" ; then
35390 echo "error: can't find header \${header} in include paths" >2
35391else
35392 if test -f \${outfile} ; then
35393 rm -f \${outfile}
35394 else
35395 mkdir -p \`dirname \${outfile}\`
35396 fi
35397 depsfile=".deps/\`basename \${outfile}\`.d"
35398 mkdir -p .deps
35399 # can do this because gcc is >= 3.4:
35400 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35401 exit \${?}
35402fi
35403EOF
35404 chmod +x bk-make-pch
35405 fi
35406 fi
35407 fi
35408
35409
35410
35411
35412
d78c94f2 35413 COND_BUILD_DEBUG="#"
6f628073 35414 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35415 COND_BUILD_DEBUG=""
6f628073
VS
35416 fi
35417
6c67131a
VS
35418 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35419 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35420 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35421 fi
35422
35423 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35424 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35425 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35426 fi
35427
d78c94f2 35428 COND_BUILD_RELEASE="#"
6f628073 35429 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35430 COND_BUILD_RELEASE=""
6b9d41a5
VS
35431 fi
35432
6c67131a
VS
35433 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35434 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35435 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35436 fi
35437
35438 COND_DEBUG_FLAG_1="#"
35439 if test "x$DEBUG_FLAG" = "x1" ; then
35440 COND_DEBUG_FLAG_1=""
35441 fi
35442
35443 COND_DEBUG_INFO_0="#"
35444 if test "x$DEBUG_INFO" = "x0" ; then
35445 COND_DEBUG_INFO_0=""
35446 fi
35447
35448 COND_DEBUG_INFO_1="#"
35449 if test "x$DEBUG_INFO" = "x1" ; then
35450 COND_DEBUG_INFO_1=""
35451 fi
35452
f95cd8fa
VS
35453 COND_DEPS_TRACKING_0="#"
35454 if test "x$DEPS_TRACKING" = "x0" ; then
35455 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35456 fi
35457
8ee2dd05
VS
35458 COND_DEPS_TRACKING_1="#"
35459 if test "x$DEPS_TRACKING" = "x1" ; then
35460 COND_DEPS_TRACKING_1=""
35461 fi
35462
45842500
VS
35463 COND_GCC_PCH_1="#"
35464 if test "x$GCC_PCH" = "x1" ; then
35465 COND_GCC_PCH_1=""
35466 fi
35467
6f628073
VS
35468 COND_MONOLITHIC_0="#"
35469 if test "x$MONOLITHIC" = "x0" ; then
35470 COND_MONOLITHIC_0=""
6b9d41a5
VS
35471 fi
35472
6f628073
VS
35473 COND_MONOLITHIC_0_SHARED_0="#"
35474 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35475 COND_MONOLITHIC_0_SHARED_0=""
35476 fi
35477
35478 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35479 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35480 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35481 fi
e6cc62c6 35482
8772a1a7
VS
35483 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35484 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35485 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35486 fi
35487
250700e4
RD
35488 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35489 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35490 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35491 fi
35492
eb69fda5
VS
35493 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
35494 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
35495 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
35496 fi
35497
8ee2dd05
VS
35498 COND_MONOLITHIC_0_SHARED_1="#"
35499 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35500 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35501 fi
e6cc62c6 35502
6f628073
VS
35503 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35505 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35506 fi
35507
8772a1a7
VS
35508 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35510 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35511 fi
35512
250700e4
RD
35513 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35515 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35516 fi
35517
eb69fda5
VS
35518 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
35519 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
35520 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
35521 fi
35522
3af038c0
VS
35523 COND_MONOLITHIC_1="#"
35524 if test "x$MONOLITHIC" = "x1" ; then
35525 COND_MONOLITHIC_1=""
35526 fi
35527
6f628073
VS
35528 COND_MONOLITHIC_1_SHARED_0="#"
35529 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35530 COND_MONOLITHIC_1_SHARED_0=""
35531 fi
35532
35533 COND_MONOLITHIC_1_SHARED_1="#"
35534 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35535 COND_MONOLITHIC_1_SHARED_1=""
35536 fi
35537
3af038c0
VS
35538 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35539 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35540 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35541 fi
35542
35543 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35544 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35545 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35546 fi
35547
6f628073
VS
35548 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35549 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35550 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35551 fi
35552
3af038c0
VS
35553 COND_PLATFORM_MACOSX_1="#"
35554 if test "x$PLATFORM_MACOSX" = "x1" ; then
35555 COND_PLATFORM_MACOSX_1=""
35556 fi
35557
250700e4
RD
35558 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35559 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35560 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35561 fi
35562
35563 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35564 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35565 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35566 fi
35567
35568 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35569 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35570 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35571 fi
35572
3527f29c
VS
35573 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
35574 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
35575 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
35576 fi
35577
8ee2dd05
VS
35578 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35579 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35580 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35581 fi
35582
45842500
VS
35583 COND_PLATFORM_MAC_1="#"
35584 if test "x$PLATFORM_MAC" = "x1" ; then
35585 COND_PLATFORM_MAC_1=""
35586 fi
35587
3d8c1de0
VS
35588 COND_PLATFORM_OS2_1="#"
35589 if test "x$PLATFORM_OS2" = "x1" ; then
35590 COND_PLATFORM_OS2_1=""
35591 fi
35592
8772a1a7
VS
35593 COND_PLATFORM_UNIX_0="#"
35594 if test "x$PLATFORM_UNIX" = "x0" ; then
35595 COND_PLATFORM_UNIX_0=""
35596 fi
35597
3af038c0
VS
35598 COND_PLATFORM_UNIX_1="#"
35599 if test "x$PLATFORM_UNIX" = "x1" ; then
35600 COND_PLATFORM_UNIX_1=""
35601 fi
35602
3527f29c
VS
35603 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
35604 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
35605 COND_PLATFORM_UNIX_1_USE_GUI_1=""
35606 fi
35607
3af038c0
VS
35608 COND_PLATFORM_WIN32_0="#"
35609 if test "x$PLATFORM_WIN32" = "x0" ; then
35610 COND_PLATFORM_WIN32_0=""
35611 fi
35612
35613 COND_PLATFORM_WIN32_1="#"
35614 if test "x$PLATFORM_WIN32" = "x1" ; then
35615 COND_PLATFORM_WIN32_1=""
35616 fi
35617
45842500
VS
35618 COND_SHARED_0="#"
35619 if test "x$SHARED" = "x0" ; then
35620 COND_SHARED_0=""
35621 fi
35622
250700e4
RD
35623 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35624 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35625 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35626 fi
35627
52a5a009
VS
35628 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35629 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35630 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35631 fi
35632
35633 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35634 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35635 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35636 fi
35637
35638 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35639 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35640 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35641 fi
35642
35643 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35644 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35645 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35646 fi
35647
35648 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35649 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35650 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35651 fi
35652
35653 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35654 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35655 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35656 fi
35657
35658 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35659 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35660 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35661 fi
35662
45842500
VS
35663 COND_SHARED_1="#"
35664 if test "x$SHARED" = "x1" ; then
35665 COND_SHARED_1=""
35666 fi
35667
250700e4
RD
35668 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35669 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35670 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35671 fi
35672
6f628073
VS
35673 COND_TOOLKIT_COCOA="#"
35674 if test "x$TOOLKIT" = "xCOCOA" ; then
35675 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35676 fi
35677
6f628073
VS
35678 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35679 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35680 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35681 fi
35682
6f628073
VS
35683 COND_TOOLKIT_GTK="#"
35684 if test "x$TOOLKIT" = "xGTK" ; then
35685 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35686 fi
35687
6f628073
VS
35688 COND_TOOLKIT_GTK_USE_GUI_1="#"
35689 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35690 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35691 fi
35692
6f628073
VS
35693 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35694 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35695 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35696 fi
35697
3af038c0
VS
35698 COND_TOOLKIT_MAC="#"
35699 if test "x$TOOLKIT" = "xMAC" ; then
35700 COND_TOOLKIT_MAC=""
35701 fi
35702
8772a1a7
VS
35703 COND_TOOLKIT_MAC_USE_GUI_1="#"
35704 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35705 COND_TOOLKIT_MAC_USE_GUI_1=""
35706 fi
35707
6f628073
VS
35708 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35709 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35710 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35711 fi
35712
6f628073
VS
35713 COND_TOOLKIT_MGL="#"
35714 if test "x$TOOLKIT" = "xMGL" ; then
35715 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35716 fi
35717
6f628073
VS
35718 COND_TOOLKIT_MGL_USE_GUI_1="#"
35719 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35720 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35721 fi
35722
6f628073
VS
35723 COND_TOOLKIT_MOTIF="#"
35724 if test "x$TOOLKIT" = "xMOTIF" ; then
35725 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35726 fi
35727
6f628073
VS
35728 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35729 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35730 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35731 fi
e6cc62c6 35732
6f628073
VS
35733 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35734 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35735 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35736 fi
35737
6f628073
VS
35738 COND_TOOLKIT_MSW="#"
35739 if test "x$TOOLKIT" = "xMSW" ; then
35740 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35741 fi
35742
6f628073
VS
35743 COND_TOOLKIT_MSW_USE_GUI_1="#"
35744 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35745 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35746 fi
e6cc62c6 35747
6f628073
VS
35748 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35749 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35750 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35751 fi
e6cc62c6 35752
96c1699d
VS
35753 COND_TOOLKIT_PM="#"
35754 if test "x$TOOLKIT" = "xPM" ; then
35755 COND_TOOLKIT_PM=""
35756 fi
35757
35758 COND_TOOLKIT_PM_USE_GUI_1="#"
35759 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
35760 COND_TOOLKIT_PM_USE_GUI_1=""
35761 fi
35762
35763 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
35764 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35765 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
35766 fi
35767
6f628073
VS
35768 COND_TOOLKIT_X11="#"
35769 if test "x$TOOLKIT" = "xX11" ; then
35770 COND_TOOLKIT_X11=""
9747f85d
VS
35771 fi
35772
6f628073
VS
35773 COND_TOOLKIT_X11_USE_GUI_1="#"
35774 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35775 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35776 fi
35777
3af038c0
VS
35778 COND_UNICODE_1="#"
35779 if test "x$UNICODE" = "x1" ; then
35780 COND_UNICODE_1=""
35781 fi
35782
7015ef3a
VZ
35783 COND_USE_EXCEPTIONS_0="#"
35784 if test "x$USE_EXCEPTIONS" = "x0" ; then
35785 COND_USE_EXCEPTIONS_0=""
35786 fi
35787
35788 COND_USE_EXCEPTIONS_1="#"
35789 if test "x$USE_EXCEPTIONS" = "x1" ; then
35790 COND_USE_EXCEPTIONS_1=""
35791 fi
35792
3af038c0
VS
35793 COND_USE_GUI_0="#"
35794 if test "x$USE_GUI" = "x0" ; then
35795 COND_USE_GUI_0=""
35796 fi
35797
35798 COND_USE_GUI_1="#"
35799 if test "x$USE_GUI" = "x1" ; then
35800 COND_USE_GUI_1=""
35801 fi
35802
e6cc62c6 35803 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35804 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35805 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35806 fi
e6cc62c6
VS
35807
35808 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35809 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35810 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35811 fi
35812
66a96744
VS
35813 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35814 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35815 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35816 fi
35817
35818 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35819 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35820 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35821 fi
35822
35823 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35824 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35825 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35826 fi
35827
57e7d4ac
VS
35828 COND_USE_ODBC_1="#"
35829 if test "x$USE_ODBC" = "x1" ; then
35830 COND_USE_ODBC_1=""
35831 fi
35832
6f628073
VS
35833 COND_USE_SOSYMLINKS_1="#"
35834 if test "x$USE_SOSYMLINKS" = "x1" ; then
35835 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35836 fi
35837
6f628073
VS
35838 COND_USE_SOVERLINUX_1="#"
35839 if test "x$USE_SOVERLINUX" = "x1" ; then
35840 COND_USE_SOVERLINUX_1=""
b625909c
VS
35841 fi
35842
6f628073
VS
35843 COND_USE_SOVERSION_0="#"
35844 if test "x$USE_SOVERSION" = "x0" ; then
35845 COND_USE_SOVERSION_0=""
fddeb06b 35846 fi
fe0895cf 35847
6f628073
VS
35848 COND_USE_SOVERSOLARIS_1="#"
35849 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35850 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35851 fi
fe0895cf 35852
3af038c0
VS
35853 COND_WXUNIV_1="#"
35854 if test "x$WXUNIV" = "x1" ; then
35855 COND_WXUNIV_1=""
35856 fi
35857
66a96744
VS
35858 COND_WXUSE_EXPAT_BUILTIN="#"
35859 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35860 COND_WXUSE_EXPAT_BUILTIN=""
35861 fi
35862
02980527
VS
35863 COND_WXUSE_LIBJPEG_BUILTIN="#"
35864 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35865 COND_WXUSE_LIBJPEG_BUILTIN=""
35866 fi
35867
35868 COND_WXUSE_LIBPNG_BUILTIN="#"
35869 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35870 COND_WXUSE_LIBPNG_BUILTIN=""
35871 fi
35872
35873 COND_WXUSE_LIBTIFF_BUILTIN="#"
35874 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35875 COND_WXUSE_LIBTIFF_BUILTIN=""
35876 fi
35877
35878 COND_WXUSE_ODBC_BUILTIN="#"
35879 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35880 COND_WXUSE_ODBC_BUILTIN=""
35881 fi
35882
35883 COND_WXUSE_REGEX_BUILTIN="#"
35884 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35885 COND_WXUSE_REGEX_BUILTIN=""
35886 fi
35887
35888 COND_WXUSE_ZLIB_BUILTIN="#"
35889 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35890 COND_WXUSE_ZLIB_BUILTIN=""
35891 fi
35892
1772d20c 35893
fe0895cf 35894
fe0895cf 35895
fe0895cf 35896
45842500 35897if test $GCC_PCH = 1 ; then
130711ba 35898 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
35899 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35900else
35901 case "${host}" in
35902 powerpc-*-darwin* )
130711ba
VS
35903 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
35904 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 35905 ;;
45842500
VS
35906 esac
35907fi
fe0895cf
VS
35908
35909
fddeb06b 35910SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
fe0895cf 36005
f0290fca
VS
36006
36007
e6cc62c6
VS
36008
36009
36010echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36011echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
09d3439c 36012set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
36013if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36014 echo $ECHO_N "(cached) $ECHO_C" >&6
36015else
36016 cat >conftest.make <<\_ACEOF
36017all:
36018 @echo 'ac_maketemp="$(MAKE)"'
36019_ACEOF
36020# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
36021eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
36022if test -n "$ac_maketemp"; then
36023 eval ac_cv_prog_make_${ac_make}_set=yes
36024else
36025 eval ac_cv_prog_make_${ac_make}_set=no
36026fi
36027rm -f conftest.make
36028fi
36029if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
36030 echo "$as_me:$LINENO: result: yes" >&5
36031echo "${ECHO_T}yes" >&6
36032 SET_MAKE=
36033else
36034 echo "$as_me:$LINENO: result: no" >&5
36035echo "${ECHO_T}no" >&6
36036 SET_MAKE="MAKE=${MAKE-make}"
36037fi
36038
36039
36040if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
36041 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
36042fi
36043
36044 ac_config_headers="$ac_config_headers setup.h"
36045
36046
81345eef 36047 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
36048
36049
36050 ac_config_commands="$ac_config_commands default"
36051
36052
9de9b8f0 36053
6c3e36af
VZ
36054if test "$wxUSE_GUI" = "yes"; then
36055 SUBDIRS="samples demos utils contrib"
36056else SUBDIRS="samples utils"
36057fi
e6cc62c6 36058
166263e6 36059for subdir in `echo $SUBDIRS`; do
9747f85d 36060 if test -d ${srcdir}/${subdir} ; then
6c3e36af 36061 if test "$wxUSE_GUI" = "yes"; then
166263e6 36062 if test ${subdir} = "samples"; then
8772a1a7
VS
36063 makefiles="samples/Makefile.in $makefiles"
36064 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
36065 if test -d $srcdir/samples/$sample; then
36066 makefiles="samples/$sample/Makefile.in $makefiles"
36067 fi
36068 done
36069 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
36070 fi
6c3e36af 36071 else if test ${subdir} = "samples"; then
8772a1a7 36072 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 36073 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
36074 utils/HelpGen/src/Makefile.in \
36075 utils/tex2rtf/Makefile.in \
36076 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
36077 fi
36078 fi
36079
9747f85d
VS
36080 for mkin in $makefiles ; do
36081 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
36082 ac_config_files="$ac_config_files $mk"
e6cc62c6 36083
9747f85d
VS
36084 done
36085 fi
36086done
e6cc62c6 36087
9de9b8f0 36088
e6cc62c6
VS
36089cat >confcache <<\_ACEOF
36090# This file is a shell script that caches the results of configure
36091# tests run on this system so they can be shared between configure
36092# scripts and configure runs, see configure's option --config-cache.
36093# It is not useful on other systems. If it contains results you don't
36094# want to keep, you may remove or edit it.
36095#
36096# config.status only pays attention to the cache file if you give it
36097# the --recheck option to rerun configure.
36098#
36099# `ac_cv_env_foo' variables (set or unset) will be overridden when
36100# loading this file, other *unset* `ac_cv_foo' will be assigned the
36101# following values.
36102
36103_ACEOF
36104
36105# The following way of writing the cache mishandles newlines in values,
36106# but we know of no workaround that is simple, portable, and efficient.
36107# So, don't put newlines in cache variables' values.
36108# Ultrix sh set writes to stderr and can't be redirected directly,
36109# and sets the high bit in the cache file unless we assign to the vars.
36110{
36111 (set) 2>&1 |
36112 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36113 *ac_space=\ *)
36114 # `set' does not quote correctly, so add quotes (double-quote
36115 # substitution turns \\\\ into \\, and sed turns \\ into \).
36116 sed -n \
09d3439c
VZ
36117 "s/'/'\\\\''/g;
36118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
36119 ;;
36120 *)
36121 # `set' quotes correctly as required by POSIX, so do not add quotes.
36122 sed -n \
09d3439c 36123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
36124 ;;
36125 esac;
36126} |
36127 sed '
36128 t clear
36129 : clear
36130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36131 t end
36132 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36133 : end' >>confcache
36134if diff $cache_file confcache >/dev/null 2>&1; then :; else
36135 if test -w $cache_file; then
36136 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36137 cat confcache >$cache_file
36138 else
36139 echo "not updating unwritable cache $cache_file"
36140 fi
36141fi
36142rm -f confcache
36143
36144test "x$prefix" = xNONE && prefix=$ac_default_prefix
36145# Let make expand exec_prefix.
36146test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36147
36148# VPATH may cause trouble with some makes, so we remove $(srcdir),
36149# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36150# trailing colons and then remove the whole line if VPATH becomes empty
36151# (actually we leave an empty line to preserve line numbers).
36152if test "x$srcdir" = x.; then
09d3439c 36153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
36154s/:*\$(srcdir):*/:/;
36155s/:*\${srcdir}:*/:/;
36156s/:*@srcdir@:*/:/;
09d3439c 36157s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 36158s/:*$//;
09d3439c 36159s/^[^=]*=[ ]*$//;
e6cc62c6
VS
36160}'
36161fi
36162
36163DEFS=-DHAVE_CONFIG_H
36164
36165ac_libobjs=
36166ac_ltlibobjs=
36167for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36168 # 1. Remove the extension, and $U if already installed.
36169 ac_i=`echo "$ac_i" |
09d3439c 36170 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
36171 # 2. Add them.
36172 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
36173 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
36174done
36175LIBOBJS=$ac_libobjs
36176
36177LTLIBOBJS=$ac_ltlibobjs
36178
36179
36180
36181: ${CONFIG_STATUS=./config.status}
36182ac_clean_files_save=$ac_clean_files
36183ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36184{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36185echo "$as_me: creating $CONFIG_STATUS" >&6;}
36186cat >$CONFIG_STATUS <<_ACEOF
36187#! $SHELL
36188# Generated by $as_me.
36189# Run this file to recreate the current configuration.
36190# Compiler output produced by configure, useful for debugging
36191# configure, is in config.log if it exists.
36192
36193debug=false
36194ac_cs_recheck=false
36195ac_cs_silent=false
36196SHELL=\${CONFIG_SHELL-$SHELL}
36197_ACEOF
36198
36199cat >>$CONFIG_STATUS <<\_ACEOF
36200## --------------------- ##
36201## M4sh Initialization. ##
36202## --------------------- ##
36203
36204# Be Bourne compatible
36205if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36206 emulate sh
36207 NULLCMD=:
36208 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36209 # is contrary to our usage. Disable this feature.
36210 alias -g '${1+"$@"}'='"$@"'
36211elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36212 set -o posix
36213fi
36214
36215# Support unset when possible.
09d3439c 36216if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
e6cc62c6
VS
36217 as_unset=unset
36218else
36219 as_unset=false
36220fi
36221
36222
36223# Work around bugs in pre-3.0 UWIN ksh.
36224$as_unset ENV MAIL MAILPATH
36225PS1='$ '
36226PS2='> '
36227PS4='+ '
36228
36229# NLS nuisances.
36230for as_var in \
36231 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36232 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36233 LC_TELEPHONE LC_TIME
36234do
09d3439c 36235 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
36236 eval $as_var=C; export $as_var
36237 else
36238 $as_unset $as_var
36239 fi
36240done
36241
36242# Required to use basename.
36243if expr a : '\(a\)' >/dev/null 2>&1; then
36244 as_expr=expr
36245else
36246 as_expr=false
36247fi
36248
36249if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
36250 as_basename=basename
36251else
36252 as_basename=false
36253fi
36254
36255
36256# Name of the executable.
36257as_me=`$as_basename "$0" ||
36258$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36259 X"$0" : 'X\(//\)$' \| \
36260 X"$0" : 'X\(/\)$' \| \
36261 . : '\(.\)' 2>/dev/null ||
36262echo X/"$0" |
36263 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36264 /^X\/\(\/\/\)$/{ s//\1/; q; }
36265 /^X\/\(\/\).*/{ s//\1/; q; }
36266 s/.*/./; q'`
36267
36268
36269# PATH needs CR, and LINENO needs CR and PATH.
36270# Avoid depending upon Character Ranges.
36271as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36272as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36273as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36274as_cr_digits='0123456789'
36275as_cr_alnum=$as_cr_Letters$as_cr_digits
36276
36277# The user is always right.
36278if test "${PATH_SEPARATOR+set}" != set; then
36279 echo "#! /bin/sh" >conf$$.sh
36280 echo "exit 0" >>conf$$.sh
36281 chmod +x conf$$.sh
36282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36283 PATH_SEPARATOR=';'
36284 else
36285 PATH_SEPARATOR=:
36286 fi
36287 rm -f conf$$.sh
36288fi
36289
36290
36291 as_lineno_1=$LINENO
36292 as_lineno_2=$LINENO
36293 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36294 test "x$as_lineno_1" != "x$as_lineno_2" &&
36295 test "x$as_lineno_3" = "x$as_lineno_2" || {
36296 # Find who we are. Look in the path if we contain no path at all
36297 # relative or not.
36298 case $0 in
36299 *[\\/]* ) as_myself=$0 ;;
36300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36301for as_dir in $PATH
36302do
36303 IFS=$as_save_IFS
36304 test -z "$as_dir" && as_dir=.
36305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36306done
36307
36308 ;;
36309 esac
36310 # We did not find ourselves, most probably we were run as `sh COMMAND'
36311 # in which case we are not to be found in the path.
36312 if test "x$as_myself" = x; then
36313 as_myself=$0
36314 fi
36315 if test ! -f "$as_myself"; then
36316 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36317echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36318 { (exit 1); exit 1; }; }
36319 fi
36320 case $CONFIG_SHELL in
36321 '')
36322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36323for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36324do
36325 IFS=$as_save_IFS
36326 test -z "$as_dir" && as_dir=.
36327 for as_base in sh bash ksh sh5; do
36328 case $as_dir in
36329 /*)
36330 if ("$as_dir/$as_base" -c '
36331 as_lineno_1=$LINENO
36332 as_lineno_2=$LINENO
36333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36334 test "x$as_lineno_1" != "x$as_lineno_2" &&
36335 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36336 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36337 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36338 CONFIG_SHELL=$as_dir/$as_base
36339 export CONFIG_SHELL
36340 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36341 fi;;
36342 esac
36343 done
36344done
36345;;
36346 esac
36347
36348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36349 # uniformly replaced by the line number. The first 'sed' inserts a
36350 # line-number line before each line; the second 'sed' does the real
36351 # work. The second script uses 'N' to pair each line-number line
36352 # with the numbered line, and appends trailing '-' during
36353 # substitution so that $LINENO is not a special case at line end.
36354 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36355 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36356 sed '=' <$as_myself |
36357 sed '
36358 N
36359 s,$,-,
36360 : loop
36361 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36362 t loop
36363 s,-$,,
36364 s,^['$as_cr_digits']*\n,,
36365 ' >$as_me.lineno &&
36366 chmod +x $as_me.lineno ||
36367 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36368echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36369 { (exit 1); exit 1; }; }
36370
36371 # Don't try to exec as it changes $[0], causing all sort of problems
36372 # (the dirname of $[0] is not the place where we might find the
36373 # original and so on. Autoconf is especially sensible to this).
36374 . ./$as_me.lineno
36375 # Exit status is that of the last command.
36376 exit
36377}
36378
36379
36380case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36381 *c*,-n*) ECHO_N= ECHO_C='
36382' ECHO_T=' ' ;;
36383 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36384 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36385esac
36386
36387if expr a : '\(a\)' >/dev/null 2>&1; then
36388 as_expr=expr
36389else
36390 as_expr=false
36391fi
36392
36393rm -f conf$$ conf$$.exe conf$$.file
36394echo >conf$$.file
36395if ln -s conf$$.file conf$$ 2>/dev/null; then
36396 # We could just check for DJGPP; but this test a) works b) is more generic
36397 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36398 if test -f conf$$.exe; then
36399 # Don't use ln at all; we don't have any links
36400 as_ln_s='cp -p'
36401 else
36402 as_ln_s='ln -s'
36403 fi
36404elif ln conf$$.file conf$$ 2>/dev/null; then
36405 as_ln_s=ln
36406else
36407 as_ln_s='cp -p'
36408fi
36409rm -f conf$$ conf$$.exe conf$$.file
36410
36411if mkdir -p . 2>/dev/null; then
36412 as_mkdir_p=:
36413else
36414 as_mkdir_p=false
36415fi
36416
36417as_executable_p="test -f"
36418
36419# Sed expression to map a string onto a valid CPP name.
09d3439c 36420as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
36421
36422# Sed expression to map a string onto a valid variable name.
09d3439c 36423as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
36424
36425
36426# IFS
36427# We need space, tab and new line, in precisely that order.
36428as_nl='
36429'
36430IFS=" $as_nl"
36431
36432# CDPATH.
36433$as_unset CDPATH
36434
36435exec 6>&1
36436
36437# Open the log real soon, to keep \$[0] and so on meaningful, and to
36438# report actual input values of CONFIG_FILES etc. instead of their
36439# values after options handling. Logging --version etc. is OK.
36440exec 5>>config.log
36441{
36442 echo
36443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36444## Running $as_me. ##
36445_ASBOX
36446} >&5
36447cat >&5 <<_CSEOF
36448
e46d2a18 36449This file was extended by wxWindows $as_me 2.5.1, which was
09d3439c 36450generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
36451
36452 CONFIG_FILES = $CONFIG_FILES
36453 CONFIG_HEADERS = $CONFIG_HEADERS
36454 CONFIG_LINKS = $CONFIG_LINKS
36455 CONFIG_COMMANDS = $CONFIG_COMMANDS
36456 $ $0 $@
36457
36458_CSEOF
36459echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36460echo >&5
36461_ACEOF
36462
36463# Files that config.status was made for.
36464if test -n "$ac_config_files"; then
36465 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36466fi
36467
36468if test -n "$ac_config_headers"; then
36469 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36470fi
36471
36472if test -n "$ac_config_links"; then
36473 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36474fi
36475
36476if test -n "$ac_config_commands"; then
36477 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36478fi
36479
36480cat >>$CONFIG_STATUS <<\_ACEOF
36481
36482ac_cs_usage="\
36483\`$as_me' instantiates files from templates according to the
36484current configuration.
36485
36486Usage: $0 [OPTIONS] [FILE]...
36487
36488 -h, --help print this help, then exit
36489 -V, --version print version number, then exit
36490 -q, --quiet do not print progress messages
36491 -d, --debug don't remove temporary files
36492 --recheck update $as_me by reconfiguring in the same conditions
36493 --file=FILE[:TEMPLATE]
09d3439c 36494 instantiate the configuration file FILE
e6cc62c6 36495 --header=FILE[:TEMPLATE]
09d3439c 36496 instantiate the configuration header FILE
e6cc62c6
VS
36497
36498Configuration files:
36499$config_files
36500
36501Configuration headers:
36502$config_headers
36503
36504Configuration commands:
36505$config_commands
36506
36507Report bugs to <bug-autoconf@gnu.org>."
36508_ACEOF
36509
36510cat >>$CONFIG_STATUS <<_ACEOF
36511ac_cs_version="\\
e46d2a18 36512wxWindows config.status 2.5.1
09d3439c 36513configured by $0, generated by GNU Autoconf 2.57,
e6cc62c6
VS
36514 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36515
09d3439c
VZ
36516Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36517Free Software Foundation, Inc.
e6cc62c6
VS
36518This config.status script is free software; the Free Software Foundation
36519gives unlimited permission to copy, distribute and modify it."
36520srcdir=$srcdir
36521INSTALL="$INSTALL"
36522_ACEOF
36523
36524cat >>$CONFIG_STATUS <<\_ACEOF
36525# If no file are specified by the user, then we need to provide default
36526# value. By we need to know if files were specified by the user.
36527ac_need_defaults=:
36528while test $# != 0
36529do
36530 case $1 in
36531 --*=*)
36532 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36533 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36534 ac_shift=:
36535 ;;
36536 -*)
36537 ac_option=$1
36538 ac_optarg=$2
36539 ac_shift=shift
36540 ;;
36541 *) # This is not an option, so the user has probably given explicit
36542 # arguments.
36543 ac_option=$1
36544 ac_need_defaults=false;;
36545 esac
36546
36547 case $ac_option in
36548 # Handling of the options.
36549_ACEOF
36550cat >>$CONFIG_STATUS <<\_ACEOF
36551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36552 ac_cs_recheck=: ;;
36553 --version | --vers* | -V )
36554 echo "$ac_cs_version"; exit 0 ;;
36555 --he | --h)
36556 # Conflict between --help and --header
36557 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36558Try \`$0 --help' for more information." >&5
36559echo "$as_me: error: ambiguous option: $1
36560Try \`$0 --help' for more information." >&2;}
36561 { (exit 1); exit 1; }; };;
36562 --help | --hel | -h )
36563 echo "$ac_cs_usage"; exit 0 ;;
36564 --debug | --d* | -d )
36565 debug=: ;;
36566 --file | --fil | --fi | --f )
36567 $ac_shift
36568 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36569 ac_need_defaults=false;;
36570 --header | --heade | --head | --hea )
36571 $ac_shift
36572 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36573 ac_need_defaults=false;;
36574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36576 ac_cs_silent=: ;;
36577
36578 # This is an error.
36579 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36580Try \`$0 --help' for more information." >&5
36581echo "$as_me: error: unrecognized option: $1
36582Try \`$0 --help' for more information." >&2;}
36583 { (exit 1); exit 1; }; } ;;
36584
36585 *) ac_config_targets="$ac_config_targets $1" ;;
36586
36587 esac
36588 shift
36589done
36590
36591ac_configure_extra_args=
36592
36593if $ac_cs_silent; then
36594 exec 6>/dev/null
36595 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36596fi
36597
e6cc62c6
VS
36598_ACEOF
36599cat >>$CONFIG_STATUS <<_ACEOF
36600if \$ac_cs_recheck; then
36601 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36602 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36603fi
36604
e6cc62c6 36605_ACEOF
fe0895cf 36606
e6cc62c6 36607cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36608#
e6cc62c6 36609# INIT-COMMANDS section.
10f2d63a 36610#
10f2d63a 36611
a0b9e27f 36612
e6cc62c6
VS
36613 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36614 LN_S="${LN_S}"
10f2d63a 36615
10f2d63a 36616
10f2d63a 36617
e6cc62c6 36618_ACEOF
8284b0c5 36619
52127426 36620
247f5006 36621
e6cc62c6
VS
36622cat >>$CONFIG_STATUS <<\_ACEOF
36623for ac_config_target in $ac_config_targets
247f5006 36624do
e6cc62c6
VS
36625 case "$ac_config_target" in
36626 # Handling of arguments.
81345eef
VZ
36627 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36628 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36629 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36630 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36631 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36632 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36633 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36634echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36635 { (exit 1); exit 1; }; };;
247f5006
VZ
36636 esac
36637done
36638
e6cc62c6
VS
36639# If the user did not use the arguments to specify the items to instantiate,
36640# then the envvar interface is used. Set only those that are not.
36641# We use the long form for the default assignment because of an extremely
36642# bizarre bug on SunOS 4.1.3.
36643if $ac_need_defaults; then
36644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36647fi
36648
36649# Have a temporary directory for convenience. Make it in the build tree
36650# simply because there is no reason to put it here, and in addition,
36651# creating and moving files from /tmp can sometimes cause problems.
36652# Create a temporary directory, and hook for its removal unless debugging.
36653$debug ||
36654{
36655 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36656 trap '{ (exit 1); exit 1; }' 1 2 13 15
36657}
247f5006 36658
e6cc62c6 36659# Create a (secure) tmp directory for tmp files.
247f5006 36660
e6cc62c6
VS
36661{
36662 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36663 test -n "$tmp" && test -d "$tmp"
36664} ||
36665{
36666 tmp=./confstat$$-$RANDOM
36667 (umask 077 && mkdir $tmp)
36668} ||
36669{
36670 echo "$me: cannot create a temporary directory in ." >&2
36671 { (exit 1); exit 1; }
36672}
36673
36674_ACEOF
36675
36676cat >>$CONFIG_STATUS <<_ACEOF
36677
36678#
36679# CONFIG_FILES section.
36680#
247f5006 36681
e6cc62c6
VS
36682# No need to generate the scripts if there are no CONFIG_FILES.
36683# This happens for instance when ./config.status config.h
36684if test -n "\$CONFIG_FILES"; then
36685 # Protect against being on the right side of a sed subst in config.status.
36686 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36687 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36688s,@SHELL@,$SHELL,;t t
36689s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36690s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36691s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36692s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36693s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36694s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36695s,@exec_prefix@,$exec_prefix,;t t
36696s,@prefix@,$prefix,;t t
36697s,@program_transform_name@,$program_transform_name,;t t
36698s,@bindir@,$bindir,;t t
36699s,@sbindir@,$sbindir,;t t
36700s,@libexecdir@,$libexecdir,;t t
36701s,@datadir@,$datadir,;t t
36702s,@sysconfdir@,$sysconfdir,;t t
36703s,@sharedstatedir@,$sharedstatedir,;t t
36704s,@localstatedir@,$localstatedir,;t t
36705s,@libdir@,$libdir,;t t
36706s,@includedir@,$includedir,;t t
36707s,@oldincludedir@,$oldincludedir,;t t
36708s,@infodir@,$infodir,;t t
36709s,@mandir@,$mandir,;t t
36710s,@build_alias@,$build_alias,;t t
36711s,@host_alias@,$host_alias,;t t
36712s,@target_alias@,$target_alias,;t t
36713s,@DEFS@,$DEFS,;t t
36714s,@ECHO_C@,$ECHO_C,;t t
36715s,@ECHO_N@,$ECHO_N,;t t
36716s,@ECHO_T@,$ECHO_T,;t t
36717s,@LIBS@,$LIBS,;t t
36718s,@build@,$build,;t t
36719s,@build_cpu@,$build_cpu,;t t
36720s,@build_vendor@,$build_vendor,;t t
36721s,@build_os@,$build_os,;t t
36722s,@host@,$host,;t t
36723s,@host_cpu@,$host_cpu,;t t
36724s,@host_vendor@,$host_vendor,;t t
36725s,@host_os@,$host_os,;t t
36726s,@target@,$target,;t t
36727s,@target_cpu@,$target_cpu,;t t
36728s,@target_vendor@,$target_vendor,;t t
36729s,@target_os@,$target_os,;t t
36730s,@CC@,$CC,;t t
36731s,@CFLAGS@,$CFLAGS,;t t
36732s,@LDFLAGS@,$LDFLAGS,;t t
36733s,@CPPFLAGS@,$CPPFLAGS,;t t
36734s,@ac_ct_CC@,$ac_ct_CC,;t t
36735s,@EXEEXT@,$EXEEXT,;t t
36736s,@OBJEXT@,$OBJEXT,;t t
36737s,@CPP@,$CPP,;t t
36738s,@EGREP@,$EGREP,;t t
36739s,@CXX@,$CXX,;t t
36740s,@CXXFLAGS@,$CXXFLAGS,;t t
36741s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36742s,@RANLIB@,$RANLIB,;t t
36743s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36744s,@AR@,$AR,;t t
36745s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36746s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36747s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36748s,@STRIP@,$STRIP,;t t
36749s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36750s,@LN_S@,$LN_S,;t t
36751s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36752s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36753s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36754s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36755s,@GTK_LIBS@,$GTK_LIBS,;t t
36756s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36757s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36758s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36759s,@X_CFLAGS@,$X_CFLAGS,;t t
36760s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36761s,@X_LIBS@,$X_LIBS,;t t
36762s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36763s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36764s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36765s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36766s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36767s,@RESCOMP@,$RESCOMP,;t t
36768s,@DEREZ@,$DEREZ,;t t
36769s,@SETFILE@,$SETFILE,;t t
36770s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36771s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36772s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36773s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36774s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36775s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36776s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36777s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36778s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36779s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36780s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36781s,@VENDOR@,$VENDOR,;t t
36782s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36783s,@WXUNIV@,$WXUNIV,;t t
36784s,@MONOLITHIC@,$MONOLITHIC,;t t
36785s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36786s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 36787s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 36788s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36789s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36790s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36791s,@UNICODE@,$UNICODE,;t t
36792s,@BUILD@,$BUILD,;t t
6c67131a
VS
36793s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36794s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36795s,@SHARED@,$SHARED,;t t
36796s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36797s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36798s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36799s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36800s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36801s,@SET_MAKE@,$SET_MAKE,;t t
36802s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
36803s,@ac_ct_AR@,$ac_ct_AR,;t t
36804s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36805s,@NM@,$NM,;t t
36806s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 36807s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36808s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36809s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36810s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36811s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36812s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36813s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 36814s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 36815s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36816s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 36817s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 36818s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36819s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36820s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36821s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36822s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36823s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36824s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36825s,@PIC_FLAG@,$PIC_FLAG,;t t
36826s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36827s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36828s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36829s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36830s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36831s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36832s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36833s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36834s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36835s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36836s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36837s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36838s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36839s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36840s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36841s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36842s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36843s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36844s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36845s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36846s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36847s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36848s,@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 36849s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36850s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36851s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36852s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36853s,@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 36854s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36855s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36856s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36857s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36858s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36859s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36860s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36861s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36862s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36863s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36864s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36865s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 36866s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 36867s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36868s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 36869s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 36870s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 36871s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 36872s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
3af038c0
VS
36873s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36874s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36875s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36876s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36877s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36878s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36879s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36880s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36881s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36882s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36883s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36884s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36885s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36886s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36887s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36888s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36889s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36890s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36891s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36892s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36893s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36894s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36895s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36896s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36897s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36898s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36899s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36900s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36901s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
36902s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
36903s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
36904s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
36905s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36906s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 36907s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
36908s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
36909s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
36910s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36911s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36912s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36913s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36914s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36915s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36916s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 36917s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
6f628073
VS
36918s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36919s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36920s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36921s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36922s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36923s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36924s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36925s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36926s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36927s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36928s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36929s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36930s,@PATH_IFS@,$PATH_IFS,;t t
36931s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36932s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36933s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36934s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36935s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36936s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36937s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36938s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36939s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36940s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36941s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36942s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36943s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36944s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36945s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36946s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36947s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36948s,@WX_ALL@,$WX_ALL,;t t
36949s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36950s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36951s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36952s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36953s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36954s,@USE_GUI@,$USE_GUI,;t t
36955s,@AFMINSTALL@,$AFMINSTALL,;t t
36956s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36957s,@TOOLKIT@,$TOOLKIT,;t t
36958s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36959s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36960s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36961s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36962s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36963s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36964s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36965s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36966s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36967s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36968s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36969s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36970s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36971s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36972s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36973s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36974s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36975s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36976s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36977s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36978s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36979s,@GUIDIST@,$GUIDIST,;t t
36980s,@PORT_FILES@,$PORT_FILES,;t t
36981s,@DISTDIR@,$DISTDIR,;t t
36982s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36983s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36984s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36985s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36986s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36987s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36988s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36989s,@RESFLAGS@,$RESFLAGS,;t t
36990s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36991s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36992s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
36993s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36994s,@MACRESCOMP@,$MACRESCOMP,;t t
36995s,@MACSETFILE@,$MACSETFILE,;t t
36996s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36997s,@GCC@,$GCC,;t t
36998s,@DLLTOOL@,$DLLTOOL,;t t
36999s,@AS@,$AS,;t t
e6cc62c6
VS
37000s,@LD@,$LD,;t t
37001s,@MAKEINFO@,$MAKEINFO,;t t
37002s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
37003s,@LIBOBJS@,$LIBOBJS,;t t
37004s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
37005CEOF
37006
e6cc62c6
VS
37007_ACEOF
37008
37009 cat >>$CONFIG_STATUS <<\_ACEOF
37010 # Split the substitutions into bite-sized pieces for seds with
37011 # small command number limits, like on Digital OSF/1 and HP-UX.
37012 ac_max_sed_lines=48
37013 ac_sed_frag=1 # Number of current file.
37014 ac_beg=1 # First line for current file.
37015 ac_end=$ac_max_sed_lines # Line after last line for current file.
37016 ac_more_lines=:
37017 ac_sed_cmds=
37018 while $ac_more_lines; do
37019 if test $ac_beg -gt 1; then
37020 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 37021 else
e6cc62c6
VS
37022 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37023 fi
37024 if test ! -s $tmp/subs.frag; then
37025 ac_more_lines=false
37026 else
37027 # The purpose of the label and of the branching condition is to
37028 # speed up the sed processing (if there are no `@' at all, there
37029 # is no need to browse any of the substitutions).
37030 # These are the two extra sed commands mentioned above.
37031 (echo ':t
37032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37033 if test -z "$ac_sed_cmds"; then
09d3439c 37034 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 37035 else
09d3439c 37036 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
37037 fi
37038 ac_sed_frag=`expr $ac_sed_frag + 1`
37039 ac_beg=$ac_end
37040 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 37041 fi
e6cc62c6
VS
37042 done
37043 if test -z "$ac_sed_cmds"; then
37044 ac_sed_cmds=cat
10f2d63a 37045 fi
e6cc62c6 37046fi # test -n "$CONFIG_FILES"
10f2d63a 37047
e6cc62c6
VS
37048_ACEOF
37049cat >>$CONFIG_STATUS <<\_ACEOF
37050for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 37051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
37052 case $ac_file in
37053 - | *:- | *:-:* ) # input from stdin
09d3439c
VZ
37054 cat >$tmp/stdin
37055 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37057 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
09d3439c 37058 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37059 * ) ac_file_in=$ac_file.in ;;
10f2d63a 37060 esac
247f5006 37061
e6cc62c6
VS
37062 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
37063 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37064$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
09d3439c
VZ
37065 X"$ac_file" : 'X\(//\)[^/]' \| \
37066 X"$ac_file" : 'X\(//\)$' \| \
37067 X"$ac_file" : 'X\(/\)' \| \
37068 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
37069echo X"$ac_file" |
37070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37072 /^X\(\/\/\)$/{ s//\1/; q; }
37073 /^X\(\/\).*/{ s//\1/; q; }
37074 s/.*/./; q'`
37075 { if $as_mkdir_p; then
37076 mkdir -p "$ac_dir"
a0b9e27f 37077 else
e6cc62c6
VS
37078 as_dir="$ac_dir"
37079 as_dirs=
37080 while test ! -d "$as_dir"; do
37081 as_dirs="$as_dir $as_dirs"
37082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37083$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
09d3439c
VZ
37084 X"$as_dir" : 'X\(//\)[^/]' \| \
37085 X"$as_dir" : 'X\(//\)$' \| \
37086 X"$as_dir" : 'X\(/\)' \| \
37087 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
37088echo X"$as_dir" |
37089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37091 /^X\(\/\/\)$/{ s//\1/; q; }
37092 /^X\(\/\).*/{ s//\1/; q; }
37093 s/.*/./; q'`
37094 done
37095 test ! -n "$as_dirs" || mkdir $as_dirs
37096 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37097echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37098 { (exit 1); exit 1; }; }; }
37099
37100 ac_builddir=.
37101
37102if test "$ac_dir" != .; then
37103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37104 # A "../" for each directory in $ac_dir_suffix.
37105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37106else
37107 ac_dir_suffix= ac_top_builddir=
37108fi
247f5006 37109
e6cc62c6
VS
37110case $srcdir in
37111 .) # No --srcdir option. We are building in place.
37112 ac_srcdir=.
37113 if test -z "$ac_top_builddir"; then
37114 ac_top_srcdir=.
37115 else
37116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37117 fi ;;
37118 [\\/]* | ?:[\\/]* ) # Absolute path.
37119 ac_srcdir=$srcdir$ac_dir_suffix;
37120 ac_top_srcdir=$srcdir ;;
247f5006 37121 *) # Relative path.
e6cc62c6
VS
37122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37124esac
09d3439c
VZ
37125# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37126# absolute.
37127ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37128ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37129ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37130ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 37131
247f5006 37132
e6cc62c6
VS
37133 case $INSTALL in
37134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37135 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 37136 esac
247f5006 37137
e6cc62c6
VS
37138 if test x"$ac_file" != x-; then
37139 { echo "$as_me:$LINENO: creating $ac_file" >&5
37140echo "$as_me: creating $ac_file" >&6;}
37141 rm -f "$ac_file"
37142 fi
37143 # Let's still pretend it is `configure' which instantiates (i.e., don't
37144 # use $as_me), people would be surprised to read:
37145 # /* config.h. Generated by config.status. */
37146 if test x"$ac_file" = x-; then
37147 configure_input=
37148 else
37149 configure_input="$ac_file. "
37150 fi
37151 configure_input=$configure_input"Generated from `echo $ac_file_in |
09d3439c 37152 sed 's,.*/,,'` by configure."
e6cc62c6
VS
37153
37154 # First look for the input files in the build tree, otherwise in the
37155 # src tree.
37156 ac_file_inputs=`IFS=:
37157 for f in $ac_file_in; do
37158 case $f in
37159 -) echo $tmp/stdin ;;
37160 [\\/$]*)
09d3439c
VZ
37161 # Absolute (can't be DOS-style, as IFS=:)
37162 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37163echo "$as_me: error: cannot find input file: $f" >&2;}
37164 { (exit 1); exit 1; }; }
09d3439c 37165 echo $f;;
e6cc62c6 37166 *) # Relative
09d3439c
VZ
37167 if test -f "$f"; then
37168 # Build tree
37169 echo $f
37170 elif test -f "$srcdir/$f"; then
37171 # Source tree
37172 echo $srcdir/$f
37173 else
37174 # /dev/null tree
37175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37176echo "$as_me: error: cannot find input file: $f" >&2;}
37177 { (exit 1); exit 1; }; }
09d3439c 37178 fi;;
e6cc62c6
VS
37179 esac
37180 done` || { (exit 1); exit 1; }
37181_ACEOF
37182cat >>$CONFIG_STATUS <<_ACEOF
37183 sed "$ac_vpsub
37184$extrasub
37185_ACEOF
37186cat >>$CONFIG_STATUS <<\_ACEOF
37187:t
37188/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37189s,@configure_input@,$configure_input,;t t
37190s,@srcdir@,$ac_srcdir,;t t
37191s,@abs_srcdir@,$ac_abs_srcdir,;t t
37192s,@top_srcdir@,$ac_top_srcdir,;t t
37193s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
37194s,@builddir@,$ac_builddir,;t t
37195s,@abs_builddir@,$ac_abs_builddir,;t t
37196s,@top_builddir@,$ac_top_builddir,;t t
37197s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
37198s,@INSTALL@,$ac_INSTALL,;t t
37199" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
37200 rm -f $tmp/stdin
37201 if test x"$ac_file" != x-; then
37202 mv $tmp/out $ac_file
37203 else
37204 cat $tmp/out
37205 rm -f $tmp/out
37206 fi
37207
37208done
37209_ACEOF
37210cat >>$CONFIG_STATUS <<\_ACEOF
37211
37212#
37213# CONFIG_HEADER section.
37214#
10f2d63a
VZ
37215
37216# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
37217# NAME is the cpp macro being defined and VALUE is the value it is being given.
37218#
37219# ac_d sets the value in "#define NAME VALUE" lines.
09d3439c
VZ
37220ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
37221ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
37222ac_dC=' '
37223ac_dD=',;t'
37224# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
09d3439c 37225ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 37226ac_uB='$,\1#\2define\3'
10f2d63a 37227ac_uC=' '
e6cc62c6
VS
37228ac_uD=',;t'
37229
37230for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 37231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
37232 case $ac_file in
37233 - | *:- | *:-:* ) # input from stdin
09d3439c
VZ
37234 cat >$tmp/stdin
37235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
09d3439c 37238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 37239 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
37240 esac
37241
e6cc62c6
VS
37242 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
37243echo "$as_me: creating $ac_file" >&6;}
37244
37245 # First look for the input files in the build tree, otherwise in the
37246 # src tree.
37247 ac_file_inputs=`IFS=:
37248 for f in $ac_file_in; do
37249 case $f in
37250 -) echo $tmp/stdin ;;
37251 [\\/$]*)
09d3439c
VZ
37252 # Absolute (can't be DOS-style, as IFS=:)
37253 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37254echo "$as_me: error: cannot find input file: $f" >&2;}
37255 { (exit 1); exit 1; }; }
09d3439c 37256 echo $f;;
e6cc62c6 37257 *) # Relative
09d3439c
VZ
37258 if test -f "$f"; then
37259 # Build tree
37260 echo $f
37261 elif test -f "$srcdir/$f"; then
37262 # Source tree
37263 echo $srcdir/$f
37264 else
37265 # /dev/null tree
37266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
37267echo "$as_me: error: cannot find input file: $f" >&2;}
37268 { (exit 1); exit 1; }; }
09d3439c 37269 fi;;
e6cc62c6
VS
37270 esac
37271 done` || { (exit 1); exit 1; }
37272 # Remove the trailing spaces.
09d3439c 37273 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
37274
37275_ACEOF
37276
37277# Transform confdefs.h into two sed scripts, `conftest.defines' and
37278# `conftest.undefs', that substitutes the proper values into
37279# config.h.in to produce config.h. The first handles `#define'
37280# templates, and the second `#undef' templates.
37281# And first: Protect against being on the right side of a sed subst in
37282# config.status. Protect against being in an unquoted here document
37283# in config.status.
37284rm -f conftest.defines conftest.undefs
37285# Using a here document instead of a string reduces the quoting nightmare.
37286# Putting comments in sed scripts is not portable.
37287#
37288# `end' is used to avoid that the second main sed command (meant for
37289# 0-ary CPP macros) applies to n-ary macro definitions.
37290# See the Autoconf documentation for `clear'.
37291cat >confdef2sed.sed <<\_ACEOF
37292s/[\\&,]/\\&/g
37293s,[\\$`],\\&,g
37294t clear
37295: clear
09d3439c 37296s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 37297t end
09d3439c 37298s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
37299: end
37300_ACEOF
37301# If some macros were called several times there might be several times
37302# the same #defines, which is useless. Nevertheless, we may not want to
37303# sort them, since we want the *last* AC-DEFINE to be honored.
37304uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37305sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37306rm -f confdef2sed.sed
10f2d63a
VZ
37307
37308# This sed command replaces #undef with comments. This is necessary, for
37309# example, in the case of _POSIX_SOURCE, which is predefined and required
37310# on some systems where configure will not decide to define it.
e6cc62c6 37311cat >>conftest.undefs <<\_ACEOF
09d3439c 37312s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
37313_ACEOF
37314
37315# Break up conftest.defines because some shells have a limit on the size
37316# of here documents, and old seds have small limits too (100 cmds).
37317echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
09d3439c 37318echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
37319echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37320echo ' :' >>$CONFIG_STATUS
37321rm -f conftest.tail
37322while grep . conftest.defines >/dev/null
37323do
37324 # Write a limited-size here document to $tmp/defines.sed.
37325 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37326 # Speed up: don't consider the non `#define' lines.
09d3439c 37327 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
37328 # Work around the forget-to-reset-the-flag bug.
37329 echo 't clr' >>$CONFIG_STATUS
37330 echo ': clr' >>$CONFIG_STATUS
37331 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37332 echo 'CEOF
37333 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37334 rm -f $tmp/in
37335 mv $tmp/out $tmp/in
37336' >>$CONFIG_STATUS
37337 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37338 rm -f conftest.defines
37339 mv conftest.tail conftest.defines
37340done
37341rm -f conftest.defines
37342echo ' fi # grep' >>$CONFIG_STATUS
37343echo >>$CONFIG_STATUS
10f2d63a 37344
e6cc62c6
VS
37345# Break up conftest.undefs because some shells have a limit on the size
37346# of here documents, and old seds have small limits too (100 cmds).
37347echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 37348rm -f conftest.tail
e6cc62c6 37349while grep . conftest.undefs >/dev/null
10f2d63a 37350do
e6cc62c6
VS
37351 # Write a limited-size here document to $tmp/undefs.sed.
37352 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37353 # Speed up: don't consider the non `#undef'
09d3439c 37354 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
37355 # Work around the forget-to-reset-the-flag bug.
37356 echo 't clr' >>$CONFIG_STATUS
37357 echo ': clr' >>$CONFIG_STATUS
37358 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 37359 echo 'CEOF
e6cc62c6
VS
37360 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37361 rm -f $tmp/in
37362 mv $tmp/out $tmp/in
37363' >>$CONFIG_STATUS
37364 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37365 rm -f conftest.undefs
37366 mv conftest.tail conftest.undefs
10f2d63a 37367done
e6cc62c6
VS
37368rm -f conftest.undefs
37369
37370cat >>$CONFIG_STATUS <<\_ACEOF
37371 # Let's still pretend it is `configure' which instantiates (i.e., don't
37372 # use $as_me), people would be surprised to read:
37373 # /* config.h. Generated by config.status. */
37374 if test x"$ac_file" = x-; then
37375 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 37376 else
e6cc62c6 37377 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 37378 fi
e6cc62c6
VS
37379 cat $tmp/in >>$tmp/config.h
37380 rm -f $tmp/in
37381 if test x"$ac_file" != x-; then
37382 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37383 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37384echo "$as_me: $ac_file is unchanged" >&6;}
37385 else
37386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
09d3439c
VZ
37388 X"$ac_file" : 'X\(//\)[^/]' \| \
37389 X"$ac_file" : 'X\(//\)$' \| \
37390 X"$ac_file" : 'X\(/\)' \| \
37391 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
37392echo X"$ac_file" |
37393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37395 /^X\(\/\/\)$/{ s//\1/; q; }
37396 /^X\(\/\).*/{ s//\1/; q; }
37397 s/.*/./; q'`
37398 { if $as_mkdir_p; then
37399 mkdir -p "$ac_dir"
37400 else
37401 as_dir="$ac_dir"
37402 as_dirs=
37403 while test ! -d "$as_dir"; do
37404 as_dirs="$as_dir $as_dirs"
37405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
09d3439c
VZ
37407 X"$as_dir" : 'X\(//\)[^/]' \| \
37408 X"$as_dir" : 'X\(//\)$' \| \
37409 X"$as_dir" : 'X\(/\)' \| \
37410 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
37411echo X"$as_dir" |
37412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37414 /^X\(\/\/\)$/{ s//\1/; q; }
37415 /^X\(\/\).*/{ s//\1/; q; }
37416 s/.*/./; q'`
37417 done
37418 test ! -n "$as_dirs" || mkdir $as_dirs
37419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37420echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37421 { (exit 1); exit 1; }; }; }
a0b9e27f 37422
e6cc62c6
VS
37423 rm -f $ac_file
37424 mv $tmp/config.h $ac_file
37425 fi
37426 else
37427 cat $tmp/config.h
37428 rm -f $tmp/config.h
37429 fi
37430done
37431_ACEOF
37432cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 37433
e6cc62c6
VS
37434#
37435# CONFIG_COMMANDS section.
37436#
37437for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37438 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37439 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37440 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37441$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
09d3439c
VZ
37442 X"$ac_dest" : 'X\(//\)[^/]' \| \
37443 X"$ac_dest" : 'X\(//\)$' \| \
37444 X"$ac_dest" : 'X\(/\)' \| \
37445 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
37446echo X"$ac_dest" |
37447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37449 /^X\(\/\/\)$/{ s//\1/; q; }
37450 /^X\(\/\).*/{ s//\1/; q; }
37451 s/.*/./; q'`
37452 ac_builddir=.
37453
37454if test "$ac_dir" != .; then
37455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37456 # A "../" for each directory in $ac_dir_suffix.
37457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37458else
37459 ac_dir_suffix= ac_top_builddir=
37460fi
37461
37462case $srcdir in
37463 .) # No --srcdir option. We are building in place.
37464 ac_srcdir=.
37465 if test -z "$ac_top_builddir"; then
37466 ac_top_srcdir=.
37467 else
37468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37469 fi ;;
37470 [\\/]* | ?:[\\/]* ) # Absolute path.
37471 ac_srcdir=$srcdir$ac_dir_suffix;
37472 ac_top_srcdir=$srcdir ;;
37473 *) # Relative path.
37474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37475 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37476esac
09d3439c
VZ
37477# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37478# absolute.
37479ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37480ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37481ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37482ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
37483
37484
37485 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37486echo "$as_me: executing $ac_dest commands" >&6;}
37487 case $ac_dest in
37488 default )
652d930d 37489 if test ! -h wx-config; then
991a5759 37490 chmod +x wx-config
3a922bb4
RL
37491 mv wx-config wx${TOOLCHAIN_NAME}-config
37492 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37493 fi
665bbe97 37494
00cf1208
RR
37495 if test ! -d lib; then
37496 mkdir lib
37497 fi
37498 if test ! -d lib/wx; then
37499 mkdir lib/wx
37500 fi
37501 if test ! -d lib/wx/include; then
37502 mkdir lib/wx/include
37503 fi
3a922bb4
RL
37504 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37505 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37506 fi
3a922bb4
RL
37507 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37508 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37509 fi
37510 if test -f setup.h; then
3a922bb4 37511 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37512 fi
e6cc62c6
VS
37513 ;;
37514 esac
37515done
37516_ACEOF
2224580a 37517
e6cc62c6 37518cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37519
e6cc62c6
VS
37520{ (exit 0); exit 0; }
37521_ACEOF
37522chmod +x $CONFIG_STATUS
37523ac_clean_files=$ac_clean_files_save
37524
37525
37526# configure is writing to config.log, and then calls config.status.
37527# config.status does its own redirection, appending to config.log.
37528# Unfortunately, on DOS this fails, as config.log is still kept open
37529# by configure, so config.status won't be able to write to it; its
37530# output is simply discarded. So we exec the FD to /dev/null,
37531# effectively closing config.log, so it can be properly (re)opened and
37532# appended to by config.status. When coming back to configure, we
37533# need to make the FD available again.
37534if test "$no_create" != yes; then
37535 ac_cs_success=:
37536 ac_config_status_args=
37537 test "$silent" = yes &&
37538 ac_config_status_args="$ac_config_status_args --quiet"
37539 exec 5>/dev/null
37540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37541 exec 5>>config.log
37542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37543 # would make configure fail if this is the last instruction.
37544 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37545fi
37546
672abd7a
VS
37547#
37548# CONFIG_SUBDIRS section.
37549#
37550if test "$no_recursion" != yes; then
37551
37552 # Remove --cache-file and --srcdir arguments so they do not pile up.
37553 ac_sub_configure_args=
37554 ac_prev=
37555 for ac_arg in $ac_configure_args; do
37556 if test -n "$ac_prev"; then
37557 ac_prev=
37558 continue
37559 fi
37560 case $ac_arg in
37561 -cache-file | --cache-file | --cache-fil | --cache-fi \
37562 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37563 ac_prev=cache_file ;;
37564 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37565 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37566 | --c=*)
37567 ;;
37568 --config-cache | -C)
37569 ;;
37570 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37571 ac_prev=srcdir ;;
37572 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37573 ;;
37574 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37575 ac_prev=prefix ;;
37576 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37577 ;;
37578 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37579 esac
37580 done
37581
37582 # Always prepend --prefix to ensure using the same prefix
37583 # in subdir configurations.
37584 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37585
37586 ac_popdir=`pwd`
37587 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37588
37589 # Do not complain, so a configure script can configure whichever
37590 # parts of a large source tree are present.
37591 test -d $srcdir/$ac_dir || continue
37592
37593 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37594echo "$as_me: configuring in $ac_dir" >&6;}
37595 { if $as_mkdir_p; then
37596 mkdir -p "$ac_dir"
37597 else
37598 as_dir="$ac_dir"
37599 as_dirs=
37600 while test ! -d "$as_dir"; do
37601 as_dirs="$as_dir $as_dirs"
37602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
09d3439c
VZ
37604 X"$as_dir" : 'X\(//\)[^/]' \| \
37605 X"$as_dir" : 'X\(//\)$' \| \
37606 X"$as_dir" : 'X\(/\)' \| \
37607 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
37608echo X"$as_dir" |
37609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37611 /^X\(\/\/\)$/{ s//\1/; q; }
37612 /^X\(\/\).*/{ s//\1/; q; }
37613 s/.*/./; q'`
37614 done
37615 test ! -n "$as_dirs" || mkdir $as_dirs
37616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37617echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37618 { (exit 1); exit 1; }; }; }
37619
37620 ac_builddir=.
37621
37622if test "$ac_dir" != .; then
37623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37624 # A "../" for each directory in $ac_dir_suffix.
37625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37626else
37627 ac_dir_suffix= ac_top_builddir=
37628fi
37629
37630case $srcdir in
37631 .) # No --srcdir option. We are building in place.
37632 ac_srcdir=.
37633 if test -z "$ac_top_builddir"; then
37634 ac_top_srcdir=.
37635 else
37636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37637 fi ;;
37638 [\\/]* | ?:[\\/]* ) # Absolute path.
37639 ac_srcdir=$srcdir$ac_dir_suffix;
37640 ac_top_srcdir=$srcdir ;;
37641 *) # Relative path.
37642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37644esac
09d3439c
VZ
37645# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37646# absolute.
37647ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37648ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37649ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37650ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
672abd7a
VS
37651
37652
37653 cd $ac_dir
37654
37655 # Check for guested configure; otherwise get Cygnus style configure.
37656 if test -f $ac_srcdir/configure.gnu; then
37657 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37658 elif test -f $ac_srcdir/configure; then
37659 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37660 elif test -f $ac_srcdir/configure.in; then
37661 ac_sub_configure=$ac_configure
37662 else
37663 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37664echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37665 ac_sub_configure=
37666 fi
37667
37668 # The recursion is here.
37669 if test -n "$ac_sub_configure"; then
37670 # Make the cache file name correct relative to the subdirectory.
37671 case $cache_file in
37672 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37673 *) # Relative path.
09d3439c 37674 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
37675 esac
37676
37677 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37678echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37679 # The eval makes quoting arguments work.
37680 eval $ac_sub_configure $ac_sub_configure_args \
09d3439c
VZ
37681 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37682 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
37683echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37684 { (exit 1); exit 1; }; }
37685 fi
37686
37687 cd $ac_popdir
37688 done
37689fi
37690
8284b0c5 37691
2b5f62a0
VZ
37692echo
37693echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37694echo ""
89fe663f 37695echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 37696echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37697
37698echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37699echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37700echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37701
0c98a14e 37702echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
37703echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37704echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37705
2b5f62a0
VZ
37706echo " Which libraries should wxWindows use?"
37707echo " jpeg ${wxUSE_LIBJPEG-none}"
37708echo " png ${wxUSE_LIBPNG-none}"
37709echo " regex ${wxUSE_REGEX}"
37710echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
37711if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
37712echo " xpm ${wxUSE_LIBXPM-none}"
37713fi
2b5f62a0 37714echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37715echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37716echo " expat ${wxUSE_EXPAT}"
3527f29c 37717echo " libmspack ${wxUSE_LIBMSPACK}"
2b5f62a0
VZ
37718
37719echo ""
37720