]> git.saurik.com Git - wxWidgets.git/blame - configure
Not sure what this was here for
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eea650d8 4# Generated by GNU Autoconf 2.58 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
eea650d8 8# Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
fe0895cf 14
e6cc62c6
VS
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
eea650d8 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
eea650d8 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
eea650d8 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
eea650d8 224 test -d ./-p && rmdir ./-p
e6cc62c6
VS
225 as_mkdir_p=false
226fi
fe0895cf 227
e6cc62c6 228as_executable_p="test -f"
fe0895cf 229
e6cc62c6 230# Sed expression to map a string onto a valid CPP name.
eea650d8 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf 232
e6cc62c6 233# Sed expression to map a string onto a valid variable name.
eea650d8 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf
VS
235
236
e6cc62c6
VS
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
fe0895cf 242
e6cc62c6
VS
243# CDPATH.
244$as_unset CDPATH
fe0895cf
VS
245
246
e6cc62c6
VS
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 251
e6cc62c6 252exec 6>&1
fe0895cf 253
a0b9e27f 254#
e6cc62c6
VS
255# Initializations.
256#
a0b9e27f 257ac_default_prefix=/usr/local
e6cc62c6
VS
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='wxWindows'
272PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
275PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
672abd7a 315ac_subdirs_all="$ac_subdirs_all src/expat"
3527f29c 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 317ac_subst_files=''
10f2d63a
VZ
318
319# Initialize some variables set by options.
e6cc62c6
VS
320ac_init_help=
321ac_init_version=false
10f2d63a
VZ
322# The variables have the same names as the options, with
323# dashes changed to underlines.
e6cc62c6 324cache_file=/dev/null
10f2d63a 325exec_prefix=NONE
10f2d63a 326no_create=
10f2d63a
VZ
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
10f2d63a
VZ
335verbose=
336x_includes=NONE
337x_libraries=NONE
e6cc62c6
VS
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
10f2d63a
VZ
357ac_prev=
358for ac_option
359do
10f2d63a
VZ
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
e6cc62c6 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
e6cc62c6 371 case $ac_option in
10f2d63a
VZ
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 376 bindir=$ac_optarg ;;
10f2d63a
VZ
377
378 -build | --build | --buil | --bui | --bu)
e6cc62c6 379 ac_prev=build_alias ;;
10f2d63a 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 381 build_alias=$ac_optarg ;;
10f2d63a
VZ
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
10f2d63a
VZ
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
e6cc62c6 397 datadir=$ac_optarg ;;
10f2d63a
VZ
398
399 -disable-* | --disable-*)
e6cc62c6 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 401 # Reject names that are not valid shell variable names.
e6cc62c6
VS
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
407
408 -enable-* | --enable-*)
e6cc62c6 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 410 # Reject names that are not valid shell variable names.
e6cc62c6
VS
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
417 *) ac_optarg=yes ;;
418 esac
e6cc62c6 419 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
e6cc62c6 428 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
e6cc62c6
VS
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
10f2d63a
VZ
440
441 -host | --host | --hos | --ho)
e6cc62c6 442 ac_prev=host_alias ;;
10f2d63a 443 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 444 host_alias=$ac_optarg ;;
10f2d63a
VZ
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 451 includedir=$ac_optarg ;;
10f2d63a
VZ
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 456 infodir=$ac_optarg ;;
10f2d63a
VZ
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 461 libdir=$ac_optarg ;;
10f2d63a
VZ
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 468 libexecdir=$ac_optarg ;;
10f2d63a
VZ
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 477 localstatedir=$ac_optarg ;;
10f2d63a
VZ
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 482 mandir=$ac_optarg ;;
10f2d63a
VZ
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 489 | --no-cr | --no-c | -n)
10f2d63a
VZ
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 503 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 508 prefix=$ac_optarg ;;
10f2d63a
VZ
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 515 program_prefix=$ac_optarg ;;
10f2d63a
VZ
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 522 program_suffix=$ac_optarg ;;
10f2d63a
VZ
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 539 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
e6cc62c6 549 sbindir=$ac_optarg ;;
10f2d63a
VZ
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
e6cc62c6 560 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
e6cc62c6 565 site=$ac_optarg ;;
10f2d63a
VZ
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 570 srcdir=$ac_optarg ;;
10f2d63a
VZ
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 577 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 580 ac_prev=target_alias ;;
10f2d63a 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 582 target_alias=$ac_optarg ;;
10f2d63a
VZ
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
e6cc62c6
VS
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
10f2d63a
VZ
589
590 -with-* | --with-*)
e6cc62c6 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 592 # Reject names that are not valid shell variable names.
e6cc62c6
VS
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
10f2d63a 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
599 *) ac_optarg=yes ;;
600 esac
e6cc62c6 601 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
602
603 -without-* | --without-*)
e6cc62c6 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 605 # Reject names that are not valid shell variable names.
e6cc62c6
VS
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
10f2d63a
VZ
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 621 x_includes=$ac_optarg ;;
10f2d63a
VZ
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 628 x_libraries=$ac_optarg ;;
10f2d63a 629
e6cc62c6
VS
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
10f2d63a
VZ
633 ;;
634
e6cc62c6
VS
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
10f2d63a 645 *)
e6cc62c6
VS
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
e6cc62c6
VS
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
a0b9e27f 660fi
a0b9e27f 661
e6cc62c6
VS
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
8284b0c5 672
e6cc62c6
VS
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
eea650d8 675 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 676do
e6cc62c6
VS
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
10f2d63a
VZ
682 esac
683done
684
e6cc62c6
VS
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
247f5006 702
e6cc62c6
VS
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
10f2d63a 707
10f2d63a
VZ
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
e6cc62c6
VS
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
10f2d63a
VZ
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
10f2d63a 736 else
e6cc62c6
VS
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
10f2d63a
VZ
739 fi
740fi
e6cc62c6
VS
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 789
e6cc62c6
VS
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
e46d2a18 797\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 798
e6cc62c6 799Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 800
e6cc62c6
VS
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 803
e6cc62c6
VS
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
eea650d8 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
eea650d8 824 [PREFIX]
e6cc62c6
VS
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
e46d2a18 863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
9747f85d 871 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
872 --enable-universal use wxWindows GUI controls instead of native ones
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-shared create shared library code
e6cc62c6
VS
876 --enable-optimise create optimised code
877 --enable-debug same as debug_flag and debug_info
df5168c4 878 --enable-stl use STL for containers
e6cc62c6
VS
879 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
880 --enable-debug_info create code with debugging information
881 --enable-debug_gdb create code with extra GDB debugging information
882 --enable-debug_cntxt use wxDebugContext
883 --enable-mem_tracing create code with memory tracing
884 --enable-profile create code with profiling information
885 --enable-no_rtti create code without RTTI information
886 --enable-no_exceptions create code without C++ exceptions handling
887 --enable-permissive compile code disregarding strict ANSI
888 --enable-no_deps create code without dependency information
e6cc62c6
VS
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
e46d2a18 899 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
902 --enable-apple_ieee use the Apple IEEE codec
903 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
904 --enable-cmdline use wxCmdLineParser class
905 --enable-datetime use wxDateTime class
e6cc62c6 906 --enable-dialupman use dialup network classes
e6cc62c6
VS
907 --enable-dynlib use wxLibrary class for DLL loading
908 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
909 --enable-exceptions build exception-safe library
910 --enable-ffile use wxFFile class
911 --enable-file use wxFile class
912 --enable-filesystem use virtual file systems classes
913 --enable-fontmap use font encodings conversion classes
914 --enable-fs_inet use virtual HTTP/FTP filesystems
915 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
916 --enable-geometry use geometry class
917 --enable-log use logging system
e46d2a18
VS
918 --enable-longlong use wxLongLong class
919 --enable-mimetype use wxMimeTypesManager
920 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
921 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 922 --enable-streams use wxStream etc classes
e46d2a18
VS
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-stopwatch use wxStopWatch class
925 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
926 --enable-textbuf use wxTextBuffer class
927 --enable-textfile use wxTextFile class
e46d2a18 928 --enable-timer use wxTimer class
e6cc62c6 929 --enable-unicode compile wxString with Unicode support
e46d2a18 930 --enable-wave use wxWave class
e6cc62c6 931 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 932 --enable-zipstream use wxZipInputStream
7015ef3a 933 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
934 --enable-url use wxURL class
935 --enable-protocol use wxProtocol class
936 --enable-protocol-http HTTP support in wxProtocol
937 --enable-protocol-ftp FTP support in wxProtocol
938 --enable-protocol-file FILE support in wxProtocol
939 --enable-threads use threads
940 --enable-docview use document view architecture
941 --enable-help use help subsystem
942 --enable-mshtmlhelp use MS HTML Help (win32)
943 --enable-html use wxHTML sub-library
944 --enable-htmlhelp use wxHTML-based help
945 --enable-constraints use layout-constraints system
946 --enable-printarch use printing architecture
947 --enable-mdi use multiple document interface architecture
948 --enable-loggui use standard GUI logger
949 --enable-logwin use wxLogWindow
950 --enable-logdialog use wxLogDialog
951 --enable-postscript use wxPostscriptDC device context (default for gtk+)
952 --enable-prologio not available; see contrib
953 --enable-resources not available; see contrib
954 --enable-clipboard use wxClipboard class
955 --enable-dnd use Drag'n'Drop classes
956 --enable-metafile use win32 metafiles
957 --enable-controls use all usual controls
958 --enable-accel use accelerators
959 --enable-button use wxButton class
960 --enable-bmpbutton use wxBitmapButton class
961 --enable-calendar use wxCalendarCtrl class
962 --enable-caret use wxCaret class
963 --enable-checkbox use wxCheckBox class
964 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
965 --enable-choice use wxChoice class
966 --enable-combobox use wxComboBox class
967 --enable-display use wxDisplay class
968 --enable-gauge use wxGauge class
969 --enable-grid use wxGrid class
970 --enable-imaglist use wxImageList class
0e012a93 971 --enable-listbook use wxListbook class
e6cc62c6
VS
972 --enable-listbox use wxListBox class
973 --enable-listctrl use wxListCtrl class
974 --enable-notebook use wxNotebook class
975 --enable-radiobox use wxRadioBox class
976 --enable-radiobtn use wxRadioButton class
977 --enable-sash use wxSashWindow class
978 --enable-scrollbar use wxScrollBar class and scrollable windows
979 --enable-slider use wxSlider class
980 --enable-spinbtn use wxSpinButton class
981 --enable-spinctrl use wxSpinCtrl class
982 --enable-splitter use wxSplitterWindow class
983 --enable-statbmp use wxStaticBitmap class
984 --enable-statbox use wxStaticBox class
985 --enable-statline use wxStaticLine class
986 --enable-stattext use wxStaticText class
987 --enable-statusbar use wxStatusBar class
988 --enable-tabdialog use wxTabControl class
989 --enable-textctrl use wxTextCtrl class
990 --enable-togglebtn use wxToggleButton class
991 --enable-toolbar use wxToolBar class
992 --enable-tbarnative use native wxToolBar class
993 --enable-tbarsmpl use wxToolBarSimple class
994 --enable-treectrl use wxTreeCtrl class
995 --enable-tipwindow use wxTipWindow class
996 --enable-popupwin use wxPopUpWindow class
997 --enable-commondlg use all common dialogs
998 --enable-choicedlg use wxChoiceDialog
999 --enable-coldlg use wxColourDialog
1000 --enable-filedlg use wxFileDialog
1001 --enable-finddlg use wxFindReplaceDialog
1002 --enable-fontdlg use wxFontDialog
1003 --enable-dirdlg use wxDirDialog
1004 --enable-msgdlg use wxMessageDialog
1005 --enable-numberdlg use wxNumberEntryDialog
1006 --enable-splash use wxSplashScreen
1007 --enable-textdlg use wxTextDialog
1008 --enable-tipdlg use startup tips
1009 --enable-progressdlg use wxProgressDialog
1010 --enable-wizarddlg use wxWizard
1011 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1012 --enable-miniframe use wxMiniFrame class
1013 --enable-tooltips use wxToolTip class
1014 --enable-splines use spline drawing code
1015 --enable-validators use wxValidator and derived classes
1016 --enable-busyinfo use wxBusyInfo
1017 --enable-joystick use wxJoystick (Linux only)
1018 --enable-metafiles use wxMetaFile (Windows only)
1019 --enable-dragimage use wxDragImage
1020 --enable-accessibility enable accessibility support
1021 --enable-palette use wxPalette class
1022 --enable-image use wxImage class
1023 --enable-gif use gif images (GIF file format)
1024 --enable-pcx use pcx images (PCX file format)
1025 --enable-iff use iff images (IFF file format)
1026 --enable-pnm use pnm images (PNM file format)
1027 --enable-xpm use xpm images (XPM file format)
1028 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1029 --enable-official_build official build of wxWindows (win32 DLL only)
1030 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1031 --disable-largefile omit support for large files
1032 --disable-gtktest do not try to compile and run a test GTK+ program
1033 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1034 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1035
1036Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gtk use GTK+
1040 --with-motif use Motif/Lesstif
1041 --with-mac use Mac OS X
1042 --with-cocoa use Cocoa
1043 --with-wine use Wine
1044 --with-msw use MS-Windows
1045 --with-pm use OS/2 Presentation Manager
1046 --with-mgl use SciTech MGL
1047 --with-microwin use MicroWindows
1048 --with-x11 use X11
1049 --with-libpng use libpng (PNG image format)
1050 --with-libjpeg use libjpeg (JPEG file format)
1051 --with-libtiff use libtiff (TIFF file format)
89fe663f 1052 --with-libxpm use libxpm (XPM file format)
3527f29c 1053 --with-libmspack use libmspack (CHM help files loading)
e6cc62c6
VS
1054 --with-opengl use OpenGL (or Mesa)
1055 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1056 --with-regex enable support for wxRegEx class
1057 --with-zlib use zlib for LZW compression
1058 --with-odbc use the IODBC and wxODBC classes
672abd7a 1059 --with-expat enable XML support using expat parser
e6cc62c6
VS
1060 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1061 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1062 --with-x use the X Window System
1063 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1064
1065Some influential environment variables:
1066 CC C compiler command
1067 CFLAGS C compiler flags
1068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
1072 CPP C preprocessor
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1075 CXXCPP C++ preprocessor
1076
1077Use these variables to override the choices made by `configure' or to help
1078it to find libraries and programs with nonstandard names/locations.
1079
1080Report bugs to <wx-dev@lists.wxwindows.org>.
1081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1086 ac_popdir=`pwd`
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1089 ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096 ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100 .) # No --srcdir option. We are building in place.
1101 ac_srcdir=.
1102 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=.
1104 else
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 fi ;;
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1110 *) # Relative path.
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
eea650d8
VS
1114case "$ac_dir" in
1115.) ac_abs_builddir=$ac_builddir;;
1116*)
1117 case $ac_builddir in
1118 .) ac_abs_builddir="$ac_dir";;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1120 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1121 esac;;
1122esac
1123case "$ac_dir" in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir="$ac_dir";;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case "$ac_dir" in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir="$ac_dir";;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1139 esac;;
1140esac
1141case "$ac_dir" in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir="$ac_dir";;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1148 esac;;
1149esac
e6cc62c6
VS
1150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
eea650d8 1160 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
8284b0c5 1169
e6cc62c6
VS
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
e46d2a18 1173wxWindows configure 2.5.1
eea650d8 1174generated by GNU Autoconf 2.58
10f2d63a 1175
eea650d8 1176Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
1179_ACEOF
1180 exit 0
7c66a493 1181fi
e6cc62c6
VS
1182exec 5>config.log
1183cat >&5 <<_ACEOF
1184This file contains any messages produced by compilers while
1185running configure, to aid debugging if configure makes a mistake.
1186
e46d2a18 1187It was created by wxWindows $as_me 2.5.1, which was
eea650d8 1188generated by GNU Autoconf 2.58. Invocation command line was
e6cc62c6
VS
1189
1190 $ $0 $@
1191
1192_ACEOF
1193{
1194cat <<_ASUNAME
1195## --------- ##
1196## Platform. ##
1197## --------- ##
1198
1199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
1205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1207
1208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1215
1216_ASUNAME
1217
1218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219for as_dir in $PATH
1220do
1221 IFS=$as_save_IFS
1222 test -z "$as_dir" && as_dir=.
1223 echo "PATH: $as_dir"
1224done
1225
1226} >&5
1227
1228cat >&5 <<_ACEOF
1229
1230
1231## ----------- ##
1232## Core tests. ##
1233## ----------- ##
1234
1235_ACEOF
1236
1237
1238# Keep a trace of the command line.
1239# Strip out --no-create and --no-recursion so they do not pile up.
1240# Strip out --silent because we don't want to record it for future runs.
1241# Also quote any args containing shell meta-characters.
1242# Make two passes to allow for proper duplicate-argument suppression.
1243ac_configure_args=
1244ac_configure_args0=
1245ac_configure_args1=
1246ac_sep=
1247ac_must_keep_next=false
1248for ac_pass in 1 2
1249do
1250 for ac_arg
1251 do
1252 case $ac_arg in
1253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 continue ;;
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 esac
1260 case $ac_pass in
1261 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 2)
1263 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264 if test $ac_must_keep_next = true; then
eea650d8 1265 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1266 else
eea650d8
VS
1267 case $ac_arg in
1268 *=* | --config-cache | -C | -disable-* | --disable-* \
1269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271 | -with-* | --with-* | -without-* | --without-* | --x)
1272 case "$ac_configure_args0 " in
1273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274 esac
1275 ;;
1276 -* ) ac_must_keep_next=true ;;
1277 esac
e6cc62c6
VS
1278 fi
1279 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280 # Get rid of the leading space.
1281 ac_sep=" "
1282 ;;
1283 esac
1284 done
1285done
1286$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
1289# When interrupted or exit'd, cleanup temporary files, and complete
1290# config.log. We remove comments because anyway the quotes in there
1291# would cause problems or look ugly.
1292# WARNING: Be sure not to use single quotes in there, as some shells,
1293# such as our DU 5.0 friend, will then `close' the trap.
1294trap 'exit_status=$?
1295 # Save into config.log some information that might help in debugging.
1296 {
1297 echo
1298
1299 cat <<\_ASBOX
1300## ---------------- ##
1301## Cache variables. ##
1302## ---------------- ##
1303_ASBOX
1304 echo
1305 # The following way of writing the cache mishandles newlines in values,
1306{
1307 (set) 2>&1 |
1308 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309 *ac_space=\ *)
1310 sed -n \
eea650d8
VS
1311 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1313 ;;
1314 *)
1315 sed -n \
eea650d8 1316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1317 ;;
1318 esac;
1319}
1320 echo
1321
1322 cat <<\_ASBOX
1323## ----------------- ##
1324## Output variables. ##
1325## ----------------- ##
1326_ASBOX
1327 echo
1328 for ac_var in $ac_subst_vars
1329 do
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1334
1335 if test -n "$ac_subst_files"; then
1336 cat <<\_ASBOX
1337## ------------- ##
1338## Output files. ##
1339## ------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_files
1343 do
1344 eval ac_val=$`echo $ac_var`
eea650d8 1345 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1346 done | sort
1347 echo
1348 fi
1349
1350 if test -s confdefs.h; then
1351 cat <<\_ASBOX
1352## ----------- ##
1353## confdefs.h. ##
1354## ----------- ##
1355_ASBOX
1356 echo
1357 sed "/^$/d" confdefs.h | sort
1358 echo
1359 fi
1360 test "$ac_signal" != 0 &&
1361 echo "$as_me: caught signal $ac_signal"
1362 echo "$as_me: exit $exit_status"
1363 } >&5
eea650d8 1364 rm -f core *.core &&
e6cc62c6
VS
1365 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366 exit $exit_status
1367 ' 0
1368for ac_signal in 1 2 13 15; do
1369 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370done
1371ac_signal=0
1372
1373# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374rm -rf conftest* confdefs.h
1375# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376echo >confdefs.h
1377
1378# Predefined preprocessor variables.
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_NAME "$PACKAGE_NAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_VERSION "$PACKAGE_VERSION"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_STRING "$PACKAGE_STRING"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402_ACEOF
1403
1404
1405# Let the site file select an alternate cache file if it wants to.
1406# Prefer explicitly selected file to automatically selected ones.
1407if test -z "$CONFIG_SITE"; then
1408 if test "x$prefix" != xNONE; then
1409 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 else
1411 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412 fi
1413fi
1414for ac_site_file in $CONFIG_SITE; do
1415 if test -r "$ac_site_file"; then
1416 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417echo "$as_me: loading site script $ac_site_file" >&6;}
1418 sed 's/^/| /' "$ac_site_file" >&5
1419 . "$ac_site_file"
1420 fi
1421done
1422
1423if test -r "$cache_file"; then
1424 # Some versions of bash will fail to source /dev/null (special
1425 # files actually), so we avoid doing that.
1426 if test -f "$cache_file"; then
1427 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428echo "$as_me: loading cache $cache_file" >&6;}
1429 case $cache_file in
1430 [\\/]* | ?:[\\/]* ) . $cache_file;;
1431 *) . ./$cache_file;;
1432 esac
1433 fi
1434else
1435 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436echo "$as_me: creating cache $cache_file" >&6;}
1437 >$cache_file
1438fi
1439
1440# Check that the precious variables saved in the cache have kept the same
1441# value.
1442ac_cache_corrupted=false
1443for ac_var in `(set) 2>&1 |
eea650d8 1444 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446 eval ac_new_set=\$ac_env_${ac_var}_set
1447 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448 eval ac_new_val="\$ac_env_${ac_var}_value"
1449 case $ac_old_set,$ac_new_set in
1450 set,)
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1454 ,set)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,);;
1459 *)
1460 if test "x$ac_old_val" != "x$ac_new_val"; then
eea650d8 1461 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1462echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
eea650d8 1463 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1464echo "$as_me: former value: $ac_old_val" >&2;}
eea650d8 1465 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1466echo "$as_me: current value: $ac_new_val" >&2;}
eea650d8 1467 ac_cache_corrupted=:
e6cc62c6
VS
1468 fi;;
1469 esac
1470 # Pass precious variables to config.status.
1471 if test "$ac_new_set" = set; then
1472 case $ac_new_val in
1473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 *) ac_arg=$ac_var=$ac_new_val ;;
1476 esac
1477 case " $ac_configure_args " in
1478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1479 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480 esac
1481 fi
1482done
1483if $ac_cache_corrupted; then
1484 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488 { (exit 1); exit 1; }; }
1489fi
1490
1491ac_ext=c
1492ac_cpp='$CPP $CPPFLAGS'
1493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
698dcdb6 1513
8284b0c5 1514
7c66a493 1515
a0b9e27f
MB
1516
1517
a0b9e27f 1518
a0b9e27f 1519
a0b9e27f 1520
a0b9e27f 1521
a0b9e27f 1522
a0b9e27f 1523
e6cc62c6
VS
1524
1525
1526ac_aux_dir=
1527for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1528 if test -f $ac_dir/install-sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install-sh -c"
1531 break
1532 elif test -f $ac_dir/install.sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install.sh -c"
1535 break
1536 elif test -f $ac_dir/shtool; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/shtool install -c"
1539 break
1540 fi
1541done
1542if test -z "$ac_aux_dir"; then
1543 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1544echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1545 { (exit 1); exit 1; }; }
1546fi
1547ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550
1551# Make sure we can run config.sub.
1552$ac_config_sub sun4 >/dev/null 2>&1 ||
1553 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1554echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1555 { (exit 1); exit 1; }; }
1556
1557echo "$as_me:$LINENO: checking build system type" >&5
1558echo $ECHO_N "checking build system type... $ECHO_C" >&6
1559if test "${ac_cv_build+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562 ac_cv_build_alias=$build_alias
1563test -z "$ac_cv_build_alias" &&
1564 ac_cv_build_alias=`$ac_config_guess`
1565test -z "$ac_cv_build_alias" &&
1566 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1567echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1568 { (exit 1); exit 1; }; }
1569ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1570 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1571echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574fi
1575echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1576echo "${ECHO_T}$ac_cv_build" >&6
1577build=$ac_cv_build
1578build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581
1582
1583echo "$as_me:$LINENO: checking host system type" >&5
1584echo $ECHO_N "checking host system type... $ECHO_C" >&6
1585if test "${ac_cv_host+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588 ac_cv_host_alias=$host_alias
1589test -z "$ac_cv_host_alias" &&
1590 ac_cv_host_alias=$ac_cv_build_alias
1591ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1592 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1593echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1594 { (exit 1); exit 1; }; }
1595
1596fi
1597echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1598echo "${ECHO_T}$ac_cv_host" >&6
1599host=$ac_cv_host
1600host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
1604
1605echo "$as_me:$LINENO: checking target system type" >&5
1606echo $ECHO_N "checking target system type... $ECHO_C" >&6
1607if test "${ac_cv_target+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_target_alias=$target_alias
1611test "x$ac_cv_target_alias" = "x" &&
1612 ac_cv_target_alias=$ac_cv_host_alias
1613ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1614 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1615echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1616 { (exit 1); exit 1; }; }
1617
1618fi
1619echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1620echo "${ECHO_T}$ac_cv_target" >&6
1621target=$ac_cv_target
1622target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627# The aliases save the names the user supplied, while $host etc.
1628# will get canonicalized.
1629test -n "$target_alias" &&
7c66a493
VZ
1630 test "$program_prefix$program_suffix$program_transform_name" = \
1631 NONENONEs,x,x, &&
1632 program_prefix=${target_alias}-
8284b0c5
MB
1633
1634
a0b9e27f 1635
10f2d63a 1636WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1637WX_MINOR_VERSION_NUMBER=5
e46d2a18 1638WX_RELEASE_NUMBER=1
10f2d63a 1639
10f2d63a 1640WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1641WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1642
978f1259
RL
1643WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1644
7015ef3a 1645WX_CURRENT=1
6426998c
RL
1646WX_REVISION=0
1647WX_AGE=0
1648
8284b0c5
MB
1649
1650
10f2d63a 1651USE_UNIX=1
73d617c9 1652USE_OS2=0
10f2d63a 1653USE_WIN32=0
f9bc1684 1654USE_DOS=0
b12915c1 1655USE_BEOS=0
1216f52d 1656USE_MAC=0
b12915c1 1657
10f2d63a 1658USE_AIX=
fe0895cf
VS
1659USE_BSD= USE_DARWIN= USE_FREEBSD=
1660USE_GNU= USE_HPUX=
89e3b3e4 1661USE_LINUX=
f6bcfd97 1662USE_NETBSD=
89e3b3e4 1663USE_OPENBSD=
fe0895cf
VS
1664USE_OSF= USE_SGI=
1665USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1666USE_ULTRIX=
89e3b3e4
VZ
1667USE_UNIXWARE=
1668
1669USE_ALPHA=
10f2d63a 1670
ab9b9eab
VZ
1671NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1672
ac0c4cc3 1673ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1674
ac0c4cc3 1675DEFAULT_wxUSE_COCOA=0
10f2d63a 1676DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1677DEFAULT_wxUSE_MAC=0
1678DEFAULT_wxUSE_MGL=0
1725144d 1679DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1680DEFAULT_wxUSE_MOTIF=0
1681DEFAULT_wxUSE_MSW=0
e07802fc 1682DEFAULT_wxUSE_PM=0
f79bd02d 1683DEFAULT_wxUSE_X11=0
10f2d63a 1684
ac0c4cc3 1685DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1686DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1687DEFAULT_DEFAULT_wxUSE_MAC=0
1688DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1689DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1690DEFAULT_DEFAULT_wxUSE_MOTIF=0
1691DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1692DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1693DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1694
d6a55c4b 1695PROGRAM_EXT=
3a922bb4 1696SO_SUFFIX=so
fe0895cf 1697SAMPLES_RPATH_FLAG=
0f1bc9c2 1698SAMPLES_RPATH_POSTLINK=
d6a55c4b 1699
10f2d63a
VZ
1700case "${host}" in
1701 *-hp-hpux* )
1702 USE_HPUX=1
1703 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1704 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1705 SO_SUFFIX=sl
e6cc62c6 1706 cat >>confdefs.h <<\_ACEOF
10f2d63a 1707#define __HPUX__ 1
e6cc62c6 1708_ACEOF
10f2d63a
VZ
1709
1710 ;;
1711 *-*-linux* )
1712 USE_LINUX=1
e6cc62c6 1713 cat >>confdefs.h <<\_ACEOF
10f2d63a 1714#define __LINUX__ 1
e6cc62c6 1715_ACEOF
10f2d63a
VZ
1716
1717 TMP=`uname -m`
1718 if test "x$TMP" = "xalpha"; then
1719 USE_ALPHA=1
e6cc62c6 1720 cat >>confdefs.h <<\_ACEOF
10f2d63a 1721#define __ALPHA__ 1
e6cc62c6 1722_ACEOF
fe0895cf
VS
1723
1724 fi
1725 DEFAULT_DEFAULT_wxUSE_GTK=1
1726 ;;
1727 *-*-gnu* )
1728 USE_GNU=1
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
fe0895cf 1730#define __GNU__ 1
e6cc62c6 1731_ACEOF
fe0895cf
VS
1732
1733 TMP=`uname -m`
1734 if test "x$TMP" = "xalpha"; then
1735 USE_ALPHA=1
e6cc62c6 1736 cat >>confdefs.h <<\_ACEOF
fe0895cf 1737#define __ALPHA__ 1
e6cc62c6 1738_ACEOF
10f2d63a
VZ
1739
1740 fi
1741 DEFAULT_DEFAULT_wxUSE_GTK=1
1742 ;;
1743 *-*-irix5* | *-*-irix6* )
1744 USE_SGI=1
1745 USE_SVR4=1
e6cc62c6 1746 cat >>confdefs.h <<\_ACEOF
10f2d63a 1747#define __SGI__ 1
e6cc62c6 1748_ACEOF
10f2d63a 1749
e6cc62c6 1750 cat >>confdefs.h <<\_ACEOF
10f2d63a 1751#define __SVR4__ 1
e6cc62c6 1752_ACEOF
10f2d63a
VZ
1753
1754 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1755 ;;
1756 *-*-solaris2* )
1757 USE_SUN=1
1758 USE_SOLARIS=1
1759 USE_SVR4=1
e6cc62c6 1760 cat >>confdefs.h <<\_ACEOF
10f2d63a 1761#define __SUN__ 1
e6cc62c6 1762_ACEOF
10f2d63a 1763
e6cc62c6 1764 cat >>confdefs.h <<\_ACEOF
10f2d63a 1765#define __SOLARIS__ 1
e6cc62c6 1766_ACEOF
10f2d63a 1767
e6cc62c6 1768 cat >>confdefs.h <<\_ACEOF
10f2d63a 1769#define __SVR4__ 1
e6cc62c6 1770_ACEOF
10f2d63a
VZ
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1773 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1774 ;;
1775 *-*-sunos4* )
1776 USE_SUN=1
1777 USE_SUNOS=1
1778 USE_BSD=1
e6cc62c6 1779 cat >>confdefs.h <<\_ACEOF
10f2d63a 1780#define __SUN__ 1
e6cc62c6 1781_ACEOF
10f2d63a 1782
e6cc62c6 1783 cat >>confdefs.h <<\_ACEOF
10f2d63a 1784#define __SUNOS__ 1
e6cc62c6 1785_ACEOF
10f2d63a 1786
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
10f2d63a 1788#define __BSD__ 1
e6cc62c6 1789_ACEOF
10f2d63a
VZ
1790
1791 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1792 ;;
f6bcfd97 1793 *-*-freebsd*)
10f2d63a
VZ
1794 USE_BSD=1
1795 USE_FREEBSD=1
e6cc62c6 1796 cat >>confdefs.h <<\_ACEOF
10f2d63a 1797#define __FREEBSD__ 1
e6cc62c6 1798_ACEOF
10f2d63a 1799
e6cc62c6 1800 cat >>confdefs.h <<\_ACEOF
10f2d63a 1801#define __BSD__ 1
e6cc62c6 1802_ACEOF
95c8801c
VS
1803
1804 DEFAULT_DEFAULT_wxUSE_GTK=1
1805 ;;
1806 *-*-openbsd*)
1807 USE_BSD=1
1808 USE_OPENBSD=1
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1810#define __OPENBSD__ 1
e6cc62c6 1811_ACEOF
95c8801c 1812
e6cc62c6 1813 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1814#define __BSD__ 1
e6cc62c6 1815_ACEOF
f6bcfd97
BP
1816
1817 DEFAULT_DEFAULT_wxUSE_GTK=1
1818 ;;
1819 *-*-netbsd*)
1820 USE_BSD=1
1821 USE_NETBSD=1
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1823#define __NETBSD__ 1
e6cc62c6 1824_ACEOF
f6bcfd97 1825
e6cc62c6 1826 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1827#define __BSD__ 1
e6cc62c6 1828_ACEOF
10f2d63a
VZ
1829
1830 DEFAULT_DEFAULT_wxUSE_GTK=1
1831 ;;
1832 *-*-osf* )
1833 USE_ALPHA=1
1834 USE_OSF=1
e6cc62c6 1835 cat >>confdefs.h <<\_ACEOF
10f2d63a 1836#define __ALPHA__ 1
e6cc62c6 1837_ACEOF
10f2d63a 1838
e6cc62c6 1839 cat >>confdefs.h <<\_ACEOF
10f2d63a 1840#define __OSF__ 1
e6cc62c6 1841_ACEOF
10f2d63a
VZ
1842
1843 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1844 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1845 ;;
1846 *-*-dgux5* )
1847 USE_ALPHA=1
1848 USE_SVR4=1
e6cc62c6 1849 cat >>confdefs.h <<\_ACEOF
10f2d63a 1850#define __ALPHA__ 1
e6cc62c6 1851_ACEOF
10f2d63a 1852
e6cc62c6 1853 cat >>confdefs.h <<\_ACEOF
10f2d63a 1854#define __SVR4__ 1
e6cc62c6 1855_ACEOF
10f2d63a
VZ
1856
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 ;;
1859 *-*-sysv5* )
1860 USE_SYSV=1
1861 USE_SVR4=1
e6cc62c6 1862 cat >>confdefs.h <<\_ACEOF
10f2d63a 1863#define __SYSV__ 1
e6cc62c6 1864_ACEOF
10f2d63a 1865
e6cc62c6 1866 cat >>confdefs.h <<\_ACEOF
10f2d63a 1867#define __SVR4__ 1
e6cc62c6 1868_ACEOF
10f2d63a
VZ
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 ;;
1872 *-*-aix* )
1873 USE_AIX=1
1874 USE_SYSV=1
1875 USE_SVR4=1
2b5f62a0 1876 SO_SUFFIX=a
e6cc62c6 1877 cat >>confdefs.h <<\_ACEOF
10f2d63a 1878#define __AIX__ 1
e6cc62c6 1879_ACEOF
10f2d63a 1880
e6cc62c6 1881 cat >>confdefs.h <<\_ACEOF
10f2d63a 1882#define __SYSV__ 1
e6cc62c6 1883_ACEOF
10f2d63a 1884
e6cc62c6 1885 cat >>confdefs.h <<\_ACEOF
10f2d63a 1886#define __SVR4__ 1
e6cc62c6 1887_ACEOF
10f2d63a
VZ
1888
1889 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890 ;;
1891
89e3b3e4
VZ
1892 *-*-*UnixWare*)
1893 USE_SYSV=1
1894 USE_SVR4=1
1895 USE_UNIXWARE=1
e6cc62c6 1896 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1897#define __UNIXWARE__ 1
e6cc62c6 1898_ACEOF
89e3b3e4
VZ
1899
1900 ;;
1901
1c8183e2 1902 *-*-cygwin* | *-*-mingw32* )
17234b26 1903 SO_SUFFIX=dll
cf27ef00 1904 PROGRAM_EXT=".exe"
7b7a7637 1905 RESCOMP=windres
10f2d63a
VZ
1906 DEFAULT_DEFAULT_wxUSE_MSW=1
1907 ;;
1908
f9bc1684
VS
1909 *-pc-msdosdjgpp )
1910 USE_UNIX=0
1911 USE_DOS=1
e6cc62c6 1912 cat >>confdefs.h <<\_ACEOF
f9bc1684 1913#define __DOS__ 1
e6cc62c6 1914_ACEOF
f9bc1684
VS
1915
1916 PROGRAM_EXT=".exe"
1917 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1918 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1919 ;;
1920
6fa882bd 1921 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1922 cat >>confdefs.h <<\_ACEOF
10f2d63a 1923#define __EMX__ 1
e6cc62c6 1924_ACEOF
10f2d63a 1925
73d617c9 1926 USE_OS2=1
7015ef3a
VZ
1927 cat >>confdefs.h <<\_ACEOF
1928#define __OS2__ 1
1929_ACEOF
1930
cf27ef00 1931 PROGRAM_EXT=".exe"
e07802fc 1932 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1933 CXX=gcc
73d617c9 1934 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1935 ac_executable_extensions=".exe"
1936 export ac_executable_extensions
1937 ac_save_IFS="$IFS"
e46d2a18 1938 IFS='\\'
d5fc095c
VS
1939 ac_TEMP_PATH=
1940 for ac_dir in $PATH; do
1941 IFS=$ac_save_IFS
1942 if test -z "$ac_TEMP_PATH"; then
1943 ac_TEMP_PATH="$ac_dir"
1944 else
1945 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1946 fi
1947 done
1948 export PATH="$ac_TEMP_PATH"
1949 unset ac_TEMP_PATH
10f2d63a
VZ
1950 ;;
1951
d08b457b
GD
1952 powerpc-*-darwin* )
1953 USE_BSD=1
f11bdd03 1954 USE_DARWIN=1
3a922bb4 1955 SO_SUFFIX=dylib
e6cc62c6 1956 cat >>confdefs.h <<\_ACEOF
f11bdd03 1957#define __BSD__ 1
e6cc62c6 1958_ACEOF
b4085ce6 1959
e6cc62c6 1960 cat >>confdefs.h <<\_ACEOF
f11bdd03 1961#define __DARWIN__ 1
e6cc62c6 1962_ACEOF
d08b457b 1963
e6cc62c6 1964 cat >>confdefs.h <<\_ACEOF
d08b457b 1965#define __POWERPC__ 1
e6cc62c6 1966_ACEOF
82d43113 1967
e6cc62c6 1968 cat >>confdefs.h <<\_ACEOF
82d43113 1969#define TARGET_CARBON 1
e6cc62c6 1970_ACEOF
b4085ce6
GD
1971
1972 DEFAULT_DEFAULT_wxUSE_MAC=1
1973 ;;
1974
b12915c1
VZ
1975 *-*-beos* )
1976 USE_BEOS=1
e6cc62c6 1977 cat >>confdefs.h <<\_ACEOF
b12915c1 1978#define __BEOS__ 1
e6cc62c6 1979_ACEOF
b12915c1
VZ
1980
1981 ;;
1982
10f2d63a 1983 *)
e6cc62c6
VS
1984 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1985echo "$as_me: error: unknown system type ${host}." >&2;}
1986 { (exit 1); exit 1; }; }
10f2d63a
VZ
1987esac
1988
8284b0c5
MB
1989
1990
1991
1992 wx_arg_cache_file="configarg.cache"
1993 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1994 rm -f ${wx_arg_cache_file}.tmp
1995 touch ${wx_arg_cache_file}.tmp
1996 touch ${wx_arg_cache_file}
e6cc62c6 1997
10f2d63a
VZ
1998
1999DEBUG_CONFIGURE=0
2000if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2001 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2002 DEFAULT_wxUSE_STL=no
1e6feb95 2003
d8356fa3
VZ
2004 DEFAULT_wxUSE_NANOX=no
2005
10f2d63a
VZ
2006 DEFAULT_wxUSE_THREADS=yes
2007
2008 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2009 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2010 DEFAULT_wxUSE_PROFILE=no
2011 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2012 DEFAULT_wxUSE_NO_RTTI=no
2013 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2014 DEFAULT_wxUSE_PERMISSIVE=no
2015 DEFAULT_wxUSE_DEBUG_FLAG=yes
2016 DEFAULT_wxUSE_DEBUG_INFO=yes
2017 DEFAULT_wxUSE_DEBUG_GDB=yes
2018 DEFAULT_wxUSE_MEM_TRACING=no
2019 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2020 DEFAULT_wxUSE_DMALLOC=no
2021 DEFAULT_wxUSE_APPLE_IEEE=no
2022
e46d2a18 2023 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2024 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2025 DEFAULT_wxUSE_LOGWINDOW=no
2026 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2027 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2028
2029 DEFAULT_wxUSE_GUI=yes
1e6feb95 2030 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2031
3e44f09d 2032 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2033 DEFAULT_wxUSE_XML=no
2034 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2035 DEFAULT_wxUSE_ZLIB=no
2036 DEFAULT_wxUSE_LIBPNG=no
2037 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2038 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2039 DEFAULT_wxUSE_LIBXPM=no
10f2d63a 2040 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2041 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2042
eb4efbdc 2043 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2044 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2045 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2046 DEFAULT_wxUSE_CMDLINE_PARSER=no
2047 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2048 DEFAULT_wxUSE_TIMER=no
2049 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2050 DEFAULT_wxUSE_FILE=no
1e6feb95 2051 DEFAULT_wxUSE_FFILE=no
a3a584a7 2052 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2053 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_WAVE=no
2055 DEFAULT_wxUSE_INTL=no
2056 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2057 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2058 DEFAULT_wxUSE_STREAMS=no
2059 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2060 DEFAULT_wxUSE_OLE=no
2061 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2062 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2063 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2064 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2065 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2066 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2067 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2068
2069 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2070 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2071 DEFAULT_wxUSE_POSTSCRIPT=no
2072
10f2d63a
VZ
2073 DEFAULT_wxUSE_CLIPBOARD=no
2074 DEFAULT_wxUSE_TOOLTIPS=no
2075 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2076 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_SPLINES=no
2078
2079 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2080 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2081 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2082
10f2d63a
VZ
2083 DEFAULT_wxUSE_RESOURCES=no
2084 DEFAULT_wxUSE_CONSTRAINTS=no
2085 DEFAULT_wxUSE_IPC=no
2086 DEFAULT_wxUSE_HELP=no
29fd3c0c 2087 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2088 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2089 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2090 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2091 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2092 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2093 DEFAULT_wxUSE_PROTOCOL=no
2094 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2095 DEFAULT_wxUSE_PROTOCOL_FTP=no
2096 DEFAULT_wxUSE_PROTOCOL_FILE=no
2097 DEFAULT_wxUSE_URL=no
3bd8fb5f 2098
10f2d63a 2099 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2100 DEFAULT_wxUSE_CHOICEDLG=no
2101 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2102 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2103 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2104 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2105 DEFAULT_wxUSE_FONTDLG=no
2106 DEFAULT_wxUSE_MSGDLG=no
2107 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2108 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2109 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2110 DEFAULT_wxUSE_STARTUP_TIPS=no
2111 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2112 DEFAULT_wxUSE_WIZARDDLG=no
2113
1e6feb95 2114 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2115 DEFAULT_wxUSE_MINIFRAME=no
2116 DEFAULT_wxUSE_HTML=no
24528b0c 2117 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2118 DEFAULT_wxUSE_FS_INET=no
2119 DEFAULT_wxUSE_FS_ZIP=no
2120 DEFAULT_wxUSE_BUSYINFO=no
2121 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2122 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2123 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2124
2125 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2126 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2127 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2128 DEFAULT_wxUSE_CALCTRL=no
2129 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2130 DEFAULT_wxUSE_CHECKBOX=no
2131 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2132 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2133 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2134 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2135 DEFAULT_wxUSE_GAUGE=no
2136 DEFAULT_wxUSE_GRID=no
10f2d63a 2137 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2138 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2139 DEFAULT_wxUSE_LISTBOX=no
2140 DEFAULT_wxUSE_LISTCTRL=no
2141 DEFAULT_wxUSE_NOTEBOOK=no
2142 DEFAULT_wxUSE_RADIOBOX=no
2143 DEFAULT_wxUSE_RADIOBTN=no
2144 DEFAULT_wxUSE_SASH=no
2145 DEFAULT_wxUSE_SCROLLBAR=no
2146 DEFAULT_wxUSE_SLIDER=no
2147 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2148 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2149 DEFAULT_wxUSE_SPLITTER=no
2150 DEFAULT_wxUSE_STATBMP=no
2151 DEFAULT_wxUSE_STATBOX=no
2152 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2153 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2154 DEFAULT_wxUSE_STATUSBAR=yes
2155 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2156 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2157 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2158 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2159 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2160 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2161 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2162 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2163 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2164
2165 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2166 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2167 DEFAULT_wxUSE_WCSRTOMBS=no
2168
edae8572 2169 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2170 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2171 DEFAULT_wxUSE_GIF=no
2172 DEFAULT_wxUSE_PCX=no
2173 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2174 DEFAULT_wxUSE_IFF=no
0046ff7c 2175 DEFAULT_wxUSE_XPM=no
658974ae 2176 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2177 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2178
e9e0dc15 2179 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2180 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2181else
1e6feb95 2182 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2183 DEFAULT_wxUSE_STL=no
1e6feb95 2184
d8356fa3
VZ
2185 DEFAULT_wxUSE_NANOX=no
2186
10f2d63a
VZ
2187 DEFAULT_wxUSE_THREADS=yes
2188
2189 DEFAULT_wxUSE_SHARED=yes
2190 DEFAULT_wxUSE_OPTIMISE=yes
2191 DEFAULT_wxUSE_PROFILE=no
2192 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2193 DEFAULT_wxUSE_NO_RTTI=no
2194 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2195 DEFAULT_wxUSE_PERMISSIVE=no
2196 DEFAULT_wxUSE_DEBUG_FLAG=no
2197 DEFAULT_wxUSE_DEBUG_INFO=no
2198 DEFAULT_wxUSE_DEBUG_GDB=no
2199 DEFAULT_wxUSE_MEM_TRACING=no
2200 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2201 DEFAULT_wxUSE_DMALLOC=no
2202 DEFAULT_wxUSE_APPLE_IEEE=yes
2203
e46d2a18 2204 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2205 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2206 DEFAULT_wxUSE_LOGWINDOW=yes
2207 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2208 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2209
2210 DEFAULT_wxUSE_GUI=yes
2211
aa2d9ecc 2212 DEFAULT_wxUSE_REGEX=yes
672abd7a 2213 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2214 DEFAULT_wxUSE_EXPAT=yes
2215 DEFAULT_wxUSE_ZLIB=yes
2216 DEFAULT_wxUSE_LIBPNG=yes
2217 DEFAULT_wxUSE_LIBJPEG=yes
2218 DEFAULT_wxUSE_LIBTIFF=yes
2219 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2220 DEFAULT_wxUSE_LIBMSPACK=yes
16b52fa1 2221 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2222 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2223
eb4efbdc 2224 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2225 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2226 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2227 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2228 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2229 DEFAULT_wxUSE_TIMER=yes
2230 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2231 DEFAULT_wxUSE_FILE=yes
1e6feb95 2232 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2233 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2234 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2235 DEFAULT_wxUSE_WAVE=no
2236 DEFAULT_wxUSE_INTL=yes
2237 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2238 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2239 DEFAULT_wxUSE_STREAMS=yes
2240 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2241 DEFAULT_wxUSE_OLE=yes
2242 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2243 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2244 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2245 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2246 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2247 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2248 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2249
2250 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2251 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2252 DEFAULT_wxUSE_POSTSCRIPT=yes
2253
10f2d63a
VZ
2254 DEFAULT_wxUSE_CLIPBOARD=yes
2255 DEFAULT_wxUSE_TOOLTIPS=yes
2256 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2257 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2258 DEFAULT_wxUSE_SPLINES=yes
2259
2260 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2261 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2262 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2263
2b5f62a0 2264 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2265 DEFAULT_wxUSE_CONSTRAINTS=yes
2266 DEFAULT_wxUSE_IPC=yes
2267 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2268 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2269 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2270 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2271 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2272 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2273 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2274 DEFAULT_wxUSE_PROTOCOL=yes
2275 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2276 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2277 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2278 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2279
2280 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2281 DEFAULT_wxUSE_CHOICEDLG=yes
2282 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2283 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2284 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2285 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2286 DEFAULT_wxUSE_FONTDLG=yes
2287 DEFAULT_wxUSE_MSGDLG=yes
2288 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2289 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2290 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2291 DEFAULT_wxUSE_STARTUP_TIPS=yes
2292 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2293 DEFAULT_wxUSE_WIZARDDLG=yes
2294
1e6feb95 2295 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2296 DEFAULT_wxUSE_MINIFRAME=yes
2297 DEFAULT_wxUSE_HTML=yes
24528b0c 2298 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_FS_INET=yes
2300 DEFAULT_wxUSE_FS_ZIP=yes
2301 DEFAULT_wxUSE_BUSYINFO=yes
2302 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2303 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2304 DEFAULT_wxUSE_VALIDATORS=yes
2305
2306 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2307 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2308 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2309 DEFAULT_wxUSE_CALCTRL=yes
2310 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2311 DEFAULT_wxUSE_CHECKBOX=yes
2312 DEFAULT_wxUSE_CHECKLST=yes
2313 DEFAULT_wxUSE_CHOICE=yes
2314 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2315 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2316 DEFAULT_wxUSE_GAUGE=yes
2317 DEFAULT_wxUSE_GRID=yes
10f2d63a 2318 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2319 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2320 DEFAULT_wxUSE_LISTBOX=yes
2321 DEFAULT_wxUSE_LISTCTRL=yes
2322 DEFAULT_wxUSE_NOTEBOOK=yes
2323 DEFAULT_wxUSE_RADIOBOX=yes
2324 DEFAULT_wxUSE_RADIOBTN=yes
2325 DEFAULT_wxUSE_SASH=yes
2326 DEFAULT_wxUSE_SCROLLBAR=yes
2327 DEFAULT_wxUSE_SLIDER=yes
2328 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2329 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2330 DEFAULT_wxUSE_SPLITTER=yes
2331 DEFAULT_wxUSE_STATBMP=yes
2332 DEFAULT_wxUSE_STATBOX=yes
2333 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2334 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2335 DEFAULT_wxUSE_STATUSBAR=yes
2336 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2337 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2338 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2339 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2340 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2341 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2342 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2343 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2344 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2345
2346 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2347 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2348 DEFAULT_wxUSE_WCSRTOMBS=no
2349
edae8572 2350 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2351 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2352 DEFAULT_wxUSE_GIF=yes
2353 DEFAULT_wxUSE_PCX=yes
cc0e8480 2354 DEFAULT_wxUSE_IFF=no
10f2d63a 2355 DEFAULT_wxUSE_PNM=yes
0046ff7c 2356 DEFAULT_wxUSE_XPM=yes
658974ae 2357 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2358 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2359
e9e0dc15 2360 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2361 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2362fi
2363
8284b0c5
MB
2364
2365
10f2d63a 2366for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2367 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2368 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2369 has_toolkit_in_cache=1
2370 eval "DEFAULT_$LINE"
2371 eval "CACHE_$toolkit=1"
2372 fi
2373done
2374
8284b0c5
MB
2375
2376
5005acfe 2377 enablestring=
e6cc62c6
VS
2378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2379echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2380 no_cache=0
2381 # Check whether --enable-gui or --disable-gui was given.
2382if test "${enable_gui+set}" = set; then
2383 enableval="$enable_gui"
e6cc62c6 2384
10f2d63a
VZ
2385 if test "$enableval" = yes; then
2386 ac_cv_use_gui='wxUSE_GUI=yes'
2387 else
2388 ac_cv_use_gui='wxUSE_GUI=no'
2389 fi
e6cc62c6 2390
10f2d63a 2391else
e6cc62c6 2392
10f2d63a
VZ
2393 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2401
e6cc62c6 2402fi;
10f2d63a
VZ
2403
2404 eval "$ac_cv_use_gui"
2405 if test "$no_cache" != 1; then
2406 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2407 fi
2408
2409 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2410 echo "$as_me:$LINENO: result: yes" >&5
2411echo "${ECHO_T}yes" >&6
10f2d63a 2412 else
e6cc62c6
VS
2413 echo "$as_me:$LINENO: result: no" >&5
2414echo "${ECHO_T}no" >&6
10f2d63a 2415 fi
e6cc62c6 2416
10f2d63a 2417
9747f85d
VS
2418 enablestring=
2419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2420echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2421 no_cache=0
2422 # Check whether --enable-monolithic or --disable-monolithic was given.
2423if test "${enable_monolithic+set}" = set; then
2424 enableval="$enable_monolithic"
2425
2426 if test "$enableval" = yes; then
2427 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2428 else
2429 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2430 fi
2431
2432else
2433
2434 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2442
2443fi;
2444
2445 eval "$ac_cv_use_monolithic"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_MONOLITHIC" = yes; then
2451 echo "$as_me:$LINENO: result: yes" >&5
2452echo "${ECHO_T}yes" >&6
2453 else
2454 echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6
2456 fi
2457
2458
b12915c1 2459if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2460
8284b0c5 2461
5005acfe 2462 enablestring=
e6cc62c6
VS
2463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2464echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2465 no_cache=0
2466 # Check whether --enable-universal or --disable-universal was given.
2467if test "${enable_universal+set}" = set; then
2468 enableval="$enable_universal"
e6cc62c6 2469
1e6feb95
VZ
2470 if test "$enableval" = yes; then
2471 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2472 else
2473 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2474 fi
e6cc62c6 2475
1e6feb95 2476else
e6cc62c6 2477
1e6feb95
VZ
2478 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2479 if test "x$LINE" != x ; then
2480 eval "DEFAULT_$LINE"
2481 else
2482 no_cache=1
2483 fi
2484
2485 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2486
e6cc62c6 2487fi;
1e6feb95
VZ
2488
2489 eval "$ac_cv_use_universal"
2490 if test "$no_cache" != 1; then
2491 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2492 fi
2493
2494 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2495 echo "$as_me:$LINENO: result: yes" >&5
2496echo "${ECHO_T}yes" >&6
1e6feb95 2497 else
e6cc62c6
VS
2498 echo "$as_me:$LINENO: result: no" >&5
2499echo "${ECHO_T}no" >&6
1e6feb95 2500 fi
e6cc62c6
VS
2501
2502
10f2d63a
VZ
2503# Check whether --with-gtk or --without-gtk was given.
2504if test "${with_gtk+set}" = set; then
2505 withval="$with_gtk"
2506 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2507fi;
10f2d63a
VZ
2508
2509# Check whether --with-motif or --without-motif was given.
2510if test "${with_motif+set}" = set; then
2511 withval="$with_motif"
2512 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2513fi;
10f2d63a 2514
b4085ce6
GD
2515# Check whether --with-mac or --without-mac was given.
2516if test "${with_mac+set}" = set; then
2517 withval="$with_mac"
2518 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2519fi;
b4085ce6 2520
ac0c4cc3
DE
2521# Check whether --with-cocoa or --without-cocoa was given.
2522if test "${with_cocoa+set}" = set; then
2523 withval="$with_cocoa"
2524 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2525fi;
ac0c4cc3 2526
10f2d63a
VZ
2527# Check whether --with-wine or --without-wine was given.
2528if test "${with_wine+set}" = set; then
2529 withval="$with_wine"
89e6bf6d 2530 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2531fi;
10f2d63a 2532
77e13408
RL
2533# Check whether --with-msw or --without-msw was given.
2534if test "${with_msw+set}" = set; then
2535 withval="$with_msw"
b4efce5e 2536 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2537fi;
10f2d63a 2538
e07802fc
VZ
2539# Check whether --with-pm or --without-pm was given.
2540if test "${with_pm+set}" = set; then
2541 withval="$with_pm"
2542 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2543fi;
698dcdb6 2544
1e6feb95
VZ
2545# Check whether --with-mgl or --without-mgl was given.
2546if test "${with_mgl+set}" = set; then
2547 withval="$with_mgl"
6c657b52 2548 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2549fi;
1e6feb95 2550
1725144d
RR
2551# Check whether --with-microwin or --without-microwin was given.
2552if test "${with_microwin+set}" = set; then
2553 withval="$with_microwin"
2554 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2555fi;
1725144d 2556
f79bd02d
JS
2557# Check whether --with-x11 or --without-x11 was given.
2558if test "${with_x11+set}" = set; then
2559 withval="$with_x11"
3c011993 2560 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2561fi;
a0b9e27f 2562
5005acfe 2563 enablestring=
e6cc62c6
VS
2564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2565echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2566 no_cache=0
ba875e66
VZ
2567 # Check whether --enable-nanox or --disable-nanox was given.
2568if test "${enable_nanox+set}" = set; then
2569 enableval="$enable_nanox"
e6cc62c6 2570
d8356fa3 2571 if test "$enableval" = yes; then
ba875e66 2572 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2573 else
ba875e66 2574 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2575 fi
e6cc62c6 2576
d8356fa3 2577else
e6cc62c6 2578
d8356fa3
VZ
2579 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
ba875e66 2586 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2587
e6cc62c6 2588fi;
d8356fa3 2589
ba875e66 2590 eval "$ac_cv_use_nanox"
d8356fa3 2591 if test "$no_cache" != 1; then
ba875e66 2592 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2593 fi
2594
2595 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2596 echo "$as_me:$LINENO: result: yes" >&5
2597echo "${ECHO_T}yes" >&6
d8356fa3 2598 else
e6cc62c6
VS
2599 echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6
d8356fa3 2601 fi
e6cc62c6 2602
8284b0c5 2603
d74f4b5a 2604
5005acfe 2605 enablestring=
e6cc62c6
VS
2606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2607echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2608 no_cache=0
2609 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2610if test "${enable_gtk2+set}" = set; then
2611 enableval="$enable_gtk2"
e6cc62c6 2612
d74f4b5a
VZ
2613 if test "$enableval" = yes; then
2614 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2615 else
2616 ac_cv_use_gtk2='wxUSE_GTK2=no'
2617 fi
e6cc62c6 2618
10f2d63a 2619else
e6cc62c6 2620
d74f4b5a
VZ
2621 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2629
e6cc62c6 2630fi;
328a083c 2631
d74f4b5a
VZ
2632 eval "$ac_cv_use_gtk2"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2638 echo "$as_me:$LINENO: result: yes" >&5
2639echo "${ECHO_T}yes" >&6
d74f4b5a 2640 else
e6cc62c6
VS
2641 echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6
d74f4b5a 2643 fi
d74f4b5a 2644
5c6fa7d2 2645
e6cc62c6
VS
2646
2647 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2648echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2649 no_cache=0
e6cc62c6
VS
2650
2651# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2652if test "${with_libpng+set}" = set; then
2653 withval="$with_libpng"
e6cc62c6 2654
10f2d63a 2655 if test "$withval" = yes; then
b12915c1 2656 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2657 elif test "$withval" = no; then
b12915c1 2658 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2659 elif test "$withval" = sys; then
2660 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2661 elif test "$withval" = builtin; then
2662 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2663 else
e6cc62c6
VS
2664 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2665echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2666 { (exit 1); exit 1; }; }
10f2d63a 2667 fi
e6cc62c6 2668
10f2d63a 2669else
e6cc62c6 2670
b12915c1 2671 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
b12915c1 2678 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2679
e6cc62c6 2680fi;
10f2d63a 2681
b12915c1 2682 eval "$ac_cv_use_libpng"
10f2d63a 2683 if test "$no_cache" != 1; then
b12915c1 2684 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2685 fi
2686
b12915c1 2687 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2688 echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
422107f9 2690 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2691 echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6
422107f9 2693 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2694 echo "$as_me:$LINENO: result: system version" >&5
2695echo "${ECHO_T}system version" >&6
4f14bcd8 2696 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2697 echo "$as_me:$LINENO: result: builtin version" >&5
2698echo "${ECHO_T}builtin version" >&6
422107f9 2699 else
e6cc62c6
VS
2700 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2701echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2702 { (exit 1); exit 1; }; }
10f2d63a 2703 fi
10f2d63a 2704
e6cc62c6
VS
2705
2706 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2707echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2708 no_cache=0
e6cc62c6
VS
2709
2710# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2711if test "${with_libjpeg+set}" = set; then
2712 withval="$with_libjpeg"
e6cc62c6 2713
10f2d63a 2714 if test "$withval" = yes; then
b12915c1 2715 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2716 elif test "$withval" = no; then
b12915c1 2717 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2718 elif test "$withval" = sys; then
2719 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2720 elif test "$withval" = builtin; then
2721 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2722 else
e6cc62c6
VS
2723 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2724echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2725 { (exit 1); exit 1; }; }
10f2d63a 2726 fi
e6cc62c6 2727
10f2d63a 2728else
e6cc62c6 2729
b12915c1 2730 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
b12915c1 2737 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2738
e6cc62c6 2739fi;
10f2d63a 2740
b12915c1 2741 eval "$ac_cv_use_libjpeg"
10f2d63a 2742 if test "$no_cache" != 1; then
b12915c1 2743 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2744 fi
2745
b12915c1 2746 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2747 echo "$as_me:$LINENO: result: yes" >&5
2748echo "${ECHO_T}yes" >&6
422107f9 2749 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
422107f9 2752 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2753 echo "$as_me:$LINENO: result: system version" >&5
2754echo "${ECHO_T}system version" >&6
4f14bcd8 2755 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2756 echo "$as_me:$LINENO: result: builtin version" >&5
2757echo "${ECHO_T}builtin version" >&6
422107f9 2758 else
e6cc62c6
VS
2759 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2760echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2761 { (exit 1); exit 1; }; }
10f2d63a 2762 fi
10f2d63a 2763
e6cc62c6
VS
2764
2765 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2766echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2767 no_cache=0
e6cc62c6
VS
2768
2769# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2770if test "${with_libtiff+set}" = set; then
2771 withval="$with_libtiff"
e6cc62c6 2772
10f2d63a 2773 if test "$withval" = yes; then
b12915c1 2774 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2775 elif test "$withval" = no; then
b12915c1 2776 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2777 elif test "$withval" = sys; then
2778 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2779 elif test "$withval" = builtin; then
2780 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2781 else
e6cc62c6
VS
2782 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2783echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2784 { (exit 1); exit 1; }; }
10f2d63a 2785 fi
e6cc62c6 2786
10f2d63a 2787else
e6cc62c6 2788
b12915c1 2789 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
b12915c1 2796 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2797
e6cc62c6 2798fi;
10f2d63a 2799
b12915c1 2800 eval "$ac_cv_use_libtiff"
10f2d63a 2801 if test "$no_cache" != 1; then
b12915c1 2802 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2803 fi
2804
b12915c1 2805 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
0dcf9893 2808 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
0dcf9893 2811 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2812 echo "$as_me:$LINENO: result: system version" >&5
2813echo "${ECHO_T}system version" >&6
4f14bcd8 2814 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2815 echo "$as_me:$LINENO: result: builtin version" >&5
2816echo "${ECHO_T}builtin version" >&6
0dcf9893 2817 else
e6cc62c6
VS
2818 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2819echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2820 { (exit 1); exit 1; }; }
10f2d63a 2821 fi
10f2d63a 2822
e6cc62c6 2823
89fe663f
VZ
2824 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2825echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2826 no_cache=0
2827
2828# Check whether --with-libxpm or --without-libxpm was given.
2829if test "${with_libxpm+set}" = set; then
2830 withval="$with_libxpm"
2831
2832 if test "$withval" = yes; then
2833 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2834 elif test "$withval" = no; then
2835 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2836 elif test "$withval" = sys; then
2837 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2838 elif test "$withval" = builtin; then
2839 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2840 else
2841 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2842echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2843 { (exit 1); exit 1; }; }
2844 fi
2845
2846else
2847
2848 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2849 if test "x$LINE" != x ; then
2850 eval "DEFAULT_$LINE"
2851 else
2852 no_cache=1
2853 fi
2854
2855 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2856
2857fi;
2858
2859 eval "$ac_cv_use_libxpm"
2860 if test "$no_cache" != 1; then
2861 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2862 fi
2863
2864 if test "$wxUSE_LIBXPM" = yes; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866echo "${ECHO_T}yes" >&6
2867 elif test "$wxUSE_LIBXPM" = no; then
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870 elif test "$wxUSE_LIBXPM" = sys; then
2871 echo "$as_me:$LINENO: result: system version" >&5
2872echo "${ECHO_T}system version" >&6
2873 elif test "$wxUSE_LIBXPM" = builtin; then
2874 echo "$as_me:$LINENO: result: builtin version" >&5
2875echo "${ECHO_T}builtin version" >&6
2876 else
2877 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2878echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2879 { (exit 1); exit 1; }; }
2880 fi
2881
2882
3527f29c
VS
2883 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2884echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2885 no_cache=0
2886
2887# Check whether --with-libmspack or --without-libmspack was given.
2888if test "${with_libmspack+set}" = set; then
2889 withval="$with_libmspack"
2890
2891 if test "$withval" = yes; then
2892 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2893 else
2894 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2895 fi
2896
2897else
2898
2899 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2900 if test "x$LINE" != x ; then
2901 eval "DEFAULT_$LINE"
2902 else
2903 no_cache=1
2904 fi
2905
2906 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2907
2908fi;
2909
2910 eval "$ac_cv_use_libmspack"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_LIBMSPACK" = yes; then
2916 echo "$as_me:$LINENO: result: yes" >&5
2917echo "${ECHO_T}yes" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920echo "${ECHO_T}no" >&6
2921 fi
2922
2923
e6cc62c6
VS
2924 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2925echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2926 no_cache=0
e6cc62c6
VS
2927
2928# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2929if test "${with_opengl+set}" = set; then
2930 withval="$with_opengl"
e6cc62c6 2931
10f2d63a 2932 if test "$withval" = yes; then
b12915c1 2933 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2934 else
b12915c1 2935 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2936 fi
e6cc62c6 2937
10f2d63a 2938else
e6cc62c6 2939
b12915c1 2940 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
b12915c1 2947 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2948
e6cc62c6 2949fi;
10f2d63a 2950
b12915c1 2951 eval "$ac_cv_use_opengl"
10f2d63a 2952 if test "$no_cache" != 1; then
b12915c1 2953 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2954 fi
2955
b12915c1 2956 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2957 echo "$as_me:$LINENO: result: yes" >&5
2958echo "${ECHO_T}yes" >&6
10f2d63a 2959 else
e6cc62c6
VS
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
10f2d63a 2962 fi
e6cc62c6 2963
10f2d63a 2964
b12915c1
VZ
2965fi
2966
5c6fa7d2 2967
e6cc62c6
VS
2968 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2969echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2970 no_cache=0
e6cc62c6
VS
2971
2972# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2973if test "${with_dmalloc+set}" = set; then
2974 withval="$with_dmalloc"
e6cc62c6 2975
c7a2bf27 2976 if test "$withval" = yes; then
b12915c1 2977 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2978 else
b12915c1 2979 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2980 fi
e6cc62c6 2981
c7a2bf27 2982else
e6cc62c6 2983
b12915c1 2984 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
b12915c1 2991 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2992
e6cc62c6 2993fi;
c7a2bf27 2994
b12915c1 2995 eval "$ac_cv_use_dmalloc"
c7a2bf27 2996 if test "$no_cache" != 1; then
b12915c1 2997 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2998 fi
2999
b12915c1 3000 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
c7a2bf27 3003 else
e6cc62c6
VS
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
c7a2bf27 3006 fi
c7a2bf27 3007
e6cc62c6
VS
3008
3009 echo "$as_me:$LINENO: checking for --with-regex" >&5
3010echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3011 no_cache=0
e6cc62c6
VS
3012
3013# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3014if test "${with_regex+set}" = set; then
3015 withval="$with_regex"
e6cc62c6 3016
3e44f09d
VZ
3017 if test "$withval" = yes; then
3018 ac_cv_use_regex='wxUSE_REGEX=yes'
3019 elif test "$withval" = no; then
3020 ac_cv_use_regex='wxUSE_REGEX=no'
3021 elif test "$withval" = sys; then
3022 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3023 elif test "$withval" = builtin; then
3024 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3025 else
e6cc62c6
VS
3026 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3027echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3028 { (exit 1); exit 1; }; }
3e44f09d 3029 fi
e6cc62c6 3030
3e44f09d 3031else
e6cc62c6 3032
3e44f09d
VZ
3033 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3034 if test "x$LINE" != x ; then
3035 eval "DEFAULT_$LINE"
3036 else
3037 no_cache=1
3038 fi
3039
3040 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3041
e6cc62c6 3042fi;
3e44f09d
VZ
3043
3044 eval "$ac_cv_use_regex"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3050 echo "$as_me:$LINENO: result: yes" >&5
3051echo "${ECHO_T}yes" >&6
3e44f09d 3052 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3e44f09d 3055 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3056 echo "$as_me:$LINENO: result: system version" >&5
3057echo "${ECHO_T}system version" >&6
4f14bcd8 3058 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3059 echo "$as_me:$LINENO: result: builtin version" >&5
3060echo "${ECHO_T}builtin version" >&6
3e44f09d 3061 else
e6cc62c6
VS
3062 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3063echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3064 { (exit 1); exit 1; }; }
3e44f09d 3065 fi
3e44f09d 3066
e6cc62c6
VS
3067
3068 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3069echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3070 no_cache=0
e6cc62c6
VS
3071
3072# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3073if test "${with_zlib+set}" = set; then
3074 withval="$with_zlib"
e6cc62c6 3075
10f2d63a 3076 if test "$withval" = yes; then
b12915c1 3077 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3078 elif test "$withval" = no; then
b12915c1 3079 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3080 elif test "$withval" = sys; then
3081 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3082 elif test "$withval" = builtin; then
3083 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3084 else
e6cc62c6
VS
3085 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3086echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3087 { (exit 1); exit 1; }; }
10f2d63a 3088 fi
e6cc62c6 3089
10f2d63a 3090else
e6cc62c6 3091
b12915c1 3092 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
b12915c1 3099 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3100
e6cc62c6 3101fi;
10f2d63a 3102
b12915c1 3103 eval "$ac_cv_use_zlib"
10f2d63a 3104 if test "$no_cache" != 1; then
b12915c1 3105 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3106 fi
3107
b12915c1 3108 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
422107f9 3111 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
422107f9 3114 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: system version" >&5
3116echo "${ECHO_T}system version" >&6
4f14bcd8 3117 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: builtin version" >&5
3119echo "${ECHO_T}builtin version" >&6
422107f9 3120 else
e6cc62c6
VS
3121 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3122echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3123 { (exit 1); exit 1; }; }
10f2d63a 3124 fi
10f2d63a 3125
e6cc62c6
VS
3126
3127 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3128echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3129 no_cache=0
e6cc62c6
VS
3130
3131# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3132if test "${with_odbc+set}" = set; then
3133 withval="$with_odbc"
e6cc62c6 3134
10f2d63a
VZ
3135 if test "$withval" = yes; then
3136 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3137 elif test "$withval" = no; then
10f2d63a 3138 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3139 elif test "$withval" = sys; then
3140 ac_cv_use_odbc='wxUSE_ODBC=sys'
3141 elif test "$withval" = builtin; then
3142 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3143 else
e6cc62c6
VS
3144 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3145echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3146 { (exit 1); exit 1; }; }
10f2d63a 3147 fi
e6cc62c6 3148
10f2d63a 3149else
e6cc62c6 3150
10f2d63a
VZ
3151 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3159
e6cc62c6 3160fi;
10f2d63a
VZ
3161
3162 eval "$ac_cv_use_odbc"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3168 echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
8647bec6 3170 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
8647bec6 3173 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3174 echo "$as_me:$LINENO: result: system version" >&5
3175echo "${ECHO_T}system version" >&6
8647bec6 3176 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3177 echo "$as_me:$LINENO: result: builtin version" >&5
3178echo "${ECHO_T}builtin version" >&6
8647bec6 3179 else
e6cc62c6
VS
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
10f2d63a 3183 fi
e6cc62c6 3184
52127426 3185
672abd7a
VS
3186 echo "$as_me:$LINENO: checking for --with-expat" >&5
3187echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3188 no_cache=0
3189
3190# Check whether --with-expat or --without-expat was given.
3191if test "${with_expat+set}" = set; then
3192 withval="$with_expat"
3193
3194 if test "$withval" = yes; then
3195 ac_cv_use_expat='wxUSE_EXPAT=yes'
3196 elif test "$withval" = no; then
3197 ac_cv_use_expat='wxUSE_EXPAT=no'
3198 elif test "$withval" = sys; then
3199 ac_cv_use_expat='wxUSE_EXPAT=sys'
3200 elif test "$withval" = builtin; then
3201 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3202 else
3203 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3204echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3205 { (exit 1); exit 1; }; }
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3218
3219fi;
3220
3221 eval "$ac_cv_use_expat"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_EXPAT" = yes; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
3229 elif test "$wxUSE_EXPAT" = no; then
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232 elif test "$wxUSE_EXPAT" = sys; then
3233 echo "$as_me:$LINENO: result: system version" >&5
3234echo "${ECHO_T}system version" >&6
3235 elif test "$wxUSE_EXPAT" = builtin; then
3236 echo "$as_me:$LINENO: result: builtin version" >&5
3237echo "${ECHO_T}builtin version" >&6
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244
8284b0c5
MB
3245
3246
5005acfe 3247 enablestring=
e6cc62c6
VS
3248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3249echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3250 no_cache=0
3251 # Check whether --enable-shared or --disable-shared was given.
3252if test "${enable_shared+set}" = set; then
3253 enableval="$enable_shared"
e6cc62c6 3254
10f2d63a
VZ
3255 if test "$enableval" = yes; then
3256 ac_cv_use_shared='wxUSE_SHARED=yes'
3257 else
3258 ac_cv_use_shared='wxUSE_SHARED=no'
3259 fi
e6cc62c6 3260
10f2d63a 3261else
e6cc62c6 3262
10f2d63a
VZ
3263 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3271
e6cc62c6 3272fi;
10f2d63a
VZ
3273
3274 eval "$ac_cv_use_shared"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3280 echo "$as_me:$LINENO: result: yes" >&5
3281echo "${ECHO_T}yes" >&6
10f2d63a 3282 else
e6cc62c6
VS
3283 echo "$as_me:$LINENO: result: no" >&5
3284echo "${ECHO_T}no" >&6
10f2d63a 3285 fi
e6cc62c6 3286
10f2d63a 3287
5005acfe 3288 enablestring=
e6cc62c6
VS
3289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3290echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3291 no_cache=0
3292 # Check whether --enable-optimise or --disable-optimise was given.
3293if test "${enable_optimise+set}" = set; then
3294 enableval="$enable_optimise"
e6cc62c6 3295
10f2d63a
VZ
3296 if test "$enableval" = yes; then
3297 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3298 else
3299 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3300 fi
e6cc62c6 3301
10f2d63a 3302else
e6cc62c6 3303
10f2d63a
VZ
3304 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3312
e6cc62c6 3313fi;
10f2d63a
VZ
3314
3315 eval "$ac_cv_use_optimise"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
10f2d63a 3323 else
e6cc62c6
VS
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
10f2d63a 3326 fi
e6cc62c6 3327
10f2d63a 3328
5005acfe 3329 enablestring=
e6cc62c6
VS
3330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3331echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3332 no_cache=0
3333 # Check whether --enable-debug or --disable-debug was given.
3334if test "${enable_debug+set}" = set; then
3335 enableval="$enable_debug"
e6cc62c6 3336
10f2d63a
VZ
3337 if test "$enableval" = yes; then
3338 ac_cv_use_debug='wxUSE_DEBUG=yes'
3339 else
3340 ac_cv_use_debug='wxUSE_DEBUG=no'
3341 fi
e6cc62c6 3342
10f2d63a 3343else
e6cc62c6 3344
10f2d63a
VZ
3345 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3346 if test "x$LINE" != x ; then
3347 eval "DEFAULT_$LINE"
3348 else
3349 no_cache=1
3350 fi
3351
3352 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3353
e6cc62c6 3354fi;
10f2d63a
VZ
3355
3356 eval "$ac_cv_use_debug"
3357 if test "$no_cache" != 1; then
3358 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3359 fi
3360
3361 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3362 echo "$as_me:$LINENO: result: yes" >&5
3363echo "${ECHO_T}yes" >&6
10f2d63a 3364 else
e6cc62c6
VS
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
10f2d63a 3367 fi
e6cc62c6 3368
52127426 3369
df5168c4
MB
3370 enablestring=
3371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3372echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3373 no_cache=0
3374 # Check whether --enable-stl or --disable-stl was given.
3375if test "${enable_stl+set}" = set; then
3376 enableval="$enable_stl"
3377
3378 if test "$enableval" = yes; then
3379 ac_cv_use_stl='wxUSE_STL=yes'
3380 else
3381 ac_cv_use_stl='wxUSE_STL=no'
3382 fi
3383
3384else
3385
3386 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3387 if test "x$LINE" != x ; then
3388 eval "DEFAULT_$LINE"
3389 else
3390 no_cache=1
3391 fi
3392
3393 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3394
3395fi;
3396
3397 eval "$ac_cv_use_stl"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_STL" = yes; then
3403 echo "$as_me:$LINENO: result: yes" >&5
3404echo "${ECHO_T}yes" >&6
3405 else
3406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408 fi
3409
3410
10f2d63a
VZ
3411if test "$wxUSE_DEBUG" = "yes"; then
3412 DEFAULT_wxUSE_DEBUG_FLAG=yes
3413 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3414 BUILD=debug
10f2d63a
VZ
3415elif test "$wxUSE_DEBUG" = "no"; then
3416 DEFAULT_wxUSE_DEBUG_FLAG=no
3417 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3418 BUILD=release
10f2d63a
VZ
3419fi
3420
8284b0c5 3421
5005acfe 3422 enablestring=
e6cc62c6
VS
3423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3424echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3425 no_cache=0
3426 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3427if test "${enable_debug_flag+set}" = set; then
3428 enableval="$enable_debug_flag"
e6cc62c6 3429
10f2d63a
VZ
3430 if test "$enableval" = yes; then
3431 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3432 else
3433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3434 fi
e6cc62c6 3435
10f2d63a 3436else
e6cc62c6 3437
10f2d63a
VZ
3438 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3439 if test "x$LINE" != x ; then
3440 eval "DEFAULT_$LINE"
3441 else
3442 no_cache=1
3443 fi
3444
3445 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3446
e6cc62c6 3447fi;
10f2d63a
VZ
3448
3449 eval "$ac_cv_use_debug_flag"
3450 if test "$no_cache" != 1; then
3451 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3452 fi
3453
3454 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3455 echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
10f2d63a 3457 else
e6cc62c6
VS
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
10f2d63a 3460 fi
e6cc62c6 3461
10f2d63a 3462
5005acfe 3463 enablestring=
e6cc62c6
VS
3464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3465echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3466 no_cache=0
3467 # Check whether --enable-debug_info or --disable-debug_info was given.
3468if test "${enable_debug_info+set}" = set; then
3469 enableval="$enable_debug_info"
e6cc62c6 3470
10f2d63a
VZ
3471 if test "$enableval" = yes; then
3472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3473 else
3474 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3475 fi
e6cc62c6 3476
10f2d63a 3477else
e6cc62c6 3478
10f2d63a
VZ
3479 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3487
e6cc62c6 3488fi;
10f2d63a
VZ
3489
3490 eval "$ac_cv_use_debug_info"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
10f2d63a 3498 else
e6cc62c6
VS
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
10f2d63a 3501 fi
e6cc62c6 3502
10f2d63a 3503
5005acfe 3504 enablestring=
e6cc62c6
VS
3505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3506echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3507 no_cache=0
3508 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3509if test "${enable_debug_gdb+set}" = set; then
3510 enableval="$enable_debug_gdb"
e6cc62c6 3511
10f2d63a
VZ
3512 if test "$enableval" = yes; then
3513 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3514 else
3515 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3516 fi
e6cc62c6 3517
10f2d63a 3518else
e6cc62c6 3519
10f2d63a
VZ
3520 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3528
e6cc62c6 3529fi;
10f2d63a
VZ
3530
3531 eval "$ac_cv_use_debug_gdb"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
10f2d63a 3539 else
e6cc62c6
VS
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
10f2d63a 3542 fi
e6cc62c6 3543
10f2d63a 3544
5005acfe 3545 enablestring=
e6cc62c6
VS
3546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3547echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3548 no_cache=0
3549 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3550if test "${enable_debug_cntxt+set}" = set; then
3551 enableval="$enable_debug_cntxt"
e6cc62c6 3552
10f2d63a
VZ
3553 if test "$enableval" = yes; then
3554 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3555 else
3556 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3557 fi
e6cc62c6 3558
10f2d63a 3559else
e6cc62c6 3560
10f2d63a
VZ
3561 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
3568 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3569
e6cc62c6 3570fi;
10f2d63a
VZ
3571
3572 eval "$ac_cv_use_debug_cntxt"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3578 echo "$as_me:$LINENO: result: yes" >&5
3579echo "${ECHO_T}yes" >&6
10f2d63a 3580 else
e6cc62c6
VS
3581 echo "$as_me:$LINENO: result: no" >&5
3582echo "${ECHO_T}no" >&6
10f2d63a 3583 fi
e6cc62c6 3584
10f2d63a 3585
5005acfe 3586 enablestring=
e6cc62c6
VS
3587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3588echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3591if test "${enable_mem_tracing+set}" = set; then
3592 enableval="$enable_mem_tracing"
e6cc62c6 3593
10f2d63a
VZ
3594 if test "$enableval" = yes; then
3595 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3596 else
3597 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3598 fi
e6cc62c6 3599
10f2d63a 3600else
e6cc62c6 3601
10f2d63a
VZ
3602 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3610
e6cc62c6 3611fi;
10f2d63a
VZ
3612
3613 eval "$ac_cv_use_mem_tracing"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3619 echo "$as_me:$LINENO: result: yes" >&5
3620echo "${ECHO_T}yes" >&6
10f2d63a 3621 else
e6cc62c6
VS
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
10f2d63a 3624 fi
e6cc62c6 3625
10f2d63a 3626
5005acfe 3627 enablestring=
e6cc62c6
VS
3628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3629echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-profile or --disable-profile was given.
3632if test "${enable_profile+set}" = set; then
3633 enableval="$enable_profile"
e6cc62c6 3634
10f2d63a
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_profile='wxUSE_PROFILE=yes'
3637 else
3638 ac_cv_use_profile='wxUSE_PROFILE=no'
3639 fi
e6cc62c6 3640
10f2d63a 3641else
e6cc62c6 3642
10f2d63a
VZ
3643 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3651
e6cc62c6 3652fi;
10f2d63a
VZ
3653
3654 eval "$ac_cv_use_profile"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3660 echo "$as_me:$LINENO: result: yes" >&5
3661echo "${ECHO_T}yes" >&6
10f2d63a 3662 else
e6cc62c6
VS
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
10f2d63a 3665 fi
e6cc62c6 3666
10f2d63a 3667
5005acfe 3668 enablestring=
e6cc62c6
VS
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3671 no_cache=0
3672 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3673if test "${enable_no_rtti+set}" = set; then
3674 enableval="$enable_no_rtti"
e6cc62c6 3675
10f2d63a
VZ
3676 if test "$enableval" = yes; then
3677 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3678 else
3679 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3680 fi
e6cc62c6 3681
10f2d63a 3682else
e6cc62c6 3683
10f2d63a
VZ
3684 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3692
e6cc62c6 3693fi;
10f2d63a
VZ
3694
3695 eval "$ac_cv_use_no_rtti"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
10f2d63a 3703 else
e6cc62c6
VS
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
10f2d63a 3706 fi
e6cc62c6 3707
10f2d63a 3708
5005acfe 3709 enablestring=
e6cc62c6
VS
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3712 no_cache=0
3713 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3714if test "${enable_no_exceptions+set}" = set; then
3715 enableval="$enable_no_exceptions"
e6cc62c6 3716
10f2d63a
VZ
3717 if test "$enableval" = yes; then
3718 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3719 else
3720 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3721 fi
e6cc62c6 3722
10f2d63a 3723else
e6cc62c6 3724
10f2d63a
VZ
3725 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3733
e6cc62c6 3734fi;
10f2d63a
VZ
3735
3736 eval "$ac_cv_use_no_exceptions"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
10f2d63a 3744 else
e6cc62c6
VS
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
10f2d63a 3747 fi
e6cc62c6 3748
10f2d63a 3749
5005acfe 3750 enablestring=
e6cc62c6
VS
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3753 no_cache=0
3754 # Check whether --enable-permissive or --disable-permissive was given.
3755if test "${enable_permissive+set}" = set; then
3756 enableval="$enable_permissive"
e6cc62c6 3757
10f2d63a
VZ
3758 if test "$enableval" = yes; then
3759 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3760 else
3761 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3762 fi
e6cc62c6 3763
10f2d63a 3764else
e6cc62c6 3765
10f2d63a
VZ
3766 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3774
e6cc62c6 3775fi;
10f2d63a
VZ
3776
3777 eval "$ac_cv_use_permissive"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
10f2d63a 3785 else
e6cc62c6
VS
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
10f2d63a 3788 fi
e6cc62c6 3789
10f2d63a 3790
5005acfe 3791 enablestring=
e6cc62c6
VS
3792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3793echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3794 no_cache=0
3795 # Check whether --enable-no_deps or --disable-no_deps was given.
3796if test "${enable_no_deps+set}" = set; then
3797 enableval="$enable_no_deps"
e6cc62c6 3798
10f2d63a
VZ
3799 if test "$enableval" = yes; then
3800 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3801 else
3802 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3803 fi
e6cc62c6 3804
10f2d63a 3805else
e6cc62c6 3806
10f2d63a
VZ
3807 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3815
e6cc62c6 3816fi;
10f2d63a
VZ
3817
3818 eval "$ac_cv_use_no_deps"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
10f2d63a 3826 else
e6cc62c6
VS
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
10f2d63a 3829 fi
e6cc62c6 3830
52127426 3831
8284b0c5 3832
65d8ef1e 3833 enablestring=
e6cc62c6
VS
3834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3835echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3836 no_cache=0
3837 # Check whether --enable-compat22 or --disable-compat22 was given.
3838if test "${enable_compat22+set}" = set; then
3839 enableval="$enable_compat22"
e6cc62c6 3840
54276ccf
VZ
3841 if test "$enableval" = yes; then
3842 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3843 else
3844 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3845 fi
e6cc62c6 3846
54276ccf 3847else
e6cc62c6 3848
54276ccf
VZ
3849 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3857
e6cc62c6 3858fi;
54276ccf
VZ
3859
3860 eval "$ac_cv_use_compat22"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
54276ccf 3868 else
e6cc62c6
VS
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
54276ccf 3871 fi
e6cc62c6 3872
54276ccf 3873
65d8ef1e 3874 enablestring=disable
e6cc62c6
VS
3875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3876echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3877 no_cache=0
3878 # Check whether --enable-compat24 or --disable-compat24 was given.
3879if test "${enable_compat24+set}" = set; then
3880 enableval="$enable_compat24"
e6cc62c6 3881
65d8ef1e
VS
3882 if test "$enableval" = yes; then
3883 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3884 else
3885 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3886 fi
e6cc62c6 3887
65d8ef1e 3888else
e6cc62c6 3889
65d8ef1e
VS
3890 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3898
e6cc62c6 3899fi;
65d8ef1e
VS
3900
3901 eval "$ac_cv_use_compat24"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3907 echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
65d8ef1e 3909 else
e6cc62c6
VS
3910 echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
65d8ef1e 3912 fi
e6cc62c6 3913
65d8ef1e 3914
3bd8fb5f
RD
3915# Check whether --enable-rpath or --disable-rpath was given.
3916if test "${enable_rpath+set}" = set; then
3917 enableval="$enable_rpath"
3918 wxRPATH_DIR="$enableval"
e6cc62c6 3919fi;
3bd8fb5f
RD
3920
3921if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3922 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3923fi
3924
8284b0c5
MB
3925
3926
3927
5005acfe 3928 enablestring=
e6cc62c6
VS
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3931 no_cache=0
3932 # Check whether --enable-intl or --disable-intl was given.
3933if test "${enable_intl+set}" = set; then
3934 enableval="$enable_intl"
e6cc62c6 3935
10f2d63a
VZ
3936 if test "$enableval" = yes; then
3937 ac_cv_use_intl='wxUSE_INTL=yes'
3938 else
3939 ac_cv_use_intl='wxUSE_INTL=no'
3940 fi
e6cc62c6 3941
10f2d63a 3942else
e6cc62c6 3943
10f2d63a
VZ
3944 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3952
e6cc62c6 3953fi;
10f2d63a
VZ
3954
3955 eval "$ac_cv_use_intl"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
10f2d63a 3963 else
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
10f2d63a 3966 fi
e6cc62c6 3967
10f2d63a 3968
5005acfe 3969 enablestring=
e6cc62c6
VS
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3971echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3972 no_cache=0
3973 # Check whether --enable-config or --disable-config was given.
3974if test "${enable_config+set}" = set; then
3975 enableval="$enable_config"
e6cc62c6 3976
10f2d63a
VZ
3977 if test "$enableval" = yes; then
3978 ac_cv_use_config='wxUSE_CONFIG=yes'
3979 else
3980 ac_cv_use_config='wxUSE_CONFIG=no'
3981 fi
e6cc62c6 3982
10f2d63a 3983else
e6cc62c6 3984
10f2d63a
VZ
3985 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3993
e6cc62c6 3994fi;
10f2d63a
VZ
3995
3996 eval "$ac_cv_use_config"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
10f2d63a 4004 else
e6cc62c6
VS
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
10f2d63a 4007 fi
e6cc62c6 4008
52127426 4009
8284b0c5 4010
5005acfe 4011 enablestring=
e6cc62c6
VS
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4014 no_cache=0
4015 # Check whether --enable-protocols or --disable-protocols was given.
4016if test "${enable_protocols+set}" = set; then
4017 enableval="$enable_protocols"
e6cc62c6 4018
a1622950
VZ
4019 if test "$enableval" = yes; then
4020 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4021 else
4022 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4023 fi
e6cc62c6 4024
a1622950 4025else
e6cc62c6 4026
a1622950
VZ
4027 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4035
e6cc62c6 4036fi;
a1622950
VZ
4037
4038 eval "$ac_cv_use_protocols"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
a1622950 4046 else
e6cc62c6
VS
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
a1622950 4049 fi
e6cc62c6 4050
a1622950 4051
5005acfe 4052 enablestring=
e6cc62c6
VS
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4055 no_cache=0
4056 # Check whether --enable-ftp or --disable-ftp was given.
4057if test "${enable_ftp+set}" = set; then
4058 enableval="$enable_ftp"
e6cc62c6 4059
a1622950
VZ
4060 if test "$enableval" = yes; then
4061 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4062 else
4063 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4064 fi
e6cc62c6 4065
a1622950 4066else
e6cc62c6 4067
a1622950
VZ
4068 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4076
e6cc62c6 4077fi;
a1622950
VZ
4078
4079 eval "$ac_cv_use_ftp"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
a1622950 4087 else
e6cc62c6
VS
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
a1622950 4090 fi
e6cc62c6 4091
a1622950 4092
5005acfe 4093 enablestring=
e6cc62c6
VS
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4096 no_cache=0
4097 # Check whether --enable-http or --disable-http was given.
4098if test "${enable_http+set}" = set; then
4099 enableval="$enable_http"
e6cc62c6 4100
a1622950
VZ
4101 if test "$enableval" = yes; then
4102 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4103 else
4104 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4105 fi
e6cc62c6 4106
a1622950 4107else
e6cc62c6 4108
a1622950
VZ
4109 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4117
e6cc62c6 4118fi;
a1622950
VZ
4119
4120 eval "$ac_cv_use_http"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
a1622950 4128 else
e6cc62c6
VS
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
a1622950 4131 fi
e6cc62c6 4132
a1622950 4133
5005acfe 4134 enablestring=
e6cc62c6
VS
4135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4136echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4137 no_cache=0
4138 # Check whether --enable-fileproto or --disable-fileproto was given.
4139if test "${enable_fileproto+set}" = set; then
4140 enableval="$enable_fileproto"
e6cc62c6 4141
a1622950
VZ
4142 if test "$enableval" = yes; then
4143 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4144 else
4145 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4146 fi
e6cc62c6 4147
a1622950 4148else
e6cc62c6 4149
a1622950
VZ
4150 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4158
e6cc62c6 4159fi;
a1622950
VZ
4160
4161 eval "$ac_cv_use_fileproto"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4167 echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
a1622950 4169 else
e6cc62c6
VS
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
a1622950 4172 fi
e6cc62c6 4173
a1622950 4174
5005acfe 4175 enablestring=
e6cc62c6
VS
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4178 no_cache=0
4179 # Check whether --enable-sockets or --disable-sockets was given.
4180if test "${enable_sockets+set}" = set; then
4181 enableval="$enable_sockets"
e6cc62c6 4182
10f2d63a
VZ
4183 if test "$enableval" = yes; then
4184 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4185 else
4186 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4187 fi
e6cc62c6 4188
10f2d63a 4189else
e6cc62c6 4190
10f2d63a
VZ
4191 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4199
e6cc62c6 4200fi;
10f2d63a
VZ
4201
4202 eval "$ac_cv_use_sockets"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
10f2d63a 4210 else
e6cc62c6
VS
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
10f2d63a 4213 fi
e6cc62c6 4214
8284b0c5 4215
5005acfe 4216 enablestring=
e6cc62c6
VS
4217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4218echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4219 no_cache=0
4220 # Check whether --enable-ole or --disable-ole was given.
4221if test "${enable_ole+set}" = set; then
4222 enableval="$enable_ole"
e6cc62c6 4223
3bce6687
JS
4224 if test "$enableval" = yes; then
4225 ac_cv_use_ole='wxUSE_OLE=yes'
4226 else
4227 ac_cv_use_ole='wxUSE_OLE=no'
4228 fi
e6cc62c6 4229
3bce6687 4230else
e6cc62c6 4231
3bce6687
JS
4232 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4240
e6cc62c6 4241fi;
3bce6687
JS
4242
4243 eval "$ac_cv_use_ole"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
3bce6687 4251 else
e6cc62c6
VS
4252 echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
3bce6687 4254 fi
e6cc62c6 4255
3bce6687 4256
5005acfe 4257 enablestring=
e6cc62c6
VS
4258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4259echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4260 no_cache=0
4261 # Check whether --enable-dataobj or --disable-dataobj was given.
4262if test "${enable_dataobj+set}" = set; then
4263 enableval="$enable_dataobj"
e6cc62c6 4264
3bce6687
JS
4265 if test "$enableval" = yes; then
4266 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4267 else
4268 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4269 fi
e6cc62c6 4270
3bce6687 4271else
e6cc62c6 4272
3bce6687
JS
4273 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4281
e6cc62c6 4282fi;
3bce6687
JS
4283
4284 eval "$ac_cv_use_dataobj"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4290 echo "$as_me:$LINENO: result: yes" >&5
4291echo "${ECHO_T}yes" >&6
3bce6687 4292 else
e6cc62c6
VS
4293 echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
3bce6687 4295 fi
e6cc62c6 4296
3bce6687 4297
52127426 4298
5005acfe 4299 enablestring=
e6cc62c6
VS
4300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4301echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4302 no_cache=0
eb4efbdc
VZ
4303 # Check whether --enable-ipc or --disable-ipc was given.
4304if test "${enable_ipc+set}" = set; then
4305 enableval="$enable_ipc"
e6cc62c6 4306
10f2d63a 4307 if test "$enableval" = yes; then
eb4efbdc 4308 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4309 else
eb4efbdc 4310 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4311 fi
e6cc62c6 4312
10f2d63a 4313else
e6cc62c6 4314
eb4efbdc 4315 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
eb4efbdc 4322 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4323
e6cc62c6 4324fi;
10f2d63a 4325
eb4efbdc 4326 eval "$ac_cv_use_ipc"
10f2d63a 4327 if test "$no_cache" != 1; then
eb4efbdc 4328 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4329 fi
4330
eb4efbdc 4331 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4332 echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6
10f2d63a 4334 else
e6cc62c6
VS
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
10f2d63a 4337 fi
e6cc62c6 4338
52127426 4339
8284b0c5 4340
5005acfe 4341 enablestring=
e46d2a18
VS
4342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4343echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4344 no_cache=0
e46d2a18
VS
4345 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4346if test "${enable_apple_ieee+set}" = set; then
4347 enableval="$enable_apple_ieee"
e6cc62c6 4348
10f2d63a 4349 if test "$enableval" = yes; then
e46d2a18 4350 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4351 else
e46d2a18 4352 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4353 fi
e6cc62c6 4354
10f2d63a 4355else
e6cc62c6 4356
e46d2a18 4357 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
e46d2a18 4364 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4365
e6cc62c6 4366fi;
10f2d63a 4367
e46d2a18 4368 eval "$ac_cv_use_apple_ieee"
10f2d63a 4369 if test "$no_cache" != 1; then
e46d2a18 4370 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4371 fi
4372
e46d2a18 4373 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4374 echo "$as_me:$LINENO: result: yes" >&5
4375echo "${ECHO_T}yes" >&6
10f2d63a 4376 else
e6cc62c6
VS
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
10f2d63a 4379 fi
e6cc62c6 4380
10f2d63a 4381
5005acfe 4382 enablestring=
e46d2a18
VS
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4385 no_cache=0
e46d2a18
VS
4386 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4387if test "${enable_catch_segvs+set}" = set; then
4388 enableval="$enable_catch_segvs"
e6cc62c6 4389
10f2d63a 4390 if test "$enableval" = yes; then
e46d2a18 4391 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4392 else
e46d2a18 4393 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4394 fi
e6cc62c6 4395
10f2d63a 4396else
e6cc62c6 4397
e46d2a18 4398 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
e46d2a18 4405 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4406
e6cc62c6 4407fi;
10f2d63a 4408
e46d2a18 4409 eval "$ac_cv_use_catch_segvs"
10f2d63a 4410 if test "$no_cache" != 1; then
e46d2a18 4411 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4412 fi
4413
e46d2a18 4414 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
10f2d63a 4417 else
e6cc62c6
VS
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
10f2d63a 4420 fi
e6cc62c6 4421
10f2d63a 4422
5005acfe 4423 enablestring=
e46d2a18
VS
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4426 no_cache=0
e46d2a18
VS
4427 # Check whether --enable-cmdline or --disable-cmdline was given.
4428if test "${enable_cmdline+set}" = set; then
4429 enableval="$enable_cmdline"
e6cc62c6 4430
10f2d63a 4431 if test "$enableval" = yes; then
e46d2a18 4432 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4433 else
e46d2a18 4434 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4435 fi
e6cc62c6 4436
10f2d63a 4437else
e6cc62c6 4438
e46d2a18 4439 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
e46d2a18 4446 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4447
e6cc62c6 4448fi;
10f2d63a 4449
e46d2a18 4450 eval "$ac_cv_use_cmdline"
10f2d63a 4451 if test "$no_cache" != 1; then
e46d2a18 4452 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4453 fi
4454
e46d2a18 4455 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
10f2d63a 4458 else
e6cc62c6
VS
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
10f2d63a 4461 fi
e6cc62c6 4462
10f2d63a 4463
5005acfe 4464 enablestring=
e46d2a18
VS
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4467 no_cache=0
e46d2a18
VS
4468 # Check whether --enable-datetime or --disable-datetime was given.
4469if test "${enable_datetime+set}" = set; then
4470 enableval="$enable_datetime"
e6cc62c6 4471
10f2d63a 4472 if test "$enableval" = yes; then
e46d2a18 4473 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4474 else
e46d2a18 4475 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4476 fi
e6cc62c6 4477
10f2d63a 4478else
e6cc62c6 4479
e46d2a18 4480 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
e46d2a18 4487 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4488
e6cc62c6 4489fi;
10f2d63a 4490
e46d2a18 4491 eval "$ac_cv_use_datetime"
10f2d63a 4492 if test "$no_cache" != 1; then
e46d2a18 4493 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4494 fi
4495
e46d2a18 4496 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
10f2d63a 4499 else
e6cc62c6
VS
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
10f2d63a 4502 fi
e6cc62c6 4503
10f2d63a 4504
5005acfe 4505 enablestring=
e46d2a18
VS
4506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4507echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4508 no_cache=0
e46d2a18
VS
4509 # Check whether --enable-dialupman or --disable-dialupman was given.
4510if test "${enable_dialupman+set}" = set; then
4511 enableval="$enable_dialupman"
e6cc62c6 4512
10f2d63a 4513 if test "$enableval" = yes; then
e46d2a18 4514 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4515 else
e46d2a18 4516 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4517 fi
e6cc62c6 4518
10f2d63a 4519else
e6cc62c6 4520
e46d2a18 4521 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
e46d2a18 4528 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4529
e6cc62c6 4530fi;
10f2d63a 4531
e46d2a18 4532 eval "$ac_cv_use_dialupman"
10f2d63a 4533 if test "$no_cache" != 1; then
e46d2a18 4534 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4535 fi
4536
e46d2a18 4537 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
10f2d63a 4540 else
e6cc62c6
VS
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
10f2d63a 4543 fi
e6cc62c6 4544
10f2d63a 4545
5005acfe 4546 enablestring=
e6cc62c6
VS
4547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4548echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4549 no_cache=0
4550 # Check whether --enable-dynlib or --disable-dynlib was given.
4551if test "${enable_dynlib+set}" = set; then
4552 enableval="$enable_dynlib"
e6cc62c6 4553
10f2d63a
VZ
4554 if test "$enableval" = yes; then
4555 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4556 else
4557 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4558 fi
e6cc62c6 4559
10f2d63a 4560else
e6cc62c6 4561
10f2d63a
VZ
4562 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4570
e6cc62c6 4571fi;
10f2d63a
VZ
4572
4573 eval "$ac_cv_use_dynlib"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
10f2d63a 4581 else
e6cc62c6
VS
4582 echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
10f2d63a 4584 fi
e6cc62c6 4585
10f2d63a 4586
5005acfe 4587 enablestring=
e6cc62c6
VS
4588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4589echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4590 no_cache=0
4591 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4592if test "${enable_dynamicloader+set}" = set; then
4593 enableval="$enable_dynamicloader"
e6cc62c6 4594
0b9ab0bd
RL
4595 if test "$enableval" = yes; then
4596 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4597 else
4598 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4599 fi
e6cc62c6 4600
0b9ab0bd 4601else
e6cc62c6 4602
0b9ab0bd
RL
4603 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4611
e6cc62c6 4612fi;
0b9ab0bd
RL
4613
4614 eval "$ac_cv_use_dynamicloader"
4615 if test "$no_cache" != 1; then
4616 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4617 fi
4618
4619 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4620 echo "$as_me:$LINENO: result: yes" >&5
4621echo "${ECHO_T}yes" >&6
0b9ab0bd 4622 else
e6cc62c6
VS
4623 echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6
0b9ab0bd 4625 fi
e6cc62c6 4626
0b9ab0bd 4627
5005acfe 4628 enablestring=
e46d2a18
VS
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4631 no_cache=0
e46d2a18
VS
4632 # Check whether --enable-exceptions or --disable-exceptions was given.
4633if test "${enable_exceptions+set}" = set; then
4634 enableval="$enable_exceptions"
e6cc62c6 4635
10f2d63a 4636 if test "$enableval" = yes; then
e46d2a18 4637 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4638 else
e46d2a18 4639 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4640 fi
e6cc62c6 4641
10f2d63a 4642else
e6cc62c6 4643
e46d2a18 4644 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
e46d2a18 4651 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4652
e6cc62c6 4653fi;
10f2d63a 4654
e46d2a18 4655 eval "$ac_cv_use_exceptions"
10f2d63a 4656 if test "$no_cache" != 1; then
e46d2a18 4657 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4658 fi
4659
e46d2a18 4660 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
10f2d63a 4663 else
e6cc62c6
VS
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
10f2d63a 4666 fi
e6cc62c6 4667
10f2d63a 4668
5005acfe 4669 enablestring=
e46d2a18
VS
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4672 no_cache=0
e46d2a18
VS
4673 # Check whether --enable-ffile or --disable-ffile was given.
4674if test "${enable_ffile+set}" = set; then
4675 enableval="$enable_ffile"
e6cc62c6 4676
e8f65ba6 4677 if test "$enableval" = yes; then
e46d2a18 4678 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4679 else
e46d2a18 4680 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4681 fi
e6cc62c6 4682
e8f65ba6 4683else
e6cc62c6 4684
e46d2a18 4685 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
e46d2a18 4692 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4693
e6cc62c6 4694fi;
e8f65ba6 4695
e46d2a18 4696 eval "$ac_cv_use_ffile"
e8f65ba6 4697 if test "$no_cache" != 1; then
e46d2a18 4698 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4699 fi
4700
e46d2a18 4701 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
e8f65ba6 4704 else
e6cc62c6
VS
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
e8f65ba6 4707 fi
e6cc62c6 4708
e8f65ba6 4709
5005acfe 4710 enablestring=
e46d2a18
VS
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4713 no_cache=0
e46d2a18
VS
4714 # Check whether --enable-file or --disable-file was given.
4715if test "${enable_file+set}" = set; then
4716 enableval="$enable_file"
e6cc62c6 4717
10f2d63a 4718 if test "$enableval" = yes; then
e46d2a18 4719 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4720 else
e46d2a18 4721 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4722 fi
e6cc62c6 4723
10f2d63a 4724else
e6cc62c6 4725
e46d2a18 4726 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
e46d2a18 4733 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4734
e6cc62c6 4735fi;
10f2d63a 4736
e46d2a18 4737 eval "$ac_cv_use_file"
10f2d63a 4738 if test "$no_cache" != 1; then
e46d2a18 4739 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4740 fi
4741
e46d2a18 4742 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
10f2d63a 4745 else
e6cc62c6
VS
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
10f2d63a 4748 fi
e6cc62c6 4749
10f2d63a 4750
5005acfe 4751 enablestring=
e46d2a18
VS
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4754 no_cache=0
e46d2a18
VS
4755 # Check whether --enable-filesystem or --disable-filesystem was given.
4756if test "${enable_filesystem+set}" = set; then
4757 enableval="$enable_filesystem"
e6cc62c6 4758
10f2d63a 4759 if test "$enableval" = yes; then
e46d2a18 4760 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4761 else
e46d2a18 4762 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4763 fi
e6cc62c6 4764
10f2d63a 4765else
e6cc62c6 4766
e46d2a18 4767 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
e46d2a18 4774 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4775
e6cc62c6 4776fi;
10f2d63a 4777
e46d2a18 4778 eval "$ac_cv_use_filesystem"
10f2d63a 4779 if test "$no_cache" != 1; then
e46d2a18 4780 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4781 fi
4782
e46d2a18 4783 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
10f2d63a 4786 else
e6cc62c6
VS
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
10f2d63a 4789 fi
e6cc62c6 4790
10f2d63a 4791
5005acfe 4792 enablestring=
e46d2a18
VS
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4795 no_cache=0
e46d2a18
VS
4796 # Check whether --enable-fontmap or --disable-fontmap was given.
4797if test "${enable_fontmap+set}" = set; then
4798 enableval="$enable_fontmap"
e6cc62c6 4799
10f2d63a 4800 if test "$enableval" = yes; then
e46d2a18 4801 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4802 else
e46d2a18 4803 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4804 fi
e6cc62c6 4805
10f2d63a 4806else
e6cc62c6 4807
e46d2a18 4808 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
e46d2a18 4815 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4816
e6cc62c6 4817fi;
10f2d63a 4818
e46d2a18 4819 eval "$ac_cv_use_fontmap"
10f2d63a 4820 if test "$no_cache" != 1; then
e46d2a18 4821 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4822 fi
4823
e46d2a18 4824 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
10f2d63a 4827 else
e6cc62c6
VS
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
10f2d63a 4830 fi
e6cc62c6 4831
10f2d63a 4832
5005acfe 4833 enablestring=
e46d2a18
VS
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4836 no_cache=0
e46d2a18
VS
4837 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4838if test "${enable_fs_inet+set}" = set; then
4839 enableval="$enable_fs_inet"
e6cc62c6 4840
10f2d63a 4841 if test "$enableval" = yes; then
e46d2a18 4842 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4843 else
e46d2a18 4844 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4845 fi
e6cc62c6 4846
10f2d63a 4847else
e6cc62c6 4848
e46d2a18 4849 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
e46d2a18 4856 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4857
e6cc62c6 4858fi;
10f2d63a 4859
e46d2a18 4860 eval "$ac_cv_use_fs_inet"
10f2d63a 4861 if test "$no_cache" != 1; then
e46d2a18 4862 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4863 fi
4864
e46d2a18 4865 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
10f2d63a 4868 else
e6cc62c6
VS
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
10f2d63a 4871 fi
e6cc62c6 4872
10f2d63a 4873
5005acfe 4874 enablestring=
e46d2a18
VS
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4877 no_cache=0
e46d2a18
VS
4878 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4879if test "${enable_fs_zip+set}" = set; then
4880 enableval="$enable_fs_zip"
e6cc62c6 4881
a3a584a7 4882 if test "$enableval" = yes; then
e46d2a18 4883 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4884 else
e46d2a18 4885 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4886 fi
e6cc62c6 4887
a3a584a7 4888else
e6cc62c6 4889
e46d2a18 4890 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
e46d2a18 4897 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4898
e6cc62c6 4899fi;
a3a584a7 4900
e46d2a18 4901 eval "$ac_cv_use_fs_zip"
a3a584a7 4902 if test "$no_cache" != 1; then
e46d2a18 4903 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4904 fi
4905
e46d2a18 4906 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
a3a584a7 4909 else
e6cc62c6
VS
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
a3a584a7 4912 fi
e6cc62c6 4913
a3a584a7 4914
5005acfe 4915 enablestring=
e46d2a18
VS
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4918 no_cache=0
e46d2a18
VS
4919 # Check whether --enable-geometry or --disable-geometry was given.
4920if test "${enable_geometry+set}" = set; then
4921 enableval="$enable_geometry"
e6cc62c6 4922
10f2d63a 4923 if test "$enableval" = yes; then
e46d2a18 4924 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4925 else
e46d2a18 4926 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4927 fi
e6cc62c6 4928
10f2d63a 4929else
e6cc62c6 4930
e46d2a18 4931 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
e46d2a18 4938 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4939
e6cc62c6 4940fi;
10f2d63a 4941
e46d2a18 4942 eval "$ac_cv_use_geometry"
10f2d63a 4943 if test "$no_cache" != 1; then
e46d2a18 4944 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4945 fi
4946
e46d2a18 4947 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
10f2d63a 4950 else
e6cc62c6
VS
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
10f2d63a 4953 fi
e6cc62c6 4954
10f2d63a 4955
5005acfe 4956 enablestring=
e46d2a18
VS
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4959 no_cache=0
e46d2a18
VS
4960 # Check whether --enable-log or --disable-log was given.
4961if test "${enable_log+set}" = set; then
4962 enableval="$enable_log"
e6cc62c6 4963
10f2d63a 4964 if test "$enableval" = yes; then
e46d2a18 4965 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4966 else
e46d2a18 4967 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4968 fi
e6cc62c6 4969
10f2d63a 4970else
e6cc62c6 4971
e46d2a18 4972 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
e46d2a18 4979 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4980
e6cc62c6 4981fi;
10f2d63a 4982
e46d2a18 4983 eval "$ac_cv_use_log"
10f2d63a 4984 if test "$no_cache" != 1; then
e46d2a18 4985 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4986 fi
4987
e46d2a18 4988 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
10f2d63a 4991 else
e6cc62c6
VS
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
10f2d63a 4994 fi
e6cc62c6 4995
10f2d63a 4996
5005acfe 4997 enablestring=
e46d2a18
VS
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5000 no_cache=0
e46d2a18
VS
5001 # Check whether --enable-longlong or --disable-longlong was given.
5002if test "${enable_longlong+set}" = set; then
5003 enableval="$enable_longlong"
e6cc62c6 5004
1e6feb95 5005 if test "$enableval" = yes; then
e46d2a18 5006 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5007 else
e46d2a18 5008 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5009 fi
e6cc62c6 5010
1e6feb95 5011else
e6cc62c6 5012
e46d2a18 5013 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
e46d2a18 5020 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5021
e6cc62c6 5022fi;
1e6feb95 5023
e46d2a18 5024 eval "$ac_cv_use_longlong"
1e6feb95 5025 if test "$no_cache" != 1; then
e46d2a18 5026 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5027 fi
5028
e46d2a18
VS
5029 if test "$wxUSE_LONGLONG" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-mimetype or --disable-mimetype was given.
5043if test "${enable_mimetype+set}" = set; then
5044 enableval="$enable_mimetype"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5048 else
5049 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5062
5063fi;
5064
5065 eval "$ac_cv_use_mimetype"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
1e6feb95 5073 else
e6cc62c6
VS
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
1e6feb95 5076 fi
e6cc62c6 5077
1e6feb95 5078
5005acfe 5079 enablestring=
e6cc62c6
VS
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5082 no_cache=0
5083 # Check whether --enable-mslu or --disable-mslu was given.
5084if test "${enable_mslu+set}" = set; then
5085 enableval="$enable_mslu"
e6cc62c6 5086
a72a4bfa
VS
5087 if test "$enableval" = yes; then
5088 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5089 else
5090 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5091 fi
e6cc62c6 5092
a72a4bfa 5093else
e6cc62c6 5094
a72a4bfa
VS
5095 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5103
e6cc62c6 5104fi;
a72a4bfa
VS
5105
5106 eval "$ac_cv_use_mslu"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
a72a4bfa 5114 else
e6cc62c6
VS
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
a72a4bfa 5117 fi
e6cc62c6 5118
a72a4bfa 5119
5005acfe 5120 enablestring=
e46d2a18
VS
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5123 no_cache=0
e46d2a18
VS
5124 # Check whether --enable-snglinst or --disable-snglinst was given.
5125if test "${enable_snglinst+set}" = set; then
5126 enableval="$enable_snglinst"
e6cc62c6 5127
1e6feb95 5128 if test "$enableval" = yes; then
e46d2a18 5129 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5130 else
e46d2a18 5131 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5132 fi
e6cc62c6 5133
10f2d63a 5134else
e6cc62c6 5135
e46d2a18 5136 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
e46d2a18 5143 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5144
e6cc62c6 5145fi;
10f2d63a 5146
e46d2a18 5147 eval "$ac_cv_use_snglinst"
10f2d63a 5148 if test "$no_cache" != 1; then
e46d2a18 5149 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5150 fi
5151
e46d2a18
VS
5152 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-streams or --disable-streams was given.
5166if test "${enable_streams+set}" = set; then
5167 enableval="$enable_streams"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_streams='wxUSE_STREAMS=yes'
5171 else
5172 ac_cv_use_streams='wxUSE_STREAMS=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5185
5186fi;
5187
5188 eval "$ac_cv_use_streams"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
10f2d63a 5196 else
e6cc62c6
VS
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
10f2d63a 5199 fi
e6cc62c6 5200
10f2d63a 5201
5005acfe 5202 enablestring=
e6cc62c6
VS
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5205 no_cache=0
5206 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5207if test "${enable_std_iostreams+set}" = set; then
5208 enableval="$enable_std_iostreams"
e6cc62c6 5209
10f2d63a
VZ
5210 if test "$enableval" = yes; then
5211 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5212 else
5213 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5214 fi
e6cc62c6 5215
10f2d63a 5216else
e6cc62c6 5217
10f2d63a
VZ
5218 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5226
e6cc62c6 5227fi;
10f2d63a
VZ
5228
5229 eval "$ac_cv_use_std_iostreams"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
10f2d63a 5237 else
e6cc62c6
VS
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
10f2d63a 5240 fi
e6cc62c6 5241
10f2d63a 5242
5005acfe 5243 enablestring=
e46d2a18
VS
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5246 no_cache=0
e46d2a18
VS
5247 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5248if test "${enable_stopwatch+set}" = set; then
5249 enableval="$enable_stopwatch"
e6cc62c6 5250
24528b0c 5251 if test "$enableval" = yes; then
e46d2a18 5252 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5253 else
e46d2a18 5254 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5255 fi
e6cc62c6 5256
24528b0c 5257else
e6cc62c6 5258
e46d2a18 5259 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
e46d2a18 5266 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5267
e6cc62c6 5268fi;
24528b0c 5269
e46d2a18 5270 eval "$ac_cv_use_stopwatch"
24528b0c 5271 if test "$no_cache" != 1; then
e46d2a18 5272 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5273 fi
5274
e46d2a18 5275 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
24528b0c 5278 else
e6cc62c6
VS
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
24528b0c 5281 fi
e6cc62c6 5282
24528b0c 5283
5005acfe 5284 enablestring=
e46d2a18
VS
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5287 no_cache=0
e46d2a18
VS
5288 # Check whether --enable-system_options or --disable-system_options was given.
5289if test "${enable_system_options+set}" = set; then
5290 enableval="$enable_system_options"
e6cc62c6 5291
10f2d63a 5292 if test "$enableval" = yes; then
e46d2a18 5293 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5294 else
e46d2a18 5295 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5296 fi
e6cc62c6 5297
10f2d63a 5298else
e6cc62c6 5299
e46d2a18 5300 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
e46d2a18 5307 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5308
e6cc62c6 5309fi;
10f2d63a 5310
e46d2a18 5311 eval "$ac_cv_use_system_options"
10f2d63a 5312 if test "$no_cache" != 1; then
e46d2a18 5313 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5314 fi
5315
e46d2a18 5316 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
10f2d63a 5319 else
e6cc62c6
VS
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
10f2d63a 5322 fi
e6cc62c6 5323
10f2d63a 5324
5005acfe 5325 enablestring=
e46d2a18
VS
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5328 no_cache=0
e46d2a18
VS
5329 # Check whether --enable-textbuf or --disable-textbuf was given.
5330if test "${enable_textbuf+set}" = set; then
5331 enableval="$enable_textbuf"
e6cc62c6 5332
10f2d63a 5333 if test "$enableval" = yes; then
e46d2a18 5334 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5335 else
e46d2a18 5336 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5337 fi
e6cc62c6 5338
10f2d63a 5339else
e6cc62c6 5340
e46d2a18 5341 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
e46d2a18 5348 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5349
e6cc62c6 5350fi;
10f2d63a 5351
e46d2a18 5352 eval "$ac_cv_use_textbuf"
10f2d63a 5353 if test "$no_cache" != 1; then
e46d2a18 5354 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5355 fi
5356
e46d2a18 5357 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
10f2d63a 5360 else
e6cc62c6
VS
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
10f2d63a 5363 fi
e6cc62c6 5364
10f2d63a 5365
5005acfe 5366 enablestring=
e46d2a18
VS
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5369 no_cache=0
e46d2a18
VS
5370 # Check whether --enable-textfile or --disable-textfile was given.
5371if test "${enable_textfile+set}" = set; then
5372 enableval="$enable_textfile"
e6cc62c6 5373
10f2d63a 5374 if test "$enableval" = yes; then
e46d2a18 5375 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5376 else
e46d2a18 5377 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5378 fi
e6cc62c6 5379
10f2d63a 5380else
e6cc62c6 5381
e46d2a18 5382 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
e46d2a18 5389 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5390
e6cc62c6 5391fi;
10f2d63a 5392
e46d2a18 5393 eval "$ac_cv_use_textfile"
10f2d63a 5394 if test "$no_cache" != 1; then
e46d2a18 5395 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5396 fi
5397
e46d2a18 5398 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
10f2d63a 5401 else
e6cc62c6
VS
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
10f2d63a 5404 fi
e6cc62c6 5405
8284b0c5 5406
5005acfe 5407 enablestring=
e46d2a18
VS
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5410 no_cache=0
e46d2a18
VS
5411 # Check whether --enable-timer or --disable-timer was given.
5412if test "${enable_timer+set}" = set; then
5413 enableval="$enable_timer"
e6cc62c6 5414
eb4efbdc 5415 if test "$enableval" = yes; then
e46d2a18 5416 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5417 else
e46d2a18 5418 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5419 fi
e6cc62c6 5420
eb4efbdc 5421else
e6cc62c6 5422
e46d2a18 5423 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
e46d2a18 5430 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5431
e6cc62c6 5432fi;
eb4efbdc 5433
e46d2a18 5434 eval "$ac_cv_use_timer"
eb4efbdc 5435 if test "$no_cache" != 1; then
e46d2a18 5436 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5437 fi
5438
e46d2a18 5439 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
eb4efbdc 5442 else
e6cc62c6
VS
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
eb4efbdc 5445 fi
e6cc62c6 5446
eb4efbdc 5447
5005acfe 5448 enablestring=
e46d2a18
VS
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5451 no_cache=0
e46d2a18
VS
5452 # Check whether --enable-unicode or --disable-unicode was given.
5453if test "${enable_unicode+set}" = set; then
5454 enableval="$enable_unicode"
e6cc62c6 5455
4f3c5f06 5456 if test "$enableval" = yes; then
e46d2a18 5457 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5458 else
e46d2a18 5459 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5460 fi
e6cc62c6 5461
4f3c5f06 5462else
e6cc62c6 5463
e46d2a18 5464 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
e46d2a18 5471 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5472
e6cc62c6 5473fi;
4f3c5f06 5474
e46d2a18 5475 eval "$ac_cv_use_unicode"
4f3c5f06 5476 if test "$no_cache" != 1; then
e46d2a18 5477 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5478 fi
5479
e46d2a18 5480 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
4f3c5f06 5483 else
e6cc62c6
VS
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
4f3c5f06 5486 fi
e6cc62c6 5487
52127426 5488
e46d2a18
VS
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-wave or --disable-wave was given.
5494if test "${enable_wave+set}" = set; then
5495 enableval="$enable_wave"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_wave='wxUSE_WAVE=yes'
5499 else
5500 ac_cv_use_wave='wxUSE_WAVE=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5513
5514fi;
5515
5516 eval "$ac_cv_use_wave"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_WAVE" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
8284b0c5 5529
5005acfe 5530 enablestring=
e46d2a18
VS
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5533 no_cache=0
e46d2a18
VS
5534 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5535if test "${enable_wxprintfv+set}" = set; then
5536 enableval="$enable_wxprintfv"
e6cc62c6 5537
1e6feb95 5538 if test "$enableval" = yes; then
e46d2a18 5539 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5540 else
e46d2a18 5541 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5542 fi
e6cc62c6 5543
1e6feb95 5544else
e6cc62c6 5545
e46d2a18 5546 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
e46d2a18 5553 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5554
e6cc62c6 5555fi;
1e6feb95 5556
e46d2a18 5557 eval "$ac_cv_use_wxprintfv"
1e6feb95 5558 if test "$no_cache" != 1; then
e46d2a18 5559 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5560 fi
5561
e46d2a18 5562 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
1e6feb95 5565 else
e6cc62c6
VS
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
1e6feb95 5568 fi
e6cc62c6 5569
1e6feb95 5570
5005acfe 5571 enablestring=
e46d2a18
VS
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5574 no_cache=0
e46d2a18
VS
5575 # Check whether --enable-zipstream or --disable-zipstream was given.
5576if test "${enable_zipstream+set}" = set; then
5577 enableval="$enable_zipstream"
e6cc62c6 5578
3e44f09d 5579 if test "$enableval" = yes; then
e46d2a18 5580 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5581 else
e46d2a18 5582 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5583 fi
e6cc62c6 5584
3e44f09d 5585else
e6cc62c6 5586
e46d2a18 5587 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
e46d2a18 5594 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5595
e6cc62c6 5596fi;
3e44f09d 5597
e46d2a18 5598 eval "$ac_cv_use_zipstream"
3e44f09d 5599 if test "$no_cache" != 1; then
e46d2a18 5600 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5601 fi
5602
e46d2a18 5603 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
3e44f09d 5606 else
e6cc62c6
VS
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
3e44f09d 5609 fi
e6cc62c6 5610
8284b0c5 5611
7015ef3a
VZ
5612 enablestring=
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5615 no_cache=0
5616 # Check whether --enable-gzstream or --disable-gzstream was given.
5617if test "${enable_gzstream+set}" = set; then
5618 enableval="$enable_gzstream"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5622 else
5623 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5636
5637fi;
5638
5639 eval "$ac_cv_use_gzstream"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_GZSTREAM" = yes; then
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
52127426 5653
5005acfe 5654 enablestring=
e6cc62c6
VS
5655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5656echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5657 no_cache=0
5658 # Check whether --enable-url or --disable-url was given.
5659if test "${enable_url+set}" = set; then
5660 enableval="$enable_url"
e6cc62c6 5661
4cdb0ab0
VS
5662 if test "$enableval" = yes; then
5663 ac_cv_use_url='wxUSE_URL=yes'
5664 else
5665 ac_cv_use_url='wxUSE_URL=no'
5666 fi
e6cc62c6 5667
4cdb0ab0 5668else
e6cc62c6 5669
4cdb0ab0
VS
5670 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5671 if test "x$LINE" != x ; then
5672 eval "DEFAULT_$LINE"
5673 else
5674 no_cache=1
5675 fi
5676
5677 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5678
e6cc62c6 5679fi;
4cdb0ab0
VS
5680
5681 eval "$ac_cv_use_url"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5687 echo "$as_me:$LINENO: result: yes" >&5
5688echo "${ECHO_T}yes" >&6
4cdb0ab0 5689 else
e6cc62c6
VS
5690 echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
4cdb0ab0 5692 fi
e6cc62c6 5693
4cdb0ab0 5694
5005acfe 5695 enablestring=
e6cc62c6
VS
5696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5697echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5698 no_cache=0
5699 # Check whether --enable-protocol or --disable-protocol was given.
5700if test "${enable_protocol+set}" = set; then
5701 enableval="$enable_protocol"
e6cc62c6 5702
4cdb0ab0
VS
5703 if test "$enableval" = yes; then
5704 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5705 else
5706 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5707 fi
e6cc62c6 5708
4cdb0ab0 5709else
e6cc62c6 5710
4cdb0ab0
VS
5711 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5712 if test "x$LINE" != x ; then
5713 eval "DEFAULT_$LINE"
5714 else
5715 no_cache=1
5716 fi
5717
5718 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5719
e6cc62c6 5720fi;
4cdb0ab0
VS
5721
5722 eval "$ac_cv_use_protocol"
5723 if test "$no_cache" != 1; then
5724 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5725 fi
5726
5727 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5728 echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
4cdb0ab0 5730 else
e6cc62c6
VS
5731 echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6
4cdb0ab0 5733 fi
e6cc62c6 5734
4cdb0ab0 5735
5005acfe 5736 enablestring=
e6cc62c6
VS
5737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5738echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5739 no_cache=0
5740 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5741if test "${enable_protocol_http+set}" = set; then
5742 enableval="$enable_protocol_http"
e6cc62c6 5743
4cdb0ab0
VS
5744 if test "$enableval" = yes; then
5745 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5746 else
5747 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5748 fi
e6cc62c6 5749
4cdb0ab0 5750else
e6cc62c6 5751
4cdb0ab0
VS
5752 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5753 if test "x$LINE" != x ; then
5754 eval "DEFAULT_$LINE"
5755 else
5756 no_cache=1
5757 fi
5758
5759 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5760
e6cc62c6 5761fi;
4cdb0ab0
VS
5762
5763 eval "$ac_cv_use_protocol_http"
5764 if test "$no_cache" != 1; then
5765 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5766 fi
5767
5768 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5769 echo "$as_me:$LINENO: result: yes" >&5
5770echo "${ECHO_T}yes" >&6
4cdb0ab0 5771 else
e6cc62c6
VS
5772 echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6
4cdb0ab0 5774 fi
e6cc62c6 5775
4cdb0ab0 5776
5005acfe 5777 enablestring=
e6cc62c6
VS
5778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5779echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5780 no_cache=0
5781 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5782if test "${enable_protocol_ftp+set}" = set; then
5783 enableval="$enable_protocol_ftp"
e6cc62c6 5784
4cdb0ab0
VS
5785 if test "$enableval" = yes; then
5786 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5787 else
5788 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5789 fi
e6cc62c6 5790
4cdb0ab0 5791else
e6cc62c6 5792
4cdb0ab0
VS
5793 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5794 if test "x$LINE" != x ; then
5795 eval "DEFAULT_$LINE"
5796 else
5797 no_cache=1
5798 fi
5799
5800 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5801
e6cc62c6 5802fi;
4cdb0ab0
VS
5803
5804 eval "$ac_cv_use_protocol_ftp"
5805 if test "$no_cache" != 1; then
5806 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5807 fi
5808
5809 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5810 echo "$as_me:$LINENO: result: yes" >&5
5811echo "${ECHO_T}yes" >&6
4cdb0ab0 5812 else
e6cc62c6
VS
5813 echo "$as_me:$LINENO: result: no" >&5
5814echo "${ECHO_T}no" >&6
4cdb0ab0 5815 fi
e6cc62c6 5816
4cdb0ab0 5817
5005acfe 5818 enablestring=
e6cc62c6
VS
5819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5820echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5821 no_cache=0
5822 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5823if test "${enable_protocol_file+set}" = set; then
5824 enableval="$enable_protocol_file"
e6cc62c6 5825
4cdb0ab0
VS
5826 if test "$enableval" = yes; then
5827 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5828 else
5829 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5830 fi
e6cc62c6 5831
4cdb0ab0 5832else
e6cc62c6 5833
4cdb0ab0
VS
5834 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5835 if test "x$LINE" != x ; then
5836 eval "DEFAULT_$LINE"
5837 else
5838 no_cache=1
5839 fi
5840
5841 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5842
e6cc62c6 5843fi;
4cdb0ab0
VS
5844
5845 eval "$ac_cv_use_protocol_file"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5851 echo "$as_me:$LINENO: result: yes" >&5
5852echo "${ECHO_T}yes" >&6
4cdb0ab0 5853 else
e6cc62c6
VS
5854 echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6
4cdb0ab0 5856 fi
e6cc62c6 5857
52127426 5858
8284b0c5
MB
5859
5860
5861
5005acfe 5862 enablestring=
e6cc62c6
VS
5863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5864echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5865 no_cache=0
5866 # Check whether --enable-threads or --disable-threads was given.
5867if test "${enable_threads+set}" = set; then
5868 enableval="$enable_threads"
e6cc62c6 5869
10f2d63a
VZ
5870 if test "$enableval" = yes; then
5871 ac_cv_use_threads='wxUSE_THREADS=yes'
5872 else
5873 ac_cv_use_threads='wxUSE_THREADS=no'
5874 fi
e6cc62c6 5875
10f2d63a 5876else
e6cc62c6 5877
10f2d63a
VZ
5878 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5879 if test "x$LINE" != x ; then
5880 eval "DEFAULT_$LINE"
5881 else
5882 no_cache=1
5883 fi
5884
5885 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5886
e6cc62c6 5887fi;
10f2d63a
VZ
5888
5889 eval "$ac_cv_use_threads"
5890 if test "$no_cache" != 1; then
5891 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5892 fi
5893
5894 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5895 echo "$as_me:$LINENO: result: yes" >&5
5896echo "${ECHO_T}yes" >&6
10f2d63a 5897 else
e6cc62c6
VS
5898 echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
10f2d63a 5900 fi
e6cc62c6 5901
10f2d63a 5902
b12915c1
VZ
5903if test "$wxUSE_GUI" = "yes"; then
5904
8284b0c5
MB
5905
5906
5005acfe 5907 enablestring=
e6cc62c6
VS
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5910 no_cache=0
5911 # Check whether --enable-docview or --disable-docview was given.
5912if test "${enable_docview+set}" = set; then
5913 enableval="$enable_docview"
e6cc62c6 5914
10f2d63a
VZ
5915 if test "$enableval" = yes; then
5916 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5917 else
5918 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5919 fi
e6cc62c6 5920
10f2d63a 5921else
e6cc62c6 5922
10f2d63a
VZ
5923 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5931
e6cc62c6 5932fi;
10f2d63a
VZ
5933
5934 eval "$ac_cv_use_docview"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
10f2d63a 5942 else
e6cc62c6
VS
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
10f2d63a 5945 fi
e6cc62c6 5946
10f2d63a 5947
5005acfe 5948 enablestring=
e6cc62c6
VS
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5951 no_cache=0
5952 # Check whether --enable-help or --disable-help was given.
5953if test "${enable_help+set}" = set; then
5954 enableval="$enable_help"
e6cc62c6 5955
10f2d63a
VZ
5956 if test "$enableval" = yes; then
5957 ac_cv_use_help='wxUSE_HELP=yes'
5958 else
5959 ac_cv_use_help='wxUSE_HELP=no'
5960 fi
e6cc62c6 5961
10f2d63a 5962else
e6cc62c6 5963
10f2d63a
VZ
5964 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5972
e6cc62c6 5973fi;
10f2d63a
VZ
5974
5975 eval "$ac_cv_use_help"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
10f2d63a 5983 else
e6cc62c6
VS
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
10f2d63a 5986 fi
e6cc62c6 5987
10f2d63a 5988
5005acfe 5989 enablestring=
e6cc62c6
VS
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5992 no_cache=0
5993 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5994if test "${enable_mshtmlhelp+set}" = set; then
5995 enableval="$enable_mshtmlhelp"
e6cc62c6 5996
29fd3c0c
VS
5997 if test "$enableval" = yes; then
5998 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5999 else
6000 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6001 fi
e6cc62c6 6002
29fd3c0c 6003else
e6cc62c6 6004
29fd3c0c
VS
6005 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6013
e6cc62c6 6014fi;
29fd3c0c
VS
6015
6016 eval "$ac_cv_use_mshtmlhelp"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
29fd3c0c 6024 else
e6cc62c6
VS
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
29fd3c0c 6027 fi
e6cc62c6 6028
29fd3c0c 6029
5005acfe 6030 enablestring=
e6cc62c6
VS
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6033 no_cache=0
6034 # Check whether --enable-html or --disable-html was given.
6035if test "${enable_html+set}" = set; then
6036 enableval="$enable_html"
e6cc62c6 6037
3379ed37
VZ
6038 if test "$enableval" = yes; then
6039 ac_cv_use_html='wxUSE_HTML=yes'
6040 else
6041 ac_cv_use_html='wxUSE_HTML=no'
6042 fi
e6cc62c6 6043
3379ed37 6044else
e6cc62c6 6045
3379ed37
VZ
6046 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6054
e6cc62c6 6055fi;
3379ed37
VZ
6056
6057 eval "$ac_cv_use_html"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
3379ed37 6065 else
e6cc62c6
VS
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
3379ed37 6068 fi
e6cc62c6 6069
3379ed37 6070
5005acfe 6071 enablestring=
e6cc62c6
VS
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6074 no_cache=0
6075 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6076if test "${enable_htmlhelp+set}" = set; then
6077 enableval="$enable_htmlhelp"
e6cc62c6 6078
3379ed37
VZ
6079 if test "$enableval" = yes; then
6080 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6081 else
6082 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6083 fi
e6cc62c6 6084
3379ed37 6085else
e6cc62c6 6086
3379ed37
VZ
6087 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6095
e6cc62c6 6096fi;
3379ed37
VZ
6097
6098 eval "$ac_cv_use_htmlhelp"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
3379ed37 6106 else
e6cc62c6
VS
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
3379ed37 6109 fi
e6cc62c6 6110
3379ed37 6111
5005acfe 6112 enablestring=
e6cc62c6
VS
6113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6114echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6115 no_cache=0
6116 # Check whether --enable-constraints or --disable-constraints was given.
6117if test "${enable_constraints+set}" = set; then
6118 enableval="$enable_constraints"
e6cc62c6 6119
10f2d63a
VZ
6120 if test "$enableval" = yes; then
6121 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6122 else
6123 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6124 fi
e6cc62c6 6125
10f2d63a 6126else
e6cc62c6 6127
10f2d63a
VZ
6128 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6129 if test "x$LINE" != x ; then
6130 eval "DEFAULT_$LINE"
6131 else
6132 no_cache=1
6133 fi
6134
6135 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6136
e6cc62c6 6137fi;
10f2d63a
VZ
6138
6139 eval "$ac_cv_use_constraints"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6145 echo "$as_me:$LINENO: result: yes" >&5
6146echo "${ECHO_T}yes" >&6
10f2d63a 6147 else
e6cc62c6
VS
6148 echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
10f2d63a 6150 fi
e6cc62c6 6151
10f2d63a 6152
5005acfe 6153 enablestring=
e6cc62c6
VS
6154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6155echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6156 no_cache=0
6157 # Check whether --enable-printarch or --disable-printarch was given.
6158if test "${enable_printarch+set}" = set; then
6159 enableval="$enable_printarch"
e6cc62c6 6160
10f2d63a
VZ
6161 if test "$enableval" = yes; then
6162 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6163 else
6164 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6165 fi
e6cc62c6 6166
10f2d63a 6167else
e6cc62c6 6168
10f2d63a
VZ
6169 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6170 if test "x$LINE" != x ; then
6171 eval "DEFAULT_$LINE"
6172 else
6173 no_cache=1
6174 fi
6175
6176 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6177
e6cc62c6 6178fi;
10f2d63a
VZ
6179
6180 eval "$ac_cv_use_printarch"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6186 echo "$as_me:$LINENO: result: yes" >&5
6187echo "${ECHO_T}yes" >&6
10f2d63a 6188 else
e6cc62c6
VS
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
10f2d63a 6191 fi
e6cc62c6 6192
10f2d63a 6193
5005acfe 6194 enablestring=
e6cc62c6
VS
6195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6196echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6197 no_cache=0
6198 # Check whether --enable-mdi or --disable-mdi was given.
6199if test "${enable_mdi+set}" = set; then
6200 enableval="$enable_mdi"
e6cc62c6 6201
10f2d63a
VZ
6202 if test "$enableval" = yes; then
6203 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6204 else
6205 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6206 fi
e6cc62c6 6207
10f2d63a 6208else
e6cc62c6 6209
10f2d63a
VZ
6210 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6218
e6cc62c6 6219fi;
10f2d63a
VZ
6220
6221 eval "$ac_cv_use_mdi"
6222 if test "$no_cache" != 1; then
6223 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6224 fi
6225
6226 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6227 echo "$as_me:$LINENO: result: yes" >&5
6228echo "${ECHO_T}yes" >&6
10f2d63a 6229 else
e6cc62c6
VS
6230 echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6
10f2d63a 6232 fi
e6cc62c6 6233
698dcdb6 6234
5005acfe 6235 enablestring=
e6cc62c6
VS
6236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6237echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6238 no_cache=0
6239 # Check whether --enable-loggui or --disable-loggui was given.
6240if test "${enable_loggui+set}" = set; then
6241 enableval="$enable_loggui"
e6cc62c6 6242
1e6feb95
VZ
6243 if test "$enableval" = yes; then
6244 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6245 else
6246 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6247 fi
e6cc62c6 6248
1e6feb95 6249else
e6cc62c6 6250
1e6feb95
VZ
6251 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6259
e6cc62c6 6260fi;
1e6feb95
VZ
6261
6262 eval "$ac_cv_use_loggui"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6268 echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
1e6feb95 6270 else
e6cc62c6
VS
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
1e6feb95 6273 fi
e6cc62c6 6274
1e6feb95 6275
5005acfe 6276 enablestring=
e6cc62c6
VS
6277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6278echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6279 no_cache=0
6280 # Check whether --enable-logwin or --disable-logwin was given.
6281if test "${enable_logwin+set}" = set; then
6282 enableval="$enable_logwin"
e6cc62c6 6283
1e6feb95
VZ
6284 if test "$enableval" = yes; then
6285 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6286 else
6287 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6288 fi
e6cc62c6 6289
1e6feb95 6290else
e6cc62c6 6291
1e6feb95
VZ
6292 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6293 if test "x$LINE" != x ; then
6294 eval "DEFAULT_$LINE"
6295 else
6296 no_cache=1
6297 fi
6298
6299 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6300
e6cc62c6 6301fi;
1e6feb95
VZ
6302
6303 eval "$ac_cv_use_logwin"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6309 echo "$as_me:$LINENO: result: yes" >&5
6310echo "${ECHO_T}yes" >&6
1e6feb95 6311 else
e6cc62c6
VS
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
1e6feb95 6314 fi
e6cc62c6 6315
1e6feb95 6316
5005acfe 6317 enablestring=
e6cc62c6
VS
6318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6319echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6320 no_cache=0
6321 # Check whether --enable-logdialog or --disable-logdialog was given.
6322if test "${enable_logdialog+set}" = set; then
6323 enableval="$enable_logdialog"
e6cc62c6 6324
69d27ff7
MB
6325 if test "$enableval" = yes; then
6326 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6327 else
6328 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6329 fi
e6cc62c6 6330
69d27ff7 6331else
e6cc62c6 6332
69d27ff7
MB
6333 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6341
e6cc62c6 6342fi;
69d27ff7
MB
6343
6344 eval "$ac_cv_use_logdialog"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6350 echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
69d27ff7 6352 else
e6cc62c6
VS
6353 echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
69d27ff7 6355 fi
e6cc62c6 6356
8284b0c5 6357
52127426 6358
5005acfe 6359 enablestring=
e6cc62c6
VS
6360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6361echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6362 no_cache=0
6363 # Check whether --enable-postscript or --disable-postscript was given.
6364if test "${enable_postscript+set}" = set; then
6365 enableval="$enable_postscript"
e6cc62c6 6366
10f2d63a
VZ
6367 if test "$enableval" = yes; then
6368 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6369 else
6370 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6371 fi
e6cc62c6 6372
10f2d63a 6373else
e6cc62c6 6374
10f2d63a
VZ
6375 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6376 if test "x$LINE" != x ; then
6377 eval "DEFAULT_$LINE"
6378 else
6379 no_cache=1
6380 fi
6381
6382 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6383
e6cc62c6 6384fi;
10f2d63a
VZ
6385
6386 eval "$ac_cv_use_postscript"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6392 echo "$as_me:$LINENO: result: yes" >&5
6393echo "${ECHO_T}yes" >&6
10f2d63a 6394 else
e6cc62c6
VS
6395 echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
10f2d63a 6397 fi
e6cc62c6 6398
8284b0c5
MB
6399
6400
52127426 6401
8284b0c5 6402
5005acfe 6403 enablestring=
e6cc62c6
VS
6404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6405echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6406 no_cache=0
3c907f20
VZ
6407 # Check whether --enable-prologio or --disable-prologio was given.
6408if test "${enable_prologio+set}" = set; then
6409 enableval="$enable_prologio"
e6cc62c6 6410
10f2d63a 6411 if test "$enableval" = yes; then
3c907f20 6412 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6413 else
3c907f20 6414 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6415 fi
e6cc62c6 6416
10f2d63a 6417else
e6cc62c6 6418
3c907f20 6419 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6420 if test "x$LINE" != x ; then
6421 eval "DEFAULT_$LINE"
6422 else
6423 no_cache=1
6424 fi
6425
3c907f20 6426 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6427
e6cc62c6 6428fi;
10f2d63a 6429
3c907f20 6430 eval "$ac_cv_use_prologio"
10f2d63a 6431 if test "$no_cache" != 1; then
3c907f20 6432 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6433 fi
6434
3c907f20 6435 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6436 echo "$as_me:$LINENO: result: yes" >&5
6437echo "${ECHO_T}yes" >&6
10f2d63a 6438 else
e6cc62c6
VS
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
10f2d63a 6441 fi
e6cc62c6 6442
8284b0c5 6443
5005acfe 6444 enablestring=
e6cc62c6
VS
6445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6446echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6447 no_cache=0
3c907f20
VZ
6448 # Check whether --enable-resources or --disable-resources was given.
6449if test "${enable_resources+set}" = set; then
6450 enableval="$enable_resources"
e6cc62c6 6451
10f2d63a 6452 if test "$enableval" = yes; then
3c907f20 6453 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6454 else
3c907f20 6455 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6456 fi
e6cc62c6 6457
10f2d63a 6458else
e6cc62c6 6459
3c907f20 6460 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
3c907f20 6467 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6468
e6cc62c6 6469fi;
10f2d63a 6470
3c907f20 6471 eval "$ac_cv_use_resources"
10f2d63a 6472 if test "$no_cache" != 1; then
3c907f20 6473 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6474 fi
6475
3c907f20 6476 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6477 echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6
10f2d63a 6479 else
e6cc62c6
VS
6480 echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6
10f2d63a 6482 fi
e6cc62c6 6483
8284b0c5
MB
6484
6485
52127426 6486
5005acfe 6487 enablestring=
e6cc62c6
VS
6488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6489echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6490 no_cache=0
6491 # Check whether --enable-clipboard or --disable-clipboard was given.
6492if test "${enable_clipboard+set}" = set; then
6493 enableval="$enable_clipboard"
e6cc62c6 6494
10f2d63a
VZ
6495 if test "$enableval" = yes; then
6496 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6497 else
6498 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6499 fi
e6cc62c6 6500
10f2d63a 6501else
e6cc62c6 6502
10f2d63a
VZ
6503 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6504 if test "x$LINE" != x ; then
6505 eval "DEFAULT_$LINE"
6506 else
6507 no_cache=1
6508 fi
6509
6510 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6511
e6cc62c6 6512fi;
10f2d63a
VZ
6513
6514 eval "$ac_cv_use_clipboard"
6515 if test "$no_cache" != 1; then
6516 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6517 fi
6518
6519 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6520 echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6
10f2d63a 6522 else
e6cc62c6
VS
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
10f2d63a 6525 fi
e6cc62c6 6526
10f2d63a 6527
5005acfe 6528 enablestring=
e6cc62c6
VS
6529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6530echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6531 no_cache=0
6532 # Check whether --enable-dnd or --disable-dnd was given.
6533if test "${enable_dnd+set}" = set; then
6534 enableval="$enable_dnd"
e6cc62c6 6535
10f2d63a
VZ
6536 if test "$enableval" = yes; then
6537 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6538 else
6539 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6540 fi
e6cc62c6 6541
10f2d63a 6542else
e6cc62c6 6543
10f2d63a
VZ
6544 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6552
e6cc62c6 6553fi;
10f2d63a
VZ
6554
6555 eval "$ac_cv_use_dnd"
6556 if test "$no_cache" != 1; then
6557 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6558 fi
6559
6560 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6561 echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6
10f2d63a 6563 else
e6cc62c6
VS
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
10f2d63a 6566 fi
e6cc62c6 6567
10f2d63a 6568
5005acfe 6569 enablestring=
e6cc62c6
VS
6570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6571echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6572 no_cache=0
6573 # Check whether --enable-metafile or --disable-metafile was given.
6574if test "${enable_metafile+set}" = set; then
6575 enableval="$enable_metafile"
e6cc62c6 6576
b64f0a5f
RL
6577 if test "$enableval" = yes; then
6578 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6579 else
6580 ac_cv_use_metafile='wxUSE_METAFILE=no'
6581 fi
e6cc62c6 6582
b64f0a5f 6583else
e6cc62c6 6584
b64f0a5f
RL
6585 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6593
e6cc62c6 6594fi;
b64f0a5f
RL
6595
6596 eval "$ac_cv_use_metafile"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6602 echo "$as_me:$LINENO: result: yes" >&5
6603echo "${ECHO_T}yes" >&6
b64f0a5f 6604 else
e6cc62c6
VS
6605 echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
b64f0a5f 6607 fi
e6cc62c6 6608
52127426 6609
8284b0c5 6610
52127426 6611
8284b0c5 6612
5005acfe 6613 enablestring=
e6cc62c6
VS
6614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6615echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6616 no_cache=0
6617 # Check whether --enable-controls or --disable-controls was given.
6618if test "${enable_controls+set}" = set; then
6619 enableval="$enable_controls"
e6cc62c6 6620
10f2d63a
VZ
6621 if test "$enableval" = yes; then
6622 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6623 else
6624 ac_cv_use_controls='wxUSE_CONTROLS=no'
6625 fi
e6cc62c6 6626
10f2d63a 6627else
e6cc62c6 6628
10f2d63a
VZ
6629 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6637
e6cc62c6 6638fi;
10f2d63a
VZ
6639
6640 eval "$ac_cv_use_controls"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6646 echo "$as_me:$LINENO: result: yes" >&5
6647echo "${ECHO_T}yes" >&6
10f2d63a 6648 else
e6cc62c6
VS
6649 echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6
10f2d63a 6651 fi
e6cc62c6 6652
10f2d63a
VZ
6653
6654if test "$wxUSE_CONTROLS" = "yes"; then
6655 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6656 DEFAULT_wxUSE_BMPBUTTON=yes
6657 DEFAULT_wxUSE_BUTTON=yes
6658 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6659 DEFAULT_wxUSE_CARET=yes
6660 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6661 DEFAULT_wxUSE_CHECKBOX=yes
6662 DEFAULT_wxUSE_CHECKLISTBOX=yes
6663 DEFAULT_wxUSE_CHOICE=yes
6664 DEFAULT_wxUSE_GAUGE=yes
6665 DEFAULT_wxUSE_GRID=yes
10f2d63a 6666 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6667 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6668 DEFAULT_wxUSE_LISTBOX=yes
6669 DEFAULT_wxUSE_LISTCTRL=yes
6670 DEFAULT_wxUSE_NOTEBOOK=yes
6671 DEFAULT_wxUSE_RADIOBOX=yes
6672 DEFAULT_wxUSE_RADIOBTN=yes
6673 DEFAULT_wxUSE_SASH=yes
6674 DEFAULT_wxUSE_SCROLLBAR=yes
6675 DEFAULT_wxUSE_SLIDER=yes
6676 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6677 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6678 DEFAULT_wxUSE_SPLITTER=yes
6679 DEFAULT_wxUSE_STATBMP=yes
6680 DEFAULT_wxUSE_STATBOX=yes
6681 DEFAULT_wxUSE_STATLINE=yes
6682 DEFAULT_wxUSE_STATUSBAR=yes
6683 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6684 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6685 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6686 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6687 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6688 DEFAULT_wxUSE_TOOLTIPS=yes
6689 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6690 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6691 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6692elif test "$wxUSE_CONTROLS" = "no"; then
6693 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6694 DEFAULT_wxUSE_BMPBUTTON=no
6695 DEFAULT_wxUSE_BUTTON=no
6696 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6697 DEFAULT_wxUSE_CARET=no
6698 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6699 DEFAULT_wxUSE_CHECKBOX=no
6700 DEFAULT_wxUSE_CHECKLISTBOX=no
6701 DEFAULT_wxUSE_CHOICE=no
6702 DEFAULT_wxUSE_GAUGE=no
6703 DEFAULT_wxUSE_GRID=no
10f2d63a 6704 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6705 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6706 DEFAULT_wxUSE_LISTBOX=no
6707 DEFAULT_wxUSE_LISTCTRL=no
6708 DEFAULT_wxUSE_NOTEBOOK=no
6709 DEFAULT_wxUSE_RADIOBOX=no
6710 DEFAULT_wxUSE_RADIOBTN=no
6711 DEFAULT_wxUSE_SASH=no
6712 DEFAULT_wxUSE_SCROLLBAR=no
6713 DEFAULT_wxUSE_SLIDER=no
6714 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6715 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6716 DEFAULT_wxUSE_SPLITTER=no
6717 DEFAULT_wxUSE_STATBMP=no
6718 DEFAULT_wxUSE_STATBOX=no
6719 DEFAULT_wxUSE_STATLINE=no
6720 DEFAULT_wxUSE_STATUSBAR=no
6721 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6722 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6723 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6724 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6725 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6726 DEFAULT_wxUSE_TOOLTIPS=no
6727 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6728 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6729 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6730fi
6731
ac0c4cc3
DE
6732## FIXME: This is a blatant hack
6733if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6734 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6735 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6736 # Generic notebook requires tab dialog
6737 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6738 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6739 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6740 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6741fi
6742
8284b0c5 6743
5005acfe 6744 enablestring=
e6cc62c6
VS
6745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6746echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6747 no_cache=0
6748 # Check whether --enable-accel or --disable-accel was given.
6749if test "${enable_accel+set}" = set; then
6750 enableval="$enable_accel"
e6cc62c6 6751
10f2d63a
VZ
6752 if test "$enableval" = yes; then
6753 ac_cv_use_accel='wxUSE_ACCEL=yes'
6754 else
6755 ac_cv_use_accel='wxUSE_ACCEL=no'
6756 fi
e6cc62c6 6757
10f2d63a 6758else
e6cc62c6 6759
10f2d63a
VZ
6760 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6761 if test "x$LINE" != x ; then
6762 eval "DEFAULT_$LINE"
6763 else
6764 no_cache=1
6765 fi
6766
6767 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6768
e6cc62c6 6769fi;
10f2d63a
VZ
6770
6771 eval "$ac_cv_use_accel"
6772 if test "$no_cache" != 1; then
6773 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6774 fi
6775
6776 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6777 echo "$as_me:$LINENO: result: yes" >&5
6778echo "${ECHO_T}yes" >&6
10f2d63a 6779 else
e6cc62c6
VS
6780 echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6
10f2d63a 6782 fi
e6cc62c6 6783
10f2d63a 6784
5005acfe 6785 enablestring=
e6cc62c6
VS
6786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6787echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6788 no_cache=0
1e6feb95
VZ
6789 # Check whether --enable-button or --disable-button was given.
6790if test "${enable_button+set}" = set; then
6791 enableval="$enable_button"
e6cc62c6 6792
10f2d63a 6793 if test "$enableval" = yes; then
1e6feb95 6794 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6795 else
1e6feb95 6796 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6797 fi
e6cc62c6 6798
10f2d63a 6799else
e6cc62c6 6800
1e6feb95 6801 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6802 if test "x$LINE" != x ; then
6803 eval "DEFAULT_$LINE"
6804 else
6805 no_cache=1
6806 fi
6807
1e6feb95 6808 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6809
e6cc62c6 6810fi;
10f2d63a 6811
1e6feb95 6812 eval "$ac_cv_use_button"
10f2d63a 6813 if test "$no_cache" != 1; then
1e6feb95 6814 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6815 fi
6816
1e6feb95 6817 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6818 echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6
10f2d63a 6820 else
e6cc62c6
VS
6821 echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6
10f2d63a 6823 fi
e6cc62c6 6824
10f2d63a 6825
5005acfe 6826 enablestring=
e6cc62c6
VS
6827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6828echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6829 no_cache=0
6830 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6831if test "${enable_bmpbutton+set}" = set; then
6832 enableval="$enable_bmpbutton"
e6cc62c6 6833
10f2d63a
VZ
6834 if test "$enableval" = yes; then
6835 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6836 else
6837 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6838 fi
e6cc62c6 6839
10f2d63a 6840else
e6cc62c6 6841
10f2d63a
VZ
6842 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6843 if test "x$LINE" != x ; then
6844 eval "DEFAULT_$LINE"
6845 else
6846 no_cache=1
6847 fi
6848
6849 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6850
e6cc62c6 6851fi;
10f2d63a
VZ
6852
6853 eval "$ac_cv_use_bmpbutton"
6854 if test "$no_cache" != 1; then
6855 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6856 fi
6857
6858 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6859 echo "$as_me:$LINENO: result: yes" >&5
6860echo "${ECHO_T}yes" >&6
10f2d63a 6861 else
e6cc62c6
VS
6862 echo "$as_me:$LINENO: result: no" >&5
6863echo "${ECHO_T}no" >&6
10f2d63a 6864 fi
e6cc62c6 6865
10f2d63a 6866
5005acfe 6867 enablestring=
e6cc62c6
VS
6868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6869echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6870 no_cache=0
6871 # Check whether --enable-calendar or --disable-calendar was given.
6872if test "${enable_calendar+set}" = set; then
6873 enableval="$enable_calendar"
e6cc62c6 6874
1e6feb95
VZ
6875 if test "$enableval" = yes; then
6876 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6877 else
6878 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6879 fi
e6cc62c6 6880
1e6feb95 6881else
e6cc62c6 6882
1e6feb95
VZ
6883 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6884 if test "x$LINE" != x ; then
6885 eval "DEFAULT_$LINE"
6886 else
6887 no_cache=1
6888 fi
6889
6890 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6891
e6cc62c6 6892fi;
1e6feb95
VZ
6893
6894 eval "$ac_cv_use_calendar"
6895 if test "$no_cache" != 1; then
6896 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6897 fi
6898
6899 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6900 echo "$as_me:$LINENO: result: yes" >&5
6901echo "${ECHO_T}yes" >&6
1e6feb95 6902 else
e6cc62c6
VS
6903 echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6
1e6feb95 6905 fi
e6cc62c6 6906
1e6feb95 6907
5005acfe 6908 enablestring=
e6cc62c6
VS
6909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6910echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6911 no_cache=0
6912 # Check whether --enable-caret or --disable-caret was given.
6913if test "${enable_caret+set}" = set; then
6914 enableval="$enable_caret"
e6cc62c6 6915
1e6feb95
VZ
6916 if test "$enableval" = yes; then
6917 ac_cv_use_caret='wxUSE_CARET=yes'
6918 else
6919 ac_cv_use_caret='wxUSE_CARET=no'
6920 fi
e6cc62c6 6921
1e6feb95 6922else
e6cc62c6 6923
1e6feb95
VZ
6924 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6925 if test "x$LINE" != x ; then
6926 eval "DEFAULT_$LINE"
6927 else
6928 no_cache=1
6929 fi
6930
6931 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6932
e6cc62c6 6933fi;
1e6feb95
VZ
6934
6935 eval "$ac_cv_use_caret"
6936 if test "$no_cache" != 1; then
6937 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6938 fi
6939
6940 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6941 echo "$as_me:$LINENO: result: yes" >&5
6942echo "${ECHO_T}yes" >&6
1e6feb95 6943 else
e6cc62c6
VS
6944 echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
1e6feb95 6946 fi
e6cc62c6 6947
1e6feb95 6948
5005acfe 6949 enablestring=
e6cc62c6
VS
6950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6951echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6952 no_cache=0
6953 # Check whether --enable-checkbox or --disable-checkbox was given.
6954if test "${enable_checkbox+set}" = set; then
6955 enableval="$enable_checkbox"
e6cc62c6 6956
10f2d63a
VZ
6957 if test "$enableval" = yes; then
6958 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6959 else
6960 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6961 fi
e6cc62c6 6962
10f2d63a 6963else
e6cc62c6 6964
10f2d63a
VZ
6965 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6966 if test "x$LINE" != x ; then
6967 eval "DEFAULT_$LINE"
6968 else
6969 no_cache=1
6970 fi
6971
6972 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6973
e6cc62c6 6974fi;
10f2d63a
VZ
6975
6976 eval "$ac_cv_use_checkbox"
6977 if test "$no_cache" != 1; then
6978 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6979 fi
6980
6981 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6982 echo "$as_me:$LINENO: result: yes" >&5
6983echo "${ECHO_T}yes" >&6
10f2d63a 6984 else
e6cc62c6
VS
6985 echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
10f2d63a 6987 fi
e6cc62c6 6988
10f2d63a 6989
5005acfe 6990 enablestring=
e6cc62c6
VS
6991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6992echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6993 no_cache=0
6994 # Check whether --enable-checklst or --disable-checklst was given.
6995if test "${enable_checklst+set}" = set; then
6996 enableval="$enable_checklst"
e6cc62c6 6997
10f2d63a
VZ
6998 if test "$enableval" = yes; then
6999 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7000 else
7001 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7002 fi
e6cc62c6 7003
10f2d63a 7004else
e6cc62c6 7005
10f2d63a
VZ
7006 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7007 if test "x$LINE" != x ; then
7008 eval "DEFAULT_$LINE"
7009 else
7010 no_cache=1
7011 fi
7012
7013 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7014
e6cc62c6 7015fi;
10f2d63a
VZ
7016
7017 eval "$ac_cv_use_checklst"
7018 if test "$no_cache" != 1; then
7019 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7020 fi
7021
7022 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7023 echo "$as_me:$LINENO: result: yes" >&5
7024echo "${ECHO_T}yes" >&6
10f2d63a 7025 else
e6cc62c6
VS
7026 echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
10f2d63a 7028 fi
e6cc62c6 7029
10f2d63a 7030
5005acfe 7031 enablestring=
e6cc62c6
VS
7032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7033echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7034 no_cache=0
7035 # Check whether --enable-choice or --disable-choice was given.
7036if test "${enable_choice+set}" = set; then
7037 enableval="$enable_choice"
e6cc62c6 7038
10f2d63a
VZ
7039 if test "$enableval" = yes; then
7040 ac_cv_use_choice='wxUSE_CHOICE=yes'
7041 else
7042 ac_cv_use_choice='wxUSE_CHOICE=no'
7043 fi
e6cc62c6 7044
10f2d63a 7045else
e6cc62c6 7046
10f2d63a
VZ
7047 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7048 if test "x$LINE" != x ; then
7049 eval "DEFAULT_$LINE"
7050 else
7051 no_cache=1
7052 fi
7053
7054 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7055
e6cc62c6 7056fi;
10f2d63a
VZ
7057
7058 eval "$ac_cv_use_choice"
7059 if test "$no_cache" != 1; then
7060 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7061 fi
7062
7063 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7064 echo "$as_me:$LINENO: result: yes" >&5
7065echo "${ECHO_T}yes" >&6
10f2d63a 7066 else
e6cc62c6
VS
7067 echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6
10f2d63a 7069 fi
e6cc62c6 7070
10f2d63a 7071
5005acfe 7072 enablestring=
e6cc62c6
VS
7073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7074echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7075 no_cache=0
7076 # Check whether --enable-combobox or --disable-combobox was given.
7077if test "${enable_combobox+set}" = set; then
7078 enableval="$enable_combobox"
e6cc62c6 7079
10f2d63a
VZ
7080 if test "$enableval" = yes; then
7081 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7082 else
7083 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7084 fi
e6cc62c6 7085
10f2d63a 7086else
e6cc62c6 7087
10f2d63a
VZ
7088 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7089 if test "x$LINE" != x ; then
7090 eval "DEFAULT_$LINE"
7091 else
7092 no_cache=1
7093 fi
7094
7095 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7096
e6cc62c6 7097fi;
10f2d63a
VZ
7098
7099 eval "$ac_cv_use_combobox"
7100 if test "$no_cache" != 1; then
7101 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7102 fi
7103
7104 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7105 echo "$as_me:$LINENO: result: yes" >&5
7106echo "${ECHO_T}yes" >&6
10f2d63a 7107 else
e6cc62c6
VS
7108 echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6
10f2d63a 7110 fi
e6cc62c6 7111
10f2d63a 7112
da494b40 7113 enablestring=
e6cc62c6
VS
7114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7115echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7116 no_cache=0
7117 # Check whether --enable-display or --disable-display was given.
7118if test "${enable_display+set}" = set; then
7119 enableval="$enable_display"
e6cc62c6 7120
da494b40
MB
7121 if test "$enableval" = yes; then
7122 ac_cv_use_display='wxUSE_DISPLAY=yes'
7123 else
7124 ac_cv_use_display='wxUSE_DISPLAY=no'
7125 fi
e6cc62c6 7126
da494b40 7127else
e6cc62c6 7128
da494b40
MB
7129 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7130 if test "x$LINE" != x ; then
7131 eval "DEFAULT_$LINE"
7132 else
7133 no_cache=1
7134 fi
7135
7136 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7137
e6cc62c6 7138fi;
da494b40
MB
7139
7140 eval "$ac_cv_use_display"
7141 if test "$no_cache" != 1; then
7142 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7143 fi
7144
7145 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7146 echo "$as_me:$LINENO: result: yes" >&5
7147echo "${ECHO_T}yes" >&6
da494b40 7148 else
e6cc62c6
VS
7149 echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6
da494b40 7151 fi
e6cc62c6 7152
da494b40 7153
5005acfe 7154 enablestring=
e6cc62c6
VS
7155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7156echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7157 no_cache=0
7158 # Check whether --enable-gauge or --disable-gauge was given.
7159if test "${enable_gauge+set}" = set; then
7160 enableval="$enable_gauge"
e6cc62c6 7161
10f2d63a
VZ
7162 if test "$enableval" = yes; then
7163 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7164 else
7165 ac_cv_use_gauge='wxUSE_GAUGE=no'
7166 fi
e6cc62c6 7167
10f2d63a 7168else
e6cc62c6 7169
10f2d63a
VZ
7170 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7171 if test "x$LINE" != x ; then
7172 eval "DEFAULT_$LINE"
7173 else
7174 no_cache=1
7175 fi
7176
7177 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7178
e6cc62c6 7179fi;
10f2d63a
VZ
7180
7181 eval "$ac_cv_use_gauge"
7182 if test "$no_cache" != 1; then
7183 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7184 fi
7185
7186 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7187 echo "$as_me:$LINENO: result: yes" >&5
7188echo "${ECHO_T}yes" >&6
10f2d63a 7189 else
e6cc62c6
VS
7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
10f2d63a 7192 fi
e6cc62c6 7193
10f2d63a 7194
5005acfe 7195 enablestring=
e6cc62c6
VS
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7198 no_cache=0
7199 # Check whether --enable-grid or --disable-grid was given.
7200if test "${enable_grid+set}" = set; then
7201 enableval="$enable_grid"
e6cc62c6 7202
10f2d63a
VZ
7203 if test "$enableval" = yes; then
7204 ac_cv_use_grid='wxUSE_GRID=yes'
7205 else
7206 ac_cv_use_grid='wxUSE_GRID=no'
7207 fi
e6cc62c6 7208
10f2d63a 7209else
e6cc62c6 7210
10f2d63a
VZ
7211 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7219
e6cc62c6 7220fi;
10f2d63a
VZ
7221
7222 eval "$ac_cv_use_grid"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
10f2d63a 7230 else
e6cc62c6
VS
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
10f2d63a 7233 fi
e6cc62c6 7234
10f2d63a 7235
5005acfe 7236 enablestring=
e6cc62c6
VS
7237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7238echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7239 no_cache=0
7240 # Check whether --enable-imaglist or --disable-imaglist was given.
7241if test "${enable_imaglist+set}" = set; then
7242 enableval="$enable_imaglist"
e6cc62c6 7243
10f2d63a
VZ
7244 if test "$enableval" = yes; then
7245 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7246 else
7247 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7248 fi
e6cc62c6 7249
10f2d63a 7250else
e6cc62c6 7251
10f2d63a
VZ
7252 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7260
e6cc62c6 7261fi;
10f2d63a
VZ
7262
7263 eval "$ac_cv_use_imaglist"
7264 if test "$no_cache" != 1; then
7265 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7266 fi
7267
7268 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7269 echo "$as_me:$LINENO: result: yes" >&5
7270echo "${ECHO_T}yes" >&6
10f2d63a 7271 else
e6cc62c6
VS
7272 echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6
10f2d63a 7274 fi
e6cc62c6 7275
10f2d63a 7276
0e012a93
VZ
7277 enablestring=
7278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7279echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7280 no_cache=0
7281 # Check whether --enable-listbook or --disable-listbook was given.
7282if test "${enable_listbook+set}" = set; then
7283 enableval="$enable_listbook"
7284
7285 if test "$enableval" = yes; then
7286 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7287 else
7288 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7289 fi
7290
7291else
7292
7293 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7301
7302fi;
7303
7304 eval "$ac_cv_use_listbook"
7305 if test "$no_cache" != 1; then
7306 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7307 fi
7308
7309 if test "$wxUSE_LISTBOOK" = yes; then
7310 echo "$as_me:$LINENO: result: yes" >&5
7311echo "${ECHO_T}yes" >&6
7312 else
7313 echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
7315 fi
7316
7317
5005acfe 7318 enablestring=
e6cc62c6
VS
7319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7320echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7321 no_cache=0
7322 # Check whether --enable-listbox or --disable-listbox was given.
7323if test "${enable_listbox+set}" = set; then
7324 enableval="$enable_listbox"
e6cc62c6 7325
10f2d63a
VZ
7326 if test "$enableval" = yes; then
7327 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7328 else
7329 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7330 fi
e6cc62c6 7331
10f2d63a 7332else
e6cc62c6 7333
10f2d63a
VZ
7334 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7342
e6cc62c6 7343fi;
10f2d63a
VZ
7344
7345 eval "$ac_cv_use_listbox"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7351 echo "$as_me:$LINENO: result: yes" >&5
7352echo "${ECHO_T}yes" >&6
10f2d63a 7353 else
e6cc62c6
VS
7354 echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
10f2d63a 7356 fi
e6cc62c6 7357
10f2d63a 7358
5005acfe 7359 enablestring=
e6cc62c6
VS
7360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7361echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7362 no_cache=0
7363 # Check whether --enable-listctrl or --disable-listctrl was given.
7364if test "${enable_listctrl+set}" = set; then
7365 enableval="$enable_listctrl"
e6cc62c6 7366
10f2d63a
VZ
7367 if test "$enableval" = yes; then
7368 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7369 else
7370 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7371 fi
e6cc62c6 7372
10f2d63a 7373else
e6cc62c6 7374
10f2d63a
VZ
7375 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7376 if test "x$LINE" != x ; then
7377 eval "DEFAULT_$LINE"
7378 else
7379 no_cache=1
7380 fi
7381
7382 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7383
e6cc62c6 7384fi;
10f2d63a
VZ
7385
7386 eval "$ac_cv_use_listctrl"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7392 echo "$as_me:$LINENO: result: yes" >&5
7393echo "${ECHO_T}yes" >&6
10f2d63a 7394 else
e6cc62c6
VS
7395 echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6
10f2d63a 7397 fi
e6cc62c6 7398
10f2d63a 7399
5005acfe 7400 enablestring=
e6cc62c6
VS
7401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7402echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7403 no_cache=0
7404 # Check whether --enable-notebook or --disable-notebook was given.
7405if test "${enable_notebook+set}" = set; then
7406 enableval="$enable_notebook"
e6cc62c6 7407
10f2d63a
VZ
7408 if test "$enableval" = yes; then
7409 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7410 else
7411 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7412 fi
e6cc62c6 7413
10f2d63a 7414else
e6cc62c6 7415
10f2d63a
VZ
7416 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7417 if test "x$LINE" != x ; then
7418 eval "DEFAULT_$LINE"
7419 else
7420 no_cache=1
7421 fi
7422
7423 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7424
e6cc62c6 7425fi;
10f2d63a
VZ
7426
7427 eval "$ac_cv_use_notebook"
7428 if test "$no_cache" != 1; then
7429 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7430 fi
7431
7432 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7433 echo "$as_me:$LINENO: result: yes" >&5
7434echo "${ECHO_T}yes" >&6
10f2d63a 7435 else
e6cc62c6
VS
7436 echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6
10f2d63a 7438 fi
e6cc62c6 7439
10f2d63a 7440
5005acfe 7441 enablestring=
e6cc62c6
VS
7442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7443echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7444 no_cache=0
7445 # Check whether --enable-radiobox or --disable-radiobox was given.
7446if test "${enable_radiobox+set}" = set; then
7447 enableval="$enable_radiobox"
e6cc62c6 7448
10f2d63a
VZ
7449 if test "$enableval" = yes; then
7450 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7451 else
7452 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7453 fi
e6cc62c6 7454
10f2d63a 7455else
e6cc62c6 7456
10f2d63a
VZ
7457 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7458 if test "x$LINE" != x ; then
7459 eval "DEFAULT_$LINE"
7460 else
7461 no_cache=1
7462 fi
7463
7464 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7465
e6cc62c6 7466fi;
10f2d63a
VZ
7467
7468 eval "$ac_cv_use_radiobox"
7469 if test "$no_cache" != 1; then
7470 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7471 fi
7472
7473 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7474 echo "$as_me:$LINENO: result: yes" >&5
7475echo "${ECHO_T}yes" >&6
10f2d63a 7476 else
e6cc62c6
VS
7477 echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
10f2d63a 7479 fi
e6cc62c6 7480
10f2d63a 7481
5005acfe 7482 enablestring=
e6cc62c6
VS
7483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7484echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7485 no_cache=0
7486 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7487if test "${enable_radiobtn+set}" = set; then
7488 enableval="$enable_radiobtn"
e6cc62c6 7489
10f2d63a
VZ
7490 if test "$enableval" = yes; then
7491 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7492 else
7493 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7494 fi
e6cc62c6 7495
10f2d63a 7496else
e6cc62c6 7497
10f2d63a
VZ
7498 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7506
e6cc62c6 7507fi;
10f2d63a
VZ
7508
7509 eval "$ac_cv_use_radiobtn"
7510 if test "$no_cache" != 1; then
7511 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7512 fi
7513
7514 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7515 echo "$as_me:$LINENO: result: yes" >&5
7516echo "${ECHO_T}yes" >&6
10f2d63a 7517 else
e6cc62c6
VS
7518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
10f2d63a 7520 fi
e6cc62c6 7521
10f2d63a 7522
5005acfe 7523 enablestring=
e6cc62c6
VS
7524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7525echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7526 no_cache=0
7527 # Check whether --enable-sash or --disable-sash was given.
7528if test "${enable_sash+set}" = set; then
7529 enableval="$enable_sash"
e6cc62c6 7530
10f2d63a
VZ
7531 if test "$enableval" = yes; then
7532 ac_cv_use_sash='wxUSE_SASH=yes'
7533 else
7534 ac_cv_use_sash='wxUSE_SASH=no'
7535 fi
e6cc62c6 7536
10f2d63a 7537else
e6cc62c6 7538
10f2d63a
VZ
7539 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7540 if test "x$LINE" != x ; then
7541 eval "DEFAULT_$LINE"
7542 else
7543 no_cache=1
7544 fi
7545
7546 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7547
e6cc62c6 7548fi;
10f2d63a
VZ
7549
7550 eval "$ac_cv_use_sash"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7556 echo "$as_me:$LINENO: result: yes" >&5
7557echo "${ECHO_T}yes" >&6
10f2d63a 7558 else
e6cc62c6
VS
7559 echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6
10f2d63a 7561 fi
e6cc62c6 7562
10f2d63a 7563
5005acfe 7564 enablestring=
e6cc62c6
VS
7565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7566echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7567 no_cache=0
7568 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7569if test "${enable_scrollbar+set}" = set; then
7570 enableval="$enable_scrollbar"
e6cc62c6 7571
10f2d63a
VZ
7572 if test "$enableval" = yes; then
7573 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7574 else
7575 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7576 fi
e6cc62c6 7577
10f2d63a 7578else
e6cc62c6 7579
10f2d63a
VZ
7580 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7581 if test "x$LINE" != x ; then
7582 eval "DEFAULT_$LINE"
7583 else
7584 no_cache=1
7585 fi
7586
7587 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7588
e6cc62c6 7589fi;
10f2d63a
VZ
7590
7591 eval "$ac_cv_use_scrollbar"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7597 echo "$as_me:$LINENO: result: yes" >&5
7598echo "${ECHO_T}yes" >&6
10f2d63a 7599 else
e6cc62c6
VS
7600 echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6
10f2d63a 7602 fi
e6cc62c6 7603
10f2d63a 7604
5005acfe 7605 enablestring=
e6cc62c6
VS
7606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7607echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7608 no_cache=0
7609 # Check whether --enable-slider or --disable-slider was given.
7610if test "${enable_slider+set}" = set; then
7611 enableval="$enable_slider"
e6cc62c6 7612
10f2d63a
VZ
7613 if test "$enableval" = yes; then
7614 ac_cv_use_slider='wxUSE_SLIDER=yes'
7615 else
7616 ac_cv_use_slider='wxUSE_SLIDER=no'
7617 fi
e6cc62c6 7618
10f2d63a 7619else
e6cc62c6 7620
10f2d63a
VZ
7621 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7622 if test "x$LINE" != x ; then
7623 eval "DEFAULT_$LINE"
7624 else
7625 no_cache=1
7626 fi
7627
7628 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7629
e6cc62c6 7630fi;
10f2d63a
VZ
7631
7632 eval "$ac_cv_use_slider"
7633 if test "$no_cache" != 1; then
7634 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7635 fi
7636
7637 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7638 echo "$as_me:$LINENO: result: yes" >&5
7639echo "${ECHO_T}yes" >&6
10f2d63a 7640 else
e6cc62c6
VS
7641 echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6
10f2d63a 7643 fi
e6cc62c6 7644
10f2d63a 7645
5005acfe 7646 enablestring=
e6cc62c6
VS
7647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7648echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7649 no_cache=0
7650 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7651if test "${enable_spinbtn+set}" = set; then
7652 enableval="$enable_spinbtn"
e6cc62c6 7653
10f2d63a
VZ
7654 if test "$enableval" = yes; then
7655 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7656 else
7657 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7658 fi
e6cc62c6 7659
10f2d63a 7660else
e6cc62c6 7661
10f2d63a
VZ
7662 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7663 if test "x$LINE" != x ; then
7664 eval "DEFAULT_$LINE"
7665 else
7666 no_cache=1
7667 fi
7668
7669 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7670
e6cc62c6 7671fi;
10f2d63a
VZ
7672
7673 eval "$ac_cv_use_spinbtn"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7679 echo "$as_me:$LINENO: result: yes" >&5
7680echo "${ECHO_T}yes" >&6
10f2d63a 7681 else
e6cc62c6
VS
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
10f2d63a 7684 fi
e6cc62c6 7685
10f2d63a 7686
5005acfe 7687 enablestring=
e6cc62c6
VS
7688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7689echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7690 no_cache=0
7691 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7692if test "${enable_spinctrl+set}" = set; then
7693 enableval="$enable_spinctrl"
e6cc62c6 7694
56cfaa52
RR
7695 if test "$enableval" = yes; then
7696 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7697 else
7698 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7699 fi
e6cc62c6 7700
56cfaa52 7701else
e6cc62c6 7702
56cfaa52
RR
7703 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7704 if test "x$LINE" != x ; then
7705 eval "DEFAULT_$LINE"
7706 else
7707 no_cache=1
7708 fi
7709
7710 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7711
e6cc62c6 7712fi;
56cfaa52
RR
7713
7714 eval "$ac_cv_use_spinctrl"
7715 if test "$no_cache" != 1; then
7716 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7717 fi
7718
7719 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7720 echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6
56cfaa52 7722 else
e6cc62c6
VS
7723 echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6
56cfaa52 7725 fi
e6cc62c6 7726
56cfaa52 7727
5005acfe 7728 enablestring=
e6cc62c6
VS
7729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7730echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7731 no_cache=0
7732 # Check whether --enable-splitter or --disable-splitter was given.
7733if test "${enable_splitter+set}" = set; then
7734 enableval="$enable_splitter"
e6cc62c6 7735
10f2d63a
VZ
7736 if test "$enableval" = yes; then
7737 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7738 else
7739 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7740 fi
e6cc62c6 7741
10f2d63a 7742else
e6cc62c6 7743
10f2d63a
VZ
7744 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7745 if test "x$LINE" != x ; then
7746 eval "DEFAULT_$LINE"
7747 else
7748 no_cache=1
7749 fi
7750
7751 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7752
e6cc62c6 7753fi;
10f2d63a
VZ
7754
7755 eval "$ac_cv_use_splitter"
7756 if test "$no_cache" != 1; then
7757 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7758 fi
7759
7760 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7761 echo "$as_me:$LINENO: result: yes" >&5
7762echo "${ECHO_T}yes" >&6
10f2d63a 7763 else
e6cc62c6
VS
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
10f2d63a 7766 fi
e6cc62c6 7767
10f2d63a 7768
5005acfe 7769 enablestring=
e6cc62c6
VS
7770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7771echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7772 no_cache=0
7773 # Check whether --enable-statbmp or --disable-statbmp was given.
7774if test "${enable_statbmp+set}" = set; then
7775 enableval="$enable_statbmp"
e6cc62c6 7776
10f2d63a
VZ
7777 if test "$enableval" = yes; then
7778 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7779 else
7780 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7781 fi
e6cc62c6 7782
10f2d63a 7783else
e6cc62c6 7784
10f2d63a
VZ
7785 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7786 if test "x$LINE" != x ; then
7787 eval "DEFAULT_$LINE"
7788 else
7789 no_cache=1
7790 fi
7791
7792 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7793
e6cc62c6 7794fi;
10f2d63a
VZ
7795
7796 eval "$ac_cv_use_statbmp"
7797 if test "$no_cache" != 1; then
7798 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7799 fi
7800
7801 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7802 echo "$as_me:$LINENO: result: yes" >&5
7803echo "${ECHO_T}yes" >&6
10f2d63a 7804 else
e6cc62c6
VS
7805 echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6
10f2d63a 7807 fi
e6cc62c6 7808
10f2d63a 7809
5005acfe 7810 enablestring=
e6cc62c6
VS
7811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7812echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7813 no_cache=0
7814 # Check whether --enable-statbox or --disable-statbox was given.
7815if test "${enable_statbox+set}" = set; then
7816 enableval="$enable_statbox"
e6cc62c6 7817
10f2d63a
VZ
7818 if test "$enableval" = yes; then
7819 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7820 else
7821 ac_cv_use_statbox='wxUSE_STATBOX=no'
7822 fi
e6cc62c6 7823
10f2d63a 7824else
e6cc62c6 7825
10f2d63a
VZ
7826 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7834
e6cc62c6 7835fi;
10f2d63a
VZ
7836
7837 eval "$ac_cv_use_statbox"
7838 if test "$no_cache" != 1; then
7839 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7840 fi
7841
7842 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7843 echo "$as_me:$LINENO: result: yes" >&5
7844echo "${ECHO_T}yes" >&6
10f2d63a 7845 else
e6cc62c6
VS
7846 echo "$as_me:$LINENO: result: no" >&5
7847echo "${ECHO_T}no" >&6
10f2d63a 7848 fi
e6cc62c6 7849
10f2d63a 7850
5005acfe 7851 enablestring=
e6cc62c6
VS
7852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7853echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7854 no_cache=0
7855 # Check whether --enable-statline or --disable-statline was given.
7856if test "${enable_statline+set}" = set; then
7857 enableval="$enable_statline"
e6cc62c6 7858
10f2d63a
VZ
7859 if test "$enableval" = yes; then
7860 ac_cv_use_statline='wxUSE_STATLINE=yes'
7861 else
7862 ac_cv_use_statline='wxUSE_STATLINE=no'
7863 fi
e6cc62c6 7864
10f2d63a 7865else
e6cc62c6 7866
10f2d63a
VZ
7867 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7868 if test "x$LINE" != x ; then
7869 eval "DEFAULT_$LINE"
7870 else
7871 no_cache=1
7872 fi
7873
7874 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7875
e6cc62c6 7876fi;
10f2d63a
VZ
7877
7878 eval "$ac_cv_use_statline"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7884 echo "$as_me:$LINENO: result: yes" >&5
7885echo "${ECHO_T}yes" >&6
10f2d63a 7886 else
e6cc62c6
VS
7887 echo "$as_me:$LINENO: result: no" >&5
7888echo "${ECHO_T}no" >&6
10f2d63a 7889 fi
e6cc62c6 7890
10f2d63a 7891
5005acfe 7892 enablestring=
e6cc62c6
VS
7893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7894echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7895 no_cache=0
7896 # Check whether --enable-stattext or --disable-stattext was given.
7897if test "${enable_stattext+set}" = set; then
7898 enableval="$enable_stattext"
e6cc62c6 7899
1e6feb95
VZ
7900 if test "$enableval" = yes; then
7901 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7902 else
7903 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7904 fi
e6cc62c6 7905
1e6feb95 7906else
e6cc62c6 7907
1e6feb95
VZ
7908 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7909 if test "x$LINE" != x ; then
7910 eval "DEFAULT_$LINE"
7911 else
7912 no_cache=1
7913 fi
7914
7915 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7916
e6cc62c6 7917fi;
1e6feb95
VZ
7918
7919 eval "$ac_cv_use_stattext"
7920 if test "$no_cache" != 1; then
7921 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7922 fi
7923
7924 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7925 echo "$as_me:$LINENO: result: yes" >&5
7926echo "${ECHO_T}yes" >&6
1e6feb95 7927 else
e6cc62c6
VS
7928 echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6
1e6feb95 7930 fi
e6cc62c6 7931
1e6feb95 7932
5005acfe 7933 enablestring=
e6cc62c6
VS
7934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7935echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7936 no_cache=0
7937 # Check whether --enable-statusbar or --disable-statusbar was given.
7938if test "${enable_statusbar+set}" = set; then
7939 enableval="$enable_statusbar"
e6cc62c6 7940
10f2d63a
VZ
7941 if test "$enableval" = yes; then
7942 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7943 else
7944 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7945 fi
e6cc62c6 7946
10f2d63a 7947else
e6cc62c6 7948
10f2d63a
VZ
7949 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7950 if test "x$LINE" != x ; then
7951 eval "DEFAULT_$LINE"
7952 else
7953 no_cache=1
7954 fi
7955
7956 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7957
e6cc62c6 7958fi;
10f2d63a
VZ
7959
7960 eval "$ac_cv_use_statusbar"
7961 if test "$no_cache" != 1; then
7962 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7963 fi
7964
7965 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7966 echo "$as_me:$LINENO: result: yes" >&5
7967echo "${ECHO_T}yes" >&6
10f2d63a 7968 else
e6cc62c6
VS
7969 echo "$as_me:$LINENO: result: no" >&5
7970echo "${ECHO_T}no" >&6
10f2d63a 7971 fi
e6cc62c6 7972
10f2d63a 7973
5005acfe 7974 enablestring=
e6cc62c6
VS
7975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7976echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7977 no_cache=0
7978 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7979if test "${enable_tabdialog+set}" = set; then
7980 enableval="$enable_tabdialog"
e6cc62c6 7981
10f2d63a
VZ
7982 if test "$enableval" = yes; then
7983 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7984 else
7985 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7986 fi
e6cc62c6 7987
10f2d63a 7988else
e6cc62c6 7989
10f2d63a
VZ
7990 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7991 if test "x$LINE" != x ; then
7992 eval "DEFAULT_$LINE"
7993 else
7994 no_cache=1
7995 fi
7996
7997 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7998
e6cc62c6 7999fi;
10f2d63a
VZ
8000
8001 eval "$ac_cv_use_tabdialog"
8002 if test "$no_cache" != 1; then
8003 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8004 fi
8005
8006 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8007 echo "$as_me:$LINENO: result: yes" >&5
8008echo "${ECHO_T}yes" >&6
10f2d63a 8009 else
e6cc62c6
VS
8010 echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6
10f2d63a 8012 fi
e6cc62c6 8013
10f2d63a 8014
5005acfe 8015 enablestring=
e6cc62c6
VS
8016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8017echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8018 no_cache=0
8019 # Check whether --enable-textctrl or --disable-textctrl was given.
8020if test "${enable_textctrl+set}" = set; then
8021 enableval="$enable_textctrl"
e6cc62c6 8022
1e6feb95
VZ
8023 if test "$enableval" = yes; then
8024 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8025 else
8026 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8027 fi
e6cc62c6 8028
1e6feb95 8029else
e6cc62c6 8030
1e6feb95
VZ
8031 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8032 if test "x$LINE" != x ; then
8033 eval "DEFAULT_$LINE"
8034 else
8035 no_cache=1
8036 fi
8037
8038 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8039
e6cc62c6 8040fi;
1e6feb95
VZ
8041
8042 eval "$ac_cv_use_textctrl"
8043 if test "$no_cache" != 1; then
8044 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8045 fi
8046
8047 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8048 echo "$as_me:$LINENO: result: yes" >&5
8049echo "${ECHO_T}yes" >&6
1e6feb95 8050 else
e6cc62c6
VS
8051 echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6
1e6feb95 8053 fi
e6cc62c6 8054
1e6feb95 8055
5005acfe 8056 enablestring=
e6cc62c6
VS
8057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8058echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8059 no_cache=0
8060 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8061if test "${enable_togglebtn+set}" = set; then
8062 enableval="$enable_togglebtn"
e6cc62c6 8063
1db8dc4a
VZ
8064 if test "$enableval" = yes; then
8065 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8066 else
8067 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8068 fi
e6cc62c6 8069
1db8dc4a 8070else
e6cc62c6 8071
1db8dc4a
VZ
8072 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8073 if test "x$LINE" != x ; then
8074 eval "DEFAULT_$LINE"
8075 else
8076 no_cache=1
8077 fi
8078
8079 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8080
e6cc62c6 8081fi;
1db8dc4a
VZ
8082
8083 eval "$ac_cv_use_togglebtn"
8084 if test "$no_cache" != 1; then
8085 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8086 fi
8087
8088 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8089 echo "$as_me:$LINENO: result: yes" >&5
8090echo "${ECHO_T}yes" >&6
1db8dc4a 8091 else
e6cc62c6
VS
8092 echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6
1db8dc4a 8094 fi
e6cc62c6 8095
1db8dc4a 8096
5005acfe 8097 enablestring=
e6cc62c6
VS
8098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8099echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8100 no_cache=0
8101 # Check whether --enable-toolbar or --disable-toolbar was given.
8102if test "${enable_toolbar+set}" = set; then
8103 enableval="$enable_toolbar"
e6cc62c6 8104
10f2d63a
VZ
8105 if test "$enableval" = yes; then
8106 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8107 else
8108 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8109 fi
e6cc62c6 8110
10f2d63a 8111else
e6cc62c6 8112
10f2d63a
VZ
8113 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8114 if test "x$LINE" != x ; then
8115 eval "DEFAULT_$LINE"
8116 else
8117 no_cache=1
8118 fi
8119
8120 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8121
e6cc62c6 8122fi;
10f2d63a
VZ
8123
8124 eval "$ac_cv_use_toolbar"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8130 echo "$as_me:$LINENO: result: yes" >&5
8131echo "${ECHO_T}yes" >&6
10f2d63a 8132 else
e6cc62c6
VS
8133 echo "$as_me:$LINENO: result: no" >&5
8134echo "${ECHO_T}no" >&6
10f2d63a 8135 fi
e6cc62c6 8136
10f2d63a 8137
5005acfe 8138 enablestring=
e6cc62c6
VS
8139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8140echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8141 no_cache=0
8142 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8143if test "${enable_tbarnative+set}" = set; then
8144 enableval="$enable_tbarnative"
e6cc62c6 8145
360d6699
VZ
8146 if test "$enableval" = yes; then
8147 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8148 else
8149 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8150 fi
e6cc62c6 8151
360d6699 8152else
e6cc62c6 8153
360d6699
VZ
8154 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8155 if test "x$LINE" != x ; then
8156 eval "DEFAULT_$LINE"
8157 else
8158 no_cache=1
8159 fi
8160
8161 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8162
e6cc62c6 8163fi;
360d6699
VZ
8164
8165 eval "$ac_cv_use_tbarnative"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8171 echo "$as_me:$LINENO: result: yes" >&5
8172echo "${ECHO_T}yes" >&6
360d6699 8173 else
e6cc62c6
VS
8174 echo "$as_me:$LINENO: result: no" >&5
8175echo "${ECHO_T}no" >&6
360d6699 8176 fi
e6cc62c6 8177
360d6699 8178
5005acfe 8179 enablestring=
e6cc62c6
VS
8180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8181echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8182 no_cache=0
8183 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8184if test "${enable_tbarsmpl+set}" = set; then
8185 enableval="$enable_tbarsmpl"
e6cc62c6 8186
360d6699
VZ
8187 if test "$enableval" = yes; then
8188 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8189 else
8190 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8191 fi
e6cc62c6 8192
360d6699 8193else
e6cc62c6 8194
360d6699
VZ
8195 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8196 if test "x$LINE" != x ; then
8197 eval "DEFAULT_$LINE"
8198 else
8199 no_cache=1
8200 fi
8201
8202 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8203
e6cc62c6 8204fi;
360d6699
VZ
8205
8206 eval "$ac_cv_use_tbarsmpl"
8207 if test "$no_cache" != 1; then
8208 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8209 fi
8210
8211 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8212 echo "$as_me:$LINENO: result: yes" >&5
8213echo "${ECHO_T}yes" >&6
360d6699 8214 else
e6cc62c6
VS
8215 echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6
360d6699 8217 fi
e6cc62c6 8218
360d6699 8219
5005acfe 8220 enablestring=
e6cc62c6
VS
8221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8222echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8223 no_cache=0
8224 # Check whether --enable-treectrl or --disable-treectrl was given.
8225if test "${enable_treectrl+set}" = set; then
8226 enableval="$enable_treectrl"
e6cc62c6 8227
10f2d63a
VZ
8228 if test "$enableval" = yes; then
8229 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8230 else
8231 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8232 fi
e6cc62c6 8233
10f2d63a 8234else
e6cc62c6 8235
10f2d63a
VZ
8236 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8237 if test "x$LINE" != x ; then
8238 eval "DEFAULT_$LINE"
8239 else
8240 no_cache=1
8241 fi
8242
8243 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8244
e6cc62c6 8245fi;
10f2d63a 8246
1e6feb95
VZ
8247 eval "$ac_cv_use_treectrl"
8248 if test "$no_cache" != 1; then
8249 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8250 fi
8251
8252 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8253 echo "$as_me:$LINENO: result: yes" >&5
8254echo "${ECHO_T}yes" >&6
1e6feb95 8255 else
e6cc62c6
VS
8256 echo "$as_me:$LINENO: result: no" >&5
8257echo "${ECHO_T}no" >&6
1e6feb95 8258 fi
e6cc62c6 8259
1e6feb95 8260
5005acfe 8261 enablestring=
e6cc62c6
VS
8262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8263echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8264 no_cache=0
8265 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8266if test "${enable_tipwindow+set}" = set; then
8267 enableval="$enable_tipwindow"
e6cc62c6 8268
9926e4a4
VZ
8269 if test "$enableval" = yes; then
8270 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8271 else
8272 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8273 fi
e6cc62c6 8274
9926e4a4 8275else
e6cc62c6 8276
9926e4a4
VZ
8277 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8278 if test "x$LINE" != x ; then
8279 eval "DEFAULT_$LINE"
8280 else
8281 no_cache=1
8282 fi
8283
8284 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8285
e6cc62c6 8286fi;
9926e4a4
VZ
8287
8288 eval "$ac_cv_use_tipwindow"
8289 if test "$no_cache" != 1; then
8290 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8291 fi
8292
8293 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8294 echo "$as_me:$LINENO: result: yes" >&5
8295echo "${ECHO_T}yes" >&6
9926e4a4 8296 else
e6cc62c6
VS
8297 echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6
9926e4a4 8299 fi
e6cc62c6 8300
9926e4a4 8301
5005acfe 8302 enablestring=
e6cc62c6
VS
8303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8304echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8305 no_cache=0
8306 # Check whether --enable-popupwin or --disable-popupwin was given.
8307if test "${enable_popupwin+set}" = set; then
8308 enableval="$enable_popupwin"
e6cc62c6 8309
9f41d601
RR
8310 if test "$enableval" = yes; then
8311 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8312 else
8313 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8314 fi
e6cc62c6 8315
9f41d601 8316else
e6cc62c6 8317
9f41d601
RR
8318 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8319 if test "x$LINE" != x ; then
8320 eval "DEFAULT_$LINE"
8321 else
8322 no_cache=1
8323 fi
8324
8325 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8326
e6cc62c6 8327fi;
9f41d601
RR
8328
8329 eval "$ac_cv_use_popupwin"
8330 if test "$no_cache" != 1; then
8331 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8332 fi
8333
8334 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8335 echo "$as_me:$LINENO: result: yes" >&5
8336echo "${ECHO_T}yes" >&6
9f41d601 8337 else
e6cc62c6
VS
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
9f41d601 8340 fi
e6cc62c6 8341
52127426 8342
8284b0c5
MB
8343
8344
5005acfe 8345 enablestring=
e6cc62c6
VS
8346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8347echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8348 no_cache=0
8349 # Check whether --enable-commondlg or --disable-commondlg was given.
8350if test "${enable_commondlg+set}" = set; then
8351 enableval="$enable_commondlg"
e6cc62c6 8352
1e6feb95
VZ
8353 if test "$enableval" = yes; then
8354 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8355 else
8356 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8357 fi
e6cc62c6 8358
1e6feb95 8359else
e6cc62c6 8360
1e6feb95
VZ
8361 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
8368 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8369
e6cc62c6 8370fi;
1e6feb95
VZ
8371
8372 eval "$ac_cv_use_commondlg"
8373 if test "$no_cache" != 1; then
8374 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8375 fi
8376
8377 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8378 echo "$as_me:$LINENO: result: yes" >&5
8379echo "${ECHO_T}yes" >&6
1e6feb95 8380 else
e6cc62c6
VS
8381 echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6
1e6feb95 8383 fi
e6cc62c6 8384
1e6feb95 8385
5005acfe 8386 enablestring=
e6cc62c6
VS
8387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8388echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8389 no_cache=0
8390 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8391if test "${enable_choicedlg+set}" = set; then
8392 enableval="$enable_choicedlg"
e6cc62c6 8393
1e6feb95
VZ
8394 if test "$enableval" = yes; then
8395 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8396 else
8397 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8398 fi
e6cc62c6 8399
1e6feb95 8400else
e6cc62c6 8401
1e6feb95
VZ
8402 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
8409 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8410
e6cc62c6 8411fi;
1e6feb95
VZ
8412
8413 eval "$ac_cv_use_choicedlg"
8414 if test "$no_cache" != 1; then
8415 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8416 fi
8417
8418 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8419 echo "$as_me:$LINENO: result: yes" >&5
8420echo "${ECHO_T}yes" >&6
1e6feb95 8421 else
e6cc62c6
VS
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
1e6feb95 8424 fi
e6cc62c6 8425
1e6feb95 8426
5005acfe 8427 enablestring=
e6cc62c6
VS
8428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8429echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8430 no_cache=0
8431 # Check whether --enable-coldlg or --disable-coldlg was given.
8432if test "${enable_coldlg+set}" = set; then
8433 enableval="$enable_coldlg"
e6cc62c6 8434
1e6feb95
VZ
8435 if test "$enableval" = yes; then
8436 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8437 else
8438 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8439 fi
e6cc62c6 8440
1e6feb95 8441else
e6cc62c6 8442
1e6feb95
VZ
8443 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8444 if test "x$LINE" != x ; then
8445 eval "DEFAULT_$LINE"
8446 else
8447 no_cache=1
8448 fi
8449
8450 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8451
e6cc62c6 8452fi;
1e6feb95
VZ
8453
8454 eval "$ac_cv_use_coldlg"
8455 if test "$no_cache" != 1; then
8456 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8457 fi
8458
8459 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8460 echo "$as_me:$LINENO: result: yes" >&5
8461echo "${ECHO_T}yes" >&6
1e6feb95 8462 else
e6cc62c6
VS
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
1e6feb95 8465 fi
e6cc62c6 8466
1e6feb95 8467
5005acfe 8468 enablestring=
e6cc62c6
VS
8469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8470echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8471 no_cache=0
8472 # Check whether --enable-filedlg or --disable-filedlg was given.
8473if test "${enable_filedlg+set}" = set; then
8474 enableval="$enable_filedlg"
e6cc62c6 8475
1e6feb95
VZ
8476 if test "$enableval" = yes; then
8477 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8478 else
8479 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8480 fi
e6cc62c6 8481
1e6feb95 8482else
e6cc62c6 8483
1e6feb95
VZ
8484 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8485 if test "x$LINE" != x ; then
8486 eval "DEFAULT_$LINE"
8487 else
8488 no_cache=1
8489 fi
8490
8491 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8492
e6cc62c6 8493fi;
1e6feb95
VZ
8494
8495 eval "$ac_cv_use_filedlg"
8496 if test "$no_cache" != 1; then
8497 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8498 fi
8499
8500 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8501 echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6
1e6feb95 8503 else
e6cc62c6
VS
8504 echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6
1e6feb95 8506 fi
e6cc62c6 8507
1e6feb95 8508
5005acfe 8509 enablestring=
e6cc62c6
VS
8510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8511echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8512 no_cache=0
69d27ff7
MB
8513 # Check whether --enable-finddlg or --disable-finddlg was given.
8514if test "${enable_finddlg+set}" = set; then
8515 enableval="$enable_finddlg"
e6cc62c6 8516
8db37e06 8517 if test "$enableval" = yes; then
69d27ff7 8518 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8519 else
69d27ff7 8520 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8521 fi
e6cc62c6 8522
8db37e06 8523else
e6cc62c6 8524
8db37e06
VZ
8525 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8526 if test "x$LINE" != x ; then
8527 eval "DEFAULT_$LINE"
8528 else
8529 no_cache=1
8530 fi
8531
69d27ff7 8532 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8533
e6cc62c6 8534fi;
8db37e06 8535
69d27ff7 8536 eval "$ac_cv_use_finddlg"
8db37e06 8537 if test "$no_cache" != 1; then
69d27ff7 8538 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8539 fi
8540
8541 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8542 echo "$as_me:$LINENO: result: yes" >&5
8543echo "${ECHO_T}yes" >&6
8db37e06 8544 else
e6cc62c6
VS
8545 echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
8db37e06 8547 fi
e6cc62c6 8548
8db37e06 8549
5005acfe 8550 enablestring=
e6cc62c6
VS
8551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8552echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8553 no_cache=0
8554 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8555if test "${enable_fontdlg+set}" = set; then
8556 enableval="$enable_fontdlg"
e6cc62c6 8557
1e6feb95
VZ
8558 if test "$enableval" = yes; then
8559 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8560 else
8561 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8562 fi
e6cc62c6 8563
1e6feb95 8564else
e6cc62c6 8565
1e6feb95
VZ
8566 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8567 if test "x$LINE" != x ; then
8568 eval "DEFAULT_$LINE"
8569 else
8570 no_cache=1
8571 fi
8572
8573 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8574
e6cc62c6 8575fi;
1e6feb95
VZ
8576
8577 eval "$ac_cv_use_fontdlg"
8578 if test "$no_cache" != 1; then
8579 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8580 fi
8581
8582 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8583 echo "$as_me:$LINENO: result: yes" >&5
8584echo "${ECHO_T}yes" >&6
1e6feb95 8585 else
e6cc62c6
VS
8586 echo "$as_me:$LINENO: result: no" >&5
8587echo "${ECHO_T}no" >&6
1e6feb95 8588 fi
e6cc62c6 8589
1e6feb95 8590
5005acfe 8591 enablestring=
e6cc62c6
VS
8592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8593echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8594 no_cache=0
8595 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8596if test "${enable_dirdlg+set}" = set; then
8597 enableval="$enable_dirdlg"
e6cc62c6 8598
1e6feb95
VZ
8599 if test "$enableval" = yes; then
8600 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8601 else
8602 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8603 fi
e6cc62c6 8604
1e6feb95 8605else
e6cc62c6 8606
1e6feb95
VZ
8607 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8608 if test "x$LINE" != x ; then
8609 eval "DEFAULT_$LINE"
8610 else
8611 no_cache=1
8612 fi
8613
8614 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8615
e6cc62c6 8616fi;
1e6feb95
VZ
8617
8618 eval "$ac_cv_use_dirdlg"
10f2d63a 8619 if test "$no_cache" != 1; then
1e6feb95 8620 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8621 fi
8622
1e6feb95 8623 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8624 echo "$as_me:$LINENO: result: yes" >&5
8625echo "${ECHO_T}yes" >&6
10f2d63a 8626 else
e6cc62c6
VS
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
10f2d63a 8629 fi
e6cc62c6 8630
698dcdb6 8631
5005acfe 8632 enablestring=
e6cc62c6
VS
8633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8634echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8635 no_cache=0
1e6feb95
VZ
8636 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8637if test "${enable_msgdlg+set}" = set; then
8638 enableval="$enable_msgdlg"
e6cc62c6 8639
10f2d63a 8640 if test "$enableval" = yes; then
1e6feb95 8641 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8642 else
1e6feb95 8643 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8644 fi
e6cc62c6 8645
10f2d63a 8646else
e6cc62c6 8647
1e6feb95 8648 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8649 if test "x$LINE" != x ; then
8650 eval "DEFAULT_$LINE"
8651 else
8652 no_cache=1
8653 fi
8654
1e6feb95 8655 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8656
e6cc62c6 8657fi;
10f2d63a 8658
1e6feb95 8659 eval "$ac_cv_use_msgdlg"
10f2d63a 8660 if test "$no_cache" != 1; then
1e6feb95 8661 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8662 fi
8663
1e6feb95 8664 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8665 echo "$as_me:$LINENO: result: yes" >&5
8666echo "${ECHO_T}yes" >&6
10f2d63a 8667 else
e6cc62c6
VS
8668 echo "$as_me:$LINENO: result: no" >&5
8669echo "${ECHO_T}no" >&6
10f2d63a 8670 fi
e6cc62c6 8671
10f2d63a 8672
5005acfe 8673 enablestring=
e6cc62c6
VS
8674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8675echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8676 no_cache=0
1e6feb95
VZ
8677 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8678if test "${enable_numberdlg+set}" = set; then
8679 enableval="$enable_numberdlg"
e6cc62c6 8680
10f2d63a 8681 if test "$enableval" = yes; then
1e6feb95 8682 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8683 else
1e6feb95 8684 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8685 fi
e6cc62c6 8686
10f2d63a 8687else
e6cc62c6 8688
1e6feb95 8689 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8690 if test "x$LINE" != x ; then
8691 eval "DEFAULT_$LINE"
8692 else
8693 no_cache=1
8694 fi
8695
1e6feb95 8696 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8697
e6cc62c6 8698fi;
10f2d63a 8699
1e6feb95 8700 eval "$ac_cv_use_numberdlg"
10f2d63a 8701 if test "$no_cache" != 1; then
1e6feb95 8702 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8703 fi
8704
1e6feb95 8705 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8706 echo "$as_me:$LINENO: result: yes" >&5
8707echo "${ECHO_T}yes" >&6
10f2d63a 8708 else
e6cc62c6
VS
8709 echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6
10f2d63a 8711 fi
e6cc62c6 8712
10f2d63a 8713
5005acfe 8714 enablestring=
e6cc62c6
VS
8715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8716echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8717 no_cache=0
8718 # Check whether --enable-splash or --disable-splash was given.
8719if test "${enable_splash+set}" = set; then
8720 enableval="$enable_splash"
e6cc62c6 8721
cbca9943
VZ
8722 if test "$enableval" = yes; then
8723 ac_cv_use_splash='wxUSE_SPLASH=yes'
8724 else
8725 ac_cv_use_splash='wxUSE_SPLASH=no'
8726 fi
e6cc62c6 8727
cbca9943 8728else
e6cc62c6 8729
cbca9943
VZ
8730 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8731 if test "x$LINE" != x ; then
8732 eval "DEFAULT_$LINE"
8733 else
8734 no_cache=1
8735 fi
8736
8737 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8738
e6cc62c6 8739fi;
cbca9943
VZ
8740
8741 eval "$ac_cv_use_splash"
8742 if test "$no_cache" != 1; then
8743 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8744 fi
8745
8746 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8747 echo "$as_me:$LINENO: result: yes" >&5
8748echo "${ECHO_T}yes" >&6
cbca9943 8749 else
e6cc62c6
VS
8750 echo "$as_me:$LINENO: result: no" >&5
8751echo "${ECHO_T}no" >&6
cbca9943 8752 fi
e6cc62c6 8753
cbca9943 8754
5005acfe 8755 enablestring=
e6cc62c6
VS
8756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8757echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8758 no_cache=0
8759 # Check whether --enable-textdlg or --disable-textdlg was given.
8760if test "${enable_textdlg+set}" = set; then
8761 enableval="$enable_textdlg"
e6cc62c6 8762
10f2d63a
VZ
8763 if test "$enableval" = yes; then
8764 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8765 else
8766 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8767 fi
e6cc62c6 8768
10f2d63a 8769else
e6cc62c6 8770
10f2d63a
VZ
8771 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8772 if test "x$LINE" != x ; then
8773 eval "DEFAULT_$LINE"
8774 else
8775 no_cache=1
8776 fi
8777
8778 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8779
e6cc62c6 8780fi;
10f2d63a
VZ
8781
8782 eval "$ac_cv_use_textdlg"
8783 if test "$no_cache" != 1; then
8784 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8785 fi
8786
8787 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8788 echo "$as_me:$LINENO: result: yes" >&5
8789echo "${ECHO_T}yes" >&6
10f2d63a 8790 else
e6cc62c6
VS
8791 echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
10f2d63a 8793 fi
e6cc62c6 8794
10f2d63a 8795
5005acfe 8796 enablestring=
e6cc62c6
VS
8797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8798echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8799 no_cache=0
8800 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8801if test "${enable_tipdlg+set}" = set; then
8802 enableval="$enable_tipdlg"
e6cc62c6 8803
10f2d63a
VZ
8804 if test "$enableval" = yes; then
8805 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8806 else
8807 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8808 fi
e6cc62c6 8809
10f2d63a 8810else
e6cc62c6 8811
10f2d63a
VZ
8812 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8813 if test "x$LINE" != x ; then
8814 eval "DEFAULT_$LINE"
8815 else
8816 no_cache=1
8817 fi
8818
8819 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8820
e6cc62c6 8821fi;
10f2d63a
VZ
8822
8823 eval "$ac_cv_use_tipdlg"
8824 if test "$no_cache" != 1; then
8825 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8826 fi
8827
8828 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8829 echo "$as_me:$LINENO: result: yes" >&5
8830echo "${ECHO_T}yes" >&6
10f2d63a 8831 else
e6cc62c6
VS
8832 echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
10f2d63a 8834 fi
e6cc62c6 8835
10f2d63a 8836
5005acfe 8837 enablestring=
e6cc62c6
VS
8838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8839echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8840 no_cache=0
8841 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8842if test "${enable_progressdlg+set}" = set; then
8843 enableval="$enable_progressdlg"
e6cc62c6 8844
10f2d63a
VZ
8845 if test "$enableval" = yes; then
8846 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8847 else
8848 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8849 fi
e6cc62c6 8850
10f2d63a 8851else
e6cc62c6 8852
10f2d63a
VZ
8853 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8854 if test "x$LINE" != x ; then
8855 eval "DEFAULT_$LINE"
8856 else
8857 no_cache=1
8858 fi
8859
8860 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8861
e6cc62c6 8862fi;
10f2d63a
VZ
8863
8864 eval "$ac_cv_use_progressdlg"
8865 if test "$no_cache" != 1; then
8866 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8867 fi
8868
8869 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8870 echo "$as_me:$LINENO: result: yes" >&5
8871echo "${ECHO_T}yes" >&6
10f2d63a 8872 else
e6cc62c6
VS
8873 echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6
10f2d63a 8875 fi
e6cc62c6 8876
10f2d63a 8877
5005acfe 8878 enablestring=
e6cc62c6
VS
8879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8880echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8881 no_cache=0
8882 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8883if test "${enable_wizarddlg+set}" = set; then
8884 enableval="$enable_wizarddlg"
e6cc62c6 8885
b1f5d087
VZ
8886 if test "$enableval" = yes; then
8887 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8888 else
8889 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8890 fi
e6cc62c6 8891
b1f5d087 8892else
e6cc62c6 8893
b1f5d087
VZ
8894 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8895 if test "x$LINE" != x ; then
8896 eval "DEFAULT_$LINE"
8897 else
8898 no_cache=1
8899 fi
8900
8901 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8902
e6cc62c6 8903fi;
b1f5d087
VZ
8904
8905 eval "$ac_cv_use_wizarddlg"
8906 if test "$no_cache" != 1; then
8907 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8908 fi
8909
8910 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8911 echo "$as_me:$LINENO: result: yes" >&5
8912echo "${ECHO_T}yes" >&6
b1f5d087 8913 else
e6cc62c6
VS
8914 echo "$as_me:$LINENO: result: no" >&5
8915echo "${ECHO_T}no" >&6
b1f5d087 8916 fi
e6cc62c6 8917
8284b0c5
MB
8918
8919
52127426 8920
5005acfe 8921 enablestring=
e6cc62c6
VS
8922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8923echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8924 no_cache=0
8925 # Check whether --enable-menus or --disable-menus was given.
8926if test "${enable_menus+set}" = set; then
8927 enableval="$enable_menus"
e6cc62c6 8928
1e6feb95
VZ
8929 if test "$enableval" = yes; then
8930 ac_cv_use_menus='wxUSE_MENUS=yes'
8931 else
8932 ac_cv_use_menus='wxUSE_MENUS=no'
8933 fi
e6cc62c6 8934
1e6feb95 8935else
e6cc62c6 8936
1e6feb95
VZ
8937 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8938 if test "x$LINE" != x ; then
8939 eval "DEFAULT_$LINE"
8940 else
8941 no_cache=1
8942 fi
8943
8944 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8945
e6cc62c6 8946fi;
1e6feb95
VZ
8947
8948 eval "$ac_cv_use_menus"
8949 if test "$no_cache" != 1; then
8950 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8951 fi
8952
8953 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8954 echo "$as_me:$LINENO: result: yes" >&5
8955echo "${ECHO_T}yes" >&6
1e6feb95 8956 else
e6cc62c6
VS
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
1e6feb95 8959 fi
e6cc62c6 8960
1e6feb95 8961
5005acfe 8962 enablestring=
e6cc62c6
VS
8963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8964echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8965 no_cache=0
8966 # Check whether --enable-miniframe or --disable-miniframe was given.
8967if test "${enable_miniframe+set}" = set; then
8968 enableval="$enable_miniframe"
e6cc62c6 8969
10f2d63a
VZ
8970 if test "$enableval" = yes; then
8971 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8972 else
8973 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8974 fi
e6cc62c6 8975
10f2d63a 8976else
e6cc62c6 8977
10f2d63a
VZ
8978 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8979 if test "x$LINE" != x ; then
8980 eval "DEFAULT_$LINE"
8981 else
8982 no_cache=1
8983 fi
8984
8985 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8986
e6cc62c6 8987fi;
10f2d63a
VZ
8988
8989 eval "$ac_cv_use_miniframe"
8990 if test "$no_cache" != 1; then
8991 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8992 fi
8993
8994 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8995 echo "$as_me:$LINENO: result: yes" >&5
8996echo "${ECHO_T}yes" >&6
10f2d63a 8997 else
e6cc62c6
VS
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
10f2d63a 9000 fi
e6cc62c6 9001
10f2d63a 9002
5005acfe 9003 enablestring=
e6cc62c6
VS
9004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9005echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9006 no_cache=0
9007 # Check whether --enable-tooltips or --disable-tooltips was given.
9008if test "${enable_tooltips+set}" = set; then
9009 enableval="$enable_tooltips"
e6cc62c6 9010
10f2d63a
VZ
9011 if test "$enableval" = yes; then
9012 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9013 else
9014 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9015 fi
e6cc62c6 9016
10f2d63a 9017else
e6cc62c6 9018
10f2d63a
VZ
9019 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9020 if test "x$LINE" != x ; then
9021 eval "DEFAULT_$LINE"
9022 else
9023 no_cache=1
9024 fi
9025
9026 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9027
e6cc62c6 9028fi;
10f2d63a
VZ
9029
9030 eval "$ac_cv_use_tooltips"
9031 if test "$no_cache" != 1; then
9032 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9033 fi
9034
9035 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9036 echo "$as_me:$LINENO: result: yes" >&5
9037echo "${ECHO_T}yes" >&6
10f2d63a 9038 else
e6cc62c6
VS
9039 echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6
10f2d63a 9041 fi
e6cc62c6 9042
10f2d63a 9043
5005acfe 9044 enablestring=
e6cc62c6
VS
9045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9046echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9047 no_cache=0
9048 # Check whether --enable-splines or --disable-splines was given.
9049if test "${enable_splines+set}" = set; then
9050 enableval="$enable_splines"
e6cc62c6 9051
10f2d63a
VZ
9052 if test "$enableval" = yes; then
9053 ac_cv_use_splines='wxUSE_SPLINES=yes'
9054 else
9055 ac_cv_use_splines='wxUSE_SPLINES=no'
9056 fi
e6cc62c6 9057
10f2d63a 9058else
e6cc62c6 9059
10f2d63a
VZ
9060 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9061 if test "x$LINE" != x ; then
9062 eval "DEFAULT_$LINE"
9063 else
9064 no_cache=1
9065 fi
9066
9067 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9068
e6cc62c6 9069fi;
10f2d63a
VZ
9070
9071 eval "$ac_cv_use_splines"
9072 if test "$no_cache" != 1; then
9073 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9074 fi
9075
9076 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9077 echo "$as_me:$LINENO: result: yes" >&5
9078echo "${ECHO_T}yes" >&6
10f2d63a 9079 else
e6cc62c6
VS
9080 echo "$as_me:$LINENO: result: no" >&5
9081echo "${ECHO_T}no" >&6
10f2d63a 9082 fi
e6cc62c6 9083
10f2d63a 9084
5005acfe 9085 enablestring=
e6cc62c6
VS
9086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9087echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9088 no_cache=0
9089 # Check whether --enable-validators or --disable-validators was given.
9090if test "${enable_validators+set}" = set; then
9091 enableval="$enable_validators"
e6cc62c6 9092
10f2d63a
VZ
9093 if test "$enableval" = yes; then
9094 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9095 else
9096 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9097 fi
e6cc62c6 9098
10f2d63a 9099else
e6cc62c6 9100
10f2d63a
VZ
9101 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9102 if test "x$LINE" != x ; then
9103 eval "DEFAULT_$LINE"
9104 else
9105 no_cache=1
9106 fi
9107
9108 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9109
e6cc62c6 9110fi;
10f2d63a
VZ
9111
9112 eval "$ac_cv_use_validators"
9113 if test "$no_cache" != 1; then
9114 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9115 fi
9116
9117 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9118 echo "$as_me:$LINENO: result: yes" >&5
9119echo "${ECHO_T}yes" >&6
10f2d63a 9120 else
e6cc62c6
VS
9121 echo "$as_me:$LINENO: result: no" >&5
9122echo "${ECHO_T}no" >&6
10f2d63a 9123 fi
e6cc62c6 9124
10f2d63a 9125
5005acfe 9126 enablestring=
e6cc62c6
VS
9127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9128echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9129 no_cache=0
9130 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9131if test "${enable_busyinfo+set}" = set; then
9132 enableval="$enable_busyinfo"
e6cc62c6 9133
10f2d63a
VZ
9134 if test "$enableval" = yes; then
9135 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9136 else
9137 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9138 fi
e6cc62c6 9139
10f2d63a 9140else
e6cc62c6 9141
10f2d63a
VZ
9142 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9143 if test "x$LINE" != x ; then
9144 eval "DEFAULT_$LINE"
9145 else
9146 no_cache=1
9147 fi
9148
9149 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9150
e6cc62c6 9151fi;
10f2d63a
VZ
9152
9153 eval "$ac_cv_use_busyinfo"
9154 if test "$no_cache" != 1; then
9155 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9156 fi
9157
9158 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9159 echo "$as_me:$LINENO: result: yes" >&5
9160echo "${ECHO_T}yes" >&6
10f2d63a 9161 else
e6cc62c6
VS
9162 echo "$as_me:$LINENO: result: no" >&5
9163echo "${ECHO_T}no" >&6
10f2d63a 9164 fi
e6cc62c6 9165
10f2d63a 9166
5005acfe 9167 enablestring=
e6cc62c6
VS
9168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9169echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9170 no_cache=0
9171 # Check whether --enable-joystick or --disable-joystick was given.
9172if test "${enable_joystick+set}" = set; then
9173 enableval="$enable_joystick"
e6cc62c6 9174
f6bcfd97
BP
9175 if test "$enableval" = yes; then
9176 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9177 else
9178 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9179 fi
e6cc62c6 9180
f6bcfd97 9181else
e6cc62c6 9182
f6bcfd97
BP
9183 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9184 if test "x$LINE" != x ; then
9185 eval "DEFAULT_$LINE"
9186 else
9187 no_cache=1
9188 fi
9189
9190 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9191
e6cc62c6 9192fi;
f6bcfd97
BP
9193
9194 eval "$ac_cv_use_joystick"
9195 if test "$no_cache" != 1; then
9196 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9197 fi
9198
9199 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9200 echo "$as_me:$LINENO: result: yes" >&5
9201echo "${ECHO_T}yes" >&6
f6bcfd97 9202 else
e6cc62c6
VS
9203 echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
f6bcfd97 9205 fi
e6cc62c6 9206
698dcdb6 9207
5005acfe 9208 enablestring=
e6cc62c6
VS
9209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9210echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9211 no_cache=0
9212 # Check whether --enable-metafile or --disable-metafile was given.
9213if test "${enable_metafile+set}" = set; then
9214 enableval="$enable_metafile"
e6cc62c6 9215
1e6feb95
VZ
9216 if test "$enableval" = yes; then
9217 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9218 else
9219 ac_cv_use_metafile='wxUSE_METAFILE=no'
9220 fi
e6cc62c6 9221
1e6feb95 9222else
e6cc62c6 9223
1e6feb95
VZ
9224 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9225 if test "x$LINE" != x ; then
9226 eval "DEFAULT_$LINE"
9227 else
9228 no_cache=1
9229 fi
9230
9231 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9232
e6cc62c6 9233fi;
1e6feb95
VZ
9234
9235 eval "$ac_cv_use_metafile"
9236 if test "$no_cache" != 1; then
9237 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9238 fi
9239
9240 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9241 echo "$as_me:$LINENO: result: yes" >&5
9242echo "${ECHO_T}yes" >&6
1e6feb95 9243 else
e6cc62c6
VS
9244 echo "$as_me:$LINENO: result: no" >&5
9245echo "${ECHO_T}no" >&6
1e6feb95 9246 fi
e6cc62c6 9247
1e6feb95 9248
5005acfe 9249 enablestring=
e6cc62c6
VS
9250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9251echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9252 no_cache=0
9253 # Check whether --enable-dragimage or --disable-dragimage was given.
9254if test "${enable_dragimage+set}" = set; then
9255 enableval="$enable_dragimage"
e6cc62c6 9256
24fd6d87
VZ
9257 if test "$enableval" = yes; then
9258 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9259 else
9260 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9261 fi
e6cc62c6 9262
24fd6d87 9263else
e6cc62c6 9264
24fd6d87
VZ
9265 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9266 if test "x$LINE" != x ; then
9267 eval "DEFAULT_$LINE"
9268 else
9269 no_cache=1
9270 fi
9271
9272 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9273
e6cc62c6 9274fi;
24fd6d87
VZ
9275
9276 eval "$ac_cv_use_dragimage"
9277 if test "$no_cache" != 1; then
9278 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9279 fi
9280
9281 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9282 echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
24fd6d87 9284 else
e6cc62c6
VS
9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
24fd6d87 9287 fi
e6cc62c6 9288
52127426 9289
7bb2947d 9290 enablestring=
e6cc62c6
VS
9291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9292echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9293 no_cache=0
9294 # Check whether --enable-accessibility or --disable-accessibility was given.
9295if test "${enable_accessibility+set}" = set; then
9296 enableval="$enable_accessibility"
e6cc62c6 9297
7bb2947d
MB
9298 if test "$enableval" = yes; then
9299 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9300 else
9301 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9302 fi
e6cc62c6 9303
7bb2947d 9304else
e6cc62c6 9305
7bb2947d
MB
9306 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9307 if test "x$LINE" != x ; then
9308 eval "DEFAULT_$LINE"
9309 else
9310 no_cache=1
9311 fi
9312
9313 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9314
e6cc62c6 9315fi;
7bb2947d
MB
9316
9317 eval "$ac_cv_use_accessibility"
9318 if test "$no_cache" != 1; then
9319 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9320 fi
9321
9322 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9323 echo "$as_me:$LINENO: result: yes" >&5
9324echo "${ECHO_T}yes" >&6
7bb2947d 9325 else
e6cc62c6
VS
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
7bb2947d 9328 fi
e6cc62c6 9329
7bb2947d 9330
8284b0c5
MB
9331
9332
5005acfe 9333 enablestring=
e6cc62c6
VS
9334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9335echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9336 no_cache=0
9337 # Check whether --enable-palette or --disable-palette was given.
9338if test "${enable_palette+set}" = set; then
9339 enableval="$enable_palette"
e6cc62c6 9340
edae8572
VZ
9341 if test "$enableval" = yes; then
9342 ac_cv_use_palette='wxUSE_PALETTE=yes'
9343 else
9344 ac_cv_use_palette='wxUSE_PALETTE=no'
9345 fi
e6cc62c6 9346
edae8572 9347else
e6cc62c6 9348
edae8572
VZ
9349 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9350 if test "x$LINE" != x ; then
9351 eval "DEFAULT_$LINE"
9352 else
9353 no_cache=1
9354 fi
9355
9356 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9357
e6cc62c6 9358fi;
edae8572
VZ
9359
9360 eval "$ac_cv_use_palette"
9361 if test "$no_cache" != 1; then
9362 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9363 fi
9364
9365 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9366 echo "$as_me:$LINENO: result: yes" >&5
9367echo "${ECHO_T}yes" >&6
edae8572 9368 else
e6cc62c6
VS
9369 echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
edae8572 9371 fi
e6cc62c6 9372
edae8572 9373
5005acfe 9374 enablestring=
e6cc62c6
VS
9375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9376echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9377 no_cache=0
9378 # Check whether --enable-image or --disable-image was given.
9379if test "${enable_image+set}" = set; then
9380 enableval="$enable_image"
e6cc62c6 9381
0046ff7c
VS
9382 if test "$enableval" = yes; then
9383 ac_cv_use_image='wxUSE_IMAGE=yes'
9384 else
9385 ac_cv_use_image='wxUSE_IMAGE=no'
9386 fi
e6cc62c6 9387
0046ff7c 9388else
e6cc62c6 9389
0046ff7c
VS
9390 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9391 if test "x$LINE" != x ; then
9392 eval "DEFAULT_$LINE"
9393 else
9394 no_cache=1
9395 fi
9396
9397 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9398
e6cc62c6 9399fi;
0046ff7c
VS
9400
9401 eval "$ac_cv_use_image"
9402 if test "$no_cache" != 1; then
9403 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9404 fi
9405
9406 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9407 echo "$as_me:$LINENO: result: yes" >&5
9408echo "${ECHO_T}yes" >&6
0046ff7c 9409 else
e6cc62c6
VS
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
0046ff7c 9412 fi
e6cc62c6 9413
0046ff7c 9414
5005acfe 9415 enablestring=
e6cc62c6
VS
9416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9417echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9418 no_cache=0
9419 # Check whether --enable-gif or --disable-gif was given.
9420if test "${enable_gif+set}" = set; then
9421 enableval="$enable_gif"
e6cc62c6 9422
10f2d63a
VZ
9423 if test "$enableval" = yes; then
9424 ac_cv_use_gif='wxUSE_GIF=yes'
9425 else
9426 ac_cv_use_gif='wxUSE_GIF=no'
9427 fi
e6cc62c6 9428
10f2d63a 9429else
e6cc62c6 9430
10f2d63a
VZ
9431 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9432 if test "x$LINE" != x ; then
9433 eval "DEFAULT_$LINE"
9434 else
9435 no_cache=1
9436 fi
9437
9438 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9439
e6cc62c6 9440fi;
10f2d63a
VZ
9441
9442 eval "$ac_cv_use_gif"
9443 if test "$no_cache" != 1; then
9444 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9445 fi
9446
9447 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9448 echo "$as_me:$LINENO: result: yes" >&5
9449echo "${ECHO_T}yes" >&6
10f2d63a 9450 else
e6cc62c6
VS
9451 echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6
10f2d63a 9453 fi
e6cc62c6 9454
10f2d63a 9455
5005acfe 9456 enablestring=
e6cc62c6
VS
9457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9458echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9459 no_cache=0
9460 # Check whether --enable-pcx or --disable-pcx was given.
9461if test "${enable_pcx+set}" = set; then
9462 enableval="$enable_pcx"
e6cc62c6 9463
10f2d63a
VZ
9464 if test "$enableval" = yes; then
9465 ac_cv_use_pcx='wxUSE_PCX=yes'
9466 else
9467 ac_cv_use_pcx='wxUSE_PCX=no'
9468 fi
e6cc62c6 9469
10f2d63a 9470else
e6cc62c6 9471
10f2d63a
VZ
9472 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9473 if test "x$LINE" != x ; then
9474 eval "DEFAULT_$LINE"
9475 else
9476 no_cache=1
9477 fi
9478
9479 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9480
e6cc62c6 9481fi;
10f2d63a
VZ
9482
9483 eval "$ac_cv_use_pcx"
9484 if test "$no_cache" != 1; then
9485 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9486 fi
9487
9488 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9489 echo "$as_me:$LINENO: result: yes" >&5
9490echo "${ECHO_T}yes" >&6
10f2d63a 9491 else
e6cc62c6
VS
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
10f2d63a 9494 fi
e6cc62c6 9495
10f2d63a 9496
5005acfe 9497 enablestring=
e6cc62c6
VS
9498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9499echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9500 no_cache=0
9501 # Check whether --enable-iff or --disable-iff was given.
9502if test "${enable_iff+set}" = set; then
9503 enableval="$enable_iff"
e6cc62c6 9504
4b6b4dfc
RR
9505 if test "$enableval" = yes; then
9506 ac_cv_use_iff='wxUSE_IFF=yes'
9507 else
9508 ac_cv_use_iff='wxUSE_IFF=no'
9509 fi
e6cc62c6 9510
4b6b4dfc 9511else
e6cc62c6 9512
4b6b4dfc
RR
9513 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9514 if test "x$LINE" != x ; then
9515 eval "DEFAULT_$LINE"
9516 else
9517 no_cache=1
9518 fi
9519
9520 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9521
e6cc62c6 9522fi;
4b6b4dfc
RR
9523
9524 eval "$ac_cv_use_iff"
9525 if test "$no_cache" != 1; then
9526 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9527 fi
9528
9529 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9530 echo "$as_me:$LINENO: result: yes" >&5
9531echo "${ECHO_T}yes" >&6
4b6b4dfc 9532 else
e6cc62c6
VS
9533 echo "$as_me:$LINENO: result: no" >&5
9534echo "${ECHO_T}no" >&6
4b6b4dfc 9535 fi
e6cc62c6 9536
4b6b4dfc 9537
5005acfe 9538 enablestring=
e6cc62c6
VS
9539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9540echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9541 no_cache=0
9542 # Check whether --enable-pnm or --disable-pnm was given.
9543if test "${enable_pnm+set}" = set; then
9544 enableval="$enable_pnm"
e6cc62c6 9545
10f2d63a
VZ
9546 if test "$enableval" = yes; then
9547 ac_cv_use_pnm='wxUSE_PNM=yes'
9548 else
9549 ac_cv_use_pnm='wxUSE_PNM=no'
9550 fi
e6cc62c6 9551
10f2d63a 9552else
e6cc62c6 9553
10f2d63a
VZ
9554 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9555 if test "x$LINE" != x ; then
9556 eval "DEFAULT_$LINE"
9557 else
9558 no_cache=1
9559 fi
9560
9561 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9562
e6cc62c6 9563fi;
10f2d63a
VZ
9564
9565 eval "$ac_cv_use_pnm"
9566 if test "$no_cache" != 1; then
9567 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9568 fi
9569
9570 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9571 echo "$as_me:$LINENO: result: yes" >&5
9572echo "${ECHO_T}yes" >&6
10f2d63a 9573 else
e6cc62c6
VS
9574 echo "$as_me:$LINENO: result: no" >&5
9575echo "${ECHO_T}no" >&6
10f2d63a 9576 fi
e6cc62c6 9577
10f2d63a 9578
5005acfe 9579 enablestring=
e6cc62c6
VS
9580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9581echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9582 no_cache=0
69d27ff7
MB
9583 # Check whether --enable-xpm or --disable-xpm was given.
9584if test "${enable_xpm+set}" = set; then
9585 enableval="$enable_xpm"
e6cc62c6 9586
0046ff7c 9587 if test "$enableval" = yes; then
69d27ff7 9588 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9589 else
69d27ff7 9590 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9591 fi
e6cc62c6 9592
0046ff7c 9593else
e6cc62c6 9594
0046ff7c
VS
9595 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9596 if test "x$LINE" != x ; then
9597 eval "DEFAULT_$LINE"
9598 else
9599 no_cache=1
9600 fi
9601
69d27ff7 9602 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9603
e6cc62c6 9604fi;
0046ff7c 9605
69d27ff7 9606 eval "$ac_cv_use_xpm"
0046ff7c 9607 if test "$no_cache" != 1; then
69d27ff7 9608 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9609 fi
9610
9611 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9612 echo "$as_me:$LINENO: result: yes" >&5
9613echo "${ECHO_T}yes" >&6
0046ff7c 9614 else
e6cc62c6
VS
9615 echo "$as_me:$LINENO: result: no" >&5
9616echo "${ECHO_T}no" >&6
0046ff7c 9617 fi
e6cc62c6 9618
0046ff7c 9619
5005acfe 9620 enablestring=
e6cc62c6
VS
9621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9622echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9623 no_cache=0
c7206e64
VS
9624 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9625if test "${enable_ico_cur+set}" = set; then
9626 enableval="$enable_ico_cur"
e6cc62c6 9627
658974ae 9628 if test "$enableval" = yes; then
c7206e64 9629 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9630 else
c7206e64 9631 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9632 fi
e6cc62c6 9633
658974ae 9634else
e6cc62c6 9635
658974ae
VS
9636 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9637 if test "x$LINE" != x ; then
9638 eval "DEFAULT_$LINE"
9639 else
9640 no_cache=1
9641 fi
9642
c7206e64 9643 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9644
e6cc62c6 9645fi;
658974ae 9646
c7206e64 9647 eval "$ac_cv_use_ico_cur"
658974ae 9648 if test "$no_cache" != 1; then
c7206e64 9649 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9650 fi
9651
9652 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9653 echo "$as_me:$LINENO: result: yes" >&5
9654echo "${ECHO_T}yes" >&6
658974ae 9655 else
e6cc62c6
VS
9656 echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
658974ae 9658 fi
e6cc62c6 9659
658974ae 9660
b12915c1
VZ
9661fi
9662
029b47ad
VS
9663
9664
9665 enablestring=
9666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9667echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9668 no_cache=0
9669 # Check whether --enable-official_build or --disable-official_build was given.
9670if test "${enable_official_build+set}" = set; then
9671 enableval="$enable_official_build"
9672
9673 if test "$enableval" = yes; then
9674 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9675 else
9676 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9677 fi
9678
9679else
9680
9681 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9682 if test "x$LINE" != x ; then
9683 eval "DEFAULT_$LINE"
9684 else
9685 no_cache=1
9686 fi
9687
9688 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9689
9690fi;
9691
9692 eval "$ac_cv_use_official_build"
9693 if test "$no_cache" != 1; then
9694 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9695 fi
9696
9697 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9698 echo "$as_me:$LINENO: result: yes" >&5
9699echo "${ECHO_T}yes" >&6
9700 else
9701 echo "$as_me:$LINENO: result: no" >&5
9702echo "${ECHO_T}no" >&6
9703 fi
9704
9705# Check whether --enable-vendor or --disable-vendor was given.
9706if test "${enable_vendor+set}" = set; then
9707 enableval="$enable_vendor"
9708 VENDOR="$enableval"
9709fi;
9710if test "x$VENDOR" = "x"; then
9711 VENDOR="custom"
9712fi
9713
d558c907
VS
9714case "${host}" in
9715 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9716 PATH_IFS=';'
d558c907
VS
9717 ;;
9718 *)
9719 PATH_IFS=':'
d558c907
VS
9720 ;;
9721esac
9722
8284b0c5
MB
9723
9724
10f2d63a
VZ
9725 echo "saving argument cache $wx_arg_cache_file"
9726 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9727
8284b0c5 9728
e6cc62c6
VS
9729
9730echo "$as_me:$LINENO: checking for toolkit" >&5
9731echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9732
9733# In Wine, we need to default to MSW, not GTK or MOTIF
9734if test "$wxUSE_WINE" = "yes"; then
9735 DEFAULT_DEFAULT_wxUSE_GTK=0
9736 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9737 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9738 wxUSE_SHARED=no
89e6bf6d 9739fi
10f2d63a
VZ
9740
9741if test "$wxUSE_GUI" = "yes"; then
9742
3a922bb4 9743 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9744 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9745echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9746 { (exit 1); exit 1; }; }
3a922bb4 9747 fi
b12915c1 9748
3a922bb4
RL
9749 if test "$TOOLKIT_GIVEN" = 1; then
9750 for toolkit in `echo $ALL_TOOLKITS`; do
9751 var=wxUSE_$toolkit
9752 eval "value=\$${var}"
9753 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9754 done
10f2d63a 9755 else
3a922bb4
RL
9756 for toolkit in `echo $ALL_TOOLKITS`; do
9757 if test "$has_toolkit_in_cache" != 1; then
9758 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9759 else
9760 var=DEFAULT_wxUSE_$toolkit
9761 fi
9762 eval "wxUSE_$toolkit=\$${var}"
9763 done
10f2d63a 9764 fi
10f2d63a 9765
ac0c4cc3
DE
9766 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9767 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9768 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9769
d558c907 9770 case "${host}" in
6fa882bd 9771 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9772 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9773 esac
10f2d63a 9774
3a922bb4
RL
9775 case "$NUM_TOOLKITS" in
9776 1)
9777 ;;
9778 0)
e6cc62c6
VS
9779 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9780echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9781 { (exit 1); exit 1; }; }
3a922bb4
RL
9782 ;;
9783 *)
e6cc62c6
VS
9784 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9785echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9786 { (exit 1); exit 1; }; }
3a922bb4 9787 esac
10f2d63a 9788
3a922bb4
RL
9789 for toolkit in `echo $ALL_TOOLKITS`; do
9790 var=wxUSE_$toolkit
9791 eval "value=\$${var}"
9792 if test "x$value" != x; then
9793 cache_var=CACHE_$toolkit
9794 eval "cache=\$${cache_var}"
9795 if test "$cache" = 1; then
9796 echo "$var=$value" >> ${wx_arg_cache_file}
9797 fi
9798 if test "$value" = 1; then
89fe663f 9799 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9800 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9801echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9802 fi
9803 fi
9804 done
10f2d63a 9805else
9de9b8f0
VZ
9806 if test "x$host_alias" != "x"; then
9807 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9808echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9809 else
9810 echo "$as_me:$LINENO: result: base only" >&5
9811echo "${ECHO_T}base only" >&6
9812 fi
10f2d63a
VZ
9813fi
9814
43d99b6d
VS
9815wants_win32=0
9816doesnt_want_win32=0
17234b26
MB
9817case "${host}" in
9818 *-*-cygwin*)
9819 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9820 wants_win32=1
9821 else
9822 doesnt_want_win32=1
17234b26
MB
9823 fi
9824 ;;
9825 *-*-mingw*)
43d99b6d 9826 wants_win32=1
17234b26
MB
9827 ;;
9828esac
9829
89e6bf6d
VZ
9830if test "$wxUSE_WINE" = "yes"; then
9831 wants_win32=1
9832 CC=winegcc
9833 CXX=wineg++
9834 RESCOMP=wrc
30f2fa6c 9835 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9836fi
9837
43d99b6d 9838if test "$wants_win32" = 1 ; then
17234b26
MB
9839 USE_UNIX=0
9840 USE_WIN32=1
e6cc62c6 9841 cat >>confdefs.h <<\_ACEOF
17234b26 9842#define __WIN32__ 1
e6cc62c6 9843_ACEOF
17234b26 9844
e6cc62c6 9845 cat >>confdefs.h <<\_ACEOF
17234b26 9846#define __WIN95__ 1
e6cc62c6 9847_ACEOF
17234b26 9848
e6cc62c6 9849 cat >>confdefs.h <<\_ACEOF
17234b26 9850#define __WINDOWS__ 1
e6cc62c6 9851_ACEOF
17234b26 9852
e6cc62c6 9853 cat >>confdefs.h <<\_ACEOF
17234b26 9854#define __GNUWIN32__ 1
e6cc62c6 9855_ACEOF
17234b26 9856
e6cc62c6 9857 cat >>confdefs.h <<\_ACEOF
17234b26 9858#define STRICT 1
e6cc62c6 9859_ACEOF
17234b26 9860
e6cc62c6 9861 cat >>confdefs.h <<\_ACEOF
17234b26 9862#define WINVER 0x0400
e6cc62c6 9863_ACEOF
17234b26 9864
43d99b6d
VS
9865fi
9866if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9867 USE_UNIX=1
9868 USE_WIN32=0
9869fi
9870
9871if test "$USE_UNIX" = 1 ; then
9872 wxUSE_UNIX=yes
e6cc62c6 9873 cat >>confdefs.h <<\_ACEOF
17234b26 9874#define __UNIX__ 1
e6cc62c6 9875_ACEOF
17234b26
MB
9876
9877fi
9878
8284b0c5 9879
e6cc62c6 9880cat >confcache <<\_ACEOF
10f2d63a
VZ
9881# This file is a shell script that caches the results of configure
9882# tests run on this system so they can be shared between configure
e6cc62c6
VS
9883# scripts and configure runs, see configure's option --config-cache.
9884# It is not useful on other systems. If it contains results you don't
9885# want to keep, you may remove or edit it.
10f2d63a 9886#
e6cc62c6
VS
9887# config.status only pays attention to the cache file if you give it
9888# the --recheck option to rerun configure.
10f2d63a 9889#
e6cc62c6
VS
9890# `ac_cv_env_foo' variables (set or unset) will be overridden when
9891# loading this file, other *unset* `ac_cv_foo' will be assigned the
9892# following values.
9893
9894_ACEOF
9895
10f2d63a
VZ
9896# The following way of writing the cache mishandles newlines in values,
9897# but we know of no workaround that is simple, portable, and efficient.
9898# So, don't put newlines in cache variables' values.
9899# Ultrix sh set writes to stderr and can't be redirected directly,
9900# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9901{
9902 (set) 2>&1 |
9903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9904 *ac_space=\ *)
9905 # `set' does not quote correctly, so add quotes (double-quote
9906 # substitution turns \\\\ into \\, and sed turns \\ into \).
9907 sed -n \
eea650d8
VS
9908 "s/'/'\\\\''/g;
9909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9910 ;;
9911 *)
9912 # `set' quotes correctly as required by POSIX, so do not add quotes.
9913 sed -n \
eea650d8 9914 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9915 ;;
9916 esac;
9917} |
9918 sed '
9919 t clear
9920 : clear
9921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9922 t end
9923 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9924 : end' >>confcache
9925if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9926 if test -w $cache_file; then
e6cc62c6
VS
9927 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9928 cat confcache >$cache_file
10f2d63a
VZ
9929 else
9930 echo "not updating unwritable cache $cache_file"
9931 fi
9932fi
9933rm -f confcache
9934
e59890c3 9935if test "$build" != "$host" ; then
9d353d4a 9936 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9937 CC=$host_alias-gcc
9938 CXX=$host_alias-c++
9939 AR=$host_alias-ar
9940 RANLIB=$host_alias-ranlib
9941 DLLTOOL=$host_alias-dlltool
9942 RESCOMP=$host_alias-windres
9943 LD=$host_alias-ld
9944 NM=$host_alias-nm
9945 STRIP=$host_alias-strip
9946 else
e6cc62c6
VS
9947 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9948echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9949 { (exit 1); exit 1; }; }
3a922bb4 9950 fi
10f2d63a
VZ
9951fi
9952
ec603395 9953CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9954ac_ext=c
9955ac_cpp='$CPP $CPPFLAGS'
9956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9958ac_compiler_gnu=$ac_cv_c_compiler_gnu
9959if test -n "$ac_tool_prefix"; then
9960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9961set dummy ${ac_tool_prefix}gcc; ac_word=$2
9962echo "$as_me:$LINENO: checking for $ac_word" >&5
9963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964if test "${ac_cv_prog_CC+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966else
9967 if test -n "$CC"; then
9968 ac_cv_prog_CC="$CC" # Let the user override the test.
9969else
9970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971for as_dir in $PATH
9972do
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9980 fi
9981done
9982done
9983
9984fi
9985fi
9986CC=$ac_cv_prog_CC
9987if test -n "$CC"; then
9988 echo "$as_me:$LINENO: result: $CC" >&5
9989echo "${ECHO_T}$CC" >&6
9990else
9991 echo "$as_me:$LINENO: result: no" >&5
9992echo "${ECHO_T}no" >&6
9993fi
9994
9995fi
9996if test -z "$ac_cv_prog_CC"; then
9997 ac_ct_CC=$CC
9998 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9999set dummy gcc; ac_word=$2
e6cc62c6
VS
10000echo "$as_me:$LINENO: checking for $ac_word" >&5
10001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004else
10005 if test -n "$ac_ct_CC"; then
10006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10015 ac_cv_prog_ac_ct_CC="gcc"
10016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019done
10020done
10021
10022fi
10023fi
10024ac_ct_CC=$ac_cv_prog_ac_ct_CC
10025if test -n "$ac_ct_CC"; then
10026 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10027echo "${ECHO_T}$ac_ct_CC" >&6
10028else
10029 echo "$as_me:$LINENO: result: no" >&5
10030echo "${ECHO_T}no" >&6
10031fi
10032
10033 CC=$ac_ct_CC
10034else
10035 CC="$ac_cv_prog_CC"
10036fi
10037
10038if test -z "$CC"; then
10039 if test -n "$ac_tool_prefix"; then
10040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10041set dummy ${ac_tool_prefix}cc; ac_word=$2
10042echo "$as_me:$LINENO: checking for $ac_word" >&5
10043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10044if test "${ac_cv_prog_CC+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10046else
10047 if test -n "$CC"; then
10048 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10049else
e6cc62c6
VS
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10057 ac_cv_prog_CC="${ac_tool_prefix}cc"
10058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061done
10062done
10063
10f2d63a 10064fi
6232543b 10065fi
e6cc62c6 10066CC=$ac_cv_prog_CC
6232543b 10067if test -n "$CC"; then
e6cc62c6
VS
10068 echo "$as_me:$LINENO: result: $CC" >&5
10069echo "${ECHO_T}$CC" >&6
10070else
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
10073fi
10074
10075fi
10076if test -z "$ac_cv_prog_CC"; then
10077 ac_ct_CC=$CC
10078 # Extract the first word of "cc", so it can be a program name with args.
10079set dummy cc; ac_word=$2
10080echo "$as_me:$LINENO: checking for $ac_word" >&5
10081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085 if test -n "$ac_ct_CC"; then
10086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10087else
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_prog_ac_ct_CC="cc"
10096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10098 fi
10099done
10100done
10101
10102fi
10103fi
10104ac_ct_CC=$ac_cv_prog_ac_ct_CC
10105if test -n "$ac_ct_CC"; then
10106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10107echo "${ECHO_T}$ac_ct_CC" >&6
10108else
10109 echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
10111fi
10112
10113 CC=$ac_ct_CC
247f5006 10114else
e6cc62c6 10115 CC="$ac_cv_prog_CC"
247f5006
VZ
10116fi
10117
e6cc62c6 10118fi
5c6fa7d2
RR
10119if test -z "$CC"; then
10120 # Extract the first word of "cc", so it can be a program name with args.
10121set dummy cc; ac_word=$2
e6cc62c6
VS
10122echo "$as_me:$LINENO: checking for $ac_word" >&5
10123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10124if test "${ac_cv_prog_CC+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10126else
10127 if test -n "$CC"; then
10128 ac_cv_prog_CC="$CC" # Let the user override the test.
10129else
10130 ac_prog_rejected=no
e6cc62c6
VS
10131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $PATH
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10139 ac_prog_rejected=yes
10140 continue
10141 fi
10142 ac_cv_prog_CC="cc"
10143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146done
10147done
10148
328a083c
RR
10149if test $ac_prog_rejected = yes; then
10150 # We found a bogon in the path, so make sure we never use it.
10151 set dummy $ac_cv_prog_CC
10152 shift
e6cc62c6 10153 if test $# != 0; then
328a083c 10154 # We chose a different compiler from the bogus one.
1e487827
VS
10155 # However, it has the same basename, so the bogon will be chosen
10156 # first if we set CC to just the basename; use the full file name.
10157 shift
e6cc62c6 10158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10159 fi
1e487827
VS
10160fi
10161fi
10162fi
e6cc62c6 10163CC=$ac_cv_prog_CC
1e487827 10164if test -n "$CC"; then
e6cc62c6
VS
10165 echo "$as_me:$LINENO: result: $CC" >&5
10166echo "${ECHO_T}$CC" >&6
703e0a69 10167else
e6cc62c6
VS
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
703e0a69 10170fi
1e487827 10171
e6cc62c6
VS
10172fi
10173if test -z "$CC"; then
10174 if test -n "$ac_tool_prefix"; then
10175 for ac_prog in cl
10176 do
10177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_prog_CC+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10183else
10184 if test -n "$CC"; then
10185 ac_cv_prog_CC="$CC" # Let the user override the test.
10186else
e6cc62c6
VS
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
f09359cf
VS
10201fi
10202fi
e6cc62c6 10203CC=$ac_cv_prog_CC
f09359cf 10204if test -n "$CC"; then
e6cc62c6
VS
10205 echo "$as_me:$LINENO: result: $CC" >&5
10206echo "${ECHO_T}$CC" >&6
f09359cf 10207else
e6cc62c6
VS
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
5c6fa7d2 10210fi
1e487827 10211
e6cc62c6
VS
10212 test -n "$CC" && break
10213 done
10214fi
10215if test -z "$CC"; then
10216 ac_ct_CC=$CC
10217 for ac_prog in cl
10218do
10219 # Extract the first word of "$ac_prog", so it can be a program name with args.
10220set dummy $ac_prog; ac_word=$2
10221echo "$as_me:$LINENO: checking for $ac_word" >&5
10222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 if test -n "$ac_ct_CC"; then
10227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10228else
10229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230for as_dir in $PATH
10231do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_prog_ac_ct_CC="$ac_prog"
10237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10239 fi
10240done
10241done
f09359cf 10242
e6cc62c6
VS
10243fi
10244fi
10245ac_ct_CC=$ac_cv_prog_ac_ct_CC
10246if test -n "$ac_ct_CC"; then
10247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10248echo "${ECHO_T}$ac_ct_CC" >&6
10249else
10250 echo "$as_me:$LINENO: result: no" >&5
10251echo "${ECHO_T}no" >&6
10252fi
f09359cf 10253
e6cc62c6
VS
10254 test -n "$ac_ct_CC" && break
10255done
247f5006 10256
e6cc62c6
VS
10257 CC=$ac_ct_CC
10258fi
10259
10260fi
10261
10262
10263test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10264See \`config.log' for more details." >&5
10265echo "$as_me: error: no acceptable C compiler found in \$PATH
10266See \`config.log' for more details." >&2;}
10267 { (exit 1); exit 1; }; }
10268
10269# Provide some information about the compiler.
10270echo "$as_me:$LINENO:" \
10271 "checking for C compiler version" >&5
10272ac_compiler=`set X $ac_compile; echo $2`
10273{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10274 (eval $ac_compiler --version </dev/null >&5) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }
10278{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10279 (eval $ac_compiler -v </dev/null >&5) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }
10283{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10284 (eval $ac_compiler -V </dev/null >&5) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }
10288
10289cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10290/* confdefs.h. */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h. */
10295
10296int
10297main ()
10298{
247f5006 10299
e6cc62c6
VS
10300 ;
10301 return 0;
10302}
10303_ACEOF
10304ac_clean_files_save=$ac_clean_files
10305ac_clean_files="$ac_clean_files a.out a.exe b.out"
10306# Try to create an executable without -o first, disregard a.out.
10307# It will help us diagnose broken compilers, and finding out an intuition
10308# of exeext.
eea650d8
VS
10309echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10310echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10311ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10312if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10313 (eval $ac_link_default) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; then
10317 # Find the output, starting from the most likely. This scheme is
10318# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10319# resort.
10320
10321# Be careful to initialize this variable, since it used to be cached.
10322# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10323ac_cv_exeext=
10324# b.out is created by i960 compilers.
10325for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10326do
10327 test -f "$ac_file" || continue
10328 case $ac_file in
10329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
eea650d8 10330 ;;
e6cc62c6 10331 conftest.$ac_ext )
eea650d8
VS
10332 # This is the source file.
10333 ;;
e6cc62c6 10334 [ab].out )
eea650d8
VS
10335 # We found the default executable, but exeext='' is most
10336 # certainly right.
10337 break;;
e6cc62c6 10338 *.* )
eea650d8
VS
10339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10340 # FIXME: I believe we export ac_cv_exeext for Libtool,
10341 # but it would be cool to find out if it's true. Does anybody
10342 # maintain Libtool? --akim.
10343 export ac_cv_exeext
10344 break;;
e6cc62c6 10345 * )
eea650d8 10346 break;;
e6cc62c6
VS
10347 esac
10348done
10349else
10350 echo "$as_me: failed program was:" >&5
10351sed 's/^/| /' conftest.$ac_ext >&5
10352
10353{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10354See \`config.log' for more details." >&5
10355echo "$as_me: error: C compiler cannot create executables
10356See \`config.log' for more details." >&2;}
10357 { (exit 77); exit 77; }; }
10358fi
10359
10360ac_exeext=$ac_cv_exeext
10361echo "$as_me:$LINENO: result: $ac_file" >&5
10362echo "${ECHO_T}$ac_file" >&6
10363
10364# Check the compiler produces executables we can run. If not, either
10365# the compiler is broken, or we cross compile.
10366echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10367echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10368# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10369# If not cross compiling, check that we can run a simple program.
10370if test "$cross_compiling" != yes; then
10371 if { ac_try='./$ac_file'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 cross_compiling=no
698dcdb6 10378 else
e6cc62c6
VS
10379 if test "$cross_compiling" = maybe; then
10380 cross_compiling=yes
10381 else
10382 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10383If you meant to cross compile, use \`--host'.
10384See \`config.log' for more details." >&5
10385echo "$as_me: error: cannot run C compiled programs.
10386If you meant to cross compile, use \`--host'.
10387See \`config.log' for more details." >&2;}
10388 { (exit 1); exit 1; }; }
10389 fi
698dcdb6 10390 fi
52127426 10391fi
e6cc62c6
VS
10392echo "$as_me:$LINENO: result: yes" >&5
10393echo "${ECHO_T}yes" >&6
10394
10395rm -f a.out a.exe conftest$ac_cv_exeext b.out
10396ac_clean_files=$ac_clean_files_save
10397# Check the compiler produces executables we can run. If not, either
10398# the compiler is broken, or we cross compile.
10399echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10400echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10401echo "$as_me:$LINENO: result: $cross_compiling" >&5
10402echo "${ECHO_T}$cross_compiling" >&6
10403
10404echo "$as_me:$LINENO: checking for suffix of executables" >&5
10405echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; then
10411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10412# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10413# work properly (i.e., refer to `conftest.exe'), while it won't with
10414# `rm'.
10415for ac_file in conftest.exe conftest conftest.*; do
10416 test -f "$ac_file" || continue
10417 case $ac_file in
10418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
eea650d8
VS
10420 export ac_cv_exeext
10421 break;;
e6cc62c6
VS
10422 * ) break;;
10423 esac
10424done
5c6fa7d2 10425else
e6cc62c6
VS
10426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10427See \`config.log' for more details." >&5
10428echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10429See \`config.log' for more details." >&2;}
10430 { (exit 1); exit 1; }; }
10431fi
10432
10433rm -f conftest$ac_cv_exeext
10434echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10435echo "${ECHO_T}$ac_cv_exeext" >&6
10436
10437rm -f conftest.$ac_ext
10438EXEEXT=$ac_cv_exeext
10439ac_exeext=$EXEEXT
10440echo "$as_me:$LINENO: checking for suffix of object files" >&5
10441echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10442if test "${ac_cv_objext+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451
10452int
10453main ()
10454{
f09359cf 10455
e6cc62c6
VS
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460rm -f conftest.o conftest.obj
10461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; then
10466 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10467 case $ac_file in
10468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10470 break;;
10471 esac
10472done
a0b9e27f 10473else
e6cc62c6
VS
10474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10478See \`config.log' for more details." >&5
10479echo "$as_me: error: cannot compute suffix of object files: cannot compile
10480See \`config.log' for more details." >&2;}
10481 { (exit 1); exit 1; }; }
a0b9e27f 10482fi
247f5006 10483
e6cc62c6
VS
10484rm -f conftest.$ac_cv_objext conftest.$ac_ext
10485fi
10486echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10487echo "${ECHO_T}$ac_cv_objext" >&6
10488OBJEXT=$ac_cv_objext
10489ac_objext=$OBJEXT
10490echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10491echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10492if test "${ac_cv_c_compiler_gnu+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10494else
e6cc62c6 10495 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10496/* confdefs.h. */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h. */
10501
10502int
10503main ()
10504{
10505#ifndef __GNUC__
10506 choke me
10507#endif
10508
10509 ;
10510 return 0;
10511}
10512_ACEOF
10513rm -f conftest.$ac_objext
10514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10515 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10516 ac_status=$?
eea650d8
VS
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
e6cc62c6
VS
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
eea650d8
VS
10522 { ac_try='test -z "$ac_c_werror_flag"
10523 || test ! -s conftest.err'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_compiler_gnu=yes
10536else
10537 echo "$as_me: failed program was:" >&5
10538sed 's/^/| /' conftest.$ac_ext >&5
10539
10540ac_compiler_gnu=no
10541fi
eea650d8 10542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10543ac_cv_c_compiler_gnu=$ac_compiler_gnu
10544
10545fi
10546echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10547echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10548GCC=`test $ac_compiler_gnu = yes && echo yes`
10549ac_test_CFLAGS=${CFLAGS+set}
10550ac_save_CFLAGS=$CFLAGS
10551CFLAGS="-g"
10552echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10553echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10554if test "${ac_cv_prog_cc_g+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
10563
10564int
10565main ()
10566{
10567
10568 ;
10569 return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext
10573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10574 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10575 ac_status=$?
eea650d8
VS
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
e6cc62c6
VS
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
eea650d8
VS
10581 { ac_try='test -z "$ac_c_werror_flag"
10582 || test ! -s conftest.err'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10f2d63a
VZ
10594 ac_cv_prog_cc_g=yes
10595else
e6cc62c6
VS
10596 echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10598
e6cc62c6 10599ac_cv_prog_cc_g=no
10f2d63a 10600fi
eea650d8 10601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10602fi
10603echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10604echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10605if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10606 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10607elif test $ac_cv_prog_cc_g = yes; then
10608 if test "$GCC" = yes; then
10f2d63a
VZ
10609 CFLAGS="-g -O2"
10610 else
f09359cf 10611 CFLAGS="-g"
10f2d63a 10612 fi
5c0a20c3 10613else
f09359cf
VS
10614 if test "$GCC" = yes; then
10615 CFLAGS="-O2"
10616 else
10617 CFLAGS=
10618 fi
10f2d63a 10619fi
e6cc62c6
VS
10620echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10621echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10622if test "${ac_cv_prog_cc_stdc+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 ac_cv_prog_cc_stdc=no
10626ac_save_CC=$CC
10627cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10628/* confdefs.h. */
10629_ACEOF
10630cat confdefs.h >>conftest.$ac_ext
10631cat >>conftest.$ac_ext <<_ACEOF
10632/* end confdefs.h. */
10633#include <stdarg.h>
10634#include <stdio.h>
10635#include <sys/types.h>
10636#include <sys/stat.h>
10637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10638struct buf { int x; };
10639FILE * (*rcsopen) (struct buf *, struct stat *, int);
10640static char *e (p, i)
10641 char **p;
10642 int i;
10643{
10644 return p[i];
10645}
10646static char *f (char * (*g) (char **, int), char **p, ...)
10647{
10648 char *s;
10649 va_list v;
10650 va_start (v,p);
10651 s = g (p, va_arg (v,int));
10652 va_end (v);
10653 return s;
10654}
eea650d8
VS
10655
10656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10657 function prototypes and stuff, but not '\xHH' hex character constants.
10658 These don't provoke an error unfortunately, instead are silently treated
10659 as 'x'. The following induces an error, until -std1 is added to get
10660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10661 array size at least. It's necessary to write '\x00'==0 to get something
10662 that's true only with -std1. */
10663int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10664
e6cc62c6
VS
10665int test (int i, double x);
10666struct s1 {int (*f) (int a);};
10667struct s2 {int (*f) (double a);};
10668int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10669int argc;
10670char **argv;
10671int
10672main ()
10673{
10674return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10675 ;
10676 return 0;
10677}
10678_ACEOF
10679# Don't try gcc -ansi; that turns off useful extensions and
10680# breaks some systems' header files.
10681# AIX -qlanglvl=ansi
10682# Ultrix and OSF/1 -std1
10683# HP-UX 10.20 and later -Ae
10684# HP-UX older versions -Aa -D_HPUX_SOURCE
10685# SVR4 -Xc -D__EXTENSIONS__
10686for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10687do
10688 CC="$ac_save_CC $ac_arg"
10689 rm -f conftest.$ac_objext
10690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10691 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10692 ac_status=$?
eea650d8
VS
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
e6cc62c6
VS
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
eea650d8
VS
10698 { ac_try='test -z "$ac_c_werror_flag"
10699 || test ! -s conftest.err'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_prog_cc_stdc=$ac_arg
10712break
10713else
10714 echo "$as_me: failed program was:" >&5
10715sed 's/^/| /' conftest.$ac_ext >&5
10716
10717fi
eea650d8 10718rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10719done
10720rm -f conftest.$ac_ext conftest.$ac_objext
10721CC=$ac_save_CC
10722
10723fi
10724
10725case "x$ac_cv_prog_cc_stdc" in
10726 x|xno)
10727 echo "$as_me:$LINENO: result: none needed" >&5
10728echo "${ECHO_T}none needed" >&6 ;;
10729 *)
10730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10731echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10732 CC="$CC $ac_cv_prog_cc_stdc" ;;
10733esac
10734
10735# Some people use a C++ compiler to compile C. Since we use `exit',
10736# in C++ we need to declare it. In case someone uses the same compiler
10737# for both compiling C and C++ we need to have the C++ compiler decide
10738# the declaration of exit, since it's the most demanding environment.
10739cat >conftest.$ac_ext <<_ACEOF
10740#ifndef __cplusplus
10741 choke me
10742#endif
10743_ACEOF
10744rm -f conftest.$ac_objext
10745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10746 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10747 ac_status=$?
eea650d8
VS
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
e6cc62c6
VS
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
eea650d8
VS
10753 { ac_try='test -z "$ac_c_werror_flag"
10754 || test ! -s conftest.err'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; } &&
10760 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; }; then
10766 for ac_declaration in \
eea650d8 10767 '' \
e6cc62c6
VS
10768 'extern "C" void std::exit (int) throw (); using std::exit;' \
10769 'extern "C" void std::exit (int); using std::exit;' \
10770 'extern "C" void exit (int) throw ();' \
10771 'extern "C" void exit (int);' \
10772 'void exit (int);'
10773do
10774 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h. */
130711ba 10780$ac_declaration
eea650d8 10781#include <stdlib.h>
e6cc62c6
VS
10782int
10783main ()
10784{
10785exit (42);
10786 ;
10787 return 0;
10788}
10789_ACEOF
10790rm -f conftest.$ac_objext
10791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10792 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10793 ac_status=$?
eea650d8
VS
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
e6cc62c6
VS
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
eea650d8
VS
10799 { ac_try='test -z "$ac_c_werror_flag"
10800 || test ! -s conftest.err'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 :
10813else
10814 echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
10817continue
10818fi
eea650d8 10819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10820 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10821/* confdefs.h. */
10822_ACEOF
10823cat confdefs.h >>conftest.$ac_ext
10824cat >>conftest.$ac_ext <<_ACEOF
10825/* end confdefs.h. */
10826$ac_declaration
10827int
10828main ()
10829{
10830exit (42);
10831 ;
10832 return 0;
10833}
10834_ACEOF
10835rm -f conftest.$ac_objext
10836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10837 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10838 ac_status=$?
eea650d8
VS
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
e6cc62c6
VS
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
eea650d8
VS
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 break
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862fi
eea650d8 10863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10864done
10865rm -f conftest*
10866if test -n "$ac_declaration"; then
10867 echo '#ifdef __cplusplus' >>confdefs.h
10868 echo $ac_declaration >>confdefs.h
10869 echo '#endif' >>confdefs.h
10870fi
10871
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876fi
eea650d8 10877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10878ac_ext=c
10879ac_cpp='$CPP $CPPFLAGS'
10880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10883
10884
e6cc62c6
VS
10885
10886ac_ext=c
10887ac_cpp='$CPP $CPPFLAGS'
10888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10892echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10893# On Suns, sometimes $CPP names a directory.
10894if test -n "$CPP" && test -d "$CPP"; then
10895 CPP=
10896fi
10897if test -z "$CPP"; then
e6cc62c6
VS
10898 if test "${ac_cv_prog_CPP+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901 # Double quotes because CPP needs to be expanded
10902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10903 do
10904 ac_preproc_ok=false
10905for ac_c_preproc_warn_flag in '' yes
10906do
10907 # Use a header file that comes with gcc, so configuring glibc
10908 # with a fresh cross-compiler works.
10909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 # <limits.h> exists even on freestanding compilers.
10f2d63a 10911 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10912 # not just through cpp. "Syntax error" is here to catch this case.
10913 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919#ifdef __STDC__
10920# include <limits.h>
10921#else
10922# include <assert.h>
10923#endif
eea650d8 10924 Syntax error
e6cc62c6
VS
10925_ACEOF
10926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 10936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10937 else
10938 ac_cpp_err=
10939 fi
10f2d63a 10940else
e6cc62c6
VS
10941 ac_cpp_err=yes
10942fi
10943if test -z "$ac_cpp_err"; then
a0b9e27f 10944 :
247f5006 10945else
e6cc62c6
VS
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 # Broken: fails on valid input.
10950continue
10951fi
10952rm -f conftest.err conftest.$ac_ext
10953
10954 # OK, works on sane cases. Now check whether non-existent headers
10955 # can be detected and how.
10956 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10957/* confdefs.h. */
10958_ACEOF
10959cat confdefs.h >>conftest.$ac_ext
10960cat >>conftest.$ac_ext <<_ACEOF
10961/* end confdefs.h. */
10962#include <ac_nonexistent.h>
10963_ACEOF
10964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } >/dev/null; then
10972 if test -s conftest.err; then
10973 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 10974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10975 else
10976 ac_cpp_err=
10977 fi
10f2d63a 10978else
e6cc62c6 10979 ac_cpp_err=yes
579d8138 10980fi
e6cc62c6
VS
10981if test -z "$ac_cpp_err"; then
10982 # Broken: success on invalid input.
10983continue
10984else
10985 echo "$as_me: failed program was:" >&5
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 # Passes both tests.
10989ac_preproc_ok=:
10990break
52127426 10991fi
e6cc62c6
VS
10992rm -f conftest.err conftest.$ac_ext
10993
10994done
10995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10996rm -f conftest.err conftest.$ac_ext
10997if $ac_preproc_ok; then
10998 break
8284b0c5 10999fi
e6cc62c6
VS
11000
11001 done
11002 ac_cv_prog_CPP=$CPP
11003
11004fi
11005 CPP=$ac_cv_prog_CPP
11006else
11007 ac_cv_prog_CPP=$CPP
11008fi
11009echo "$as_me:$LINENO: result: $CPP" >&5
11010echo "${ECHO_T}$CPP" >&6
11011ac_preproc_ok=false
11012for ac_c_preproc_warn_flag in '' yes
11013do
11014 # Use a header file that comes with gcc, so configuring glibc
11015 # with a fresh cross-compiler works.
11016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017 # <limits.h> exists even on freestanding compilers.
11018 # On the NeXT, cc -E runs the code through the compiler's parser,
11019 # not just through cpp. "Syntax error" is here to catch this case.
11020 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026#ifdef __STDC__
11027# include <limits.h>
11028#else
11029# include <assert.h>
11030#endif
eea650d8 11031 Syntax error
e6cc62c6
VS
11032_ACEOF
11033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } >/dev/null; then
11041 if test -s conftest.err; then
11042 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 11043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11044 else
11045 ac_cpp_err=
11046 fi
11047else
11048 ac_cpp_err=yes
11049fi
11050if test -z "$ac_cpp_err"; then
11051 :
11052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 # Broken: fails on valid input.
11057continue
11058fi
11059rm -f conftest.err conftest.$ac_ext
11060
11061 # OK, works on sane cases. Now check whether non-existent headers
11062 # can be detected and how.
11063 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069#include <ac_nonexistent.h>
11070_ACEOF
11071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } >/dev/null; then
11079 if test -s conftest.err; then
11080 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 11081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11082 else
11083 ac_cpp_err=
11084 fi
11085else
11086 ac_cpp_err=yes
11087fi
11088if test -z "$ac_cpp_err"; then
11089 # Broken: success on invalid input.
11090continue
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 # Passes both tests.
11096ac_preproc_ok=:
11097break
a0b9e27f 11098fi
e6cc62c6
VS
11099rm -f conftest.err conftest.$ac_ext
11100
11101done
11102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11103rm -f conftest.err conftest.$ac_ext
11104if $ac_preproc_ok; then
11105 :
11106else
11107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11108See \`config.log' for more details." >&5
11109echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11110See \`config.log' for more details." >&2;}
11111 { (exit 1); exit 1; }; }
11112fi
11113
11114ac_ext=c
11115ac_cpp='$CPP $CPPFLAGS'
11116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11118ac_compiler_gnu=$ac_cv_c_compiler_gnu
11119
11120
11121echo "$as_me:$LINENO: checking for egrep" >&5
11122echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11123if test "${ac_cv_prog_egrep+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11125else
e6cc62c6
VS
11126 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11127 then ac_cv_prog_egrep='grep -E'
11128 else ac_cv_prog_egrep='egrep'
11129 fi
10f2d63a 11130fi
e6cc62c6
VS
11131echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11132echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11133 EGREP=$ac_cv_prog_egrep
11134
10f2d63a 11135
e6cc62c6
VS
11136if test $ac_cv_c_compiler_gnu = yes; then
11137 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11138echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11139if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11141else
11142 ac_pattern="Autoconf.*'x'"
e6cc62c6 11143 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
10f2d63a
VZ
11149#include <sgtty.h>
11150Autoconf TIOCGETP
e6cc62c6 11151_ACEOF
10f2d63a 11152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11153 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11154 ac_cv_prog_gcc_traditional=yes
11155else
10f2d63a
VZ
11156 ac_cv_prog_gcc_traditional=no
11157fi
11158rm -f conftest*
11159
8284b0c5 11160
10f2d63a 11161 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11162 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
10f2d63a
VZ
11168#include <termio.h>
11169Autoconf TCGETA
e6cc62c6 11170_ACEOF
10f2d63a 11171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11172 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11173 ac_cv_prog_gcc_traditional=yes
11174fi
11175rm -f conftest*
11176
11177 fi
11178fi
e6cc62c6
VS
11179echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11180echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11181 if test $ac_cv_prog_gcc_traditional = yes; then
11182 CC="$CC -traditional"
11183 fi
11184fi
11185
8284b0c5
MB
11186
11187
e6cc62c6
VS
11188
11189ac_ext=cc
1e487827 11190ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11194
698dcdb6 11195
ec603395 11196CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11197ac_ext=cc
11198ac_cpp='$CXXCPP $CPPFLAGS'
11199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11202if test -n "$ac_tool_prefix"; then
11203 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11204 do
11205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11207echo "$as_me:$LINENO: checking for $ac_word" >&5
11208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11209if test "${ac_cv_prog_CXX+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11211else
11212 if test -n "$CXX"; then
11213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11214else
e6cc62c6
VS
11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216for as_dir in $PATH
11217do
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11225 fi
11226done
11227done
11228
10f2d63a
VZ
11229fi
11230fi
e6cc62c6 11231CXX=$ac_cv_prog_CXX
10f2d63a 11232if test -n "$CXX"; then
e6cc62c6
VS
11233 echo "$as_me:$LINENO: result: $CXX" >&5
11234echo "${ECHO_T}$CXX" >&6
10f2d63a 11235else
e6cc62c6
VS
11236 echo "$as_me:$LINENO: result: no" >&5
11237echo "${ECHO_T}no" >&6
10f2d63a
VZ
11238fi
11239
e6cc62c6
VS
11240 test -n "$CXX" && break
11241 done
11242fi
11243if test -z "$CXX"; then
11244 ac_ct_CXX=$CXX
11245 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11246do
11247 # Extract the first word of "$ac_prog", so it can be a program name with args.
11248set dummy $ac_prog; ac_word=$2
11249echo "$as_me:$LINENO: checking for $ac_word" >&5
11250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11251if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254 if test -n "$ac_ct_CXX"; then
11255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11256else
11257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in $PATH
11259do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
11262 for ac_exec_ext in '' $ac_executable_extensions; do
11263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11264 ac_cv_prog_ac_ct_CXX="$ac_prog"
11265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11266 break 2
11267 fi
11268done
10f2d63a 11269done
a0b9e27f 11270
8284b0c5 11271fi
a0b9e27f 11272fi
e6cc62c6
VS
11273ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11274if test -n "$ac_ct_CXX"; then
11275 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11276echo "${ECHO_T}$ac_ct_CXX" >&6
11277else
11278 echo "$as_me:$LINENO: result: no" >&5
11279echo "${ECHO_T}no" >&6
a0b9e27f 11280fi
10f2d63a 11281
e6cc62c6
VS
11282 test -n "$ac_ct_CXX" && break
11283done
11284test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11285
11286 CXX=$ac_ct_CXX
11287fi
11288
11289
11290# Provide some information about the compiler.
11291echo "$as_me:$LINENO:" \
11292 "checking for C++ compiler version" >&5
11293ac_compiler=`set X $ac_compile; echo $2`
11294{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11295 (eval $ac_compiler --version </dev/null >&5) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }
11299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11300 (eval $ac_compiler -v </dev/null >&5) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }
11304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11305 (eval $ac_compiler -V </dev/null >&5) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }
11309
11310echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11311echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11312if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321
11322int
11323main ()
11324{
11325#ifndef __GNUC__
11326 choke me
11327#endif
10f2d63a 11328
e6cc62c6
VS
11329 ;
11330 return 0;
11331}
11332_ACEOF
11333rm -f conftest.$ac_objext
11334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11335 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11336 ac_status=$?
eea650d8
VS
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
e6cc62c6
VS
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
eea650d8
VS
11342 { ac_try='test -z "$ac_cxx_werror_flag"
11343 || test ! -s conftest.err'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_compiler_gnu=yes
11356else
11357 echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
11360ac_compiler_gnu=no
11361fi
eea650d8 11362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11364
11365fi
11366echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11367echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11368GXX=`test $ac_compiler_gnu = yes && echo yes`
11369ac_test_CXXFLAGS=${CXXFLAGS+set}
11370ac_save_CXXFLAGS=$CXXFLAGS
11371CXXFLAGS="-g"
11372echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11373echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11374if test "${ac_cv_prog_cxx_g+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383
11384int
11385main ()
11386{
f09359cf 11387
e6cc62c6
VS
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext
11393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11394 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11395 ac_status=$?
eea650d8
VS
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
e6cc62c6
VS
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
eea650d8
VS
11401 { ac_try='test -z "$ac_cxx_werror_flag"
11402 || test ! -s conftest.err'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
10f2d63a
VZ
11414 ac_cv_prog_cxx_g=yes
11415else
e6cc62c6
VS
11416 echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11418
e6cc62c6 11419ac_cv_prog_cxx_g=no
10f2d63a 11420fi
eea650d8 11421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11422fi
11423echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11424echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11425if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11426 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11427elif test $ac_cv_prog_cxx_g = yes; then
11428 if test "$GXX" = yes; then
10f2d63a
VZ
11429 CXXFLAGS="-g -O2"
11430 else
f09359cf 11431 CXXFLAGS="-g"
10f2d63a 11432 fi
5c0a20c3 11433else
f09359cf
VS
11434 if test "$GXX" = yes; then
11435 CXXFLAGS="-O2"
11436 else
11437 CXXFLAGS=
11438 fi
10f2d63a 11439fi
e6cc62c6 11440for ac_declaration in \
eea650d8 11441 '' \
e6cc62c6
VS
11442 'extern "C" void std::exit (int) throw (); using std::exit;' \
11443 'extern "C" void std::exit (int); using std::exit;' \
11444 'extern "C" void exit (int) throw ();' \
11445 'extern "C" void exit (int);' \
11446 'void exit (int);'
11447do
11448 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
130711ba 11454$ac_declaration
eea650d8 11455#include <stdlib.h>
e6cc62c6
VS
11456int
11457main ()
11458{
11459exit (42);
11460 ;
11461 return 0;
11462}
11463_ACEOF
11464rm -f conftest.$ac_objext
11465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11466 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11467 ac_status=$?
eea650d8
VS
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
e6cc62c6
VS
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
eea650d8
VS
11473 { ac_try='test -z "$ac_cxx_werror_flag"
11474 || test ! -s conftest.err'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 :
11487else
11488 echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491continue
11492fi
eea650d8 11493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11494 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500$ac_declaration
11501int
11502main ()
11503{
11504exit (42);
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext
11510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11511 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11512 ac_status=$?
eea650d8
VS
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
e6cc62c6
VS
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
eea650d8
VS
11518 { ac_try='test -z "$ac_cxx_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 break
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536fi
eea650d8 11537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11538done
11539rm -f conftest*
11540if test -n "$ac_declaration"; then
11541 echo '#ifdef __cplusplus' >>confdefs.h
11542 echo $ac_declaration >>confdefs.h
11543 echo '#endif' >>confdefs.h
11544fi
11545
11546ac_ext=cc
11547ac_cpp='$CXXCPP $CPPFLAGS'
11548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11551
11552
10f2d63a 11553ac_ext=c
10f2d63a 11554ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11558
11559
e6cc62c6
VS
11560if test -n "$ac_tool_prefix"; then
11561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11562set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11563echo "$as_me:$LINENO: checking for $ac_word" >&5
11564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565if test "${ac_cv_prog_RANLIB+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11567else
11568 if test -n "$RANLIB"; then
11569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11570else
e6cc62c6
VS
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582done
11583done
11584
10f2d63a
VZ
11585fi
11586fi
e6cc62c6 11587RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11588if test -n "$RANLIB"; then
e6cc62c6
VS
11589 echo "$as_me:$LINENO: result: $RANLIB" >&5
11590echo "${ECHO_T}$RANLIB" >&6
11591else
11592 echo "$as_me:$LINENO: result: no" >&5
11593echo "${ECHO_T}no" >&6
11594fi
11595
11596fi
11597if test -z "$ac_cv_prog_RANLIB"; then
11598 ac_ct_RANLIB=$RANLIB
11599 # Extract the first word of "ranlib", so it can be a program name with args.
11600set dummy ranlib; ac_word=$2
11601echo "$as_me:$LINENO: checking for $ac_word" >&5
11602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11603if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11605else
e6cc62c6
VS
11606 if test -n "$ac_ct_RANLIB"; then
11607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11608else
11609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $PATH
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_prog_ac_ct_RANLIB="ranlib"
11617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 break 2
11619 fi
11620done
11621done
11622
11623 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11624fi
11625fi
11626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11627if test -n "$ac_ct_RANLIB"; then
11628 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11629echo "${ECHO_T}$ac_ct_RANLIB" >&6
11630else
11631 echo "$as_me:$LINENO: result: no" >&5
11632echo "${ECHO_T}no" >&6
11633fi
11634
11635 RANLIB=$ac_ct_RANLIB
11636else
11637 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11638fi
11639
10f2d63a
VZ
11640
11641# Extract the first word of "ar", so it can be a program name with args.
11642set dummy ar; ac_word=$2
e6cc62c6
VS
11643echo "$as_me:$LINENO: checking for $ac_word" >&5
11644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11645if test "${ac_cv_prog_AR+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11647else
11648 if test -n "$AR"; then
11649 ac_cv_prog_AR="$AR" # Let the user override the test.
11650else
e6cc62c6
VS
11651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652for as_dir in $PATH
11653do
11654 IFS=$as_save_IFS
11655 test -z "$as_dir" && as_dir=.
11656 for ac_exec_ext in '' $ac_executable_extensions; do
11657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658 ac_cv_prog_AR="ar"
11659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 break 2
11661 fi
11662done
11663done
11664
10f2d63a
VZ
11665fi
11666fi
e6cc62c6 11667AR=$ac_cv_prog_AR
10f2d63a 11668if test -n "$AR"; then
e6cc62c6
VS
11669 echo "$as_me:$LINENO: result: $AR" >&5
11670echo "${ECHO_T}$AR" >&6
10f2d63a 11671else
e6cc62c6
VS
11672 echo "$as_me:$LINENO: result: no" >&5
11673echo "${ECHO_T}no" >&6
10f2d63a
VZ
11674fi
11675
911740e7
VS
11676if test "x$AR" = "x" ; then
11677 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11678echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11679 { (exit 1); exit 1; }; }
11680fi
8284b0c5 11681
6054113a 11682# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11683# so one script is as good as another. But avoid the broken or
11684# incompatible versions:
11685# SysV /etc/install, /usr/sbin/install
11686# SunOS /usr/etc/install
11687# IRIX /sbin/install
11688# AIX /bin/install
e6cc62c6 11689# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
eea650d8 11693# OS/2's system install, which has a completely different semantic
10f2d63a 11694# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11695echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11696echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11697if test -z "$INSTALL"; then
e6cc62c6
VS
11698if test "${ac_cv_path_install+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700else
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 # Account for people who put trailing slashes in PATH elements.
11707case $as_dir/ in
11708 ./ | .// | /cC/* | \
11709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
eea650d8 11710 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11711 /usr/ucb/* ) ;;
11712 *)
11713 # OSF1 and SCO ODT 3.0 have their own names for install.
11714 # Don't use installbsd from OSF since it installs stuff as root
11715 # by default.
11716 for ac_prog in ginstall scoinst install; do
11717 for ac_exec_ext in '' $ac_executable_extensions; do
eea650d8
VS
11718 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11719 if test $ac_prog = install &&
11720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11721 # AIX install. It has an incompatible calling convention.
11722 :
11723 elif test $ac_prog = install &&
11724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11725 # program-specific install script used by HP pwplus--don't use.
11726 :
11727 else
11728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11729 break 3
11730 fi
11731 fi
10f2d63a 11732 done
e6cc62c6
VS
11733 done
11734 ;;
11735esac
11736done
11737
10f2d63a
VZ
11738
11739fi
11740 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11741 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11742 else
11743 # As a last resort, use the slow shell script. We don't cache a
11744 # path for INSTALL within a source directory, because that will
11745 # break other packages using the cache if that directory is
11746 # removed, or if the path is relative.
e6cc62c6 11747 INSTALL=$ac_install_sh
10f2d63a
VZ
11748 fi
11749fi
e6cc62c6
VS
11750echo "$as_me:$LINENO: result: $INSTALL" >&5
11751echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11752
11753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11754# It thinks the first close brace ends the variable substitution.
11755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11756
e6cc62c6 11757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11758
10f2d63a
VZ
11759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11760
8284b0c5 11761
1d1b75ac
VZ
11762case ${INSTALL} in
11763 /* ) # Absolute
11764 ;;
4f5a7f74
VZ
11765 ?:* ) # Drive letter, considered as absolute.
11766 ;;
3bd8fb5f 11767 *)
1d1b75ac
VZ
11768 INSTALL=`pwd`/${INSTALL} ;;
11769esac
11770
4f5a7f74
VZ
11771case ${host} in
11772 *-hp-hpux* )
11773 INSTALL_DIR="mkdir"
11774 ;;
11775
11776 *) INSTALL_DIR="$INSTALL -d"
11777 ;;
11778esac
11779
8284b0c5 11780
6054113a
GD
11781case "${host}" in
11782
b5853384 11783 powerpc-*-darwin* )
eb99ae0b
GD
11784 INSTALL_PROGRAM="cp -fp"
11785 INSTALL_DATA="cp -fp"
6054113a
GD
11786 ;;
11787 *)
11788 ;;
d6853540 11789esac
698dcdb6 11790
10f2d63a
VZ
11791# Extract the first word of "strip", so it can be a program name with args.
11792set dummy strip; ac_word=$2
e6cc62c6
VS
11793echo "$as_me:$LINENO: checking for $ac_word" >&5
11794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795if test "${ac_cv_prog_STRIP+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11797else
11798 if test -n "$STRIP"; then
11799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11800else
e6cc62c6
VS
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_STRIP="strip"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812done
11813done
11814
10f2d63a
VZ
11815 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11816fi
11817fi
e6cc62c6 11818STRIP=$ac_cv_prog_STRIP
10f2d63a 11819if test -n "$STRIP"; then
e6cc62c6
VS
11820 echo "$as_me:$LINENO: result: $STRIP" >&5
11821echo "${ECHO_T}$STRIP" >&6
10f2d63a 11822else
e6cc62c6
VS
11823 echo "$as_me:$LINENO: result: no" >&5
11824echo "${ECHO_T}no" >&6
10f2d63a
VZ
11825fi
11826
5c6fa7d2 11827
e6cc62c6
VS
11828echo "$as_me:$LINENO: checking if make is GNU make" >&5
11829echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11830if test "${wx_cv_prog_makeisgnu+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11832else
e6cc62c6 11833
414eab6d 11834 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11835 egrep -s GNU > /dev/null); then
414eab6d
VZ
11836 wx_cv_prog_makeisgnu="yes"
11837 else
11838 wx_cv_prog_makeisgnu="no"
11839 fi
11840
11841fi
e6cc62c6
VS
11842echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11843echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11844
11845if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11846 IF_GNU_MAKE=""
11847else
11848 IF_GNU_MAKE="#"
11849fi
11850
8284b0c5
MB
11851
11852
414eab6d 11853if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11854echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11855echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11856if test "${wx_cv_prog_makevpath+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11858else
e6cc62c6 11859
10f2d63a
VZ
11860cat - << EOF > confMake
11861check : file
11862 cp \$? \$@
11863 cp \$? final_file
11864EOF
11865
11866if test ! -d sub ; then
11867 mkdir sub
11868fi
11869echo dummy > sub/file
f6bcfd97 11870${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11871RESULT=$?
11872rm -f sub/file check final_file confMake
11873rmdir sub
11874if test "$RESULT" = 0; then
04e7a216 11875 wx_cv_prog_makevpath="yes"
10f2d63a 11876else
04e7a216
VZ
11877 wx_cv_prog_makevpath="no"
11878fi
11879
11880fi
e6cc62c6
VS
11881echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11882echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11883
11884if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11885{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11886You need a make-utility that is able to use the variable
11887VPATH correctly.
11888If your version of make does not support VPATH correctly,
11889please install GNU-make (possibly as gmake), and start
11890configure with the following command:
11891export MAKE=gmake; ./configure for sh-type shells
11892setenv MAKE gmake; ./configure for csh-type shells
11893Also please do remember to use gmake in this case every time
11894you are trying to compile.
e6cc62c6
VS
11895" >&5
11896echo "$as_me: error:
11897You need a make-utility that is able to use the variable
11898VPATH correctly.
11899If your version of make does not support VPATH correctly,
11900please install GNU-make (possibly as gmake), and start
11901configure with the following command:
11902export MAKE=gmake; ./configure for sh-type shells
11903setenv MAKE gmake; ./configure for csh-type shells
11904Also please do remember to use gmake in this case every time
11905you are trying to compile.
11906" >&2;}
11907 { (exit 1); exit 1; }; }
11908fi fi
e6cc62c6
VS
11909echo "$as_me:$LINENO: checking whether ln -s works" >&5
11910echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11911LN_S=$as_ln_s
11912if test "$LN_S" = "ln -s"; then
11913 echo "$as_me:$LINENO: result: yes" >&5
11914echo "${ECHO_T}yes" >&6
10f2d63a 11915else
e6cc62c6
VS
11916 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11917echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11918fi
5c6fa7d2 11919
247f5006 11920
2b5f62a0
VZ
11921case "${host}" in
11922 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11923 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11924 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11925echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11926if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11928else
e6cc62c6 11929 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11930LIBS="-lcExt $LIBS"
e6cc62c6 11931cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
11937
2b5f62a0 11938/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11939#ifdef __cplusplus
11940extern "C"
11941#endif
2b5f62a0 11942/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11943 builtin and then its argument prototype would still apply. */
11944char drand48 ();
11945int
11946main ()
11947{
11948drand48 ();
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
11954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 11955 (eval $ac_link) 2>conftest.er1
e6cc62c6 11956 ac_status=$?
eea650d8
VS
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
e6cc62c6
VS
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
eea650d8
VS
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_lib_cExt_drand48=yes
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980ac_cv_lib_cExt_drand48=no
11981fi
eea650d8
VS
11982rm -f conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11984LIBS=$ac_check_lib_save_LIBS
11985fi
11986echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11987echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11988if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11989 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11990fi
11991
11992 else
11993 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11994 fi
73d617c9
MB
11995 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11996echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11997if test "${wx_cv_gcc3+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
12000
12001 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
3527f29c 12007
73d617c9
MB
12008int
12009main ()
12010{
12011
12012 #if (__GNUC__ < 3)
12013 #error old gcc
12014 #endif
12015
12016 ;
12017 return 0;
12018}
12019_ACEOF
12020rm -f conftest.$ac_objext
12021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12022 (eval $ac_compile) 2>conftest.er1
73d617c9 12023 ac_status=$?
eea650d8
VS
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
73d617c9
MB
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
eea650d8
VS
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042
12043 wx_cv_gcc3=yes
12044
12045else
12046 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049
12050 wx_cv_gcc3=no
12051
12052
12053fi
eea650d8 12054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
12055
12056fi
12057echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12058echo "${ECHO_T}$wx_cv_gcc3" >&6
12059 if test "$wx_cv_gcc3" = "no"; then
12060 LIBS="$LIBS -lstdcpp"
12061 else
12062 LIBS="$LIBS -lstdcxx"
12063 fi
2b5f62a0
VZ
12064 ;;
12065esac
12066
a0b9e27f 12067
01aa5863
VS
12068if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12069 echo "$as_me:$LINENO: checking for strings.h" >&5
12070echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12071if test "${ac_cv_header_strings_h+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 ac_cv_header_strings_h=no
12075fi
12076echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12077echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12078 if test "$ac_cv_header_strings_h" = "no"; then
12079 echo "$as_me:$LINENO: result: forced no into cache" >&5
12080echo "${ECHO_T}forced no into cache" >&6
12081 else
12082 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12083echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12084 fi
12085fi
12086echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12087echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12088if test "${ac_cv_header_stdc+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097#include <stdlib.h>
12098#include <stdarg.h>
12099#include <string.h>
12100#include <float.h>
247f5006 12101
e6cc62c6
VS
12102int
12103main ()
12104{
90dd450c 12105
e6cc62c6
VS
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest.$ac_objext
12111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12112 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12113 ac_status=$?
eea650d8
VS
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
e6cc62c6
VS
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
eea650d8
VS
12119 { ac_try='test -z "$ac_c_werror_flag"
12120 || test ! -s conftest.err'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_header_stdc=yes
8284b0c5 12133else
e6cc62c6
VS
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137ac_cv_header_stdc=no
21d1c967 12138fi
eea650d8 12139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12140
e6cc62c6
VS
12141if test $ac_cv_header_stdc = yes; then
12142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12143 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
12149#include <string.h>
12150
12151_ACEOF
12152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12153 $EGREP "memchr" >/dev/null 2>&1; then
12154 :
12155else
12156 ac_cv_header_stdc=no
3a922bb4 12157fi
a0b9e27f 12158rm -f conftest*
e6cc62c6 12159
90dd450c 12160fi
e6cc62c6
VS
12161
12162if test $ac_cv_header_stdc = yes; then
12163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12164 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
12170#include <stdlib.h>
12171
12172_ACEOF
12173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174 $EGREP "free" >/dev/null 2>&1; then
12175 :
a0b9e27f 12176else
e6cc62c6 12177 ac_cv_header_stdc=no
21d1c967 12178fi
e6cc62c6 12179rm -f conftest*
247f5006
VZ
12180
12181fi
e6cc62c6
VS
12182
12183if test $ac_cv_header_stdc = yes; then
12184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12185 if test "$cross_compiling" = yes; then
12186 :
12187else
12188 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h. */
12194#include <ctype.h>
12195#if ((' ' & 0x0FF) == 0x020)
12196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12198#else
12199# define ISLOWER(c) \
eea650d8
VS
12200 (('a' <= (c) && (c) <= 'i') \
12201 || ('j' <= (c) && (c) <= 'r') \
12202 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12204#endif
12205
12206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12207int
12208main ()
12209{
12210 int i;
12211 for (i = 0; i < 256; i++)
12212 if (XOR (islower (i), ISLOWER (i))
eea650d8 12213 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12214 exit(2);
12215 exit (0);
12216}
12217_ACEOF
12218rm -f conftest$ac_exeext
12219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 :
a0b9e27f 12230else
e6cc62c6
VS
12231 echo "$as_me: program exited with status $ac_status" >&5
12232echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235( exit $ac_status )
12236ac_cv_header_stdc=no
12237fi
eea650d8 12238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12239fi
12240fi
12241fi
12242echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12243echo "${ECHO_T}$ac_cv_header_stdc" >&6
12244if test $ac_cv_header_stdc = yes; then
12245
12246cat >>confdefs.h <<\_ACEOF
12247#define STDC_HEADERS 1
12248_ACEOF
12249
a0b9e27f 12250fi
e6cc62c6
VS
12251
12252# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
eea650d8 12263 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12264do
12265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12266echo "$as_me:$LINENO: checking for $ac_header" >&5
12267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12268if eval "test \"\${$as_ac_Header+set}\" = set"; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277$ac_includes_default
12278
12279#include <$ac_header>
12280_ACEOF
12281rm -f conftest.$ac_objext
12282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12283 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12284 ac_status=$?
eea650d8
VS
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
e6cc62c6
VS
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
eea650d8
VS
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "$as_ac_Header=yes"
12304else
12305 echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308eval "$as_ac_Header=no"
12309fi
eea650d8 12310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12311fi
12312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12314if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317_ACEOF
12318
12319fi
12320
a0b9e27f 12321done
90dd450c 12322
e6cc62c6
VS
12323
12324
12325for ac_header in strings.h
21d1c967 12326do
e6cc62c6
VS
12327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328if eval "test \"\${$as_ac_Header+set}\" = set"; then
12329 echo "$as_me:$LINENO: checking for $ac_header" >&5
12330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12331if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333fi
12334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12336else
12337 # Is the header compilable?
12338echo "$as_me:$LINENO: checking $ac_header usability" >&5
12339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12340cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h. */
12346$ac_includes_default
12347#include <$ac_header>
12348_ACEOF
12349rm -f conftest.$ac_objext
12350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12351 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12352 ac_status=$?
eea650d8
VS
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
e6cc62c6
VS
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
eea650d8
VS
12358 { ac_try='test -z "$ac_c_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_header_compiler=yes
12372else
12373 echo "$as_me: failed program was:" >&5
12374sed 's/^/| /' conftest.$ac_ext >&5
12375
12376ac_header_compiler=no
12377fi
eea650d8 12378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380echo "${ECHO_T}$ac_header_compiler" >&6
12381
12382# Is the header present?
12383echo "$as_me:$LINENO: checking $ac_header presence" >&5
12384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12385cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
12391#include <$ac_header>
12392_ACEOF
12393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } >/dev/null; then
12401 if test -s conftest.err; then
12402 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12404 else
12405 ac_cpp_err=
12406 fi
12407else
12408 ac_cpp_err=yes
12409fi
12410if test -z "$ac_cpp_err"; then
12411 ac_header_preproc=yes
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_header_preproc=no
12417fi
12418rm -f conftest.err conftest.$ac_ext
12419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420echo "${ECHO_T}$ac_header_preproc" >&6
12421
12422# So? What about this header?
eea650d8
VS
12423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12424 yes:no: )
e6cc62c6
VS
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429 ac_header_preproc=yes
e6cc62c6 12430 ;;
eea650d8 12431 no:yes:* )
e6cc62c6
VS
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12444 (
12445 cat <<\_ASBOX
eea650d8
VS
12446## ----------------------------------------- ##
12447## Report this to wx-dev@lists.wxwindows.org ##
12448## ----------------------------------------- ##
e6cc62c6
VS
12449_ASBOX
12450 ) |
12451 sed "s/^/$as_me: WARNING: /" >&2
12452 ;;
12453esac
12454echo "$as_me:$LINENO: checking for $ac_header" >&5
12455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12456if eval "test \"\${$as_ac_Header+set}\" = set"; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458else
eea650d8 12459 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 12460fi
e6cc62c6
VS
12461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12463
a0b9e27f 12464fi
e6cc62c6
VS
12465if test `eval echo '${'$as_ac_Header'}'` = yes; then
12466 cat >>confdefs.h <<_ACEOF
12467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12468_ACEOF
12469
12470fi
12471
12472done
12473
e6cc62c6
VS
12474
12475
12476for ac_header in stdlib.h
12477do
12478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12479if eval "test \"\${$as_ac_Header+set}\" = set"; then
12480 echo "$as_me:$LINENO: checking for $ac_header" >&5
12481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484fi
12485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12487else
12488 # Is the header compilable?
12489echo "$as_me:$LINENO: checking $ac_header usability" >&5
12490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12491cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12492/* confdefs.h. */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h. */
12497$ac_includes_default
12498#include <$ac_header>
12499_ACEOF
12500rm -f conftest.$ac_objext
12501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12502 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12503 ac_status=$?
eea650d8
VS
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
e6cc62c6
VS
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
eea650d8
VS
12509 { ac_try='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_header_compiler=yes
12523else
12524 echo "$as_me: failed program was:" >&5
12525sed 's/^/| /' conftest.$ac_ext >&5
12526
12527ac_header_compiler=no
12528fi
eea650d8 12529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531echo "${ECHO_T}$ac_header_compiler" >&6
12532
12533# Is the header present?
12534echo "$as_me:$LINENO: checking $ac_header presence" >&5
12535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12536cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h. */
12542#include <$ac_header>
12543_ACEOF
12544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } >/dev/null; then
12552 if test -s conftest.err; then
12553 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12555 else
12556 ac_cpp_err=
12557 fi
12558else
12559 ac_cpp_err=yes
12560fi
12561if test -z "$ac_cpp_err"; then
12562 ac_header_preproc=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_header_preproc=no
12568fi
12569rm -f conftest.err conftest.$ac_ext
12570echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12571echo "${ECHO_T}$ac_header_preproc" >&6
12572
12573# So? What about this header?
eea650d8
VS
12574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12575 yes:no: )
e6cc62c6
VS
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12579echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12580 ac_header_preproc=yes
e6cc62c6 12581 ;;
eea650d8 12582 no:yes:* )
e6cc62c6
VS
12583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12584echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12586echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12588echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12590echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12594echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12595 (
12596 cat <<\_ASBOX
eea650d8
VS
12597## ----------------------------------------- ##
12598## Report this to wx-dev@lists.wxwindows.org ##
12599## ----------------------------------------- ##
e6cc62c6
VS
12600_ASBOX
12601 ) |
12602 sed "s/^/$as_me: WARNING: /" >&2
12603 ;;
12604esac
12605echo "$as_me:$LINENO: checking for $ac_header" >&5
12606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12607if eval "test \"\${$as_ac_Header+set}\" = set"; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12609else
eea650d8 12610 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12611fi
12612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12614
21d1c967 12615fi
e6cc62c6
VS
12616if test `eval echo '${'$as_ac_Header'}'` = yes; then
12617 cat >>confdefs.h <<_ACEOF
12618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12619_ACEOF
12620
12621fi
12622
21d1c967 12623done
4f14bcd8 12624
5c6fa7d2 12625
e6cc62c6 12626for ac_header in malloc.h
21d1c967 12627do
e6cc62c6
VS
12628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12629if eval "test \"\${$as_ac_Header+set}\" = set"; then
12630 echo "$as_me:$LINENO: checking for $ac_header" >&5
12631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12632if eval "test \"\${$as_ac_Header+set}\" = set"; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634fi
12635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12637else
12638 # Is the header compilable?
12639echo "$as_me:$LINENO: checking $ac_header usability" >&5
12640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12641cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
12647$ac_includes_default
12648#include <$ac_header>
12649_ACEOF
12650rm -f conftest.$ac_objext
12651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12652 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12653 ac_status=$?
eea650d8
VS
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
e6cc62c6
VS
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
eea650d8
VS
12659 { ac_try='test -z "$ac_c_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_header_compiler=yes
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677ac_header_compiler=no
12678fi
eea650d8 12679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12681echo "${ECHO_T}$ac_header_compiler" >&6
12682
12683# Is the header present?
12684echo "$as_me:$LINENO: checking $ac_header presence" >&5
12685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12686cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692#include <$ac_header>
12693_ACEOF
12694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } >/dev/null; then
12702 if test -s conftest.err; then
12703 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12705 else
12706 ac_cpp_err=
12707 fi
12708else
12709 ac_cpp_err=yes
12710fi
12711if test -z "$ac_cpp_err"; then
12712 ac_header_preproc=yes
12713else
12714 echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
12717 ac_header_preproc=no
12718fi
12719rm -f conftest.err conftest.$ac_ext
12720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12721echo "${ECHO_T}$ac_header_preproc" >&6
12722
12723# So? What about this header?
eea650d8
VS
12724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12725 yes:no: )
e6cc62c6
VS
12726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12730 ac_header_preproc=yes
e6cc62c6 12731 ;;
eea650d8 12732 no:yes:* )
e6cc62c6
VS
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12745 (
12746 cat <<\_ASBOX
eea650d8
VS
12747## ----------------------------------------- ##
12748## Report this to wx-dev@lists.wxwindows.org ##
12749## ----------------------------------------- ##
e6cc62c6
VS
12750_ASBOX
12751 ) |
12752 sed "s/^/$as_me: WARNING: /" >&2
12753 ;;
12754esac
12755echo "$as_me:$LINENO: checking for $ac_header" >&5
12756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12757if eval "test \"\${$as_ac_Header+set}\" = set"; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
eea650d8 12760 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12761fi
e6cc62c6
VS
12762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12764
21d1c967 12765fi
e6cc62c6
VS
12766if test `eval echo '${'$as_ac_Header'}'` = yes; then
12767 cat >>confdefs.h <<_ACEOF
12768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12769_ACEOF
12770
12771fi
12772
12773done
12774
12775
12776for ac_header in unistd.h
12777do
12778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779if eval "test \"\${$as_ac_Header+set}\" = set"; then
12780 echo "$as_me:$LINENO: checking for $ac_header" >&5
12781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12782if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784fi
12785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12787else
12788 # Is the header compilable?
12789echo "$as_me:$LINENO: checking $ac_header usability" >&5
12790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12791cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797$ac_includes_default
12798#include <$ac_header>
12799_ACEOF
12800rm -f conftest.$ac_objext
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12802 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12803 ac_status=$?
eea650d8
VS
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
e6cc62c6
VS
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
eea650d8
VS
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_header_compiler=yes
12823else
12824 echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827ac_header_compiler=no
12828fi
eea650d8 12829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12831echo "${ECHO_T}$ac_header_compiler" >&6
12832
12833# Is the header present?
12834echo "$as_me:$LINENO: checking $ac_header presence" >&5
12835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12836cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842#include <$ac_header>
12843_ACEOF
12844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } >/dev/null; then
12852 if test -s conftest.err; then
12853 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12855 else
12856 ac_cpp_err=
12857 fi
a0b9e27f 12858else
e6cc62c6
VS
12859 ac_cpp_err=yes
12860fi
12861if test -z "$ac_cpp_err"; then
12862 ac_header_preproc=yes
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_header_preproc=no
12868fi
12869rm -f conftest.err conftest.$ac_ext
12870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12871echo "${ECHO_T}$ac_header_preproc" >&6
12872
12873# So? What about this header?
eea650d8
VS
12874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12875 yes:no: )
e6cc62c6
VS
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12880 ac_header_preproc=yes
e6cc62c6 12881 ;;
eea650d8 12882 no:yes:* )
e6cc62c6
VS
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12895 (
12896 cat <<\_ASBOX
eea650d8
VS
12897## ----------------------------------------- ##
12898## Report this to wx-dev@lists.wxwindows.org ##
12899## ----------------------------------------- ##
e6cc62c6
VS
12900_ASBOX
12901 ) |
12902 sed "s/^/$as_me: WARNING: /" >&2
12903 ;;
12904esac
12905echo "$as_me:$LINENO: checking for $ac_header" >&5
12906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12907if eval "test \"\${$as_ac_Header+set}\" = set"; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909else
eea650d8 12910 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12911fi
12912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12914
12915fi
12916if test `eval echo '${'$as_ac_Header'}'` = yes; then
12917 cat >>confdefs.h <<_ACEOF
12918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12919_ACEOF
12920
d4158b5d 12921fi
e6cc62c6 12922
21d1c967 12923done
f6bcfd97 12924
e6cc62c6
VS
12925
12926for ac_header in wchar.h
12927do
12928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12929if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930 echo "$as_me:$LINENO: checking for $ac_header" >&5
12931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12932if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934fi
12935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12937else
12938 # Is the header compilable?
12939echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12941cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
12947$ac_includes_default
12948#include <$ac_header>
12949_ACEOF
12950rm -f conftest.$ac_objext
12951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12952 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12953 ac_status=$?
eea650d8
VS
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
e6cc62c6
VS
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
eea650d8
VS
12959 { ac_try='test -z "$ac_c_werror_flag"
12960 || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 ac_header_compiler=yes
12973else
12974 echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
12976
12977ac_header_compiler=no
12978fi
eea650d8 12979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12981echo "${ECHO_T}$ac_header_compiler" >&6
12982
12983# Is the header present?
12984echo "$as_me:$LINENO: checking $ac_header presence" >&5
12985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12986cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12987/* confdefs.h. */
12988_ACEOF
12989cat confdefs.h >>conftest.$ac_ext
12990cat >>conftest.$ac_ext <<_ACEOF
12991/* end confdefs.h. */
12992#include <$ac_header>
12993_ACEOF
12994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } >/dev/null; then
13002 if test -s conftest.err; then
13003 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13005 else
13006 ac_cpp_err=
13007 fi
13008else
13009 ac_cpp_err=yes
13010fi
13011if test -z "$ac_cpp_err"; then
13012 ac_header_preproc=yes
13013else
13014 echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 ac_header_preproc=no
13018fi
13019rm -f conftest.err conftest.$ac_ext
13020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13021echo "${ECHO_T}$ac_header_preproc" >&6
13022
13023# So? What about this header?
eea650d8
VS
13024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13025 yes:no: )
e6cc62c6
VS
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13030 ac_header_preproc=yes
e6cc62c6 13031 ;;
eea650d8 13032 no:yes:* )
e6cc62c6
VS
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13045 (
13046 cat <<\_ASBOX
eea650d8
VS
13047## ----------------------------------------- ##
13048## Report this to wx-dev@lists.wxwindows.org ##
13049## ----------------------------------------- ##
e6cc62c6
VS
13050_ASBOX
13051 ) |
13052 sed "s/^/$as_me: WARNING: /" >&2
13053 ;;
13054esac
13055echo "$as_me:$LINENO: checking for $ac_header" >&5
13056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13057if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
eea650d8 13060 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13061fi
13062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13064
90dd450c 13065fi
e6cc62c6
VS
13066if test `eval echo '${'$as_ac_Header'}'` = yes; then
13067 cat >>confdefs.h <<_ACEOF
13068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13069_ACEOF
13070
13071fi
13072
13073done
90dd450c 13074
e6cc62c6
VS
13075
13076if test "$ac_cv_header_wchar_h" != "yes"; then
13077
13078for ac_header in wcstr.h
21d1c967 13079do
e6cc62c6
VS
13080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13081if eval "test \"\${$as_ac_Header+set}\" = set"; then
13082 echo "$as_me:$LINENO: checking for $ac_header" >&5
13083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13084if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086fi
13087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13089else
13090 # Is the header compilable?
13091echo "$as_me:$LINENO: checking $ac_header usability" >&5
13092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13093cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
13098/* end confdefs.h. */
13099$ac_includes_default
13100#include <$ac_header>
13101_ACEOF
13102rm -f conftest.$ac_objext
13103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13104 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13105 ac_status=$?
eea650d8
VS
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
e6cc62c6
VS
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
eea650d8
VS
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_header_compiler=yes
13125else
13126 echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
13129ac_header_compiler=no
13130fi
eea650d8 13131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13133echo "${ECHO_T}$ac_header_compiler" >&6
13134
13135# Is the header present?
13136echo "$as_me:$LINENO: checking $ac_header presence" >&5
13137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13138cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13139/* confdefs.h. */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
13143/* end confdefs.h. */
13144#include <$ac_header>
13145_ACEOF
13146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } >/dev/null; then
13154 if test -s conftest.err; then
13155 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13157 else
13158 ac_cpp_err=
13159 fi
13160else
13161 ac_cpp_err=yes
13162fi
13163if test -z "$ac_cpp_err"; then
13164 ac_header_preproc=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_header_preproc=no
13170fi
13171rm -f conftest.err conftest.$ac_ext
13172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13173echo "${ECHO_T}$ac_header_preproc" >&6
13174
13175# So? What about this header?
eea650d8
VS
13176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13177 yes:no: )
e6cc62c6
VS
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13182 ac_header_preproc=yes
e6cc62c6 13183 ;;
eea650d8 13184 no:yes:* )
e6cc62c6
VS
13185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13197 (
13198 cat <<\_ASBOX
eea650d8
VS
13199## ----------------------------------------- ##
13200## Report this to wx-dev@lists.wxwindows.org ##
13201## ----------------------------------------- ##
e6cc62c6
VS
13202_ASBOX
13203 ) |
13204 sed "s/^/$as_me: WARNING: /" >&2
13205 ;;
13206esac
13207echo "$as_me:$LINENO: checking for $ac_header" >&5
13208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13209if eval "test \"\${$as_ac_Header+set}\" = set"; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211else
eea650d8 13212 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13213fi
e6cc62c6
VS
13214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13216
4f14bcd8 13217fi
e6cc62c6
VS
13218if test `eval echo '${'$as_ac_Header'}'` = yes; then
13219 cat >>confdefs.h <<_ACEOF
13220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13221_ACEOF
13222
13223fi
13224
13225done
13226
13227fi
13228
13229
13230for ac_header in fnmatch.h
13231do
13232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13233if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234 echo "$as_me:$LINENO: checking for $ac_header" >&5
13235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13236if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238fi
13239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13241else
13242 # Is the header compilable?
13243echo "$as_me:$LINENO: checking $ac_header usability" >&5
13244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13245cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
13251$ac_includes_default
13252#include <$ac_header>
13253_ACEOF
13254rm -f conftest.$ac_objext
13255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13256 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13257 ac_status=$?
eea650d8
VS
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
e6cc62c6
VS
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
eea650d8
VS
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_header_compiler=yes
13277else
13278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281ac_header_compiler=no
13282fi
eea650d8 13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13285echo "${ECHO_T}$ac_header_compiler" >&6
13286
13287# Is the header present?
13288echo "$as_me:$LINENO: checking $ac_header presence" >&5
13289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13290cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296#include <$ac_header>
13297_ACEOF
13298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } >/dev/null; then
13306 if test -s conftest.err; then
13307 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13309 else
13310 ac_cpp_err=
13311 fi
13312else
13313 ac_cpp_err=yes
13314fi
13315if test -z "$ac_cpp_err"; then
13316 ac_header_preproc=yes
13317else
13318 echo "$as_me: failed program was:" >&5
13319sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 ac_header_preproc=no
13322fi
13323rm -f conftest.err conftest.$ac_ext
13324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325echo "${ECHO_T}$ac_header_preproc" >&6
13326
13327# So? What about this header?
eea650d8
VS
13328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13329 yes:no: )
e6cc62c6
VS
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13334 ac_header_preproc=yes
e6cc62c6 13335 ;;
eea650d8 13336 no:yes:* )
e6cc62c6
VS
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13349 (
13350 cat <<\_ASBOX
eea650d8
VS
13351## ----------------------------------------- ##
13352## Report this to wx-dev@lists.wxwindows.org ##
13353## ----------------------------------------- ##
e6cc62c6
VS
13354_ASBOX
13355 ) |
13356 sed "s/^/$as_me: WARNING: /" >&2
13357 ;;
13358esac
13359echo "$as_me:$LINENO: checking for $ac_header" >&5
13360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13361if eval "test \"\${$as_ac_Header+set}\" = set"; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13363else
eea650d8 13364 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13365fi
13366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13368
21d1c967 13369fi
e6cc62c6
VS
13370if test `eval echo '${'$as_ac_Header'}'` = yes; then
13371 cat >>confdefs.h <<_ACEOF
13372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13373_ACEOF
13374
13375fi
13376
21d1c967 13377done
90dd450c 13378
5c6fa7d2 13379
a0b9e27f 13380if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13381
13382for ac_func in fnmatch
21d1c967 13383do
e6cc62c6
VS
13384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13385echo "$as_me:$LINENO: checking for $ac_func" >&5
13386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13387if eval "test \"\${$as_ac_var+set}\" = set"; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389else
13390 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13391/* confdefs.h. */
13392_ACEOF
13393cat confdefs.h >>conftest.$ac_ext
13394cat >>conftest.$ac_ext <<_ACEOF
13395/* end confdefs.h. */
eea650d8
VS
13396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13398#define $ac_func innocuous_$ac_func
13399
a0b9e27f 13400/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13401 which can conflict with char $ac_func (); below.
13402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13403 <limits.h> exists even on freestanding compilers. */
eea650d8 13404
e6cc62c6
VS
13405#ifdef __STDC__
13406# include <limits.h>
13407#else
13408# include <assert.h>
13409#endif
eea650d8
VS
13410
13411#undef $ac_func
13412
a0b9e27f 13413/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13414#ifdef __cplusplus
13415extern "C"
13416{
13417#endif
a0b9e27f 13418/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13419 builtin and then its argument prototype would still apply. */
13420char $ac_func ();
a0b9e27f
MB
13421/* The GNU C library defines this for functions which it implements
13422 to always fail with ENOSYS. Some functions are actually named
13423 something starting with __ and the normal name is an alias. */
13424#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13425choke me
13426#else
e6cc62c6
VS
13427char (*f) () = $ac_func;
13428#endif
13429#ifdef __cplusplus
13430}
a0b9e27f
MB
13431#endif
13432
e6cc62c6
VS
13433int
13434main ()
13435{
13436return f != $ac_func;
13437 ;
13438 return 0;
13439}
13440_ACEOF
13441rm -f conftest.$ac_objext conftest$ac_exeext
13442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 13443 (eval $ac_link) 2>conftest.er1
e6cc62c6 13444 ac_status=$?
eea650d8
VS
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
e6cc62c6
VS
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
eea650d8
VS
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 eval "$as_ac_var=yes"
13464else
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468eval "$as_ac_var=no"
13469fi
eea650d8
VS
13470rm -f conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13472fi
13473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13475if test `eval echo '${'$as_ac_var'}'` = yes; then
13476 cat >>confdefs.h <<_ACEOF
13477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13478_ACEOF
32832908 13479
21d1c967
GD
13480fi
13481done
90dd450c 13482
a0b9e27f 13483fi
90dd450c 13484
e6cc62c6
VS
13485
13486for ac_header in langinfo.h
21d1c967 13487do
e6cc62c6
VS
13488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13489if eval "test \"\${$as_ac_Header+set}\" = set"; then
13490 echo "$as_me:$LINENO: checking for $ac_header" >&5
13491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13492if eval "test \"\${$as_ac_Header+set}\" = set"; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494fi
13495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13497else
13498 # Is the header compilable?
13499echo "$as_me:$LINENO: checking $ac_header usability" >&5
13500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13501cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13502/* confdefs.h. */
13503_ACEOF
13504cat confdefs.h >>conftest.$ac_ext
13505cat >>conftest.$ac_ext <<_ACEOF
13506/* end confdefs.h. */
13507$ac_includes_default
13508#include <$ac_header>
13509_ACEOF
13510rm -f conftest.$ac_objext
13511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13512 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13513 ac_status=$?
eea650d8
VS
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
e6cc62c6
VS
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
eea650d8
VS
13519 { ac_try='test -z "$ac_c_werror_flag"
13520 || test ! -s conftest.err'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_header_compiler=yes
13533else
13534 echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
13536
13537ac_header_compiler=no
13538fi
eea650d8 13539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541echo "${ECHO_T}$ac_header_compiler" >&6
13542
13543# Is the header present?
13544echo "$as_me:$LINENO: checking $ac_header presence" >&5
13545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13546cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552#include <$ac_header>
13553_ACEOF
13554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } >/dev/null; then
13562 if test -s conftest.err; then
13563 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13565 else
13566 ac_cpp_err=
13567 fi
13568else
13569 ac_cpp_err=yes
13570fi
13571if test -z "$ac_cpp_err"; then
13572 ac_header_preproc=yes
13573else
13574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_header_preproc=no
13578fi
13579rm -f conftest.err conftest.$ac_ext
13580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13581echo "${ECHO_T}$ac_header_preproc" >&6
13582
13583# So? What about this header?
eea650d8
VS
13584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 yes:no: )
e6cc62c6
VS
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13590 ac_header_preproc=yes
e6cc62c6 13591 ;;
eea650d8 13592 no:yes:* )
e6cc62c6
VS
13593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13605 (
13606 cat <<\_ASBOX
eea650d8
VS
13607## ----------------------------------------- ##
13608## Report this to wx-dev@lists.wxwindows.org ##
13609## ----------------------------------------- ##
e6cc62c6
VS
13610_ASBOX
13611 ) |
13612 sed "s/^/$as_me: WARNING: /" >&2
13613 ;;
13614esac
13615echo "$as_me:$LINENO: checking for $ac_header" >&5
13616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13617if eval "test \"\${$as_ac_Header+set}\" = set"; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
eea650d8 13620 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13621fi
e6cc62c6
VS
13622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13624
4f14bcd8 13625fi
e6cc62c6
VS
13626if test `eval echo '${'$as_ac_Header'}'` = yes; then
13627 cat >>confdefs.h <<_ACEOF
13628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13629_ACEOF
13630
21d1c967 13631fi
e6cc62c6 13632
21d1c967 13633done
3a922bb4 13634
8284b0c5 13635
4f5a7f74
VZ
13636case "${host}" in
13637 *-pc-os2_emx | *-pc-os2-emx )
13638 if test $ac_cv_header_langinfo_h = "yes"; then
13639 LIBS="$LIBS -lintl"
13640 fi
13641 ;;
13642esac
1542ea39 13643
a0b9e27f 13644if test "$wxUSE_GUI" = "yes"; then
73d617c9 13645 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13646
eb69fda5 13647for ac_header in X11/Xlib.h
21d1c967 13648do
e6cc62c6
VS
13649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13650if eval "test \"\${$as_ac_Header+set}\" = set"; then
13651 echo "$as_me:$LINENO: checking for $ac_header" >&5
13652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13653if eval "test \"\${$as_ac_Header+set}\" = set"; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655fi
13656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13658else
13659 # Is the header compilable?
13660echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13662cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668$ac_includes_default
13669#include <$ac_header>
13670_ACEOF
13671rm -f conftest.$ac_objext
13672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13673 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13674 ac_status=$?
eea650d8
VS
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
e6cc62c6
VS
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
eea650d8
VS
13680 { ac_try='test -z "$ac_c_werror_flag"
13681 || test ! -s conftest.err'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_header_compiler=yes
13694else
13695 echo "$as_me: failed program was:" >&5
13696sed 's/^/| /' conftest.$ac_ext >&5
13697
13698ac_header_compiler=no
13699fi
eea650d8 13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702echo "${ECHO_T}$ac_header_compiler" >&6
13703
13704# Is the header present?
13705echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13707cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713#include <$ac_header>
13714_ACEOF
13715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } >/dev/null; then
13723 if test -s conftest.err; then
13724 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13726 else
13727 ac_cpp_err=
13728 fi
13729else
13730 ac_cpp_err=yes
13731fi
13732if test -z "$ac_cpp_err"; then
13733 ac_header_preproc=yes
13734else
13735 echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ac_header_preproc=no
13739fi
13740rm -f conftest.err conftest.$ac_ext
13741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13742echo "${ECHO_T}$ac_header_preproc" >&6
13743
13744# So? What about this header?
eea650d8
VS
13745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 yes:no: )
e6cc62c6
VS
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13751 ac_header_preproc=yes
e6cc62c6 13752 ;;
eea650d8 13753 no:yes:* )
e6cc62c6
VS
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13766 (
13767 cat <<\_ASBOX
eea650d8
VS
13768## ----------------------------------------- ##
13769## Report this to wx-dev@lists.wxwindows.org ##
13770## ----------------------------------------- ##
e6cc62c6
VS
13771_ASBOX
13772 ) |
13773 sed "s/^/$as_me: WARNING: /" >&2
13774 ;;
13775esac
13776echo "$as_me:$LINENO: checking for $ac_header" >&5
13777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13778if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780else
eea650d8 13781 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13782fi
e6cc62c6
VS
13783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13785
90dd450c 13786fi
e6cc62c6
VS
13787if test `eval echo '${'$as_ac_Header'}'` = yes; then
13788 cat >>confdefs.h <<_ACEOF
13789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13790_ACEOF
13791
247f5006 13792fi
e6cc62c6 13793
eb69fda5
VS
13794done
13795
13796
13797for ac_header in X11/XKBlib.h
13798do
13799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13800echo "$as_me:$LINENO: checking for $ac_header" >&5
13801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13802if eval "test \"\${$as_ac_Header+set}\" = set"; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
13805 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
13810/* end confdefs.h. */
13811
13812 #if HAVE_X11_XLIB_H
13813 #include <X11/Xlib.h>
13814 #endif
13815
13816
13817#include <$ac_header>
13818_ACEOF
13819rm -f conftest.$ac_objext
13820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13821 (eval $ac_compile) 2>conftest.er1
eb69fda5 13822 ac_status=$?
eea650d8
VS
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
eb69fda5
VS
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
eea650d8
VS
13828 { ac_try='test -z "$ac_c_werror_flag"
13829 || test ! -s conftest.err'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 eval "$as_ac_Header=yes"
13842else
13843 echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846eval "$as_ac_Header=no"
13847fi
eea650d8 13848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13849fi
13850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13852if test `eval echo '${'$as_ac_Header'}'` = yes; then
13853 cat >>confdefs.h <<_ACEOF
13854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13855_ACEOF
13856
13857fi
13858
247f5006
VZ
13859done
13860
a0b9e27f
MB
13861 fi
13862fi
247f5006 13863
247f5006 13864
e6cc62c6
VS
13865echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13866echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13867if test "${ac_cv_c_const+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869else
13870 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13871/* confdefs.h. */
13872_ACEOF
13873cat confdefs.h >>conftest.$ac_ext
13874cat >>conftest.$ac_ext <<_ACEOF
13875/* end confdefs.h. */
13876
13877int
13878main ()
13879{
13880/* FIXME: Include the comments suggested by Paul. */
13881#ifndef __cplusplus
13882 /* Ultrix mips cc rejects this. */
13883 typedef int charset[2];
13884 const charset x;
13885 /* SunOS 4.1.1 cc rejects this. */
13886 char const *const *ccp;
13887 char **p;
13888 /* NEC SVR4.0.2 mips cc rejects this. */
13889 struct point {int x, y;};
13890 static struct point const zero = {0,0};
13891 /* AIX XL C 1.02.0.0 rejects this.
13892 It does not let you subtract one const X* pointer from another in
13893 an arm of an if-expression whose if-part is not a constant
13894 expression */
13895 const char *g = "string";
13896 ccp = &g + (g ? g-g : 0);
13897 /* HPUX 7.0 cc rejects these. */
13898 ++ccp;
13899 p = (char**) ccp;
13900 ccp = (char const *const *) p;
13901 { /* SCO 3.2v4 cc rejects this. */
13902 char *t;
13903 char const *s = 0 ? (char *) 0 : (char const *) 0;
13904
13905 *t++ = 0;
13906 }
13907 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13908 int x[] = {25, 17};
13909 const int *foo = &x[0];
13910 ++foo;
13911 }
13912 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13913 typedef const int *iptr;
13914 iptr p = 0;
13915 ++p;
13916 }
13917 { /* AIX XL C 1.02.0.0 rejects this saying
13918 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13919 struct s { int j; const int *ap[3]; };
13920 struct s *b; b->j = 5;
13921 }
13922 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13923 const int foo = 10;
13924 }
13925#endif
13926
13927 ;
13928 return 0;
13929}
13930_ACEOF
13931rm -f conftest.$ac_objext
13932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13933 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13934 ac_status=$?
eea650d8
VS
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
e6cc62c6
VS
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
eea650d8
VS
13940 { ac_try='test -z "$ac_c_werror_flag"
13941 || test ! -s conftest.err'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
a0b9e27f 13953 ac_cv_c_const=yes
247f5006 13954else
e6cc62c6
VS
13955 echo "$as_me: failed program was:" >&5
13956sed 's/^/| /' conftest.$ac_ext >&5
13957
13958ac_cv_c_const=no
247f5006 13959fi
eea650d8 13960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 13961fi
e6cc62c6
VS
13962echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13963echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13964if test $ac_cv_c_const = no; then
e6cc62c6
VS
13965
13966cat >>confdefs.h <<\_ACEOF
13967#define const
13968_ACEOF
10f2d63a 13969
90dd450c 13970fi
81809c07 13971
e6cc62c6
VS
13972echo "$as_me:$LINENO: checking for inline" >&5
13973echo $ECHO_N "checking for inline... $ECHO_C" >&6
13974if test "${ac_cv_c_inline+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13976else
a0b9e27f
MB
13977 ac_cv_c_inline=no
13978for ac_kw in inline __inline__ __inline; do
e6cc62c6 13979 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
13985#ifndef __cplusplus
13986typedef int foo_t;
13987static $ac_kw foo_t static_foo () {return 0; }
13988$ac_kw foo_t foo () {return 0; }
13989#endif
a0b9e27f 13990
e6cc62c6
VS
13991_ACEOF
13992rm -f conftest.$ac_objext
13993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13994 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13995 ac_status=$?
eea650d8
VS
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
e6cc62c6
VS
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
eea650d8
VS
14001 { ac_try='test -z "$ac_c_werror_flag"
14002 || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
a0b9e27f 14014 ac_cv_c_inline=$ac_kw; break
247f5006 14015else
e6cc62c6
VS
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
247f5006 14019fi
eea650d8 14020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14021done
247f5006
VZ
14022
14023fi
e6cc62c6
VS
14024echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14025echo "${ECHO_T}$ac_cv_c_inline" >&6
eea650d8
VS
14026
14027
e6cc62c6 14028case $ac_cv_c_inline in
a0b9e27f 14029 inline | yes) ;;
eea650d8
VS
14030 *)
14031 case $ac_cv_c_inline in
14032 no) ac_val=;;
14033 *) ac_val=$ac_cv_c_inline;;
14034 esac
14035 cat >>confdefs.h <<_ACEOF
14036#ifndef __cplusplus
14037#define inline $ac_val
14038#endif
e6cc62c6 14039_ACEOF
eea650d8 14040 ;;
a0b9e27f 14041esac
247f5006 14042
247f5006 14043
e6cc62c6
VS
14044echo "$as_me:$LINENO: checking for char" >&5
14045echo $ECHO_N "checking for char... $ECHO_C" >&6
14046if test "${ac_cv_type_char+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
14055$ac_includes_default
14056int
14057main ()
14058{
14059if ((char *) 0)
14060 return 0;
14061if (sizeof (char))
14062 return 0;
14063 ;
14064 return 0;
14065}
14066_ACEOF
14067rm -f conftest.$ac_objext
14068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14069 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14070 ac_status=$?
eea650d8
VS
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
e6cc62c6
VS
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
eea650d8
VS
14076 { ac_try='test -z "$ac_c_werror_flag"
14077 || test ! -s conftest.err'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 ac_cv_type_char=yes
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
14094ac_cv_type_char=no
14095fi
eea650d8 14096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14097fi
14098echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14099echo "${ECHO_T}$ac_cv_type_char" >&6
14100
14101echo "$as_me:$LINENO: checking size of char" >&5
14102echo $ECHO_N "checking size of char... $ECHO_C" >&6
14103if test "${ac_cv_sizeof_char+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105else
14106 if test "$ac_cv_type_char" = yes; then
14107 # The cast to unsigned long works around a bug in the HP C Compiler
14108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14110 # This bug is HP SR number 8606223364.
a0b9e27f 14111 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14112 # Depending upon the size, compute the lo and hi bounds.
14113cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14114/* confdefs.h. */
14115_ACEOF
14116cat confdefs.h >>conftest.$ac_ext
14117cat >>conftest.$ac_ext <<_ACEOF
14118/* end confdefs.h. */
14119$ac_includes_default
14120int
14121main ()
14122{
14123static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14124test_array [0] = 0
14125
14126 ;
14127 return 0;
14128}
14129_ACEOF
14130rm -f conftest.$ac_objext
14131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14132 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14133 ac_status=$?
eea650d8
VS
14134 grep -v '^ *+' conftest.er1 >conftest.err
14135 rm -f conftest.er1
14136 cat conftest.err >&5
e6cc62c6
VS
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } &&
eea650d8
VS
14139 { ac_try='test -z "$ac_c_werror_flag"
14140 || test ! -s conftest.err'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_lo=0 ac_mid=0
14153 while :; do
14154 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
14160$ac_includes_default
14161int
14162main ()
14163{
14164static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14165test_array [0] = 0
14166
14167 ;
14168 return 0;
14169}
14170_ACEOF
14171rm -f conftest.$ac_objext
14172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14173 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14174 ac_status=$?
eea650d8
VS
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
e6cc62c6
VS
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
eea650d8
VS
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_hi=$ac_mid; break
14194else
14195 echo "$as_me: failed program was:" >&5
14196sed 's/^/| /' conftest.$ac_ext >&5
14197
14198ac_lo=`expr $ac_mid + 1`
eea650d8
VS
14199 if test $ac_lo -le $ac_mid; then
14200 ac_lo= ac_hi=
14201 break
14202 fi
14203 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14204fi
eea650d8 14205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14206 done
a0b9e27f 14207else
e6cc62c6
VS
14208 echo "$as_me: failed program was:" >&5
14209sed 's/^/| /' conftest.$ac_ext >&5
14210
14211cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14212/* confdefs.h. */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
14216/* end confdefs.h. */
14217$ac_includes_default
14218int
14219main ()
14220{
14221static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14222test_array [0] = 0
14223
14224 ;
14225 return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext
14229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14230 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14231 ac_status=$?
eea650d8
VS
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
e6cc62c6
VS
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
eea650d8
VS
14237 { ac_try='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_hi=-1 ac_mid=-1
14251 while :; do
14252 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
14258$ac_includes_default
14259int
14260main ()
14261{
14262static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14263test_array [0] = 0
14264
14265 ;
14266 return 0;
14267}
14268_ACEOF
14269rm -f conftest.$ac_objext
14270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14271 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14272 ac_status=$?
eea650d8
VS
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
e6cc62c6
VS
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
eea650d8
VS
14278 { ac_try='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_lo=$ac_mid; break
14292else
14293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
14297 if test $ac_mid -le $ac_hi; then
14298 ac_lo= ac_hi=
14299 break
14300 fi
14301 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14302fi
eea650d8 14303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14304 done
14305else
14306 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5
14308
14309ac_lo= ac_hi=
14310fi
eea650d8 14311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14312fi
eea650d8 14313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14314# Binary search between lo and hi bounds.
14315while test "x$ac_lo" != "x$ac_hi"; do
14316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14317 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
14323$ac_includes_default
14324int
14325main ()
14326{
14327static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14328test_array [0] = 0
14329
14330 ;
14331 return 0;
14332}
14333_ACEOF
14334rm -f conftest.$ac_objext
14335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14336 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14337 ac_status=$?
eea650d8
VS
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
e6cc62c6
VS
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
eea650d8
VS
14343 { ac_try='test -z "$ac_c_werror_flag"
14344 || test ! -s conftest.err'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; } &&
14350 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14356 ac_hi=$ac_mid
14357else
14358 echo "$as_me: failed program was:" >&5
14359sed 's/^/| /' conftest.$ac_ext >&5
14360
14361ac_lo=`expr '(' $ac_mid ')' + 1`
14362fi
eea650d8 14363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14364done
14365case $ac_lo in
14366?*) ac_cv_sizeof_char=$ac_lo;;
14367'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14368See \`config.log' for more details." >&5
14369echo "$as_me: error: cannot compute sizeof (char), 77
14370See \`config.log' for more details." >&2;}
14371 { (exit 1); exit 1; }; } ;;
14372esac
14373else
14374 if test "$cross_compiling" = yes; then
14375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14376See \`config.log' for more details." >&5
14377echo "$as_me: error: cannot run test program while cross compiling
14378See \`config.log' for more details." >&2;}
14379 { (exit 1); exit 1; }; }
14380else
14381 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14382/* confdefs.h. */
14383_ACEOF
14384cat confdefs.h >>conftest.$ac_ext
14385cat >>conftest.$ac_ext <<_ACEOF
14386/* end confdefs.h. */
14387$ac_includes_default
14388long longval () { return (long) (sizeof (char)); }
14389unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14390#include <stdio.h>
e6cc62c6
VS
14391#include <stdlib.h>
14392int
14393main ()
247f5006 14394{
e6cc62c6
VS
14395
14396 FILE *f = fopen ("conftest.val", "w");
14397 if (! f)
14398 exit (1);
14399 if (((long) (sizeof (char))) < 0)
14400 {
14401 long i = longval ();
14402 if (i != ((long) (sizeof (char))))
14403 exit (1);
14404 fprintf (f, "%ld\n", i);
14405 }
14406 else
14407 {
14408 unsigned long i = ulongval ();
14409 if (i != ((long) (sizeof (char))))
14410 exit (1);
14411 fprintf (f, "%lu\n", i);
14412 }
14413 exit (ferror (f) || fclose (f) != 0);
14414
14415 ;
14416 return 0;
52127426 14417}
e6cc62c6
VS
14418_ACEOF
14419rm -f conftest$ac_exeext
14420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421 (eval $ac_link) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_sizeof_char=`cat conftest.val`
14431else
14432 echo "$as_me: program exited with status $ac_status" >&5
14433echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
14436( exit $ac_status )
14437{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14438See \`config.log' for more details." >&5
14439echo "$as_me: error: cannot compute sizeof (char), 77
14440See \`config.log' for more details." >&2;}
14441 { (exit 1); exit 1; }; }
14442fi
eea650d8 14443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14444fi
14445fi
14446rm -f conftest.val
247f5006 14447else
a0b9e27f 14448 ac_cv_sizeof_char=0
247f5006 14449fi
247f5006 14450fi
e6cc62c6
VS
14451echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14452echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14453cat >>confdefs.h <<_ACEOF
14454#define SIZEOF_CHAR $ac_cv_sizeof_char
14455_ACEOF
14456
14457
14458echo "$as_me:$LINENO: checking for short" >&5
14459echo $ECHO_N "checking for short... $ECHO_C" >&6
14460if test "${ac_cv_type_short+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462else
14463 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
14469$ac_includes_default
14470int
14471main ()
14472{
14473if ((short *) 0)
14474 return 0;
14475if (sizeof (short))
14476 return 0;
14477 ;
14478 return 0;
14479}
14480_ACEOF
14481rm -f conftest.$ac_objext
14482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14483 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14484 ac_status=$?
eea650d8
VS
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
e6cc62c6
VS
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
eea650d8
VS
14490 { ac_try='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 ac_cv_type_short=yes
14504else
14505 echo "$as_me: failed program was:" >&5
14506sed 's/^/| /' conftest.$ac_ext >&5
14507
14508ac_cv_type_short=no
14509fi
eea650d8 14510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14511fi
14512echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14513echo "${ECHO_T}$ac_cv_type_short" >&6
14514
14515echo "$as_me:$LINENO: checking size of short" >&5
14516echo $ECHO_N "checking size of short... $ECHO_C" >&6
14517if test "${ac_cv_sizeof_short+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14519else
14520 if test "$ac_cv_type_short" = yes; then
14521 # The cast to unsigned long works around a bug in the HP C Compiler
14522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14524 # This bug is HP SR number 8606223364.
14525 if test "$cross_compiling" = yes; then
14526 # Depending upon the size, compute the lo and hi bounds.
14527cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533$ac_includes_default
14534int
14535main ()
14536{
14537static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14538test_array [0] = 0
247f5006 14539
e6cc62c6
VS
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext
14545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14546 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14547 ac_status=$?
eea650d8
VS
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
e6cc62c6
VS
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
eea650d8
VS
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_lo=0 ac_mid=0
14567 while :; do
14568 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
14575int
14576main ()
14577{
14578static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14579test_array [0] = 0
14580
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585rm -f conftest.$ac_objext
14586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14587 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14588 ac_status=$?
eea650d8
VS
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
e6cc62c6
VS
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
eea650d8
VS
14594 { ac_try='test -z "$ac_c_werror_flag"
14595 || test ! -s conftest.err'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; } &&
14601 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_hi=$ac_mid; break
14608else
14609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612ac_lo=`expr $ac_mid + 1`
eea650d8
VS
14613 if test $ac_lo -le $ac_mid; then
14614 ac_lo= ac_hi=
14615 break
14616 fi
14617 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14618fi
eea650d8 14619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14620 done
14621else
14622 echo "$as_me: failed program was:" >&5
14623sed 's/^/| /' conftest.$ac_ext >&5
14624
14625cat >conftest.$ac_ext <<_ACEOF
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 (short))) < 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
eea650d8 14644 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14645 ac_status=$?
eea650d8
VS
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
e6cc62c6
VS
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
eea650d8
VS
14651 { ac_try='test -z "$ac_c_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_hi=-1 ac_mid=-1
14665 while :; do
14666 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14667/* confdefs.h. */
14668_ACEOF
14669cat confdefs.h >>conftest.$ac_ext
14670cat >>conftest.$ac_ext <<_ACEOF
14671/* end confdefs.h. */
14672$ac_includes_default
14673int
14674main ()
14675{
14676static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14677test_array [0] = 0
247f5006 14678
e6cc62c6
VS
14679 ;
14680 return 0;
14681}
14682_ACEOF
14683rm -f conftest.$ac_objext
14684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14685 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14686 ac_status=$?
eea650d8
VS
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
e6cc62c6
VS
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
eea650d8
VS
14692 { ac_try='test -z "$ac_c_werror_flag"
14693 || test ! -s conftest.err'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_lo=$ac_mid; break
14706else
14707 echo "$as_me: failed program was:" >&5
14708sed 's/^/| /' conftest.$ac_ext >&5
14709
14710ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
14711 if test $ac_mid -le $ac_hi; then
14712 ac_lo= ac_hi=
14713 break
14714 fi
14715 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14716fi
eea650d8 14717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14718 done
247f5006 14719else
e6cc62c6
VS
14720 echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
14723ac_lo= ac_hi=
14724fi
eea650d8 14725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14726fi
eea650d8 14727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14728# Binary search between lo and hi bounds.
14729while test "x$ac_lo" != "x$ac_hi"; do
14730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14731 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14732/* confdefs.h. */
14733_ACEOF
14734cat confdefs.h >>conftest.$ac_ext
14735cat >>conftest.$ac_ext <<_ACEOF
14736/* end confdefs.h. */
14737$ac_includes_default
14738int
14739main ()
14740{
14741static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14742test_array [0] = 0
14743
14744 ;
14745 return 0;
14746}
14747_ACEOF
14748rm -f conftest.$ac_objext
14749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14750 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14751 ac_status=$?
eea650d8
VS
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
e6cc62c6
VS
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } &&
eea650d8
VS
14757 { ac_try='test -z "$ac_c_werror_flag"
14758 || test ! -s conftest.err'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; } &&
14764 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_hi=$ac_mid
14771else
14772 echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775ac_lo=`expr '(' $ac_mid ')' + 1`
14776fi
eea650d8 14777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14778done
14779case $ac_lo in
14780?*) ac_cv_sizeof_short=$ac_lo;;
14781'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14782See \`config.log' for more details." >&5
14783echo "$as_me: error: cannot compute sizeof (short), 77
14784See \`config.log' for more details." >&2;}
14785 { (exit 1); exit 1; }; } ;;
14786esac
247f5006 14787else
e6cc62c6
VS
14788 if test "$cross_compiling" = yes; then
14789 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14790See \`config.log' for more details." >&5
14791echo "$as_me: error: cannot run test program while cross compiling
14792See \`config.log' for more details." >&2;}
14793 { (exit 1); exit 1; }; }
14794else
14795 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h. */
14801$ac_includes_default
14802long longval () { return (long) (sizeof (short)); }
14803unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14804#include <stdio.h>
e6cc62c6
VS
14805#include <stdlib.h>
14806int
14807main ()
a0b9e27f 14808{
e6cc62c6
VS
14809
14810 FILE *f = fopen ("conftest.val", "w");
14811 if (! f)
14812 exit (1);
14813 if (((long) (sizeof (short))) < 0)
14814 {
14815 long i = longval ();
14816 if (i != ((long) (sizeof (short))))
14817 exit (1);
14818 fprintf (f, "%ld\n", i);
14819 }
14820 else
14821 {
14822 unsigned long i = ulongval ();
14823 if (i != ((long) (sizeof (short))))
14824 exit (1);
14825 fprintf (f, "%lu\n", i);
14826 }
14827 exit (ferror (f) || fclose (f) != 0);
14828
14829 ;
14830 return 0;
a0b9e27f 14831}
e6cc62c6
VS
14832_ACEOF
14833rm -f conftest$ac_exeext
14834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_cv_sizeof_short=`cat conftest.val`
14845else
14846 echo "$as_me: program exited with status $ac_status" >&5
14847echo "$as_me: failed program was:" >&5
14848sed 's/^/| /' conftest.$ac_ext >&5
14849
14850( exit $ac_status )
14851{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14852See \`config.log' for more details." >&5
14853echo "$as_me: error: cannot compute sizeof (short), 77
14854See \`config.log' for more details." >&2;}
14855 { (exit 1); exit 1; }; }
14856fi
eea650d8 14857rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14858fi
14859fi
14860rm -f conftest.val
247f5006 14861else
a0b9e27f 14862 ac_cv_sizeof_short=0
247f5006 14863fi
247f5006 14864fi
e6cc62c6
VS
14865echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14866echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14867cat >>confdefs.h <<_ACEOF
14868#define SIZEOF_SHORT $ac_cv_sizeof_short
14869_ACEOF
14870
14871
14872echo "$as_me:$LINENO: checking for void *" >&5
14873echo $ECHO_N "checking for void *... $ECHO_C" >&6
14874if test "${ac_cv_type_void_p+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876else
14877 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14878/* confdefs.h. */
14879_ACEOF
14880cat confdefs.h >>conftest.$ac_ext
14881cat >>conftest.$ac_ext <<_ACEOF
14882/* end confdefs.h. */
14883$ac_includes_default
14884int
14885main ()
14886{
14887if ((void * *) 0)
14888 return 0;
14889if (sizeof (void *))
14890 return 0;
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext
14896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14897 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14898 ac_status=$?
eea650d8
VS
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
e6cc62c6
VS
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
eea650d8
VS
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_type_void_p=yes
14918else
14919 echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922ac_cv_type_void_p=no
14923fi
eea650d8 14924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14925fi
14926echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14927echo "${ECHO_T}$ac_cv_type_void_p" >&6
14928
14929echo "$as_me:$LINENO: checking size of void *" >&5
14930echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14931if test "${ac_cv_sizeof_void_p+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933else
14934 if test "$ac_cv_type_void_p" = yes; then
14935 # The cast to unsigned long works around a bug in the HP C Compiler
14936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14938 # This bug is HP SR number 8606223364.
14939 if test "$cross_compiling" = yes; then
14940 # Depending upon the size, compute the lo and hi bounds.
14941cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14942/* confdefs.h. */
14943_ACEOF
14944cat confdefs.h >>conftest.$ac_ext
14945cat >>conftest.$ac_ext <<_ACEOF
14946/* end confdefs.h. */
14947$ac_includes_default
14948int
14949main ()
14950{
14951static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14952test_array [0] = 0
14953
14954 ;
14955 return 0;
14956}
14957_ACEOF
14958rm -f conftest.$ac_objext
14959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14960 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14961 ac_status=$?
eea650d8
VS
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
e6cc62c6
VS
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
eea650d8
VS
14967 { ac_try='test -z "$ac_c_werror_flag"
14968 || test ! -s conftest.err'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; } &&
14974 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_lo=0 ac_mid=0
14981 while :; do
14982 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
14989int
14990main ()
14991{
14992static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14993test_array [0] = 0
247f5006 14994
e6cc62c6
VS
14995 ;
14996 return 0;
14997}
14998_ACEOF
14999rm -f conftest.$ac_objext
15000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15001 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15002 ac_status=$?
eea650d8
VS
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
e6cc62c6
VS
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
eea650d8
VS
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
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); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_hi=$ac_mid; break
15022else
15023 echo "$as_me: failed program was:" >&5
15024sed 's/^/| /' conftest.$ac_ext >&5
15025
15026ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15027 if test $ac_lo -le $ac_mid; then
15028 ac_lo= ac_hi=
15029 break
15030 fi
15031 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15032fi
eea650d8 15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15034 done
15035else
15036 echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
15039cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15040/* confdefs.h. */
15041_ACEOF
15042cat confdefs.h >>conftest.$ac_ext
15043cat >>conftest.$ac_ext <<_ACEOF
15044/* end confdefs.h. */
15045$ac_includes_default
15046int
15047main ()
15048{
15049static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15050test_array [0] = 0
247f5006 15051
e6cc62c6
VS
15052 ;
15053 return 0;
15054}
15055_ACEOF
15056rm -f conftest.$ac_objext
15057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15058 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15059 ac_status=$?
eea650d8
VS
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
e6cc62c6
VS
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
eea650d8
VS
15065 { ac_try='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_hi=-1 ac_mid=-1
15079 while :; do
15080 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15091test_array [0] = 0
247f5006 15092
e6cc62c6
VS
15093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest.$ac_objext
15098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15099 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15100 ac_status=$?
eea650d8
VS
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
e6cc62c6
VS
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
eea650d8
VS
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_lo=$ac_mid; break
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15125 if test $ac_mid -le $ac_hi; then
15126 ac_lo= ac_hi=
15127 break
15128 fi
15129 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15130fi
eea650d8 15131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15132 done
a0b9e27f 15133else
e6cc62c6
VS
15134 echo "$as_me: failed program was:" >&5
15135sed 's/^/| /' conftest.$ac_ext >&5
15136
15137ac_lo= ac_hi=
15138fi
eea650d8 15139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15140fi
eea650d8 15141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15142# Binary search between lo and hi bounds.
15143while test "x$ac_lo" != "x$ac_hi"; do
15144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15145 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15146/* confdefs.h. */
15147_ACEOF
15148cat confdefs.h >>conftest.$ac_ext
15149cat >>conftest.$ac_ext <<_ACEOF
15150/* end confdefs.h. */
15151$ac_includes_default
15152int
15153main ()
15154{
15155static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15156test_array [0] = 0
15157
15158 ;
15159 return 0;
15160}
15161_ACEOF
15162rm -f conftest.$ac_objext
15163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15164 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15165 ac_status=$?
eea650d8
VS
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
e6cc62c6
VS
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
eea650d8
VS
15171 { ac_try='test -z "$ac_c_werror_flag"
15172 || test ! -s conftest.err'
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); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_hi=$ac_mid
15185else
15186 echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189ac_lo=`expr '(' $ac_mid ')' + 1`
15190fi
eea650d8 15191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15192done
15193case $ac_lo in
15194?*) ac_cv_sizeof_void_p=$ac_lo;;
15195'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15196See \`config.log' for more details." >&5
15197echo "$as_me: error: cannot compute sizeof (void *), 77
15198See \`config.log' for more details." >&2;}
15199 { (exit 1); exit 1; }; } ;;
15200esac
247f5006 15201else
e6cc62c6
VS
15202 if test "$cross_compiling" = yes; then
15203 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15204See \`config.log' for more details." >&5
15205echo "$as_me: error: cannot run test program while cross compiling
15206See \`config.log' for more details." >&2;}
15207 { (exit 1); exit 1; }; }
15208else
15209 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
15215$ac_includes_default
15216long longval () { return (long) (sizeof (void *)); }
15217unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15218#include <stdio.h>
e6cc62c6
VS
15219#include <stdlib.h>
15220int
15221main ()
247f5006 15222{
e6cc62c6
VS
15223
15224 FILE *f = fopen ("conftest.val", "w");
15225 if (! f)
15226 exit (1);
15227 if (((long) (sizeof (void *))) < 0)
15228 {
15229 long i = longval ();
15230 if (i != ((long) (sizeof (void *))))
15231 exit (1);
15232 fprintf (f, "%ld\n", i);
15233 }
15234 else
15235 {
15236 unsigned long i = ulongval ();
15237 if (i != ((long) (sizeof (void *))))
15238 exit (1);
15239 fprintf (f, "%lu\n", i);
15240 }
15241 exit (ferror (f) || fclose (f) != 0);
15242
15243 ;
15244 return 0;
5c6fa7d2 15245}
e6cc62c6
VS
15246_ACEOF
15247rm -f conftest$ac_exeext
15248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15249 (eval $ac_link) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_sizeof_void_p=`cat conftest.val`
15259else
15260 echo "$as_me: program exited with status $ac_status" >&5
15261echo "$as_me: failed program was:" >&5
15262sed 's/^/| /' conftest.$ac_ext >&5
15263
15264( exit $ac_status )
15265{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15266See \`config.log' for more details." >&5
15267echo "$as_me: error: cannot compute sizeof (void *), 77
15268See \`config.log' for more details." >&2;}
15269 { (exit 1); exit 1; }; }
15270fi
eea650d8 15271rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15272fi
15273fi
15274rm -f conftest.val
a0b9e27f 15275else
a0b9e27f
MB
15276 ac_cv_sizeof_void_p=0
15277fi
a0b9e27f 15278fi
e6cc62c6
VS
15279echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15280echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15281cat >>confdefs.h <<_ACEOF
15282#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15283_ACEOF
15284
15285
15286echo "$as_me:$LINENO: checking for int" >&5
15287echo $ECHO_N "checking for int... $ECHO_C" >&6
15288if test "${ac_cv_type_int+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290else
15291 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297$ac_includes_default
15298int
15299main ()
15300{
15301if ((int *) 0)
15302 return 0;
15303if (sizeof (int))
15304 return 0;
15305 ;
15306 return 0;
15307}
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15311 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15312 ac_status=$?
eea650d8
VS
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
e6cc62c6
VS
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
eea650d8
VS
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_cv_type_int=yes
15332else
15333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336ac_cv_type_int=no
15337fi
eea650d8 15338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15339fi
15340echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15341echo "${ECHO_T}$ac_cv_type_int" >&6
15342
15343echo "$as_me:$LINENO: checking size of int" >&5
15344echo $ECHO_N "checking size of int... $ECHO_C" >&6
15345if test "${ac_cv_sizeof_int+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348 if test "$ac_cv_type_int" = yes; then
15349 # The cast to unsigned long works around a bug in the HP C Compiler
15350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15352 # This bug is HP SR number 8606223364.
15353 if test "$cross_compiling" = yes; then
15354 # Depending upon the size, compute the lo and hi bounds.
15355cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361$ac_includes_default
15362int
15363main ()
15364{
15365static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15366test_array [0] = 0
8284b0c5 15367
e6cc62c6
VS
15368 ;
15369 return 0;
15370}
15371_ACEOF
15372rm -f conftest.$ac_objext
15373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15374 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15375 ac_status=$?
eea650d8
VS
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
e6cc62c6
VS
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
eea650d8
VS
15381 { ac_try='test -z "$ac_c_werror_flag"
15382 || test ! -s conftest.err'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_lo=0 ac_mid=0
15395 while :; do
15396 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15397/* confdefs.h. */
15398_ACEOF
15399cat confdefs.h >>conftest.$ac_ext
15400cat >>conftest.$ac_ext <<_ACEOF
15401/* end confdefs.h. */
15402$ac_includes_default
15403int
15404main ()
15405{
15406static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15407test_array [0] = 0
15408
15409 ;
15410 return 0;
15411}
15412_ACEOF
15413rm -f conftest.$ac_objext
15414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15415 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15416 ac_status=$?
eea650d8
VS
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
e6cc62c6
VS
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
eea650d8
VS
15422 { ac_try='test -z "$ac_c_werror_flag"
15423 || test ! -s conftest.err'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_hi=$ac_mid; break
15436else
15437 echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
15440ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15441 if test $ac_lo -le $ac_mid; then
15442 ac_lo= ac_hi=
15443 break
15444 fi
15445 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15446fi
eea650d8 15447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15448 done
15449else
15450 echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15454/* confdefs.h. */
15455_ACEOF
15456cat confdefs.h >>conftest.$ac_ext
15457cat >>conftest.$ac_ext <<_ACEOF
15458/* end confdefs.h. */
15459$ac_includes_default
15460int
15461main ()
15462{
15463static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15464test_array [0] = 0
247f5006 15465
e6cc62c6
VS
15466 ;
15467 return 0;
15468}
15469_ACEOF
15470rm -f conftest.$ac_objext
15471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15472 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15473 ac_status=$?
eea650d8
VS
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
e6cc62c6
VS
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
eea650d8
VS
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 ac_hi=-1 ac_mid=-1
15493 while :; do
15494 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500$ac_includes_default
15501int
15502main ()
15503{
15504static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15505test_array [0] = 0
247f5006 15506
e6cc62c6
VS
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest.$ac_objext
15512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15513 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15514 ac_status=$?
eea650d8
VS
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
e6cc62c6
VS
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
eea650d8
VS
15520 { ac_try='test -z "$ac_c_werror_flag"
15521 || test ! -s conftest.err'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_lo=$ac_mid; break
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15539 if test $ac_mid -le $ac_hi; then
15540 ac_lo= ac_hi=
15541 break
15542 fi
15543 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15544fi
eea650d8 15545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15546 done
247f5006 15547else
e6cc62c6
VS
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551ac_lo= ac_hi=
15552fi
eea650d8 15553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15554fi
eea650d8 15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15556# Binary search between lo and hi bounds.
15557while test "x$ac_lo" != "x$ac_hi"; do
15558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15559 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15560/* confdefs.h. */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
15564/* end confdefs.h. */
15565$ac_includes_default
15566int
15567main ()
15568{
15569static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15570test_array [0] = 0
15571
15572 ;
15573 return 0;
15574}
15575_ACEOF
15576rm -f conftest.$ac_objext
15577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15578 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15579 ac_status=$?
eea650d8
VS
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
e6cc62c6
VS
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
eea650d8
VS
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_hi=$ac_mid
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603ac_lo=`expr '(' $ac_mid ')' + 1`
15604fi
eea650d8 15605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15606done
15607case $ac_lo in
15608?*) ac_cv_sizeof_int=$ac_lo;;
15609'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15610See \`config.log' for more details." >&5
15611echo "$as_me: error: cannot compute sizeof (int), 77
15612See \`config.log' for more details." >&2;}
15613 { (exit 1); exit 1; }; } ;;
15614esac
a0b9e27f 15615else
e6cc62c6
VS
15616 if test "$cross_compiling" = yes; then
15617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15618See \`config.log' for more details." >&5
15619echo "$as_me: error: cannot run test program while cross compiling
15620See \`config.log' for more details." >&2;}
15621 { (exit 1); exit 1; }; }
15622else
15623 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15624/* confdefs.h. */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
15628/* end confdefs.h. */
15629$ac_includes_default
15630long longval () { return (long) (sizeof (int)); }
15631unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15632#include <stdio.h>
e6cc62c6
VS
15633#include <stdlib.h>
15634int
15635main ()
247f5006 15636{
e6cc62c6
VS
15637
15638 FILE *f = fopen ("conftest.val", "w");
15639 if (! f)
15640 exit (1);
15641 if (((long) (sizeof (int))) < 0)
15642 {
15643 long i = longval ();
15644 if (i != ((long) (sizeof (int))))
15645 exit (1);
15646 fprintf (f, "%ld\n", i);
15647 }
15648 else
15649 {
15650 unsigned long i = ulongval ();
15651 if (i != ((long) (sizeof (int))))
15652 exit (1);
15653 fprintf (f, "%lu\n", i);
15654 }
15655 exit (ferror (f) || fclose (f) != 0);
15656
15657 ;
15658 return 0;
247f5006 15659}
e6cc62c6
VS
15660_ACEOF
15661rm -f conftest$ac_exeext
15662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15663 (eval $ac_link) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_cv_sizeof_int=`cat conftest.val`
15673else
15674 echo "$as_me: program exited with status $ac_status" >&5
15675echo "$as_me: failed program was:" >&5
15676sed 's/^/| /' conftest.$ac_ext >&5
15677
15678( exit $ac_status )
15679{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15680See \`config.log' for more details." >&5
15681echo "$as_me: error: cannot compute sizeof (int), 77
15682See \`config.log' for more details." >&2;}
15683 { (exit 1); exit 1; }; }
15684fi
eea650d8 15685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15686fi
15687fi
15688rm -f conftest.val
6f72b082 15689else
a0b9e27f 15690 ac_cv_sizeof_int=0
21d1c967 15691fi
698dcdb6 15692fi
e6cc62c6
VS
15693echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15694echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15695cat >>confdefs.h <<_ACEOF
15696#define SIZEOF_INT $ac_cv_sizeof_int
15697_ACEOF
15698
15699
15700echo "$as_me:$LINENO: checking for long" >&5
15701echo $ECHO_N "checking for long... $ECHO_C" >&6
15702if test "${ac_cv_type_long+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704else
15705 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15706/* confdefs.h. */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h. */
15711$ac_includes_default
15712int
15713main ()
15714{
15715if ((long *) 0)
15716 return 0;
15717if (sizeof (long))
15718 return 0;
15719 ;
15720 return 0;
15721}
15722_ACEOF
15723rm -f conftest.$ac_objext
15724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15725 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15726 ac_status=$?
eea650d8
VS
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
e6cc62c6
VS
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
eea650d8
VS
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_type_long=yes
15746else
15747 echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
15750ac_cv_type_long=no
15751fi
eea650d8 15752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15753fi
15754echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15755echo "${ECHO_T}$ac_cv_type_long" >&6
15756
15757echo "$as_me:$LINENO: checking size of long" >&5
15758echo $ECHO_N "checking size of long... $ECHO_C" >&6
15759if test "${ac_cv_sizeof_long+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761else
15762 if test "$ac_cv_type_long" = yes; then
15763 # The cast to unsigned long works around a bug in the HP C Compiler
15764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15766 # This bug is HP SR number 8606223364.
15767 if test "$cross_compiling" = yes; then
15768 # Depending upon the size, compute the lo and hi bounds.
15769cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775$ac_includes_default
15776int
15777main ()
15778{
15779static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15780test_array [0] = 0
15781
15782 ;
15783 return 0;
15784}
15785_ACEOF
15786rm -f conftest.$ac_objext
15787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15788 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15789 ac_status=$?
eea650d8
VS
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
e6cc62c6
VS
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
eea650d8
VS
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_lo=0 ac_mid=0
15809 while :; do
15810 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15811/* confdefs.h. */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h. */
15816$ac_includes_default
15817int
15818main ()
15819{
15820static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15821test_array [0] = 0
4f14bcd8 15822
e6cc62c6
VS
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15829 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15830 ac_status=$?
eea650d8
VS
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
e6cc62c6
VS
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
eea650d8
VS
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_hi=$ac_mid; break
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15855 if test $ac_lo -le $ac_mid; then
15856 ac_lo= ac_hi=
15857 break
15858 fi
15859 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15860fi
eea650d8 15861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15862 done
15863else
15864 echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15868/* confdefs.h. */
15869_ACEOF
15870cat confdefs.h >>conftest.$ac_ext
15871cat >>conftest.$ac_ext <<_ACEOF
15872/* end confdefs.h. */
15873$ac_includes_default
15874int
15875main ()
15876{
15877static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15878test_array [0] = 0
4f14bcd8 15879
e6cc62c6
VS
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884rm -f conftest.$ac_objext
15885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15886 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15887 ac_status=$?
eea650d8
VS
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
e6cc62c6
VS
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
eea650d8
VS
15893 { ac_try='test -z "$ac_c_werror_flag"
15894 || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_hi=-1 ac_mid=-1
15907 while :; do
15908 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15909/* confdefs.h. */
15910_ACEOF
15911cat confdefs.h >>conftest.$ac_ext
15912cat >>conftest.$ac_ext <<_ACEOF
15913/* end confdefs.h. */
15914$ac_includes_default
15915int
15916main ()
15917{
15918static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15919test_array [0] = 0
5c6fa7d2 15920
e6cc62c6
VS
15921 ;
15922 return 0;
15923}
15924_ACEOF
15925rm -f conftest.$ac_objext
15926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15927 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15928 ac_status=$?
eea650d8
VS
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
e6cc62c6
VS
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
eea650d8
VS
15934 { ac_try='test -z "$ac_c_werror_flag"
15935 || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_lo=$ac_mid; break
15948else
15949 echo "$as_me: failed program was:" >&5
15950sed 's/^/| /' conftest.$ac_ext >&5
15951
15952ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15953 if test $ac_mid -le $ac_hi; then
15954 ac_lo= ac_hi=
15955 break
15956 fi
15957 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15958fi
eea650d8 15959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15960 done
247f5006 15961else
e6cc62c6
VS
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965ac_lo= ac_hi=
15966fi
eea650d8 15967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15968fi
eea650d8 15969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15970# Binary search between lo and hi bounds.
15971while test "x$ac_lo" != "x$ac_hi"; do
15972 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15973 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
15979$ac_includes_default
15980int
15981main ()
15982{
15983static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15984test_array [0] = 0
15985
15986 ;
15987 return 0;
15988}
15989_ACEOF
15990rm -f conftest.$ac_objext
15991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15992 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15993 ac_status=$?
eea650d8
VS
15994 grep -v '^ *+' conftest.er1 >conftest.err
15995 rm -f conftest.er1
15996 cat conftest.err >&5
e6cc62c6
VS
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
eea650d8
VS
15999 { ac_try='test -z "$ac_c_werror_flag"
16000 || test ! -s conftest.err'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; } &&
16006 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16012 ac_hi=$ac_mid
16013else
16014 echo "$as_me: failed program was:" >&5
16015sed 's/^/| /' conftest.$ac_ext >&5
16016
16017ac_lo=`expr '(' $ac_mid ')' + 1`
16018fi
eea650d8 16019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16020done
16021case $ac_lo in
16022?*) ac_cv_sizeof_long=$ac_lo;;
16023'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16024See \`config.log' for more details." >&5
16025echo "$as_me: error: cannot compute sizeof (long), 77
16026See \`config.log' for more details." >&2;}
16027 { (exit 1); exit 1; }; } ;;
16028esac
247f5006 16029else
e6cc62c6
VS
16030 if test "$cross_compiling" = yes; then
16031 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16032See \`config.log' for more details." >&5
16033echo "$as_me: error: cannot run test program while cross compiling
16034See \`config.log' for more details." >&2;}
16035 { (exit 1); exit 1; }; }
16036else
16037 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
16043$ac_includes_default
16044long longval () { return (long) (sizeof (long)); }
16045unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16046#include <stdio.h>
e6cc62c6
VS
16047#include <stdlib.h>
16048int
16049main ()
247f5006 16050{
e6cc62c6
VS
16051
16052 FILE *f = fopen ("conftest.val", "w");
16053 if (! f)
16054 exit (1);
16055 if (((long) (sizeof (long))) < 0)
16056 {
16057 long i = longval ();
16058 if (i != ((long) (sizeof (long))))
16059 exit (1);
16060 fprintf (f, "%ld\n", i);
16061 }
16062 else
16063 {
16064 unsigned long i = ulongval ();
16065 if (i != ((long) (sizeof (long))))
16066 exit (1);
16067 fprintf (f, "%lu\n", i);
16068 }
16069 exit (ferror (f) || fclose (f) != 0);
16070
16071 ;
16072 return 0;
247f5006 16073}
e6cc62c6
VS
16074_ACEOF
16075rm -f conftest$ac_exeext
16076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_sizeof_long=`cat conftest.val`
16087else
16088 echo "$as_me: program exited with status $ac_status" >&5
16089echo "$as_me: failed program was:" >&5
16090sed 's/^/| /' conftest.$ac_ext >&5
16091
16092( exit $ac_status )
16093{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16094See \`config.log' for more details." >&5
16095echo "$as_me: error: cannot compute sizeof (long), 77
16096See \`config.log' for more details." >&2;}
16097 { (exit 1); exit 1; }; }
16098fi
eea650d8 16099rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16100fi
16101fi
16102rm -f conftest.val
247f5006 16103else
a0b9e27f 16104 ac_cv_sizeof_long=0
247f5006 16105fi
247f5006 16106fi
e6cc62c6
VS
16107echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16108echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16109cat >>confdefs.h <<_ACEOF
a0b9e27f 16110#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16111_ACEOF
247f5006 16112
a0b9e27f
MB
16113
16114
16115case "${host}" in
16116 arm-*-linux* )
e6cc62c6
VS
16117 echo "$as_me:$LINENO: checking for long long" >&5
16118echo $ECHO_N "checking for long long... $ECHO_C" >&6
16119if test "${ac_cv_type_long_long+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16121else
16122 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16123/* confdefs.h. */
16124_ACEOF
16125cat confdefs.h >>conftest.$ac_ext
16126cat >>conftest.$ac_ext <<_ACEOF
16127/* end confdefs.h. */
16128$ac_includes_default
16129int
16130main ()
16131{
16132if ((long long *) 0)
16133 return 0;
16134if (sizeof (long long))
16135 return 0;
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140rm -f conftest.$ac_objext
16141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16142 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16143 ac_status=$?
eea650d8
VS
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
e6cc62c6
VS
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
eea650d8
VS
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_cv_type_long_long=yes
16163else
16164 echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167ac_cv_type_long_long=no
16168fi
eea650d8 16169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16170fi
16171echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16172echo "${ECHO_T}$ac_cv_type_long_long" >&6
16173
16174echo "$as_me:$LINENO: checking size of long long" >&5
16175echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16176if test "${ac_cv_sizeof_long_long+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 if test "$ac_cv_type_long_long" = yes; then
16180 # The cast to unsigned long works around a bug in the HP C Compiler
16181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16183 # This bug is HP SR number 8606223364.
a0b9e27f 16184 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16185 # Depending upon the size, compute the lo and hi bounds.
16186cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16187/* confdefs.h. */
16188_ACEOF
16189cat confdefs.h >>conftest.$ac_ext
16190cat >>conftest.$ac_ext <<_ACEOF
16191/* end confdefs.h. */
16192$ac_includes_default
16193int
16194main ()
16195{
16196static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16197test_array [0] = 0
16198
16199 ;
16200 return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext
16204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16205 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16206 ac_status=$?
eea650d8
VS
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
e6cc62c6
VS
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
eea650d8
VS
16212 { ac_try='test -z "$ac_c_werror_flag"
16213 || test ! -s conftest.err'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; } &&
16219 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_lo=0 ac_mid=0
16226 while :; do
16227 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16228/* confdefs.h. */
16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h. */
16233$ac_includes_default
16234int
16235main ()
16236{
16237static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16238test_array [0] = 0
16239
16240 ;
16241 return 0;
16242}
16243_ACEOF
16244rm -f conftest.$ac_objext
16245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16246 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16247 ac_status=$?
eea650d8
VS
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
e6cc62c6
VS
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
eea650d8
VS
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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_hi=$ac_mid; break
16267else
16268 echo "$as_me: failed program was:" >&5
16269sed 's/^/| /' conftest.$ac_ext >&5
16270
16271ac_lo=`expr $ac_mid + 1`
eea650d8
VS
16272 if test $ac_lo -le $ac_mid; then
16273 ac_lo= ac_hi=
16274 break
16275 fi
16276 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16277fi
eea650d8 16278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16279 done
16280else
16281 echo "$as_me: failed program was:" >&5
16282sed 's/^/| /' conftest.$ac_ext >&5
16283
16284cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291int
16292main ()
16293{
16294static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16295test_array [0] = 0
16296
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301rm -f conftest.$ac_objext
16302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16303 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16304 ac_status=$?
eea650d8
VS
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
e6cc62c6
VS
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
eea650d8
VS
16310 { ac_try='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_hi=-1 ac_mid=-1
16324 while :; do
16325 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332int
16333main ()
16334{
16335static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16336test_array [0] = 0
16337
16338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext
16343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16344 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16345 ac_status=$?
eea650d8
VS
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
e6cc62c6
VS
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
eea650d8
VS
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_lo=$ac_mid; break
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
16370 if test $ac_mid -le $ac_hi; then
16371 ac_lo= ac_hi=
16372 break
16373 fi
16374 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16375fi
eea650d8 16376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16377 done
16378else
16379 echo "$as_me: failed program was:" >&5
16380sed 's/^/| /' conftest.$ac_ext >&5
16381
16382ac_lo= ac_hi=
16383fi
eea650d8 16384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16385fi
eea650d8 16386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16387# Binary search between lo and hi bounds.
16388while test "x$ac_lo" != "x$ac_hi"; do
16389 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16390 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
16396$ac_includes_default
16397int
16398main ()
16399{
16400static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16401test_array [0] = 0
16402
16403 ;
16404 return 0;
16405}
16406_ACEOF
16407rm -f conftest.$ac_objext
16408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16409 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16410 ac_status=$?
eea650d8
VS
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
e6cc62c6
VS
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
eea650d8
VS
16416 { ac_try='test -z "$ac_c_werror_flag"
16417 || test ! -s conftest.err'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } &&
16423 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_hi=$ac_mid
16430else
16431 echo "$as_me: failed program was:" >&5
16432sed 's/^/| /' conftest.$ac_ext >&5
16433
16434ac_lo=`expr '(' $ac_mid ')' + 1`
16435fi
eea650d8 16436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16437done
16438case $ac_lo in
16439?*) ac_cv_sizeof_long_long=$ac_lo;;
16440'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16441See \`config.log' for more details." >&5
16442echo "$as_me: error: cannot compute sizeof (long long), 77
16443See \`config.log' for more details." >&2;}
16444 { (exit 1); exit 1; }; } ;;
16445esac
a0b9e27f 16446else
e6cc62c6
VS
16447 if test "$cross_compiling" = yes; then
16448 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16449See \`config.log' for more details." >&5
16450echo "$as_me: error: cannot run test program while cross compiling
16451See \`config.log' for more details." >&2;}
16452 { (exit 1); exit 1; }; }
16453else
16454 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461long longval () { return (long) (sizeof (long long)); }
16462unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16463#include <stdio.h>
e6cc62c6
VS
16464#include <stdlib.h>
16465int
16466main ()
247f5006 16467{
e6cc62c6
VS
16468
16469 FILE *f = fopen ("conftest.val", "w");
16470 if (! f)
16471 exit (1);
16472 if (((long) (sizeof (long long))) < 0)
16473 {
16474 long i = longval ();
16475 if (i != ((long) (sizeof (long long))))
16476 exit (1);
16477 fprintf (f, "%ld\n", i);
16478 }
16479 else
16480 {
16481 unsigned long i = ulongval ();
16482 if (i != ((long) (sizeof (long long))))
16483 exit (1);
16484 fprintf (f, "%lu\n", i);
16485 }
16486 exit (ferror (f) || fclose (f) != 0);
16487
16488 ;
16489 return 0;
247f5006 16490}
e6cc62c6
VS
16491_ACEOF
16492rm -f conftest$ac_exeext
16493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_sizeof_long_long=`cat conftest.val`
16504else
16505 echo "$as_me: program exited with status $ac_status" >&5
16506echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509( exit $ac_status )
16510{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16511See \`config.log' for more details." >&5
16512echo "$as_me: error: cannot compute sizeof (long long), 77
16513See \`config.log' for more details." >&2;}
16514 { (exit 1); exit 1; }; }
16515fi
eea650d8 16516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16517fi
16518fi
16519rm -f conftest.val
7b4a847f 16520else
a0b9e27f 16521 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16522fi
16523fi
e6cc62c6
VS
16524echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16525echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16526cat >>confdefs.h <<_ACEOF
16527#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16528_ACEOF
16529
16530
16531 ;;
16532 *-hp-hpux* )
16533 echo "$as_me:$LINENO: checking for long long" >&5
16534echo $ECHO_N "checking for long long... $ECHO_C" >&6
16535if test "${ac_cv_type_long_long+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537else
16538 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16539/* confdefs.h. */
16540_ACEOF
16541cat confdefs.h >>conftest.$ac_ext
16542cat >>conftest.$ac_ext <<_ACEOF
16543/* end confdefs.h. */
16544$ac_includes_default
16545int
16546main ()
16547{
16548if ((long long *) 0)
16549 return 0;
16550if (sizeof (long long))
16551 return 0;
16552 ;
16553 return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext
16557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16558 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16559 ac_status=$?
eea650d8
VS
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
e6cc62c6
VS
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
eea650d8
VS
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_type_long_long=yes
16579else
16580 echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
16583ac_cv_type_long_long=no
16584fi
eea650d8 16585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16586fi
16587echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16588echo "${ECHO_T}$ac_cv_type_long_long" >&6
16589
16590echo "$as_me:$LINENO: checking size of long long" >&5
16591echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16592if test "${ac_cv_sizeof_long_long+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 if test "$ac_cv_type_long_long" = yes; then
16596 # The cast to unsigned long works around a bug in the HP C Compiler
16597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16599 # This bug is HP SR number 8606223364.
16600 if test "$cross_compiling" = yes; then
16601 # Depending upon the size, compute the lo and hi bounds.
16602cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16603/* confdefs.h. */
16604_ACEOF
16605cat confdefs.h >>conftest.$ac_ext
16606cat >>conftest.$ac_ext <<_ACEOF
16607/* end confdefs.h. */
16608$ac_includes_default
16609int
16610main ()
16611{
16612static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16613test_array [0] = 0
16614
16615 ;
16616 return 0;
16617}
16618_ACEOF
16619rm -f conftest.$ac_objext
16620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16621 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16622 ac_status=$?
eea650d8
VS
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
e6cc62c6
VS
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
eea650d8
VS
16628 { ac_try='test -z "$ac_c_werror_flag"
16629 || test ! -s conftest.err'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; } &&
16635 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_lo=0 ac_mid=0
16642 while :; do
16643 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16644/* confdefs.h. */
16645_ACEOF
16646cat confdefs.h >>conftest.$ac_ext
16647cat >>conftest.$ac_ext <<_ACEOF
16648/* end confdefs.h. */
16649$ac_includes_default
16650int
16651main ()
16652{
16653static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16654test_array [0] = 0
8284b0c5 16655
e6cc62c6
VS
16656 ;
16657 return 0;
16658}
16659_ACEOF
16660rm -f conftest.$ac_objext
16661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16662 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16663 ac_status=$?
eea650d8
VS
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
e6cc62c6
VS
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
eea650d8
VS
16669 { ac_try='test -z "$ac_c_werror_flag"
16670 || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_hi=$ac_mid; break
16683else
16684 echo "$as_me: failed program was:" >&5
16685sed 's/^/| /' conftest.$ac_ext >&5
16686
16687ac_lo=`expr $ac_mid + 1`
eea650d8
VS
16688 if test $ac_lo -le $ac_mid; then
16689 ac_lo= ac_hi=
16690 break
16691 fi
16692 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16693fi
eea650d8 16694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16695 done
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706$ac_includes_default
16707int
16708main ()
16709{
16710static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16711test_array [0] = 0
a0b9e27f 16712
e6cc62c6
VS
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext
16718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16719 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16720 ac_status=$?
eea650d8
VS
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
e6cc62c6
VS
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
eea650d8
VS
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_hi=-1 ac_mid=-1
16740 while :; do
16741 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h. */
16747$ac_includes_default
16748int
16749main ()
16750{
16751static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16752test_array [0] = 0
a0b9e27f 16753
e6cc62c6
VS
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16760 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16761 ac_status=$?
eea650d8
VS
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
e6cc62c6
VS
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
eea650d8
VS
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_lo=$ac_mid; break
16781else
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
16786 if test $ac_mid -le $ac_hi; then
16787 ac_lo= ac_hi=
16788 break
16789 fi
16790 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16791fi
eea650d8 16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16793 done
8284b0c5 16794else
e6cc62c6
VS
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798ac_lo= ac_hi=
16799fi
eea650d8 16800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16801fi
eea650d8 16802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16803# Binary search between lo and hi bounds.
16804while test "x$ac_lo" != "x$ac_hi"; do
16805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16806 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812$ac_includes_default
16813int
16814main ()
16815{
16816static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16817test_array [0] = 0
16818
16819 ;
16820 return 0;
16821}
16822_ACEOF
16823rm -f conftest.$ac_objext
16824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16825 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16826 ac_status=$?
eea650d8
VS
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
e6cc62c6
VS
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
eea650d8
VS
16832 { ac_try='test -z "$ac_c_werror_flag"
16833 || test ! -s conftest.err'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_hi=$ac_mid
16846else
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
16850ac_lo=`expr '(' $ac_mid ')' + 1`
16851fi
eea650d8 16852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16853done
16854case $ac_lo in
16855?*) ac_cv_sizeof_long_long=$ac_lo;;
16856'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16857See \`config.log' for more details." >&5
16858echo "$as_me: error: cannot compute sizeof (long long), 77
16859See \`config.log' for more details." >&2;}
16860 { (exit 1); exit 1; }; } ;;
16861esac
8284b0c5 16862else
e6cc62c6
VS
16863 if test "$cross_compiling" = yes; then
16864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16865See \`config.log' for more details." >&5
16866echo "$as_me: error: cannot run test program while cross compiling
16867See \`config.log' for more details." >&2;}
16868 { (exit 1); exit 1; }; }
16869else
16870 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876$ac_includes_default
16877long longval () { return (long) (sizeof (long long)); }
16878unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16879#include <stdio.h>
e6cc62c6
VS
16880#include <stdlib.h>
16881int
16882main ()
8284b0c5 16883{
e6cc62c6
VS
16884
16885 FILE *f = fopen ("conftest.val", "w");
16886 if (! f)
16887 exit (1);
16888 if (((long) (sizeof (long long))) < 0)
16889 {
16890 long i = longval ();
16891 if (i != ((long) (sizeof (long long))))
16892 exit (1);
16893 fprintf (f, "%ld\n", i);
16894 }
16895 else
16896 {
16897 unsigned long i = ulongval ();
16898 if (i != ((long) (sizeof (long long))))
16899 exit (1);
16900 fprintf (f, "%lu\n", i);
16901 }
16902 exit (ferror (f) || fclose (f) != 0);
16903
16904 ;
16905 return 0;
8284b0c5 16906}
e6cc62c6
VS
16907_ACEOF
16908rm -f conftest$ac_exeext
16909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910 (eval $ac_link) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_sizeof_long_long=`cat conftest.val`
16920else
16921 echo "$as_me: program exited with status $ac_status" >&5
16922echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925( exit $ac_status )
16926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16927See \`config.log' for more details." >&5
16928echo "$as_me: error: cannot compute sizeof (long long), 77
16929See \`config.log' for more details." >&2;}
16930 { (exit 1); exit 1; }; }
16931fi
eea650d8 16932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16933fi
16934fi
16935rm -f conftest.val
5c6fa7d2
RR
16936else
16937 ac_cv_sizeof_long_long=0
52127426 16938fi
4f57cf11 16939fi
e6cc62c6
VS
16940echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16941echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16942cat >>confdefs.h <<_ACEOF
4f57cf11 16943#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16944_ACEOF
4f57cf11
GD
16945
16946
16947 if test "$ac_cv_sizeof_long_long" != "0"; then
16948 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16949 fi
16950 ;;
16951 * )
e6cc62c6
VS
16952 echo "$as_me:$LINENO: checking for long long" >&5
16953echo $ECHO_N "checking for long long... $ECHO_C" >&6
16954if test "${ac_cv_type_long_long+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963$ac_includes_default
16964int
16965main ()
16966{
16967if ((long long *) 0)
16968 return 0;
16969if (sizeof (long long))
16970 return 0;
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext
16976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16977 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16978 ac_status=$?
eea650d8
VS
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
e6cc62c6
VS
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
eea650d8
VS
16984 { ac_try='test -z "$ac_c_werror_flag"
16985 || test ! -s conftest.err'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_type_long_long=yes
16998else
16999 echo "$as_me: failed program was:" >&5
17000sed 's/^/| /' conftest.$ac_ext >&5
17001
17002ac_cv_type_long_long=no
17003fi
eea650d8 17004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17005fi
17006echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17007echo "${ECHO_T}$ac_cv_type_long_long" >&6
17008
17009echo "$as_me:$LINENO: checking size of long long" >&5
17010echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17011if test "${ac_cv_sizeof_long_long+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013else
17014 if test "$ac_cv_type_long_long" = yes; then
17015 # The cast to unsigned long works around a bug in the HP C Compiler
17016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17018 # This bug is HP SR number 8606223364.
4f57cf11 17019 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17020 # Depending upon the size, compute the lo and hi bounds.
17021cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17022/* confdefs.h. */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h. */
17027$ac_includes_default
17028int
17029main ()
17030{
17031static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17032test_array [0] = 0
17033
17034 ;
17035 return 0;
17036}
17037_ACEOF
17038rm -f conftest.$ac_objext
17039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17040 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17041 ac_status=$?
eea650d8
VS
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
e6cc62c6
VS
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
eea650d8
VS
17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_lo=0 ac_mid=0
17061 while :; do
17062 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
17068$ac_includes_default
17069int
17070main ()
17071{
17072static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17073test_array [0] = 0
17074
17075 ;
17076 return 0;
17077}
17078_ACEOF
17079rm -f conftest.$ac_objext
17080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17081 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17082 ac_status=$?
eea650d8
VS
17083 grep -v '^ *+' conftest.er1 >conftest.err
17084 rm -f conftest.er1
17085 cat conftest.err >&5
e6cc62c6
VS
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
eea650d8
VS
17088 { ac_try='test -z "$ac_c_werror_flag"
17089 || test ! -s conftest.err'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_hi=$ac_mid; break
17102else
17103 echo "$as_me: failed program was:" >&5
17104sed 's/^/| /' conftest.$ac_ext >&5
17105
17106ac_lo=`expr $ac_mid + 1`
eea650d8
VS
17107 if test $ac_lo -le $ac_mid; then
17108 ac_lo= ac_hi=
17109 break
17110 fi
17111 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17112fi
eea650d8 17113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17114 done
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17120/* confdefs.h. */
17121_ACEOF
17122cat confdefs.h >>conftest.$ac_ext
17123cat >>conftest.$ac_ext <<_ACEOF
17124/* end confdefs.h. */
17125$ac_includes_default
17126int
17127main ()
17128{
17129static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17130test_array [0] = 0
17131
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext
17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17138 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17139 ac_status=$?
eea650d8
VS
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
e6cc62c6
VS
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
eea650d8
VS
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_hi=-1 ac_mid=-1
17159 while :; do
17160 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
17166$ac_includes_default
17167int
17168main ()
17169{
17170static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17171test_array [0] = 0
17172
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest.$ac_objext
17178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17179 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17180 ac_status=$?
eea650d8
VS
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
e6cc62c6
VS
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
eea650d8
VS
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_lo=$ac_mid; break
17200else
17201 echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
17205 if test $ac_mid -le $ac_hi; then
17206 ac_lo= ac_hi=
17207 break
17208 fi
17209 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17210fi
eea650d8 17211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17212 done
4f57cf11 17213else
e6cc62c6
VS
17214 echo "$as_me: failed program was:" >&5
17215sed 's/^/| /' conftest.$ac_ext >&5
17216
17217ac_lo= ac_hi=
17218fi
eea650d8 17219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17220fi
eea650d8 17221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17222# Binary search between lo and hi bounds.
17223while test "x$ac_lo" != "x$ac_hi"; do
17224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17225 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231$ac_includes_default
17232int
17233main ()
17234{
17235static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17236test_array [0] = 0
17237
17238 ;
17239 return 0;
17240}
17241_ACEOF
17242rm -f conftest.$ac_objext
17243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17244 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17245 ac_status=$?
eea650d8
VS
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
e6cc62c6
VS
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
eea650d8
VS
17251 { ac_try='test -z "$ac_c_werror_flag"
17252 || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_hi=$ac_mid
17265else
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
17268
17269ac_lo=`expr '(' $ac_mid ')' + 1`
17270fi
eea650d8 17271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17272done
17273case $ac_lo in
17274?*) ac_cv_sizeof_long_long=$ac_lo;;
17275'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17276See \`config.log' for more details." >&5
17277echo "$as_me: error: cannot compute sizeof (long long), 77
17278See \`config.log' for more details." >&2;}
17279 { (exit 1); exit 1; }; } ;;
17280esac
17281else
17282 if test "$cross_compiling" = yes; then
17283 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17284See \`config.log' for more details." >&5
17285echo "$as_me: error: cannot run test program while cross compiling
17286See \`config.log' for more details." >&2;}
17287 { (exit 1); exit 1; }; }
17288else
17289 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295$ac_includes_default
17296long longval () { return (long) (sizeof (long long)); }
17297unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17298#include <stdio.h>
e6cc62c6
VS
17299#include <stdlib.h>
17300int
17301main ()
4f57cf11 17302{
e6cc62c6
VS
17303
17304 FILE *f = fopen ("conftest.val", "w");
17305 if (! f)
17306 exit (1);
17307 if (((long) (sizeof (long long))) < 0)
17308 {
17309 long i = longval ();
17310 if (i != ((long) (sizeof (long long))))
17311 exit (1);
17312 fprintf (f, "%ld\n", i);
17313 }
17314 else
17315 {
17316 unsigned long i = ulongval ();
17317 if (i != ((long) (sizeof (long long))))
17318 exit (1);
17319 fprintf (f, "%lu\n", i);
17320 }
17321 exit (ferror (f) || fclose (f) != 0);
17322
17323 ;
17324 return 0;
4f57cf11 17325}
e6cc62c6
VS
17326_ACEOF
17327rm -f conftest$ac_exeext
17328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329 (eval $ac_link) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_sizeof_long_long=`cat conftest.val`
17339else
17340 echo "$as_me: program exited with status $ac_status" >&5
17341echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344( exit $ac_status )
17345{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17346See \`config.log' for more details." >&5
17347echo "$as_me: error: cannot compute sizeof (long long), 77
17348See \`config.log' for more details." >&2;}
17349 { (exit 1); exit 1; }; }
17350fi
eea650d8 17351rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17352fi
17353fi
17354rm -f conftest.val
4f57cf11 17355else
4f57cf11
GD
17356 ac_cv_sizeof_long_long=0
17357fi
7b4a847f 17358fi
e6cc62c6
VS
17359echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17360echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17361cat >>confdefs.h <<_ACEOF
21d1c967 17362#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17363_ACEOF
9e691f46 17364
8284b0c5 17365
21d1c967
GD
17366esac
17367
e6cc62c6
VS
17368echo "$as_me:$LINENO: checking size of wchar_t" >&5
17369echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17370if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17372else
e6cc62c6 17373
21d1c967 17374 if test "$cross_compiling" = yes; then
e6cc62c6 17375
2b5f62a0
VZ
17376 case "${host}" in
17377 *-pc-msdosdjgpp )
17378 wx_cv_sizeof_wchar_t=0
17379 ;;
17380 * )
17381 wx_cv_sizeof_wchar_t=4
17382 ;;
17383 esac
e6cc62c6
VS
17384
17385
6f72b082 17386else
e6cc62c6 17387 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
21d1c967 17393
2b5f62a0
VZ
17394 /* DJGPP only has fake wchar_t: */
17395 #ifdef __DJGPP__
17396 # error "fake wchar_t"
17397 #endif
21d1c967
GD
17398 #ifdef HAVE_WCHAR_H
17399 # ifdef __CYGWIN__
17400 # include <stddef.h>
17401 # endif
17402 # include <wchar.h>
17403 #endif
17404 #ifdef HAVE_STDLIB_H
17405 # include <stdlib.h>
17406 #endif
17407 #include <stdio.h>
17408 int main()
17409 {
17410 FILE *f=fopen("conftestval", "w");
17411 if (!f) exit(1);
17412 fprintf(f, "%i", sizeof(wchar_t));
17413 exit(0);
17414 }
e6cc62c6
VS
17415
17416_ACEOF
17417rm -f conftest$ac_exeext
17418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
21d1c967 17428 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17429else
e6cc62c6
VS
17430 echo "$as_me: program exited with status $ac_status" >&5
17431echo "$as_me: failed program was:" >&5
17432sed 's/^/| /' conftest.$ac_ext >&5
17433
17434( exit $ac_status )
17435wx_cv_sizeof_wchar_t=0
6f72b082 17436fi
eea650d8 17437rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17438fi
6f72b082 17439
3f345b47 17440fi
e6cc62c6
VS
17441echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17442echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17443
e6cc62c6 17444cat >>confdefs.h <<_ACEOF
21d1c967 17445#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17446_ACEOF
90dd450c 17447
8284b0c5 17448
21d1c967
GD
17449# Check whether --enable-largefile or --disable-largefile was given.
17450if test "${enable_largefile+set}" = set; then
17451 enableval="$enable_largefile"
3f345b47 17452
e6cc62c6 17453fi;
21d1c967
GD
17454if test "$enable_largefile" != no; then
17455 wx_largefile=no
e6cc62c6
VS
17456
17457 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17458echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17459if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17461else
17462
17463 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
21d1c967
GD
17469#define _FILE_OFFSET_BITS 64
17470 #include <sys/types.h>
e6cc62c6
VS
17471int
17472main ()
17473{
21d1c967
GD
17474typedef struct {
17475 unsigned int field: sizeof(off_t) == 8;
17476} wxlf;
17477
e6cc62c6
VS
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext
17483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17484 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17485 ac_status=$?
eea650d8
VS
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
e6cc62c6
VS
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
eea650d8
VS
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
21d1c967 17504 ac_cv_sys_file_offset_bits=64
f6bcfd97 17505else
e6cc62c6
VS
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509ac_cv_sys_file_offset_bits=no
247f5006 17510fi
eea650d8 17511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17512
a0b9e27f 17513
e6cc62c6
VS
17514fi
17515echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17516echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
17517
17518 if test "$ac_cv_sys_file_offset_bits" != no; then
17519 wx_largefile=yes
e6cc62c6 17520 cat >>confdefs.h <<_ACEOF
21d1c967 17521#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 17522_ACEOF
21d1c967
GD
17523
17524 fi
17525
17526 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
17527
17528 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17529echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17530if test "${ac_cv_sys_large_files+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17532else
17533
17534 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17535/* confdefs.h. */
17536_ACEOF
17537cat confdefs.h >>conftest.$ac_ext
17538cat >>conftest.$ac_ext <<_ACEOF
17539/* end confdefs.h. */
21d1c967
GD
17540#define _LARGE_FILES 1
17541 #include <sys/types.h>
e6cc62c6
VS
17542int
17543main ()
17544{
21d1c967
GD
17545typedef struct {
17546 unsigned int field: sizeof(off_t) == 8;
17547} wxlf;
17548
e6cc62c6
VS
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext
17554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17555 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17556 ac_status=$?
eea650d8
VS
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
e6cc62c6
VS
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
eea650d8
VS
17562 { ac_try='test -z "$ac_c_werror_flag"
17563 || test ! -s conftest.err'
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; } &&
17569 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
21d1c967 17575 ac_cv_sys_large_files=1
f6bcfd97 17576else
e6cc62c6
VS
17577 echo "$as_me: failed program was:" >&5
17578sed 's/^/| /' conftest.$ac_ext >&5
17579
17580ac_cv_sys_large_files=no
247f5006 17581fi
eea650d8 17582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17583
e6cc62c6
VS
17584
17585fi
17586echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17587echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 17588
21d1c967
GD
17589 if test "$ac_cv_sys_large_files" != no; then
17590 wx_largefile=yes
e6cc62c6 17591 cat >>confdefs.h <<_ACEOF
21d1c967 17592#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 17593_ACEOF
90dd450c 17594
90dd450c
VZ
17595 fi
17596
90dd450c 17597 fi
90dd450c 17598
e6cc62c6
VS
17599 echo "$as_me:$LINENO: checking if large file support is available" >&5
17600echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 17601 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 17602 cat >>confdefs.h <<\_ACEOF
21d1c967 17603#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 17604_ACEOF
90dd450c 17605
90dd450c 17606 fi
e6cc62c6
VS
17607 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17608echo "${ECHO_T}$wx_largefile" >&6
21d1c967 17609fi
90dd450c 17610
8284b0c5 17611
f02444d0 17612if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
17613 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17614 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 17615 else
e26c13cf 17616 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 17617 fi
e26c13cf 17618 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
17619fi
17620
e6cc62c6
VS
17621echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17622echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17623if test "${ac_cv_c_bigendian+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17625else
21d1c967
GD
17626 ac_cv_c_bigendian=unknown
17627# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 17628cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17629/* confdefs.h. */
17630_ACEOF
17631cat confdefs.h >>conftest.$ac_ext
17632cat >>conftest.$ac_ext <<_ACEOF
17633/* end confdefs.h. */
21d1c967
GD
17634#include <sys/types.h>
17635#include <sys/param.h>
e6cc62c6
VS
17636int
17637main ()
17638{
21d1c967
GD
17639
17640#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17641 bogus endian macros
17642#endif
e6cc62c6
VS
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext
17648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17649 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17650 ac_status=$?
eea650d8
VS
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
e6cc62c6
VS
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
eea650d8
VS
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
21d1c967 17669 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17670cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
21d1c967
GD
17676#include <sys/types.h>
17677#include <sys/param.h>
e6cc62c6
VS
17678int
17679main ()
17680{
21d1c967
GD
17681
17682#if BYTE_ORDER != BIG_ENDIAN
17683 not big endian
17684#endif
e6cc62c6
VS
17685 ;
17686 return 0;
17687}
17688_ACEOF
17689rm -f conftest.$ac_objext
17690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17691 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17692 ac_status=$?
eea650d8
VS
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
e6cc62c6
VS
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
eea650d8
VS
17698 { ac_try='test -z "$ac_c_werror_flag"
17699 || test ! -s conftest.err'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
21d1c967 17711 ac_cv_c_bigendian=yes
3f345b47 17712else
e6cc62c6
VS
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716ac_cv_c_bigendian=no
3f345b47 17717fi
eea650d8 17718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 17719else
e6cc62c6
VS
17720 echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
3f345b47 17723fi
eea650d8 17724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17725if test $ac_cv_c_bigendian = unknown; then
17726if test "$cross_compiling" = yes; then
17727 ac_cv_c_bigendian=unknown
10f2d63a 17728else
e6cc62c6 17729 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h. */
21d1c967
GD
17735main () {
17736 /* Are we little or big endian? From Harbison&Steele. */
17737 union
17738 {
17739 long l;
17740 char c[sizeof (long)];
17741 } u;
17742 u.l = 1;
17743 exit (u.c[sizeof (long) - 1] == 1);
17744}
e6cc62c6
VS
17745_ACEOF
17746rm -f conftest$ac_exeext
17747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
21d1c967 17757 ac_cv_c_bigendian=no
3f345b47 17758else
e6cc62c6
VS
17759 echo "$as_me: program exited with status $ac_status" >&5
17760echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763( exit $ac_status )
17764ac_cv_c_bigendian=yes
247f5006 17765fi
eea650d8 17766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17767fi
3f345b47 17768fi
8168de4c 17769fi
e6cc62c6
VS
17770echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17771echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17772if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17773 { 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
17774echo "$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
17775fi
17776if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17777 cat >>confdefs.h <<\_ACEOF
247f5006 17778#define WORDS_BIGENDIAN 1
e6cc62c6 17779_ACEOF
247f5006
VZ
17780
17781fi
17782
17783
e6cc62c6
VS
17784
17785ac_ext=cc
17786ac_cpp='$CXXCPP $CPPFLAGS'
17787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17790echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17791echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17792if test -z "$CXXCPP"; then
e6cc62c6
VS
17793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 # Double quotes because CXXCPP needs to be expanded
17797 for CXXCPP in "$CXX -E" "/lib/cpp"
17798 do
17799 ac_preproc_ok=false
17800for ac_cxx_preproc_warn_flag in '' yes
17801do
17802 # Use a header file that comes with gcc, so configuring glibc
17803 # with a fresh cross-compiler works.
17804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805 # <limits.h> exists even on freestanding compilers.
17806 # On the NeXT, cc -E runs the code through the compiler's parser,
17807 # not just through cpp. "Syntax error" is here to catch this case.
17808 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17809/* confdefs.h. */
17810_ACEOF
17811cat confdefs.h >>conftest.$ac_ext
17812cat >>conftest.$ac_ext <<_ACEOF
17813/* end confdefs.h. */
17814#ifdef __STDC__
17815# include <limits.h>
17816#else
17817# include <assert.h>
17818#endif
eea650d8 17819 Syntax error
e6cc62c6
VS
17820_ACEOF
17821if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } >/dev/null; then
17829 if test -s conftest.err; then
17830 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17831 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17832 else
17833 ac_cpp_err=
17834 fi
247f5006 17835else
e6cc62c6
VS
17836 ac_cpp_err=yes
17837fi
17838if test -z "$ac_cpp_err"; then
17839 :
17840else
17841 echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
17844 # Broken: fails on valid input.
17845continue
17846fi
17847rm -f conftest.err conftest.$ac_ext
17848
17849 # OK, works on sane cases. Now check whether non-existent headers
17850 # can be detected and how.
17851 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17852/* confdefs.h. */
17853_ACEOF
17854cat confdefs.h >>conftest.$ac_ext
17855cat >>conftest.$ac_ext <<_ACEOF
17856/* end confdefs.h. */
17857#include <ac_nonexistent.h>
17858_ACEOF
17859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } >/dev/null; then
17867 if test -s conftest.err; then
17868 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17869 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17870 else
17871 ac_cpp_err=
17872 fi
17873else
17874 ac_cpp_err=yes
17875fi
17876if test -z "$ac_cpp_err"; then
17877 # Broken: success on invalid input.
17878continue
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 # Passes both tests.
17884ac_preproc_ok=:
17885break
17886fi
17887rm -f conftest.err conftest.$ac_ext
17888
17889done
17890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17891rm -f conftest.err conftest.$ac_ext
17892if $ac_preproc_ok; then
17893 break
17894fi
17895
17896 done
17897 ac_cv_prog_CXXCPP=$CXXCPP
17898
17899fi
17900 CXXCPP=$ac_cv_prog_CXXCPP
17901else
17902 ac_cv_prog_CXXCPP=$CXXCPP
17903fi
17904echo "$as_me:$LINENO: result: $CXXCPP" >&5
17905echo "${ECHO_T}$CXXCPP" >&6
17906ac_preproc_ok=false
17907for ac_cxx_preproc_warn_flag in '' yes
17908do
17909 # Use a header file that comes with gcc, so configuring glibc
17910 # with a fresh cross-compiler works.
17911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17912 # <limits.h> exists even on freestanding compilers.
17913 # On the NeXT, cc -E runs the code through the compiler's parser,
17914 # not just through cpp. "Syntax error" is here to catch this case.
17915 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17916/* confdefs.h. */
17917_ACEOF
17918cat confdefs.h >>conftest.$ac_ext
17919cat >>conftest.$ac_ext <<_ACEOF
17920/* end confdefs.h. */
17921#ifdef __STDC__
17922# include <limits.h>
17923#else
17924# include <assert.h>
17925#endif
eea650d8 17926 Syntax error
e6cc62c6
VS
17927_ACEOF
17928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } >/dev/null; then
17936 if test -s conftest.err; then
17937 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17939 else
17940 ac_cpp_err=
17941 fi
17942else
17943 ac_cpp_err=yes
17944fi
17945if test -z "$ac_cpp_err"; then
21d1c967 17946 :
698dcdb6 17947else
e6cc62c6
VS
17948 echo "$as_me: failed program was:" >&5
17949sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 # Broken: fails on valid input.
17952continue
17953fi
17954rm -f conftest.err conftest.$ac_ext
17955
17956 # OK, works on sane cases. Now check whether non-existent headers
17957 # can be detected and how.
17958 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964#include <ac_nonexistent.h>
17965_ACEOF
17966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } >/dev/null; then
17974 if test -s conftest.err; then
17975 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17977 else
17978 ac_cpp_err=
17979 fi
17980else
17981 ac_cpp_err=yes
247f5006 17982fi
e6cc62c6
VS
17983if test -z "$ac_cpp_err"; then
17984 # Broken: success on invalid input.
17985continue
17986else
17987 echo "$as_me: failed program was:" >&5
17988sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 # Passes both tests.
17991ac_preproc_ok=:
17992break
328a083c 17993fi
e6cc62c6
VS
17994rm -f conftest.err conftest.$ac_ext
17995
17996done
17997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17998rm -f conftest.err conftest.$ac_ext
17999if $ac_preproc_ok; then
18000 :
18001else
18002 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18003See \`config.log' for more details." >&5
18004echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18005See \`config.log' for more details." >&2;}
18006 { (exit 1); exit 1; }; }
90dd450c 18007fi
e6cc62c6
VS
18008
18009ac_ext=cc
18010ac_cpp='$CXXCPP $CPPFLAGS'
18011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18014
1e6feb95 18015
1725144d 18016
21d1c967 18017 if test "$cross_compiling" = "yes"; then
e6cc62c6 18018 cat >>confdefs.h <<\_ACEOF
21d1c967 18019#define wxUSE_IOSTREAMH 1
e6cc62c6 18020_ACEOF
ab9b9eab 18021
21d1c967 18022 else
e6cc62c6
VS
18023
18024
18025 ac_ext=cc
5c6fa7d2 18026ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18030
52127426 18031
247f5006 18032
e6cc62c6 18033for ac_header in iostream
21d1c967 18034do
e6cc62c6
VS
18035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18036if eval "test \"\${$as_ac_Header+set}\" = set"; then
18037 echo "$as_me:$LINENO: checking for $ac_header" >&5
18038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18039if eval "test \"\${$as_ac_Header+set}\" = set"; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041fi
18042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18044else
18045 # Is the header compilable?
18046echo "$as_me:$LINENO: checking $ac_header usability" >&5
18047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18048cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
18054$ac_includes_default
18055#include <$ac_header>
18056_ACEOF
18057rm -f conftest.$ac_objext
18058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18059 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18060 ac_status=$?
eea650d8
VS
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
e6cc62c6
VS
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
eea650d8
VS
18066 { ac_try='test -z "$ac_cxx_werror_flag"
18067 || test ! -s conftest.err'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_header_compiler=yes
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084ac_header_compiler=no
18085fi
eea650d8 18086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18088echo "${ECHO_T}$ac_header_compiler" >&6
18089
18090# Is the header present?
18091echo "$as_me:$LINENO: checking $ac_header presence" >&5
18092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18093cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18094/* confdefs.h. */
18095_ACEOF
18096cat confdefs.h >>conftest.$ac_ext
18097cat >>conftest.$ac_ext <<_ACEOF
18098/* end confdefs.h. */
18099#include <$ac_header>
18100_ACEOF
18101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } >/dev/null; then
18109 if test -s conftest.err; then
18110 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 18111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18112 else
18113 ac_cpp_err=
18114 fi
18115else
18116 ac_cpp_err=yes
18117fi
18118if test -z "$ac_cpp_err"; then
18119 ac_header_preproc=yes
18120else
18121 echo "$as_me: failed program was:" >&5
18122sed 's/^/| /' conftest.$ac_ext >&5
18123
18124 ac_header_preproc=no
18125fi
18126rm -f conftest.err conftest.$ac_ext
18127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18128echo "${ECHO_T}$ac_header_preproc" >&6
18129
18130# So? What about this header?
eea650d8
VS
18131case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18132 yes:no: )
e6cc62c6
VS
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18137 ac_header_preproc=yes
e6cc62c6 18138 ;;
eea650d8 18139 no:yes:* )
e6cc62c6
VS
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18152 (
18153 cat <<\_ASBOX
eea650d8
VS
18154## ----------------------------------------- ##
18155## Report this to wx-dev@lists.wxwindows.org ##
18156## ----------------------------------------- ##
e6cc62c6
VS
18157_ASBOX
18158 ) |
18159 sed "s/^/$as_me: WARNING: /" >&2
18160 ;;
18161esac
18162echo "$as_me:$LINENO: checking for $ac_header" >&5
18163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18164if eval "test \"\${$as_ac_Header+set}\" = set"; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166else
eea650d8 18167 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18168fi
e6cc62c6
VS
18169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18171
90dd450c 18172fi
e6cc62c6
VS
18173if test `eval echo '${'$as_ac_Header'}'` = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18176_ACEOF
18177
90dd450c 18178fi
e6cc62c6 18179
21d1c967 18180done
10f2d63a 18181
8284b0c5 18182
21d1c967
GD
18183 if test "$ac_cv_header_iostream" = "yes" ; then
18184 :
18185 else
e6cc62c6 18186 cat >>confdefs.h <<\_ACEOF
21d1c967 18187#define wxUSE_IOSTREAMH 1
e6cc62c6 18188_ACEOF
788deba1 18189
90dd450c 18190 fi
ab9b9eab 18191
21d1c967 18192 ac_ext=c
21d1c967 18193ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18196ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18197
21d1c967 18198 fi
ab9b9eab 18199
52127426 18200
8284b0c5 18201
e6cc62c6
VS
18202 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18203echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18204if test "${wx_cv_cpp_bool+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18206else
e6cc62c6
VS
18207
18208
18209
18210 ac_ext=cc
5c6fa7d2 18211ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18215
8284b0c5 18216
e6cc62c6 18217 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18218/* confdefs.h. */
18219_ACEOF
18220cat confdefs.h >>conftest.$ac_ext
18221cat >>conftest.$ac_ext <<_ACEOF
18222/* end confdefs.h. */
21d1c967 18223
e6cc62c6
VS
18224
18225int
18226main ()
18227{
21d1c967
GD
18228
18229 bool b = true;
18230
18231 return 0;
e6cc62c6
VS
18232
18233 ;
18234 return 0;
18235}
18236_ACEOF
18237rm -f conftest.$ac_objext
18238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18239 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18240 ac_status=$?
eea650d8
VS
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
e6cc62c6
VS
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } &&
eea650d8
VS
18246 { ac_try='test -z "$ac_cxx_werror_flag"
18247 || test ! -s conftest.err'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259
21d1c967 18260 wx_cv_cpp_bool=yes
e6cc62c6 18261
698dcdb6 18262else
e6cc62c6
VS
18263 echo "$as_me: failed program was:" >&5
18264sed 's/^/| /' conftest.$ac_ext >&5
18265
18266
21d1c967 18267 wx_cv_cpp_bool=no
e6cc62c6
VS
18268
18269
698dcdb6 18270fi
eea650d8 18271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18272
18273 ac_ext=c
21d1c967 18274ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18277ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18278
a0b9e27f 18279
e6cc62c6
VS
18280fi
18281echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18282echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18283
18284 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18285 cat >>confdefs.h <<\_ACEOF
21d1c967 18286#define HAVE_BOOL 1
e6cc62c6 18287_ACEOF
ab9b9eab 18288
21d1c967
GD
18289 fi
18290
52127426 18291
8284b0c5 18292
e6cc62c6
VS
18293 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18294echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18295if test "${wx_cv_explicit+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18297else
e6cc62c6
VS
18298
18299
18300
18301 ac_ext=cc
5c6fa7d2 18302ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18306
8284b0c5 18307
e6cc62c6 18308 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
986ecc86
VZ
18314
18315 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18316
18317int
18318main ()
18319{
986ecc86
VZ
18320
18321 return 0;
e6cc62c6
VS
18322
18323 ;
18324 return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext
18328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18329 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18330 ac_status=$?
eea650d8
VS
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
e6cc62c6
VS
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
eea650d8
VS
18336 { ac_try='test -z "$ac_cxx_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349
18350 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18351/* confdefs.h. */
18352_ACEOF
18353cat confdefs.h >>conftest.$ac_ext
18354cat >>conftest.$ac_ext <<_ACEOF
18355/* end confdefs.h. */
986ecc86
VZ
18356
18357 class Foo { public: explicit Foo(int) {} };
18358 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18359
18360int
18361main ()
18362{
986ecc86
VZ
18363
18364 TakeFoo(17);
18365 return 0;
e6cc62c6
VS
18366
18367 ;
18368 return 0;
18369}
18370_ACEOF
18371rm -f conftest.$ac_objext
18372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18373 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18374 ac_status=$?
eea650d8
VS
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
e6cc62c6
VS
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
eea650d8
VS
18380 { ac_try='test -z "$ac_cxx_werror_flag"
18381 || test ! -s conftest.err'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
986ecc86
VZ
18393 wx_cv_explicit=no
18394else
e6cc62c6
VS
18395 echo "$as_me: failed program was:" >&5
18396sed 's/^/| /' conftest.$ac_ext >&5
18397
18398wx_cv_explicit=yes
18399
986ecc86 18400fi
eea650d8 18401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18402
986ecc86 18403else
e6cc62c6
VS
18404 echo "$as_me: failed program was:" >&5
18405sed 's/^/| /' conftest.$ac_ext >&5
18406
18407wx_cv_explicit=no
18408
986ecc86 18409fi
eea650d8 18410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18411
18412 ac_ext=c
986ecc86 18413ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18417
a0b9e27f 18418
e6cc62c6
VS
18419fi
18420echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18421echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18422
18423 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18424 cat >>confdefs.h <<\_ACEOF
986ecc86 18425#define HAVE_EXPLICIT 1
e6cc62c6 18426_ACEOF
986ecc86
VZ
18427
18428 fi
18429
8284b0c5 18430
e6cc62c6
VS
18431echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18432echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18433if test "${ac_cv_cxx_const_cast+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18435else
521196a2 18436
521196a2 18437
e6cc62c6
VS
18438 ac_ext=cc
18439ac_cpp='$CXXCPP $CPPFLAGS'
18440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18443
18444 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450
18451int
18452main ()
18453{
521196a2 18454int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459rm -f conftest.$ac_objext
18460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18461 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18462 ac_status=$?
eea650d8
VS
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
e6cc62c6
VS
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
eea650d8
VS
18468 { ac_try='test -z "$ac_cxx_werror_flag"
18469 || test ! -s conftest.err'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
521196a2
MB
18481 ac_cv_cxx_const_cast=yes
18482else
e6cc62c6
VS
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_cv_cxx_const_cast=no
521196a2 18487fi
eea650d8 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 18489 ac_ext=c
521196a2 18490ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18494
18495
18496fi
e6cc62c6
VS
18497echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18498echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18499if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
18500
18501cat >>confdefs.h <<\_ACEOF
18502#define HAVE_CONST_CAST
18503_ACEOF
521196a2
MB
18504
18505fi
18506
18507
e87b7833
MB
18508if test "$wxUSE_STL" = "yes"; then
18509 ac_ext=cc
18510ac_cpp='$CXXCPP $CPPFLAGS'
18511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18514
18515
18516 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18517echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18518 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18519/* confdefs.h. */
18520_ACEOF
18521cat confdefs.h >>conftest.$ac_ext
18522cat >>conftest.$ac_ext <<_ACEOF
18523/* end confdefs.h. */
18524#include <string>
18525 #include <functional>
18526 #include <algorithm>
18527 #include <vector>
18528 #include <list>
18529int
18530main ()
18531{
18532std::vector<int> moo;
18533 std::list<int> foo;
18534 std::vector<int>::iterator it =
18535 std::find_if(moo.begin(), moo.end(),
18536 std::bind2nd(std::less<int>(), 3));
18537 ;
18538 return 0;
18539}
18540_ACEOF
18541rm -f conftest.$ac_objext
18542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18543 (eval $ac_compile) 2>conftest.er1
e87b7833 18544 ac_status=$?
eea650d8
VS
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
e87b7833
MB
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
eea650d8
VS
18550 { ac_try='test -z "$ac_cxx_werror_flag"
18551 || test ! -s conftest.err'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 echo "$as_me:$LINENO: result: yes" >&5
18564echo "${ECHO_T}yes" >&6
18565else
18566 echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569echo "$as_me:$LINENO: result: no" >&5
18570echo "${ECHO_T}no" >&6
18571 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18572echo "$as_me: error: Basic STL functionality missing" >&2;}
18573 { (exit 1); exit 1; }; }
18574fi
eea650d8 18575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18576
18577 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18578echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18579 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
18585#include <string>
18586int
18587main ()
18588{
18589std::wstring foo;
18590 ;
18591 return 0;
18592}
18593_ACEOF
18594rm -f conftest.$ac_objext
18595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18596 (eval $ac_compile) 2>conftest.er1
e87b7833 18597 ac_status=$?
eea650d8
VS
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
e87b7833
MB
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
eea650d8
VS
18603 { ac_try='test -z "$ac_cxx_werror_flag"
18604 || test ! -s conftest.err'
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; }; then
18616 echo "$as_me:$LINENO: result: yes" >&5
18617echo "${ECHO_T}yes" >&6
18618 cat >>confdefs.h <<\_ACEOF
18619#define HAVE_STD_WSTRING 1
18620_ACEOF
18621
18622else
18623 echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
18626echo "$as_me:$LINENO: result: no" >&5
18627echo "${ECHO_T}no" >&6
18628fi
eea650d8 18629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18630
18631 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18632echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18634/* confdefs.h. */
18635_ACEOF
18636cat confdefs.h >>conftest.$ac_ext
18637cat >>conftest.$ac_ext <<_ACEOF
18638/* end confdefs.h. */
18639#include <string>
18640int
18641main ()
18642{
18643std::string foo, bar;
18644 foo.compare(bar);
18645 foo.compare(1, 1, bar);
18646 foo.compare(1, 1, bar, 1, 1);
18647 foo.compare("");
18648 foo.compare(1, 1, "");
18649 foo.compare(1, 1, "", 2);
18650 ;
18651 return 0;
18652}
18653_ACEOF
18654rm -f conftest.$ac_objext
18655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18656 (eval $ac_compile) 2>conftest.er1
e87b7833 18657 ac_status=$?
eea650d8
VS
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
e87b7833
MB
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
eea650d8
VS
18663 { ac_try='test -z "$ac_cxx_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 echo "$as_me:$LINENO: result: yes" >&5
18677echo "${ECHO_T}yes" >&6
18678 cat >>confdefs.h <<\_ACEOF
18679#define HAVE_STD_STRING_COMPARE 1
18680_ACEOF
18681
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686echo "$as_me:$LINENO: result: no" >&5
18687echo "${ECHO_T}no" >&6
18688fi
eea650d8 18689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18690
18691 ac_ext=c
18692ac_cpp='$CPP $CPPFLAGS'
18693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18695ac_compiler_gnu=$ac_cv_c_compiler_gnu
18696
18697fi
18698
8284b0c5 18699
21d1c967
GD
18700SEARCH_INCLUDE="\
18701 /usr/local/include \
18702 \
18703 /usr/Motif-1.2/include \
18704 /usr/Motif-2.1/include \
18705 \
18706 /usr/include/Motif1.2 \
18707 /opt/xpm/include/X11 \
18708 /opt/GBxpm/include/ \
18709 /opt/GBxpm/X11/include/ \
18710 \
18711 /usr/Motif1.2/include \
18712 /usr/dt/include \
18713 /usr/openwin/include \
18714 \
18715 /usr/include/Xm \
18716 \
18717 /usr/X11R6/include \
18718 /usr/X11R6.4/include \
18719 /usr/X11R5/include \
18720 /usr/X11R4/include \
18721 \
18722 /usr/include/X11R6 \
18723 /usr/include/X11R5 \
18724 /usr/include/X11R4 \
18725 \
18726 /usr/local/X11R6/include \
18727 /usr/local/X11R5/include \
18728 /usr/local/X11R4/include \
18729 \
18730 /usr/local/include/X11R6 \
18731 /usr/local/include/X11R5 \
18732 /usr/local/include/X11R4 \
18733 \
18734 /usr/X11/include \
18735 /usr/include/X11 \
18736 /usr/local/X11/include \
18737 /usr/local/include/X11 \
18738 \
18739 /usr/X386/include \
18740 /usr/x386/include \
18741 /usr/XFree86/include/X11 \
18742 \
18743 X:/XFree86/include \
18744 X:/XFree86/include/X11 \
18745 \
18746 /usr/include/gtk \
18747 /usr/local/include/gtk \
18748 /usr/include/glib \
18749 /usr/local/include/glib \
18750 \
18751 /usr/include/qt \
18752 /usr/local/include/qt \
18753 \
18754 /usr/include/windows \
18755 /usr/include/wine \
18756 /usr/local/include/wine \
18757 \
18758 /usr/unsupported/include \
18759 /usr/athena/include \
18760 /usr/local/x11r5/include \
18761 /usr/lpp/Xamples/include \
18762 \
2b5f62a0 18763 /usr/openwin/share/include"
21d1c967
GD
18764
18765SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18766
8284b0c5 18767
e6cc62c6 18768cat >confcache <<\_ACEOF
21d1c967
GD
18769# This file is a shell script that caches the results of configure
18770# tests run on this system so they can be shared between configure
e6cc62c6
VS
18771# scripts and configure runs, see configure's option --config-cache.
18772# It is not useful on other systems. If it contains results you don't
18773# want to keep, you may remove or edit it.
21d1c967 18774#
e6cc62c6
VS
18775# config.status only pays attention to the cache file if you give it
18776# the --recheck option to rerun configure.
21d1c967 18777#
e6cc62c6
VS
18778# `ac_cv_env_foo' variables (set or unset) will be overridden when
18779# loading this file, other *unset* `ac_cv_foo' will be assigned the
18780# following values.
18781
18782_ACEOF
18783
21d1c967
GD
18784# The following way of writing the cache mishandles newlines in values,
18785# but we know of no workaround that is simple, portable, and efficient.
18786# So, don't put newlines in cache variables' values.
18787# Ultrix sh set writes to stderr and can't be redirected directly,
18788# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18789{
18790 (set) 2>&1 |
18791 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18792 *ac_space=\ *)
18793 # `set' does not quote correctly, so add quotes (double-quote
18794 # substitution turns \\\\ into \\, and sed turns \\ into \).
18795 sed -n \
eea650d8
VS
18796 "s/'/'\\\\''/g;
18797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18798 ;;
18799 *)
18800 # `set' quotes correctly as required by POSIX, so do not add quotes.
18801 sed -n \
eea650d8 18802 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18803 ;;
18804 esac;
18805} |
18806 sed '
18807 t clear
18808 : clear
18809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18810 t end
18811 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18812 : end' >>confcache
18813if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18814 if test -w $cache_file; then
e6cc62c6
VS
18815 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18816 cat confcache >$cache_file
21d1c967
GD
18817 else
18818 echo "not updating unwritable cache $cache_file"
18819 fi
ab9b9eab 18820fi
21d1c967 18821rm -f confcache
ab9b9eab 18822
fe0895cf 18823if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18824 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18825echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18826if test "${wx_cv_lib_glibc21+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
18829
18830 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18831/* confdefs.h. */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h. */
21d1c967 18836#include <features.h>
e6cc62c6
VS
18837int
18838main ()
18839{
ab9b9eab 18840
21d1c967
GD
18841 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18842 #error not glibc2.1
18843 #endif
e6cc62c6
VS
18844
18845 ;
18846 return 0;
18847}
18848_ACEOF
18849rm -f conftest.$ac_objext
18850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18851 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18852 ac_status=$?
eea650d8
VS
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
e6cc62c6
VS
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
eea650d8
VS
18858 { ac_try='test -z "$ac_c_werror_flag"
18859 || test ! -s conftest.err'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871
21d1c967 18872 wx_cv_lib_glibc21=yes
e6cc62c6 18873
698dcdb6 18874else
e6cc62c6
VS
18875 echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878
21d1c967 18879 wx_cv_lib_glibc21=no
e6cc62c6
VS
18880
18881
247f5006 18882fi
eea650d8 18883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18884
e6cc62c6
VS
18885fi
18886echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18887echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18888 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18889 cat >>confdefs.h <<\_ACEOF
21d1c967 18890#define wxHAVE_GLIBC2 1
e6cc62c6 18891_ACEOF
1e487827 18892
90dd450c 18893 fi
ab9b9eab
VZ
18894fi
18895
5c0a20c3
VZ
18896if test "x$wx_cv_lib_glibc21" = "xyes"; then
18897 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18898 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18899#define _GNU_SOURCE 1
e6cc62c6 18900_ACEOF
5c0a20c3
VZ
18901
18902 fi
18903fi
18904
8284b0c5
MB
18905
18906
21d1c967 18907if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18908 cat >>confdefs.h <<\_ACEOF
21d1c967 18909#define wxUSE_REGEX 1
e6cc62c6 18910_ACEOF
698dcdb6 18911
8284b0c5 18912
30f2fa6c
VS
18913 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18914 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18915echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18916 wxUSE_REGEX=builtin
18917 fi
18918
21d1c967 18919 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18920 if test "${ac_cv_header_regex_h+set}" = set; then
18921 echo "$as_me:$LINENO: checking for regex.h" >&5
18922echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18923if test "${ac_cv_header_regex_h+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925fi
18926echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18927echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18928else
18929 # Is the header compilable?
18930echo "$as_me:$LINENO: checking regex.h usability" >&5
18931echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18932cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18933/* confdefs.h. */
18934_ACEOF
18935cat confdefs.h >>conftest.$ac_ext
18936cat >>conftest.$ac_ext <<_ACEOF
18937/* end confdefs.h. */
18938$ac_includes_default
247f5006 18939#include <regex.h>
e6cc62c6
VS
18940_ACEOF
18941rm -f conftest.$ac_objext
18942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18943 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18944 ac_status=$?
eea650d8
VS
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
e6cc62c6
VS
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
eea650d8
VS
18950 { ac_try='test -z "$ac_c_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_header_compiler=yes
18964else
18965 echo "$as_me: failed program was:" >&5
18966sed 's/^/| /' conftest.$ac_ext >&5
18967
18968ac_header_compiler=no
18969fi
eea650d8 18970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18971echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18972echo "${ECHO_T}$ac_header_compiler" >&6
18973
18974# Is the header present?
18975echo "$as_me:$LINENO: checking regex.h presence" >&5
18976echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18977cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18978/* confdefs.h. */
18979_ACEOF
18980cat confdefs.h >>conftest.$ac_ext
18981cat >>conftest.$ac_ext <<_ACEOF
18982/* end confdefs.h. */
18983#include <regex.h>
18984_ACEOF
18985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18987 ac_status=$?
18988 grep -v '^ *+' conftest.er1 >conftest.err
18989 rm -f conftest.er1
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } >/dev/null; then
18993 if test -s conftest.err; then
18994 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 18995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
18996 else
18997 ac_cpp_err=
18998 fi
18999else
19000 ac_cpp_err=yes
19001fi
19002if test -z "$ac_cpp_err"; then
19003 ac_header_preproc=yes
19004else
19005 echo "$as_me: failed program was:" >&5
19006sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 ac_header_preproc=no
19009fi
19010rm -f conftest.err conftest.$ac_ext
19011echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19012echo "${ECHO_T}$ac_header_preproc" >&6
19013
19014# So? What about this header?
eea650d8
VS
19015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19016 yes:no: )
e6cc62c6
VS
19017 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19018echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19019 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19020echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19021 ac_header_preproc=yes
e6cc62c6 19022 ;;
eea650d8 19023 no:yes:* )
e6cc62c6
VS
19024 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19025echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
eea650d8
VS
19026 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19027echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19029echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19031echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19032 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19033echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19034 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19035echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19036 (
19037 cat <<\_ASBOX
eea650d8
VS
19038## ----------------------------------------- ##
19039## Report this to wx-dev@lists.wxwindows.org ##
19040## ----------------------------------------- ##
e6cc62c6
VS
19041_ASBOX
19042 ) |
19043 sed "s/^/$as_me: WARNING: /" >&2
19044 ;;
19045esac
19046echo "$as_me:$LINENO: checking for regex.h" >&5
19047echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19048if test "${ac_cv_header_regex_h+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19050else
19051 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19052fi
e6cc62c6
VS
19053echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19054echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19055
698dcdb6 19056fi
e6cc62c6
VS
19057if test $ac_cv_header_regex_h = yes; then
19058
19059for ac_func in regcomp
21d1c967 19060do
e6cc62c6
VS
19061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19062echo "$as_me:$LINENO: checking for $ac_func" >&5
19063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19064if eval "test \"\${$as_ac_var+set}\" = set"; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19066else
19067 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
eea650d8
VS
19073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19075#define $ac_func innocuous_$ac_func
19076
a0b9e27f 19077/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19078 which can conflict with char $ac_func (); below.
19079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19080 <limits.h> exists even on freestanding compilers. */
eea650d8 19081
e6cc62c6
VS
19082#ifdef __STDC__
19083# include <limits.h>
19084#else
19085# include <assert.h>
19086#endif
eea650d8
VS
19087
19088#undef $ac_func
19089
21d1c967 19090/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19091#ifdef __cplusplus
19092extern "C"
19093{
19094#endif
21d1c967 19095/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19096 builtin and then its argument prototype would still apply. */
19097char $ac_func ();
21d1c967
GD
19098/* The GNU C library defines this for functions which it implements
19099 to always fail with ENOSYS. Some functions are actually named
19100 something starting with __ and the normal name is an alias. */
19101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19102choke me
19103#else
e6cc62c6
VS
19104char (*f) () = $ac_func;
19105#endif
19106#ifdef __cplusplus
19107}
21d1c967 19108#endif
90dd450c 19109
e6cc62c6
VS
19110int
19111main ()
19112{
19113return f != $ac_func;
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext conftest$ac_exeext
19119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19120 (eval $ac_link) 2>conftest.er1
e6cc62c6 19121 ac_status=$?
eea650d8
VS
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
e6cc62c6
VS
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
eea650d8
VS
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 eval "$as_ac_var=yes"
19141else
19142 echo "$as_me: failed program was:" >&5
19143sed 's/^/| /' conftest.$ac_ext >&5
19144
19145eval "$as_ac_var=no"
19146fi
eea650d8
VS
19147rm -f conftest.err conftest.$ac_objext \
19148 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19149fi
19150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19152if test `eval echo '${'$as_ac_var'}'` = yes; then
19153 cat >>confdefs.h <<_ACEOF
19154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19155_ACEOF
5c6fa7d2 19156
698dcdb6 19157fi
21d1c967
GD
19158done
19159
ab9b9eab
VZ
19160fi
19161
8284b0c5 19162
e6cc62c6 19163
21d1c967
GD
19164 if test "x$ac_cv_func_regcomp" != "xyes"; then
19165 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19166 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19167echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19168 { (exit 1); exit 1; }; }
21d1c967 19169 else
e6cc62c6
VS
19170 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19171echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19172 wxUSE_REGEX=builtin
19173 fi
19174 else
19175 wxUSE_REGEX=sys
19176 fi
ab9b9eab 19177 fi
21d1c967 19178fi
90dd450c 19179
8284b0c5 19180
21d1c967
GD
19181ZLIB_LINK=
19182if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19183 cat >>confdefs.h <<\_ACEOF
21d1c967 19184#define wxUSE_ZLIB 1
e6cc62c6 19185_ACEOF
21d1c967 19186
8284b0c5 19187
21d1c967 19188 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19189 if test "$USE_DARWIN" = 1; then
19190 system_zlib_h_ok="yes"
19191 else
e6cc62c6
VS
19192 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19193echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19194if test "${ac_cv_header_zlib_h+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19196else
19197 if test "$cross_compiling" = yes; then
89e6bf6d 19198 unset ac_cv_header_zlib_h
e6cc62c6 19199
d643b80e 19200else
e6cc62c6 19201 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19202/* confdefs.h. */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h. */
19207
ef33c576 19208 #include <zlib.h>
d775acfa 19209 #include <stdio.h>
d643b80e 19210
d775acfa
VZ
19211 int main()
19212 {
19213 FILE *f=fopen("conftestval", "w");
19214 if (!f) exit(1);
19215 fprintf(f, "%s",
19216 ZLIB_VERSION[0] == '1' &&
19217 (ZLIB_VERSION[2] > '1' ||
19218 (ZLIB_VERSION[2] == '1' &&
19219 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19220 exit(0);
19221 }
e6cc62c6
VS
19222
19223_ACEOF
19224rm -f conftest$ac_exeext
19225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226 (eval $ac_link) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
d643b80e
VZ
19235 ac_cv_header_zlib_h=`cat conftestval`
19236else
e6cc62c6
VS
19237 echo "$as_me: program exited with status $ac_status" >&5
19238echo "$as_me: failed program was:" >&5
19239sed 's/^/| /' conftest.$ac_ext >&5
19240
19241( exit $ac_status )
19242ac_cv_header_zlib_h=no
d643b80e 19243fi
eea650d8 19244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19245fi
19246
d643b80e 19247fi
e6cc62c6
VS
19248echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19249echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19250 if test "${ac_cv_header_zlib_h+set}" = set; then
19251 echo "$as_me:$LINENO: checking for zlib.h" >&5
19252echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19253if test "${ac_cv_header_zlib_h+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255fi
19256echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19257echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19258else
e6cc62c6
VS
19259 # Is the header compilable?
19260echo "$as_me:$LINENO: checking zlib.h usability" >&5
19261echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19262cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19263/* confdefs.h. */
19264_ACEOF
19265cat confdefs.h >>conftest.$ac_ext
19266cat >>conftest.$ac_ext <<_ACEOF
19267/* end confdefs.h. */
19268$ac_includes_default
89e6bf6d 19269#include <zlib.h>
e6cc62c6
VS
19270_ACEOF
19271rm -f conftest.$ac_objext
19272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19273 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19274 ac_status=$?
eea650d8
VS
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
e6cc62c6
VS
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
eea650d8
VS
19280 { ac_try='test -z "$ac_c_werror_flag"
19281 || test ! -s conftest.err'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; } &&
19287 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_header_compiler=yes
19294else
19295 echo "$as_me: failed program was:" >&5
19296sed 's/^/| /' conftest.$ac_ext >&5
19297
19298ac_header_compiler=no
19299fi
eea650d8 19300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19302echo "${ECHO_T}$ac_header_compiler" >&6
19303
19304# Is the header present?
19305echo "$as_me:$LINENO: checking zlib.h presence" >&5
19306echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19307cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313#include <zlib.h>
19314_ACEOF
19315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19317 ac_status=$?
19318 grep -v '^ *+' conftest.er1 >conftest.err
19319 rm -f conftest.er1
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } >/dev/null; then
19323 if test -s conftest.err; then
19324 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 19325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19326 else
19327 ac_cpp_err=
19328 fi
19329else
19330 ac_cpp_err=yes
19331fi
19332if test -z "$ac_cpp_err"; then
19333 ac_header_preproc=yes
19334else
19335 echo "$as_me: failed program was:" >&5
19336sed 's/^/| /' conftest.$ac_ext >&5
19337
19338 ac_header_preproc=no
19339fi
19340rm -f conftest.err conftest.$ac_ext
19341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19342echo "${ECHO_T}$ac_header_preproc" >&6
19343
19344# So? What about this header?
eea650d8
VS
19345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19346 yes:no: )
e6cc62c6
VS
19347 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19348echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19349 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19350echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19351 ac_header_preproc=yes
e6cc62c6 19352 ;;
eea650d8 19353 no:yes:* )
e6cc62c6
VS
19354 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19355echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
eea650d8
VS
19356 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19357echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19359echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19360 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19361echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19362 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19363echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19364 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19365echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19366 (
19367 cat <<\_ASBOX
eea650d8
VS
19368## ----------------------------------------- ##
19369## Report this to wx-dev@lists.wxwindows.org ##
19370## ----------------------------------------- ##
e6cc62c6
VS
19371_ASBOX
19372 ) |
19373 sed "s/^/$as_me: WARNING: /" >&2
19374 ;;
19375esac
19376echo "$as_me:$LINENO: checking for zlib.h" >&5
19377echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19378if test "${ac_cv_header_zlib_h+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19380else
e6cc62c6
VS
19381 ac_cv_header_zlib_h=$ac_header_preproc
19382fi
19383echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19384echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19385
89e6bf6d
VZ
19386fi
19387
d643b80e 19388
e6cc62c6 19389
d775acfa
VZ
19390 system_zlib_h_ok=$ac_cv_header_zlib_h
19391 fi
19392
19393 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19394 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19395echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19396if test "${ac_cv_lib_z_deflate+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19398else
e6cc62c6 19399 ac_check_lib_save_LIBS=$LIBS
21d1c967 19400LIBS="-lz $LIBS"
e6cc62c6 19401cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
19407
21d1c967 19408/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19409#ifdef __cplusplus
19410extern "C"
19411#endif
21d1c967 19412/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19413 builtin and then its argument prototype would still apply. */
19414char deflate ();
19415int
19416main ()
19417{
19418deflate ();
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext conftest$ac_exeext
19424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19425 (eval $ac_link) 2>conftest.er1
e6cc62c6 19426 ac_status=$?
eea650d8
VS
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
e6cc62c6
VS
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
eea650d8
VS
19432 { ac_try='test -z "$ac_c_werror_flag"
19433 || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_cv_lib_z_deflate=yes
19446else
19447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450ac_cv_lib_z_deflate=no
19451fi
eea650d8
VS
19452rm -f conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19454LIBS=$ac_check_lib_save_LIBS
19455fi
19456echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19457echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19458if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 19459 ZLIB_LINK=" -lz"
a0b9e27f 19460fi
698dcdb6 19461
d643b80e 19462 fi
247f5006 19463
21d1c967
GD
19464 if test "x$ZLIB_LINK" = "x" ; then
19465 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
19466 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19467echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19468 { (exit 1); exit 1; }; }
21d1c967 19469 else
e6cc62c6
VS
19470 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19471echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19472 wxUSE_ZLIB=builtin
19473 fi
19474 else
19475 wxUSE_ZLIB=sys
19476 fi
19477 fi
ab9b9eab
VZ
19478fi
19479
8284b0c5 19480
21d1c967
GD
19481PNG_LINK=
19482if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 19483 cat >>confdefs.h <<\_ACEOF
21d1c967 19484#define wxUSE_LIBPNG 1
e6cc62c6 19485_ACEOF
90dd450c 19486
8284b0c5 19487
21d1c967 19488 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
19489 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19490echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
19491 wxUSE_LIBPNG=sys
19492 fi
90dd450c 19493
21d1c967 19494 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
19495 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19496echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
19497 wxUSE_LIBPNG=builtin
19498 fi
19499
19500 if test "$wxUSE_MGL" != 1 ; then
19501 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
19502 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19503echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19504if test "${ac_cv_header_png_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
19506else
19507 if test "$cross_compiling" = yes; then
89e6bf6d 19508 unset ac_cv_header_png_h
e6cc62c6 19509
5d3f766d 19510else
e6cc62c6 19511 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19512/* confdefs.h. */
19513_ACEOF
19514cat confdefs.h >>conftest.$ac_ext
19515cat >>conftest.$ac_ext <<_ACEOF
19516/* end confdefs.h. */
19517
ef33c576 19518 #include <png.h>
5d3f766d
VZ
19519 #include <stdio.h>
19520
19521 int main()
19522 {
19523 FILE *f=fopen("conftestval", "w");
19524 if (!f) exit(1);
19525 fprintf(f, "%s",
19526 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19527 exit(0);
19528 }
e6cc62c6
VS
19529
19530_ACEOF
19531rm -f conftest$ac_exeext
19532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533 (eval $ac_link) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; }; then
5d3f766d
VZ
19542 ac_cv_header_png_h=`cat conftestval`
19543else
e6cc62c6
VS
19544 echo "$as_me: program exited with status $ac_status" >&5
19545echo "$as_me: failed program was:" >&5
19546sed 's/^/| /' conftest.$ac_ext >&5
19547
19548( exit $ac_status )
19549ac_cv_header_png_h=no
5d3f766d 19550fi
eea650d8 19551rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
19552fi
19553
5d3f766d 19554fi
e6cc62c6
VS
19555echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19556echo "${ECHO_T}$ac_cv_header_png_h" >&6
19557 if test "${ac_cv_header_png_h+set}" = set; then
19558 echo "$as_me:$LINENO: checking for png.h" >&5
19559echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19560if test "${ac_cv_header_png_h+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19562fi
19563echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19564echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 19565else
e6cc62c6
VS
19566 # Is the header compilable?
19567echo "$as_me:$LINENO: checking png.h usability" >&5
19568echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19569cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
89e6bf6d 19576#include <png.h>
e6cc62c6
VS
19577_ACEOF
19578rm -f conftest.$ac_objext
19579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19580 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19581 ac_status=$?
eea650d8
VS
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
e6cc62c6
VS
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
eea650d8
VS
19587 { ac_try='test -z "$ac_c_werror_flag"
19588 || test ! -s conftest.err'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 ac_header_compiler=yes
19601else
19602 echo "$as_me: failed program was:" >&5
19603sed 's/^/| /' conftest.$ac_ext >&5
19604
19605ac_header_compiler=no
19606fi
eea650d8 19607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19609echo "${ECHO_T}$ac_header_compiler" >&6
19610
19611# Is the header present?
19612echo "$as_me:$LINENO: checking png.h presence" >&5
19613echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19614cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
19620#include <png.h>
19621_ACEOF
19622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } >/dev/null; then
19630 if test -s conftest.err; then
19631 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 19632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19633 else
19634 ac_cpp_err=
19635 fi
19636else
19637 ac_cpp_err=yes
19638fi
19639if test -z "$ac_cpp_err"; then
19640 ac_header_preproc=yes
19641else
19642 echo "$as_me: failed program was:" >&5
19643sed 's/^/| /' conftest.$ac_ext >&5
19644
19645 ac_header_preproc=no
19646fi
19647rm -f conftest.err conftest.$ac_ext
19648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19649echo "${ECHO_T}$ac_header_preproc" >&6
19650
19651# So? What about this header?
eea650d8
VS
19652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19653 yes:no: )
e6cc62c6
VS
19654 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19655echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19656 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19657echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19658 ac_header_preproc=yes
e6cc62c6 19659 ;;
eea650d8 19660 no:yes:* )
e6cc62c6
VS
19661 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19662echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
eea650d8
VS
19663 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19664echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19666echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19668echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19669 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19670echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19671 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19672echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19673 (
19674 cat <<\_ASBOX
eea650d8
VS
19675## ----------------------------------------- ##
19676## Report this to wx-dev@lists.wxwindows.org ##
19677## ----------------------------------------- ##
e6cc62c6
VS
19678_ASBOX
19679 ) |
19680 sed "s/^/$as_me: WARNING: /" >&2
19681 ;;
19682esac
19683echo "$as_me:$LINENO: checking for png.h" >&5
19684echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19685if test "${ac_cv_header_png_h+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19687else
e6cc62c6
VS
19688 ac_cv_header_png_h=$ac_header_preproc
19689fi
19690echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19691echo "${ECHO_T}$ac_cv_header_png_h" >&6
19692
89e6bf6d
VZ
19693fi
19694
5d3f766d 19695
e6cc62c6 19696
5d3f766d 19697 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
19698 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19699echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19700if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19702else
e6cc62c6 19703 ac_check_lib_save_LIBS=$LIBS
21d1c967 19704LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 19705cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19706/* confdefs.h. */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h. */
19711
21d1c967 19712/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19713#ifdef __cplusplus
19714extern "C"
19715#endif
21d1c967 19716/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19717 builtin and then its argument prototype would still apply. */
19718char png_check_sig ();
19719int
19720main ()
19721{
19722png_check_sig ();
19723 ;
19724 return 0;
19725}
19726_ACEOF
19727rm -f conftest.$ac_objext conftest$ac_exeext
19728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19729 (eval $ac_link) 2>conftest.er1
e6cc62c6 19730 ac_status=$?
eea650d8
VS
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
e6cc62c6
VS
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
eea650d8
VS
19736 { ac_try='test -z "$ac_c_werror_flag"
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_cv_lib_png_png_check_sig=yes
19750else
19751 echo "$as_me: failed program was:" >&5
19752sed 's/^/| /' conftest.$ac_ext >&5
19753
19754ac_cv_lib_png_png_check_sig=no
19755fi
eea650d8
VS
19756rm -f conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19758LIBS=$ac_check_lib_save_LIBS
19759fi
19760echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19761echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19762if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 19763 PNG_LINK=" -lpng"
a0b9e27f 19764fi
90dd450c 19765
5d3f766d 19766 fi
247f5006 19767
21d1c967
GD
19768 if test "x$PNG_LINK" = "x" ; then
19769 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
19770 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19771echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19772 { (exit 1); exit 1; }; }
21d1c967 19773 else
e6cc62c6
VS
19774 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19775echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19776 wxUSE_LIBPNG=builtin
19777 fi
19778 else
2b5f62a0 19779 wxUSE_LIBPNG=sys
21d1c967
GD
19780 fi
19781 fi
19782 fi
90dd450c 19783
21d1c967 19784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
19785fi
19786
8284b0c5 19787
21d1c967
GD
19788JPEG_LINK=
19789if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19790 cat >>confdefs.h <<\_ACEOF
21d1c967 19791#define wxUSE_LIBJPEG 1
e6cc62c6 19792_ACEOF
90dd450c 19793
8284b0c5 19794
21d1c967 19795 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19796 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19797echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19798 wxUSE_LIBJPEG=sys
19799 fi
90dd450c 19800
21d1c967
GD
19801 if test "$wxUSE_MGL" != 1 ; then
19802 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19803 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19804echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19805 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807else
19808 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
90dd450c 19814
21d1c967
GD
19815 #undef HAVE_STDLIB_H
19816 #include <stdio.h>
19817 #include <jpeglib.h>
90dd450c 19818
e6cc62c6
VS
19819int
19820main ()
19821{
19822
19823
19824 ;
19825 return 0;
19826}
19827_ACEOF
19828rm -f conftest.$ac_objext
19829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19830 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19831 ac_status=$?
eea650d8
VS
19832 grep -v '^ *+' conftest.er1 >conftest.err
19833 rm -f conftest.er1
19834 cat conftest.err >&5
e6cc62c6
VS
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } &&
eea650d8
VS
19837 { ac_try='test -z "$ac_c_werror_flag"
19838 || test ! -s conftest.err'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; }; then
21d1c967 19850 ac_cv_header_jpeglib_h=yes
90dd450c 19851else
e6cc62c6
VS
19852 echo "$as_me: failed program was:" >&5
19853sed 's/^/| /' conftest.$ac_ext >&5
19854
19855ac_cv_header_jpeglib_h=no
19856
90dd450c 19857fi
eea650d8 19858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19859
90dd450c
VZ
19860fi
19861
e6cc62c6
VS
19862 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19863echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19864
21d1c967 19865 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19866 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19867echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19868if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19870else
e6cc62c6 19871 ac_check_lib_save_LIBS=$LIBS
21d1c967 19872LIBS="-ljpeg $LIBS"
e6cc62c6 19873cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879
21d1c967 19880/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19881#ifdef __cplusplus
19882extern "C"
19883#endif
21d1c967 19884/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19885 builtin and then its argument prototype would still apply. */
19886char jpeg_read_header ();
19887int
19888main ()
19889{
19890jpeg_read_header ();
19891 ;
19892 return 0;
19893}
19894_ACEOF
19895rm -f conftest.$ac_objext conftest$ac_exeext
19896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19897 (eval $ac_link) 2>conftest.er1
e6cc62c6 19898 ac_status=$?
eea650d8
VS
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
e6cc62c6
VS
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
eea650d8
VS
19904 { ac_try='test -z "$ac_c_werror_flag"
19905 || test ! -s conftest.err'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 ac_cv_lib_jpeg_jpeg_read_header=yes
19918else
19919 echo "$as_me: failed program was:" >&5
19920sed 's/^/| /' conftest.$ac_ext >&5
19921
19922ac_cv_lib_jpeg_jpeg_read_header=no
19923fi
eea650d8
VS
19924rm -f conftest.err conftest.$ac_objext \
19925 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19926LIBS=$ac_check_lib_save_LIBS
19927fi
19928echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19929echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19930if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19931 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19932fi
19933
21d1c967 19934 fi
90dd450c 19935
21d1c967
GD
19936 if test "x$JPEG_LINK" = "x" ; then
19937 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19938 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19939echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19940 { (exit 1); exit 1; }; }
21d1c967 19941 else
e6cc62c6
VS
19942 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19943echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19944 wxUSE_LIBJPEG=builtin
19945 fi
19946 else
19947 wxUSE_LIBJPEG=sys
19948 fi
19949 fi
19950 fi
21d1c967 19951fi
90dd450c 19952
8284b0c5 19953
21d1c967 19954TIFF_LINK=
2b5f62a0 19955TIFF_PREREQ_LINKS=-lm
21d1c967 19956if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19957 cat >>confdefs.h <<\_ACEOF
21d1c967 19958#define wxUSE_LIBTIFF 1
e6cc62c6 19959_ACEOF
21d1c967 19960
8284b0c5 19961
21d1c967 19962 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19963 if test "$wxUSE_LIBJPEG" = "sys"; then
19964 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19965 fi
19966 if test "$wxUSE_ZLIB" = "sys"; then
19967 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19968 fi
e6cc62c6
VS
19969 if test "${ac_cv_header_tiffio_h+set}" = set; then
19970 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19971echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19972if test "${ac_cv_header_tiffio_h+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974fi
19975echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19976echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19977else
19978 # Is the header compilable?
19979echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19980echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19981cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19982/* confdefs.h. */
19983_ACEOF
19984cat confdefs.h >>conftest.$ac_ext
19985cat >>conftest.$ac_ext <<_ACEOF
19986/* end confdefs.h. */
19987$ac_includes_default
247f5006 19988#include <tiffio.h>
e6cc62c6
VS
19989_ACEOF
19990rm -f conftest.$ac_objext
19991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19992 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19993 ac_status=$?
eea650d8
VS
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
e6cc62c6
VS
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
eea650d8
VS
19999 { ac_try='test -z "$ac_c_werror_flag"
20000 || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler=yes
20013else
20014 echo "$as_me: failed program was:" >&5
20015sed 's/^/| /' conftest.$ac_ext >&5
20016
20017ac_header_compiler=no
20018fi
eea650d8 20019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021echo "${ECHO_T}$ac_header_compiler" >&6
20022
20023# Is the header present?
20024echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20025echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20026cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20027/* confdefs.h. */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h. */
20032#include <tiffio.h>
20033_ACEOF
20034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null; then
20042 if test -s conftest.err; then
20043 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20045 else
20046 ac_cpp_err=
20047 fi
20048else
20049 ac_cpp_err=yes
20050fi
20051if test -z "$ac_cpp_err"; then
20052 ac_header_preproc=yes
20053else
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ac_header_preproc=no
20058fi
20059rm -f conftest.err conftest.$ac_ext
20060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061echo "${ECHO_T}$ac_header_preproc" >&6
20062
20063# So? What about this header?
eea650d8
VS
20064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065 yes:no: )
e6cc62c6
VS
20066 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20068 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20069echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
e6cc62c6 20071 ;;
eea650d8 20072 no:yes:* )
e6cc62c6
VS
20073 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20074echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
eea650d8
VS
20075 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20076echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20078echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20080echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20081 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20082echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20083 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20084echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20085 (
20086 cat <<\_ASBOX
eea650d8
VS
20087## ----------------------------------------- ##
20088## Report this to wx-dev@lists.wxwindows.org ##
20089## ----------------------------------------- ##
e6cc62c6
VS
20090_ASBOX
20091 ) |
20092 sed "s/^/$as_me: WARNING: /" >&2
20093 ;;
20094esac
20095echo "$as_me:$LINENO: checking for tiffio.h" >&5
20096echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20097if test "${ac_cv_header_tiffio_h+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099else
20100 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20101fi
e6cc62c6
VS
20102echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20103echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20104
21d1c967 20105fi
e6cc62c6 20106if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20107
20108 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20109echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20110if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20112else
e6cc62c6 20113 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20114LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20115cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20116/* confdefs.h. */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h. */
20121
ab9b9eab 20122/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20123#ifdef __cplusplus
20124extern "C"
20125#endif
ab9b9eab 20126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20127 builtin and then its argument prototype would still apply. */
20128char TIFFError ();
20129int
20130main ()
20131{
20132TIFFError ();
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137rm -f conftest.$ac_objext conftest$ac_exeext
20138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20139 (eval $ac_link) 2>conftest.er1
e6cc62c6 20140 ac_status=$?
eea650d8
VS
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
e6cc62c6
VS
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
eea650d8
VS
20146 { ac_try='test -z "$ac_c_werror_flag"
20147 || test ! -s conftest.err'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; } &&
20153 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 ac_cv_lib_tiff_TIFFError=yes
20160else
20161 echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164ac_cv_lib_tiff_TIFFError=no
20165fi
eea650d8
VS
20166rm -f conftest.err conftest.$ac_objext \
20167 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20168LIBS=$ac_check_lib_save_LIBS
20169fi
20170echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20171echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20172if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20173 TIFF_LINK=" -ltiff"
a0b9e27f 20174fi
cd6d6d5b 20175
e6cc62c6 20176
0e012a93 20177
a0b9e27f 20178fi
8284b0c5 20179
247f5006 20180
e6cc62c6 20181
21d1c967
GD
20182 if test "x$TIFF_LINK" = "x" ; then
20183 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20184 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20185echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20186 { (exit 1); exit 1; }; }
90dd450c 20187 else
e6cc62c6
VS
20188 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20189echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20190 wxUSE_LIBTIFF=builtin
d8356fa3 20191 fi
d8356fa3 20192 else
21d1c967 20193 wxUSE_LIBTIFF=sys
d8356fa3 20194 fi
21d1c967 20195 fi
21d1c967 20196fi
10f2d63a 20197
8284b0c5 20198
672abd7a 20199if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20200 wxUSE_XML=yes
672abd7a
VS
20201 cat >>confdefs.h <<\_ACEOF
20202#define wxUSE_EXPAT 1
20203_ACEOF
20204
20205 cat >>confdefs.h <<\_ACEOF
20206#define wxUSE_XML 1
20207_ACEOF
20208
20209
20210 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20211 if test "${ac_cv_header_expat_h+set}" = set; then
20212 echo "$as_me:$LINENO: checking for expat.h" >&5
20213echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20214if test "${ac_cv_header_expat_h+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216fi
20217echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20218echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20219else
20220 # Is the header compilable?
20221echo "$as_me:$LINENO: checking expat.h usability" >&5
20222echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20223cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20224/* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
20229$ac_includes_default
20230#include <expat.h>
20231_ACEOF
20232rm -f conftest.$ac_objext
20233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20234 (eval $ac_compile) 2>conftest.er1
672abd7a 20235 ac_status=$?
eea650d8
VS
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
672abd7a
VS
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
eea650d8
VS
20241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_header_compiler=yes
20255else
20256 echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
20259ac_header_compiler=no
20260fi
eea650d8 20261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20263echo "${ECHO_T}$ac_header_compiler" >&6
20264
20265# Is the header present?
20266echo "$as_me:$LINENO: checking expat.h presence" >&5
20267echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20268cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20269/* confdefs.h. */
20270_ACEOF
20271cat confdefs.h >>conftest.$ac_ext
20272cat >>conftest.$ac_ext <<_ACEOF
20273/* end confdefs.h. */
20274#include <expat.h>
20275_ACEOF
20276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } >/dev/null; then
20284 if test -s conftest.err; then
20285 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20287 else
20288 ac_cpp_err=
20289 fi
20290else
20291 ac_cpp_err=yes
20292fi
20293if test -z "$ac_cpp_err"; then
20294 ac_header_preproc=yes
20295else
20296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_header_preproc=no
20300fi
20301rm -f conftest.err conftest.$ac_ext
20302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20303echo "${ECHO_T}$ac_header_preproc" >&6
20304
20305# So? What about this header?
eea650d8
VS
20306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20307 yes:no: )
672abd7a
VS
20308 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20309echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20310 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20311echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20312 ac_header_preproc=yes
672abd7a 20313 ;;
eea650d8 20314 no:yes:* )
672abd7a
VS
20315 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20316echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
eea650d8
VS
20317 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20318echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20319 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20320echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20321 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20322echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20323 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20324echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20325 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20326echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20327 (
20328 cat <<\_ASBOX
eea650d8
VS
20329## ----------------------------------------- ##
20330## Report this to wx-dev@lists.wxwindows.org ##
20331## ----------------------------------------- ##
672abd7a
VS
20332_ASBOX
20333 ) |
20334 sed "s/^/$as_me: WARNING: /" >&2
20335 ;;
20336esac
20337echo "$as_me:$LINENO: checking for expat.h" >&5
20338echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20339if test "${ac_cv_header_expat_h+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341else
20342 ac_cv_header_expat_h=$ac_header_preproc
20343fi
20344echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20345echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20346
20347fi
5f0b6dff
VS
20348if test $ac_cv_header_expat_h = yes; then
20349 found_expat_h=1
20350fi
20351
20352
20353 if test "x$found_expat_h" = "x1"; then
20354 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20355echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20356if test "${wx_cv_expat_is_not_broken+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20358else
20359
20360
672abd7a 20361
5f0b6dff
VS
20362 ac_ext=cc
20363ac_cpp='$CXXCPP $CPPFLAGS'
20364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20367
20368 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374#include <expat.h>
20375int
20376main ()
20377{
672abd7a 20378
5f0b6dff
VS
20379 ;
20380 return 0;
20381}
20382_ACEOF
20383rm -f conftest.$ac_objext
20384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20385 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20386 ac_status=$?
eea650d8
VS
20387 grep -v '^ *+' conftest.er1 >conftest.err
20388 rm -f conftest.er1
20389 cat conftest.err >&5
5f0b6dff
VS
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
eea650d8
VS
20392 { ac_try='test -z "$ac_cxx_werror_flag"
20393 || test ! -s conftest.err'
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 wx_cv_expat_is_not_broken=yes
20406else
20407 echo "$as_me: failed program was:" >&5
20408sed 's/^/| /' conftest.$ac_ext >&5
20409
20410wx_cv_expat_is_not_broken=no
20411
20412fi
eea650d8 20413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20414 ac_ext=c
20415ac_cpp='$CPP $CPPFLAGS'
20416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20418ac_compiler_gnu=$ac_cv_c_compiler_gnu
20419
20420
20421
20422fi
20423echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20424echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20425 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20426 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20427echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20428if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20430else
20431 ac_check_lib_save_LIBS=$LIBS
20432LIBS="-lexpat $LIBS"
20433cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20434/* confdefs.h. */
20435_ACEOF
20436cat confdefs.h >>conftest.$ac_ext
20437cat >>conftest.$ac_ext <<_ACEOF
20438/* end confdefs.h. */
20439
20440/* Override any gcc2 internal prototype to avoid an error. */
20441#ifdef __cplusplus
20442extern "C"
20443#endif
20444/* We use char because int might match the return type of a gcc2
20445 builtin and then its argument prototype would still apply. */
20446char XML_ParserCreate ();
20447int
20448main ()
20449{
20450XML_ParserCreate ();
20451 ;
20452 return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext conftest$ac_exeext
20456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20457 (eval $ac_link) 2>conftest.er1
672abd7a 20458 ac_status=$?
eea650d8
VS
20459 grep -v '^ *+' conftest.er1 >conftest.err
20460 rm -f conftest.er1
20461 cat conftest.err >&5
672abd7a
VS
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
eea650d8
VS
20464 { ac_try='test -z "$ac_c_werror_flag"
20465 || test ! -s conftest.err'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_lib_expat_XML_ParserCreate=yes
20478else
20479 echo "$as_me: failed program was:" >&5
20480sed 's/^/| /' conftest.$ac_ext >&5
20481
20482ac_cv_lib_expat_XML_ParserCreate=no
20483fi
eea650d8
VS
20484rm -f conftest.err conftest.$ac_objext \
20485 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
20486LIBS=$ac_check_lib_save_LIBS
20487fi
20488echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20489echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20490if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20491 EXPAT_LINK=" -lexpat"
20492fi
20493
5f0b6dff 20494 fi
672abd7a
VS
20495 fi
20496 if test "x$EXPAT_LINK" = "x" ; then
20497 if test "$wxUSE_EXPAT" = "sys" ; then
20498 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20499echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20500 { (exit 1); exit 1; }; }
20501 else
20502 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20503echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20504 wxUSE_EXPAT=builtin
20505 fi
20506 else
20507 wxUSE_EXPAT=sys
20508 fi
20509 fi
20510 if test "$wxUSE_EXPAT" = "builtin" ; then
20511
20512
20513subdirs="$subdirs src/expat"
20514
20515 fi
20516fi
20517
20518
20519
3527f29c
VS
20520if test "$wxUSE_LIBMSPACK" != "no"; then
20521
20522 if test "${ac_cv_header_mspack_h+set}" = set; then
20523 echo "$as_me:$LINENO: checking for mspack.h" >&5
20524echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20525if test "${ac_cv_header_mspack_h+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20527fi
20528echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20529echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20530else
20531 # Is the header compilable?
20532echo "$as_me:$LINENO: checking mspack.h usability" >&5
20533echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20534cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20535/* confdefs.h. */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
20539/* end confdefs.h. */
20540$ac_includes_default
20541#include <mspack.h>
20542_ACEOF
20543rm -f conftest.$ac_objext
20544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20545 (eval $ac_compile) 2>conftest.er1
3527f29c 20546 ac_status=$?
eea650d8
VS
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
3527f29c
VS
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
eea650d8
VS
20552 { ac_try='test -z "$ac_c_werror_flag"
20553 || test ! -s conftest.err'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; } &&
20559 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; }; then
20565 ac_header_compiler=yes
20566else
20567 echo "$as_me: failed program was:" >&5
20568sed 's/^/| /' conftest.$ac_ext >&5
20569
20570ac_header_compiler=no
20571fi
eea650d8 20572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
20573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20574echo "${ECHO_T}$ac_header_compiler" >&6
20575
20576# Is the header present?
20577echo "$as_me:$LINENO: checking mspack.h presence" >&5
20578echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20579cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585#include <mspack.h>
20586_ACEOF
20587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } >/dev/null; then
20595 if test -s conftest.err; then
20596 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
20598 else
20599 ac_cpp_err=
20600 fi
20601else
20602 ac_cpp_err=yes
20603fi
20604if test -z "$ac_cpp_err"; then
20605 ac_header_preproc=yes
20606else
20607 echo "$as_me: failed program was:" >&5
20608sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 ac_header_preproc=no
20611fi
20612rm -f conftest.err conftest.$ac_ext
20613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20614echo "${ECHO_T}$ac_header_preproc" >&6
20615
20616# So? What about this header?
eea650d8
VS
20617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20618 yes:no: )
3527f29c
VS
20619 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20620echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20621 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
20622echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
20623 ac_header_preproc=yes
3527f29c 20624 ;;
eea650d8 20625 no:yes:* )
3527f29c
VS
20626 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20627echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
eea650d8
VS
20628 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20629echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
20631echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
20633echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
20634 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20635echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20636 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
20637echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
20638 (
20639 cat <<\_ASBOX
eea650d8
VS
20640## ----------------------------------------- ##
20641## Report this to wx-dev@lists.wxwindows.org ##
20642## ----------------------------------------- ##
3527f29c
VS
20643_ASBOX
20644 ) |
20645 sed "s/^/$as_me: WARNING: /" >&2
20646 ;;
20647esac
20648echo "$as_me:$LINENO: checking for mspack.h" >&5
20649echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20650if test "${ac_cv_header_mspack_h+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653 ac_cv_header_mspack_h=$ac_header_preproc
20654fi
20655echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20656echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20657
20658fi
20659if test $ac_cv_header_mspack_h = yes; then
20660 found_mspack_h=1
20661fi
20662
20663
20664 if test "x$found_mspack_h" = "x1"; then
20665 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20666echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20667if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669else
20670 ac_check_lib_save_LIBS=$LIBS
20671LIBS="-lmspack $LIBS"
20672cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678
20679/* Override any gcc2 internal prototype to avoid an error. */
20680#ifdef __cplusplus
20681extern "C"
20682#endif
20683/* We use char because int might match the return type of a gcc2
20684 builtin and then its argument prototype would still apply. */
20685char mspack_create_chm_decompressor ();
20686int
20687main ()
20688{
20689mspack_create_chm_decompressor ();
20690 ;
20691 return 0;
20692}
20693_ACEOF
20694rm -f conftest.$ac_objext conftest$ac_exeext
20695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20696 (eval $ac_link) 2>conftest.er1
3527f29c 20697 ac_status=$?
eea650d8
VS
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
3527f29c
VS
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
eea650d8
VS
20703 { ac_try='test -z "$ac_c_werror_flag"
20704 || test ! -s conftest.err'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20716 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20717else
20718 echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
20721ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20722fi
eea650d8
VS
20723rm -f conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
20725LIBS=$ac_check_lib_save_LIBS
20726fi
20727echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20728echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20729if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20730 MSPACK_LINK=" -lmspack"
20731fi
20732
20733 fi
20734 if test "x$MSPACK_LINK" = "x" ; then
20735 wxUSE_LIBMSPACK=no
20736 else
20737 cat >>confdefs.h <<\_ACEOF
20738#define wxUSE_LIBMSPACK 1
20739_ACEOF
20740
20741 fi
20742fi
20743
20744
20745
21d1c967 20746AFMINSTALL=
2b5f62a0 20747WIN32INSTALL=
90dd450c 20748
21d1c967
GD
20749TOOLKIT=
20750TOOLKIT_INCLUDE=
20751WIDGET_SET=
20752
20753if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
20754
20755for ac_header in w32api.h
21d1c967 20756do
e6cc62c6
VS
20757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20758if eval "test \"\${$as_ac_Header+set}\" = set"; then
20759 echo "$as_me:$LINENO: checking for $ac_header" >&5
20760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20761if eval "test \"\${$as_ac_Header+set}\" = set"; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763fi
20764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20766else
20767 # Is the header compilable?
20768echo "$as_me:$LINENO: checking $ac_header usability" >&5
20769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20770cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20771/* confdefs.h. */
20772_ACEOF
20773cat confdefs.h >>conftest.$ac_ext
20774cat >>conftest.$ac_ext <<_ACEOF
20775/* end confdefs.h. */
20776$ac_includes_default
20777#include <$ac_header>
20778_ACEOF
20779rm -f conftest.$ac_objext
20780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20781 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20782 ac_status=$?
eea650d8
VS
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
e6cc62c6
VS
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
eea650d8
VS
20788 { ac_try='test -z "$ac_c_werror_flag"
20789 || test ! -s conftest.err'
20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; } &&
20795 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 ac_header_compiler=yes
20802else
20803 echo "$as_me: failed program was:" >&5
20804sed 's/^/| /' conftest.$ac_ext >&5
20805
20806ac_header_compiler=no
20807fi
eea650d8 20808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20809echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20810echo "${ECHO_T}$ac_header_compiler" >&6
20811
20812# Is the header present?
20813echo "$as_me:$LINENO: checking $ac_header presence" >&5
20814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20815cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
20821#include <$ac_header>
20822_ACEOF
20823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20825 ac_status=$?
20826 grep -v '^ *+' conftest.er1 >conftest.err
20827 rm -f conftest.er1
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } >/dev/null; then
20831 if test -s conftest.err; then
20832 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20834 else
20835 ac_cpp_err=
20836 fi
20837else
20838 ac_cpp_err=yes
20839fi
20840if test -z "$ac_cpp_err"; then
20841 ac_header_preproc=yes
20842else
20843 echo "$as_me: failed program was:" >&5
20844sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ac_header_preproc=no
20847fi
20848rm -f conftest.err conftest.$ac_ext
20849echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20850echo "${ECHO_T}$ac_header_preproc" >&6
20851
20852# So? What about this header?
eea650d8
VS
20853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20854 yes:no: )
e6cc62c6
VS
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20859 ac_header_preproc=yes
e6cc62c6 20860 ;;
eea650d8 20861 no:yes:* )
e6cc62c6
VS
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
20864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20874 (
20875 cat <<\_ASBOX
eea650d8
VS
20876## ----------------------------------------- ##
20877## Report this to wx-dev@lists.wxwindows.org ##
20878## ----------------------------------------- ##
e6cc62c6
VS
20879_ASBOX
20880 ) |
20881 sed "s/^/$as_me: WARNING: /" >&2
20882 ;;
20883esac
20884echo "$as_me:$LINENO: checking for $ac_header" >&5
20885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20886if eval "test \"\${$as_ac_Header+set}\" = set"; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20888else
eea650d8 20889 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 20890fi
e6cc62c6
VS
20891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20893
21d1c967 20894fi
e6cc62c6
VS
20895if test `eval echo '${'$as_ac_Header'}'` = yes; then
20896 cat >>confdefs.h <<_ACEOF
20897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20898_ACEOF
20899
21d1c967 20900fi
e6cc62c6 20901
21d1c967 20902done
f79bd02d 20903
e6cc62c6
VS
20904 if test "${ac_cv_header_windows_h+set}" = set; then
20905 echo "$as_me:$LINENO: checking for windows.h" >&5
20906echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20907if test "${ac_cv_header_windows_h+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909fi
20910echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20911echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20912else
20913 # Is the header compilable?
20914echo "$as_me:$LINENO: checking windows.h usability" >&5
20915echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20916cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20917/* confdefs.h. */
20918_ACEOF
20919cat confdefs.h >>conftest.$ac_ext
20920cat >>conftest.$ac_ext <<_ACEOF
20921/* end confdefs.h. */
20922$ac_includes_default
247f5006 20923#include <windows.h>
e6cc62c6
VS
20924_ACEOF
20925rm -f conftest.$ac_objext
20926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20927 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20928 ac_status=$?
eea650d8
VS
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
e6cc62c6
VS
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
eea650d8
VS
20934 { ac_try='test -z "$ac_c_werror_flag"
20935 || test ! -s conftest.err'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; } &&
20941 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 ac_header_compiler=yes
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952ac_header_compiler=no
20953fi
eea650d8 20954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20956echo "${ECHO_T}$ac_header_compiler" >&6
20957
20958# Is the header present?
20959echo "$as_me:$LINENO: checking windows.h presence" >&5
20960echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20961cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20962/* confdefs.h. */
20963_ACEOF
20964cat confdefs.h >>conftest.$ac_ext
20965cat >>conftest.$ac_ext <<_ACEOF
20966/* end confdefs.h. */
20967#include <windows.h>
20968_ACEOF
20969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20971 ac_status=$?
20972 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } >/dev/null; then
20977 if test -s conftest.err; then
20978 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20980 else
20981 ac_cpp_err=
20982 fi
20983else
20984 ac_cpp_err=yes
20985fi
20986if test -z "$ac_cpp_err"; then
20987 ac_header_preproc=yes
20988else
20989 echo "$as_me: failed program was:" >&5
20990sed 's/^/| /' conftest.$ac_ext >&5
20991
20992 ac_header_preproc=no
20993fi
20994rm -f conftest.err conftest.$ac_ext
20995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20996echo "${ECHO_T}$ac_header_preproc" >&6
20997
20998# So? What about this header?
eea650d8
VS
20999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21000 yes:no: )
e6cc62c6
VS
21001 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21002echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
21003 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21004echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21005 ac_header_preproc=yes
e6cc62c6 21006 ;;
eea650d8 21007 no:yes:* )
e6cc62c6
VS
21008 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21009echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
eea650d8
VS
21010 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21011echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21013echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21015echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21016 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21017echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
21018 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21019echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21020 (
21021 cat <<\_ASBOX
eea650d8
VS
21022## ----------------------------------------- ##
21023## Report this to wx-dev@lists.wxwindows.org ##
21024## ----------------------------------------- ##
e6cc62c6
VS
21025_ASBOX
21026 ) |
21027 sed "s/^/$as_me: WARNING: /" >&2
21028 ;;
21029esac
21030echo "$as_me:$LINENO: checking for windows.h" >&5
21031echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21032if test "${ac_cv_header_windows_h+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034else
21035 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21036fi
e6cc62c6
VS
21037echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21038echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21039
90dd450c 21040fi
e6cc62c6 21041if test $ac_cv_header_windows_h = yes; then
21d1c967 21042 :
90dd450c 21043else
21d1c967 21044
e6cc62c6
VS
21045 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21046echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21047 { (exit 1); exit 1; }; }
21048
5c6fa7d2 21049fi
7b4a847f 21050
5c6fa7d2 21051
e6cc62c6 21052
b3dfbbc9 21053 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21054
7bb2947d
MB
21055 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21056 LIBS="$LIBS -loleacc"
21057 fi
21058
21d1c967
GD
21059 case "${host}" in
21060 *-*-cygwin* )
b3dfbbc9 21061 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21062 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21063 esac
f79bd02d 21064
8647bec6
RG
21065 if test "$wxUSE_ODBC" = "sys" ; then
21066 wxUSE_ODBC = "yes"
21d1c967 21067 fi
8647bec6
RG
21068 if test "$wxUSE_ODBC" = "yes" ; then
21069 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21070 cat >>confdefs.h <<\_ACEOF
8647bec6 21071#define wxUSE_ODBC 1
e6cc62c6 21072_ACEOF
f79bd02d 21073
8647bec6 21074 fi
e6cc62c6 21075
21d1c967
GD
21076 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21077 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21078
21079 WIN32INSTALL=win32install
f79bd02d 21080fi
f79bd02d 21081
21d1c967
GD
21082if test "$wxUSE_GUI" = "yes"; then
21083 USE_GUI=1
f79bd02d 21084
21d1c967 21085 GUI_TK_LIBRARY=
f79bd02d 21086
21d1c967
GD
21087 WXGTK12=
21088 WXGTK127=
21089 WXGTK20=
f79bd02d 21090
21d1c967
GD
21091 if test "$wxUSE_MSW" = 1 ; then
21092 TOOLKIT=MSW
21093 GUIDIST=MSW_DIST
ffef10f6
VS
21094
21095 case "${host}" in
21096 *-*-mingw32* )
21097 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21098 esac
f79bd02d
JS
21099 fi
21100
21d1c967 21101 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21102 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21103echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21104
21105 gtk_version_cached=1
e6cc62c6
VS
21106 if test "${wx_cv_lib_gtk+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21108else
e6cc62c6 21109
21d1c967 21110 gtk_version_cached=0
e6cc62c6
VS
21111 echo "$as_me:$LINENO: result: " >&5
21112echo "${ECHO_T}" >&6
f79bd02d 21113
21d1c967
GD
21114 GTK_MODULES=
21115 if test "$wxUSE_THREADS" = "yes"; then
21116 GTK_MODULES=gthread
21117 fi
f79bd02d 21118
2b5f62a0 21119 wx_cv_lib_gtk=
21d1c967
GD
21120 if test "x$wxUSE_GTK2" = "xyes"; then
21121 # Check whether --enable-gtktest or --disable-gtktest was given.
21122if test "${enable_gtktest+set}" = set; then
21123 enableval="$enable_gtktest"
e6cc62c6 21124
f79bd02d 21125else
21d1c967 21126 enable_gtktest=yes
e6cc62c6 21127fi;
f79bd02d 21128
21d1c967
GD
21129 pkg_config_args=gtk+-2.0
21130 for module in . $GTK_MODULES
21131 do
21132 case "$module" in
e6cc62c6 21133 gthread)
21d1c967
GD
21134 pkg_config_args="$pkg_config_args gthread-2.0"
21135 ;;
21136 esac
21137 done
21138
21139 no_gtk=""
f79bd02d 21140
21d1c967
GD
21141 # Extract the first word of "pkg-config", so it can be a program name with args.
21142set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21143echo "$as_me:$LINENO: checking for $ac_word" >&5
21144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21145if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21147else
e6cc62c6
VS
21148 case $PKG_CONFIG in
21149 [\\/]* | ?:[\\/]*)
21d1c967
GD
21150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21151 ;;
21d1c967 21152 *)
e6cc62c6
VS
21153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21154for as_dir in $PATH
21155do
21156 IFS=$as_save_IFS
21157 test -z "$as_dir" && as_dir=.
21158 for ac_exec_ext in '' $ac_executable_extensions; do
21159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21162 break 2
21163 fi
21164done
21165done
21166
21d1c967
GD
21167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21168 ;;
21169esac
f79bd02d 21170fi
e6cc62c6
VS
21171PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21172
21d1c967 21173if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21174 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21175echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21176else
e6cc62c6
VS
21177 echo "$as_me:$LINENO: result: no" >&5
21178echo "${ECHO_T}no" >&6
f79bd02d
JS
21179fi
21180
8284b0c5 21181
21d1c967
GD
21182 if test x$PKG_CONFIG != xno ; then
21183 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21184 :
21185 else
21186 echo *** pkg-config too old; version 0.7 or better required.
21187 no_gtk=yes
21188 PKG_CONFIG=no
21189 fi
21190 else
21191 no_gtk=yes
21192 fi
f79bd02d 21193
21d1c967 21194 min_gtk_version=2.0.0
e6cc62c6
VS
21195 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21196echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21197
21d1c967
GD
21198 if test x$PKG_CONFIG != xno ; then
21199 ## don't try to run the test against uninstalled libtool libs
21200 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21201 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21202 enable_gtktest=no
21203 fi
f79bd02d 21204
21d1c967
GD
21205 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21206 :
21207 else
21208 no_gtk=yes
21209 fi
21210 fi
f79bd02d 21211
21d1c967
GD
21212 if test x"$no_gtk" = x ; then
21213 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21214 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21215 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21217 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21219 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21220 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21221 if test "x$enable_gtktest" = "xyes" ; then
21222 ac_save_CFLAGS="$CFLAGS"
21223 ac_save_LIBS="$LIBS"
21224 CFLAGS="$CFLAGS $GTK_CFLAGS"
21225 LIBS="$GTK_LIBS $LIBS"
21226 rm -f conf.gtktest
21227 if test "$cross_compiling" = yes; then
21228 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21229else
e6cc62c6 21230 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21231/* confdefs.h. */
21232_ACEOF
21233cat confdefs.h >>conftest.$ac_ext
21234cat >>conftest.$ac_ext <<_ACEOF
21235/* end confdefs.h. */
f79bd02d 21236
21d1c967
GD
21237#include <gtk/gtk.h>
21238#include <stdio.h>
21239#include <stdlib.h>
f79bd02d 21240
e6cc62c6 21241int
21d1c967
GD
21242main ()
21243{
21244 int major, minor, micro;
21245 char *tmp_version;
f79bd02d 21246
21d1c967 21247 system ("touch conf.gtktest");
f79bd02d 21248
21d1c967
GD
21249 /* HP/UX 9 (%@#!) writes to sscanf strings */
21250 tmp_version = g_strdup("$min_gtk_version");
21251 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21252 printf("%s, bad version string\n", "$min_gtk_version");
21253 exit(1);
21254 }
f79bd02d 21255
21d1c967
GD
21256 if ((gtk_major_version != $gtk_config_major_version) ||
21257 (gtk_minor_version != $gtk_config_minor_version) ||
21258 (gtk_micro_version != $gtk_config_micro_version))
21259 {
e6cc62c6 21260 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21261 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21262 gtk_major_version, gtk_minor_version, gtk_micro_version);
21263 printf ("*** was found! If pkg-config was correct, then it is best\n");
21264 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21265 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21266 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21267 printf("*** required on your system.\n");
21268 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21269 printf("*** to point to the correct configuration files\n");
e6cc62c6 21270 }
21d1c967
GD
21271 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21272 (gtk_minor_version != GTK_MINOR_VERSION) ||
21273 (gtk_micro_version != GTK_MICRO_VERSION))
21274 {
21275 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21276 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21277 printf("*** library (version %d.%d.%d)\n",
21278 gtk_major_version, gtk_minor_version, gtk_micro_version);
21279 }
21280 else
21281 {
21282 if ((gtk_major_version > major) ||
21283 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21284 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21285 {
21286 return 0;
21287 }
21288 else
21289 {
21290 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21291 gtk_major_version, gtk_minor_version, gtk_micro_version);
21292 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21293 major, minor, micro);
21294 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21295 printf("***\n");
21296 printf("*** If you have already installed a sufficiently new version, this error\n");
21297 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21298 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21299 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21300 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21301 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21302 printf("*** so that the correct libraries are found at run-time))\n");
21303 }
21304 }
21305 return 1;
21306}
f79bd02d 21307
e6cc62c6
VS
21308_ACEOF
21309rm -f conftest$ac_exeext
21310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21311 (eval $ac_link) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21d1c967 21320 :
f79bd02d 21321else
e6cc62c6
VS
21322 echo "$as_me: program exited with status $ac_status" >&5
21323echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326( exit $ac_status )
21327no_gtk=yes
f79bd02d 21328fi
eea650d8 21329rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21330fi
21d1c967
GD
21331 CFLAGS="$ac_save_CFLAGS"
21332 LIBS="$ac_save_LIBS"
21333 fi
21334 fi
21335 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21336 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21337echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21338 wx_cv_lib_gtk=2.0
21d1c967 21339 else
e6cc62c6
VS
21340 echo "$as_me:$LINENO: result: no" >&5
21341echo "${ECHO_T}no" >&6
21d1c967
GD
21342 if test "$PKG_CONFIG" = "no" ; then
21343 echo "*** A new enough version of pkg-config was not found."
21344 echo "*** See http://pkgconfig.sourceforge.net"
21345 else
21346 if test -f conf.gtktest ; then
21347 :
21348 else
21349 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21350 ac_save_CFLAGS="$CFLAGS"
21351 ac_save_LIBS="$LIBS"
21d1c967
GD
21352 CFLAGS="$CFLAGS $GTK_CFLAGS"
21353 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21354 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21355/* confdefs.h. */
21356_ACEOF
21357cat confdefs.h >>conftest.$ac_ext
21358cat >>conftest.$ac_ext <<_ACEOF
21359/* end confdefs.h. */
21d1c967
GD
21360
21361#include <gtk/gtk.h>
21362#include <stdio.h>
f79bd02d 21363
e6cc62c6
VS
21364int
21365main ()
21366{
21367 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21368 ;
21369 return 0;
21370}
21371_ACEOF
21372rm -f conftest.$ac_objext conftest$ac_exeext
21373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21374 (eval $ac_link) 2>conftest.er1
e6cc62c6 21375 ac_status=$?
eea650d8
VS
21376 grep -v '^ *+' conftest.er1 >conftest.err
21377 rm -f conftest.er1
21378 cat conftest.err >&5
e6cc62c6
VS
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } &&
eea650d8
VS
21381 { ac_try='test -z "$ac_c_werror_flag"
21382 || test ! -s conftest.err'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; } &&
21388 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21d1c967
GD
21394 echo "*** The test program compiled, but did not run. This usually means"
21395 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21396 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21397 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21398 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21399 echo "*** is required on your system"
21400 echo "***"
21401 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21402 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21403else
e6cc62c6
VS
21404 echo "$as_me: failed program was:" >&5
21405sed 's/^/| /' conftest.$ac_ext >&5
21406
21407 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 21408 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 21409fi
eea650d8
VS
21410rm -f conftest.err conftest.$ac_objext \
21411 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21412 CFLAGS="$ac_save_CFLAGS"
21413 LIBS="$ac_save_LIBS"
21414 fi
21415 fi
21416 GTK_CFLAGS=""
21417 GTK_LIBS=""
21418 :
21419 fi
e6cc62c6
VS
21420
21421
21d1c967 21422 rm -f conf.gtktest
f79bd02d 21423
2b5f62a0 21424 else
e6cc62c6
VS
21425
21426# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21427if test "${with_gtk_prefix+set}" = set; then
21428 withval="$with_gtk_prefix"
21429 gtk_config_prefix="$withval"
21430else
21431 gtk_config_prefix=""
e6cc62c6 21432fi;
f79bd02d 21433
21d1c967
GD
21434# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21435if test "${with_gtk_exec_prefix+set}" = set; then
21436 withval="$with_gtk_exec_prefix"
21437 gtk_config_exec_prefix="$withval"
21438else
21439 gtk_config_exec_prefix=""
e6cc62c6 21440fi;
21d1c967
GD
21441# Check whether --enable-gtktest or --disable-gtktest was given.
21442if test "${enable_gtktest+set}" = set; then
21443 enableval="$enable_gtktest"
e6cc62c6 21444
21d1c967
GD
21445else
21446 enable_gtktest=yes
e6cc62c6 21447fi;
21d1c967
GD
21448
21449 for module in . $GTK_MODULES
21450 do
21451 case "$module" in
e6cc62c6 21452 gthread)
21d1c967
GD
21453 gtk_config_args="$gtk_config_args gthread"
21454 ;;
21455 esac
21456 done
21457
21458 if test x$gtk_config_exec_prefix != x ; then
21459 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21460 if test x${GTK_CONFIG+set} != xset ; then
21461 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21462 fi
21463 fi
21464 if test x$gtk_config_prefix != x ; then
21465 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21466 if test x${GTK_CONFIG+set} != xset ; then
21467 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21468 fi
21469 fi
21470
21471 # Extract the first word of "gtk-config", so it can be a program name with args.
21472set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21473echo "$as_me:$LINENO: checking for $ac_word" >&5
21474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21475if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21477else
e6cc62c6
VS
21478 case $GTK_CONFIG in
21479 [\\/]* | ?:[\\/]*)
21d1c967
GD
21480 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21481 ;;
21d1c967 21482 *)
e6cc62c6
VS
21483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21484for as_dir in $PATH
21485do
21486 IFS=$as_save_IFS
21487 test -z "$as_dir" && as_dir=.
21488 for ac_exec_ext in '' $ac_executable_extensions; do
21489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21490 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21492 break 2
21493 fi
21494done
21495done
21496
21d1c967
GD
21497 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21498 ;;
21499esac
21500fi
e6cc62c6
VS
21501GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21502
21d1c967 21503if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21504 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21505echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21506else
e6cc62c6
VS
21507 echo "$as_me:$LINENO: result: no" >&5
21508echo "${ECHO_T}no" >&6
21d1c967
GD
21509fi
21510
21511 min_gtk_version=1.2.7
e6cc62c6
VS
21512 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21513echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21514 no_gtk=""
21515 if test "$GTK_CONFIG" = "no" ; then
21516 no_gtk=yes
21517 else
21518 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21519 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21520 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21522 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21524 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21525 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21526 if test "x$enable_gtktest" = "xyes" ; then
21527 ac_save_CFLAGS="$CFLAGS"
21528 ac_save_LIBS="$LIBS"
21529 CFLAGS="$CFLAGS $GTK_CFLAGS"
21530 LIBS="$GTK_LIBS $LIBS"
21531 rm -f conf.gtktest
21532 if test "$cross_compiling" = yes; then
21533 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21534else
e6cc62c6 21535 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21536/* confdefs.h. */
21537_ACEOF
21538cat confdefs.h >>conftest.$ac_ext
21539cat >>conftest.$ac_ext <<_ACEOF
21540/* end confdefs.h. */
f79bd02d 21541
21d1c967
GD
21542#include <gtk/gtk.h>
21543#include <stdio.h>
21544#include <stdlib.h>
f79bd02d 21545
e6cc62c6 21546int
21d1c967
GD
21547main ()
21548{
21549 int major, minor, micro;
21550 char *tmp_version;
21551
21552 system ("touch conf.gtktest");
21553
21554 /* HP/UX 9 (%@#!) writes to sscanf strings */
21555 tmp_version = g_strdup("$min_gtk_version");
21556 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21557 printf("%s, bad version string\n", "$min_gtk_version");
21558 exit(1);
21559 }
90dd450c 21560
21d1c967
GD
21561 if ((gtk_major_version != $gtk_config_major_version) ||
21562 (gtk_minor_version != $gtk_config_minor_version) ||
21563 (gtk_micro_version != $gtk_config_micro_version))
21564 {
e6cc62c6 21565 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21566 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21567 gtk_major_version, gtk_minor_version, gtk_micro_version);
21568 printf ("*** was found! If gtk-config was correct, then it is best\n");
21569 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21570 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21571 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21572 printf("*** required on your system.\n");
21573 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21574 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21575 printf("*** before re-running configure\n");
e6cc62c6 21576 }
21d1c967
GD
21577#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21578 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21579 (gtk_minor_version != GTK_MINOR_VERSION) ||
21580 (gtk_micro_version != GTK_MICRO_VERSION))
21581 {
21582 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21583 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21584 printf("*** library (version %d.%d.%d)\n",
21585 gtk_major_version, gtk_minor_version, gtk_micro_version);
21586 }
21587#endif /* defined (GTK_MAJOR_VERSION) ... */
21588 else
21589 {
21590 if ((gtk_major_version > major) ||
21591 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21592 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21593 {
21594 return 0;
21595 }
21596 else
21597 {
21598 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21599 gtk_major_version, gtk_minor_version, gtk_micro_version);
21600 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21601 major, minor, micro);
21602 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21603 printf("***\n");
21604 printf("*** If you have already installed a sufficiently new version, this error\n");
21605 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21606 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21607 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21608 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21609 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21610 printf("*** so that the correct libraries are found at run-time))\n");
21611 }
21612 }
21613 return 1;
21614}
21615
e6cc62c6
VS
21616_ACEOF
21617rm -f conftest$ac_exeext
21618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21619 (eval $ac_link) 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21d1c967
GD
21628 :
21629else
e6cc62c6
VS
21630 echo "$as_me: program exited with status $ac_status" >&5
21631echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634( exit $ac_status )
21635no_gtk=yes
21d1c967 21636fi
eea650d8 21637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21638fi
21d1c967
GD
21639 CFLAGS="$ac_save_CFLAGS"
21640 LIBS="$ac_save_LIBS"
21641 fi
21642 fi
21643 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21644 echo "$as_me:$LINENO: result: yes" >&5
21645echo "${ECHO_T}yes" >&6
21646 wx_cv_lib_gtk=1.2.7
21d1c967 21647 else
e6cc62c6
VS
21648 echo "$as_me:$LINENO: result: no" >&5
21649echo "${ECHO_T}no" >&6
21d1c967
GD
21650 if test "$GTK_CONFIG" = "no" ; then
21651 echo "*** The gtk-config script installed by GTK could not be found"
21652 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21653 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21654 echo "*** full path to gtk-config."
21655 else
21656 if test -f conf.gtktest ; then
21657 :
21658 else
21659 echo "*** Could not run GTK test program, checking why..."
21660 CFLAGS="$CFLAGS $GTK_CFLAGS"
21661 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21662 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
21d1c967
GD
21668
21669#include <gtk/gtk.h>
21670#include <stdio.h>
21671
e6cc62c6
VS
21672int
21673main ()
21674{
21675 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext conftest$ac_exeext
21681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21682 (eval $ac_link) 2>conftest.er1
e6cc62c6 21683 ac_status=$?
eea650d8
VS
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
e6cc62c6
VS
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
eea650d8
VS
21689 { ac_try='test -z "$ac_c_werror_flag"
21690 || test ! -s conftest.err'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; } &&
21696 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21d1c967
GD
21702 echo "*** The test program compiled, but did not run. This usually means"
21703 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21704 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21705 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21706 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21707 echo "*** is required on your system"
21708 echo "***"
21709 echo "*** If you have an old version installed, it is best to remove it, although"
21710 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21711 echo "***"
21712 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21713 echo "*** came with the system with the command"
21714 echo "***"
e6cc62c6 21715 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21716else
e6cc62c6
VS
21717 echo "$as_me: failed program was:" >&5
21718sed 's/^/| /' conftest.$ac_ext >&5
21719
21720 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21721 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21722 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21723 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21724fi
eea650d8
VS
21725rm -f conftest.err conftest.$ac_objext \
21726 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21727 CFLAGS="$ac_save_CFLAGS"
21728 LIBS="$ac_save_LIBS"
21729 fi
21730 fi
21731 GTK_CFLAGS=""
21732 GTK_LIBS=""
21733 :
21734 fi
e6cc62c6
VS
21735
21736
21d1c967
GD
21737 rm -f conf.gtktest
21738
21d1c967 21739
2b5f62a0 21740 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
21741
21742# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21743if test "${with_gtk_prefix+set}" = set; then
21744 withval="$with_gtk_prefix"
21745 gtk_config_prefix="$withval"
21746else
21747 gtk_config_prefix=""
e6cc62c6 21748fi;
f79bd02d 21749
21d1c967
GD
21750# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21751if test "${with_gtk_exec_prefix+set}" = set; then
21752 withval="$with_gtk_exec_prefix"
21753 gtk_config_exec_prefix="$withval"
21754else
21755 gtk_config_exec_prefix=""
e6cc62c6 21756fi;
21d1c967
GD
21757# Check whether --enable-gtktest or --disable-gtktest was given.
21758if test "${enable_gtktest+set}" = set; then
21759 enableval="$enable_gtktest"
e6cc62c6 21760
90dd450c 21761else
21d1c967 21762 enable_gtktest=yes
e6cc62c6 21763fi;
21d1c967
GD
21764
21765 for module in . $GTK_MODULES
21766 do
21767 case "$module" in
e6cc62c6 21768 gthread)
21d1c967
GD
21769 gtk_config_args="$gtk_config_args gthread"
21770 ;;
21771 esac
21772 done
21773
21774 if test x$gtk_config_exec_prefix != x ; then
21775 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21776 if test x${GTK_CONFIG+set} != xset ; then
21777 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21778 fi
21779 fi
21780 if test x$gtk_config_prefix != x ; then
21781 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21782 if test x${GTK_CONFIG+set} != xset ; then
21783 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21784 fi
21785 fi
21786
21787 # Extract the first word of "gtk-config", so it can be a program name with args.
21788set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21789echo "$as_me:$LINENO: checking for $ac_word" >&5
21790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21791if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21793else
e6cc62c6
VS
21794 case $GTK_CONFIG in
21795 [\\/]* | ?:[\\/]*)
21d1c967
GD
21796 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21797 ;;
21d1c967 21798 *)
e6cc62c6
VS
21799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21800for as_dir in $PATH
21801do
21802 IFS=$as_save_IFS
21803 test -z "$as_dir" && as_dir=.
21804 for ac_exec_ext in '' $ac_executable_extensions; do
21805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21806 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21808 break 2
21809 fi
21810done
21811done
21812
21d1c967
GD
21813 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21814 ;;
21815esac
21816fi
e6cc62c6
VS
21817GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21818
21d1c967 21819if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21820 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21821echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21822else
e6cc62c6
VS
21823 echo "$as_me:$LINENO: result: no" >&5
21824echo "${ECHO_T}no" >&6
21d1c967
GD
21825fi
21826
21827 min_gtk_version=1.2.3
e6cc62c6
VS
21828 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21829echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21830 no_gtk=""
21831 if test "$GTK_CONFIG" = "no" ; then
21832 no_gtk=yes
21833 else
21834 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21835 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21836 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21837 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21838 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21839 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21840 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21842 if test "x$enable_gtktest" = "xyes" ; then
21843 ac_save_CFLAGS="$CFLAGS"
21844 ac_save_LIBS="$LIBS"
21845 CFLAGS="$CFLAGS $GTK_CFLAGS"
21846 LIBS="$GTK_LIBS $LIBS"
21847 rm -f conf.gtktest
21848 if test "$cross_compiling" = yes; then
21849 echo $ac_n "cross compiling; assumed OK... $ac_c"
21850else
e6cc62c6 21851 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
21d1c967
GD
21857
21858#include <gtk/gtk.h>
21859#include <stdio.h>
21860#include <stdlib.h>
21861
e6cc62c6 21862int
21d1c967
GD
21863main ()
21864{
21865 int major, minor, micro;
21866 char *tmp_version;
21867
21868 system ("touch conf.gtktest");
21869
21870 /* HP/UX 9 (%@#!) writes to sscanf strings */
21871 tmp_version = g_strdup("$min_gtk_version");
21872 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21873 printf("%s, bad version string\n", "$min_gtk_version");
21874 exit(1);
21875 }
21876
21877 if ((gtk_major_version != $gtk_config_major_version) ||
21878 (gtk_minor_version != $gtk_config_minor_version) ||
21879 (gtk_micro_version != $gtk_config_micro_version))
21880 {
e6cc62c6 21881 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21882 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21883 gtk_major_version, gtk_minor_version, gtk_micro_version);
21884 printf ("*** was found! If gtk-config was correct, then it is best\n");
21885 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21886 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21887 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21888 printf("*** required on your system.\n");
21889 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21890 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21891 printf("*** before re-running configure\n");
e6cc62c6 21892 }
21d1c967
GD
21893#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21894 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21895 (gtk_minor_version != GTK_MINOR_VERSION) ||
21896 (gtk_micro_version != GTK_MICRO_VERSION))
21897 {
21898 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21899 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21900 printf("*** library (version %d.%d.%d)\n",
21901 gtk_major_version, gtk_minor_version, gtk_micro_version);
21902 }
21903#endif /* defined (GTK_MAJOR_VERSION) ... */
21904 else
21905 {
21906 if ((gtk_major_version > major) ||
21907 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21908 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21909 {
21910 return 0;
21911 }
21912 else
21913 {
21914 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21915 gtk_major_version, gtk_minor_version, gtk_micro_version);
21916 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21917 major, minor, micro);
21918 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21919 printf("***\n");
21920 printf("*** If you have already installed a sufficiently new version, this error\n");
21921 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21922 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21923 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21924 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21925 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21926 printf("*** so that the correct libraries are found at run-time))\n");
21927 }
21928 }
21929 return 1;
21930}
21931
e6cc62c6
VS
21932_ACEOF
21933rm -f conftest$ac_exeext
21934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21935 (eval $ac_link) 2>&5
21936 ac_status=$?
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21941 ac_status=$?
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21d1c967
GD
21944 :
21945else
e6cc62c6
VS
21946 echo "$as_me: program exited with status $ac_status" >&5
21947echo "$as_me: failed program was:" >&5
21948sed 's/^/| /' conftest.$ac_ext >&5
21949
21950( exit $ac_status )
21951no_gtk=yes
21d1c967 21952fi
eea650d8 21953rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21954fi
21d1c967
GD
21955 CFLAGS="$ac_save_CFLAGS"
21956 LIBS="$ac_save_LIBS"
21957 fi
21958 fi
21959 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21960 echo "$as_me:$LINENO: result: yes" >&5
21961echo "${ECHO_T}yes" >&6
21962 wx_cv_lib_gtk=1.2.3
21d1c967 21963 else
e6cc62c6
VS
21964 echo "$as_me:$LINENO: result: no" >&5
21965echo "${ECHO_T}no" >&6
21d1c967
GD
21966 if test "$GTK_CONFIG" = "no" ; then
21967 echo "*** The gtk-config script installed by GTK could not be found"
21968 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21969 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21970 echo "*** full path to gtk-config."
21971 else
21972 if test -f conf.gtktest ; then
21973 :
21974 else
21975 echo "*** Could not run GTK test program, checking why..."
21976 CFLAGS="$CFLAGS $GTK_CFLAGS"
21977 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21978 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21979/* confdefs.h. */
21980_ACEOF
21981cat confdefs.h >>conftest.$ac_ext
21982cat >>conftest.$ac_ext <<_ACEOF
21983/* end confdefs.h. */
21d1c967
GD
21984
21985#include <gtk/gtk.h>
21986#include <stdio.h>
f79bd02d 21987
e6cc62c6
VS
21988int
21989main ()
21990{
21991 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21992 ;
21993 return 0;
21994}
21995_ACEOF
21996rm -f conftest.$ac_objext conftest$ac_exeext
21997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21998 (eval $ac_link) 2>conftest.er1
e6cc62c6 21999 ac_status=$?
eea650d8
VS
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
e6cc62c6
VS
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
eea650d8
VS
22005 { ac_try='test -z "$ac_c_werror_flag"
22006 || test ! -s conftest.err'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; } &&
22012 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
21d1c967
GD
22018 echo "*** The test program compiled, but did not run. This usually means"
22019 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22020 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22021 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22022 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22023 echo "*** is required on your system"
22024 echo "***"
22025 echo "*** If you have an old version installed, it is best to remove it, although"
22026 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22027 echo "***"
22028 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22029 echo "*** came with the system with the command"
22030 echo "***"
e6cc62c6 22031 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22032else
e6cc62c6
VS
22033 echo "$as_me: failed program was:" >&5
22034sed 's/^/| /' conftest.$ac_ext >&5
22035
22036 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22037 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22038 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22039 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22040fi
eea650d8
VS
22041rm -f conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22043 CFLAGS="$ac_save_CFLAGS"
22044 LIBS="$ac_save_LIBS"
22045 fi
22046 fi
22047 GTK_CFLAGS=""
22048 GTK_LIBS=""
22049 :
22050 fi
e6cc62c6
VS
22051
22052
21d1c967 22053 rm -f conf.gtktest
f79bd02d 22054
2b5f62a0 22055 fi
21d1c967
GD
22056 fi
22057
22058 if test -z "$wx_cv_lib_gtk"; then
22059 wx_cv_lib_gtk=none
22060 else
22061 wx_cv_cflags_gtk=$GTK_CFLAGS
22062 wx_cv_libs_gtk=$GTK_LIBS
22063 fi
e6cc62c6
VS
22064
22065
5c6fa7d2 22066fi
52127426 22067
8284b0c5 22068
21d1c967 22069 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22070 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22071echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22072 fi
22073
22074 case "$wx_cv_lib_gtk" in
22075 2.0) WXGTK20=1
2b5f62a0 22076 TOOLKIT_VERSION=2
21d1c967
GD
22077 ;;
22078 1.2.7) WXGTK127=1
22079 WXGTK12=1
22080 ;;
22081 1.2.3) WXGTK12=1
22082 ;;
e6cc62c6
VS
22083 *) { { echo "$as_me:$LINENO: error:
22084Please check that gtk-config is in path, the directory
22085where GTK+ libraries are installed (returned by
22086'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22087equivalent variable and GTK+ is version 1.2.3 or above.
22088 " >&5
22089echo "$as_me: error:
247f5006
VZ
22090Please check that gtk-config is in path, the directory
22091where GTK+ libraries are installed (returned by
22092'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22093equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22094 " >&2;}
22095 { (exit 1); exit 1; }; }
21d1c967
GD
22096 ;;
22097 esac
22098
b13cd66e
VZ
22099 if test "$WXGTK20" = 1; then
22100 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22101
f09359cf
VS
22102 succeeded=no
22103
22104 if test -z "$PKG_CONFIG"; then
22105 # Extract the first word of "pkg-config", so it can be a program name with args.
22106set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22107echo "$as_me:$LINENO: checking for $ac_word" >&5
22108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22109if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22111else
e6cc62c6
VS
22112 case $PKG_CONFIG in
22113 [\\/]* | ?:[\\/]*)
f09359cf
VS
22114 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22115 ;;
f09359cf 22116 *)
e6cc62c6
VS
22117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22118for as_dir in $PATH
22119do
22120 IFS=$as_save_IFS
22121 test -z "$as_dir" && as_dir=.
22122 for ac_exec_ext in '' $ac_executable_extensions; do
22123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22124 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22126 break 2
22127 fi
22128done
22129done
22130
f09359cf
VS
22131 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22132 ;;
22133esac
22134fi
e6cc62c6
VS
22135PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22136
f09359cf 22137if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22138 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22139echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22140else
e6cc62c6
VS
22141 echo "$as_me:$LINENO: result: no" >&5
22142echo "${ECHO_T}no" >&6
f09359cf
VS
22143fi
22144
22145 fi
22146
22147 if test "$PKG_CONFIG" = "no" ; then
22148 echo "*** The pkg-config script could not be found. Make sure it is"
22149 echo "*** in your path, or set the PKG_CONFIG environment variable"
22150 echo "*** to the full path to pkg-config."
22151 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22152 else
22153 PKG_CONFIG_MIN_VERSION=0.9.0
22154 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22155 echo "$as_me:$LINENO: checking for pangoft2" >&5
22156echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22157
22158 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22159 echo "$as_me:$LINENO: result: yes" >&5
22160echo "${ECHO_T}yes" >&6
f09359cf
VS
22161 succeeded=yes
22162
e6cc62c6
VS
22163 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22164echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22165 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22166 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22167echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22168
e6cc62c6
VS
22169 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22170echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22171 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22172 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22173echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22174 else
22175 PANGOFT2_CFLAGS=""
22176 PANGOFT2_LIBS=""
e6cc62c6 22177 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22178 ## do set a variable so people can do so.
22179 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22180
f09359cf
VS
22181 fi
22182
e6cc62c6
VS
22183
22184
f09359cf
VS
22185 else
22186 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22187 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22188 fi
22189 fi
22190
22191 if test $succeeded = yes; then
e6cc62c6 22192
b13cd66e 22193 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22194 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22195
f09359cf 22196 else
e6cc62c6
VS
22197
22198 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22199echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22200 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22201
22202
f09359cf
VS
22203 fi
22204
b13cd66e 22205 fi
2b5f62a0
VZ
22206 else
22207 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22208 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22209echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22210 wxUSE_UNICODE=no
22211 fi
22212 fi
22213
22214 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22215
22216for ac_func in poll
2b5f62a0 22217do
e6cc62c6
VS
22218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22219echo "$as_me:$LINENO: checking for $ac_func" >&5
22220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22221if eval "test \"\${$as_ac_var+set}\" = set"; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223else
22224 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
eea650d8
VS
22230/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22232#define $ac_func innocuous_$ac_func
22233
2b5f62a0 22234/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22235 which can conflict with char $ac_func (); below.
22236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22237 <limits.h> exists even on freestanding compilers. */
eea650d8 22238
e6cc62c6
VS
22239#ifdef __STDC__
22240# include <limits.h>
22241#else
22242# include <assert.h>
22243#endif
eea650d8
VS
22244
22245#undef $ac_func
22246
2b5f62a0 22247/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22248#ifdef __cplusplus
22249extern "C"
22250{
22251#endif
2b5f62a0 22252/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22253 builtin and then its argument prototype would still apply. */
22254char $ac_func ();
2b5f62a0
VZ
22255/* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22259choke me
22260#else
e6cc62c6
VS
22261char (*f) () = $ac_func;
22262#endif
22263#ifdef __cplusplus
22264}
2b5f62a0
VZ
22265#endif
22266
e6cc62c6
VS
22267int
22268main ()
22269{
22270return f != $ac_func;
22271 ;
22272 return 0;
22273}
22274_ACEOF
22275rm -f conftest.$ac_objext conftest$ac_exeext
22276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22277 (eval $ac_link) 2>conftest.er1
e6cc62c6 22278 ac_status=$?
eea650d8
VS
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
e6cc62c6
VS
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } &&
eea650d8
VS
22284 { ac_try='test -z "$ac_c_werror_flag"
22285 || test ! -s conftest.err'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; } &&
22291 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
22297 eval "$as_ac_var=yes"
22298else
22299 echo "$as_me: failed program was:" >&5
22300sed 's/^/| /' conftest.$ac_ext >&5
22301
22302eval "$as_ac_var=no"
22303fi
eea650d8
VS
22304rm -f conftest.err conftest.$ac_objext \
22305 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22306fi
22307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22308echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22309if test `eval echo '${'$as_ac_var'}'` = yes; then
22310 cat >>confdefs.h <<_ACEOF
22311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22312_ACEOF
2b5f62a0 22313
2b5f62a0
VZ
22314fi
22315done
22316
f09359cf
VS
22317 fi
22318
21d1c967 22319 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22320 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22321
22322 AFMINSTALL=afminstall
22323 TOOLKIT=GTK
22324 GUIDIST=GTK_DIST
22325
e6cc62c6
VS
22326 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22327echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22328if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22330else
e6cc62c6 22331 ac_check_lib_save_LIBS=$LIBS
21d1c967 22332LIBS="-lgdk $LIBS"
e6cc62c6 22333cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22334/* confdefs.h. */
22335_ACEOF
22336cat confdefs.h >>conftest.$ac_ext
22337cat >>conftest.$ac_ext <<_ACEOF
22338/* end confdefs.h. */
22339
5c6fa7d2 22340/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22341#ifdef __cplusplus
22342extern "C"
22343#endif
5c6fa7d2 22344/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22345 builtin and then its argument prototype would still apply. */
22346char gdk_im_open ();
22347int
22348main ()
22349{
22350gdk_im_open ();
22351 ;
22352 return 0;
22353}
22354_ACEOF
22355rm -f conftest.$ac_objext conftest$ac_exeext
22356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22357 (eval $ac_link) 2>conftest.er1
e6cc62c6 22358 ac_status=$?
eea650d8
VS
22359 grep -v '^ *+' conftest.er1 >conftest.err
22360 rm -f conftest.er1
22361 cat conftest.err >&5
e6cc62c6
VS
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } &&
eea650d8
VS
22364 { ac_try='test -z "$ac_c_werror_flag"
22365 || test ! -s conftest.err'
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; } &&
22371 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; }; then
22377 ac_cv_lib_gdk_gdk_im_open=yes
22378else
22379 echo "$as_me: failed program was:" >&5
22380sed 's/^/| /' conftest.$ac_ext >&5
22381
22382ac_cv_lib_gdk_gdk_im_open=no
22383fi
eea650d8
VS
22384rm -f conftest.err conftest.$ac_objext \
22385 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22386LIBS=$ac_check_lib_save_LIBS
22387fi
22388echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22389echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22390if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22391 cat >>confdefs.h <<\_ACEOF
21d1c967 22392#define HAVE_XIM 1
e6cc62c6 22393_ACEOF
21d1c967 22394
90dd450c 22395fi
1e6feb95 22396
21d1c967 22397 fi
1e6feb95 22398
21d1c967 22399 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22400 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22401echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22402 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
22403 echo "$as_me:$LINENO: result: not found" >&5
22404echo "${ECHO_T}not found" >&6
22405 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22406echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22407 { (exit 1); exit 1; }; }
21d1c967 22408 else
e6cc62c6
VS
22409 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22410echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
22411 fi
22412
e6cc62c6
VS
22413 echo "$as_me:$LINENO: checking for libmgl location" >&5
22414echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 22415 case "${host}" in
21d1c967 22416 *-*-linux* )
e46d2a18
VS
22417 if test "x$wxUSE_SHARED" = xyes ; then
22418 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 22419 else
e46d2a18 22420 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 22421 fi
21d1c967
GD
22422 ;;
22423 *-pc-msdosdjgpp )
63a76696 22424 mgl_os_candidates="dos32/dj2"
21d1c967
GD
22425 ;;
22426 *)
e6cc62c6
VS
22427 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22428echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22429 { (exit 1); exit 1; }; }
21d1c967 22430 esac
1e6feb95 22431
21d1c967 22432 mgl_lib_type=""
63a76696
VS
22433 mgl_os=""
22434
22435 for mgl_os_i in $mgl_os_candidates ; do
22436 if test "x$mgl_os" = x ; then
22437 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22438 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22439 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22440 mgl_lib_type=debug
22441 mgl_os=$mgl_os_i
22442 fi
22443 fi
22444 if test "x$mgl_lib_type" = x ; then
22445 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22446 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22447 mgl_lib_type=release
22448 mgl_os=$mgl_os_i
22449 fi
22450 fi
21d1c967 22451 fi
63a76696 22452 done
2224580a 22453
63a76696 22454 if test "x$mgl_os" = x ; then
e6cc62c6
VS
22455 echo "$as_me:$LINENO: result: not found" >&5
22456echo "${ECHO_T}not found" >&6
22457 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22458echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22459 { (exit 1); exit 1; }; }
63a76696 22460 fi
e6cc62c6
VS
22461 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22462echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 22463
1d1b75ac
VZ
22464 wxUSE_UNIVERSAL="yes"
22465
21d1c967
GD
22466 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22467 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22468
90dd450c 22469 AFMINSTALL=afminstall
21d1c967
GD
22470 TOOLKIT=MGL
22471 GUIDIST=MGL_DIST
22472 fi
dad6c0ea 22473
21d1c967 22474 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
22475 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22476echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 22477 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
22478 echo "$as_me:$LINENO: result: not found" >&5
22479echo "${ECHO_T}not found" >&6
22480 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22481echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22482 { (exit 1); exit 1; }; }
21d1c967 22483 else
e6cc62c6
VS
22484 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22485echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 22486 fi
f6bcfd97 22487
21d1c967 22488 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
22489 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22490echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 22491 else
e6cc62c6
VS
22492 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22493echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22494 { (exit 1); exit 1; }; }
90dd450c 22495 fi
0b2effe9 22496
21d1c967
GD
22497 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22498 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22499
1d1b75ac
VZ
22500 wxUSE_UNIVERSAL="yes"
22501
21d1c967
GD
22502 AFMINSTALL=afminstall
22503 TOOLKIT=MICROWIN
22504 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
22505
22506 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 22507 fi
f6bcfd97 22508
21d1c967 22509 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
22510 echo "$as_me:$LINENO: checking for X" >&5
22511echo $ECHO_N "checking for X... $ECHO_C" >&6
22512
d8356fa3 22513
21d1c967
GD
22514# Check whether --with-x or --without-x was given.
22515if test "${with_x+set}" = set; then
22516 withval="$with_x"
2224580a 22517
e6cc62c6 22518fi;
21d1c967
GD
22519# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22520if test "x$with_x" = xno; then
22521 # The user explicitly disabled X.
22522 have_x=disabled
22523else
22524 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22525 # Both variables are already set.
22526 have_x=yes
22527 else
e6cc62c6
VS
22528 if test "${ac_cv_have_x+set}" = set; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
22530else
22531 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
22532ac_x_includes=no ac_x_libraries=no
22533rm -fr conftest.dir
22534if mkdir conftest.dir; then
22535 cd conftest.dir
21d1c967 22536 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 22537 cat >Imakefile <<'_ACEOF'
21d1c967
GD
22538acfindx:
22539 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 22540_ACEOF
21d1c967
GD
22541 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22543 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22544 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22545 for ac_extension in a so sl; do
22546 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
eea650d8
VS
22547 test -f $ac_im_libdir/libX11.$ac_extension; then
22548 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
22549 fi
22550 done
22551 # Screen out bogus values from the imake configuration. They are
22552 # bogus both because they are the default anyway, and because
22553 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 22554 case $ac_im_incroot in
21d1c967 22555 /usr/include) ;;
e6cc62c6 22556 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 22557 esac
e6cc62c6 22558 case $ac_im_usrlibdir in
21d1c967 22559 /usr/lib | /lib) ;;
e6cc62c6 22560 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
22561 esac
22562 fi
22563 cd ..
e6cc62c6 22564 rm -fr conftest.dir
21d1c967 22565fi
10f2d63a 22566
e6cc62c6
VS
22567# Standard set of common directories for X headers.
22568# Check X11 before X11Rn because it is often a symlink to the current release.
22569ac_x_header_dirs='
22570/usr/X11/include
22571/usr/X11R6/include
22572/usr/X11R5/include
22573/usr/X11R4/include
22574
22575/usr/include/X11
22576/usr/include/X11R6
22577/usr/include/X11R5
22578/usr/include/X11R4
22579
22580/usr/local/X11/include
22581/usr/local/X11R6/include
22582/usr/local/X11R5/include
22583/usr/local/X11R4/include
22584
22585/usr/local/include/X11
22586/usr/local/include/X11R6
22587/usr/local/include/X11R5
22588/usr/local/include/X11R4
22589
22590/usr/X386/include
22591/usr/x386/include
22592/usr/XFree86/include/X11
22593
22594/usr/include
22595/usr/local/include
22596/usr/unsupported/include
22597/usr/athena/include
22598/usr/local/x11r5/include
22599/usr/lpp/Xamples/include
22600
22601/usr/openwin/include
22602/usr/openwin/share/include'
22603
22604if test "$ac_x_includes" = no; then
22605 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 22606 # First, try using that file with no special directory specified.
e6cc62c6 22607 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22608/* confdefs.h. */
22609_ACEOF
22610cat confdefs.h >>conftest.$ac_ext
22611cat >>conftest.$ac_ext <<_ACEOF
22612/* end confdefs.h. */
22613#include <X11/Intrinsic.h>
22614_ACEOF
22615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22617 ac_status=$?
22618 grep -v '^ *+' conftest.er1 >conftest.err
22619 rm -f conftest.er1
22620 cat conftest.err >&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } >/dev/null; then
22623 if test -s conftest.err; then
22624 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 22625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
22626 else
22627 ac_cpp_err=
22628 fi
22629else
22630 ac_cpp_err=yes
22631fi
22632if test -z "$ac_cpp_err"; then
21d1c967
GD
22633 # We can compile using X headers with no special include directory.
22634ac_x_includes=
90dd450c 22635else
e6cc62c6
VS
22636 echo "$as_me: failed program was:" >&5
22637sed 's/^/| /' conftest.$ac_ext >&5
22638
22639 for ac_dir in $ac_x_header_dirs; do
22640 if test -r "$ac_dir/X11/Intrinsic.h"; then
22641 ac_x_includes=$ac_dir
22642 break
22643 fi
22644done
3a922bb4 22645fi
e6cc62c6
VS
22646rm -f conftest.err conftest.$ac_ext
22647fi # $ac_x_includes = no
10f2d63a 22648
e6cc62c6 22649if test "$ac_x_libraries" = no; then
21d1c967 22650 # Check for the libraries.
21d1c967
GD
22651 # See if we find them without any special options.
22652 # Don't add to $LIBS permanently.
e6cc62c6
VS
22653 ac_save_LIBS=$LIBS
22654 LIBS="-lXt $LIBS"
22655 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22656/* confdefs.h. */
22657_ACEOF
22658cat confdefs.h >>conftest.$ac_ext
22659cat >>conftest.$ac_ext <<_ACEOF
22660/* end confdefs.h. */
22661#include <X11/Intrinsic.h>
22662int
22663main ()
22664{
22665XtMalloc (0)
22666 ;
22667 return 0;
22668}
22669_ACEOF
22670rm -f conftest.$ac_objext conftest$ac_exeext
22671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22672 (eval $ac_link) 2>conftest.er1
e6cc62c6 22673 ac_status=$?
eea650d8
VS
22674 grep -v '^ *+' conftest.er1 >conftest.err
22675 rm -f conftest.er1
22676 cat conftest.err >&5
e6cc62c6
VS
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
eea650d8
VS
22679 { ac_try='test -z "$ac_c_werror_flag"
22680 || test ! -s conftest.err'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; } &&
22686 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22692 LIBS=$ac_save_LIBS
21d1c967
GD
22693# We can link X programs with no special library path.
22694ac_x_libraries=
3a922bb4 22695else
e6cc62c6
VS
22696 echo "$as_me: failed program was:" >&5
22697sed 's/^/| /' conftest.$ac_ext >&5
22698
22699LIBS=$ac_save_LIBS
22700for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 22701do
e6cc62c6 22702 # Don't even attempt the hair of trying to link an X program!
21d1c967 22703 for ac_extension in a so sl; do
e6cc62c6 22704 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
22705 ac_x_libraries=$ac_dir
22706 break 2
22707 fi
22708 done
22709done
3a922bb4 22710fi
eea650d8
VS
22711rm -f conftest.err conftest.$ac_objext \
22712 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22713fi # $ac_x_libraries = no
90dd450c 22714
e6cc62c6 22715if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
22716 # Didn't find X anywhere. Cache the known absence of X.
22717 ac_cv_have_x="have_x=no"
22718else
22719 # Record where we found X for the cache.
22720 ac_cv_have_x="have_x=yes \
eea650d8 22721 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 22722fi
21d1c967 22723fi
e6cc62c6 22724
21d1c967
GD
22725 fi
22726 eval "$ac_cv_have_x"
22727fi # $with_x != no
90dd450c 22728
21d1c967 22729if test "$have_x" != yes; then
e6cc62c6
VS
22730 echo "$as_me:$LINENO: result: $have_x" >&5
22731echo "${ECHO_T}$have_x" >&6
21d1c967
GD
22732 no_x=yes
22733else
22734 # If each of the values was on the command line, it overrides each guess.
22735 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22736 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22737 # Update the cache value to reflect the command line values.
22738 ac_cv_have_x="have_x=yes \
22739 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
22740 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22741echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 22742fi
90dd450c 22743
21d1c967 22744if test "$no_x" = yes; then
90dd450c 22745 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22746
22747cat >>confdefs.h <<\_ACEOF
90dd450c 22748#define X_DISPLAY_MISSING 1
e6cc62c6 22749_ACEOF
90dd450c
VZ
22750
22751 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22752else
22753 if test -n "$x_includes"; then
22754 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 22755 fi
3a922bb4 22756
90dd450c
VZ
22757 # It would also be nice to do this for all -L options, not just this one.
22758 if test -n "$x_libraries"; then
22759 X_LIBS="$X_LIBS -L$x_libraries"
22760 # For Solaris; some versions of Sun CC require a space after -R and
22761 # others require no space. Words are not sufficient . . . .
e6cc62c6 22762 case `(uname -sr) 2>/dev/null` in
90dd450c 22763 "SunOS 5"*)
e6cc62c6
VS
22764 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22765echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22766 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22767 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22768/* confdefs.h. */
22769_ACEOF
22770cat confdefs.h >>conftest.$ac_ext
22771cat >>conftest.$ac_ext <<_ACEOF
22772/* end confdefs.h. */
22773
22774int
22775main ()
22776{
90dd450c 22777
e6cc62c6
VS
22778 ;
22779 return 0;
22780}
22781_ACEOF
22782rm -f conftest.$ac_objext conftest$ac_exeext
22783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22784 (eval $ac_link) 2>conftest.er1
e6cc62c6 22785 ac_status=$?
eea650d8
VS
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
e6cc62c6
VS
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } &&
eea650d8
VS
22791 { ac_try='test -z "$ac_c_werror_flag"
22792 || test ! -s conftest.err'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; } &&
22798 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800 (eval $ac_try) 2>&5
22801 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); }; }; then
90dd450c 22804 ac_R_nospace=yes
3a922bb4 22805else
e6cc62c6
VS
22806 echo "$as_me: failed program was:" >&5
22807sed 's/^/| /' conftest.$ac_ext >&5
22808
22809ac_R_nospace=no
3a922bb4 22810fi
eea650d8
VS
22811rm -f conftest.err conftest.$ac_objext \
22812 conftest$ac_exeext conftest.$ac_ext
90dd450c 22813 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22814 echo "$as_me:$LINENO: result: no" >&5
22815echo "${ECHO_T}no" >&6
90dd450c
VZ
22816 X_LIBS="$X_LIBS -R$x_libraries"
22817 else
22818 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 22819 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22820/* confdefs.h. */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h. */
22825
22826int
22827main ()
22828{
6f754473 22829
e6cc62c6
VS
22830 ;
22831 return 0;
22832}
22833_ACEOF
22834rm -f conftest.$ac_objext conftest$ac_exeext
22835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22836 (eval $ac_link) 2>conftest.er1
e6cc62c6 22837 ac_status=$?
eea650d8
VS
22838 grep -v '^ *+' conftest.er1 >conftest.err
22839 rm -f conftest.er1
22840 cat conftest.err >&5
e6cc62c6
VS
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } &&
eea650d8
VS
22843 { ac_try='test -z "$ac_c_werror_flag"
22844 || test ! -s conftest.err'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; } &&
22850 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; }; then
90dd450c
VZ
22856 ac_R_space=yes
22857else
e6cc62c6
VS
22858 echo "$as_me: failed program was:" >&5
22859sed 's/^/| /' conftest.$ac_ext >&5
22860
22861ac_R_space=no
90dd450c 22862fi
eea650d8
VS
22863rm -f conftest.err conftest.$ac_objext \
22864 conftest$ac_exeext conftest.$ac_ext
90dd450c 22865 if test $ac_R_space = yes; then
e6cc62c6
VS
22866 echo "$as_me:$LINENO: result: yes" >&5
22867echo "${ECHO_T}yes" >&6
90dd450c
VZ
22868 X_LIBS="$X_LIBS -R $x_libraries"
22869 else
e6cc62c6
VS
22870 echo "$as_me:$LINENO: result: neither works" >&5
22871echo "${ECHO_T}neither works" >&6
90dd450c
VZ
22872 fi
22873 fi
e6cc62c6 22874 LIBS=$ac_xsave_LIBS
90dd450c
VZ
22875 esac
22876 fi
22877
22878 # Check for system-dependent libraries X programs must link with.
22879 # Do this before checking for the system-independent R6 libraries
22880 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 22881
90dd450c
VZ
22882 if test "$ISC" = yes; then
22883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22884 else
e6cc62c6
VS
22885 # Martyn Johnson says this is needed for Ultrix, if the X
22886 # libraries were built with DECnet support. And Karl Berry says
90dd450c 22887 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22888 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22889 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22890/* confdefs.h. */
22891_ACEOF
22892cat confdefs.h >>conftest.$ac_ext
22893cat >>conftest.$ac_ext <<_ACEOF
22894/* end confdefs.h. */
22895
247f5006 22896/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22897#ifdef __cplusplus
22898extern "C"
22899#endif
247f5006 22900/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22901 builtin and then its argument prototype would still apply. */
22902char XOpenDisplay ();
22903int
22904main ()
22905{
22906XOpenDisplay ();
22907 ;
22908 return 0;
22909}
22910_ACEOF
22911rm -f conftest.$ac_objext conftest$ac_exeext
22912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22913 (eval $ac_link) 2>conftest.er1
e6cc62c6 22914 ac_status=$?
eea650d8
VS
22915 grep -v '^ *+' conftest.er1 >conftest.err
22916 rm -f conftest.er1
22917 cat conftest.err >&5
e6cc62c6
VS
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
eea650d8
VS
22920 { ac_try='test -z "$ac_c_werror_flag"
22921 || test ! -s conftest.err'
22922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; } &&
22927 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 :
22934else
22935 echo "$as_me: failed program was:" >&5
22936sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22937
e6cc62c6
VS
22938echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22939echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22940if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22942else
e6cc62c6
VS
22943 ac_check_lib_save_LIBS=$LIBS
22944LIBS="-ldnet $LIBS"
22945cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22946/* confdefs.h. */
22947_ACEOF
22948cat confdefs.h >>conftest.$ac_ext
22949cat >>conftest.$ac_ext <<_ACEOF
22950/* end confdefs.h. */
a0b9e27f 22951
e6cc62c6
VS
22952/* Override any gcc2 internal prototype to avoid an error. */
22953#ifdef __cplusplus
22954extern "C"
22955#endif
22956/* We use char because int might match the return type of a gcc2
22957 builtin and then its argument prototype would still apply. */
22958char dnet_ntoa ();
22959int
22960main ()
22961{
22962dnet_ntoa ();
22963 ;
22964 return 0;
22965}
22966_ACEOF
22967rm -f conftest.$ac_objext conftest$ac_exeext
22968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22969 (eval $ac_link) 2>conftest.er1
e6cc62c6 22970 ac_status=$?
eea650d8
VS
22971 grep -v '^ *+' conftest.er1 >conftest.err
22972 rm -f conftest.er1
22973 cat conftest.err >&5
e6cc62c6
VS
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } &&
eea650d8
VS
22976 { ac_try='test -z "$ac_c_werror_flag"
22977 || test ! -s conftest.err'
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22980 ac_status=$?
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; } &&
22983 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985 (eval $ac_try) 2>&5
22986 ac_status=$?
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; }; then
22989 ac_cv_lib_dnet_dnet_ntoa=yes
22990else
22991 echo "$as_me: failed program was:" >&5
22992sed 's/^/| /' conftest.$ac_ext >&5
22993
22994ac_cv_lib_dnet_dnet_ntoa=no
22995fi
eea650d8
VS
22996rm -f conftest.err conftest.$ac_objext \
22997 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22998LIBS=$ac_check_lib_save_LIBS
22999fi
23000echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23001echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23002if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 23003 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
23004fi
23005
90dd450c 23006 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23007 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23008echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23009if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23010 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23011else
e6cc62c6 23012 ac_check_lib_save_LIBS=$LIBS
90dd450c 23013LIBS="-ldnet_stub $LIBS"
e6cc62c6 23014cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23015/* confdefs.h. */
23016_ACEOF
23017cat confdefs.h >>conftest.$ac_ext
23018cat >>conftest.$ac_ext <<_ACEOF
23019/* end confdefs.h. */
23020
90dd450c 23021/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23022#ifdef __cplusplus
23023extern "C"
23024#endif
90dd450c 23025/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23026 builtin and then its argument prototype would still apply. */
23027char dnet_ntoa ();
23028int
23029main ()
23030{
23031dnet_ntoa ();
23032 ;
23033 return 0;
23034}
23035_ACEOF
23036rm -f conftest.$ac_objext conftest$ac_exeext
23037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23038 (eval $ac_link) 2>conftest.er1
e6cc62c6 23039 ac_status=$?
eea650d8
VS
23040 grep -v '^ *+' conftest.er1 >conftest.err
23041 rm -f conftest.er1
23042 cat conftest.err >&5
e6cc62c6
VS
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } &&
eea650d8
VS
23045 { ac_try='test -z "$ac_c_werror_flag"
23046 || test ! -s conftest.err'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; } &&
23052 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23059else
23060 echo "$as_me: failed program was:" >&5
23061sed 's/^/| /' conftest.$ac_ext >&5
23062
23063ac_cv_lib_dnet_stub_dnet_ntoa=no
23064fi
eea650d8
VS
23065rm -f conftest.err conftest.$ac_objext \
23066 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23067LIBS=$ac_check_lib_save_LIBS
23068fi
23069echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23070echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23071if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23072 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23073fi
23074
90dd450c 23075 fi
e6cc62c6 23076fi
eea650d8
VS
23077rm -f conftest.err conftest.$ac_objext \
23078 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23079 LIBS="$ac_xsave_LIBS"
978f1259 23080
90dd450c
VZ
23081 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23082 # to get the SysV transport functions.
e6cc62c6 23083 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23084 # needs -lnsl.
23085 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23086 # on Irix 5.2, according to T.E. Dickey.
23087 # The functions gethostbyname, getservbyname, and inet_addr are
23088 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23089 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23090echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23091if test "${ac_cv_func_gethostbyname+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23093else
23094 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23095/* confdefs.h. */
23096_ACEOF
23097cat confdefs.h >>conftest.$ac_ext
23098cat >>conftest.$ac_ext <<_ACEOF
23099/* end confdefs.h. */
eea650d8
VS
23100/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23102#define gethostbyname innocuous_gethostbyname
23103
90dd450c 23104/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23105 which can conflict with char gethostbyname (); below.
23106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23107 <limits.h> exists even on freestanding compilers. */
eea650d8 23108
e6cc62c6
VS
23109#ifdef __STDC__
23110# include <limits.h>
23111#else
23112# include <assert.h>
23113#endif
eea650d8
VS
23114
23115#undef gethostbyname
23116
90dd450c 23117/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23118#ifdef __cplusplus
23119extern "C"
23120{
23121#endif
90dd450c 23122/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23123 builtin and then its argument prototype would still apply. */
23124char gethostbyname ();
90dd450c
VZ
23125/* The GNU C library defines this for functions which it implements
23126 to always fail with ENOSYS. Some functions are actually named
23127 something starting with __ and the normal name is an alias. */
23128#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23129choke me
23130#else
e6cc62c6
VS
23131char (*f) () = gethostbyname;
23132#endif
23133#ifdef __cplusplus
23134}
90dd450c 23135#endif
978f1259 23136
e6cc62c6
VS
23137int
23138main ()
23139{
23140return f != gethostbyname;
23141 ;
23142 return 0;
23143}
23144_ACEOF
23145rm -f conftest.$ac_objext conftest$ac_exeext
23146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23147 (eval $ac_link) 2>conftest.er1
e6cc62c6 23148 ac_status=$?
eea650d8
VS
23149 grep -v '^ *+' conftest.er1 >conftest.err
23150 rm -f conftest.er1
23151 cat conftest.err >&5
e6cc62c6
VS
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
eea650d8
VS
23154 { ac_try='test -z "$ac_c_werror_flag"
23155 || test ! -s conftest.err'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ac_cv_func_gethostbyname=yes
23168else
23169 echo "$as_me: failed program was:" >&5
23170sed 's/^/| /' conftest.$ac_ext >&5
23171
23172ac_cv_func_gethostbyname=no
23173fi
eea650d8
VS
23174rm -f conftest.err conftest.$ac_objext \
23175 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23176fi
23177echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23178echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23179
90dd450c 23180 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23181 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23182echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23183if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23185else
e6cc62c6 23186 ac_check_lib_save_LIBS=$LIBS
90dd450c 23187LIBS="-lnsl $LIBS"
e6cc62c6 23188cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23189/* confdefs.h. */
23190_ACEOF
23191cat confdefs.h >>conftest.$ac_ext
23192cat >>conftest.$ac_ext <<_ACEOF
23193/* end confdefs.h. */
23194
90dd450c 23195/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23196#ifdef __cplusplus
23197extern "C"
23198#endif
90dd450c 23199/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23200 builtin and then its argument prototype would still apply. */
23201char gethostbyname ();
23202int
23203main ()
23204{
23205gethostbyname ();
23206 ;
23207 return 0;
23208}
23209_ACEOF
23210rm -f conftest.$ac_objext conftest$ac_exeext
23211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23212 (eval $ac_link) 2>conftest.er1
e6cc62c6 23213 ac_status=$?
eea650d8
VS
23214 grep -v '^ *+' conftest.er1 >conftest.err
23215 rm -f conftest.er1
23216 cat conftest.err >&5
e6cc62c6
VS
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } &&
eea650d8
VS
23219 { ac_try='test -z "$ac_c_werror_flag"
23220 || test ! -s conftest.err'
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23223 ac_status=$?
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_cv_lib_nsl_gethostbyname=yes
23233else
23234 echo "$as_me: failed program was:" >&5
23235sed 's/^/| /' conftest.$ac_ext >&5
23236
23237ac_cv_lib_nsl_gethostbyname=no
23238fi
eea650d8
VS
23239rm -f conftest.err conftest.$ac_objext \
23240 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23241LIBS=$ac_check_lib_save_LIBS
23242fi
23243echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23244echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23245if test $ac_cv_lib_nsl_gethostbyname = yes; then
23246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23247fi
247f5006 23248
e6cc62c6 23249 if test $ac_cv_lib_nsl_gethostbyname = no; then
eea650d8 23250 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23251echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23252if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23254else
e6cc62c6
VS
23255 ac_check_lib_save_LIBS=$LIBS
23256LIBS="-lbsd $LIBS"
23257cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23258/* confdefs.h. */
23259_ACEOF
23260cat confdefs.h >>conftest.$ac_ext
23261cat >>conftest.$ac_ext <<_ACEOF
23262/* end confdefs.h. */
23263
23264/* Override any gcc2 internal prototype to avoid an error. */
23265#ifdef __cplusplus
23266extern "C"
23267#endif
23268/* We use char because int might match the return type of a gcc2
23269 builtin and then its argument prototype would still apply. */
23270char gethostbyname ();
23271int
23272main ()
23273{
23274gethostbyname ();
23275 ;
23276 return 0;
23277}
23278_ACEOF
23279rm -f conftest.$ac_objext conftest$ac_exeext
23280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23281 (eval $ac_link) 2>conftest.er1
e6cc62c6 23282 ac_status=$?
eea650d8
VS
23283 grep -v '^ *+' conftest.er1 >conftest.err
23284 rm -f conftest.er1
23285 cat conftest.err >&5
e6cc62c6
VS
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } &&
eea650d8
VS
23288 { ac_try='test -z "$ac_c_werror_flag"
23289 || test ! -s conftest.err'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23292 ac_status=$?
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; } &&
23295 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297 (eval $ac_try) 2>&5
23298 ac_status=$?
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); }; }; then
23301 ac_cv_lib_bsd_gethostbyname=yes
23302else
23303 echo "$as_me: failed program was:" >&5
23304sed 's/^/| /' conftest.$ac_ext >&5
23305
23306ac_cv_lib_bsd_gethostbyname=no
23307fi
eea650d8
VS
23308rm -f conftest.err conftest.$ac_objext \
23309 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23310LIBS=$ac_check_lib_save_LIBS
23311fi
23312echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23313echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23314if test $ac_cv_lib_bsd_gethostbyname = yes; then
23315 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23316fi
b12915c1 23317
e6cc62c6 23318 fi
90dd450c
VZ
23319 fi
23320
23321 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23322 # socket/setsockopt and other routines are undefined under SCO ODT
23323 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23324 # on later versions), says Simon Leinen: it contains gethostby*
23325 # variants that don't use the name server (or something). -lsocket
23326 # must be given before -lnsl if both are needed. We assume that
23327 # if connect needs -lnsl, so does gethostbyname.
23328 echo "$as_me:$LINENO: checking for connect" >&5
23329echo $ECHO_N "checking for connect... $ECHO_C" >&6
23330if test "${ac_cv_func_connect+set}" = set; then
23331 echo $ECHO_N "(cached) $ECHO_C" >&6
23332else
23333 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23334/* confdefs.h. */
23335_ACEOF
23336cat confdefs.h >>conftest.$ac_ext
23337cat >>conftest.$ac_ext <<_ACEOF
23338/* end confdefs.h. */
eea650d8
VS
23339/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23341#define connect innocuous_connect
23342
90dd450c 23343/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23344 which can conflict with char connect (); below.
23345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23346 <limits.h> exists even on freestanding compilers. */
eea650d8 23347
e6cc62c6
VS
23348#ifdef __STDC__
23349# include <limits.h>
23350#else
23351# include <assert.h>
23352#endif
eea650d8
VS
23353
23354#undef connect
23355
90dd450c 23356/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23357#ifdef __cplusplus
23358extern "C"
23359{
23360#endif
90dd450c 23361/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23362 builtin and then its argument prototype would still apply. */
23363char connect ();
90dd450c
VZ
23364/* The GNU C library defines this for functions which it implements
23365 to always fail with ENOSYS. Some functions are actually named
23366 something starting with __ and the normal name is an alias. */
23367#if defined (__stub_connect) || defined (__stub___connect)
23368choke me
23369#else
e6cc62c6
VS
23370char (*f) () = connect;
23371#endif
23372#ifdef __cplusplus
23373}
90dd450c
VZ
23374#endif
23375
e6cc62c6
VS
23376int
23377main ()
23378{
23379return f != connect;
23380 ;
23381 return 0;
23382}
23383_ACEOF
23384rm -f conftest.$ac_objext conftest$ac_exeext
23385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23386 (eval $ac_link) 2>conftest.er1
e6cc62c6 23387 ac_status=$?
eea650d8
VS
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
e6cc62c6
VS
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
eea650d8
VS
23393 { ac_try='test -z "$ac_c_werror_flag"
23394 || test ! -s conftest.err'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_cv_func_connect=yes
23407else
23408 echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
23410
23411ac_cv_func_connect=no
23412fi
eea650d8
VS
23413rm -f conftest.err conftest.$ac_objext \
23414 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23415fi
23416echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23417echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 23418
90dd450c 23419 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23420 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23421echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23422if test "${ac_cv_lib_socket_connect+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23424else
e6cc62c6 23425 ac_check_lib_save_LIBS=$LIBS
90dd450c 23426LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 23427cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23428/* confdefs.h. */
23429_ACEOF
23430cat confdefs.h >>conftest.$ac_ext
23431cat >>conftest.$ac_ext <<_ACEOF
23432/* end confdefs.h. */
23433
90dd450c 23434/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23435#ifdef __cplusplus
23436extern "C"
23437#endif
90dd450c 23438/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23439 builtin and then its argument prototype would still apply. */
23440char connect ();
23441int
23442main ()
23443{
23444connect ();
23445 ;
23446 return 0;
23447}
23448_ACEOF
23449rm -f conftest.$ac_objext conftest$ac_exeext
23450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23451 (eval $ac_link) 2>conftest.er1
e6cc62c6 23452 ac_status=$?
eea650d8
VS
23453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
e6cc62c6
VS
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } &&
eea650d8
VS
23458 { ac_try='test -z "$ac_c_werror_flag"
23459 || test ! -s conftest.err'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; } &&
23465 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_lib_socket_connect=yes
23472else
23473 echo "$as_me: failed program was:" >&5
23474sed 's/^/| /' conftest.$ac_ext >&5
23475
23476ac_cv_lib_socket_connect=no
23477fi
eea650d8
VS
23478rm -f conftest.err conftest.$ac_objext \
23479 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23480LIBS=$ac_check_lib_save_LIBS
23481fi
23482echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23483echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23484if test $ac_cv_lib_socket_connect = yes; then
90dd450c 23485 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 23486fi
77e13408 23487
90dd450c 23488 fi
25d0687a 23489
e6cc62c6
VS
23490 # Guillermo Gomez says -lposix is necessary on A/UX.
23491 echo "$as_me:$LINENO: checking for remove" >&5
23492echo $ECHO_N "checking for remove... $ECHO_C" >&6
23493if test "${ac_cv_func_remove+set}" = set; then
23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23495else
23496 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23497/* confdefs.h. */
23498_ACEOF
23499cat confdefs.h >>conftest.$ac_ext
23500cat >>conftest.$ac_ext <<_ACEOF
23501/* end confdefs.h. */
eea650d8
VS
23502/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23504#define remove innocuous_remove
23505
90dd450c 23506/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23507 which can conflict with char remove (); below.
23508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23509 <limits.h> exists even on freestanding compilers. */
eea650d8 23510
e6cc62c6
VS
23511#ifdef __STDC__
23512# include <limits.h>
23513#else
23514# include <assert.h>
23515#endif
eea650d8
VS
23516
23517#undef remove
23518
90dd450c 23519/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23520#ifdef __cplusplus
23521extern "C"
23522{
23523#endif
90dd450c 23524/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23525 builtin and then its argument prototype would still apply. */
23526char remove ();
90dd450c
VZ
23527/* The GNU C library defines this for functions which it implements
23528 to always fail with ENOSYS. Some functions are actually named
23529 something starting with __ and the normal name is an alias. */
23530#if defined (__stub_remove) || defined (__stub___remove)
23531choke me
23532#else
e6cc62c6
VS
23533char (*f) () = remove;
23534#endif
23535#ifdef __cplusplus
23536}
90dd450c 23537#endif
55e80573 23538
e6cc62c6
VS
23539int
23540main ()
23541{
23542return f != remove;
23543 ;
23544 return 0;
23545}
23546_ACEOF
23547rm -f conftest.$ac_objext conftest$ac_exeext
23548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23549 (eval $ac_link) 2>conftest.er1
e6cc62c6 23550 ac_status=$?
eea650d8
VS
23551 grep -v '^ *+' conftest.er1 >conftest.err
23552 rm -f conftest.er1
23553 cat conftest.err >&5
e6cc62c6
VS
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } &&
eea650d8
VS
23556 { ac_try='test -z "$ac_c_werror_flag"
23557 || test ! -s conftest.err'
23558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23560 ac_status=$?
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; } &&
23563 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; }; then
23569 ac_cv_func_remove=yes
23570else
23571 echo "$as_me: failed program was:" >&5
23572sed 's/^/| /' conftest.$ac_ext >&5
23573
23574ac_cv_func_remove=no
23575fi
eea650d8
VS
23576rm -f conftest.err conftest.$ac_objext \
23577 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23578fi
23579echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23580echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 23581
90dd450c 23582 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23583 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23584echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23585if test "${ac_cv_lib_posix_remove+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23587else
e6cc62c6 23588 ac_check_lib_save_LIBS=$LIBS
90dd450c 23589LIBS="-lposix $LIBS"
e6cc62c6 23590cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
23595/* end confdefs.h. */
23596
90dd450c 23597/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23598#ifdef __cplusplus
23599extern "C"
23600#endif
90dd450c 23601/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23602 builtin and then its argument prototype would still apply. */
23603char remove ();
23604int
23605main ()
23606{
23607remove ();
23608 ;
23609 return 0;
23610}
23611_ACEOF
23612rm -f conftest.$ac_objext conftest$ac_exeext
23613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23614 (eval $ac_link) 2>conftest.er1
e6cc62c6 23615 ac_status=$?
eea650d8
VS
23616 grep -v '^ *+' conftest.er1 >conftest.err
23617 rm -f conftest.er1
23618 cat conftest.err >&5
e6cc62c6
VS
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); } &&
eea650d8
VS
23621 { ac_try='test -z "$ac_c_werror_flag"
23622 || test ! -s conftest.err'
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; } &&
23628 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_cv_lib_posix_remove=yes
23635else
23636 echo "$as_me: failed program was:" >&5
23637sed 's/^/| /' conftest.$ac_ext >&5
23638
23639ac_cv_lib_posix_remove=no
23640fi
eea650d8
VS
23641rm -f conftest.err conftest.$ac_objext \
23642 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23643LIBS=$ac_check_lib_save_LIBS
23644fi
23645echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23646echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23647if test $ac_cv_lib_posix_remove = yes; then
90dd450c 23648 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 23649fi
f6bcfd97 23650
6fa882bd
RR
23651 fi
23652
90dd450c 23653 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23654 echo "$as_me:$LINENO: checking for shmat" >&5
23655echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23656if test "${ac_cv_func_shmat+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23658else
23659 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23660/* confdefs.h. */
23661_ACEOF
23662cat confdefs.h >>conftest.$ac_ext
23663cat >>conftest.$ac_ext <<_ACEOF
23664/* end confdefs.h. */
eea650d8
VS
23665/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23667#define shmat innocuous_shmat
23668
90dd450c 23669/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23670 which can conflict with char shmat (); below.
23671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23672 <limits.h> exists even on freestanding compilers. */
eea650d8 23673
e6cc62c6
VS
23674#ifdef __STDC__
23675# include <limits.h>
23676#else
23677# include <assert.h>
23678#endif
eea650d8
VS
23679
23680#undef shmat
23681
90dd450c 23682/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23683#ifdef __cplusplus
23684extern "C"
23685{
23686#endif
90dd450c 23687/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23688 builtin and then its argument prototype would still apply. */
23689char shmat ();
90dd450c
VZ
23690/* The GNU C library defines this for functions which it implements
23691 to always fail with ENOSYS. Some functions are actually named
23692 something starting with __ and the normal name is an alias. */
23693#if defined (__stub_shmat) || defined (__stub___shmat)
23694choke me
23695#else
e6cc62c6
VS
23696char (*f) () = shmat;
23697#endif
23698#ifdef __cplusplus
23699}
90dd450c 23700#endif
10f2d63a 23701
e6cc62c6
VS
23702int
23703main ()
23704{
23705return f != shmat;
23706 ;
23707 return 0;
23708}
23709_ACEOF
23710rm -f conftest.$ac_objext conftest$ac_exeext
23711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23712 (eval $ac_link) 2>conftest.er1
e6cc62c6 23713 ac_status=$?
eea650d8
VS
23714 grep -v '^ *+' conftest.er1 >conftest.err
23715 rm -f conftest.er1
23716 cat conftest.err >&5
e6cc62c6
VS
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } &&
eea650d8
VS
23719 { ac_try='test -z "$ac_c_werror_flag"
23720 || test ! -s conftest.err'
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); }; } &&
23726 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 ac_cv_func_shmat=yes
23733else
23734 echo "$as_me: failed program was:" >&5
23735sed 's/^/| /' conftest.$ac_ext >&5
23736
23737ac_cv_func_shmat=no
23738fi
eea650d8
VS
23739rm -f conftest.err conftest.$ac_objext \
23740 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23741fi
23742echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23743echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 23744
90dd450c 23745 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23746 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23747echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23748if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 23750else
e6cc62c6 23751 ac_check_lib_save_LIBS=$LIBS
90dd450c 23752LIBS="-lipc $LIBS"
e6cc62c6 23753cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23754/* confdefs.h. */
23755_ACEOF
23756cat confdefs.h >>conftest.$ac_ext
23757cat >>conftest.$ac_ext <<_ACEOF
23758/* end confdefs.h. */
23759
8284b0c5 23760/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23761#ifdef __cplusplus
23762extern "C"
23763#endif
90dd450c 23764/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23765 builtin and then its argument prototype would still apply. */
23766char shmat ();
23767int
23768main ()
23769{
23770shmat ();
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext conftest$ac_exeext
23776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23777 (eval $ac_link) 2>conftest.er1
e6cc62c6 23778 ac_status=$?
eea650d8
VS
23779 grep -v '^ *+' conftest.er1 >conftest.err
23780 rm -f conftest.er1
23781 cat conftest.err >&5
e6cc62c6
VS
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } &&
eea650d8
VS
23784 { ac_try='test -z "$ac_c_werror_flag"
23785 || test ! -s conftest.err'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; } &&
23791 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 ac_cv_lib_ipc_shmat=yes
23798else
23799 echo "$as_me: failed program was:" >&5
23800sed 's/^/| /' conftest.$ac_ext >&5
23801
23802ac_cv_lib_ipc_shmat=no
23803fi
eea650d8
VS
23804rm -f conftest.err conftest.$ac_objext \
23805 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23806LIBS=$ac_check_lib_save_LIBS
23807fi
23808echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23809echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23810if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 23811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
23812fi
23813
d558c907 23814 fi
90dd450c 23815 fi
3a922bb4 23816
90dd450c 23817 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23818 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
23819 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23820 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23821 # check for ICE first), but we must link in the order -lSM -lICE or
23822 # we get undefined symbols. So assume we have SM if we have ICE.
23823 # These have to be linked with before -lX11, unlike the other
23824 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23825 # John Interrante, Karl Berry
23826 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23827echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23828if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23830else
23831 ac_check_lib_save_LIBS=$LIBS
f09359cf 23832LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23833cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23834/* confdefs.h. */
23835_ACEOF
23836cat confdefs.h >>conftest.$ac_ext
23837cat >>conftest.$ac_ext <<_ACEOF
23838/* end confdefs.h. */
23839
90dd450c 23840/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23841#ifdef __cplusplus
23842extern "C"
23843#endif
90dd450c 23844/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23845 builtin and then its argument prototype would still apply. */
23846char IceConnectionNumber ();
23847int
23848main ()
23849{
23850IceConnectionNumber ();
23851 ;
23852 return 0;
23853}
23854_ACEOF
23855rm -f conftest.$ac_objext conftest$ac_exeext
23856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23857 (eval $ac_link) 2>conftest.er1
e6cc62c6 23858 ac_status=$?
eea650d8
VS
23859 grep -v '^ *+' conftest.er1 >conftest.err
23860 rm -f conftest.er1
23861 cat conftest.err >&5
e6cc62c6
VS
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } &&
eea650d8
VS
23864 { ac_try='test -z "$ac_c_werror_flag"
23865 || test ! -s conftest.err'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23877 ac_cv_lib_ICE_IceConnectionNumber=yes
23878else
23879 echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882ac_cv_lib_ICE_IceConnectionNumber=no
23883fi
eea650d8
VS
23884rm -f conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23886LIBS=$ac_check_lib_save_LIBS
23887fi
23888echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23889echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23890if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 23891 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 23892fi
10f2d63a 23893
e6cc62c6 23894 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
23895
23896fi
23897
8284b0c5 23898
90dd450c 23899 if test "$no_x" = "yes"; then
e6cc62c6
VS
23900 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23901echo "$as_me: error: X11 not found" >&2;}
23902 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
23903 fi
23904
23905 GUI_TK_LIBRARY="$X_LIBS"
23906 TOOLKIT_INCLUDE="$X_CFLAGS"
23907 AFMINSTALL=afminstall
23908 COMPILED_X_PROGRAM=0
23909
21d1c967 23910 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
23911 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23912echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 23913 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
23914 echo "$as_me:$LINENO: result: not found" >&5
23915echo "${ECHO_T}not found" >&6
23916 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23917echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23918 { (exit 1); exit 1; }; }
90dd450c 23919 else
e6cc62c6
VS
23920 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23921echo "${ECHO_T}$MICROWIN" >&6
23922 cat >>confdefs.h <<\_ACEOF
21d1c967 23923#define wxUSE_NANOX 1
e6cc62c6 23924_ACEOF
21d1c967 23925
90dd450c
VZ
23926 fi
23927 fi
23928
2b5f62a0 23929 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 23930
2b5f62a0 23931 succeeded=no
90dd450c 23932
2b5f62a0
VZ
23933 if test -z "$PKG_CONFIG"; then
23934 # Extract the first word of "pkg-config", so it can be a program name with args.
23935set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23936echo "$as_me:$LINENO: checking for $ac_word" >&5
23937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23938if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23940else
e6cc62c6
VS
23941 case $PKG_CONFIG in
23942 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23944 ;;
2b5f62a0 23945 *)
e6cc62c6
VS
23946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23947for as_dir in $PATH
23948do
23949 IFS=$as_save_IFS
23950 test -z "$as_dir" && as_dir=.
23951 for ac_exec_ext in '' $ac_executable_extensions; do
23952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23955 break 2
23956 fi
23957done
23958done
23959
2b5f62a0
VZ
23960 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23961 ;;
23962esac
23963fi
e6cc62c6
VS
23964PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23965
2b5f62a0 23966if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23967 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23968echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23969else
e6cc62c6
VS
23970 echo "$as_me:$LINENO: result: no" >&5
23971echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23972fi
23973
23974 fi
23975
23976 if test "$PKG_CONFIG" = "no" ; then
23977 echo "*** The pkg-config script could not be found. Make sure it is"
23978 echo "*** in your path, or set the PKG_CONFIG environment variable"
23979 echo "*** to the full path to pkg-config."
23980 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23981 else
23982 PKG_CONFIG_MIN_VERSION=0.9.0
23983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23984 echo "$as_me:$LINENO: checking for pangox" >&5
23985echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
23986
23987 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
23988 echo "$as_me:$LINENO: result: yes" >&5
23989echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23990 succeeded=yes
23991
e6cc62c6
VS
23992 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23993echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 23994 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
23995 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23996echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 23997
e6cc62c6
VS
23998 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23999echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 24000 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
24001 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24002echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
24003 else
24004 PANGOX_CFLAGS=""
24005 PANGOX_LIBS=""
e6cc62c6 24006 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24007 ## do set a variable so people can do so.
24008 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24009
2b5f62a0
VZ
24010 fi
24011
e6cc62c6
VS
24012
24013
2b5f62a0
VZ
24014 else
24015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24017 fi
24018 fi
24019
24020 if test $succeeded = yes; then
e6cc62c6 24021
2b5f62a0 24022 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24023 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24024
2b5f62a0 24025 else
e6cc62c6
VS
24026
24027 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24028echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24029 { (exit 1); exit 1; }; }
24030
24031
2b5f62a0
VZ
24032 fi
24033
e6cc62c6 24034
2b5f62a0
VZ
24035 succeeded=no
24036
24037 if test -z "$PKG_CONFIG"; then
24038 # Extract the first word of "pkg-config", so it can be a program name with args.
24039set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24040echo "$as_me:$LINENO: checking for $ac_word" >&5
24041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24042if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24044else
e6cc62c6
VS
24045 case $PKG_CONFIG in
24046 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24047 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24048 ;;
2b5f62a0 24049 *)
e6cc62c6
VS
24050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24051for as_dir in $PATH
24052do
24053 IFS=$as_save_IFS
24054 test -z "$as_dir" && as_dir=.
24055 for ac_exec_ext in '' $ac_executable_extensions; do
24056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24057 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24059 break 2
24060 fi
24061done
24062done
24063
2b5f62a0
VZ
24064 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24065 ;;
24066esac
24067fi
e6cc62c6
VS
24068PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24069
2b5f62a0 24070if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24071 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24072echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24073else
e6cc62c6
VS
24074 echo "$as_me:$LINENO: result: no" >&5
24075echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24076fi
24077
24078 fi
24079
24080 if test "$PKG_CONFIG" = "no" ; then
24081 echo "*** The pkg-config script could not be found. Make sure it is"
24082 echo "*** in your path, or set the PKG_CONFIG environment variable"
24083 echo "*** to the full path to pkg-config."
24084 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24085 else
24086 PKG_CONFIG_MIN_VERSION=0.9.0
24087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24088 echo "$as_me:$LINENO: checking for pangoft2" >&5
24089echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24090
24091 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24092 echo "$as_me:$LINENO: result: yes" >&5
24093echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24094 succeeded=yes
24095
e6cc62c6
VS
24096 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24097echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24098 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24099 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24100echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24101
e6cc62c6
VS
24102 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24103echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24104 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24105 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24106echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24107 else
24108 PANGOFT2_CFLAGS=""
24109 PANGOFT2_LIBS=""
e6cc62c6 24110 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24111 ## do set a variable so people can do so.
24112 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24113
2b5f62a0
VZ
24114 fi
24115
e6cc62c6
VS
24116
24117
2b5f62a0
VZ
24118 else
24119 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24120 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24121 fi
24122 fi
24123
24124 if test $succeeded = yes; then
e6cc62c6 24125
2b5f62a0 24126 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24127 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24128
2b5f62a0 24129 else
e6cc62c6
VS
24130
24131 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24132echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24133 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24134
24135
2b5f62a0
VZ
24136 fi
24137
e6cc62c6 24138
2b5f62a0
VZ
24139 succeeded=no
24140
24141 if test -z "$PKG_CONFIG"; then
24142 # Extract the first word of "pkg-config", so it can be a program name with args.
24143set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24144echo "$as_me:$LINENO: checking for $ac_word" >&5
24145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24146if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24148else
e6cc62c6
VS
24149 case $PKG_CONFIG in
24150 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24152 ;;
2b5f62a0 24153 *)
e6cc62c6
VS
24154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24155for as_dir in $PATH
24156do
24157 IFS=$as_save_IFS
24158 test -z "$as_dir" && as_dir=.
24159 for ac_exec_ext in '' $ac_executable_extensions; do
24160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24163 break 2
24164 fi
24165done
24166done
24167
2b5f62a0
VZ
24168 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24169 ;;
24170esac
24171fi
e6cc62c6
VS
24172PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24173
2b5f62a0 24174if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24175 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24176echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24177else
e6cc62c6
VS
24178 echo "$as_me:$LINENO: result: no" >&5
24179echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24180fi
24181
24182 fi
24183
24184 if test "$PKG_CONFIG" = "no" ; then
24185 echo "*** The pkg-config script could not be found. Make sure it is"
24186 echo "*** in your path, or set the PKG_CONFIG environment variable"
24187 echo "*** to the full path to pkg-config."
24188 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24189 else
24190 PKG_CONFIG_MIN_VERSION=0.9.0
24191 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24192 echo "$as_me:$LINENO: checking for pangoxft" >&5
24193echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24194
24195 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24196 echo "$as_me:$LINENO: result: yes" >&5
24197echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24198 succeeded=yes
24199
e6cc62c6
VS
24200 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24201echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24202 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24203 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24204echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24205
e6cc62c6
VS
24206 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24207echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24208 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24209 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24210echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24211 else
24212 PANGOXFT_CFLAGS=""
24213 PANGOXFT_LIBS=""
e6cc62c6 24214 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24215 ## do set a variable so people can do so.
24216 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24217
2b5f62a0
VZ
24218 fi
24219
e6cc62c6
VS
24220
24221
2b5f62a0
VZ
24222 else
24223 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24224 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24225 fi
24226 fi
24227
24228 if test $succeeded = yes; then
e6cc62c6 24229
2b5f62a0 24230 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24231 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24232
2b5f62a0 24233 else
e6cc62c6
VS
24234
24235 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24236echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24237
24238
2b5f62a0
VZ
24239 fi
24240
24241 fi
24242
24243 wxUSE_UNIVERSAL="yes"
24244
24245 if test "$wxUSE_NANOX" = "yes"; then
24246 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24247 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
24248 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24249 else
93a543aa 24250 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24251 fi
24252
24253 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24254 TOOLKIT=X11
24255 GUIDIST=X11_DIST
24256 fi
24257
21d1c967
GD
24258 if test "$wxUSE_MOTIF" = 1; then
24259 if test "$no_x" = yes; then
24260 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24261
24262cat >>confdefs.h <<\_ACEOF
21d1c967 24263#define X_DISPLAY_MISSING 1
e6cc62c6 24264_ACEOF
21d1c967
GD
24265
24266 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24267else
24268 if test -n "$x_includes"; then
24269 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24270 fi
24271
21d1c967
GD
24272 # It would also be nice to do this for all -L options, not just this one.
24273 if test -n "$x_libraries"; then
24274 X_LIBS="$X_LIBS -L$x_libraries"
24275 # For Solaris; some versions of Sun CC require a space after -R and
24276 # others require no space. Words are not sufficient . . . .
e6cc62c6 24277 case `(uname -sr) 2>/dev/null` in
21d1c967 24278 "SunOS 5"*)
e6cc62c6
VS
24279 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24280echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24281 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24282 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24283/* confdefs.h. */
24284_ACEOF
24285cat confdefs.h >>conftest.$ac_ext
24286cat >>conftest.$ac_ext <<_ACEOF
24287/* end confdefs.h. */
24288
24289int
24290main ()
24291{
21d1c967 24292
e6cc62c6
VS
24293 ;
24294 return 0;
24295}
24296_ACEOF
24297rm -f conftest.$ac_objext conftest$ac_exeext
24298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24299 (eval $ac_link) 2>conftest.er1
e6cc62c6 24300 ac_status=$?
eea650d8
VS
24301 grep -v '^ *+' conftest.er1 >conftest.err
24302 rm -f conftest.er1
24303 cat conftest.err >&5
e6cc62c6
VS
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } &&
eea650d8
VS
24306 { ac_try='test -z "$ac_c_werror_flag"
24307 || test ! -s conftest.err'
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; } &&
24313 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; }; then
21d1c967 24319 ac_R_nospace=yes
698dcdb6 24320else
e6cc62c6
VS
24321 echo "$as_me: failed program was:" >&5
24322sed 's/^/| /' conftest.$ac_ext >&5
24323
24324ac_R_nospace=no
10f2d63a 24325fi
eea650d8
VS
24326rm -f conftest.err conftest.$ac_objext \
24327 conftest$ac_exeext conftest.$ac_ext
21d1c967 24328 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24329 echo "$as_me:$LINENO: result: no" >&5
24330echo "${ECHO_T}no" >&6
21d1c967
GD
24331 X_LIBS="$X_LIBS -R$x_libraries"
24332 else
24333 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24334 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24335/* confdefs.h. */
24336_ACEOF
24337cat confdefs.h >>conftest.$ac_ext
24338cat >>conftest.$ac_ext <<_ACEOF
24339/* end confdefs.h. */
24340
24341int
24342main ()
24343{
f0c87536 24344
e6cc62c6
VS
24345 ;
24346 return 0;
24347}
24348_ACEOF
24349rm -f conftest.$ac_objext conftest$ac_exeext
24350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24351 (eval $ac_link) 2>conftest.er1
e6cc62c6 24352 ac_status=$?
eea650d8
VS
24353 grep -v '^ *+' conftest.er1 >conftest.err
24354 rm -f conftest.er1
24355 cat conftest.err >&5
e6cc62c6
VS
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } &&
eea650d8
VS
24358 { ac_try='test -z "$ac_c_werror_flag"
24359 || test ! -s conftest.err'
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
21d1c967
GD
24371 ac_R_space=yes
24372else
e6cc62c6
VS
24373 echo "$as_me: failed program was:" >&5
24374sed 's/^/| /' conftest.$ac_ext >&5
24375
24376ac_R_space=no
21d1c967 24377fi
eea650d8
VS
24378rm -f conftest.err conftest.$ac_objext \
24379 conftest$ac_exeext conftest.$ac_ext
21d1c967 24380 if test $ac_R_space = yes; then
e6cc62c6
VS
24381 echo "$as_me:$LINENO: result: yes" >&5
24382echo "${ECHO_T}yes" >&6
21d1c967
GD
24383 X_LIBS="$X_LIBS -R $x_libraries"
24384 else
e6cc62c6
VS
24385 echo "$as_me:$LINENO: result: neither works" >&5
24386echo "${ECHO_T}neither works" >&6
21d1c967
GD
24387 fi
24388 fi
e6cc62c6 24389 LIBS=$ac_xsave_LIBS
21d1c967
GD
24390 esac
24391 fi
90dd450c 24392
21d1c967
GD
24393 # Check for system-dependent libraries X programs must link with.
24394 # Do this before checking for the system-independent R6 libraries
24395 # (-lICE), since we may need -lsocket or whatever for X linking.
24396
24397 if test "$ISC" = yes; then
24398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24399 else
e6cc62c6
VS
24400 # Martyn Johnson says this is needed for Ultrix, if the X
24401 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24402 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24403 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24404 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24405/* confdefs.h. */
24406_ACEOF
24407cat confdefs.h >>conftest.$ac_ext
24408cat >>conftest.$ac_ext <<_ACEOF
24409/* end confdefs.h. */
24410
247f5006 24411/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24412#ifdef __cplusplus
24413extern "C"
24414#endif
247f5006 24415/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24416 builtin and then its argument prototype would still apply. */
24417char XOpenDisplay ();
24418int
24419main ()
24420{
24421XOpenDisplay ();
24422 ;
24423 return 0;
24424}
24425_ACEOF
24426rm -f conftest.$ac_objext conftest$ac_exeext
24427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24428 (eval $ac_link) 2>conftest.er1
e6cc62c6 24429 ac_status=$?
eea650d8
VS
24430 grep -v '^ *+' conftest.er1 >conftest.err
24431 rm -f conftest.er1
24432 cat conftest.err >&5
e6cc62c6
VS
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } &&
eea650d8
VS
24435 { ac_try='test -z "$ac_c_werror_flag"
24436 || test ! -s conftest.err'
24437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438 (eval $ac_try) 2>&5
24439 ac_status=$?
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; } &&
24442 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24445 ac_status=$?
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; }; then
24448 :
24449else
24450 echo "$as_me: failed program was:" >&5
24451sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 24452
e6cc62c6
VS
24453echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24454echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24455if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24456 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24457else
e6cc62c6
VS
24458 ac_check_lib_save_LIBS=$LIBS
24459LIBS="-ldnet $LIBS"
24460cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24461/* confdefs.h. */
24462_ACEOF
24463cat confdefs.h >>conftest.$ac_ext
24464cat >>conftest.$ac_ext <<_ACEOF
24465/* end confdefs.h. */
a0b9e27f 24466
e6cc62c6
VS
24467/* Override any gcc2 internal prototype to avoid an error. */
24468#ifdef __cplusplus
24469extern "C"
24470#endif
24471/* We use char because int might match the return type of a gcc2
24472 builtin and then its argument prototype would still apply. */
24473char dnet_ntoa ();
24474int
24475main ()
24476{
24477dnet_ntoa ();
24478 ;
24479 return 0;
24480}
24481_ACEOF
24482rm -f conftest.$ac_objext conftest$ac_exeext
24483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24484 (eval $ac_link) 2>conftest.er1
e6cc62c6 24485 ac_status=$?
eea650d8
VS
24486 grep -v '^ *+' conftest.er1 >conftest.err
24487 rm -f conftest.er1
24488 cat conftest.err >&5
e6cc62c6
VS
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); } &&
eea650d8
VS
24491 { ac_try='test -z "$ac_c_werror_flag"
24492 || test ! -s conftest.err'
24493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; } &&
24498 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; }; then
24504 ac_cv_lib_dnet_dnet_ntoa=yes
24505else
24506 echo "$as_me: failed program was:" >&5
24507sed 's/^/| /' conftest.$ac_ext >&5
24508
24509ac_cv_lib_dnet_dnet_ntoa=no
24510fi
eea650d8
VS
24511rm -f conftest.err conftest.$ac_objext \
24512 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24513LIBS=$ac_check_lib_save_LIBS
24514fi
24515echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24516echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24517if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 24518 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 24519fi
0fb0dd83 24520
21d1c967 24521 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
24522 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24523echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24524if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24526else
e6cc62c6 24527 ac_check_lib_save_LIBS=$LIBS
21d1c967 24528LIBS="-ldnet_stub $LIBS"
e6cc62c6 24529cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24530/* confdefs.h. */
24531_ACEOF
24532cat confdefs.h >>conftest.$ac_ext
24533cat >>conftest.$ac_ext <<_ACEOF
24534/* end confdefs.h. */
24535
21d1c967 24536/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24537#ifdef __cplusplus
24538extern "C"
24539#endif
21d1c967 24540/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24541 builtin and then its argument prototype would still apply. */
24542char dnet_ntoa ();
24543int
24544main ()
24545{
24546dnet_ntoa ();
24547 ;
24548 return 0;
24549}
24550_ACEOF
24551rm -f conftest.$ac_objext conftest$ac_exeext
24552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24553 (eval $ac_link) 2>conftest.er1
e6cc62c6 24554 ac_status=$?
eea650d8
VS
24555 grep -v '^ *+' conftest.er1 >conftest.err
24556 rm -f conftest.er1
24557 cat conftest.err >&5
e6cc62c6
VS
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } &&
eea650d8
VS
24560 { ac_try='test -z "$ac_c_werror_flag"
24561 || test ! -s conftest.err'
24562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563 (eval $ac_try) 2>&5
24564 ac_status=$?
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); }; } &&
24567 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24569 (eval $ac_try) 2>&5
24570 ac_status=$?
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); }; }; then
24573 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24574else
24575 echo "$as_me: failed program was:" >&5
24576sed 's/^/| /' conftest.$ac_ext >&5
24577
24578ac_cv_lib_dnet_stub_dnet_ntoa=no
24579fi
eea650d8
VS
24580rm -f conftest.err conftest.$ac_objext \
24581 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24582LIBS=$ac_check_lib_save_LIBS
24583fi
24584echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24585echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24586if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 24587 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
24588fi
24589
21d1c967 24590 fi
e6cc62c6 24591fi
eea650d8
VS
24592rm -f conftest.err conftest.$ac_objext \
24593 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 24594 LIBS="$ac_xsave_LIBS"
90dd450c 24595
21d1c967
GD
24596 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24597 # to get the SysV transport functions.
e6cc62c6 24598 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
24599 # needs -lnsl.
24600 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
24601 # on Irix 5.2, according to T.E. Dickey.
24602 # The functions gethostbyname, getservbyname, and inet_addr are
24603 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24604 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24605echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24606if test "${ac_cv_func_gethostbyname+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24608else
24609 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24610/* confdefs.h. */
24611_ACEOF
24612cat confdefs.h >>conftest.$ac_ext
24613cat >>conftest.$ac_ext <<_ACEOF
24614/* end confdefs.h. */
eea650d8
VS
24615/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24617#define gethostbyname innocuous_gethostbyname
24618
21d1c967 24619/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24620 which can conflict with char gethostbyname (); below.
24621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24622 <limits.h> exists even on freestanding compilers. */
eea650d8 24623
e6cc62c6
VS
24624#ifdef __STDC__
24625# include <limits.h>
24626#else
24627# include <assert.h>
24628#endif
eea650d8
VS
24629
24630#undef gethostbyname
24631
21d1c967 24632/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24633#ifdef __cplusplus
24634extern "C"
24635{
24636#endif
21d1c967 24637/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24638 builtin and then its argument prototype would still apply. */
24639char gethostbyname ();
21d1c967
GD
24640/* The GNU C library defines this for functions which it implements
24641 to always fail with ENOSYS. Some functions are actually named
24642 something starting with __ and the normal name is an alias. */
24643#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24644choke me
24645#else
e6cc62c6
VS
24646char (*f) () = gethostbyname;
24647#endif
24648#ifdef __cplusplus
24649}
21d1c967 24650#endif
90dd450c 24651
e6cc62c6
VS
24652int
24653main ()
24654{
24655return f != gethostbyname;
24656 ;
24657 return 0;
24658}
24659_ACEOF
24660rm -f conftest.$ac_objext conftest$ac_exeext
24661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24662 (eval $ac_link) 2>conftest.er1
e6cc62c6 24663 ac_status=$?
eea650d8
VS
24664 grep -v '^ *+' conftest.er1 >conftest.err
24665 rm -f conftest.er1
24666 cat conftest.err >&5
e6cc62c6
VS
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } &&
eea650d8
VS
24669 { ac_try='test -z "$ac_c_werror_flag"
24670 || test ! -s conftest.err'
24671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672 (eval $ac_try) 2>&5
24673 ac_status=$?
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; } &&
24676 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24678 (eval $ac_try) 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; }; then
24682 ac_cv_func_gethostbyname=yes
24683else
24684 echo "$as_me: failed program was:" >&5
24685sed 's/^/| /' conftest.$ac_ext >&5
24686
24687ac_cv_func_gethostbyname=no
24688fi
eea650d8
VS
24689rm -f conftest.err conftest.$ac_objext \
24690 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24691fi
24692echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24693echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 24694
21d1c967 24695 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
24696 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24697echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24698if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24700else
e6cc62c6 24701 ac_check_lib_save_LIBS=$LIBS
21d1c967 24702LIBS="-lnsl $LIBS"
e6cc62c6 24703cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709
21d1c967 24710/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24711#ifdef __cplusplus
24712extern "C"
24713#endif
21d1c967 24714/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24715 builtin and then its argument prototype would still apply. */
24716char gethostbyname ();
24717int
24718main ()
24719{
24720gethostbyname ();
24721 ;
24722 return 0;
24723}
24724_ACEOF
24725rm -f conftest.$ac_objext conftest$ac_exeext
24726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24727 (eval $ac_link) 2>conftest.er1
e6cc62c6 24728 ac_status=$?
eea650d8
VS
24729 grep -v '^ *+' conftest.er1 >conftest.err
24730 rm -f conftest.er1
24731 cat conftest.err >&5
e6cc62c6
VS
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } &&
eea650d8
VS
24734 { ac_try='test -z "$ac_c_werror_flag"
24735 || test ! -s conftest.err'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; } &&
24741 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
24747 ac_cv_lib_nsl_gethostbyname=yes
24748else
24749 echo "$as_me: failed program was:" >&5
24750sed 's/^/| /' conftest.$ac_ext >&5
24751
24752ac_cv_lib_nsl_gethostbyname=no
24753fi
eea650d8
VS
24754rm -f conftest.err conftest.$ac_objext \
24755 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24756LIBS=$ac_check_lib_save_LIBS
24757fi
24758echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24759echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24760if test $ac_cv_lib_nsl_gethostbyname = yes; then
24761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 24762fi
247f5006 24763
e6cc62c6 24764 if test $ac_cv_lib_nsl_gethostbyname = no; then
eea650d8 24765 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
24766echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24767if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24768 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24769else
e6cc62c6
VS
24770 ac_check_lib_save_LIBS=$LIBS
24771LIBS="-lbsd $LIBS"
24772cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24773/* confdefs.h. */
24774_ACEOF
24775cat confdefs.h >>conftest.$ac_ext
24776cat >>conftest.$ac_ext <<_ACEOF
24777/* end confdefs.h. */
24778
24779/* Override any gcc2 internal prototype to avoid an error. */
24780#ifdef __cplusplus
24781extern "C"
24782#endif
24783/* We use char because int might match the return type of a gcc2
24784 builtin and then its argument prototype would still apply. */
24785char gethostbyname ();
24786int
24787main ()
24788{
24789gethostbyname ();
24790 ;
24791 return 0;
24792}
24793_ACEOF
24794rm -f conftest.$ac_objext conftest$ac_exeext
24795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24796 (eval $ac_link) 2>conftest.er1
e6cc62c6 24797 ac_status=$?
eea650d8
VS
24798 grep -v '^ *+' conftest.er1 >conftest.err
24799 rm -f conftest.er1
24800 cat conftest.err >&5
e6cc62c6
VS
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } &&
eea650d8
VS
24803 { ac_try='test -z "$ac_c_werror_flag"
24804 || test ! -s conftest.err'
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24807 ac_status=$?
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; } &&
24810 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24813 ac_status=$?
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; }; then
24816 ac_cv_lib_bsd_gethostbyname=yes
24817else
24818 echo "$as_me: failed program was:" >&5
24819sed 's/^/| /' conftest.$ac_ext >&5
24820
24821ac_cv_lib_bsd_gethostbyname=no
24822fi
eea650d8
VS
24823rm -f conftest.err conftest.$ac_objext \
24824 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24825LIBS=$ac_check_lib_save_LIBS
24826fi
24827echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24828echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24829if test $ac_cv_lib_bsd_gethostbyname = yes; then
24830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 24831fi
90dd450c 24832
e6cc62c6 24833 fi
90dd450c
VZ
24834 fi
24835
21d1c967
GD
24836 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24837 # socket/setsockopt and other routines are undefined under SCO ODT
24838 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24839 # on later versions), says Simon Leinen: it contains gethostby*
24840 # variants that don't use the name server (or something). -lsocket
24841 # must be given before -lnsl if both are needed. We assume that
24842 # if connect needs -lnsl, so does gethostbyname.
24843 echo "$as_me:$LINENO: checking for connect" >&5
24844echo $ECHO_N "checking for connect... $ECHO_C" >&6
24845if test "${ac_cv_func_connect+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24847else
24848 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24849/* confdefs.h. */
24850_ACEOF
24851cat confdefs.h >>conftest.$ac_ext
24852cat >>conftest.$ac_ext <<_ACEOF
24853/* end confdefs.h. */
eea650d8
VS
24854/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24856#define connect innocuous_connect
24857
21d1c967 24858/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24859 which can conflict with char connect (); below.
24860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24861 <limits.h> exists even on freestanding compilers. */
eea650d8 24862
e6cc62c6
VS
24863#ifdef __STDC__
24864# include <limits.h>
24865#else
24866# include <assert.h>
24867#endif
eea650d8
VS
24868
24869#undef connect
24870
21d1c967 24871/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24872#ifdef __cplusplus
24873extern "C"
24874{
24875#endif
21d1c967 24876/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24877 builtin and then its argument prototype would still apply. */
24878char connect ();
21d1c967
GD
24879/* The GNU C library defines this for functions which it implements
24880 to always fail with ENOSYS. Some functions are actually named
24881 something starting with __ and the normal name is an alias. */
24882#if defined (__stub_connect) || defined (__stub___connect)
24883choke me
24884#else
e6cc62c6
VS
24885char (*f) () = connect;
24886#endif
24887#ifdef __cplusplus
24888}
21d1c967 24889#endif
90dd450c 24890
e6cc62c6
VS
24891int
24892main ()
24893{
24894return f != connect;
24895 ;
24896 return 0;
24897}
24898_ACEOF
24899rm -f conftest.$ac_objext conftest$ac_exeext
24900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24901 (eval $ac_link) 2>conftest.er1
e6cc62c6 24902 ac_status=$?
eea650d8
VS
24903 grep -v '^ *+' conftest.er1 >conftest.err
24904 rm -f conftest.er1
24905 cat conftest.err >&5
e6cc62c6
VS
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } &&
eea650d8
VS
24908 { ac_try='test -z "$ac_c_werror_flag"
24909 || test ! -s conftest.err'
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; } &&
24915 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; }; then
24921 ac_cv_func_connect=yes
24922else
24923 echo "$as_me: failed program was:" >&5
24924sed 's/^/| /' conftest.$ac_ext >&5
24925
24926ac_cv_func_connect=no
24927fi
eea650d8
VS
24928rm -f conftest.err conftest.$ac_objext \
24929 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24930fi
24931echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24932echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 24933
21d1c967 24934 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24935 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24936echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24937if test "${ac_cv_lib_socket_connect+set}" = set; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 24939else
e6cc62c6 24940 ac_check_lib_save_LIBS=$LIBS
21d1c967 24941LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24942cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24943/* confdefs.h. */
24944_ACEOF
24945cat confdefs.h >>conftest.$ac_ext
24946cat >>conftest.$ac_ext <<_ACEOF
24947/* end confdefs.h. */
24948
21d1c967 24949/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24950#ifdef __cplusplus
24951extern "C"
24952#endif
21d1c967 24953/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24954 builtin and then its argument prototype would still apply. */
24955char connect ();
24956int
24957main ()
24958{
24959connect ();
24960 ;
24961 return 0;
24962}
24963_ACEOF
24964rm -f conftest.$ac_objext conftest$ac_exeext
24965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24966 (eval $ac_link) 2>conftest.er1
e6cc62c6 24967 ac_status=$?
eea650d8
VS
24968 grep -v '^ *+' conftest.er1 >conftest.err
24969 rm -f conftest.er1
24970 cat conftest.err >&5
e6cc62c6
VS
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } &&
eea650d8
VS
24973 { ac_try='test -z "$ac_c_werror_flag"
24974 || test ! -s conftest.err'
24975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; } &&
24980 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24983 ac_status=$?
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; }; then
24986 ac_cv_lib_socket_connect=yes
24987else
24988 echo "$as_me: failed program was:" >&5
24989sed 's/^/| /' conftest.$ac_ext >&5
24990
24991ac_cv_lib_socket_connect=no
24992fi
eea650d8
VS
24993rm -f conftest.err conftest.$ac_objext \
24994 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24995LIBS=$ac_check_lib_save_LIBS
24996fi
24997echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24998echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24999if test $ac_cv_lib_socket_connect = yes; then
21d1c967 25000 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 25001fi
90dd450c 25002
21d1c967 25003 fi
90dd450c 25004
e6cc62c6
VS
25005 # Guillermo Gomez says -lposix is necessary on A/UX.
25006 echo "$as_me:$LINENO: checking for remove" >&5
25007echo $ECHO_N "checking for remove... $ECHO_C" >&6
25008if test "${ac_cv_func_remove+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25010else
25011 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25012/* confdefs.h. */
25013_ACEOF
25014cat confdefs.h >>conftest.$ac_ext
25015cat >>conftest.$ac_ext <<_ACEOF
25016/* end confdefs.h. */
eea650d8
VS
25017/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25019#define remove innocuous_remove
25020
21d1c967 25021/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25022 which can conflict with char remove (); below.
25023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25024 <limits.h> exists even on freestanding compilers. */
eea650d8 25025
e6cc62c6
VS
25026#ifdef __STDC__
25027# include <limits.h>
25028#else
25029# include <assert.h>
25030#endif
eea650d8
VS
25031
25032#undef remove
25033
21d1c967 25034/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25035#ifdef __cplusplus
25036extern "C"
25037{
25038#endif
21d1c967 25039/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25040 builtin and then its argument prototype would still apply. */
25041char remove ();
21d1c967
GD
25042/* The GNU C library defines this for functions which it implements
25043 to always fail with ENOSYS. Some functions are actually named
25044 something starting with __ and the normal name is an alias. */
25045#if defined (__stub_remove) || defined (__stub___remove)
25046choke me
25047#else
e6cc62c6
VS
25048char (*f) () = remove;
25049#endif
25050#ifdef __cplusplus
25051}
21d1c967 25052#endif
90dd450c 25053
e6cc62c6
VS
25054int
25055main ()
25056{
25057return f != remove;
25058 ;
25059 return 0;
25060}
25061_ACEOF
25062rm -f conftest.$ac_objext conftest$ac_exeext
25063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25064 (eval $ac_link) 2>conftest.er1
e6cc62c6 25065 ac_status=$?
eea650d8
VS
25066 grep -v '^ *+' conftest.er1 >conftest.err
25067 rm -f conftest.er1
25068 cat conftest.err >&5
e6cc62c6
VS
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); } &&
eea650d8
VS
25071 { ac_try='test -z "$ac_c_werror_flag"
25072 || test ! -s conftest.err'
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; } &&
25078 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25081 ac_status=$?
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084 ac_cv_func_remove=yes
25085else
25086 echo "$as_me: failed program was:" >&5
25087sed 's/^/| /' conftest.$ac_ext >&5
25088
25089ac_cv_func_remove=no
25090fi
eea650d8
VS
25091rm -f conftest.err conftest.$ac_objext \
25092 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25093fi
25094echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25095echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25096
21d1c967 25097 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25098 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25099echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25100if test "${ac_cv_lib_posix_remove+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25102else
e6cc62c6 25103 ac_check_lib_save_LIBS=$LIBS
21d1c967 25104LIBS="-lposix $LIBS"
e6cc62c6 25105cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25106/* confdefs.h. */
25107_ACEOF
25108cat confdefs.h >>conftest.$ac_ext
25109cat >>conftest.$ac_ext <<_ACEOF
25110/* end confdefs.h. */
25111
21d1c967 25112/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25113#ifdef __cplusplus
25114extern "C"
25115#endif
21d1c967 25116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25117 builtin and then its argument prototype would still apply. */
25118char remove ();
25119int
25120main ()
25121{
25122remove ();
25123 ;
25124 return 0;
25125}
25126_ACEOF
25127rm -f conftest.$ac_objext conftest$ac_exeext
25128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25129 (eval $ac_link) 2>conftest.er1
e6cc62c6 25130 ac_status=$?
eea650d8
VS
25131 grep -v '^ *+' conftest.er1 >conftest.err
25132 rm -f conftest.er1
25133 cat conftest.err >&5
e6cc62c6
VS
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); } &&
eea650d8
VS
25136 { ac_try='test -z "$ac_c_werror_flag"
25137 || test ! -s conftest.err'
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; } &&
25143 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; }; then
25149 ac_cv_lib_posix_remove=yes
25150else
25151 echo "$as_me: failed program was:" >&5
25152sed 's/^/| /' conftest.$ac_ext >&5
25153
25154ac_cv_lib_posix_remove=no
25155fi
eea650d8
VS
25156rm -f conftest.err conftest.$ac_objext \
25157 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25158LIBS=$ac_check_lib_save_LIBS
25159fi
25160echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25161echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25162if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25164fi
19bc6aad 25165
90dd450c 25166 fi
19bc6aad 25167
21d1c967 25168 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25169 echo "$as_me:$LINENO: checking for shmat" >&5
25170echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25171if test "${ac_cv_func_shmat+set}" = set; then
25172 echo $ECHO_N "(cached) $ECHO_C" >&6
25173else
25174 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25175/* confdefs.h. */
25176_ACEOF
25177cat confdefs.h >>conftest.$ac_ext
25178cat >>conftest.$ac_ext <<_ACEOF
25179/* end confdefs.h. */
eea650d8
VS
25180/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25182#define shmat innocuous_shmat
25183
21d1c967 25184/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25185 which can conflict with char shmat (); below.
25186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25187 <limits.h> exists even on freestanding compilers. */
eea650d8 25188
e6cc62c6
VS
25189#ifdef __STDC__
25190# include <limits.h>
25191#else
25192# include <assert.h>
25193#endif
eea650d8
VS
25194
25195#undef shmat
25196
21d1c967 25197/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25198#ifdef __cplusplus
25199extern "C"
25200{
25201#endif
21d1c967 25202/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25203 builtin and then its argument prototype would still apply. */
25204char shmat ();
21d1c967
GD
25205/* The GNU C library defines this for functions which it implements
25206 to always fail with ENOSYS. Some functions are actually named
25207 something starting with __ and the normal name is an alias. */
25208#if defined (__stub_shmat) || defined (__stub___shmat)
25209choke me
25210#else
e6cc62c6
VS
25211char (*f) () = shmat;
25212#endif
25213#ifdef __cplusplus
25214}
21d1c967 25215#endif
90dd450c 25216
e6cc62c6
VS
25217int
25218main ()
25219{
25220return f != shmat;
25221 ;
25222 return 0;
25223}
25224_ACEOF
25225rm -f conftest.$ac_objext conftest$ac_exeext
25226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25227 (eval $ac_link) 2>conftest.er1
e6cc62c6 25228 ac_status=$?
eea650d8
VS
25229 grep -v '^ *+' conftest.er1 >conftest.err
25230 rm -f conftest.er1
25231 cat conftest.err >&5
e6cc62c6
VS
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } &&
eea650d8
VS
25234 { ac_try='test -z "$ac_c_werror_flag"
25235 || test ! -s conftest.err'
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; } &&
25241 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); }; }; then
25247 ac_cv_func_shmat=yes
25248else
25249 echo "$as_me: failed program was:" >&5
25250sed 's/^/| /' conftest.$ac_ext >&5
25251
25252ac_cv_func_shmat=no
25253fi
eea650d8
VS
25254rm -f conftest.err conftest.$ac_objext \
25255 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25256fi
25257echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25258echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25259
21d1c967 25260 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25261 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25262echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25263if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25264 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25265else
e6cc62c6 25266 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25267LIBS="-lipc $LIBS"
e6cc62c6 25268cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25269/* confdefs.h. */
25270_ACEOF
25271cat confdefs.h >>conftest.$ac_ext
25272cat >>conftest.$ac_ext <<_ACEOF
25273/* end confdefs.h. */
25274
5c6fa7d2 25275/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25276#ifdef __cplusplus
25277extern "C"
25278#endif
5c6fa7d2 25279/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25280 builtin and then its argument prototype would still apply. */
25281char shmat ();
25282int
25283main ()
25284{
25285shmat ();
25286 ;
25287 return 0;
25288}
25289_ACEOF
25290rm -f conftest.$ac_objext conftest$ac_exeext
25291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25292 (eval $ac_link) 2>conftest.er1
e6cc62c6 25293 ac_status=$?
eea650d8
VS
25294 grep -v '^ *+' conftest.er1 >conftest.err
25295 rm -f conftest.er1
25296 cat conftest.err >&5
e6cc62c6
VS
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); } &&
eea650d8
VS
25299 { ac_try='test -z "$ac_c_werror_flag"
25300 || test ! -s conftest.err'
25301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; } &&
25306 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312 ac_cv_lib_ipc_shmat=yes
25313else
25314 echo "$as_me: failed program was:" >&5
25315sed 's/^/| /' conftest.$ac_ext >&5
25316
25317ac_cv_lib_ipc_shmat=no
25318fi
eea650d8
VS
25319rm -f conftest.err conftest.$ac_objext \
25320 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25321LIBS=$ac_check_lib_save_LIBS
25322fi
25323echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25324echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25325if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25327fi
90dd450c 25328
90dd450c 25329 fi
21d1c967 25330 fi
10f2d63a 25331
21d1c967 25332 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25333 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25334 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25335 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25336 # check for ICE first), but we must link in the order -lSM -lICE or
25337 # we get undefined symbols. So assume we have SM if we have ICE.
25338 # These have to be linked with before -lX11, unlike the other
25339 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25340 # John Interrante, Karl Berry
25341 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25342echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25343if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25344 echo $ECHO_N "(cached) $ECHO_C" >&6
25345else
25346 ac_check_lib_save_LIBS=$LIBS
f09359cf 25347LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25348cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25349/* confdefs.h. */
25350_ACEOF
25351cat confdefs.h >>conftest.$ac_ext
25352cat >>conftest.$ac_ext <<_ACEOF
25353/* end confdefs.h. */
25354
21d1c967 25355/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25356#ifdef __cplusplus
25357extern "C"
25358#endif
21d1c967 25359/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25360 builtin and then its argument prototype would still apply. */
25361char IceConnectionNumber ();
25362int
25363main ()
25364{
25365IceConnectionNumber ();
25366 ;
25367 return 0;
25368}
25369_ACEOF
25370rm -f conftest.$ac_objext conftest$ac_exeext
25371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25372 (eval $ac_link) 2>conftest.er1
e6cc62c6 25373 ac_status=$?
eea650d8
VS
25374 grep -v '^ *+' conftest.er1 >conftest.err
25375 rm -f conftest.er1
25376 cat conftest.err >&5
e6cc62c6
VS
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); } &&
eea650d8
VS
25379 { ac_try='test -z "$ac_c_werror_flag"
25380 || test ! -s conftest.err'
25381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; } &&
25386 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); }; }; then
25392 ac_cv_lib_ICE_IceConnectionNumber=yes
25393else
25394 echo "$as_me: failed program was:" >&5
25395sed 's/^/| /' conftest.$ac_ext >&5
25396
25397ac_cv_lib_ICE_IceConnectionNumber=no
25398fi
eea650d8
VS
25399rm -f conftest.err conftest.$ac_objext \
25400 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25401LIBS=$ac_check_lib_save_LIBS
25402fi
25403echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25404echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25405if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 25406 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 25407fi
21d1c967 25408
e6cc62c6 25409 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 25410
10f2d63a
VZ
25411fi
25412
8284b0c5 25413
21d1c967 25414 if test "$no_x" = "yes"; then
e6cc62c6
VS
25415 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25416echo "$as_me: error: X11 not found" >&2;}
25417 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
25418 fi
25419
2b5f62a0
VZ
25420 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25421 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
25422 AFMINSTALL=afminstall
25423 COMPILED_X_PROGRAM=0
25424
e6cc62c6
VS
25425 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25426echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25427
21d1c967 25428ac_find_includes=
2b5f62a0 25429for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
25430 do
25431 if test -f "$ac_dir/Xm/Xm.h"; then
25432 ac_find_includes=$ac_dir
25433 break
25434 fi
25435 done
25436
25437 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
25438 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25439echo "${ECHO_T}found in $ac_find_includes" >&6
25440
2b5f62a0 25441 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
25442 ac_path_to_include=""
25443 else
2b5f62a0
VZ
25444 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25445 result=$?
25446 if test $result = 0; then
25447 ac_path_to_include=""
25448 else
25449 ac_path_to_include=" -I$ac_find_includes"
25450 fi
dd0e4a90
VZ
25451 fi
25452
25453 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 25454 else
e6cc62c6 25455 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25456/* confdefs.h. */
25457_ACEOF
25458cat confdefs.h >>conftest.$ac_ext
25459cat >>conftest.$ac_ext <<_ACEOF
25460/* end confdefs.h. */
21d1c967
GD
25461
25462 #include <Xm/Xm.h>
e6cc62c6
VS
25463
25464int
25465main ()
25466{
21d1c967
GD
25467
25468 int version;
25469 version = xmUseVersion;
e6cc62c6
VS
25470
25471 ;
25472 return 0;
25473}
25474_ACEOF
25475rm -f conftest.$ac_objext
25476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25477 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25478 ac_status=$?
eea650d8
VS
25479 grep -v '^ *+' conftest.er1 >conftest.err
25480 rm -f conftest.er1
25481 cat conftest.err >&5
e6cc62c6
VS
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } &&
eea650d8
VS
25484 { ac_try='test -z "$ac_c_werror_flag"
25485 || test ! -s conftest.err'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; } &&
25491 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; }; then
25497
25498 echo "$as_me:$LINENO: result: found in default search path" >&5
25499echo "${ECHO_T}found in default search path" >&6
21d1c967 25500 COMPILED_X_PROGRAM=1
e6cc62c6 25501
10f2d63a 25502else
e6cc62c6
VS
25503 echo "$as_me: failed program was:" >&5
25504sed 's/^/| /' conftest.$ac_ext >&5
25505
25506
25507 echo "$as_me:$LINENO: result: no" >&5
25508echo "${ECHO_T}no" >&6
25509 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25510echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25511 { (exit 1); exit 1; }; }
25512
25513
10f2d63a 25514fi
eea650d8 25515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 25516 fi
10f2d63a 25517
21d1c967 25518 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
25519 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25520echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25521
21d1c967 25522ac_find_libraries=
2b5f62a0 25523for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25524 do
25525 for ac_extension in a so sl dylib; do
25526 if test -f "$ac_dir/libXm.$ac_extension"; then
25527 ac_find_libraries=$ac_dir
25528 break 2
25529 fi
25530 done
25531 done
25532
25533 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
25534 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25535echo "${ECHO_T}found at $ac_find_libraries" >&6
25536
21d1c967 25537
21d1c967
GD
25538 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25539 result=$?
25540 if test $result = 0; then
25541 ac_path_to_link=""
25542 else
25543 ac_path_to_link=" -L$ac_find_libraries"
25544 fi
25545
21d1c967 25546 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 25547 else
dd0e4a90
VZ
25548 save_CFLAGS=$CFLAGS
25549 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25550
e6cc62c6 25551 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25552/* confdefs.h. */
25553_ACEOF
25554cat confdefs.h >>conftest.$ac_ext
25555cat >>conftest.$ac_ext <<_ACEOF
25556/* end confdefs.h. */
21d1c967
GD
25557
25558 #include <Xm/Xm.h>
e6cc62c6
VS
25559
25560int
25561main ()
25562{
21d1c967
GD
25563
25564 int version;
25565 version = xmUseVersion;
e6cc62c6
VS
25566
25567 ;
25568 return 0;
25569}
25570_ACEOF
25571rm -f conftest.$ac_objext
25572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25573 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25574 ac_status=$?
eea650d8
VS
25575 grep -v '^ *+' conftest.er1 >conftest.err
25576 rm -f conftest.er1
25577 cat conftest.err >&5
e6cc62c6
VS
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } &&
eea650d8
VS
25580 { ac_try='test -z "$ac_c_werror_flag"
25581 || test ! -s conftest.err'
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
25584 ac_status=$?
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; } &&
25587 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); }; }; then
25593
25594 echo "$as_me:$LINENO: result: found in default search path" >&5
25595echo "${ECHO_T}found in default search path" >&6
21d1c967 25596 COMPILED_X_PROGRAM=1
e6cc62c6 25597
d836ee96 25598else
e6cc62c6
VS
25599 echo "$as_me: failed program was:" >&5
25600sed 's/^/| /' conftest.$ac_ext >&5
25601
25602
25603 echo "$as_me:$LINENO: result: no" >&5
25604echo "${ECHO_T}no" >&6
25605 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25606echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25607 { (exit 1); exit 1; }; }
25608
25609
d836ee96 25610fi
eea650d8 25611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
25612
25613 CFLAGS=$save_CFLAGS
21d1c967
GD
25614 fi
25615 fi
25616
e6cc62c6
VS
25617 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25618echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
25619 libp_link=""
25620 libsm_ice_link=""
25621 libs_found=0
25622 for libp in "" " -lXp"; do
25623 if test "$libs_found" = "0"; then
7015ef3a 25624 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 25625 if test "$libs_found" = "0"; then
6a30f1c8 25626 save_LIBS="$LIBS"
93a543aa 25627 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
25628 save_CFLAGS=$CFLAGS
25629 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25630
e6cc62c6 25631 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25632/* confdefs.h. */
25633_ACEOF
25634cat confdefs.h >>conftest.$ac_ext
25635cat >>conftest.$ac_ext <<_ACEOF
25636/* end confdefs.h. */
17234b26 25637
6a30f1c8
MB
25638 #include <Xm/Xm.h>
25639 #include <Xm/List.h>
e6cc62c6
VS
25640
25641int
25642main ()
25643{
6a30f1c8
MB
25644
25645 XmString string = NULL;
25646 Widget w = NULL;
25647 int position = 0;
25648 XmListAddItem(w, string, position);
e6cc62c6
VS
25649
25650 ;
25651 return 0;
25652}
25653_ACEOF
25654rm -f conftest.$ac_objext conftest$ac_exeext
25655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25656 (eval $ac_link) 2>conftest.er1
e6cc62c6 25657 ac_status=$?
eea650d8
VS
25658 grep -v '^ *+' conftest.er1 >conftest.err
25659 rm -f conftest.er1
25660 cat conftest.err >&5
e6cc62c6
VS
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
eea650d8
VS
25663 { ac_try='test -z "$ac_c_werror_flag"
25664 || test ! -s conftest.err'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; } &&
25670 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25673 ac_status=$?
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676
6a30f1c8
MB
25677 libp_link="$libp"
25678 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
25679 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25680echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 25681 libs_found=1
e6cc62c6 25682
6a30f1c8 25683else
e6cc62c6
VS
25684 echo "$as_me: failed program was:" >&5
25685sed 's/^/| /' conftest.$ac_ext >&5
25686
25687
25688
6a30f1c8 25689fi
eea650d8
VS
25690rm -f conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 25692
6a30f1c8 25693 LIBS="$save_LIBS"
dd0e4a90 25694 CFLAGS=$save_CFLAGS
6a30f1c8
MB
25695 fi
25696 done
25697 fi
25698 done
25699
25700 if test "$libs_found" = "0"; then
e6cc62c6
VS
25701 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25702echo "${ECHO_T}can't find the right libraries" >&6
25703 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25704echo "$as_me: error: can't link a simple motif program" >&2;}
25705 { (exit 1); exit 1; }; }
6a30f1c8
MB
25706 fi
25707
da494b40
MB
25708 save_CFLAGS=$CFLAGS
25709 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
25710 echo "$as_me:$LINENO: checking for Motif 2" >&5
25711echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25712 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25713/* confdefs.h. */
25714_ACEOF
25715cat confdefs.h >>conftest.$ac_ext
25716cat >>conftest.$ac_ext <<_ACEOF
25717/* end confdefs.h. */
da494b40
MB
25718
25719 #include <Xm/Xm.h>
e6cc62c6
VS
25720
25721int
25722main ()
25723{
da494b40
MB
25724
25725 #if XmVersion < 2000
25726 #error "Not Motif 2"
25727 #endif
e6cc62c6
VS
25728
25729 ;
25730 return 0;
25731}
25732_ACEOF
25733rm -f conftest.$ac_objext
25734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25735 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25736 ac_status=$?
eea650d8
VS
25737 grep -v '^ *+' conftest.er1 >conftest.err
25738 rm -f conftest.er1
25739 cat conftest.err >&5
e6cc62c6
VS
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); } &&
eea650d8
VS
25742 { ac_try='test -z "$ac_c_werror_flag"
25743 || test ! -s conftest.err'
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; } &&
25749 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; }; then
25755
25756 cat >>confdefs.h <<\_ACEOF
da494b40 25757#define __WXMOTIF20__ 1
e6cc62c6
VS
25758_ACEOF
25759
25760 echo "$as_me:$LINENO: result: found" >&5
25761echo "${ECHO_T}found" >&6
da494b40 25762
da494b40 25763else
e6cc62c6
VS
25764 echo "$as_me: failed program was:" >&5
25765sed 's/^/| /' conftest.$ac_ext >&5
25766
25767
25768 cat >>confdefs.h <<\_ACEOF
da494b40 25769#define __WXMOTIF20__ 0
e6cc62c6
VS
25770_ACEOF
25771
25772 echo "$as_me:$LINENO: result: not found" >&5
25773echo "${ECHO_T}not found" >&6
da494b40 25774
da494b40 25775fi
eea650d8 25776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
25777 CFLAGS=$save_CFLAGS
25778
93a543aa 25779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 25780 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
25781 TOOLKIT=MOTIF
25782 GUIDIST=MOTIF_DIST
f7f78039
MB
25783 fi
25784
89fe663f
VZ
25785 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25786 if test "$wxUSE_LIBXPM" = "sys"; then
25787 echo "$as_me:$LINENO: checking for Xpm library" >&5
25788echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25789
25790ac_find_libraries=
25791for ac_dir in $SEARCH_LIB /usr/lib;
25792 do
25793 for ac_extension in a so sl dylib; do
25794 if test -f "$ac_dir/libXpm.$ac_extension"; then
25795 ac_find_libraries=$ac_dir
25796 break 2
25797 fi
25798 done
25799 done
25800
25801 if test "$ac_find_libraries" != "" ; then
25802
25803 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25804 result=$?
25805 if test $result = 0; then
25806 ac_path_to_link=""
25807 else
25808 ac_path_to_link=" -L$ac_find_libraries"
25809 fi
25810
25811 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25812 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25813echo "${ECHO_T}found at $ac_find_libraries" >&6
25814
25815 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25816echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25817if test "${wx_cv_x11_xpm_h+set}" = set; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25819else
25820
25821 save_CFLAGS=$CFLAGS
25822 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25823
25824 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25825/* confdefs.h. */
25826_ACEOF
25827cat confdefs.h >>conftest.$ac_ext
25828cat >>conftest.$ac_ext <<_ACEOF
25829/* end confdefs.h. */
25830
25831 #include <X11/xpm.h>
25832
25833int
25834main ()
25835{
25836
25837 int version;
25838 version = XpmLibraryVersion();
25839
25840 ;
25841 return 0;
25842}
25843_ACEOF
25844rm -f conftest.$ac_objext
25845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25846 (eval $ac_compile) 2>conftest.er1
89fe663f 25847 ac_status=$?
eea650d8
VS
25848 grep -v '^ *+' conftest.er1 >conftest.err
25849 rm -f conftest.er1
25850 cat conftest.err >&5
89fe663f
VZ
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } &&
eea650d8
VS
25853 { ac_try='test -z "$ac_c_werror_flag"
25854 || test ! -s conftest.err'
25855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25856 (eval $ac_try) 2>&5
25857 ac_status=$?
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); }; } &&
25860 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
25861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25862 (eval $ac_try) 2>&5
25863 ac_status=$?
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); }; }; then
25866 wx_cv_x11_xpm_h=yes
25867else
25868 echo "$as_me: failed program was:" >&5
25869sed 's/^/| /' conftest.$ac_ext >&5
25870
25871wx_cv_x11_xpm_h=no
25872
25873fi
eea650d8 25874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
25875
25876 CFLAGS=$save_CFLAGS
25877
25878
25879fi
25880echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25881echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25882
25883 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 25884 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
25885 cat >>confdefs.h <<\_ACEOF
25886#define wxHAVE_LIB_XPM 1
25887_ACEOF
25888
25889 else
25890 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25891echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25892 fi
25893 fi
25894
25895 fi
f7f78039 25896
89fe663f
VZ
25897 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25898echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25899if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25901else
25902 ac_check_lib_save_LIBS=$LIBS
25903LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25904cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25905/* confdefs.h. */
25906_ACEOF
25907cat confdefs.h >>conftest.$ac_ext
25908cat >>conftest.$ac_ext <<_ACEOF
25909/* end confdefs.h. */
25910
25911/* Override any gcc2 internal prototype to avoid an error. */
25912#ifdef __cplusplus
25913extern "C"
25914#endif
25915/* We use char because int might match the return type of a gcc2
25916 builtin and then its argument prototype would still apply. */
25917char XShapeQueryExtension ();
25918int
25919main ()
25920{
25921XShapeQueryExtension ();
25922 ;
25923 return 0;
25924}
25925_ACEOF
25926rm -f conftest.$ac_objext conftest$ac_exeext
25927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25928 (eval $ac_link) 2>conftest.er1
89fe663f 25929 ac_status=$?
eea650d8
VS
25930 grep -v '^ *+' conftest.er1 >conftest.err
25931 rm -f conftest.er1
25932 cat conftest.err >&5
89fe663f
VZ
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } &&
eea650d8
VS
25935 { ac_try='test -z "$ac_c_werror_flag"
25936 || test ! -s conftest.err'
25937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); }; } &&
25942 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
25943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; }; then
25948 ac_cv_lib_Xext_XShapeQueryExtension=yes
25949else
25950 echo "$as_me: failed program was:" >&5
25951sed 's/^/| /' conftest.$ac_ext >&5
25952
25953ac_cv_lib_Xext_XShapeQueryExtension=no
25954fi
eea650d8
VS
25955rm -f conftest.err conftest.$ac_objext \
25956 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
25957LIBS=$ac_check_lib_save_LIBS
25958fi
25959echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25960echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25961if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25962
25963 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25964 wxHAVE_XEXT_LIB=1
25965
25966fi
25967
25968
25969 if test "$wxHAVE_XEXT_LIB" = 1; then
25970 save_CFLAGS="$CFLAGS"
25971 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25972
25973 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 25974echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 25975 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25976/* confdefs.h. */
25977_ACEOF
25978cat confdefs.h >>conftest.$ac_ext
25979cat >>conftest.$ac_ext <<_ACEOF
25980/* end confdefs.h. */
25981
89fe663f
VZ
25982 #include <X11/Xlib.h>
25983 #include <X11/extensions/shape.h>
e6cc62c6
VS
25984
25985int
25986main ()
25987{
f7f78039 25988
89fe663f
VZ
25989 int dummy1, dummy2;
25990 XShapeQueryExtension((Display*)NULL,
25991 (int*)NULL, (int*)NULL);
e6cc62c6
VS
25992
25993 ;
25994 return 0;
25995}
25996_ACEOF
25997rm -f conftest.$ac_objext
25998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25999 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26000 ac_status=$?
eea650d8
VS
26001 grep -v '^ *+' conftest.er1 >conftest.err
26002 rm -f conftest.er1
26003 cat conftest.err >&5
e6cc62c6
VS
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } &&
eea650d8
VS
26006 { ac_try='test -z "$ac_c_werror_flag"
26007 || test ! -s conftest.err'
26008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); }; } &&
26013 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
26019
89fe663f 26020 cat >>confdefs.h <<\_ACEOF
f7f78039 26021#define HAVE_XSHAPE 1
e6cc62c6
VS
26022_ACEOF
26023
89fe663f 26024 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26025echo "${ECHO_T}found" >&6
f7f78039 26026
f7f78039 26027else
e6cc62c6
VS
26028 echo "$as_me: failed program was:" >&5
26029sed 's/^/| /' conftest.$ac_ext >&5
26030
26031
89fe663f 26032 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26033echo "${ECHO_T}not found" >&6
26034
f7f78039 26035fi
eea650d8 26036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26037 CFLAGS="$save_CFLAGS"
26038
26039 fi
21d1c967
GD
26040 fi
26041
26042 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26043 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26044echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26045 if test "$GCC" = yes; then
26046 echo "$as_me:$LINENO: result: gcc" >&5
26047echo "${ECHO_T}gcc" >&6
26048 CPPFLAGS_PASCAL="-fpascal-strings"
26049 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26050 echo "$as_me:$LINENO: result: xlc" >&5
26051echo "${ECHO_T}xlc" >&6
26052 CPPFLAGS_PASCAL="-qmacpstr"
26053 else
26054 echo "$as_me:$LINENO: result: none" >&5
26055echo "${ECHO_T}none" >&6
26056 fi
26057
26058 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26059
0c98a14e 26060 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26061 TOOLKIT=MAC
26062 GUIDIST=MACX_DIST
cf615ebb 26063 WXBASEPORT="_carbon"
21d1c967
GD
26064 fi
26065
ac0c4cc3
DE
26066 if test "$wxUSE_COCOA" = 1; then
26067 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26068 TOOLKIT=COCOA
26069 GUIDIST=COCOA_DIST
26070 fi
26071
21d1c967
GD
26072 if test "$wxUSE_PM" = 1; then
26073 TOOLKIT=PM
26074 GUIDIST=GTK_DIST
26075 fi
26076
26077 if test "$TOOLKIT" = "PM" ; then
26078 TOOLKIT_DIR="os2"
26079 else
26080 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26081 fi
26082
26083 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26084
26085 if test "$wxUSE_UNIVERSAL" = "yes"; then
26086 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26087
26088 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26089 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26090
26091 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26092 if test "$wxUSE_X11" = 1; then
26093 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26094 else
26095 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26096 fi
26097 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26098 WIDGET_SET=univ
26099 else
26100 ALL_OBJECTS="\$(GUIOBJS)"
26101 ALL_SOURCES="\$(ALL_SOURCES)"
26102 ALL_HEADERS="\$(ALL_HEADERS)"
26103 fi
26104
26105 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26106
26107 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26108 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26109 fi
26110
26111 if test "$wxUSE_HTML" = "yes"; then
26112 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26113 fi
26114
26115 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26116 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26117 fi
26118 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26119 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26120 fi
26121 if test "$wxUSE_LIBPNG" = "builtin" ; then
26122 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26123 fi
26124
26125 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26126 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26127else
21d1c967
GD
26128 USE_GUI=0
26129
26130 TOOLKIT_DIR="base"
26131
26132 if test "$USE_WIN32" = 1 ; then
26133 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26134 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26135
26136 TOOLKIT="MSW"
26137 else
26138 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26139 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26140 fi
26141
26142 ALL_SOURCES="\$(ALL_SOURCES)"
26143 ALL_HEADERS="\$(ALL_HEADERS)"
26144
26145 PORT_FILES="\${top_srcdir}/src/files.lst"
26146
26147 GUIDIST="BASE_DIST"
26148 DISTDIR="wxBase"
d836ee96
VZ
26149fi
26150
8284b0c5 26151
8647bec6
RG
26152
26153
26154IODBC_C_SRC=""
26155
26156
26157if test "$TOOLKIT" != "MSW" ; then
26158
bb41dcbe 26159 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26160
bb41dcbe 26161 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26162 echo "$as_me:$LINENO: checking for sql.h" >&5
26163echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26164if test "${ac_cv_header_sql_h+set}" = set; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26166fi
26167echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26168echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26169else
26170 # Is the header compilable?
26171echo "$as_me:$LINENO: checking sql.h usability" >&5
26172echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26173cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26174/* confdefs.h. */
26175_ACEOF
26176cat confdefs.h >>conftest.$ac_ext
26177cat >>conftest.$ac_ext <<_ACEOF
26178/* end confdefs.h. */
26179$ac_includes_default
8647bec6 26180#include <sql.h>
e6cc62c6
VS
26181_ACEOF
26182rm -f conftest.$ac_objext
26183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 26184 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26185 ac_status=$?
eea650d8
VS
26186 grep -v '^ *+' conftest.er1 >conftest.err
26187 rm -f conftest.er1
26188 cat conftest.err >&5
e6cc62c6
VS
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } &&
eea650d8
VS
26191 { ac_try='test -z "$ac_c_werror_flag"
26192 || test ! -s conftest.err'
26193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194 (eval $ac_try) 2>&5
26195 ac_status=$?
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); }; } &&
26198 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200 (eval $ac_try) 2>&5
26201 ac_status=$?
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); }; }; then
26204 ac_header_compiler=yes
26205else
26206 echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209ac_header_compiler=no
26210fi
eea650d8 26211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26213echo "${ECHO_T}$ac_header_compiler" >&6
26214
26215# Is the header present?
26216echo "$as_me:$LINENO: checking sql.h presence" >&5
26217echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26218cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26219/* confdefs.h. */
26220_ACEOF
26221cat confdefs.h >>conftest.$ac_ext
26222cat >>conftest.$ac_ext <<_ACEOF
26223/* end confdefs.h. */
26224#include <sql.h>
26225_ACEOF
26226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26228 ac_status=$?
26229 grep -v '^ *+' conftest.er1 >conftest.err
26230 rm -f conftest.er1
26231 cat conftest.err >&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } >/dev/null; then
26234 if test -s conftest.err; then
26235 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 26236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26237 else
26238 ac_cpp_err=
26239 fi
26240else
26241 ac_cpp_err=yes
26242fi
26243if test -z "$ac_cpp_err"; then
26244 ac_header_preproc=yes
26245else
26246 echo "$as_me: failed program was:" >&5
26247sed 's/^/| /' conftest.$ac_ext >&5
26248
26249 ac_header_preproc=no
26250fi
26251rm -f conftest.err conftest.$ac_ext
26252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26253echo "${ECHO_T}$ac_header_preproc" >&6
26254
26255# So? What about this header?
eea650d8
VS
26256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26257 yes:no: )
e6cc62c6
VS
26258 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26259echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
26260 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26261echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26262 ac_header_preproc=yes
e6cc62c6 26263 ;;
eea650d8 26264 no:yes:* )
e6cc62c6
VS
26265 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26266echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
eea650d8
VS
26267 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26268echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26269 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26270echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26271 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26272echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26273 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26274echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
26275 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26276echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26277 (
26278 cat <<\_ASBOX
eea650d8
VS
26279## ----------------------------------------- ##
26280## Report this to wx-dev@lists.wxwindows.org ##
26281## ----------------------------------------- ##
e6cc62c6
VS
26282_ASBOX
26283 ) |
26284 sed "s/^/$as_me: WARNING: /" >&2
26285 ;;
26286esac
26287echo "$as_me:$LINENO: checking for sql.h" >&5
26288echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26289if test "${ac_cv_header_sql_h+set}" = set; then
26290 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26291else
e6cc62c6
VS
26292 ac_cv_header_sql_h=$ac_header_preproc
26293fi
26294echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26295echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26296
bb41dcbe
VS
26297fi
26298if test $ac_cv_header_sql_h = yes; then
26299 found_sql_h=1
8647bec6
RG
26300fi
26301
e6cc62c6 26302
bb41dcbe 26303 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26304 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26305echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26306if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26307 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26308else
bb41dcbe 26309 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26310LIBS="-liodbc $LIBS"
e6cc62c6 26311cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26312/* confdefs.h. */
26313_ACEOF
26314cat confdefs.h >>conftest.$ac_ext
26315cat >>conftest.$ac_ext <<_ACEOF
26316/* end confdefs.h. */
26317
8647bec6 26318/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26319#ifdef __cplusplus
26320extern "C"
26321#endif
8647bec6 26322/* We use char because int might match the return type of a gcc2
e6cc62c6 26323 builtin and then its argument prototype would still apply. */
e46d2a18 26324char SQLAllocEnv ();
e6cc62c6
VS
26325int
26326main ()
26327{
e46d2a18 26328SQLAllocEnv ();
e6cc62c6
VS
26329 ;
26330 return 0;
26331}
26332_ACEOF
26333rm -f conftest.$ac_objext conftest$ac_exeext
26334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26335 (eval $ac_link) 2>conftest.er1
e6cc62c6 26336 ac_status=$?
eea650d8
VS
26337 grep -v '^ *+' conftest.er1 >conftest.err
26338 rm -f conftest.er1
26339 cat conftest.err >&5
e6cc62c6
VS
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } &&
eea650d8
VS
26342 { ac_try='test -z "$ac_c_werror_flag"
26343 || test ! -s conftest.err'
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26346 ac_status=$?
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; } &&
26349 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26351 (eval $ac_try) 2>&5
26352 ac_status=$?
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); }; }; then
e46d2a18 26355 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26356else
e6cc62c6
VS
26357 echo "$as_me: failed program was:" >&5
26358sed 's/^/| /' conftest.$ac_ext >&5
26359
e46d2a18 26360ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26361fi
eea650d8
VS
26362rm -f conftest.err conftest.$ac_objext \
26363 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26364LIBS=$ac_check_lib_save_LIBS
26365fi
e46d2a18
VS
26366echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26367echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26368if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26369 ODBC_LINK=" -liodbc"
26370else
26371
e46d2a18
VS
26372 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26373echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26374if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26375 echo $ECHO_N "(cached) $ECHO_C" >&6
26376else
26377 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26378LIBS="-lunixodbc $LIBS"
bb41dcbe 26379cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26380/* confdefs.h. */
26381_ACEOF
26382cat confdefs.h >>conftest.$ac_ext
26383cat >>conftest.$ac_ext <<_ACEOF
26384/* end confdefs.h. */
26385
8647bec6 26386/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26387#ifdef __cplusplus
26388extern "C"
26389#endif
8647bec6 26390/* We use char because int might match the return type of a gcc2
e6cc62c6 26391 builtin and then its argument prototype would still apply. */
e46d2a18 26392char SQLAllocEnv ();
e6cc62c6
VS
26393int
26394main ()
26395{
e46d2a18 26396SQLAllocEnv ();
e6cc62c6
VS
26397 ;
26398 return 0;
26399}
26400_ACEOF
26401rm -f conftest.$ac_objext conftest$ac_exeext
26402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26403 (eval $ac_link) 2>conftest.er1
e6cc62c6 26404 ac_status=$?
eea650d8
VS
26405 grep -v '^ *+' conftest.er1 >conftest.err
26406 rm -f conftest.er1
26407 cat conftest.err >&5
e6cc62c6
VS
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } &&
eea650d8
VS
26410 { ac_try='test -z "$ac_c_werror_flag"
26411 || test ! -s conftest.err'
26412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); }; } &&
26417 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26419 (eval $ac_try) 2>&5
26420 ac_status=$?
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); }; }; then
e46d2a18 26423 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 26424else
e6cc62c6
VS
26425 echo "$as_me: failed program was:" >&5
26426sed 's/^/| /' conftest.$ac_ext >&5
26427
e46d2a18 26428ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 26429fi
eea650d8
VS
26430rm -f conftest.err conftest.$ac_objext \
26431 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 26432LIBS=$ac_check_lib_save_LIBS
e6cc62c6 26433fi
e46d2a18
VS
26434echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26435echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26436if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26437 ODBC_LINK=" -lunixodbc"
26438else
26439
e46d2a18
VS
26440 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26441echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26442if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26443 echo $ECHO_N "(cached) $ECHO_C" >&6
26444else
26445 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26446LIBS="-lodbc $LIBS"
bb41dcbe 26447cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
26448/* confdefs.h. */
26449_ACEOF
26450cat confdefs.h >>conftest.$ac_ext
26451cat >>conftest.$ac_ext <<_ACEOF
26452/* end confdefs.h. */
e6cc62c6 26453
bb41dcbe
VS
26454/* Override any gcc2 internal prototype to avoid an error. */
26455#ifdef __cplusplus
26456extern "C"
26457#endif
26458/* We use char because int might match the return type of a gcc2
26459 builtin and then its argument prototype would still apply. */
e46d2a18 26460char SQLAllocEnv ();
bb41dcbe
VS
26461int
26462main ()
26463{
e46d2a18 26464SQLAllocEnv ();
bb41dcbe
VS
26465 ;
26466 return 0;
26467}
26468_ACEOF
26469rm -f conftest.$ac_objext conftest$ac_exeext
26470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26471 (eval $ac_link) 2>conftest.er1
bb41dcbe 26472 ac_status=$?
eea650d8
VS
26473 grep -v '^ *+' conftest.er1 >conftest.err
26474 rm -f conftest.er1
26475 cat conftest.err >&5
bb41dcbe
VS
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); } &&
eea650d8
VS
26478 { ac_try='test -z "$ac_c_werror_flag"
26479 || test ! -s conftest.err'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; } &&
26485 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; }; then
e46d2a18 26491 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 26492else
bb41dcbe
VS
26493 echo "$as_me: failed program was:" >&5
26494sed 's/^/| /' conftest.$ac_ext >&5
26495
e46d2a18 26496ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 26497fi
eea650d8
VS
26498rm -f conftest.err conftest.$ac_objext \
26499 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26500LIBS=$ac_check_lib_save_LIBS
26501fi
e46d2a18
VS
26502echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26503echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26504if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26505 ODBC_LINK=" -lodbc"
26506fi
26507
26508
26509fi
e6cc62c6 26510
e6cc62c6 26511
8647bec6 26512fi
e6cc62c6 26513
fd3d7534 26514 fi
bb41dcbe
VS
26515 if test "x$ODBC_LINK" = "x" ; then
26516 if test "$wxUSE_ODBC" = "sys" ; then
26517 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26518echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26519 { (exit 1); exit 1; }; }
26520 else
26521 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26522echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26523 wxUSE_ODBC=builtin
26524 fi
26525 else
26526 wxUSE_ODBC=sys
8647bec6 26527 fi
8647bec6 26528 fi
bb41dcbe
VS
26529 if test "$wxUSE_ODBC" != "no" ; then
26530 cat >>confdefs.h <<\_ACEOF
26531#define wxUSE_ODBC 1
26532_ACEOF
e6cc62c6 26533
0bdb08e7
VS
26534 if test "$wxUSE_ODBC" = "builtin" ; then
26535 cat >>confdefs.h <<\_ACEOF
26536#define wxUSE_BUILTIN_IODBC 1
26537_ACEOF
26538
26539 fi
bb41dcbe
VS
26540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26541
26542 WXODBCFLAG="-D_IODBC_"
26543 fi
6232543b 26544fi
21d1c967
GD
26545
26546if test "$wxUSE_REGEX" = "builtin" ; then
26547 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 26548fi
21d1c967
GD
26549if test "$wxUSE_ZLIB" = "builtin" ; then
26550 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
26551fi
26552
74500461
VS
26553if test "$wxUSE_DISPLAY" = "yes"; then
26554 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
26555 echo "$as_me:$LINENO: checking for Xinerama" >&5
26556echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26557
26558ac_find_libraries=
26559for ac_dir in $SEARCH_LIB /usr/lib;
26560 do
26561 for ac_extension in a so sl dylib; do
26562 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26563 ac_find_libraries=$ac_dir
26564 break 2
26565 fi
26566 done
26567 done
26568
26569 if test "$ac_find_libraries" != "" ; then
26570
26571 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26572 result=$?
26573 if test $result = 0; then
26574 ac_path_to_link=""
26575 else
26576 ac_path_to_link=" -L$ac_find_libraries"
26577 fi
26578
26579 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26580 LDFLAGS="$LDFLAGS $ac_path_to_link"
26581 fi
26582 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26583 echo "$as_me:$LINENO: result: yes" >&5
26584echo "${ECHO_T}yes" >&6
505c8ccd
VS
26585
26586 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26587echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26588
26589ac_find_libraries=
26590for ac_dir in $SEARCH_LIB /usr/lib;
26591 do
26592 for ac_extension in a so sl dylib; do
26593 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26594 ac_find_libraries=$ac_dir
26595 break 2
26596 fi
26597 done
26598 done
26599
26600 if test "$ac_find_libraries" != "" ; then
26601 echo "$as_me:$LINENO: result: yes" >&5
26602echo "${ECHO_T}yes" >&6
26603
26604for ac_header in X11/extensions/xf86vmode.h
26605do
26606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26607echo "$as_me:$LINENO: checking for $ac_header" >&5
26608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26609if eval "test \"\${$as_ac_Header+set}\" = set"; then
26610 echo $ECHO_N "(cached) $ECHO_C" >&6
26611else
26612 cat >conftest.$ac_ext <<_ACEOF
26613/* confdefs.h. */
26614_ACEOF
26615cat confdefs.h >>conftest.$ac_ext
26616cat >>conftest.$ac_ext <<_ACEOF
26617/* end confdefs.h. */
26618
26619 #if HAVE_X11_XLIB_H
26620 #include <X11/Xlib.h>
26621 #endif
26622
26623
26624#include <$ac_header>
26625_ACEOF
26626rm -f conftest.$ac_objext
26627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26628 (eval $ac_compile) 2>conftest.er1
26629 ac_status=$?
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
26635 { ac_try='test -z "$ac_c_werror_flag"
26636 || test ! -s conftest.err'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest.$ac_objext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
26648 eval "$as_ac_Header=yes"
26649else
26650 echo "$as_me: failed program was:" >&5
26651sed 's/^/| /' conftest.$ac_ext >&5
26652
26653eval "$as_ac_Header=no"
26654fi
26655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26656fi
26657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26659if test `eval echo '${'$as_ac_Header'}'` = yes; then
26660 cat >>confdefs.h <<_ACEOF
26661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26662_ACEOF
26663
26664 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26665
26666fi
26667
26668done
26669
26670 else
26671 echo "$as_me:$LINENO: result: no" >&5
26672echo "${ECHO_T}no" >&6
26673 fi
26674
74500461
VS
26675 else
26676 echo "$as_me:$LINENO: result: no" >&5
26677echo "${ECHO_T}no" >&6
26678 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
26679echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
26680 wxUSE_DISPLAY="no"
26681 fi
26682 fi
26683fi
26684
8284b0c5 26685
4d264332 26686USE_OPENGL=0
21d1c967 26687if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 26688 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
26689 OPENGL_LIBS="-framework OpenGL -framework AGL"
26690 elif test "$wxUSE_MSW" = 1; then
26691 OPENGL_LIBS="-lopengl32 -lglu32"
26692 else
01aa5863
VS
26693
26694
26695ac_find_includes=
26696for ac_dir in $SEARCH_INCLUDE /usr/include;
26697 do
26698 if test -f "$ac_dir/GL/gl.h"; then
26699 ac_find_includes=$ac_dir
26700 break
26701 fi
26702 done
26703
26704 if test "$ac_find_includes" != "" ; then
26705 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26706echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
26707
26708 if test "x$ac_find_includes" = "x/usr/include"; then
26709 ac_path_to_include=""
26710 else
26711 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26712 result=$?
26713 if test $result = 0; then
26714 ac_path_to_include=""
26715 else
26716 ac_path_to_include=" -I$ac_find_includes"
26717 fi
26718 fi
26719
26720 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
26721 fi
26722
e6cc62c6
VS
26723 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26724 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26725echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26726if test "${ac_cv_header_GL_gl_h+set}" = set; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26728fi
26729echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26730echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26731else
26732 # Is the header compilable?
26733echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26734echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26735cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26736/* confdefs.h. */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h. */
26741$ac_includes_default
21d1c967 26742#include <GL/gl.h>
e6cc62c6
VS
26743_ACEOF
26744rm -f conftest.$ac_objext
26745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 26746 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26747 ac_status=$?
eea650d8
VS
26748 grep -v '^ *+' conftest.er1 >conftest.err
26749 rm -f conftest.er1
26750 cat conftest.err >&5
e6cc62c6
VS
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } &&
eea650d8
VS
26753 { ac_try='test -z "$ac_c_werror_flag"
26754 || test ! -s conftest.err'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; } &&
26760 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762 (eval $ac_try) 2>&5
26763 ac_status=$?
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); }; }; then
26766 ac_header_compiler=yes
26767else
26768 echo "$as_me: failed program was:" >&5
26769sed 's/^/| /' conftest.$ac_ext >&5
26770
26771ac_header_compiler=no
26772fi
eea650d8 26773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26775echo "${ECHO_T}$ac_header_compiler" >&6
26776
26777# Is the header present?
26778echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26779echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26780cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26781/* confdefs.h. */
26782_ACEOF
26783cat confdefs.h >>conftest.$ac_ext
26784cat >>conftest.$ac_ext <<_ACEOF
26785/* end confdefs.h. */
26786#include <GL/gl.h>
26787_ACEOF
26788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26790 ac_status=$?
26791 grep -v '^ *+' conftest.er1 >conftest.err
26792 rm -f conftest.er1
26793 cat conftest.err >&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); } >/dev/null; then
26796 if test -s conftest.err; then
26797 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 26798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26799 else
26800 ac_cpp_err=
26801 fi
26802else
26803 ac_cpp_err=yes
26804fi
26805if test -z "$ac_cpp_err"; then
26806 ac_header_preproc=yes
26807else
26808 echo "$as_me: failed program was:" >&5
26809sed 's/^/| /' conftest.$ac_ext >&5
26810
26811 ac_header_preproc=no
26812fi
26813rm -f conftest.err conftest.$ac_ext
26814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26815echo "${ECHO_T}$ac_header_preproc" >&6
26816
26817# So? What about this header?
eea650d8
VS
26818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26819 yes:no: )
e6cc62c6
VS
26820 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26821echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
26822 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26823echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26824 ac_header_preproc=yes
e6cc62c6 26825 ;;
eea650d8 26826 no:yes:* )
e6cc62c6
VS
26827 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26828echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
eea650d8
VS
26829 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26830echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26832echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26833 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
26834echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26835 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26836echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
26837 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26838echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26839 (
26840 cat <<\_ASBOX
eea650d8
VS
26841## ----------------------------------------- ##
26842## Report this to wx-dev@lists.wxwindows.org ##
26843## ----------------------------------------- ##
e6cc62c6
VS
26844_ASBOX
26845 ) |
26846 sed "s/^/$as_me: WARNING: /" >&2
26847 ;;
26848esac
26849echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26850echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26851if test "${ac_cv_header_GL_gl_h+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26853else
26854 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 26855fi
e6cc62c6
VS
26856echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26857echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26858
698dcdb6 26859fi
e6cc62c6
VS
26860if test $ac_cv_header_GL_gl_h = yes; then
26861
89e3b3e4
VZ
26862 found_gl=0
26863
e6cc62c6
VS
26864 echo "$as_me:$LINENO: checking for -lGL" >&5
26865echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26866
21d1c967 26867ac_find_libraries=
2b5f62a0 26868for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26869 do
26870 for ac_extension in a so sl dylib; do
26871 if test -f "$ac_dir/libGL.$ac_extension"; then
26872 ac_find_libraries=$ac_dir
26873 break 2
26874 fi
26875 done
26876 done
26877
26878 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26879
21d1c967
GD
26880 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26881 result=$?
26882 if test $result = 0; then
26883 ac_path_to_link=""
26884 else
26885 ac_path_to_link=" -L$ac_find_libraries"
26886 fi
26887
89e3b3e4
VZ
26888 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26889 LDFLAGS_GL="$ac_path_to_link"
21d1c967 26890 fi
89e3b3e4 26891
e6cc62c6 26892
89e3b3e4
VZ
26893ac_find_libraries=
26894for ac_dir in $SEARCH_LIB /usr/lib;
26895 do
26896 for ac_extension in a so sl dylib; do
26897 if test -f "$ac_dir/libGLU.$ac_extension"; then
26898 ac_find_libraries=$ac_dir
26899 break 2
26900 fi
26901 done
26902 done
26903
26904 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26905
89e3b3e4
VZ
26906 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26907 result=$?
26908 if test $result = 0; then
26909 ac_path_to_link=""
26910 else
26911 ac_path_to_link=" -L$ac_find_libraries"
26912 fi
26913
26914 if test "$ac_path_to_link" != " -L/usr/lib" -a \
26915 "$ac_path_to_link" != "$LDFLAGS_GL"; then
26916 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26917 fi
26918
26919 found_gl=1
26920 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
26921 echo "$as_me:$LINENO: result: yes" >&5
26922echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
26923 fi
26924 fi
26925
bb41dcbe 26926 if test "$found_gl" != 1; then
e6cc62c6
VS
26927 echo "$as_me:$LINENO: result: no" >&5
26928echo "${ECHO_T}no" >&6
26929 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26930echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26931
21d1c967 26932ac_find_libraries=
2b5f62a0 26933for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26934 do
26935 for ac_extension in a so sl dylib; do
26936 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26937 ac_find_libraries=$ac_dir
26938 break 2
26939 fi
26940 done
26941 done
26942
26943 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26944
21d1c967
GD
26945 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26946 result=$?
26947 if test $result = 0; then
26948 ac_path_to_link=""
26949 else
26950 ac_path_to_link=" -L$ac_find_libraries"
26951 fi
26952
26953 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26954 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
26955 echo "$as_me:$LINENO: result: yes" >&5
26956echo "${ECHO_T}yes" >&6
21d1c967 26957 else
e6cc62c6
VS
26958 echo "$as_me:$LINENO: result: no" >&5
26959echo "${ECHO_T}no" >&6
21d1c967
GD
26960 fi
26961 fi
e6cc62c6 26962
5c6fa7d2 26963fi
52127426 26964
8284b0c5 26965
e6cc62c6 26966
21d1c967 26967 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
26968 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26969echo "$as_me: error: OpenGL libraries not available" >&2;}
26970 { (exit 1); exit 1; }; }
21d1c967
GD
26971 fi
26972 fi
90dd450c 26973
21d1c967 26974 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 26975 USE_OPENGL=1
e6cc62c6 26976 cat >>confdefs.h <<\_ACEOF
21d1c967 26977#define wxUSE_OPENGL 1
e6cc62c6 26978_ACEOF
21d1c967 26979
e6cc62c6 26980 cat >>confdefs.h <<\_ACEOF
21d1c967 26981#define wxUSE_GLCANVAS 1
e6cc62c6 26982_ACEOF
21d1c967 26983
520755bb 26984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 26985 fi
10f2d63a 26986fi
21d1c967
GD
26987
26988if test -z "$TOOLKIT_VPATH" ; then
26989 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 26990fi
21d1c967
GD
26991
26992if test -n "$TOOLKIT" ; then
26993 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26994fi
26995
fe0895cf 26996UNICODE=0
21d1c967
GD
26997lib_unicode_suffix=
26998if test "$wxUSE_UNICODE" = "yes"; then
26999 lib_unicode_suffix=u
fe0895cf 27000 UNICODE=1
90dd450c 27001fi
698dcdb6 27002
21d1c967 27003lib_debug_suffix=
6c67131a 27004DEBUG_FLAG=0
21d1c967
GD
27005if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27006 lib_debug_suffix=d
6c67131a
VS
27007 DEBUG_FLAG=1
27008fi
27009
27010DEBUG_INFO=0
27011if test "$wxUSE_DEBUG_INFO" = "yes"; then
27012 DEBUG_INFO=1
21d1c967 27013fi
698dcdb6 27014
1cbb95a2 27015WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27016
27017TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27018TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27019
27020if test "$cross_compiling" = "yes"; then
27021 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27022 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27023 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27024fi
27025
27026WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27027WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27028WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27029WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27030
27031WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27032WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27033
27034WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27035WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27036WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27037WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27038
27039case "${host}" in
27040 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27041 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27042 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27043 ;;
27044
27045 *-*-darwin* )
e6cc62c6 27046
05159a27
GD
27047 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27048 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27049
27050 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27051 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27052 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27053 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27054
21d1c967 27055 if test "$wxUSE_MAC" = 1; then
f346733b
GD
27056 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27057 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27058 fi
27059 ;;
27060esac
27061
27062WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27063WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27064
27065WXCONFIG_LIBS="-l${WX_LIBRARY}"
27066WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27067
27068if test "$wxUSE_OPENGL" = "yes"; then
27069 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27070 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27071fi
27072
8284b0c5
MB
27073
27074
21d1c967
GD
27075if test "$wxUSE_SHARED" = "yes"; then
27076 case "${host}" in
27077 *-pc-os2_emx | *-pc-os2-emx | \
27078 *-pc-msdosdjgpp )
27079 wxUSE_SHARED=no
e6cc62c6
VS
27080 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27081echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27082 ;;
27083 esac
27084fi
27085
fe0895cf 27086SHARED=0
2b5f62a0 27087if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27088 SHARED=1
2b5f62a0 27089
e6cc62c6 27090
2b5f62a0
VZ
27091 found_versioning=no
27092
e6cc62c6 27093
2b5f62a0 27094 if test $found_versioning = no ; then
e6cc62c6
VS
27095 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27096echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27097if test "${wx_cv_version_script+set}" = set; then
27098 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27099else
e6cc62c6 27100
2b5f62a0
VZ
27101 echo "VER_1 { *; };" >conftest.sym
27102 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27103
2b5f62a0
VZ
27104 if { ac_try='
27105 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27106 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108 (eval $ac_try) 2>&5
27109 ac_status=$?
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27112 if test -s conftest.stderr ; then
27113 wx_cv_version_script=no
27114 else
27115 wx_cv_version_script=yes
27116 fi
27117 else
27118 wx_cv_version_script=no
27119 fi
27120 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27121
e6cc62c6
VS
27122fi
27123echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27124echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27125 if test $wx_cv_version_script = yes ; then
e6cc62c6 27126 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27127 fi
27128 fi
21d1c967 27129
21d1c967 27130
21d1c967 27131 case "${host}" in
fe0895cf 27132 *-*-linux* | *-*-gnu* )
e6cc62c6 27133 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27134 ;;
21d1c967
GD
27135
27136 *-*-solaris2* )
27137 if test "$GCC" = yes ; then
27138 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27139
27140 saveLdflags="$LDFLAGS"
27141 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27142 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27143echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27144 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27145/* confdefs.h. */
27146_ACEOF
27147cat confdefs.h >>conftest.$ac_ext
27148cat >>conftest.$ac_ext <<_ACEOF
27149/* end confdefs.h. */
27150
27151int
27152main ()
27153{
fe0895cf 27154
e6cc62c6
VS
27155 ;
27156 return 0;
27157}
27158_ACEOF
27159rm -f conftest.$ac_objext conftest$ac_exeext
27160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 27161 (eval $ac_link) 2>conftest.er1
e6cc62c6 27162 ac_status=$?
eea650d8
VS
27163 grep -v '^ *+' conftest.er1 >conftest.err
27164 rm -f conftest.er1
27165 cat conftest.err >&5
e6cc62c6
VS
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); } &&
eea650d8
VS
27168 { ac_try='test -z "$ac_c_werror_flag"
27169 || test ! -s conftest.err'
27170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; } &&
27175 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177 (eval $ac_try) 2>&5
27178 ac_status=$?
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); }; }; then
27181
27182 echo "$as_me:$LINENO: result: yes" >&5
27183echo "${ECHO_T}yes" >&6
27184 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27185
27186else
27187 echo "$as_me: failed program was:" >&5
27188sed 's/^/| /' conftest.$ac_ext >&5
27189
27190
27191 echo "$as_me:$LINENO: result: no" >&5
27192echo "${ECHO_T}no" >&6
27193 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27194echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27195 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27196 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27197/* confdefs.h. */
27198_ACEOF
27199cat confdefs.h >>conftest.$ac_ext
27200cat >>conftest.$ac_ext <<_ACEOF
27201/* end confdefs.h. */
27202
27203int
27204main ()
27205{
27206
27207 ;
27208 return 0;
27209}
27210_ACEOF
27211rm -f conftest.$ac_objext conftest$ac_exeext
27212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 27213 (eval $ac_link) 2>conftest.er1
e6cc62c6 27214 ac_status=$?
eea650d8
VS
27215 grep -v '^ *+' conftest.er1 >conftest.err
27216 rm -f conftest.er1
27217 cat conftest.err >&5
e6cc62c6
VS
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } &&
eea650d8
VS
27220 { ac_try='test -z "$ac_c_werror_flag"
27221 || test ! -s conftest.err'
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; } &&
27227 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
27233
27234 echo "$as_me:$LINENO: result: yes" >&5
27235echo "${ECHO_T}yes" >&6
27236 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27237else
27238 echo "$as_me: failed program was:" >&5
27239sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27240
fe0895cf 27241
e6cc62c6
VS
27242 echo "$as_me:$LINENO: result: no" >&5
27243echo "${ECHO_T}no" >&6
27244
fe0895cf 27245fi
eea650d8
VS
27246rm -f conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27248
27249fi
eea650d8
VS
27250rm -f conftest.err conftest.$ac_objext \
27251 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27252 LDFLAGS="$saveLdflags"
21d1c967
GD
27253 else
27254 SHARED_LD="${CXX} -G -o"
27255 PIC_FLAG="-KPIC"
e6cc62c6 27256 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27257 fi
27258 ;;
0f1bc9c2
VS
27259
27260 powerpc-*-darwin* )
ef0add05
VS
27261 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27262 cat <<EOF >change-install-names
27263#!/bin/sh
27264libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27265inst_cmd="install_name_tool "
27266for i in \${libnames} ; do
27267 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27268done
27269\${inst_cmd} \${3}
27270EOF
27271 chmod +x change-install-names
0f1bc9c2
VS
27272 ;;
27273
21d1c967
GD
27274 esac
27275
27276 if test "x$WX_TARGET_LIBRARY" = "x"; then
27277 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27278 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27279 fi
27280
27281 WX_TARGET_LIBRARY_TYPE="so"
27282 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27283fi
10f2d63a 27284
21d1c967
GD
27285if test "$wxUSE_SHARED" = "no"; then
27286
27287 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27288 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27289 fi
27290
ac0c4cc3 27291 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27292 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27293 fi
27294
27295 if test "$wxUSE_OPENGL" = "yes"; then
27296 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27297 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27298 else
27299 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27300 fi
27301
27302 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27303 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27304
27305 WX_TARGET_LIBRARY_TYPE="a"
27306 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27307
27308 STATIC_FLAG="yes"
27309else
27310 STATIC_FLAG="no"
90dd450c 27311fi
1e487827 27312
93fac604
VZ
27313MACRESCOMP="@#"
27314MACSETFILE="@#"
36825681 27315MACRESWXCONFIG="#"
21d1c967 27316if test "$wxUSE_MAC" = 1; then
e6cc62c6 27317 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27318 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27319 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27320 # Extract the first word of "Rez", so it can be a program name with args.
27321set dummy Rez; ac_word=$2
e6cc62c6
VS
27322echo "$as_me:$LINENO: checking for $ac_word" >&5
27323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27324if test "${ac_cv_prog_RESCOMP+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27326else
21d1c967
GD
27327 if test -n "$RESCOMP"; then
27328 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27329else
e6cc62c6
VS
27330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27331for as_dir in $PATH
27332do
27333 IFS=$as_save_IFS
27334 test -z "$as_dir" && as_dir=.
27335 for ac_exec_ext in '' $ac_executable_extensions; do
27336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27337 ac_cv_prog_RESCOMP="Rez"
27338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27339 break 2
27340 fi
27341done
27342done
27343
21d1c967 27344 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27345fi
b93d0d08 27346fi
e6cc62c6 27347RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27348if test -n "$RESCOMP"; then
e6cc62c6
VS
27349 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27350echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27351else
e6cc62c6
VS
27352 echo "$as_me:$LINENO: result: no" >&5
27353echo "${ECHO_T}no" >&6
90dd450c 27354fi
b93d0d08 27355
21d1c967
GD
27356 # Extract the first word of "DeRez", so it can be a program name with args.
27357set dummy DeRez; ac_word=$2
e6cc62c6
VS
27358echo "$as_me:$LINENO: checking for $ac_word" >&5
27359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27360if test "${ac_cv_prog_DEREZ+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27362else
21d1c967
GD
27363 if test -n "$DEREZ"; then
27364 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27365else
e6cc62c6
VS
27366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27367for as_dir in $PATH
27368do
27369 IFS=$as_save_IFS
27370 test -z "$as_dir" && as_dir=.
27371 for ac_exec_ext in '' $ac_executable_extensions; do
27372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27373 ac_cv_prog_DEREZ="DeRez"
27374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27375 break 2
27376 fi
27377done
27378done
27379
21d1c967 27380 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27381fi
90dd450c 27382fi
e6cc62c6 27383DEREZ=$ac_cv_prog_DEREZ
21d1c967 27384if test -n "$DEREZ"; then
e6cc62c6
VS
27385 echo "$as_me:$LINENO: result: $DEREZ" >&5
27386echo "${ECHO_T}$DEREZ" >&6
90dd450c 27387else
e6cc62c6
VS
27388 echo "$as_me:$LINENO: result: no" >&5
27389echo "${ECHO_T}no" >&6
3a922bb4 27390fi
698dcdb6 27391
36825681
GD
27392 # Extract the first word of "SetFile", so it can be a program name with args.
27393set dummy SetFile; ac_word=$2
e6cc62c6
VS
27394echo "$as_me:$LINENO: checking for $ac_word" >&5
27395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27396if test "${ac_cv_prog_SETFILE+set}" = set; then
27397 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27398else
27399 if test -n "$SETFILE"; then
27400 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27401else
e6cc62c6
VS
27402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27403for as_dir in $PATH
27404do
27405 IFS=$as_save_IFS
27406 test -z "$as_dir" && as_dir=.
27407 for ac_exec_ext in '' $ac_executable_extensions; do
27408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27409 ac_cv_prog_SETFILE="SetFile"
27410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27411 break 2
27412 fi
27413done
27414done
27415
36825681
GD
27416 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27417fi
27418fi
e6cc62c6 27419SETFILE=$ac_cv_prog_SETFILE
36825681 27420if test -n "$SETFILE"; then
e6cc62c6
VS
27421 echo "$as_me:$LINENO: result: $SETFILE" >&5
27422echo "${ECHO_T}$SETFILE" >&6
36825681 27423else
e6cc62c6
VS
27424 echo "$as_me:$LINENO: result: no" >&5
27425echo "${ECHO_T}no" >&6
36825681
GD
27426fi
27427
21d1c967 27428 MACOSX_BUNDLE="bundle"
36825681
GD
27429 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27430 MACSETFILE="\$(SETFILE)"
9711d31e 27431 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
27432elif test "$wxUSE_COCOA" = 1; then
27433 # Extract the first word of "Rez", so it can be a program name with args.
27434set dummy Rez; ac_word=$2
e6cc62c6
VS
27435echo "$as_me:$LINENO: checking for $ac_word" >&5
27436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27437if test "${ac_cv_prog_RESCOMP+set}" = set; then
27438 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27439else
27440 if test -n "$RESCOMP"; then
27441 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27442else
e6cc62c6
VS
27443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27444for as_dir in $PATH
27445do
27446 IFS=$as_save_IFS
27447 test -z "$as_dir" && as_dir=.
27448 for ac_exec_ext in '' $ac_executable_extensions; do
27449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27450 ac_cv_prog_RESCOMP="Rez"
27451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27452 break 2
27453 fi
27454done
27455done
27456
64440d77
DE
27457 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27458fi
27459fi
e6cc62c6 27460RESCOMP=$ac_cv_prog_RESCOMP
64440d77 27461if test -n "$RESCOMP"; then
e6cc62c6
VS
27462 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27463echo "${ECHO_T}$RESCOMP" >&6
64440d77 27464else
e6cc62c6
VS
27465 echo "$as_me:$LINENO: result: no" >&5
27466echo "${ECHO_T}no" >&6
64440d77
DE
27467fi
27468
27469 # Extract the first word of "DeRez", so it can be a program name with args.
27470set dummy DeRez; ac_word=$2
e6cc62c6
VS
27471echo "$as_me:$LINENO: checking for $ac_word" >&5
27472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27473if test "${ac_cv_prog_DEREZ+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27475else
27476 if test -n "$DEREZ"; then
27477 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27478else
e6cc62c6
VS
27479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27480for as_dir in $PATH
27481do
27482 IFS=$as_save_IFS
27483 test -z "$as_dir" && as_dir=.
27484 for ac_exec_ext in '' $ac_executable_extensions; do
27485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27486 ac_cv_prog_DEREZ="DeRez"
27487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27488 break 2
27489 fi
27490done
27491done
27492
64440d77
DE
27493 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27494fi
27495fi
e6cc62c6 27496DEREZ=$ac_cv_prog_DEREZ
64440d77 27497if test -n "$DEREZ"; then
e6cc62c6
VS
27498 echo "$as_me:$LINENO: result: $DEREZ" >&5
27499echo "${ECHO_T}$DEREZ" >&6
64440d77 27500else
e6cc62c6
VS
27501 echo "$as_me:$LINENO: result: no" >&5
27502echo "${ECHO_T}no" >&6
64440d77
DE
27503fi
27504
27505 # Extract the first word of "SetFile", so it can be a program name with args.
27506set dummy SetFile; ac_word=$2
e6cc62c6
VS
27507echo "$as_me:$LINENO: checking for $ac_word" >&5
27508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27509if test "${ac_cv_prog_SETFILE+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27511else
27512 if test -n "$SETFILE"; then
27513 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27514else
e6cc62c6
VS
27515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27516for as_dir in $PATH
27517do
27518 IFS=$as_save_IFS
27519 test -z "$as_dir" && as_dir=.
27520 for ac_exec_ext in '' $ac_executable_extensions; do
27521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27522 ac_cv_prog_SETFILE="SetFile"
27523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27524 break 2
27525 fi
27526done
27527done
27528
64440d77
DE
27529 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27530fi
27531fi
e6cc62c6 27532SETFILE=$ac_cv_prog_SETFILE
64440d77 27533if test -n "$SETFILE"; then
e6cc62c6
VS
27534 echo "$as_me:$LINENO: result: $SETFILE" >&5
27535echo "${ECHO_T}$SETFILE" >&6
64440d77 27536else
e6cc62c6
VS
27537 echo "$as_me:$LINENO: result: no" >&5
27538echo "${ECHO_T}no" >&6
64440d77
DE
27539fi
27540
27541 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27542 MACSETFILE="\$(SETFILE)"
9711d31e 27543 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
27544else
27545 if test "$wxUSE_PM" = 1; then
36825681 27546 MACRESCOMP="emxbind -ep"
90dd450c 27547 fi
4f14bcd8 27548fi
10f2d63a 27549
8284b0c5 27550
e6cc62c6
VS
27551echo "$as_me:$LINENO: checking for mode_t" >&5
27552echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27553if test "${ac_cv_type_mode_t+set}" = set; then
27554 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 27555else
e6cc62c6 27556 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27557/* confdefs.h. */
27558_ACEOF
27559cat confdefs.h >>conftest.$ac_ext
27560cat >>conftest.$ac_ext <<_ACEOF
27561/* end confdefs.h. */
27562$ac_includes_default
27563int
27564main ()
27565{
27566if ((mode_t *) 0)
27567 return 0;
27568if (sizeof (mode_t))
27569 return 0;
27570 ;
27571 return 0;
27572}
27573_ACEOF
27574rm -f conftest.$ac_objext
27575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27576 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27577 ac_status=$?
eea650d8
VS
27578 grep -v '^ *+' conftest.er1 >conftest.err
27579 rm -f conftest.er1
27580 cat conftest.err >&5
e6cc62c6
VS
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); } &&
eea650d8
VS
27583 { ac_try='test -z "$ac_c_werror_flag"
27584 || test ! -s conftest.err'
27585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586 (eval $ac_try) 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } &&
27590 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592 (eval $ac_try) 2>&5
27593 ac_status=$?
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; }; then
27596 ac_cv_type_mode_t=yes
a0b9e27f 27597else
e6cc62c6
VS
27598 echo "$as_me: failed program was:" >&5
27599sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27600
e6cc62c6 27601ac_cv_type_mode_t=no
a0b9e27f 27602fi
eea650d8 27603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 27604fi
e6cc62c6
VS
27605echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27606echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27607if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
27608 :
27609else
a0b9e27f 27610
e6cc62c6
VS
27611cat >>confdefs.h <<_ACEOF
27612#define mode_t int
27613_ACEOF
8284b0c5
MB
27614
27615fi
27616
e6cc62c6
VS
27617echo "$as_me:$LINENO: checking for off_t" >&5
27618echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27619if test "${ac_cv_type_off_t+set}" = set; then
27620 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27621else
e6cc62c6 27622 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27623/* confdefs.h. */
27624_ACEOF
27625cat confdefs.h >>conftest.$ac_ext
27626cat >>conftest.$ac_ext <<_ACEOF
27627/* end confdefs.h. */
27628$ac_includes_default
27629int
27630main ()
27631{
27632if ((off_t *) 0)
27633 return 0;
27634if (sizeof (off_t))
27635 return 0;
27636 ;
27637 return 0;
27638}
27639_ACEOF
27640rm -f conftest.$ac_objext
27641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27642 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27643 ac_status=$?
eea650d8
VS
27644 grep -v '^ *+' conftest.er1 >conftest.err
27645 rm -f conftest.er1
27646 cat conftest.err >&5
e6cc62c6
VS
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); } &&
eea650d8
VS
27649 { ac_try='test -z "$ac_c_werror_flag"
27650 || test ! -s conftest.err'
27651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; } &&
27656 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658 (eval $ac_try) 2>&5
27659 ac_status=$?
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; }; then
27662 ac_cv_type_off_t=yes
5c6fa7d2 27663else
e6cc62c6
VS
27664 echo "$as_me: failed program was:" >&5
27665sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27666
e6cc62c6 27667ac_cv_type_off_t=no
8284b0c5 27668fi
eea650d8 27669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 27670fi
e6cc62c6
VS
27671echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27672echo "${ECHO_T}$ac_cv_type_off_t" >&6
27673if test $ac_cv_type_off_t = yes; then
27674 :
247f5006
VZ
27675else
27676
e6cc62c6 27677cat >>confdefs.h <<_ACEOF
90dd450c 27678#define off_t long
e6cc62c6 27679_ACEOF
10f2d63a 27680
90dd450c 27681fi
10f2d63a 27682
e6cc62c6
VS
27683echo "$as_me:$LINENO: checking for pid_t" >&5
27684echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27685if test "${ac_cv_type_pid_t+set}" = set; then
27686 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27687else
e6cc62c6 27688 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27689/* confdefs.h. */
27690_ACEOF
27691cat confdefs.h >>conftest.$ac_ext
27692cat >>conftest.$ac_ext <<_ACEOF
27693/* end confdefs.h. */
27694$ac_includes_default
27695int
27696main ()
27697{
27698if ((pid_t *) 0)
27699 return 0;
27700if (sizeof (pid_t))
27701 return 0;
27702 ;
27703 return 0;
27704}
27705_ACEOF
27706rm -f conftest.$ac_objext
27707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27708 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27709 ac_status=$?
eea650d8
VS
27710 grep -v '^ *+' conftest.er1 >conftest.err
27711 rm -f conftest.er1
27712 cat conftest.err >&5
e6cc62c6
VS
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } &&
eea650d8
VS
27715 { ac_try='test -z "$ac_c_werror_flag"
27716 || test ! -s conftest.err'
27717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718 (eval $ac_try) 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; } &&
27722 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; }; then
90dd450c 27728 ac_cv_type_pid_t=yes
698dcdb6 27729else
e6cc62c6
VS
27730 echo "$as_me: failed program was:" >&5
27731sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27732
e6cc62c6
VS
27733ac_cv_type_pid_t=no
27734fi
eea650d8 27735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27736fi
e6cc62c6
VS
27737echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27738echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27739if test $ac_cv_type_pid_t = yes; then
27740 :
27741else
27742
27743cat >>confdefs.h <<_ACEOF
90dd450c 27744#define pid_t int
e6cc62c6 27745_ACEOF
10f2d63a 27746
7b4a847f
RR
27747fi
27748
e6cc62c6
VS
27749echo "$as_me:$LINENO: checking for size_t" >&5
27750echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27751if test "${ac_cv_type_size_t+set}" = set; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 27753else
e6cc62c6 27754 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760$ac_includes_default
27761int
27762main ()
27763{
27764if ((size_t *) 0)
27765 return 0;
27766if (sizeof (size_t))
27767 return 0;
27768 ;
27769 return 0;
27770}
27771_ACEOF
27772rm -f conftest.$ac_objext
27773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27774 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27775 ac_status=$?
eea650d8
VS
27776 grep -v '^ *+' conftest.er1 >conftest.err
27777 rm -f conftest.er1
27778 cat conftest.err >&5
e6cc62c6
VS
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); } &&
eea650d8
VS
27781 { ac_try='test -z "$ac_c_werror_flag"
27782 || test ! -s conftest.err'
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); }; } &&
27788 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; }; then
90dd450c 27794 ac_cv_type_size_t=yes
18dbb1f6 27795else
e6cc62c6
VS
27796 echo "$as_me: failed program was:" >&5
27797sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27798
e6cc62c6 27799ac_cv_type_size_t=no
a0b9e27f 27800fi
eea650d8 27801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27802fi
27803echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27804echo "${ECHO_T}$ac_cv_type_size_t" >&6
27805if test $ac_cv_type_size_t = yes; then
27806 :
27807else
27808
27809cat >>confdefs.h <<_ACEOF
90dd450c 27810#define size_t unsigned
e6cc62c6 27811_ACEOF
90dd450c
VZ
27812
27813fi
27814
e6cc62c6
VS
27815echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27816echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27817if test "${ac_cv_type_uid_t+set}" = set; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 27819else
e6cc62c6 27820 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27821/* confdefs.h. */
27822_ACEOF
27823cat confdefs.h >>conftest.$ac_ext
27824cat >>conftest.$ac_ext <<_ACEOF
27825/* end confdefs.h. */
90dd450c 27826#include <sys/types.h>
e6cc62c6
VS
27827
27828_ACEOF
90dd450c 27829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 27830 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 27831 ac_cv_type_uid_t=yes
b3e8d00a 27832else
90dd450c 27833 ac_cv_type_uid_t=no
b3e8d00a 27834fi
90dd450c 27835rm -f conftest*
b3e8d00a 27836
4f14bcd8 27837fi
e6cc62c6
VS
27838echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27839echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 27840if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
27841
27842cat >>confdefs.h <<\_ACEOF
90dd450c 27843#define uid_t int
e6cc62c6 27844_ACEOF
247f5006 27845
e6cc62c6
VS
27846
27847cat >>confdefs.h <<\_ACEOF
90dd450c 27848#define gid_t int
e6cc62c6 27849_ACEOF
4f14bcd8 27850
b3e8d00a 27851fi
b3e8d00a 27852
8284b0c5
MB
27853
27854
e6cc62c6
VS
27855
27856ac_ext=cc
4f14bcd8 27857ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27861
27862echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27863echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27864if test "${wx_cv_size_t_is_uint+set}" = set; then
27865 echo $ECHO_N "(cached) $ECHO_C" >&6
27866else
27867
27868 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27869/* confdefs.h. */
27870_ACEOF
27871cat confdefs.h >>conftest.$ac_ext
27872cat >>conftest.$ac_ext <<_ACEOF
27873/* end confdefs.h. */
90dd450c 27874#include <stddef.h>
e6cc62c6
VS
27875int
27876main ()
27877{
90dd450c
VZ
27878
27879 return 0; }
27880
27881 struct Foo { void foo(size_t); void foo(unsigned int); };
27882
27883 int bar() {
e6cc62c6
VS
27884
27885 ;
27886 return 0;
27887}
27888_ACEOF
27889rm -f conftest.$ac_objext
27890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27891 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27892 ac_status=$?
eea650d8
VS
27893 grep -v '^ *+' conftest.er1 >conftest.err
27894 rm -f conftest.er1
27895 cat conftest.err >&5
e6cc62c6
VS
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); } &&
eea650d8
VS
27898 { ac_try='test -z "$ac_cxx_werror_flag"
27899 || test ! -s conftest.err'
27900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; } &&
27905 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27907 (eval $ac_try) 2>&5
27908 ac_status=$?
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); }; }; then
90dd450c 27911 wx_cv_size_t_is_uint=no
698dcdb6 27912else
e6cc62c6
VS
27913 echo "$as_me: failed program was:" >&5
27914sed 's/^/| /' conftest.$ac_ext >&5
27915
27916wx_cv_size_t_is_uint=yes
8284b0c5 27917
247f5006 27918fi
eea650d8 27919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 27920
a0b9e27f 27921
e6cc62c6
VS
27922fi
27923echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27924echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 27925
90dd450c 27926if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 27927 cat >>confdefs.h <<\_ACEOF
90dd450c 27928#define wxSIZE_T_IS_UINT 1
e6cc62c6 27929_ACEOF
698dcdb6 27930
90dd450c 27931else
e6cc62c6
VS
27932 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27933echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27934if test "${wx_cv_size_t_is_ulong+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 27936else
e6cc62c6 27937 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27938/* confdefs.h. */
27939_ACEOF
27940cat confdefs.h >>conftest.$ac_ext
27941cat >>conftest.$ac_ext <<_ACEOF
27942/* end confdefs.h. */
90dd450c 27943#include <stddef.h>
e6cc62c6
VS
27944int
27945main ()
27946{
90dd450c
VZ
27947
27948 return 0; }
27949
27950 struct Foo { void foo(size_t); void foo(unsigned long); };
27951
27952 int bar() {
e6cc62c6
VS
27953
27954 ;
27955 return 0;
27956}
27957_ACEOF
27958rm -f conftest.$ac_objext
27959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27960 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27961 ac_status=$?
eea650d8
VS
27962 grep -v '^ *+' conftest.er1 >conftest.err
27963 rm -f conftest.er1
27964 cat conftest.err >&5
e6cc62c6
VS
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } &&
eea650d8
VS
27967 { ac_try='test -z "$ac_cxx_werror_flag"
27968 || test ! -s conftest.err'
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; } &&
27974 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
90dd450c 27980 wx_cv_size_t_is_ulong=no
698dcdb6 27981else
e6cc62c6
VS
27982 echo "$as_me: failed program was:" >&5
27983sed 's/^/| /' conftest.$ac_ext >&5
27984
27985wx_cv_size_t_is_ulong=yes
27986
247f5006 27987fi
eea650d8 27988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27989
e6cc62c6
VS
27990fi
27991echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27992echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 27993
90dd450c 27994 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 27995 cat >>confdefs.h <<\_ACEOF
90dd450c 27996#define wxSIZE_T_IS_ULONG 1
e6cc62c6 27997_ACEOF
4f14bcd8
GD
27998
27999 fi
90dd450c 28000fi
1e487827 28001
90dd450c 28002ac_ext=c
4f14bcd8 28003ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28006ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 28007
5c6fa7d2 28008
8284b0c5 28009
e6cc62c6
VS
28010echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28011echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28012if test "${wx_cv_struct_pw_gecos+set}" = set; then
28013 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28014else
e6cc62c6
VS
28015
28016 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28017/* confdefs.h. */
28018_ACEOF
28019cat confdefs.h >>conftest.$ac_ext
28020cat >>conftest.$ac_ext <<_ACEOF
28021/* end confdefs.h. */
90dd450c 28022#include <pwd.h>
e6cc62c6
VS
28023int
28024main ()
28025{
f6bcfd97 28026
90dd450c
VZ
28027 char *p;
28028 struct passwd *pw;
28029 p = pw->pw_gecos;
e6cc62c6
VS
28030
28031 ;
28032 return 0;
28033}
28034_ACEOF
28035rm -f conftest.$ac_objext
28036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28037 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28038 ac_status=$?
eea650d8
VS
28039 grep -v '^ *+' conftest.er1 >conftest.err
28040 rm -f conftest.er1
28041 cat conftest.err >&5
e6cc62c6
VS
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); } &&
eea650d8
VS
28044 { ac_try='test -z "$ac_c_werror_flag"
28045 || test ! -s conftest.err'
28046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28047 (eval $ac_try) 2>&5
28048 ac_status=$?
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); }; } &&
28051 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 (eval $ac_try) 2>&5
28054 ac_status=$?
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; }; then
28057
90dd450c 28058 wx_cv_struct_pw_gecos=yes
e6cc62c6 28059
10f2d63a 28060else
e6cc62c6
VS
28061 echo "$as_me: failed program was:" >&5
28062sed 's/^/| /' conftest.$ac_ext >&5
28063
28064
90dd450c 28065 wx_cv_struct_pw_gecos=no
e6cc62c6 28066
247f5006
VZ
28067
28068fi
eea650d8 28069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28070
e6cc62c6
VS
28071
28072fi
28073echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28074echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 28075
90dd450c 28076if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 28077 cat >>confdefs.h <<\_ACEOF
90dd450c 28078#define HAVE_PW_GECOS 1
e6cc62c6 28079_ACEOF
c521c494 28080
90dd450c 28081fi
4f14bcd8 28082
8284b0c5 28083
d29b553b 28084if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 28085 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28086#define wxUSE_WCHAR_T 1
e6cc62c6 28087_ACEOF
d74f4b5a 28088
8284b0c5 28089
d74f4b5a
VZ
28090 WCSLEN_FOUND=0
28091 WCHAR_LINK=
e6cc62c6
VS
28092
28093for ac_func in wcslen
7a30264c 28094do
e6cc62c6
VS
28095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28096echo "$as_me:$LINENO: checking for $ac_func" >&5
28097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28098if eval "test \"\${$as_ac_var+set}\" = set"; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28100else
28101 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28102/* confdefs.h. */
28103_ACEOF
28104cat confdefs.h >>conftest.$ac_ext
28105cat >>conftest.$ac_ext <<_ACEOF
28106/* end confdefs.h. */
eea650d8
VS
28107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28109#define $ac_func innocuous_$ac_func
28110
7a30264c 28111/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28112 which can conflict with char $ac_func (); below.
28113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28114 <limits.h> exists even on freestanding compilers. */
eea650d8 28115
e6cc62c6
VS
28116#ifdef __STDC__
28117# include <limits.h>
28118#else
28119# include <assert.h>
28120#endif
eea650d8
VS
28121
28122#undef $ac_func
28123
4f14bcd8 28124/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28125#ifdef __cplusplus
28126extern "C"
28127{
28128#endif
4f14bcd8 28129/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28130 builtin and then its argument prototype would still apply. */
28131char $ac_func ();
7a30264c
VZ
28132/* The GNU C library defines this for functions which it implements
28133 to always fail with ENOSYS. Some functions are actually named
28134 something starting with __ and the normal name is an alias. */
28135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28136choke me
28137#else
e6cc62c6
VS
28138char (*f) () = $ac_func;
28139#endif
28140#ifdef __cplusplus
28141}
7a30264c
VZ
28142#endif
28143
e6cc62c6
VS
28144int
28145main ()
28146{
28147return f != $ac_func;
28148 ;
28149 return 0;
28150}
28151_ACEOF
28152rm -f conftest.$ac_objext conftest$ac_exeext
28153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28154 (eval $ac_link) 2>conftest.er1
e6cc62c6 28155 ac_status=$?
eea650d8
VS
28156 grep -v '^ *+' conftest.er1 >conftest.err
28157 rm -f conftest.er1
28158 cat conftest.err >&5
e6cc62c6
VS
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); } &&
eea650d8
VS
28161 { ac_try='test -z "$ac_c_werror_flag"
28162 || test ! -s conftest.err'
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; } &&
28168 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28170 (eval $ac_try) 2>&5
28171 ac_status=$?
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); }; }; then
28174 eval "$as_ac_var=yes"
28175else
28176 echo "$as_me: failed program was:" >&5
28177sed 's/^/| /' conftest.$ac_ext >&5
28178
28179eval "$as_ac_var=no"
28180fi
eea650d8
VS
28181rm -f conftest.err conftest.$ac_objext \
28182 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28183fi
28184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28186if test `eval echo '${'$as_ac_var'}'` = yes; then
28187 cat >>confdefs.h <<_ACEOF
28188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28189_ACEOF
d74f4b5a 28190 WCSLEN_FOUND=1
7a30264c
VZ
28191fi
28192done
9d8deca0 28193
8284b0c5 28194
d74f4b5a 28195 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28196 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28197 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28198echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28199if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28200 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28201else
e6cc62c6 28202 ac_check_lib_save_LIBS=$LIBS
7a30264c 28203LIBS="-lmsvcrt $LIBS"
e6cc62c6 28204cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28205/* confdefs.h. */
28206_ACEOF
28207cat confdefs.h >>conftest.$ac_ext
28208cat >>conftest.$ac_ext <<_ACEOF
28209/* end confdefs.h. */
28210
4f14bcd8 28211/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28212#ifdef __cplusplus
28213extern "C"
28214#endif
4f14bcd8 28215/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28216 builtin and then its argument prototype would still apply. */
28217char wcslen ();
28218int
28219main ()
28220{
28221wcslen ();
28222 ;
28223 return 0;
28224}
28225_ACEOF
28226rm -f conftest.$ac_objext conftest$ac_exeext
28227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28228 (eval $ac_link) 2>conftest.er1
e6cc62c6 28229 ac_status=$?
eea650d8
VS
28230 grep -v '^ *+' conftest.er1 >conftest.err
28231 rm -f conftest.er1
28232 cat conftest.err >&5
e6cc62c6
VS
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); } &&
eea650d8
VS
28235 { ac_try='test -z "$ac_c_werror_flag"
28236 || test ! -s conftest.err'
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; } &&
28242 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28244 (eval $ac_try) 2>&5
28245 ac_status=$?
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; }; then
28248 ac_cv_lib_msvcrt_wcslen=yes
28249else
28250 echo "$as_me: failed program was:" >&5
28251sed 's/^/| /' conftest.$ac_ext >&5
28252
28253ac_cv_lib_msvcrt_wcslen=no
28254fi
eea650d8
VS
28255rm -f conftest.err conftest.$ac_objext \
28256 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28257LIBS=$ac_check_lib_save_LIBS
28258fi
28259echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28260echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28261if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28262 WCHAR_OK=1
d29b553b 28263fi
698dcdb6 28264
7a30264c 28265 else
e6cc62c6
VS
28266 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28267echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28268if test "${ac_cv_lib_w_wcslen+set}" = set; then
28269 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28270else
e6cc62c6 28271 ac_check_lib_save_LIBS=$LIBS
7a30264c 28272LIBS="-lw $LIBS"
e6cc62c6 28273cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28274/* confdefs.h. */
28275_ACEOF
28276cat confdefs.h >>conftest.$ac_ext
28277cat >>conftest.$ac_ext <<_ACEOF
28278/* end confdefs.h. */
28279
4f14bcd8 28280/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28281#ifdef __cplusplus
28282extern "C"
28283#endif
4f14bcd8 28284/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28285 builtin and then its argument prototype would still apply. */
28286char wcslen ();
28287int
28288main ()
28289{
28290wcslen ();
28291 ;
28292 return 0;
28293}
28294_ACEOF
28295rm -f conftest.$ac_objext conftest$ac_exeext
28296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28297 (eval $ac_link) 2>conftest.er1
e6cc62c6 28298 ac_status=$?
eea650d8
VS
28299 grep -v '^ *+' conftest.er1 >conftest.err
28300 rm -f conftest.er1
28301 cat conftest.err >&5
e6cc62c6
VS
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } &&
eea650d8
VS
28304 { ac_try='test -z "$ac_c_werror_flag"
28305 || test ! -s conftest.err'
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
28311 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ac_cv_lib_w_wcslen=yes
28318else
28319 echo "$as_me: failed program was:" >&5
28320sed 's/^/| /' conftest.$ac_ext >&5
28321
28322ac_cv_lib_w_wcslen=no
28323fi
eea650d8
VS
28324rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28326LIBS=$ac_check_lib_save_LIBS
28327fi
28328echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28329echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28330if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28331
7a30264c 28332 WCHAR_LINK=" -lw"
d74f4b5a 28333 WCSLEN_FOUND=1
e6cc62c6 28334
4f14bcd8 28335fi
10f2d63a 28336
7a30264c 28337 fi
d29b553b 28338 fi
95c8801c 28339
d74f4b5a 28340 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28341 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28342#define HAVE_WCSLEN 1
e6cc62c6 28343_ACEOF
10f2d63a 28344
d74f4b5a 28345 fi
52127426 28346
e6cc62c6
VS
28347
28348for ac_func in wcsrtombs
eb4efbdc 28349do
e6cc62c6
VS
28350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28351echo "$as_me:$LINENO: checking for $ac_func" >&5
28352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28353if eval "test \"\${$as_ac_var+set}\" = set"; then
28354 echo $ECHO_N "(cached) $ECHO_C" >&6
28355else
28356 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28357/* confdefs.h. */
28358_ACEOF
28359cat confdefs.h >>conftest.$ac_ext
28360cat >>conftest.$ac_ext <<_ACEOF
28361/* end confdefs.h. */
eea650d8
VS
28362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28364#define $ac_func innocuous_$ac_func
28365
eb4efbdc 28366/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28367 which can conflict with char $ac_func (); below.
28368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28369 <limits.h> exists even on freestanding compilers. */
eea650d8 28370
e6cc62c6
VS
28371#ifdef __STDC__
28372# include <limits.h>
28373#else
28374# include <assert.h>
28375#endif
eea650d8
VS
28376
28377#undef $ac_func
28378
eb4efbdc 28379/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28380#ifdef __cplusplus
28381extern "C"
28382{
28383#endif
4f14bcd8 28384/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28385 builtin and then its argument prototype would still apply. */
28386char $ac_func ();
10f2d63a
VZ
28387/* The GNU C library defines this for functions which it implements
28388 to always fail with ENOSYS. Some functions are actually named
28389 something starting with __ and the normal name is an alias. */
247f5006 28390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28391choke me
28392#else
e6cc62c6
VS
28393char (*f) () = $ac_func;
28394#endif
28395#ifdef __cplusplus
28396}
10f2d63a
VZ
28397#endif
28398
e6cc62c6
VS
28399int
28400main ()
28401{
28402return f != $ac_func;
28403 ;
28404 return 0;
28405}
28406_ACEOF
28407rm -f conftest.$ac_objext conftest$ac_exeext
28408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28409 (eval $ac_link) 2>conftest.er1
e6cc62c6 28410 ac_status=$?
eea650d8
VS
28411 grep -v '^ *+' conftest.er1 >conftest.err
28412 rm -f conftest.er1
28413 cat conftest.err >&5
e6cc62c6
VS
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
eea650d8
VS
28416 { ac_try='test -z "$ac_c_werror_flag"
28417 || test ! -s conftest.err'
28418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; } &&
28423 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28425 (eval $ac_try) 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 eval "$as_ac_var=yes"
28430else
28431 echo "$as_me: failed program was:" >&5
28432sed 's/^/| /' conftest.$ac_ext >&5
28433
28434eval "$as_ac_var=no"
28435fi
eea650d8
VS
28436rm -f conftest.err conftest.$ac_objext \
28437 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28438fi
28439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28440echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28441if test `eval echo '${'$as_ac_var'}'` = yes; then
28442 cat >>confdefs.h <<_ACEOF
28443#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28444_ACEOF
270a909e 28445
4f14bcd8 28446fi
247f5006 28447done
1e487827 28448
af15babd 28449else
e6cc62c6
VS
28450 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28451echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28452fi
52127426 28453
8284b0c5 28454
e6cc62c6
VS
28455
28456ac_ext=cc
247f5006 28457ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28461
af15babd 28462
247f5006
VZ
28463
28464for ac_func in vsnprintf
28465do
e6cc62c6
VS
28466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28467echo "$as_me:$LINENO: checking for $ac_func" >&5
28468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28469if eval "test \"\${$as_ac_var+set}\" = set"; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28471else
28472 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28473/* confdefs.h. */
28474_ACEOF
28475cat confdefs.h >>conftest.$ac_ext
28476cat >>conftest.$ac_ext <<_ACEOF
28477/* end confdefs.h. */
eea650d8
VS
28478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28480#define $ac_func innocuous_$ac_func
28481
247f5006 28482/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28483 which can conflict with char $ac_func (); below.
28484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28485 <limits.h> exists even on freestanding compilers. */
eea650d8 28486
e6cc62c6
VS
28487#ifdef __STDC__
28488# include <limits.h>
28489#else
28490# include <assert.h>
28491#endif
eea650d8
VS
28492
28493#undef $ac_func
28494
247f5006
VZ
28495/* Override any gcc2 internal prototype to avoid an error. */
28496#ifdef __cplusplus
28497extern "C"
e6cc62c6 28498{
247f5006
VZ
28499#endif
28500/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28501 builtin and then its argument prototype would still apply. */
28502char $ac_func ();
247f5006
VZ
28503/* The GNU C library defines this for functions which it implements
28504 to always fail with ENOSYS. Some functions are actually named
28505 something starting with __ and the normal name is an alias. */
28506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28507choke me
28508#else
e6cc62c6
VS
28509char (*f) () = $ac_func;
28510#endif
28511#ifdef __cplusplus
28512}
247f5006 28513#endif
af15babd 28514
e6cc62c6
VS
28515int
28516main ()
28517{
28518return f != $ac_func;
28519 ;
28520 return 0;
28521}
28522_ACEOF
28523rm -f conftest.$ac_objext conftest$ac_exeext
28524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28525 (eval $ac_link) 2>conftest.er1
e6cc62c6 28526 ac_status=$?
eea650d8
VS
28527 grep -v '^ *+' conftest.er1 >conftest.err
28528 rm -f conftest.er1
28529 cat conftest.err >&5
e6cc62c6
VS
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); } &&
eea650d8
VS
28532 { ac_try='test -z "$ac_cxx_werror_flag"
28533 || test ! -s conftest.err'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; } &&
28539 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28541 (eval $ac_try) 2>&5
28542 ac_status=$?
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); }; }; then
28545 eval "$as_ac_var=yes"
28546else
28547 echo "$as_me: failed program was:" >&5
28548sed 's/^/| /' conftest.$ac_ext >&5
28549
28550eval "$as_ac_var=no"
28551fi
eea650d8
VS
28552rm -f conftest.err conftest.$ac_objext \
28553 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28554fi
28555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28557if test `eval echo '${'$as_ac_var'}'` = yes; then
28558 cat >>confdefs.h <<_ACEOF
28559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28560_ACEOF
52127426 28561
5c6fa7d2 28562fi
247f5006 28563done
8284b0c5 28564
4f14bcd8 28565
8d90d2f2 28566if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
28567 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28568echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28569if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 28571else
e6cc62c6
VS
28572
28573 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
8d90d2f2
VZ
28579
28580 #include <stdio.h>
28581 #include <stdarg.h>
e6cc62c6
VS
28582
28583int
28584main ()
28585{
8d90d2f2
VZ
28586
28587 char *buf;
28588 va_list ap;
28589 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
28590
28591 ;
28592 return 0;
28593}
28594_ACEOF
28595rm -f conftest.$ac_objext
28596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28597 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28598 ac_status=$?
eea650d8
VS
28599 grep -v '^ *+' conftest.er1 >conftest.err
28600 rm -f conftest.er1
28601 cat conftest.err >&5
e6cc62c6
VS
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } &&
eea650d8
VS
28604 { ac_try='test -z "$ac_cxx_werror_flag"
28605 || test ! -s conftest.err'
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; } &&
28611 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28614 ac_status=$?
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; }; then
8d90d2f2
VZ
28617 wx_cv_func_vsnprintf_decl=yes
28618else
e6cc62c6
VS
28619 echo "$as_me: failed program was:" >&5
28620sed 's/^/| /' conftest.$ac_ext >&5
28621
28622wx_cv_func_vsnprintf_decl=no
28623
8d90d2f2 28624fi
eea650d8 28625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28626
8d90d2f2 28627
e6cc62c6
VS
28628fi
28629echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28630echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
28631
28632 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 28633 cat >>confdefs.h <<\_ACEOF
8d90d2f2 28634#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 28635_ACEOF
8d90d2f2
VZ
28636
28637 fi
28638fi
28639
247f5006 28640if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
28641
28642
28643
28644for ac_func in fputwc wprintf vswprintf
d74f4b5a 28645do
e6cc62c6
VS
28646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28647echo "$as_me:$LINENO: checking for $ac_func" >&5
28648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28649if eval "test \"\${$as_ac_var+set}\" = set"; then
28650 echo $ECHO_N "(cached) $ECHO_C" >&6
28651else
28652 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28653/* confdefs.h. */
28654_ACEOF
28655cat confdefs.h >>conftest.$ac_ext
28656cat >>conftest.$ac_ext <<_ACEOF
28657/* end confdefs.h. */
eea650d8
VS
28658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28660#define $ac_func innocuous_$ac_func
28661
d74f4b5a 28662/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28663 which can conflict with char $ac_func (); below.
28664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28665 <limits.h> exists even on freestanding compilers. */
eea650d8 28666
e6cc62c6
VS
28667#ifdef __STDC__
28668# include <limits.h>
28669#else
28670# include <assert.h>
28671#endif
eea650d8
VS
28672
28673#undef $ac_func
28674
d74f4b5a 28675/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28676#ifdef __cplusplus
28677extern "C"
e6cc62c6 28678{
247f5006 28679#endif
d74f4b5a 28680/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28681 builtin and then its argument prototype would still apply. */
28682char $ac_func ();
d74f4b5a
VZ
28683/* The GNU C library defines this for functions which it implements
28684 to always fail with ENOSYS. Some functions are actually named
28685 something starting with __ and the normal name is an alias. */
28686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28687choke me
28688#else
e6cc62c6
VS
28689char (*f) () = $ac_func;
28690#endif
28691#ifdef __cplusplus
28692}
d74f4b5a
VZ
28693#endif
28694
e6cc62c6
VS
28695int
28696main ()
28697{
28698return f != $ac_func;
28699 ;
28700 return 0;
28701}
28702_ACEOF
28703rm -f conftest.$ac_objext conftest$ac_exeext
28704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28705 (eval $ac_link) 2>conftest.er1
e6cc62c6 28706 ac_status=$?
eea650d8
VS
28707 grep -v '^ *+' conftest.er1 >conftest.err
28708 rm -f conftest.er1
28709 cat conftest.err >&5
e6cc62c6
VS
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
eea650d8
VS
28712 { ac_try='test -z "$ac_cxx_werror_flag"
28713 || test ! -s conftest.err'
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; } &&
28719 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; }; then
28725 eval "$as_ac_var=yes"
28726else
28727 echo "$as_me: failed program was:" >&5
28728sed 's/^/| /' conftest.$ac_ext >&5
28729
28730eval "$as_ac_var=no"
28731fi
eea650d8
VS
28732rm -f conftest.err conftest.$ac_objext \
28733 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28734fi
28735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28737if test `eval echo '${'$as_ac_var'}'` = yes; then
28738 cat >>confdefs.h <<_ACEOF
28739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28740_ACEOF
d74f4b5a 28741
d74f4b5a
VZ
28742fi
28743done
28744
8d90d2f2 28745
e6cc62c6
VS
28746 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28747echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28748 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28749/* confdefs.h. */
28750_ACEOF
28751cat confdefs.h >>conftest.$ac_ext
28752cat >>conftest.$ac_ext <<_ACEOF
28753/* end confdefs.h. */
79668cae 28754#include <wchar.h>
e6cc62c6
VS
28755int
28756main ()
28757{
79668cae 28758&_vsnwprintf;
e6cc62c6
VS
28759 ;
28760 return 0;
28761}
28762_ACEOF
28763rm -f conftest.$ac_objext
28764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28765 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28766 ac_status=$?
eea650d8
VS
28767 grep -v '^ *+' conftest.er1 >conftest.err
28768 rm -f conftest.er1
28769 cat conftest.err >&5
e6cc62c6
VS
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } &&
eea650d8
VS
28772 { ac_try='test -z "$ac_cxx_werror_flag"
28773 || test ! -s conftest.err'
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; } &&
28779 { ac_try='test -s conftest.$ac_objext'
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 echo "$as_me:$LINENO: result: yes" >&5
28786echo "${ECHO_T}yes" >&6
28787 cat >>confdefs.h <<\_ACEOF
79668cae 28788#define HAVE__VSNWPRINTF 1
e6cc62c6 28789_ACEOF
79668cae
MB
28790
28791else
e6cc62c6
VS
28792 echo "$as_me: failed program was:" >&5
28793sed 's/^/| /' conftest.$ac_ext >&5
28794
28795echo "$as_me:$LINENO: result: no" >&5
28796echo "${ECHO_T}no" >&6
79668cae 28797fi
eea650d8 28798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
28799fi
28800
247f5006
VZ
28801ac_ext=c
28802ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28805ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
28806
28807
28808
28809
4f14bcd8 28810if test "$TOOLKIT" != "MSW"; then
af15babd 28811
8284b0c5
MB
28812
28813
e6cc62c6
VS
28814
28815ac_ext=cc
4f14bcd8 28816ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 28820
52127426 28821
e6cc62c6
VS
28822
28823
28824# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
28825if test "${with_libiconv_prefix+set}" = set; then
28826 withval="$with_libiconv_prefix"
e6cc62c6 28827
b040e242
VS
28828 for dir in `echo "$withval" | tr : ' '`; do
28829 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28830 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28831 done
b040e242 28832
e6cc62c6 28833fi;
b040e242 28834
e6cc62c6
VS
28835 echo "$as_me:$LINENO: checking for iconv" >&5
28836echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28837if test "${am_cv_func_iconv+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 28839else
e6cc62c6 28840
b040e242
VS
28841 am_cv_func_iconv="no, consider installing GNU libiconv"
28842 am_cv_lib_iconv=no
e6cc62c6 28843 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28844/* confdefs.h. */
28845_ACEOF
28846cat confdefs.h >>conftest.$ac_ext
28847cat >>conftest.$ac_ext <<_ACEOF
28848/* end confdefs.h. */
b040e242 28849#include <stdlib.h>
4f14bcd8 28850#include <iconv.h>
e6cc62c6
VS
28851int
28852main ()
28853{
b040e242
VS
28854iconv_t cd = iconv_open("","");
28855 iconv(cd,NULL,NULL,NULL,NULL);
28856 iconv_close(cd);
e6cc62c6
VS
28857 ;
28858 return 0;
28859}
28860_ACEOF
28861rm -f conftest.$ac_objext conftest$ac_exeext
28862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28863 (eval $ac_link) 2>conftest.er1
e6cc62c6 28864 ac_status=$?
eea650d8
VS
28865 grep -v '^ *+' conftest.er1 >conftest.err
28866 rm -f conftest.er1
28867 cat conftest.err >&5
e6cc62c6
VS
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); } &&
eea650d8
VS
28870 { ac_try='test -z "$ac_cxx_werror_flag"
28871 || test ! -s conftest.err'
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28874 ac_status=$?
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; } &&
28877 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879 (eval $ac_try) 2>&5
28880 ac_status=$?
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; }; then
b040e242 28883 am_cv_func_iconv=yes
af15babd 28884else
e6cc62c6
VS
28885 echo "$as_me: failed program was:" >&5
28886sed 's/^/| /' conftest.$ac_ext >&5
28887
b040e242 28888fi
eea650d8
VS
28889rm -f conftest.err conftest.$ac_objext \
28890 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28891 if test "$am_cv_func_iconv" != yes; then
28892 am_save_LIBS="$LIBS"
28893 LIBS="$LIBS -liconv"
e6cc62c6 28894 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28895/* confdefs.h. */
28896_ACEOF
28897cat confdefs.h >>conftest.$ac_ext
28898cat >>conftest.$ac_ext <<_ACEOF
28899/* end confdefs.h. */
b040e242
VS
28900#include <stdlib.h>
28901#include <iconv.h>
e6cc62c6
VS
28902int
28903main ()
28904{
b040e242
VS
28905iconv_t cd = iconv_open("","");
28906 iconv(cd,NULL,NULL,NULL,NULL);
28907 iconv_close(cd);
e6cc62c6
VS
28908 ;
28909 return 0;
28910}
28911_ACEOF
28912rm -f conftest.$ac_objext conftest$ac_exeext
28913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28914 (eval $ac_link) 2>conftest.er1
e6cc62c6 28915 ac_status=$?
eea650d8
VS
28916 grep -v '^ *+' conftest.er1 >conftest.err
28917 rm -f conftest.er1
28918 cat conftest.err >&5
e6cc62c6
VS
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } &&
eea650d8
VS
28921 { ac_try='test -z "$ac_cxx_werror_flag"
28922 || test ! -s conftest.err'
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); }; } &&
28928 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; }; then
b040e242
VS
28934 am_cv_lib_iconv=yes
28935 am_cv_func_iconv=yes
28936else
e6cc62c6
VS
28937 echo "$as_me: failed program was:" >&5
28938sed 's/^/| /' conftest.$ac_ext >&5
28939
af15babd 28940fi
eea650d8
VS
28941rm -f conftest.err conftest.$ac_objext \
28942 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28943 LIBS="$am_save_LIBS"
28944 fi
247f5006 28945
e6cc62c6
VS
28946fi
28947echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28948echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 28949 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
28950
28951cat >>confdefs.h <<\_ACEOF
b040e242 28952#define HAVE_ICONV 1
e6cc62c6 28953_ACEOF
b040e242 28954
e6cc62c6
VS
28955 echo "$as_me:$LINENO: checking if iconv needs const" >&5
28956echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28957if test "${wx_cv_func_iconv_const+set}" = set; then
28958 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 28959else
e6cc62c6 28960 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28961/* confdefs.h. */
28962_ACEOF
28963cat confdefs.h >>conftest.$ac_ext
28964cat >>conftest.$ac_ext <<_ACEOF
28965/* end confdefs.h. */
b040e242
VS
28966
28967#include <stdlib.h>
28968#include <iconv.h>
28969extern
28970#ifdef __cplusplus
28971"C"
28972#endif
28973#if defined(__STDC__) || defined(__cplusplus)
28974size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28975#else
28976size_t iconv();
28977#endif
af15babd 28978
e6cc62c6
VS
28979int
28980main ()
28981{
28982
28983 ;
28984 return 0;
28985}
28986_ACEOF
28987rm -f conftest.$ac_objext
28988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28989 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28990 ac_status=$?
eea650d8
VS
28991 grep -v '^ *+' conftest.er1 >conftest.err
28992 rm -f conftest.er1
28993 cat conftest.err >&5
e6cc62c6
VS
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } &&
eea650d8
VS
28996 { ac_try='test -z "$ac_cxx_werror_flag"
28997 || test ! -s conftest.err'
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29000 ac_status=$?
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; } &&
29003 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
b7043674 29009 wx_cv_func_iconv_const="no"
b040e242 29010else
e6cc62c6
VS
29011 echo "$as_me: failed program was:" >&5
29012sed 's/^/| /' conftest.$ac_ext >&5
29013
29014wx_cv_func_iconv_const="yes"
29015
247f5006 29016fi
eea650d8 29017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29018
e6cc62c6
VS
29019fi
29020echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29021echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
29022
29023 iconv_const=
1c405bb5 29024 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
29025 iconv_const="const"
29026 fi
29027
e6cc62c6
VS
29028
29029cat >>confdefs.h <<_ACEOF
f09359cf 29030#define ICONV_CONST $iconv_const
e6cc62c6 29031_ACEOF
b040e242
VS
29032
29033 fi
29034 LIBICONV=
29035 if test "$am_cv_lib_iconv" = yes; then
29036 LIBICONV="-liconv"
29037 fi
e6cc62c6 29038
b040e242
VS
29039
29040LIBS="$LIBICONV $LIBS"
4f14bcd8 29041ac_ext=c
4f14bcd8 29042ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29045ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 29046
5c6fa7d2 29047
8284b0c5 29048if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
29049
29050for ac_func in sigaction
af15babd 29051do
e6cc62c6
VS
29052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29053echo "$as_me:$LINENO: checking for $ac_func" >&5
29054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29055if eval "test \"\${$as_ac_var+set}\" = set"; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29057else
29058 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29059/* confdefs.h. */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h. */
eea650d8
VS
29064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29066#define $ac_func innocuous_$ac_func
29067
af15babd 29068/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29069 which can conflict with char $ac_func (); below.
29070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29071 <limits.h> exists even on freestanding compilers. */
eea650d8 29072
e6cc62c6
VS
29073#ifdef __STDC__
29074# include <limits.h>
29075#else
29076# include <assert.h>
29077#endif
eea650d8
VS
29078
29079#undef $ac_func
29080
af15babd 29081/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29082#ifdef __cplusplus
29083extern "C"
29084{
29085#endif
af15babd 29086/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29087 builtin and then its argument prototype would still apply. */
29088char $ac_func ();
af15babd
VZ
29089/* The GNU C library defines this for functions which it implements
29090 to always fail with ENOSYS. Some functions are actually named
29091 something starting with __ and the normal name is an alias. */
29092#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29093choke me
29094#else
e6cc62c6
VS
29095char (*f) () = $ac_func;
29096#endif
29097#ifdef __cplusplus
29098}
af15babd
VZ
29099#endif
29100
e6cc62c6
VS
29101int
29102main ()
29103{
29104return f != $ac_func;
29105 ;
29106 return 0;
29107}
29108_ACEOF
29109rm -f conftest.$ac_objext conftest$ac_exeext
29110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29111 (eval $ac_link) 2>conftest.er1
e6cc62c6 29112 ac_status=$?
eea650d8
VS
29113 grep -v '^ *+' conftest.er1 >conftest.err
29114 rm -f conftest.er1
29115 cat conftest.err >&5
e6cc62c6
VS
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } &&
eea650d8
VS
29118 { ac_try='test -z "$ac_c_werror_flag"
29119 || test ! -s conftest.err'
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29122 ac_status=$?
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; } &&
29125 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127 (eval $ac_try) 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; }; then
29131 eval "$as_ac_var=yes"
29132else
29133 echo "$as_me: failed program was:" >&5
29134sed 's/^/| /' conftest.$ac_ext >&5
29135
29136eval "$as_ac_var=no"
29137fi
eea650d8
VS
29138rm -f conftest.err conftest.$ac_objext \
29139 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29140fi
29141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29143if test `eval echo '${'$as_ac_var'}'` = yes; then
29144 cat >>confdefs.h <<_ACEOF
29145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29146_ACEOF
7b4a847f 29147
4f14bcd8
GD
29148fi
29149done
29150
8284b0c5 29151
4f14bcd8 29152 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29153 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29154echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29155 wxUSE_ON_FATAL_EXCEPTION=no
29156 fi
29157
29158 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29159
29160
29161 ac_ext=cc
5c6fa7d2 29162ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29166
5c6fa7d2 29167
e6cc62c6
VS
29168 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29169echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29170if test "${wx_cv_type_sa_handler+set}" = set; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29172else
e6cc62c6
VS
29173
29174 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29175/* confdefs.h. */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h. */
4f14bcd8 29180#include <signal.h>
e6cc62c6
VS
29181int
29182main ()
29183{
4f14bcd8
GD
29184
29185 extern void testSigHandler(int);
29186
29187 struct sigaction sa;
29188 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29189
29190 ;
29191 return 0;
29192}
29193_ACEOF
29194rm -f conftest.$ac_objext
29195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29196 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29197 ac_status=$?
eea650d8
VS
29198 grep -v '^ *+' conftest.er1 >conftest.err
29199 rm -f conftest.er1
29200 cat conftest.err >&5
e6cc62c6
VS
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); } &&
eea650d8
VS
29203 { ac_try='test -z "$ac_cxx_werror_flag"
29204 || test ! -s conftest.err'
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; } &&
29210 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212 (eval $ac_try) 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; }; then
29216
4f14bcd8 29217 wx_cv_type_sa_handler=int
e6cc62c6 29218
af15babd 29219else
e6cc62c6
VS
29220 echo "$as_me: failed program was:" >&5
29221sed 's/^/| /' conftest.$ac_ext >&5
29222
29223
4f14bcd8 29224 wx_cv_type_sa_handler=void
e6cc62c6 29225
247f5006 29226fi
eea650d8 29227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29228
e6cc62c6
VS
29229fi
29230echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29231echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29232
29233 ac_ext=c
4f14bcd8 29234ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29237ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29238
8284b0c5 29239
e6cc62c6 29240 cat >>confdefs.h <<_ACEOF
4f14bcd8 29241#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29242_ACEOF
af15babd 29243
4f14bcd8
GD
29244 fi
29245fi
af15babd 29246
e6cc62c6
VS
29247
29248
a1d22ad7 29249for ac_func in mkstemp mktemp
af15babd 29250do
e6cc62c6
VS
29251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29252echo "$as_me:$LINENO: checking for $ac_func" >&5
29253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29254if eval "test \"\${$as_ac_var+set}\" = set"; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29256else
29257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29258/* confdefs.h. */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h. */
eea650d8
VS
29263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29265#define $ac_func innocuous_$ac_func
29266
af15babd 29267/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29268 which can conflict with char $ac_func (); below.
29269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29270 <limits.h> exists even on freestanding compilers. */
eea650d8 29271
e6cc62c6
VS
29272#ifdef __STDC__
29273# include <limits.h>
29274#else
29275# include <assert.h>
29276#endif
eea650d8
VS
29277
29278#undef $ac_func
29279
af15babd 29280/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29281#ifdef __cplusplus
29282extern "C"
29283{
29284#endif
af15babd 29285/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29286 builtin and then its argument prototype would still apply. */
29287char $ac_func ();
af15babd
VZ
29288/* The GNU C library defines this for functions which it implements
29289 to always fail with ENOSYS. Some functions are actually named
29290 something starting with __ and the normal name is an alias. */
29291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29292choke me
29293#else
e6cc62c6
VS
29294char (*f) () = $ac_func;
29295#endif
29296#ifdef __cplusplus
29297}
af15babd
VZ
29298#endif
29299
e6cc62c6
VS
29300int
29301main ()
29302{
29303return f != $ac_func;
29304 ;
29305 return 0;
29306}
29307_ACEOF
29308rm -f conftest.$ac_objext conftest$ac_exeext
29309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29310 (eval $ac_link) 2>conftest.er1
e6cc62c6 29311 ac_status=$?
eea650d8
VS
29312 grep -v '^ *+' conftest.er1 >conftest.err
29313 rm -f conftest.er1
29314 cat conftest.err >&5
e6cc62c6
VS
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } &&
eea650d8
VS
29317 { ac_try='test -z "$ac_c_werror_flag"
29318 || test ! -s conftest.err'
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; }; then
29330 eval "$as_ac_var=yes"
29331else
29332 echo "$as_me: failed program was:" >&5
29333sed 's/^/| /' conftest.$ac_ext >&5
29334
29335eval "$as_ac_var=no"
29336fi
eea650d8
VS
29337rm -f conftest.err conftest.$ac_objext \
29338 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29339fi
29340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29342if test `eval echo '${'$as_ac_var'}'` = yes; then
29343 cat >>confdefs.h <<_ACEOF
29344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29345_ACEOF
ade35f11 29346 break
ade35f11
VZ
29347fi
29348done
29349
8284b0c5 29350
e6cc62c6
VS
29351echo "$as_me:$LINENO: checking for statfs" >&5
29352echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29353if test "${wx_cv_func_statfs+set}" = set; then
29354 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29355else
e6cc62c6 29356 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29357/* confdefs.h. */
29358_ACEOF
29359cat confdefs.h >>conftest.$ac_ext
29360cat >>conftest.$ac_ext <<_ACEOF
29361/* end confdefs.h. */
4f14bcd8
GD
29362
29363 #if defined(__BSD__)
29364 #include <sys/param.h>
29365 #include <sys/mount.h>
29366 #else
29367 #include <sys/vfs.h>
29368 #endif
e6cc62c6
VS
29369
29370int
29371main ()
29372{
4f14bcd8
GD
29373
29374 long l;
29375 struct statfs fs;
29376 statfs("/", &fs);
29377 l = fs.f_bsize;
29378 l += fs.f_blocks;
29379 l += fs.f_bavail;
e6cc62c6
VS
29380
29381 ;
29382 return 0;
29383}
29384_ACEOF
29385rm -f conftest.$ac_objext
29386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29387 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29388 ac_status=$?
eea650d8
VS
29389 grep -v '^ *+' conftest.er1 >conftest.err
29390 rm -f conftest.er1
29391 cat conftest.err >&5
e6cc62c6
VS
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } &&
eea650d8
VS
29394 { ac_try='test -z "$ac_c_werror_flag"
29395 || test ! -s conftest.err'
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; } &&
29401 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407
4f14bcd8 29408 wx_cv_func_statfs=yes
e6cc62c6 29409
4f14bcd8 29410else
e6cc62c6
VS
29411 echo "$as_me: failed program was:" >&5
29412sed 's/^/| /' conftest.$ac_ext >&5
29413
29414
4f14bcd8 29415 wx_cv_func_statfs=no
e6cc62c6 29416
8284b0c5 29417
247f5006 29418fi
eea650d8 29419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29420
e6cc62c6
VS
29421fi
29422echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29423echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29424
29425if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29426 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29427 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29428#define HAVE_STATFS 1
e6cc62c6 29429_ACEOF
4f14bcd8
GD
29430
29431else
e6cc62c6
VS
29432 echo "$as_me:$LINENO: checking for statvfs" >&5
29433echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29434if test "${wx_cv_func_statvfs+set}" = set; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29436else
e6cc62c6 29437 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29438/* confdefs.h. */
29439_ACEOF
29440cat confdefs.h >>conftest.$ac_ext
29441cat >>conftest.$ac_ext <<_ACEOF
29442/* end confdefs.h. */
af15babd 29443
54ab82b3
VZ
29444 #include <stddef.h>
29445 #include <sys/statvfs.h>
e6cc62c6
VS
29446
29447int
29448main ()
29449{
af15babd 29450
54ab82b3 29451 statvfs("/", NULL);
e6cc62c6
VS
29452
29453 ;
29454 return 0;
29455}
29456_ACEOF
29457rm -f conftest.$ac_objext
29458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29459 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29460 ac_status=$?
eea650d8
VS
29461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
e6cc62c6
VS
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
eea650d8
VS
29466 { ac_try='test -z "$ac_c_werror_flag"
29467 || test ! -s conftest.err'
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; } &&
29473 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29475 (eval $ac_try) 2>&5
29476 ac_status=$?
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; }; then
54ab82b3 29479 wx_cv_func_statvfs=yes
af15babd 29480else
e6cc62c6
VS
29481 echo "$as_me: failed program was:" >&5
29482sed 's/^/| /' conftest.$ac_ext >&5
29483
29484wx_cv_func_statvfs=no
29485
247f5006 29486fi
eea650d8 29487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29488
e6cc62c6
VS
29489fi
29490echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29491echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29492
4f14bcd8 29493 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29494
29495
29496 ac_ext=cc
54ab82b3 29497ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29501
29502
e6cc62c6
VS
29503 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29504echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29505if test "${wx_cv_type_statvfs_t+set}" = set; then
29506 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 29507else
e6cc62c6 29508 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29509/* confdefs.h. */
29510_ACEOF
29511cat confdefs.h >>conftest.$ac_ext
29512cat >>conftest.$ac_ext <<_ACEOF
29513/* end confdefs.h. */
54ab82b3
VZ
29514
29515 #include <sys/statvfs.h>
e6cc62c6
VS
29516
29517int
29518main ()
29519{
54ab82b3
VZ
29520
29521 long l;
29522 statvfs_t fs;
29523 statvfs("/", &fs);
29524 l = fs.f_bsize;
29525 l += fs.f_blocks;
29526 l += fs.f_bavail;
e6cc62c6
VS
29527
29528 ;
29529 return 0;
29530}
29531_ACEOF
29532rm -f conftest.$ac_objext
29533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29534 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29535 ac_status=$?
eea650d8
VS
29536 grep -v '^ *+' conftest.er1 >conftest.err
29537 rm -f conftest.er1
29538 cat conftest.err >&5
e6cc62c6
VS
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); } &&
eea650d8
VS
29541 { ac_try='test -z "$ac_cxx_werror_flag"
29542 || test ! -s conftest.err'
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; } &&
29548 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29550 (eval $ac_try) 2>&5
29551 ac_status=$?
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); }; }; then
54ab82b3
VZ
29554 wx_cv_type_statvfs_t=statvfs_t
29555else
e6cc62c6
VS
29556 echo "$as_me: failed program was:" >&5
29557sed 's/^/| /' conftest.$ac_ext >&5
29558
29559
29560 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29561/* confdefs.h. */
29562_ACEOF
29563cat confdefs.h >>conftest.$ac_ext
29564cat >>conftest.$ac_ext <<_ACEOF
29565/* end confdefs.h. */
54ab82b3
VZ
29566
29567 #include <sys/statvfs.h>
e6cc62c6
VS
29568
29569int
29570main ()
29571{
54ab82b3
VZ
29572
29573 long l;
65d8ef1e 29574 struct statvfs fs;
54ab82b3
VZ
29575 statvfs("/", &fs);
29576 l = fs.f_bsize;
29577 l += fs.f_blocks;
29578 l += fs.f_bavail;
e6cc62c6
VS
29579
29580 ;
29581 return 0;
29582}
29583_ACEOF
29584rm -f conftest.$ac_objext
29585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29586 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29587 ac_status=$?
eea650d8
VS
29588 grep -v '^ *+' conftest.er1 >conftest.err
29589 rm -f conftest.er1
29590 cat conftest.err >&5
e6cc62c6
VS
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); } &&
eea650d8
VS
29593 { ac_try='test -z "$ac_cxx_werror_flag"
29594 || test ! -s conftest.err'
29595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29596 (eval $ac_try) 2>&5
29597 ac_status=$?
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); }; } &&
29600 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29602 (eval $ac_try) 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; }; then
54ab82b3
VZ
29606 wx_cv_type_statvfs_t="struct statvfs"
29607else
e6cc62c6
VS
29608 echo "$as_me: failed program was:" >&5
29609sed 's/^/| /' conftest.$ac_ext >&5
29610
29611wx_cv_type_statvfs_t="unknown"
29612
54ab82b3 29613fi
eea650d8 29614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29615
29616
54ab82b3 29617fi
eea650d8 29618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 29619
e6cc62c6
VS
29620fi
29621echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29622echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
29623
29624 ac_ext=c
54ab82b3 29625ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29628ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
29629
29630
29631 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29632 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29633#define HAVE_STATVFS 1
e6cc62c6 29634_ACEOF
af15babd 29635
54ab82b3 29636 fi
4f14bcd8 29637 else
54ab82b3 29638 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
29639 fi
29640fi
af15babd 29641
54ab82b3 29642if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29643 cat >>confdefs.h <<_ACEOF
54ab82b3 29644#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 29645_ACEOF
54ab82b3
VZ
29646
29647else
e6cc62c6
VS
29648 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29649echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
29650fi
29651
4f14bcd8 29652if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
29653
29654
29655for ac_func in fcntl flock
af15babd 29656do
e6cc62c6
VS
29657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29658echo "$as_me:$LINENO: checking for $ac_func" >&5
29659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29660if eval "test \"\${$as_ac_var+set}\" = set"; then
29661 echo $ECHO_N "(cached) $ECHO_C" >&6
29662else
29663 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29664/* confdefs.h. */
29665_ACEOF
29666cat confdefs.h >>conftest.$ac_ext
29667cat >>conftest.$ac_ext <<_ACEOF
29668/* end confdefs.h. */
eea650d8
VS
29669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29671#define $ac_func innocuous_$ac_func
29672
af15babd 29673/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29674 which can conflict with char $ac_func (); below.
29675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29676 <limits.h> exists even on freestanding compilers. */
eea650d8 29677
e6cc62c6
VS
29678#ifdef __STDC__
29679# include <limits.h>
29680#else
29681# include <assert.h>
29682#endif
eea650d8
VS
29683
29684#undef $ac_func
29685
af15babd 29686/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29687#ifdef __cplusplus
29688extern "C"
29689{
29690#endif
af15babd 29691/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29692 builtin and then its argument prototype would still apply. */
29693char $ac_func ();
af15babd
VZ
29694/* The GNU C library defines this for functions which it implements
29695 to always fail with ENOSYS. Some functions are actually named
29696 something starting with __ and the normal name is an alias. */
29697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29698choke me
29699#else
e6cc62c6
VS
29700char (*f) () = $ac_func;
29701#endif
29702#ifdef __cplusplus
29703}
af15babd
VZ
29704#endif
29705
e6cc62c6
VS
29706int
29707main ()
29708{
29709return f != $ac_func;
29710 ;
29711 return 0;
29712}
29713_ACEOF
29714rm -f conftest.$ac_objext conftest$ac_exeext
29715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29716 (eval $ac_link) 2>conftest.er1
e6cc62c6 29717 ac_status=$?
eea650d8
VS
29718 grep -v '^ *+' conftest.er1 >conftest.err
29719 rm -f conftest.er1
29720 cat conftest.err >&5
e6cc62c6
VS
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } &&
eea650d8
VS
29723 { ac_try='test -z "$ac_c_werror_flag"
29724 || test ! -s conftest.err'
29725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726 (eval $ac_try) 2>&5
29727 ac_status=$?
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); }; } &&
29730 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732 (eval $ac_try) 2>&5
29733 ac_status=$?
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); }; }; then
29736 eval "$as_ac_var=yes"
29737else
29738 echo "$as_me: failed program was:" >&5
29739sed 's/^/| /' conftest.$ac_ext >&5
29740
29741eval "$as_ac_var=no"
29742fi
eea650d8
VS
29743rm -f conftest.err conftest.$ac_objext \
29744 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29745fi
29746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29748if test `eval echo '${'$as_ac_var'}'` = yes; then
29749 cat >>confdefs.h <<_ACEOF
29750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29751_ACEOF
4f14bcd8 29752 break
af15babd
VZ
29753fi
29754done
29755
8284b0c5 29756
4f14bcd8 29757 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
29758 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29759echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
29760 wxUSE_SNGLINST_CHECKER=no
29761 fi
29762fi
af15babd 29763
e6cc62c6 29764
4f14bcd8 29765for ac_func in timegm
af15babd 29766do
e6cc62c6
VS
29767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29768echo "$as_me:$LINENO: checking for $ac_func" >&5
29769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29770if eval "test \"\${$as_ac_var+set}\" = set"; then
29771 echo $ECHO_N "(cached) $ECHO_C" >&6
29772else
29773 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29774/* confdefs.h. */
29775_ACEOF
29776cat confdefs.h >>conftest.$ac_ext
29777cat >>conftest.$ac_ext <<_ACEOF
29778/* end confdefs.h. */
eea650d8
VS
29779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29781#define $ac_func innocuous_$ac_func
29782
af15babd 29783/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29784 which can conflict with char $ac_func (); below.
29785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29786 <limits.h> exists even on freestanding compilers. */
eea650d8 29787
e6cc62c6
VS
29788#ifdef __STDC__
29789# include <limits.h>
29790#else
29791# include <assert.h>
29792#endif
eea650d8
VS
29793
29794#undef $ac_func
29795
af15babd 29796/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29797#ifdef __cplusplus
29798extern "C"
29799{
29800#endif
af15babd 29801/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29802 builtin and then its argument prototype would still apply. */
29803char $ac_func ();
af15babd
VZ
29804/* The GNU C library defines this for functions which it implements
29805 to always fail with ENOSYS. Some functions are actually named
29806 something starting with __ and the normal name is an alias. */
247f5006
VZ
29807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29808choke me
29809#else
e6cc62c6
VS
29810char (*f) () = $ac_func;
29811#endif
29812#ifdef __cplusplus
29813}
247f5006
VZ
29814#endif
29815
e6cc62c6
VS
29816int
29817main ()
29818{
29819return f != $ac_func;
29820 ;
29821 return 0;
29822}
29823_ACEOF
29824rm -f conftest.$ac_objext conftest$ac_exeext
29825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29826 (eval $ac_link) 2>conftest.er1
e6cc62c6 29827 ac_status=$?
eea650d8
VS
29828 grep -v '^ *+' conftest.er1 >conftest.err
29829 rm -f conftest.er1
29830 cat conftest.err >&5
e6cc62c6
VS
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); } &&
eea650d8
VS
29833 { ac_try='test -z "$ac_c_werror_flag"
29834 || test ! -s conftest.err'
29835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29836 (eval $ac_try) 2>&5
29837 ac_status=$?
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; } &&
29840 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; }; then
29846 eval "$as_ac_var=yes"
29847else
29848 echo "$as_me: failed program was:" >&5
29849sed 's/^/| /' conftest.$ac_ext >&5
29850
29851eval "$as_ac_var=no"
29852fi
eea650d8
VS
29853rm -f conftest.err conftest.$ac_objext \
29854 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29855fi
29856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29858if test `eval echo '${'$as_ac_var'}'` = yes; then
29859 cat >>confdefs.h <<_ACEOF
29860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29861_ACEOF
703e0a69 29862
af15babd
VZ
29863fi
29864done
29865
8284b0c5 29866
e6cc62c6
VS
29867
29868
4f14bcd8 29869for ac_func in putenv setenv
10f2d63a 29870do
e6cc62c6
VS
29871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29872echo "$as_me:$LINENO: checking for $ac_func" >&5
29873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29874if eval "test \"\${$as_ac_var+set}\" = set"; then
29875 echo $ECHO_N "(cached) $ECHO_C" >&6
29876else
29877 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29878/* confdefs.h. */
29879_ACEOF
29880cat confdefs.h >>conftest.$ac_ext
29881cat >>conftest.$ac_ext <<_ACEOF
29882/* end confdefs.h. */
eea650d8
VS
29883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29885#define $ac_func innocuous_$ac_func
29886
af15babd 29887/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29888 which can conflict with char $ac_func (); below.
29889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29890 <limits.h> exists even on freestanding compilers. */
eea650d8 29891
e6cc62c6
VS
29892#ifdef __STDC__
29893# include <limits.h>
29894#else
29895# include <assert.h>
29896#endif
eea650d8
VS
29897
29898#undef $ac_func
29899
af15babd 29900/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29901#ifdef __cplusplus
29902extern "C"
29903{
29904#endif
af15babd 29905/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29906 builtin and then its argument prototype would still apply. */
29907char $ac_func ();
af15babd
VZ
29908/* The GNU C library defines this for functions which it implements
29909 to always fail with ENOSYS. Some functions are actually named
29910 something starting with __ and the normal name is an alias. */
29911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29912choke me
29913#else
e6cc62c6
VS
29914char (*f) () = $ac_func;
29915#endif
29916#ifdef __cplusplus
29917}
af15babd
VZ
29918#endif
29919
e6cc62c6
VS
29920int
29921main ()
29922{
29923return f != $ac_func;
29924 ;
29925 return 0;
29926}
29927_ACEOF
29928rm -f conftest.$ac_objext conftest$ac_exeext
29929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29930 (eval $ac_link) 2>conftest.er1
e6cc62c6 29931 ac_status=$?
eea650d8
VS
29932 grep -v '^ *+' conftest.er1 >conftest.err
29933 rm -f conftest.er1
29934 cat conftest.err >&5
e6cc62c6
VS
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
eea650d8
VS
29937 { ac_try='test -z "$ac_c_werror_flag"
29938 || test ! -s conftest.err'
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; } &&
29944 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29947 ac_status=$?
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 eval "$as_ac_var=yes"
29951else
29952 echo "$as_me: failed program was:" >&5
29953sed 's/^/| /' conftest.$ac_ext >&5
29954
29955eval "$as_ac_var=no"
29956fi
eea650d8
VS
29957rm -f conftest.err conftest.$ac_objext \
29958 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29959fi
29960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29962if test `eval echo '${'$as_ac_var'}'` = yes; then
29963 cat >>confdefs.h <<_ACEOF
29964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29965_ACEOF
4f14bcd8 29966 break
af15babd 29967fi
af15babd
VZ
29968done
29969
8284b0c5 29970
4f14bcd8
GD
29971HAVE_SOME_SLEEP_FUNC=0
29972if test "$USE_BEOS" = 1; then
e6cc62c6 29973 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29974#define HAVE_SLEEP 1
e6cc62c6 29975_ACEOF
af15babd 29976
4f14bcd8 29977 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29978fi
29979
4f14bcd8 29980if test "$USE_DARWIN" = 1; then
e6cc62c6 29981 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29982#define HAVE_USLEEP 1
e6cc62c6 29983_ACEOF
10f2d63a 29984
4f14bcd8 29985 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29986fi
29987
4f14bcd8
GD
29988if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29989 POSIX4_LINK=
e6cc62c6
VS
29990
29991for ac_func in nanosleep
4f14bcd8 29992do
e6cc62c6
VS
29993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29994echo "$as_me:$LINENO: checking for $ac_func" >&5
29995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29996if eval "test \"\${$as_ac_var+set}\" = set"; then
29997 echo $ECHO_N "(cached) $ECHO_C" >&6
29998else
29999 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30000/* confdefs.h. */
30001_ACEOF
30002cat confdefs.h >>conftest.$ac_ext
30003cat >>conftest.$ac_ext <<_ACEOF
30004/* end confdefs.h. */
eea650d8
VS
30005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30007#define $ac_func innocuous_$ac_func
30008
4f14bcd8 30009/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30010 which can conflict with char $ac_func (); below.
30011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30012 <limits.h> exists even on freestanding compilers. */
eea650d8 30013
e6cc62c6
VS
30014#ifdef __STDC__
30015# include <limits.h>
30016#else
30017# include <assert.h>
30018#endif
eea650d8
VS
30019
30020#undef $ac_func
30021
10f2d63a 30022/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30023#ifdef __cplusplus
30024extern "C"
30025{
30026#endif
10f2d63a 30027/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30028 builtin and then its argument prototype would still apply. */
30029char $ac_func ();
4f14bcd8
GD
30030/* The GNU C library defines this for functions which it implements
30031 to always fail with ENOSYS. Some functions are actually named
30032 something starting with __ and the normal name is an alias. */
30033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30034choke me
30035#else
e6cc62c6
VS
30036char (*f) () = $ac_func;
30037#endif
30038#ifdef __cplusplus
30039}
4f14bcd8
GD
30040#endif
30041
e6cc62c6
VS
30042int
30043main ()
30044{
30045return f != $ac_func;
30046 ;
30047 return 0;
30048}
30049_ACEOF
30050rm -f conftest.$ac_objext conftest$ac_exeext
30051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30052 (eval $ac_link) 2>conftest.er1
e6cc62c6 30053 ac_status=$?
eea650d8
VS
30054 grep -v '^ *+' conftest.er1 >conftest.err
30055 rm -f conftest.er1
30056 cat conftest.err >&5
e6cc62c6
VS
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } &&
eea650d8
VS
30059 { ac_try='test -z "$ac_c_werror_flag"
30060 || test ! -s conftest.err'
30061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062 (eval $ac_try) 2>&5
30063 ac_status=$?
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; } &&
30066 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30069 ac_status=$?
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; }; then
30072 eval "$as_ac_var=yes"
30073else
30074 echo "$as_me: failed program was:" >&5
30075sed 's/^/| /' conftest.$ac_ext >&5
30076
30077eval "$as_ac_var=no"
30078fi
eea650d8
VS
30079rm -f conftest.err conftest.$ac_objext \
30080 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30081fi
30082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30084if test `eval echo '${'$as_ac_var'}'` = yes; then
30085 cat >>confdefs.h <<_ACEOF
30086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30087_ACEOF
30088 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30089#define HAVE_NANOSLEEP 1
e6cc62c6 30090_ACEOF
4f14bcd8 30091
10f2d63a 30092else
e6cc62c6
VS
30093
30094 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30095echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30096if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30097 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30098else
e6cc62c6 30099 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30100LIBS="-lposix4 $LIBS"
e6cc62c6 30101cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30102/* confdefs.h. */
30103_ACEOF
30104cat confdefs.h >>conftest.$ac_ext
30105cat >>conftest.$ac_ext <<_ACEOF
30106/* end confdefs.h. */
30107
10f2d63a 30108/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30109#ifdef __cplusplus
30110extern "C"
30111#endif
10f2d63a 30112/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30113 builtin and then its argument prototype would still apply. */
30114char nanosleep ();
30115int
30116main ()
30117{
30118nanosleep ();
30119 ;
30120 return 0;
30121}
30122_ACEOF
30123rm -f conftest.$ac_objext conftest$ac_exeext
30124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30125 (eval $ac_link) 2>conftest.er1
e6cc62c6 30126 ac_status=$?
eea650d8
VS
30127 grep -v '^ *+' conftest.er1 >conftest.err
30128 rm -f conftest.er1
30129 cat conftest.err >&5
e6cc62c6
VS
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
eea650d8
VS
30132 { ac_try='test -z "$ac_c_werror_flag"
30133 || test ! -s conftest.err'
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; } &&
30139 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; }; then
30145 ac_cv_lib_posix4_nanosleep=yes
30146else
30147 echo "$as_me: failed program was:" >&5
30148sed 's/^/| /' conftest.$ac_ext >&5
30149
30150ac_cv_lib_posix4_nanosleep=no
30151fi
eea650d8
VS
30152rm -f conftest.err conftest.$ac_objext \
30153 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30154LIBS=$ac_check_lib_save_LIBS
30155fi
30156echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30157echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30158if test $ac_cv_lib_posix4_nanosleep = yes; then
30159
30160 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30161#define HAVE_NANOSLEEP 1
e6cc62c6 30162_ACEOF
4f14bcd8 30163
3d63bc3a 30164 POSIX4_LINK=" -lposix4"
e6cc62c6 30165
10f2d63a 30166else
10f2d63a 30167
e6cc62c6
VS
30168
30169for ac_func in usleep
4f14bcd8 30170do
e6cc62c6
VS
30171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30172echo "$as_me:$LINENO: checking for $ac_func" >&5
30173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30174if eval "test \"\${$as_ac_var+set}\" = set"; then
30175 echo $ECHO_N "(cached) $ECHO_C" >&6
30176else
30177 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30178/* confdefs.h. */
30179_ACEOF
30180cat confdefs.h >>conftest.$ac_ext
30181cat >>conftest.$ac_ext <<_ACEOF
30182/* end confdefs.h. */
eea650d8
VS
30183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30185#define $ac_func innocuous_$ac_func
30186
4f14bcd8 30187/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30188 which can conflict with char $ac_func (); below.
30189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30190 <limits.h> exists even on freestanding compilers. */
eea650d8 30191
e6cc62c6
VS
30192#ifdef __STDC__
30193# include <limits.h>
30194#else
30195# include <assert.h>
30196#endif
eea650d8
VS
30197
30198#undef $ac_func
30199
4f14bcd8 30200/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30201#ifdef __cplusplus
30202extern "C"
30203{
30204#endif
4f14bcd8 30205/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30206 builtin and then its argument prototype would still apply. */
30207char $ac_func ();
4f14bcd8
GD
30208/* The GNU C library defines this for functions which it implements
30209 to always fail with ENOSYS. Some functions are actually named
30210 something starting with __ and the normal name is an alias. */
30211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30212choke me
30213#else
e6cc62c6
VS
30214char (*f) () = $ac_func;
30215#endif
30216#ifdef __cplusplus
30217}
4f14bcd8
GD
30218#endif
30219
e6cc62c6
VS
30220int
30221main ()
30222{
30223return f != $ac_func;
30224 ;
30225 return 0;
30226}
30227_ACEOF
30228rm -f conftest.$ac_objext conftest$ac_exeext
30229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30230 (eval $ac_link) 2>conftest.er1
e6cc62c6 30231 ac_status=$?
eea650d8
VS
30232 grep -v '^ *+' conftest.er1 >conftest.err
30233 rm -f conftest.er1
30234 cat conftest.err >&5
e6cc62c6
VS
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); } &&
eea650d8
VS
30237 { ac_try='test -z "$ac_c_werror_flag"
30238 || test ! -s conftest.err'
30239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240 (eval $ac_try) 2>&5
30241 ac_status=$?
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); }; } &&
30244 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246 (eval $ac_try) 2>&5
30247 ac_status=$?
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; }; then
30250 eval "$as_ac_var=yes"
30251else
30252 echo "$as_me: failed program was:" >&5
30253sed 's/^/| /' conftest.$ac_ext >&5
30254
30255eval "$as_ac_var=no"
30256fi
eea650d8
VS
30257rm -f conftest.err conftest.$ac_objext \
30258 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30259fi
30260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30262if test `eval echo '${'$as_ac_var'}'` = yes; then
30263 cat >>confdefs.h <<_ACEOF
30264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30265_ACEOF
30266 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30267#define HAVE_USLEEP 1
e6cc62c6 30268_ACEOF
4f14bcd8 30269
698dcdb6 30270else
e6cc62c6
VS
30271 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30272echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30273
10f2d63a 30274fi
4f14bcd8 30275done
10f2d63a 30276
e6cc62c6
VS
30277
30278
6232543b 30279fi
10f2d63a 30280
e6cc62c6
VS
30281
30282
1e487827 30283fi
4f14bcd8 30284done
703e0a69 30285
10f2d63a
VZ
30286fi
30287
e6cc62c6
VS
30288
30289
4f14bcd8 30290for ac_func in uname gethostname
70846f0a 30291do
e6cc62c6
VS
30292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30293echo "$as_me:$LINENO: checking for $ac_func" >&5
30294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30295if eval "test \"\${$as_ac_var+set}\" = set"; then
30296 echo $ECHO_N "(cached) $ECHO_C" >&6
30297else
30298 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30299/* confdefs.h. */
30300_ACEOF
30301cat confdefs.h >>conftest.$ac_ext
30302cat >>conftest.$ac_ext <<_ACEOF
30303/* end confdefs.h. */
eea650d8
VS
30304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30306#define $ac_func innocuous_$ac_func
30307
70846f0a 30308/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30309 which can conflict with char $ac_func (); below.
30310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30311 <limits.h> exists even on freestanding compilers. */
eea650d8 30312
e6cc62c6
VS
30313#ifdef __STDC__
30314# include <limits.h>
30315#else
30316# include <assert.h>
30317#endif
eea650d8
VS
30318
30319#undef $ac_func
30320
70846f0a 30321/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30322#ifdef __cplusplus
30323extern "C"
30324{
30325#endif
70846f0a 30326/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30327 builtin and then its argument prototype would still apply. */
30328char $ac_func ();
70846f0a
VZ
30329/* The GNU C library defines this for functions which it implements
30330 to always fail with ENOSYS. Some functions are actually named
30331 something starting with __ and the normal name is an alias. */
30332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30333choke me
30334#else
e6cc62c6
VS
30335char (*f) () = $ac_func;
30336#endif
30337#ifdef __cplusplus
30338}
70846f0a
VZ
30339#endif
30340
e6cc62c6
VS
30341int
30342main ()
30343{
30344return f != $ac_func;
30345 ;
30346 return 0;
30347}
30348_ACEOF
30349rm -f conftest.$ac_objext conftest$ac_exeext
30350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30351 (eval $ac_link) 2>conftest.er1
e6cc62c6 30352 ac_status=$?
eea650d8
VS
30353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
e6cc62c6
VS
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
eea650d8
VS
30358 { ac_try='test -z "$ac_c_werror_flag"
30359 || test ! -s conftest.err'
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; } &&
30365 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30367 (eval $ac_try) 2>&5
30368 ac_status=$?
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); }; }; then
30371 eval "$as_ac_var=yes"
30372else
30373 echo "$as_me: failed program was:" >&5
30374sed 's/^/| /' conftest.$ac_ext >&5
30375
30376eval "$as_ac_var=no"
30377fi
eea650d8
VS
30378rm -f conftest.err conftest.$ac_objext \
30379 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30380fi
30381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30383if test `eval echo '${'$as_ac_var'}'` = yes; then
30384 cat >>confdefs.h <<_ACEOF
30385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30386_ACEOF
4f14bcd8 30387 break
70846f0a
VZ
30388fi
30389done
30390
8284b0c5
MB
30391
30392
e6cc62c6
VS
30393
30394ac_ext=cc
4f14bcd8 30395ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30399
8284b0c5 30400
4f14bcd8
GD
30401
30402for ac_func in strtok_r
10f2d63a 30403do
e6cc62c6
VS
30404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405echo "$as_me:$LINENO: checking for $ac_func" >&5
30406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30407if eval "test \"\${$as_ac_var+set}\" = set"; then
30408 echo $ECHO_N "(cached) $ECHO_C" >&6
30409else
30410 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30411/* confdefs.h. */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h. */
eea650d8
VS
30416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30418#define $ac_func innocuous_$ac_func
30419
4f14bcd8 30420/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
eea650d8 30424
e6cc62c6
VS
30425#ifdef __STDC__
30426# include <limits.h>
30427#else
30428# include <assert.h>
30429#endif
eea650d8
VS
30430
30431#undef $ac_func
30432
4f14bcd8
GD
30433/* Override any gcc2 internal prototype to avoid an error. */
30434#ifdef __cplusplus
30435extern "C"
e6cc62c6 30436{
4f14bcd8
GD
30437#endif
30438/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30439 builtin and then its argument prototype would still apply. */
30440char $ac_func ();
4f14bcd8
GD
30441/* The GNU C library defines this for functions which it implements
30442 to always fail with ENOSYS. Some functions are actually named
30443 something starting with __ and the normal name is an alias. */
30444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30445choke me
30446#else
e6cc62c6
VS
30447char (*f) () = $ac_func;
30448#endif
30449#ifdef __cplusplus
30450}
4f14bcd8
GD
30451#endif
30452
e6cc62c6
VS
30453int
30454main ()
30455{
30456return f != $ac_func;
30457 ;
30458 return 0;
30459}
30460_ACEOF
30461rm -f conftest.$ac_objext conftest$ac_exeext
30462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30463 (eval $ac_link) 2>conftest.er1
e6cc62c6 30464 ac_status=$?
eea650d8
VS
30465 grep -v '^ *+' conftest.er1 >conftest.err
30466 rm -f conftest.er1
30467 cat conftest.err >&5
e6cc62c6
VS
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
eea650d8
VS
30470 { ac_try='test -z "$ac_cxx_werror_flag"
30471 || test ! -s conftest.err'
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; } &&
30477 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479 (eval $ac_try) 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
30483 eval "$as_ac_var=yes"
30484else
30485 echo "$as_me: failed program was:" >&5
30486sed 's/^/| /' conftest.$ac_ext >&5
30487
30488eval "$as_ac_var=no"
30489fi
eea650d8
VS
30490rm -f conftest.err conftest.$ac_objext \
30491 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30492fi
30493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30495if test `eval echo '${'$as_ac_var'}'` = yes; then
30496 cat >>confdefs.h <<_ACEOF
30497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30498_ACEOF
4f14bcd8 30499
10f2d63a
VZ
30500fi
30501done
30502
8284b0c5 30503
4f14bcd8 30504ac_ext=c
4f14bcd8 30505ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30508ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 30509
5c6fa7d2 30510
8284b0c5 30511INET_LINK=
e6cc62c6 30512
4f14bcd8
GD
30513for ac_func in inet_addr
30514do
e6cc62c6
VS
30515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30516echo "$as_me:$LINENO: checking for $ac_func" >&5
30517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30518if eval "test \"\${$as_ac_var+set}\" = set"; then
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30520else
30521 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30522/* confdefs.h. */
30523_ACEOF
30524cat confdefs.h >>conftest.$ac_ext
30525cat >>conftest.$ac_ext <<_ACEOF
30526/* end confdefs.h. */
eea650d8
VS
30527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30529#define $ac_func innocuous_$ac_func
30530
4f14bcd8 30531/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30532 which can conflict with char $ac_func (); below.
30533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30534 <limits.h> exists even on freestanding compilers. */
eea650d8 30535
e6cc62c6
VS
30536#ifdef __STDC__
30537# include <limits.h>
30538#else
30539# include <assert.h>
30540#endif
eea650d8
VS
30541
30542#undef $ac_func
30543
10f2d63a 30544/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30545#ifdef __cplusplus
30546extern "C"
30547{
30548#endif
10f2d63a 30549/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30550 builtin and then its argument prototype would still apply. */
30551char $ac_func ();
4f14bcd8
GD
30552/* The GNU C library defines this for functions which it implements
30553 to always fail with ENOSYS. Some functions are actually named
30554 something starting with __ and the normal name is an alias. */
30555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30556choke me
30557#else
e6cc62c6
VS
30558char (*f) () = $ac_func;
30559#endif
30560#ifdef __cplusplus
30561}
4f14bcd8
GD
30562#endif
30563
e6cc62c6
VS
30564int
30565main ()
30566{
30567return f != $ac_func;
30568 ;
30569 return 0;
30570}
30571_ACEOF
30572rm -f conftest.$ac_objext conftest$ac_exeext
30573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30574 (eval $ac_link) 2>conftest.er1
e6cc62c6 30575 ac_status=$?
eea650d8
VS
30576 grep -v '^ *+' conftest.er1 >conftest.err
30577 rm -f conftest.er1
30578 cat conftest.err >&5
e6cc62c6
VS
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } &&
eea650d8
VS
30581 { ac_try='test -z "$ac_c_werror_flag"
30582 || test ! -s conftest.err'
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; } &&
30588 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594 eval "$as_ac_var=yes"
30595else
30596 echo "$as_me: failed program was:" >&5
30597sed 's/^/| /' conftest.$ac_ext >&5
30598
30599eval "$as_ac_var=no"
30600fi
eea650d8
VS
30601rm -f conftest.err conftest.$ac_objext \
30602 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30603fi
30604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30606if test `eval echo '${'$as_ac_var'}'` = yes; then
30607 cat >>confdefs.h <<_ACEOF
30608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30609_ACEOF
30610 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30611#define HAVE_INET_ADDR 1
e6cc62c6 30612_ACEOF
10f2d63a
VZ
30613
30614else
e6cc62c6
VS
30615
30616 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30617echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30618if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30619 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30620else
e6cc62c6 30621 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30622LIBS="-lnsl $LIBS"
e6cc62c6 30623cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30624/* confdefs.h. */
30625_ACEOF
30626cat confdefs.h >>conftest.$ac_ext
30627cat >>conftest.$ac_ext <<_ACEOF
30628/* end confdefs.h. */
30629
10f2d63a 30630/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30631#ifdef __cplusplus
30632extern "C"
30633#endif
10f2d63a 30634/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30635 builtin and then its argument prototype would still apply. */
30636char inet_addr ();
30637int
30638main ()
30639{
30640inet_addr ();
30641 ;
30642 return 0;
30643}
30644_ACEOF
30645rm -f conftest.$ac_objext conftest$ac_exeext
30646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30647 (eval $ac_link) 2>conftest.er1
e6cc62c6 30648 ac_status=$?
eea650d8
VS
30649 grep -v '^ *+' conftest.er1 >conftest.err
30650 rm -f conftest.er1
30651 cat conftest.err >&5
e6cc62c6
VS
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); } &&
eea650d8
VS
30654 { ac_try='test -z "$ac_c_werror_flag"
30655 || test ! -s conftest.err'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; }; then
30667 ac_cv_lib_nsl_inet_addr=yes
30668else
30669 echo "$as_me: failed program was:" >&5
30670sed 's/^/| /' conftest.$ac_ext >&5
30671
30672ac_cv_lib_nsl_inet_addr=no
30673fi
eea650d8
VS
30674rm -f conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30676LIBS=$ac_check_lib_save_LIBS
30677fi
30678echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30679echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30680if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 30681 INET_LINK="nsl"
10f2d63a 30682else
0e012a93
VZ
30683
30684 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
30685echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30686if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30687 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30688else
e6cc62c6 30689 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30690LIBS="-lresolv $LIBS"
e6cc62c6 30691cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30692/* confdefs.h. */
30693_ACEOF
30694cat confdefs.h >>conftest.$ac_ext
30695cat >>conftest.$ac_ext <<_ACEOF
30696/* end confdefs.h. */
30697
5c6fa7d2 30698/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30699#ifdef __cplusplus
30700extern "C"
30701#endif
5c6fa7d2 30702/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30703 builtin and then its argument prototype would still apply. */
30704char inet_addr ();
30705int
30706main ()
30707{
30708inet_addr ();
30709 ;
30710 return 0;
30711}
30712_ACEOF
30713rm -f conftest.$ac_objext conftest$ac_exeext
30714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30715 (eval $ac_link) 2>conftest.er1
e6cc62c6 30716 ac_status=$?
eea650d8
VS
30717 grep -v '^ *+' conftest.er1 >conftest.err
30718 rm -f conftest.er1
30719 cat conftest.err >&5
e6cc62c6
VS
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); } &&
eea650d8
VS
30722 { ac_try='test -z "$ac_c_werror_flag"
30723 || test ! -s conftest.err'
30724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30725 (eval $ac_try) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; } &&
30729 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; }; then
30735 ac_cv_lib_resolv_inet_addr=yes
30736else
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
30740ac_cv_lib_resolv_inet_addr=no
30741fi
eea650d8
VS
30742rm -f conftest.err conftest.$ac_objext \
30743 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30744LIBS=$ac_check_lib_save_LIBS
30745fi
30746echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30747echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30748if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 30749 INET_LINK="resolv"
698dcdb6 30750else
0e012a93
VZ
30751
30752 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
30753echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30754if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30755 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 30756else
e6cc62c6 30757 ac_check_lib_save_LIBS=$LIBS
3c011993 30758LIBS="-lsocket $LIBS"
e6cc62c6 30759cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30760/* confdefs.h. */
30761_ACEOF
30762cat confdefs.h >>conftest.$ac_ext
30763cat >>conftest.$ac_ext <<_ACEOF
30764/* end confdefs.h. */
30765
3c011993 30766/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30767#ifdef __cplusplus
30768extern "C"
30769#endif
3c011993 30770/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30771 builtin and then its argument prototype would still apply. */
30772char inet_addr ();
30773int
30774main ()
30775{
30776inet_addr ();
30777 ;
30778 return 0;
30779}
30780_ACEOF
30781rm -f conftest.$ac_objext conftest$ac_exeext
30782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30783 (eval $ac_link) 2>conftest.er1
e6cc62c6 30784 ac_status=$?
eea650d8
VS
30785 grep -v '^ *+' conftest.er1 >conftest.err
30786 rm -f conftest.er1
30787 cat conftest.err >&5
e6cc62c6
VS
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); } &&
eea650d8
VS
30790 { ac_try='test -z "$ac_c_werror_flag"
30791 || test ! -s conftest.err'
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; } &&
30797 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30800 ac_status=$?
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; }; then
30803 ac_cv_lib_socket_inet_addr=yes
30804else
30805 echo "$as_me: failed program was:" >&5
30806sed 's/^/| /' conftest.$ac_ext >&5
30807
30808ac_cv_lib_socket_inet_addr=no
30809fi
eea650d8
VS
30810rm -f conftest.err conftest.$ac_objext \
30811 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30812LIBS=$ac_check_lib_save_LIBS
30813fi
30814echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30815echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30816if test $ac_cv_lib_socket_inet_addr = yes; then
30817 INET_LINK="socket"
4f14bcd8 30818
8284b0c5 30819fi
e6cc62c6 30820
698dcdb6 30821
0e012a93 30822
7b4a847f 30823fi
e6cc62c6
VS
30824
30825
0e012a93 30826
a0b9e27f 30827fi
579d8138 30828
e6cc62c6
VS
30829
30830
5c6fa7d2 30831fi
e6cc62c6
VS
30832done
30833
30834
30835
30836for ac_func in inet_aton
30837do
30838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30839echo "$as_me:$LINENO: checking for $ac_func" >&5
30840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30841if eval "test \"\${$as_ac_var+set}\" = set"; then
30842 echo $ECHO_N "(cached) $ECHO_C" >&6
30843else
30844 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30845/* confdefs.h. */
30846_ACEOF
30847cat confdefs.h >>conftest.$ac_ext
30848cat >>conftest.$ac_ext <<_ACEOF
30849/* end confdefs.h. */
eea650d8
VS
30850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30852#define $ac_func innocuous_$ac_func
30853
e6cc62c6
VS
30854/* System header to define __stub macros and hopefully few prototypes,
30855 which can conflict with char $ac_func (); below.
30856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30857 <limits.h> exists even on freestanding compilers. */
eea650d8 30858
e6cc62c6
VS
30859#ifdef __STDC__
30860# include <limits.h>
30861#else
30862# include <assert.h>
30863#endif
eea650d8
VS
30864
30865#undef $ac_func
30866
e6cc62c6
VS
30867/* Override any gcc2 internal prototype to avoid an error. */
30868#ifdef __cplusplus
30869extern "C"
30870{
30871#endif
30872/* We use char because int might match the return type of a gcc2
30873 builtin and then its argument prototype would still apply. */
30874char $ac_func ();
30875/* The GNU C library defines this for functions which it implements
30876 to always fail with ENOSYS. Some functions are actually named
30877 something starting with __ and the normal name is an alias. */
30878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30879choke me
30880#else
30881char (*f) () = $ac_func;
30882#endif
30883#ifdef __cplusplus
30884}
30885#endif
30886
30887int
30888main ()
30889{
30890return f != $ac_func;
30891 ;
30892 return 0;
30893}
30894_ACEOF
30895rm -f conftest.$ac_objext conftest$ac_exeext
30896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30897 (eval $ac_link) 2>conftest.er1
e6cc62c6 30898 ac_status=$?
eea650d8
VS
30899 grep -v '^ *+' conftest.er1 >conftest.err
30900 rm -f conftest.er1
30901 cat conftest.err >&5
e6cc62c6
VS
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); } &&
eea650d8
VS
30904 { ac_try='test -z "$ac_c_werror_flag"
30905 || test ! -s conftest.err'
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; } &&
30911 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
30914 ac_status=$?
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; }; then
30917 eval "$as_ac_var=yes"
30918else
30919 echo "$as_me: failed program was:" >&5
30920sed 's/^/| /' conftest.$ac_ext >&5
30921
30922eval "$as_ac_var=no"
30923fi
eea650d8
VS
30924rm -f conftest.err conftest.$ac_objext \
30925 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30926fi
30927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30929if test `eval echo '${'$as_ac_var'}'` = yes; then
30930 cat >>confdefs.h <<_ACEOF
30931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30932_ACEOF
30933 cat >>confdefs.h <<\_ACEOF
30934#define HAVE_INET_ATON 1
30935_ACEOF
30936
30937else
30938
30939 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30940echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30941echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30942if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30944else
30945 ac_check_lib_save_LIBS=$LIBS
30946LIBS="-l$INET_LINK $LIBS"
30947cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30948/* confdefs.h. */
30949_ACEOF
30950cat confdefs.h >>conftest.$ac_ext
30951cat >>conftest.$ac_ext <<_ACEOF
30952/* end confdefs.h. */
30953
30954/* Override any gcc2 internal prototype to avoid an error. */
30955#ifdef __cplusplus
30956extern "C"
30957#endif
30958/* We use char because int might match the return type of a gcc2
30959 builtin and then its argument prototype would still apply. */
30960char inet_aton ();
30961int
30962main ()
30963{
30964inet_aton ();
30965 ;
30966 return 0;
30967}
30968_ACEOF
30969rm -f conftest.$ac_objext conftest$ac_exeext
30970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30971 (eval $ac_link) 2>conftest.er1
e6cc62c6 30972 ac_status=$?
eea650d8
VS
30973 grep -v '^ *+' conftest.er1 >conftest.err
30974 rm -f conftest.er1
30975 cat conftest.err >&5
e6cc62c6
VS
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); } &&
eea650d8
VS
30978 { ac_try='test -z "$ac_c_werror_flag"
30979 || test ! -s conftest.err'
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; } &&
30985 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 eval "$as_ac_Lib=yes"
30992else
30993 echo "$as_me: failed program was:" >&5
30994sed 's/^/| /' conftest.$ac_ext >&5
30995
30996eval "$as_ac_Lib=no"
30997fi
eea650d8
VS
30998rm -f conftest.err conftest.$ac_objext \
30999 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31000LIBS=$ac_check_lib_save_LIBS
31001fi
31002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31003echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31004if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31005 cat >>confdefs.h <<\_ACEOF
31006#define HAVE_INET_ATON 1
31007_ACEOF
52127426 31008
a0b9e27f 31009fi
247f5006 31010
8284b0c5 31011
698dcdb6 31012fi
4f14bcd8
GD
31013done
31014
8284b0c5 31015
e6cc62c6
VS
31016if test "x$INET_LINK" != "x"; then
31017 cat >>confdefs.h <<\_ACEOF
31018#define HAVE_INET_ADDR 1
31019_ACEOF
31020
31021 INET_LINK=" -l$INET_LINK"
31022fi
31023
31024fi
a0b9e27f 31025
a0b9e27f 31026
4f14bcd8 31027
edd891e2
VS
31028EXTRALIBS_ESD=
31029echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31030echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31031if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31032 echo $ECHO_N "(cached) $ECHO_C" >&6
31033else
31034 ac_check_lib_save_LIBS=$LIBS
31035LIBS="-lesd $LIBS"
31036cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
31037/* confdefs.h. */
31038_ACEOF
31039cat confdefs.h >>conftest.$ac_ext
31040cat >>conftest.$ac_ext <<_ACEOF
31041/* end confdefs.h. */
31042
31043/* Override any gcc2 internal prototype to avoid an error. */
31044#ifdef __cplusplus
31045extern "C"
31046#endif
31047/* We use char because int might match the return type of a gcc2
31048 builtin and then its argument prototype would still apply. */
31049char esd_close ();
31050int
31051main ()
31052{
31053esd_close ();
31054 ;
31055 return 0;
31056}
31057_ACEOF
31058rm -f conftest.$ac_objext conftest$ac_exeext
31059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31060 (eval $ac_link) 2>conftest.er1
edd891e2 31061 ac_status=$?
eea650d8
VS
31062 grep -v '^ *+' conftest.er1 >conftest.err
31063 rm -f conftest.er1
31064 cat conftest.err >&5
edd891e2
VS
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); } &&
eea650d8
VS
31067 { ac_try='test -z "$ac_c_werror_flag"
31068 || test ! -s conftest.err'
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; } &&
31074 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; }; then
31080 ac_cv_lib_esd_esd_close=yes
31081else
31082 echo "$as_me: failed program was:" >&5
31083sed 's/^/| /' conftest.$ac_ext >&5
31084
31085ac_cv_lib_esd_esd_close=no
31086fi
eea650d8
VS
31087rm -f conftest.err conftest.$ac_objext \
31088 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
31089LIBS=$ac_check_lib_save_LIBS
31090fi
31091echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31092echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31093if test $ac_cv_lib_esd_esd_close = yes; then
31094
31095
31096for ac_header in esd.h
31097do
31098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31099if eval "test \"\${$as_ac_Header+set}\" = set"; then
31100 echo "$as_me:$LINENO: checking for $ac_header" >&5
31101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31102if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31103 echo $ECHO_N "(cached) $ECHO_C" >&6
31104fi
edd891e2
VS
31105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31107else
31108 # Is the header compilable?
edd891e2
VS
31109echo "$as_me:$LINENO: checking $ac_header usability" >&5
31110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31111cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31112/* confdefs.h. */
31113_ACEOF
31114cat confdefs.h >>conftest.$ac_ext
31115cat >>conftest.$ac_ext <<_ACEOF
31116/* end confdefs.h. */
31117$ac_includes_default
edd891e2 31118#include <$ac_header>
e6cc62c6
VS
31119_ACEOF
31120rm -f conftest.$ac_objext
31121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31122 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31123 ac_status=$?
eea650d8
VS
31124 grep -v '^ *+' conftest.er1 >conftest.err
31125 rm -f conftest.er1
31126 cat conftest.err >&5
e6cc62c6
VS
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } &&
eea650d8
VS
31129 { ac_try='test -z "$ac_c_werror_flag"
31130 || test ! -s conftest.err'
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138 (eval $ac_try) 2>&5
31139 ac_status=$?
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; }; then
31142 ac_header_compiler=yes
31143else
31144 echo "$as_me: failed program was:" >&5
31145sed 's/^/| /' conftest.$ac_ext >&5
31146
31147ac_header_compiler=no
31148fi
eea650d8 31149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31151echo "${ECHO_T}$ac_header_compiler" >&6
31152
31153# Is the header present?
edd891e2
VS
31154echo "$as_me:$LINENO: checking $ac_header presence" >&5
31155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31156cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31157/* confdefs.h. */
31158_ACEOF
31159cat confdefs.h >>conftest.$ac_ext
31160cat >>conftest.$ac_ext <<_ACEOF
31161/* end confdefs.h. */
edd891e2 31162#include <$ac_header>
e6cc62c6
VS
31163_ACEOF
31164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31166 ac_status=$?
31167 grep -v '^ *+' conftest.er1 >conftest.err
31168 rm -f conftest.er1
31169 cat conftest.err >&5
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); } >/dev/null; then
31172 if test -s conftest.err; then
31173 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 31174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31175 else
31176 ac_cpp_err=
31177 fi
a0b9e27f 31178else
e6cc62c6
VS
31179 ac_cpp_err=yes
31180fi
31181if test -z "$ac_cpp_err"; then
31182 ac_header_preproc=yes
31183else
31184 echo "$as_me: failed program was:" >&5
31185sed 's/^/| /' conftest.$ac_ext >&5
31186
31187 ac_header_preproc=no
31188fi
31189rm -f conftest.err conftest.$ac_ext
31190echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31191echo "${ECHO_T}$ac_header_preproc" >&6
31192
31193# So? What about this header?
eea650d8
VS
31194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31195 yes:no: )
edd891e2
VS
31196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
31198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31200 ac_header_preproc=yes
e6cc62c6 31201 ;;
eea650d8 31202 no:yes:* )
edd891e2
VS
31203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
31205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31210echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
31213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31215 (
31216 cat <<\_ASBOX
eea650d8
VS
31217## ----------------------------------------- ##
31218## Report this to wx-dev@lists.wxwindows.org ##
31219## ----------------------------------------- ##
e6cc62c6
VS
31220_ASBOX
31221 ) |
31222 sed "s/^/$as_me: WARNING: /" >&2
31223 ;;
31224esac
edd891e2
VS
31225echo "$as_me:$LINENO: checking for $ac_header" >&5
31226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31227if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31228 echo $ECHO_N "(cached) $ECHO_C" >&6
31229else
eea650d8 31230 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31231fi
edd891e2
VS
31232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31234
e6cc62c6 31235fi
edd891e2
VS
31236if test `eval echo '${'$as_ac_Header'}'` = yes; then
31237 cat >>confdefs.h <<_ACEOF
31238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31239_ACEOF
e6cc62c6 31240
edd891e2 31241 EXTRALIBS_ESD="-lesd"
4f14bcd8 31242
a0b9e27f 31243fi
247f5006 31244
edd891e2 31245done
8284b0c5 31246
4f14bcd8 31247
6232543b 31248fi
10f2d63a 31249
703e0a69 31250
8284b0c5 31251
d19d1899
MB
31252echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31253echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31254cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31255/* confdefs.h. */
31256_ACEOF
31257cat confdefs.h >>conftest.$ac_ext
31258cat >>conftest.$ac_ext <<_ACEOF
31259/* end confdefs.h. */
31260#ifdef __linux__
31261 #include <linux/cdrom.h>
31262 #else
31263 /* For Solaris */
31264 #include <sys/cdio.h>
31265 #endif
31266
31267int
31268main ()
31269{
31270struct cdrom_tocentry entry, old_entry;
31271 ;
31272 return 0;
31273}
31274_ACEOF
31275rm -f conftest.$ac_objext
31276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31277 (eval $ac_compile) 2>conftest.er1
d19d1899 31278 ac_status=$?
eea650d8
VS
31279 grep -v '^ *+' conftest.er1 >conftest.err
31280 rm -f conftest.er1
31281 cat conftest.err >&5
d19d1899
MB
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); } &&
eea650d8
VS
31284 { ac_try='test -z "$ac_c_werror_flag"
31285 || test ! -s conftest.err'
31286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31287 (eval $ac_try) 2>&5
31288 ac_status=$?
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); }; } &&
31291 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293 (eval $ac_try) 2>&5
31294 ac_status=$?
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; }; then
31297 echo "$as_me:$LINENO: result: yes" >&5
31298echo "${ECHO_T}yes" >&6
31299 cat >>confdefs.h <<\_ACEOF
31300#define HAVE_KNOWN_CDROM_INTERFACE 1
31301_ACEOF
31302
31303else
31304 echo "$as_me: failed program was:" >&5
31305sed 's/^/| /' conftest.$ac_ext >&5
31306
31307echo "$as_me:$LINENO: result: no" >&5
31308echo "${ECHO_T}no" >&6
31309fi
eea650d8 31310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31311
31312
31313cat >confcache <<\_ACEOF
4f14bcd8
GD
31314# This file is a shell script that caches the results of configure
31315# tests run on this system so they can be shared between configure
e6cc62c6
VS
31316# scripts and configure runs, see configure's option --config-cache.
31317# It is not useful on other systems. If it contains results you don't
31318# want to keep, you may remove or edit it.
4f14bcd8 31319#
e6cc62c6
VS
31320# config.status only pays attention to the cache file if you give it
31321# the --recheck option to rerun configure.
4f14bcd8 31322#
e6cc62c6
VS
31323# `ac_cv_env_foo' variables (set or unset) will be overridden when
31324# loading this file, other *unset* `ac_cv_foo' will be assigned the
31325# following values.
31326
31327_ACEOF
31328
4f14bcd8
GD
31329# The following way of writing the cache mishandles newlines in values,
31330# but we know of no workaround that is simple, portable, and efficient.
31331# So, don't put newlines in cache variables' values.
31332# Ultrix sh set writes to stderr and can't be redirected directly,
31333# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31334{
31335 (set) 2>&1 |
31336 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31337 *ac_space=\ *)
31338 # `set' does not quote correctly, so add quotes (double-quote
31339 # substitution turns \\\\ into \\, and sed turns \\ into \).
31340 sed -n \
eea650d8
VS
31341 "s/'/'\\\\''/g;
31342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31343 ;;
31344 *)
31345 # `set' quotes correctly as required by POSIX, so do not add quotes.
31346 sed -n \
eea650d8 31347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31348 ;;
31349 esac;
31350} |
31351 sed '
31352 t clear
31353 : clear
31354 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31355 t end
31356 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31357 : end' >>confcache
31358if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31359 if test -w $cache_file; then
e6cc62c6
VS
31360 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31361 cat confcache >$cache_file
f6bcfd97 31362 else
4f14bcd8 31363 echo "not updating unwritable cache $cache_file"
f6bcfd97 31364 fi
4f14bcd8
GD
31365fi
31366rm -f confcache
f6bcfd97 31367
8284b0c5 31368
009fead0 31369CPP_MT_FLAG=
73d617c9 31370if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31371
e6cc62c6 31372
7274f1c7 31373 THREADS_LINK=
009fead0 31374 THREADS_CFLAGS=
7274f1c7
RL
31375
31376 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31377 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31378 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31379echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31380 wxUSE_THREADS="no"
31381 fi
4f14bcd8 31382 fi
4f14bcd8 31383
7274f1c7 31384 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31385
31386
009fead0
VZ
31387 THREAD_OPTS="-pthread"
31388 case "${host}" in
31389 *-*-solaris2* | *-*-sunos4* )
31390 if test "x$GCC" = "xyes"; then
126be6b4 31391 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31392 else
31393 THREAD_OPTS="-mt $THREAD_OPTS"
31394 fi
31395 ;;
31396 *-*-freebsd*)
31397 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31398 ;;
17234b26
MB
31399 *-*-darwin* | *-*-cygwin* )
31400 THREAD_OPTS=""
4101db81 31401 ;;
8f4a9a10 31402 *-*-aix*)
009fead0
VZ
31403 THREAD_OPTS="pthreads"
31404 ;;
4f5a7f74
VZ
31405 *-hp-hpux* )
31406 if test "x$GCC" != "xyes"; then
31407 THREAD_OPTS=""
31408 fi
89e3b3e4
VZ
31409 ;;
31410
31411 *-*-irix* )
31412 if test "x$GCC" = "xyes"; then
31413 THREAD_OPTS=""
31414 fi
31415 ;;
31416
31417 *-*-*UnixWare*)
31418 if test "x$GCC" != "xyes"; then
31419 THREAD_OPTS="-Ethread"
31420 fi
31421 ;;
009fead0 31422 esac
4f14bcd8 31423
02a1dfba 31424 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31425
009fead0
VZ
31426 THREADS_OK=no
31427 for flag in $THREAD_OPTS; do
31428 case $flag in
31429 none)
e6cc62c6
VS
31430 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31431echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31432 ;;
698dcdb6 31433
009fead0 31434 -*)
e6cc62c6
VS
31435 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31436echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31437 THREADS_CFLAGS="$flag"
31438 ;;
698dcdb6 31439
009fead0 31440 *)
e6cc62c6
VS
31441 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31442echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31443 THREADS_LINK="-l$flag"
31444 ;;
31445 esac
10f2d63a 31446
009fead0
VZ
31447 save_LIBS="$LIBS"
31448 save_CFLAGS="$CFLAGS"
31449 LIBS="$THREADS_LINK $LIBS"
04727afd 31450 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31451
e6cc62c6 31452 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31453/* confdefs.h. */
31454_ACEOF
31455cat confdefs.h >>conftest.$ac_ext
31456cat >>conftest.$ac_ext <<_ACEOF
31457/* end confdefs.h. */
009fead0 31458#include <pthread.h>
e6cc62c6
VS
31459int
31460main ()
31461{
009fead0 31462pthread_create(0,0,0,0);
e6cc62c6
VS
31463 ;
31464 return 0;
31465}
31466_ACEOF
31467rm -f conftest.$ac_objext conftest$ac_exeext
31468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31469 (eval $ac_link) 2>conftest.er1
e6cc62c6 31470 ac_status=$?
eea650d8
VS
31471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
e6cc62c6
VS
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
eea650d8
VS
31476 { ac_try='test -z "$ac_c_werror_flag"
31477 || test ! -s conftest.err'
31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479 (eval $ac_try) 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; } &&
31483 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; }; then
009fead0 31489 THREADS_OK=yes
10f2d63a 31490else
e6cc62c6
VS
31491 echo "$as_me: failed program was:" >&5
31492sed 's/^/| /' conftest.$ac_ext >&5
31493
6232543b 31494fi
eea650d8
VS
31495rm -f conftest.err conftest.$ac_objext \
31496 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31497
009fead0
VZ
31498 LIBS="$save_LIBS"
31499 CFLAGS="$save_CFLAGS"
d9b9876f 31500
e6cc62c6
VS
31501 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31502echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31503 if test "x$THREADS_OK" = "xyes"; then
31504 break;
31505 fi
d9b9876f 31506
009fead0
VZ
31507 THREADS_LINK=""
31508 THREADS_CFLAGS=""
31509 done
4f14bcd8 31510
009fead0
VZ
31511 if test "x$THREADS_OK" != "xyes"; then
31512 wxUSE_THREADS=no
e6cc62c6
VS
31513 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31514echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 31515 else
db82f09e
VZ
31516 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31517 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 31518
e6cc62c6
VS
31519 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31520echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
31521 flag=no
31522 case "${host}" in
2b5f62a0
VZ
31523 *-aix*)
31524 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31525 flag="-D_THREAD_SAFE"
31526 ;;
31527 *-freebsd*)
009fead0
VZ
31528 flag="-D_THREAD_SAFE"
31529 ;;
06313569
GD
31530 *-hp-hpux* )
31531 flag="-D_REENTRANT"
4f5a7f74
VZ
31532 if test "x$GCC" != "xyes"; then
31533 flag="$flag -D_RWSTD_MULTI_THREAD"
31534 fi
06313569 31535 ;;
009fead0
VZ
31536 *solaris* | alpha*-osf*)
31537 flag="-D_REENTRANT"
31538 ;;
31539 esac
e6cc62c6
VS
31540 echo "$as_me:$LINENO: result: ${flag}" >&5
31541echo "${ECHO_T}${flag}" >&6
009fead0 31542 if test "x$flag" != xno; then
04727afd 31543 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
31544 fi
31545
009fead0 31546 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 31547 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
31548 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31549 fi
31550 fi
4f14bcd8 31551 fi
4f14bcd8 31552
7274f1c7 31553 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31554
31555for ac_func in thr_setconcurrency
4f14bcd8 31556do
e6cc62c6
VS
31557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31558echo "$as_me:$LINENO: checking for $ac_func" >&5
31559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31560if eval "test \"\${$as_ac_var+set}\" = set"; then
31561 echo $ECHO_N "(cached) $ECHO_C" >&6
31562else
31563 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31564/* confdefs.h. */
31565_ACEOF
31566cat confdefs.h >>conftest.$ac_ext
31567cat >>conftest.$ac_ext <<_ACEOF
31568/* end confdefs.h. */
eea650d8
VS
31569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31571#define $ac_func innocuous_$ac_func
31572
4f14bcd8 31573/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31574 which can conflict with char $ac_func (); below.
31575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31576 <limits.h> exists even on freestanding compilers. */
eea650d8 31577
e6cc62c6
VS
31578#ifdef __STDC__
31579# include <limits.h>
31580#else
31581# include <assert.h>
31582#endif
eea650d8
VS
31583
31584#undef $ac_func
31585
4f14bcd8 31586/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31587#ifdef __cplusplus
31588extern "C"
31589{
31590#endif
4f14bcd8 31591/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31592 builtin and then its argument prototype would still apply. */
31593char $ac_func ();
4f14bcd8
GD
31594/* The GNU C library defines this for functions which it implements
31595 to always fail with ENOSYS. Some functions are actually named
31596 something starting with __ and the normal name is an alias. */
31597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31598choke me
31599#else
e6cc62c6
VS
31600char (*f) () = $ac_func;
31601#endif
31602#ifdef __cplusplus
31603}
4f14bcd8
GD
31604#endif
31605
e6cc62c6
VS
31606int
31607main ()
31608{
31609return f != $ac_func;
31610 ;
31611 return 0;
31612}
31613_ACEOF
31614rm -f conftest.$ac_objext conftest$ac_exeext
31615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31616 (eval $ac_link) 2>conftest.er1
e6cc62c6 31617 ac_status=$?
eea650d8
VS
31618 grep -v '^ *+' conftest.er1 >conftest.err
31619 rm -f conftest.er1
31620 cat conftest.err >&5
e6cc62c6
VS
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); } &&
eea650d8
VS
31623 { ac_try='test -z "$ac_c_werror_flag"
31624 || test ! -s conftest.err'
31625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31626 (eval $ac_try) 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; } &&
31630 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31632 (eval $ac_try) 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
31636 eval "$as_ac_var=yes"
31637else
31638 echo "$as_me: failed program was:" >&5
31639sed 's/^/| /' conftest.$ac_ext >&5
31640
31641eval "$as_ac_var=no"
31642fi
eea650d8
VS
31643rm -f conftest.err conftest.$ac_objext \
31644 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31645fi
31646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31648if test `eval echo '${'$as_ac_var'}'` = yes; then
31649 cat >>confdefs.h <<_ACEOF
31650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31651_ACEOF
698dcdb6 31652
10f2d63a 31653fi
4f14bcd8 31654done
10f2d63a 31655
8284b0c5 31656
e6cc62c6
VS
31657
31658for ac_header in sched.h
4f14bcd8 31659do
e6cc62c6
VS
31660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31661if eval "test \"\${$as_ac_Header+set}\" = set"; then
31662 echo "$as_me:$LINENO: checking for $ac_header" >&5
31663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31664if eval "test \"\${$as_ac_Header+set}\" = set"; then
31665 echo $ECHO_N "(cached) $ECHO_C" >&6
31666fi
31667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31669else
31670 # Is the header compilable?
31671echo "$as_me:$LINENO: checking $ac_header usability" >&5
31672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31673cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31674/* confdefs.h. */
31675_ACEOF
31676cat confdefs.h >>conftest.$ac_ext
31677cat >>conftest.$ac_ext <<_ACEOF
31678/* end confdefs.h. */
31679$ac_includes_default
31680#include <$ac_header>
31681_ACEOF
31682rm -f conftest.$ac_objext
31683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31684 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31685 ac_status=$?
eea650d8
VS
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
e6cc62c6
VS
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
eea650d8
VS
31691 { ac_try='test -z "$ac_c_werror_flag"
31692 || test ! -s conftest.err'
31693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694 (eval $ac_try) 2>&5
31695 ac_status=$?
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; } &&
31698 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31700 (eval $ac_try) 2>&5
31701 ac_status=$?
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); }; }; then
31704 ac_header_compiler=yes
31705else
31706 echo "$as_me: failed program was:" >&5
31707sed 's/^/| /' conftest.$ac_ext >&5
31708
31709ac_header_compiler=no
31710fi
eea650d8 31711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31713echo "${ECHO_T}$ac_header_compiler" >&6
31714
31715# Is the header present?
31716echo "$as_me:$LINENO: checking $ac_header presence" >&5
31717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31718cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31719/* confdefs.h. */
31720_ACEOF
31721cat confdefs.h >>conftest.$ac_ext
31722cat >>conftest.$ac_ext <<_ACEOF
31723/* end confdefs.h. */
31724#include <$ac_header>
31725_ACEOF
31726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31728 ac_status=$?
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } >/dev/null; then
31734 if test -s conftest.err; then
31735 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 31736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31737 else
31738 ac_cpp_err=
31739 fi
31740else
31741 ac_cpp_err=yes
31742fi
31743if test -z "$ac_cpp_err"; then
31744 ac_header_preproc=yes
31745else
31746 echo "$as_me: failed program was:" >&5
31747sed 's/^/| /' conftest.$ac_ext >&5
31748
31749 ac_header_preproc=no
31750fi
31751rm -f conftest.err conftest.$ac_ext
31752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31753echo "${ECHO_T}$ac_header_preproc" >&6
31754
31755# So? What about this header?
eea650d8
VS
31756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31757 yes:no: )
e6cc62c6
VS
31758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
31760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31762 ac_header_preproc=yes
e6cc62c6 31763 ;;
eea650d8 31764 no:yes:* )
e6cc62c6
VS
31765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
31767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
31773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
31775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31777 (
31778 cat <<\_ASBOX
eea650d8
VS
31779## ----------------------------------------- ##
31780## Report this to wx-dev@lists.wxwindows.org ##
31781## ----------------------------------------- ##
e6cc62c6
VS
31782_ASBOX
31783 ) |
31784 sed "s/^/$as_me: WARNING: /" >&2
31785 ;;
31786esac
31787echo "$as_me:$LINENO: checking for $ac_header" >&5
31788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31789if eval "test \"\${$as_ac_Header+set}\" = set"; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31791else
eea650d8 31792 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 31793fi
e6cc62c6
VS
31794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31796
10f2d63a 31797fi
e6cc62c6
VS
31798if test `eval echo '${'$as_ac_Header'}'` = yes; then
31799 cat >>confdefs.h <<_ACEOF
31800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31801_ACEOF
31802
f6bcfd97 31803fi
e6cc62c6 31804
4f14bcd8 31805done
f6bcfd97 31806
009fead0 31807 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
31808 echo "$as_me:$LINENO: checking for sched_yield" >&5
31809echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31810if test "${ac_cv_func_sched_yield+set}" = set; then
31811 echo $ECHO_N "(cached) $ECHO_C" >&6
31812else
31813 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31814/* confdefs.h. */
31815_ACEOF
31816cat confdefs.h >>conftest.$ac_ext
31817cat >>conftest.$ac_ext <<_ACEOF
31818/* end confdefs.h. */
eea650d8
VS
31819/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31821#define sched_yield innocuous_sched_yield
31822
009fead0 31823/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31824 which can conflict with char sched_yield (); below.
31825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31826 <limits.h> exists even on freestanding compilers. */
eea650d8 31827
e6cc62c6
VS
31828#ifdef __STDC__
31829# include <limits.h>
31830#else
31831# include <assert.h>
31832#endif
eea650d8
VS
31833
31834#undef sched_yield
31835
4f14bcd8 31836/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31837#ifdef __cplusplus
31838extern "C"
31839{
31840#endif
4f14bcd8 31841/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31842 builtin and then its argument prototype would still apply. */
31843char sched_yield ();
009fead0
VZ
31844/* The GNU C library defines this for functions which it implements
31845 to always fail with ENOSYS. Some functions are actually named
31846 something starting with __ and the normal name is an alias. */
31847#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
31848choke me
31849#else
e6cc62c6
VS
31850char (*f) () = sched_yield;
31851#endif
31852#ifdef __cplusplus
31853}
009fead0
VZ
31854#endif
31855
e6cc62c6
VS
31856int
31857main ()
31858{
31859return f != sched_yield;
31860 ;
31861 return 0;
31862}
31863_ACEOF
31864rm -f conftest.$ac_objext conftest$ac_exeext
31865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31866 (eval $ac_link) 2>conftest.er1
e6cc62c6 31867 ac_status=$?
eea650d8
VS
31868 grep -v '^ *+' conftest.er1 >conftest.err
31869 rm -f conftest.er1
31870 cat conftest.err >&5
e6cc62c6
VS
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); } &&
eea650d8
VS
31873 { ac_try='test -z "$ac_c_werror_flag"
31874 || test ! -s conftest.err'
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; } &&
31880 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882 (eval $ac_try) 2>&5
31883 ac_status=$?
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); }; }; then
31886 ac_cv_func_sched_yield=yes
31887else
31888 echo "$as_me: failed program was:" >&5
31889sed 's/^/| /' conftest.$ac_ext >&5
31890
31891ac_cv_func_sched_yield=no
31892fi
eea650d8
VS
31893rm -f conftest.err conftest.$ac_objext \
31894 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31895fi
31896echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
31897echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
31898if test $ac_cv_func_sched_yield = yes; then
31899 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31900#define HAVE_SCHED_YIELD 1
e6cc62c6 31901_ACEOF
10f2d63a 31902
4f14bcd8 31903else
009fead0 31904
e6cc62c6
VS
31905 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
31906echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
31907if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
31908 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 31909else
e6cc62c6 31910 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31911LIBS="-lposix4 $LIBS"
e6cc62c6 31912cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31913/* confdefs.h. */
31914_ACEOF
31915cat confdefs.h >>conftest.$ac_ext
31916cat >>conftest.$ac_ext <<_ACEOF
31917/* end confdefs.h. */
31918
4f14bcd8 31919/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31920#ifdef __cplusplus
31921extern "C"
31922#endif
4f14bcd8 31923/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31924 builtin and then its argument prototype would still apply. */
31925char sched_yield ();
31926int
31927main ()
31928{
31929sched_yield ();
31930 ;
31931 return 0;
31932}
31933_ACEOF
31934rm -f conftest.$ac_objext conftest$ac_exeext
31935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31936 (eval $ac_link) 2>conftest.er1
e6cc62c6 31937 ac_status=$?
eea650d8
VS
31938 grep -v '^ *+' conftest.er1 >conftest.err
31939 rm -f conftest.er1
31940 cat conftest.err >&5
e6cc62c6
VS
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); } &&
eea650d8
VS
31943 { ac_try='test -z "$ac_c_werror_flag"
31944 || test ! -s conftest.err'
31945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31946 (eval $ac_try) 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; } &&
31950 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31952 (eval $ac_try) 2>&5
31953 ac_status=$?
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; }; then
31956 ac_cv_lib_posix4_sched_yield=yes
31957else
31958 echo "$as_me: failed program was:" >&5
31959sed 's/^/| /' conftest.$ac_ext >&5
31960
31961ac_cv_lib_posix4_sched_yield=no
31962fi
eea650d8
VS
31963rm -f conftest.err conftest.$ac_objext \
31964 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31965LIBS=$ac_check_lib_save_LIBS
31966fi
31967echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31968echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31969if test $ac_cv_lib_posix4_sched_yield = yes; then
31970 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31971#define HAVE_SCHED_YIELD 1
e6cc62c6 31972_ACEOF
3d63bc3a 31973 POSIX4_LINK=" -lposix4"
4f14bcd8 31974else
e6cc62c6
VS
31975 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31976echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31977
54276ccf
VZ
31978fi
31979
e6cc62c6
VS
31980
31981
4f14bcd8 31982fi
698dcdb6 31983
009fead0 31984 fi
10f2d63a 31985
7274f1c7 31986 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
31987 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31988echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31989if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31990 echo $ECHO_N "(cached) $ECHO_C" >&6
31991else
31992 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31993/* confdefs.h. */
31994_ACEOF
31995cat confdefs.h >>conftest.$ac_ext
31996cat >>conftest.$ac_ext <<_ACEOF
31997/* end confdefs.h. */
eea650d8
VS
31998/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
31999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32000#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32001
009fead0 32002/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32003 which can conflict with char pthread_attr_getschedpolicy (); below.
32004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32005 <limits.h> exists even on freestanding compilers. */
eea650d8 32006
e6cc62c6
VS
32007#ifdef __STDC__
32008# include <limits.h>
32009#else
32010# include <assert.h>
32011#endif
eea650d8
VS
32012
32013#undef pthread_attr_getschedpolicy
32014
4f14bcd8 32015/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32016#ifdef __cplusplus
32017extern "C"
32018{
32019#endif
4f14bcd8 32020/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32021 builtin and then its argument prototype would still apply. */
32022char pthread_attr_getschedpolicy ();
009fead0
VZ
32023/* The GNU C library defines this for functions which it implements
32024 to always fail with ENOSYS. Some functions are actually named
32025 something starting with __ and the normal name is an alias. */
32026#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32027choke me
32028#else
e6cc62c6
VS
32029char (*f) () = pthread_attr_getschedpolicy;
32030#endif
32031#ifdef __cplusplus
32032}
009fead0
VZ
32033#endif
32034
e6cc62c6
VS
32035int
32036main ()
32037{
32038return f != pthread_attr_getschedpolicy;
32039 ;
32040 return 0;
32041}
32042_ACEOF
32043rm -f conftest.$ac_objext conftest$ac_exeext
32044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32045 (eval $ac_link) 2>conftest.er1
e6cc62c6 32046 ac_status=$?
eea650d8
VS
32047 grep -v '^ *+' conftest.er1 >conftest.err
32048 rm -f conftest.er1
32049 cat conftest.err >&5
e6cc62c6
VS
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } &&
eea650d8
VS
32052 { ac_try='test -z "$ac_c_werror_flag"
32053 || test ! -s conftest.err'
32054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32055 (eval $ac_try) 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; } &&
32059 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32061 (eval $ac_try) 2>&5
32062 ac_status=$?
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); }; }; then
32065 ac_cv_func_pthread_attr_getschedpolicy=yes
32066else
32067 echo "$as_me: failed program was:" >&5
32068sed 's/^/| /' conftest.$ac_ext >&5
32069
32070ac_cv_func_pthread_attr_getschedpolicy=no
32071fi
eea650d8
VS
32072rm -f conftest.err conftest.$ac_objext \
32073 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32074fi
32075echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32076echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32077if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32078 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32079echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32080if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32081 echo $ECHO_N "(cached) $ECHO_C" >&6
32082else
32083 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32084/* confdefs.h. */
32085_ACEOF
32086cat confdefs.h >>conftest.$ac_ext
32087cat >>conftest.$ac_ext <<_ACEOF
32088/* end confdefs.h. */
eea650d8
VS
32089/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32091#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32092
a0b9e27f 32093/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32094 which can conflict with char pthread_attr_setschedparam (); below.
32095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32096 <limits.h> exists even on freestanding compilers. */
eea650d8 32097
e6cc62c6
VS
32098#ifdef __STDC__
32099# include <limits.h>
32100#else
32101# include <assert.h>
32102#endif
eea650d8
VS
32103
32104#undef pthread_attr_setschedparam
32105
422107f9 32106/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32107#ifdef __cplusplus
32108extern "C"
32109{
32110#endif
422107f9 32111/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32112 builtin and then its argument prototype would still apply. */
32113char pthread_attr_setschedparam ();
009fead0
VZ
32114/* The GNU C library defines this for functions which it implements
32115 to always fail with ENOSYS. Some functions are actually named
32116 something starting with __ and the normal name is an alias. */
32117#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32118choke me
32119#else
e6cc62c6
VS
32120char (*f) () = pthread_attr_setschedparam;
32121#endif
32122#ifdef __cplusplus
32123}
009fead0
VZ
32124#endif
32125
e6cc62c6
VS
32126int
32127main ()
32128{
32129return f != pthread_attr_setschedparam;
32130 ;
32131 return 0;
32132}
32133_ACEOF
32134rm -f conftest.$ac_objext conftest$ac_exeext
32135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32136 (eval $ac_link) 2>conftest.er1
e6cc62c6 32137 ac_status=$?
eea650d8
VS
32138 grep -v '^ *+' conftest.er1 >conftest.err
32139 rm -f conftest.er1
32140 cat conftest.err >&5
e6cc62c6
VS
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } &&
eea650d8
VS
32143 { ac_try='test -z "$ac_c_werror_flag"
32144 || test ! -s conftest.err'
32145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146 (eval $ac_try) 2>&5
32147 ac_status=$?
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; } &&
32150 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152 (eval $ac_try) 2>&5
32153 ac_status=$?
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); }; }; then
32156 ac_cv_func_pthread_attr_setschedparam=yes
32157else
32158 echo "$as_me: failed program was:" >&5
32159sed 's/^/| /' conftest.$ac_ext >&5
32160
32161ac_cv_func_pthread_attr_setschedparam=no
32162fi
eea650d8
VS
32163rm -f conftest.err conftest.$ac_objext \
32164 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32165fi
32166echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32167echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32168if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32169 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32170echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32171if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32172 echo $ECHO_N "(cached) $ECHO_C" >&6
32173else
32174 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32175/* confdefs.h. */
32176_ACEOF
32177cat confdefs.h >>conftest.$ac_ext
32178cat >>conftest.$ac_ext <<_ACEOF
32179/* end confdefs.h. */
eea650d8
VS
32180/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32182#define sched_get_priority_max innocuous_sched_get_priority_max
32183
ef33c576 32184/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32185 which can conflict with char sched_get_priority_max (); below.
32186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32187 <limits.h> exists even on freestanding compilers. */
eea650d8 32188
e6cc62c6
VS
32189#ifdef __STDC__
32190# include <limits.h>
32191#else
32192# include <assert.h>
32193#endif
eea650d8
VS
32194
32195#undef sched_get_priority_max
32196
4f14bcd8 32197/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32198#ifdef __cplusplus
32199extern "C"
32200{
32201#endif
4f14bcd8 32202/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32203 builtin and then its argument prototype would still apply. */
32204char sched_get_priority_max ();
009fead0
VZ
32205/* The GNU C library defines this for functions which it implements
32206 to always fail with ENOSYS. Some functions are actually named
32207 something starting with __ and the normal name is an alias. */
32208#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32209choke me
32210#else
e6cc62c6
VS
32211char (*f) () = sched_get_priority_max;
32212#endif
32213#ifdef __cplusplus
32214}
009fead0
VZ
32215#endif
32216
e6cc62c6
VS
32217int
32218main ()
32219{
32220return f != sched_get_priority_max;
32221 ;
32222 return 0;
32223}
32224_ACEOF
32225rm -f conftest.$ac_objext conftest$ac_exeext
32226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32227 (eval $ac_link) 2>conftest.er1
e6cc62c6 32228 ac_status=$?
eea650d8
VS
32229 grep -v '^ *+' conftest.er1 >conftest.err
32230 rm -f conftest.er1
32231 cat conftest.err >&5
e6cc62c6
VS
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); } &&
eea650d8
VS
32234 { ac_try='test -z "$ac_c_werror_flag"
32235 || test ! -s conftest.err'
32236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237 (eval $ac_try) 2>&5
32238 ac_status=$?
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; } &&
32241 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32243 (eval $ac_try) 2>&5
32244 ac_status=$?
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; }; then
32247 ac_cv_func_sched_get_priority_max=yes
32248else
32249 echo "$as_me: failed program was:" >&5
32250sed 's/^/| /' conftest.$ac_ext >&5
32251
32252ac_cv_func_sched_get_priority_max=no
32253fi
eea650d8
VS
32254rm -f conftest.err conftest.$ac_objext \
32255 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32256fi
32257echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32258echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32259if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32260 HAVE_PRIOR_FUNCS=1
32261else
e6cc62c6
VS
32262 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32263echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32264if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32265 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32266else
e6cc62c6 32267 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32268LIBS="-lposix4 $LIBS"
e6cc62c6 32269cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32270/* confdefs.h. */
32271_ACEOF
32272cat confdefs.h >>conftest.$ac_ext
32273cat >>conftest.$ac_ext <<_ACEOF
32274/* end confdefs.h. */
32275
422107f9 32276/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32277#ifdef __cplusplus
32278extern "C"
32279#endif
422107f9 32280/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32281 builtin and then its argument prototype would still apply. */
32282char sched_get_priority_max ();
32283int
32284main ()
32285{
32286sched_get_priority_max ();
32287 ;
32288 return 0;
32289}
32290_ACEOF
32291rm -f conftest.$ac_objext conftest$ac_exeext
32292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32293 (eval $ac_link) 2>conftest.er1
e6cc62c6 32294 ac_status=$?
eea650d8
VS
32295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
e6cc62c6
VS
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); } &&
eea650d8
VS
32300 { ac_try='test -z "$ac_c_werror_flag"
32301 || test ! -s conftest.err'
32302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303 (eval $ac_try) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); }; } &&
32307 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 ac_cv_lib_posix4_sched_get_priority_max=yes
32314else
32315 echo "$as_me: failed program was:" >&5
32316sed 's/^/| /' conftest.$ac_ext >&5
32317
32318ac_cv_lib_posix4_sched_get_priority_max=no
32319fi
eea650d8
VS
32320rm -f conftest.err conftest.$ac_objext \
32321 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32322LIBS=$ac_check_lib_save_LIBS
32323fi
32324echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32325echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32326if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32327
7274f1c7
RL
32328 HAVE_PRIOR_FUNCS=1
32329 POSIX4_LINK=" -lposix4"
e6cc62c6 32330
4f14bcd8 32331fi
463abc64 32332
e6cc62c6 32333
328a083c 32334fi
463abc64 32335
e6cc62c6 32336
7b4a847f 32337fi
579d8138 32338
e6cc62c6 32339
5c6fa7d2 32340fi
52127426 32341
8284b0c5 32342
7274f1c7 32343 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32344 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32345#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32346_ACEOF
463abc64 32347
7274f1c7 32348 else
e6cc62c6
VS
32349 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32350echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32351 fi
463abc64 32352
e6cc62c6
VS
32353 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32354echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32355if test "${ac_cv_func_pthread_cancel+set}" = set; then
32356 echo $ECHO_N "(cached) $ECHO_C" >&6
32357else
32358 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32359/* confdefs.h. */
32360_ACEOF
32361cat confdefs.h >>conftest.$ac_ext
32362cat >>conftest.$ac_ext <<_ACEOF
32363/* end confdefs.h. */
eea650d8
VS
32364/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32366#define pthread_cancel innocuous_pthread_cancel
32367
009fead0 32368/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32369 which can conflict with char pthread_cancel (); below.
32370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32371 <limits.h> exists even on freestanding compilers. */
eea650d8 32372
e6cc62c6
VS
32373#ifdef __STDC__
32374# include <limits.h>
32375#else
32376# include <assert.h>
32377#endif
eea650d8
VS
32378
32379#undef pthread_cancel
32380
422107f9 32381/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32382#ifdef __cplusplus
32383extern "C"
32384{
32385#endif
422107f9 32386/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32387 builtin and then its argument prototype would still apply. */
32388char pthread_cancel ();
009fead0
VZ
32389/* The GNU C library defines this for functions which it implements
32390 to always fail with ENOSYS. Some functions are actually named
32391 something starting with __ and the normal name is an alias. */
32392#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32393choke me
32394#else
e6cc62c6
VS
32395char (*f) () = pthread_cancel;
32396#endif
32397#ifdef __cplusplus
32398}
009fead0
VZ
32399#endif
32400
e6cc62c6
VS
32401int
32402main ()
32403{
32404return f != pthread_cancel;
32405 ;
32406 return 0;
32407}
32408_ACEOF
32409rm -f conftest.$ac_objext conftest$ac_exeext
32410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32411 (eval $ac_link) 2>conftest.er1
e6cc62c6 32412 ac_status=$?
eea650d8
VS
32413 grep -v '^ *+' conftest.er1 >conftest.err
32414 rm -f conftest.er1
32415 cat conftest.err >&5
e6cc62c6
VS
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); } &&
eea650d8
VS
32418 { ac_try='test -z "$ac_c_werror_flag"
32419 || test ! -s conftest.err'
32420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32421 (eval $ac_try) 2>&5
32422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; } &&
32425 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32427 (eval $ac_try) 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
32431 ac_cv_func_pthread_cancel=yes
32432else
32433 echo "$as_me: failed program was:" >&5
32434sed 's/^/| /' conftest.$ac_ext >&5
32435
32436ac_cv_func_pthread_cancel=no
32437fi
eea650d8
VS
32438rm -f conftest.err conftest.$ac_objext \
32439 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32440fi
32441echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32442echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32443if test $ac_cv_func_pthread_cancel = yes; then
32444 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32445#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32446_ACEOF
4f14bcd8 32447
698dcdb6 32448else
e6cc62c6
VS
32449 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32450echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32451fi
32452
5c6fa7d2 32453
4f14bcd8 32454
e6cc62c6
VS
32455
32456 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32457echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32458if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32459 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32460else
e6cc62c6
VS
32461
32462 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32463/* confdefs.h. */
32464_ACEOF
32465cat confdefs.h >>conftest.$ac_ext
32466cat >>conftest.$ac_ext <<_ACEOF
32467/* end confdefs.h. */
4f14bcd8 32468#include <pthread.h>
e6cc62c6
VS
32469int
32470main ()
32471{
4f14bcd8 32472
7274f1c7
RL
32473 pthread_mutexattr_t attr;
32474 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32475
32476 ;
32477 return 0;
32478}
32479_ACEOF
32480rm -f conftest.$ac_objext
32481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32482 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32483 ac_status=$?
eea650d8
VS
32484 grep -v '^ *+' conftest.er1 >conftest.err
32485 rm -f conftest.er1
32486 cat conftest.err >&5
e6cc62c6
VS
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); } &&
eea650d8
VS
32489 { ac_try='test -z "$ac_c_werror_flag"
32490 || test ! -s conftest.err'
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; } &&
32496 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32499 ac_status=$?
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; }; then
32502
7274f1c7 32503 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32504
3fed1840 32505else
e6cc62c6
VS
32506 echo "$as_me: failed program was:" >&5
32507sed 's/^/| /' conftest.$ac_ext >&5
32508
32509
7274f1c7 32510 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
32511
32512
247f5006 32513fi
eea650d8 32514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32515
e6cc62c6
VS
32516fi
32517echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32518echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 32519
7274f1c7 32520 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 32521 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32522#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 32523_ACEOF
4f14bcd8 32524
7274f1c7 32525 else
e6cc62c6
VS
32526 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32527echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32528if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32529 echo $ECHO_N "(cached) $ECHO_C" >&6
32530else
32531
32532 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32533/* confdefs.h. */
32534_ACEOF
32535cat confdefs.h >>conftest.$ac_ext
32536cat >>conftest.$ac_ext <<_ACEOF
32537/* end confdefs.h. */
4f14bcd8 32538#include <pthread.h>
e6cc62c6
VS
32539int
32540main ()
32541{
4f14bcd8 32542
7274f1c7 32543 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
32544
32545 ;
32546 return 0;
32547}
32548_ACEOF
32549rm -f conftest.$ac_objext
32550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32551 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32552 ac_status=$?
eea650d8
VS
32553 grep -v '^ *+' conftest.er1 >conftest.err
32554 rm -f conftest.er1
32555 cat conftest.err >&5
e6cc62c6
VS
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); } &&
eea650d8
VS
32558 { ac_try='test -z "$ac_c_werror_flag"
32559 || test ! -s conftest.err'
32560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561 (eval $ac_try) 2>&5
32562 ac_status=$?
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; } &&
32565 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32567 (eval $ac_try) 2>&5
32568 ac_status=$?
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); }; }; then
32571
7274f1c7 32572 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 32573
698dcdb6 32574else
e6cc62c6
VS
32575 echo "$as_me: failed program was:" >&5
32576sed 's/^/| /' conftest.$ac_ext >&5
32577
32578
7274f1c7 32579 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
32580
32581
247f5006 32582fi
eea650d8 32583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32584
e6cc62c6
VS
32585fi
32586echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32587echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 32588 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 32589 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32590#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 32591_ACEOF
3fed1840 32592
7274f1c7 32593 else
e6cc62c6
VS
32594 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32595echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
32596 fi
32597 fi
7274f1c7 32598 fi
3fed1840 32599
a0b9e27f
MB
32600else
32601 if test "$wxUSE_THREADS" = "yes" ; then
32602 case "${host}" in
32603 *-*-mingw32* )
e6cc62c6
VS
32604 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32605echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32606if test "${wx_cv_cflags_mthread+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 32608else
e6cc62c6 32609
ca8e52b3
VZ
32610 CFLAGS_OLD="$CFLAGS"
32611 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 32612 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32613/* confdefs.h. */
32614_ACEOF
32615cat confdefs.h >>conftest.$ac_ext
32616cat >>conftest.$ac_ext <<_ACEOF
32617/* end confdefs.h. */
32618
32619int
32620main ()
32621{
ca8e52b3 32622
e6cc62c6
VS
32623 ;
32624 return 0;
32625}
32626_ACEOF
32627rm -f conftest.$ac_objext
32628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32629 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32630 ac_status=$?
eea650d8
VS
32631 grep -v '^ *+' conftest.er1 >conftest.err
32632 rm -f conftest.er1
32633 cat conftest.err >&5
e6cc62c6
VS
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
eea650d8
VS
32636 { ac_try='test -z "$ac_c_werror_flag"
32637 || test ! -s conftest.err'
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; } &&
32643 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; }; then
ca8e52b3
VZ
32649 wx_cv_cflags_mthread=yes
32650else
e6cc62c6
VS
32651 echo "$as_me: failed program was:" >&5
32652sed 's/^/| /' conftest.$ac_ext >&5
32653
32654wx_cv_cflags_mthread=no
32655
ca8e52b3 32656fi
eea650d8 32657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32658
ca8e52b3 32659
e6cc62c6
VS
32660fi
32661echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32662echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
32663
32664 if test "$wx_cv_cflags_mthread" = "yes"; then
32665 CXXFLAGS="$CXXFLAGS -mthreads"
32666 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32667 LDFLAGS="$LDFLAGS -mthreads"
32668 else
32669 CFLAGS="$CFLAGS_OLD"
32670 fi
a0b9e27f 32671 ;;
73d617c9
MB
32672 *-pc-os2*emx )
32673 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32674 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32675 LDFLAGS="$LDFLAGS -Zmt"
32676 ;;
a0b9e27f
MB
32677 esac
32678 fi
4f14bcd8
GD
32679fi
32680
32681if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 32682 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32683#define wxUSE_THREADS 1
e6cc62c6 32684_ACEOF
7b6058cd 32685
8284b0c5 32686
4f14bcd8 32687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 32688else
4f14bcd8 32689 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
32690 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32691echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
32692 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32693 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
32694 echo "$as_me:$LINENO: result: yes" >&5
32695echo "${ECHO_T}yes" >&6
4f14bcd8 32696 else
e6cc62c6
VS
32697 echo "$as_me:$LINENO: result: no" >&5
32698echo "${ECHO_T}no" >&6
4f14bcd8
GD
32699 fi
32700 fi
32701fi
32702
32703if test "$WXGTK20" = 1 ; then
e6cc62c6 32704 cat >>confdefs.h <<_ACEOF
4f14bcd8 32705#define __WXGTK20__ $WXGTK20
e6cc62c6 32706_ACEOF
4f14bcd8
GD
32707
32708 WXGTK12=1
10f2d63a 32709fi
4f14bcd8
GD
32710
32711if test "$WXGTK12" = 1 ; then
e6cc62c6 32712 cat >>confdefs.h <<_ACEOF
4f14bcd8 32713#define __WXGTK12__ $WXGTK12
e6cc62c6 32714_ACEOF
4f14bcd8 32715
10f2d63a 32716fi
698dcdb6 32717
4f14bcd8 32718if test "$WXGTK127" = 1 ; then
e6cc62c6 32719 cat >>confdefs.h <<_ACEOF
4f14bcd8 32720#define __WXGTK127__ $WXGTK127
e6cc62c6 32721_ACEOF
4f14bcd8 32722
698dcdb6 32723fi
10f2d63a 32724
4f14bcd8
GD
32725WXDEBUG=
32726
32727if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32728 WXDEBUG="-g"
32729 wxUSE_OPTIMISE=no
698dcdb6 32730fi
4f14bcd8
GD
32731
32732if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32733 wxUSE_DEBUG_INFO=yes
32734 WXDEBUG="-ggdb"
10f2d63a
VZ
32735fi
32736
4f14bcd8 32737if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 32738 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32739#define WXDEBUG 1
e6cc62c6 32740_ACEOF
4f14bcd8
GD
32741
32742 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 32743else
4f14bcd8
GD
32744 if test "$wxUSE_GTK" = 1 ; then
32745 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32746 fi
32747fi
32748
32749if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 32750 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32751#define wxUSE_MEMORY_TRACING 1
e6cc62c6 32752_ACEOF
4f14bcd8 32753
e6cc62c6 32754 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32755#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 32756_ACEOF
4f14bcd8 32757
e6cc62c6 32758 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32759#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 32760_ACEOF
4f14bcd8
GD
32761
32762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32763fi
32764
32765if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 32766 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
32767fi
32768
32769PROFILE=
32770if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 32771 PROFILE=" -pg"
10f2d63a
VZ
32772fi
32773
009fead0
VZ
32774CODE_GEN_FLAGS=
32775CODE_GEN_FLAGS_CXX=
88e30f2b 32776if test "$GCC" = "yes" ; then
4f14bcd8
GD
32777 if test "$wxUSE_NO_RTTI" = "yes" ; then
32778 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 32779 fi
4f14bcd8
GD
32780 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32781 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32782 fi
32783 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32784 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32785 fi
1d1b75ac 32786
2b5f62a0 32787 case "${host}" in
1d1b75ac
VZ
32788 powerpc*-*-aix* )
32789 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32790 ;;
2b5f62a0
VZ
32791 *-hppa* )
32792 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32793 ;;
1d1b75ac 32794 esac
4f14bcd8
GD
32795fi
32796
af7b5345 32797OPTIMISE=
4f14bcd8 32798if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
32799 if test "$GCC" = yes ; then
32800 OPTIMISE="-O0"
32801 fi
4f14bcd8
GD
32802else
32803 if test "$GCC" = yes ; then
32804 OPTIMISE="-O2"
af7b5345
VZ
32805
32806 case "${host}" in
4f14bcd8
GD
32807 i586-*-*|i686-*-* )
32808 OPTIMISE="${OPTIMISE} "
32809 ;;
32810 esac
32811 else
32812 OPTIMISE="-O"
32813 fi
32814fi
32815
8d90d2f2 32816
65d8ef1e 32817if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 32818 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32819#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 32820_ACEOF
4f14bcd8 32821
8d90d2f2
VZ
32822
32823 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
32824fi
32825
65d8ef1e 32826if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 32827 cat >>confdefs.h <<\_ACEOF
65d8ef1e 32828#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 32829_ACEOF
65d8ef1e
VS
32830
32831fi
32832
8284b0c5 32833
10f2d63a 32834if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 32835 cat >>confdefs.h <<\_ACEOF
10f2d63a 32836#define wxUSE_GUI 1
e6cc62c6 32837_ACEOF
10f2d63a 32838
8284b0c5 32839
10f2d63a 32840 else
e6cc62c6 32841 cat >>confdefs.h <<\_ACEOF
10f2d63a 32842#define wxUSE_NOGUI 1
e6cc62c6 32843_ACEOF
10f2d63a
VZ
32844
32845fi
32846
8284b0c5 32847
10f2d63a 32848if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 32849 cat >>confdefs.h <<\_ACEOF
10f2d63a 32850#define wxUSE_UNIX 1
e6cc62c6 32851_ACEOF
10f2d63a
VZ
32852
32853fi
32854
8284b0c5 32855
df5168c4
MB
32856if test "$wxUSE_STL" = "yes"; then
32857 cat >>confdefs.h <<\_ACEOF
32858#define wxUSE_STL 1
32859_ACEOF
32860
32861fi
32862
10f2d63a 32863if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 32864 cat >>confdefs.h <<\_ACEOF
10f2d63a 32865#define wxUSE_APPLE_IEEE 1
e6cc62c6 32866_ACEOF
10f2d63a
VZ
32867
32868fi
32869
1e6feb95 32870if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 32871 cat >>confdefs.h <<\_ACEOF
1e6feb95 32872#define wxUSE_TIMER 1
e6cc62c6 32873_ACEOF
1e6feb95
VZ
32874
32875fi
32876
10f2d63a 32877if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 32878 cat >>confdefs.h <<\_ACEOF
10f2d63a 32879#define wxUSE_WAVE 1
e6cc62c6 32880_ACEOF
10f2d63a
VZ
32881
32882fi
32883
1e6feb95 32884if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 32885 cat >>confdefs.h <<\_ACEOF
1e6feb95 32886#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 32887_ACEOF
1e6feb95
VZ
32888
32889fi
32890
32891if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 32892 cat >>confdefs.h <<\_ACEOF
1e6feb95 32893#define wxUSE_STOPWATCH 1
e6cc62c6 32894_ACEOF
1e6feb95
VZ
32895
32896fi
32897
32898if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 32899 cat >>confdefs.h <<\_ACEOF
1e6feb95 32900#define wxUSE_DATETIME 1
e6cc62c6 32901_ACEOF
1e6feb95
VZ
32902
32903fi
32904
10f2d63a 32905if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 32906 cat >>confdefs.h <<\_ACEOF
10f2d63a 32907#define wxUSE_FILE 1
e6cc62c6 32908_ACEOF
10f2d63a
VZ
32909
32910fi
32911
1e6feb95 32912if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 32913 cat >>confdefs.h <<\_ACEOF
1e6feb95 32914#define wxUSE_FFILE 1
e6cc62c6 32915_ACEOF
1e6feb95
VZ
32916
32917fi
32918
24528b0c 32919if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 32920 cat >>confdefs.h <<\_ACEOF
24528b0c 32921#define wxUSE_FILESYSTEM 1
e6cc62c6 32922_ACEOF
24528b0c
VS
32923
32924fi
32925
10f2d63a 32926if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 32927 cat >>confdefs.h <<\_ACEOF
10f2d63a 32928#define wxUSE_FS_ZIP 1
e6cc62c6 32929_ACEOF
10f2d63a
VZ
32930
32931fi
32932
32933if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 32934 cat >>confdefs.h <<\_ACEOF
10f2d63a 32935#define wxUSE_ZIPSTREAM 1
e6cc62c6 32936_ACEOF
10f2d63a
VZ
32937
32938fi
32939
7015ef3a
VZ
32940if test "$wxUSE_GZSTREAM" = "yes"; then
32941 cat >>confdefs.h <<\_ACEOF
32942#define wxUSE_GZSTREAM 1
32943_ACEOF
32944
32945fi
32946
eb4efbdc 32947if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 32948 cat >>confdefs.h <<\_ACEOF
eb4efbdc 32949#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 32950_ACEOF
eb4efbdc
VZ
32951
32952fi
32953
4f3c5f06 32954if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 32955 cat >>confdefs.h <<\_ACEOF
4f3c5f06 32956#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 32957_ACEOF
4f3c5f06
VZ
32958
32959fi
32960
10f2d63a 32961if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 32962 cat >>confdefs.h <<\_ACEOF
10f2d63a 32963#define wxUSE_BUSYINFO 1
e6cc62c6 32964_ACEOF
10f2d63a
VZ
32965
32966fi
32967
32968if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 32969 cat >>confdefs.h <<\_ACEOF
10f2d63a 32970#define wxUSE_STD_IOSTREAM 1
e6cc62c6 32971_ACEOF
10f2d63a
VZ
32972
32973fi
32974
a3a584a7 32975if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 32976 cat >>confdefs.h <<\_ACEOF
a3a584a7 32977#define wxUSE_TEXTBUFFER 1
e6cc62c6 32978_ACEOF
a3a584a7
VZ
32979
32980fi
32981
10f2d63a 32982if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 32983 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
32984 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32985echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 32986 else
e6cc62c6 32987 cat >>confdefs.h <<\_ACEOF
10f2d63a 32988#define wxUSE_TEXTFILE 1
e6cc62c6 32989_ACEOF
10f2d63a
VZ
32990
32991 fi
32992fi
32993
32994if test "$wxUSE_CONFIG" = "yes" ; then
32995 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
32996 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32997echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 32998 else
e6cc62c6 32999 cat >>confdefs.h <<\_ACEOF
10f2d63a 33000#define wxUSE_CONFIG 1
e6cc62c6 33001_ACEOF
10f2d63a
VZ
33002
33003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
33004 fi
33005fi
33006
33007if test "$wxUSE_INTL" = "yes" ; then
33008 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
33009 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
33010echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 33011 else
e6cc62c6 33012 cat >>confdefs.h <<\_ACEOF
10f2d63a 33013#define wxUSE_INTL 1
e6cc62c6 33014_ACEOF
10f2d63a
VZ
33015
33016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 33017 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
33018 fi
33019fi
33020
33021if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 33022 cat >>confdefs.h <<\_ACEOF
10f2d63a 33023#define wxUSE_LOG 1
e6cc62c6 33024_ACEOF
10f2d63a 33025
8284b0c5 33026
d73be714 33027 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 33028 cat >>confdefs.h <<\_ACEOF
d73be714 33029#define wxUSE_LOGGUI 1
e6cc62c6 33030_ACEOF
d73be714
VZ
33031
33032 fi
33033
33034 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 33035 cat >>confdefs.h <<\_ACEOF
d73be714 33036#define wxUSE_LOGWINDOW 1
e6cc62c6 33037_ACEOF
69d27ff7
MB
33038
33039 fi
33040
33041 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 33042 cat >>confdefs.h <<\_ACEOF
69d27ff7 33043#define wxUSE_LOG_DIALOG 1
e6cc62c6 33044_ACEOF
d73be714
VZ
33045
33046 fi
10f2d63a
VZ
33047fi
33048
33049if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 33050 cat >>confdefs.h <<\_ACEOF
10f2d63a 33051#define wxUSE_LONGLONG 1
e6cc62c6 33052_ACEOF
10f2d63a
VZ
33053
33054fi
33055
e8f65ba6 33056if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 33057 cat >>confdefs.h <<\_ACEOF
e8f65ba6 33058#define wxUSE_GEOMETRY 1
e6cc62c6 33059_ACEOF
e8f65ba6
RR
33060
33061fi
33062
10f2d63a 33063if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 33064 cat >>confdefs.h <<\_ACEOF
10f2d63a 33065#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 33066_ACEOF
10f2d63a 33067
70f7a477 33068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
33069fi
33070
33071if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 33072 cat >>confdefs.h <<\_ACEOF
10f2d63a 33073#define wxUSE_STREAMS 1
e6cc62c6 33074_ACEOF
10f2d63a
VZ
33075
33076fi
33077
5c6fa7d2 33078
8284b0c5 33079if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
33080
33081for ac_func in strptime
83307f33 33082do
e6cc62c6
VS
33083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33084echo "$as_me:$LINENO: checking for $ac_func" >&5
33085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33086if eval "test \"\${$as_ac_var+set}\" = set"; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33088else
33089 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33090/* confdefs.h. */
33091_ACEOF
33092cat confdefs.h >>conftest.$ac_ext
33093cat >>conftest.$ac_ext <<_ACEOF
33094/* end confdefs.h. */
eea650d8
VS
33095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33097#define $ac_func innocuous_$ac_func
33098
83307f33 33099/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33100 which can conflict with char $ac_func (); below.
33101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33102 <limits.h> exists even on freestanding compilers. */
eea650d8 33103
e6cc62c6
VS
33104#ifdef __STDC__
33105# include <limits.h>
33106#else
33107# include <assert.h>
33108#endif
eea650d8
VS
33109
33110#undef $ac_func
33111
83307f33 33112/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33113#ifdef __cplusplus
33114extern "C"
33115{
33116#endif
83307f33 33117/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33118 builtin and then its argument prototype would still apply. */
33119char $ac_func ();
83307f33
VZ
33120/* The GNU C library defines this for functions which it implements
33121 to always fail with ENOSYS. Some functions are actually named
33122 something starting with __ and the normal name is an alias. */
33123#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33124choke me
33125#else
e6cc62c6
VS
33126char (*f) () = $ac_func;
33127#endif
33128#ifdef __cplusplus
33129}
83307f33
VZ
33130#endif
33131
e6cc62c6
VS
33132int
33133main ()
33134{
33135return f != $ac_func;
33136 ;
33137 return 0;
33138}
33139_ACEOF
33140rm -f conftest.$ac_objext conftest$ac_exeext
33141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33142 (eval $ac_link) 2>conftest.er1
e6cc62c6 33143 ac_status=$?
eea650d8
VS
33144 grep -v '^ *+' conftest.er1 >conftest.err
33145 rm -f conftest.er1
33146 cat conftest.err >&5
e6cc62c6
VS
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } &&
eea650d8
VS
33149 { ac_try='test -z "$ac_c_werror_flag"
33150 || test ! -s conftest.err'
33151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152 (eval $ac_try) 2>&5
33153 ac_status=$?
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; } &&
33156 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158 (eval $ac_try) 2>&5
33159 ac_status=$?
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; }; then
33162 eval "$as_ac_var=yes"
33163else
33164 echo "$as_me: failed program was:" >&5
33165sed 's/^/| /' conftest.$ac_ext >&5
33166
33167eval "$as_ac_var=no"
33168fi
eea650d8
VS
33169rm -f conftest.err conftest.$ac_objext \
33170 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33171fi
33172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33173echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33174if test `eval echo '${'$as_ac_var'}'` = yes; then
33175 cat >>confdefs.h <<_ACEOF
33176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33177_ACEOF
83307f33 33178
83307f33
VZ
33179fi
33180done
33181
5c6fa7d2 33182
e6cc62c6
VS
33183 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
33184echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
33185if test "${wx_cv_var_timezone+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 33187else
e6cc62c6
VS
33188
33189 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33190/* confdefs.h. */
33191_ACEOF
33192cat confdefs.h >>conftest.$ac_ext
33193cat >>conftest.$ac_ext <<_ACEOF
33194/* end confdefs.h. */
360d6699 33195
b4085ce6 33196 #include <time.h>
e6cc62c6
VS
33197
33198int
33199main ()
33200{
360d6699
VZ
33201
33202 int tz;
4f11a343 33203 tz = timezone;
e6cc62c6
VS
33204
33205 ;
33206 return 0;
33207}
33208_ACEOF
33209rm -f conftest.$ac_objext
33210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33211 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33212 ac_status=$?
eea650d8
VS
33213 grep -v '^ *+' conftest.er1 >conftest.err
33214 rm -f conftest.er1
33215 cat conftest.err >&5
e6cc62c6
VS
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); } &&
eea650d8
VS
33218 { ac_try='test -z "$ac_c_werror_flag"
33219 || test ! -s conftest.err'
33220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221 (eval $ac_try) 2>&5
33222 ac_status=$?
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); }; } &&
33225 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227 (eval $ac_try) 2>&5
33228 ac_status=$?
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); }; }; then
33231
4f11a343 33232 wx_cv_var_timezone=timezone
e6cc62c6 33233
360d6699 33234else
e6cc62c6
VS
33235 echo "$as_me: failed program was:" >&5
33236sed 's/^/| /' conftest.$ac_ext >&5
33237
33238
33239 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33240/* confdefs.h. */
33241_ACEOF
33242cat confdefs.h >>conftest.$ac_ext
33243cat >>conftest.$ac_ext <<_ACEOF
33244/* end confdefs.h. */
360d6699 33245
b4085ce6 33246 #include <time.h>
e6cc62c6
VS
33247
33248int
33249main ()
33250{
360d6699
VZ
33251
33252 int tz;
33253 tz = _timezone;
e6cc62c6
VS
33254
33255 ;
33256 return 0;
33257}
33258_ACEOF
33259rm -f conftest.$ac_objext
33260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33261 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33262 ac_status=$?
eea650d8
VS
33263 grep -v '^ *+' conftest.er1 >conftest.err
33264 rm -f conftest.er1
33265 cat conftest.err >&5
e6cc62c6
VS
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); } &&
eea650d8
VS
33268 { ac_try='test -z "$ac_c_werror_flag"
33269 || test ! -s conftest.err'
33270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271 (eval $ac_try) 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; } &&
33275 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33277 (eval $ac_try) 2>&5
33278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; }; then
33281
360d6699 33282 wx_cv_var_timezone=_timezone
e6cc62c6 33283
5357c8e8 33284else
e6cc62c6
VS
33285 echo "$as_me: failed program was:" >&5
33286sed 's/^/| /' conftest.$ac_ext >&5
33287
33288
33289 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33290/* confdefs.h. */
33291_ACEOF
33292cat confdefs.h >>conftest.$ac_ext
33293cat >>conftest.$ac_ext <<_ACEOF
33294/* end confdefs.h. */
5357c8e8 33295
b4085ce6 33296 #include <time.h>
e6cc62c6
VS
33297
33298int
33299main ()
33300{
5357c8e8
VZ
33301
33302 int tz;
4f11a343 33303 tz = __timezone;
e6cc62c6
VS
33304
33305 ;
33306 return 0;
33307}
33308_ACEOF
33309rm -f conftest.$ac_objext
33310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33311 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33312 ac_status=$?
eea650d8
VS
33313 grep -v '^ *+' conftest.er1 >conftest.err
33314 rm -f conftest.er1
33315 cat conftest.err >&5
e6cc62c6
VS
33316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317 (exit $ac_status); } &&
eea650d8
VS
33318 { ac_try='test -z "$ac_c_werror_flag"
33319 || test ! -s conftest.err'
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33322 ac_status=$?
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; } &&
33325 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33327 (eval $ac_try) 2>&5
33328 ac_status=$?
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); }; }; then
33331
4f11a343 33332 wx_cv_var_timezone=__timezone
e6cc62c6 33333
360d6699 33334else
e6cc62c6
VS
33335 echo "$as_me: failed program was:" >&5
33336sed 's/^/| /' conftest.$ac_ext >&5
33337
33338
f9bc1684 33339 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
33340 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
33341echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 33342 fi
e6cc62c6
VS
33343
33344
7b4a847f 33345fi
eea650d8 33346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33347
33348
5c6fa7d2 33349fi
eea650d8 33350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33351
33352
247f5006 33353fi
eea650d8 33354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33355
e6cc62c6
VS
33356
33357fi
33358echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
33359echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 33360
f9bc1684 33361 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 33362 cat >>confdefs.h <<_ACEOF
360d6699 33363#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 33364_ACEOF
360d6699 33365
f9bc1684 33366 fi
698dcdb6 33367
e6cc62c6
VS
33368
33369for ac_func in localtime
afc31813 33370do
e6cc62c6
VS
33371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33372echo "$as_me:$LINENO: checking for $ac_func" >&5
33373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33374if eval "test \"\${$as_ac_var+set}\" = set"; then
33375 echo $ECHO_N "(cached) $ECHO_C" >&6
33376else
33377 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33378/* confdefs.h. */
33379_ACEOF
33380cat confdefs.h >>conftest.$ac_ext
33381cat >>conftest.$ac_ext <<_ACEOF
33382/* end confdefs.h. */
eea650d8
VS
33383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33385#define $ac_func innocuous_$ac_func
33386
afc31813 33387/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33388 which can conflict with char $ac_func (); below.
33389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33390 <limits.h> exists even on freestanding compilers. */
eea650d8 33391
e6cc62c6
VS
33392#ifdef __STDC__
33393# include <limits.h>
33394#else
33395# include <assert.h>
33396#endif
eea650d8
VS
33397
33398#undef $ac_func
33399
afc31813 33400/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33401#ifdef __cplusplus
33402extern "C"
33403{
33404#endif
afc31813 33405/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33406 builtin and then its argument prototype would still apply. */
33407char $ac_func ();
afc31813
VZ
33408/* The GNU C library defines this for functions which it implements
33409 to always fail with ENOSYS. Some functions are actually named
33410 something starting with __ and the normal name is an alias. */
33411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33412choke me
33413#else
e6cc62c6
VS
33414char (*f) () = $ac_func;
33415#endif
33416#ifdef __cplusplus
33417}
afc31813
VZ
33418#endif
33419
e6cc62c6
VS
33420int
33421main ()
33422{
33423return f != $ac_func;
33424 ;
33425 return 0;
33426}
33427_ACEOF
33428rm -f conftest.$ac_objext conftest$ac_exeext
33429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33430 (eval $ac_link) 2>conftest.er1
e6cc62c6 33431 ac_status=$?
eea650d8
VS
33432 grep -v '^ *+' conftest.er1 >conftest.err
33433 rm -f conftest.er1
33434 cat conftest.err >&5
e6cc62c6
VS
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } &&
eea650d8
VS
33437 { ac_try='test -z "$ac_c_werror_flag"
33438 || test ! -s conftest.err'
33439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440 (eval $ac_try) 2>&5
33441 ac_status=$?
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); }; } &&
33444 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33446 (eval $ac_try) 2>&5
33447 ac_status=$?
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; }; then
33450 eval "$as_ac_var=yes"
33451else
33452 echo "$as_me: failed program was:" >&5
33453sed 's/^/| /' conftest.$ac_ext >&5
33454
33455eval "$as_ac_var=no"
33456fi
eea650d8
VS
33457rm -f conftest.err conftest.$ac_objext \
33458 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33459fi
33460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33461echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33462if test `eval echo '${'$as_ac_var'}'` = yes; then
33463 cat >>confdefs.h <<_ACEOF
33464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33465_ACEOF
afc31813 33466
afc31813
VZ
33467fi
33468done
33469
5c6fa7d2 33470
8284b0c5 33471 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
33472 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
33473echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
33474if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
33475 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33476else
e6cc62c6
VS
33477
33478 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33479/* confdefs.h. */
33480_ACEOF
33481cat confdefs.h >>conftest.$ac_ext
33482cat >>conftest.$ac_ext <<_ACEOF
33483/* end confdefs.h. */
0470b1e6 33484
b4085ce6 33485 #include <time.h>
e6cc62c6
VS
33486
33487int
33488main ()
33489{
0470b1e6
VZ
33490
33491 struct tm tm;
33492 tm.tm_gmtoff++;
e6cc62c6
VS
33493
33494 ;
33495 return 0;
33496}
33497_ACEOF
33498rm -f conftest.$ac_objext
33499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33500 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33501 ac_status=$?
eea650d8
VS
33502 grep -v '^ *+' conftest.er1 >conftest.err
33503 rm -f conftest.er1
33504 cat conftest.err >&5
e6cc62c6
VS
33505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506 (exit $ac_status); } &&
eea650d8
VS
33507 { ac_try='test -z "$ac_c_werror_flag"
33508 || test ! -s conftest.err'
33509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33510 (eval $ac_try) 2>&5
33511 ac_status=$?
33512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513 (exit $ac_status); }; } &&
33514 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33516 (eval $ac_try) 2>&5
33517 ac_status=$?
33518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); }; }; then
33520
f03a98d8 33521 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 33522
0470b1e6 33523else
e6cc62c6
VS
33524 echo "$as_me: failed program was:" >&5
33525sed 's/^/| /' conftest.$ac_ext >&5
33526
33527wx_cv_struct_tm_has_gmtoff=no
33528
247f5006 33529fi
eea650d8 33530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33531
e6cc62c6
VS
33532fi
33533echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
33534echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
33535 fi
33536
33537 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 33538 cat >>confdefs.h <<\_ACEOF
6232543b 33539#define WX_GMTOFF_IN_TM 1
e6cc62c6 33540_ACEOF
0470b1e6 33541
3fcdd07b
VZ
33542 fi
33543
e6cc62c6
VS
33544
33545
33546for ac_func in gettimeofday ftime
3fcdd07b 33547do
e6cc62c6
VS
33548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33549echo "$as_me:$LINENO: checking for $ac_func" >&5
33550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33551if eval "test \"\${$as_ac_var+set}\" = set"; then
33552 echo $ECHO_N "(cached) $ECHO_C" >&6
33553else
33554 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33555/* confdefs.h. */
33556_ACEOF
33557cat confdefs.h >>conftest.$ac_ext
33558cat >>conftest.$ac_ext <<_ACEOF
33559/* end confdefs.h. */
eea650d8
VS
33560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33562#define $ac_func innocuous_$ac_func
33563
3fcdd07b 33564/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33565 which can conflict with char $ac_func (); below.
33566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33567 <limits.h> exists even on freestanding compilers. */
eea650d8 33568
e6cc62c6
VS
33569#ifdef __STDC__
33570# include <limits.h>
33571#else
33572# include <assert.h>
33573#endif
eea650d8
VS
33574
33575#undef $ac_func
33576
3fcdd07b 33577/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33578#ifdef __cplusplus
33579extern "C"
33580{
33581#endif
3fcdd07b 33582/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33583 builtin and then its argument prototype would still apply. */
33584char $ac_func ();
3fcdd07b
VZ
33585/* The GNU C library defines this for functions which it implements
33586 to always fail with ENOSYS. Some functions are actually named
33587 something starting with __ and the normal name is an alias. */
33588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33589choke me
33590#else
e6cc62c6
VS
33591char (*f) () = $ac_func;
33592#endif
33593#ifdef __cplusplus
33594}
3fcdd07b
VZ
33595#endif
33596
e6cc62c6
VS
33597int
33598main ()
33599{
33600return f != $ac_func;
33601 ;
33602 return 0;
33603}
33604_ACEOF
33605rm -f conftest.$ac_objext conftest$ac_exeext
33606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33607 (eval $ac_link) 2>conftest.er1
e6cc62c6 33608 ac_status=$?
eea650d8
VS
33609 grep -v '^ *+' conftest.er1 >conftest.err
33610 rm -f conftest.er1
33611 cat conftest.err >&5
e6cc62c6
VS
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); } &&
eea650d8
VS
33614 { ac_try='test -z "$ac_c_werror_flag"
33615 || test ! -s conftest.err'
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33618 ac_status=$?
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; } &&
33621 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33623 (eval $ac_try) 2>&5
33624 ac_status=$?
33625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626 (exit $ac_status); }; }; then
33627 eval "$as_ac_var=yes"
33628else
33629 echo "$as_me: failed program was:" >&5
33630sed 's/^/| /' conftest.$ac_ext >&5
33631
33632eval "$as_ac_var=no"
33633fi
eea650d8
VS
33634rm -f conftest.err conftest.$ac_objext \
33635 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33636fi
33637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33639if test `eval echo '${'$as_ac_var'}'` = yes; then
33640 cat >>confdefs.h <<_ACEOF
33641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33642_ACEOF
3fcdd07b 33643 break
3fcdd07b
VZ
33644fi
33645done
33646
698dcdb6 33647
8284b0c5 33648 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
33649 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33650echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33651if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33652 echo $ECHO_N "(cached) $ECHO_C" >&6
33653else
33654
33655
33656
33657 ac_ext=cc
5c6fa7d2 33658ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
33659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 33662
8284b0c5 33663
e6cc62c6 33664 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33665/* confdefs.h. */
33666_ACEOF
33667cat confdefs.h >>conftest.$ac_ext
33668cat >>conftest.$ac_ext <<_ACEOF
33669/* end confdefs.h. */
afc31813
VZ
33670
33671 #include <sys/time.h>
33672 #include <unistd.h>
e6cc62c6
VS
33673
33674int
33675main ()
33676{
afc31813
VZ
33677
33678 struct timeval tv;
776862b4 33679 gettimeofday(&tv, NULL);
e6cc62c6
VS
33680
33681 ;
33682 return 0;
33683}
33684_ACEOF
33685rm -f conftest.$ac_objext
33686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33687 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33688 ac_status=$?
eea650d8
VS
33689 grep -v '^ *+' conftest.er1 >conftest.err
33690 rm -f conftest.er1
33691 cat conftest.err >&5
e6cc62c6
VS
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); } &&
eea650d8
VS
33694 { ac_try='test -z "$ac_cxx_werror_flag"
33695 || test ! -s conftest.err'
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33698 ac_status=$?
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; } &&
33701 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33704 ac_status=$?
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; }; then
afc31813 33707 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 33708else
e6cc62c6
VS
33709 echo "$as_me: failed program was:" >&5
33710sed 's/^/| /' conftest.$ac_ext >&5
33711
33712cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33713/* confdefs.h. */
33714_ACEOF
33715cat confdefs.h >>conftest.$ac_ext
33716cat >>conftest.$ac_ext <<_ACEOF
33717/* end confdefs.h. */
afc31813
VZ
33718
33719 #include <sys/time.h>
33720 #include <unistd.h>
e6cc62c6
VS
33721
33722int
33723main ()
33724{
afc31813
VZ
33725
33726 struct timeval tv;
33727 gettimeofday(&tv);
e6cc62c6
VS
33728
33729 ;
33730 return 0;
33731}
33732_ACEOF
33733rm -f conftest.$ac_objext
33734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33735 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33736 ac_status=$?
eea650d8
VS
33737 grep -v '^ *+' conftest.er1 >conftest.err
33738 rm -f conftest.er1
33739 cat conftest.err >&5
e6cc62c6
VS
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); } &&
eea650d8
VS
33742 { ac_try='test -z "$ac_cxx_werror_flag"
33743 || test ! -s conftest.err'
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 (eval $ac_try) 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; } &&
33749 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33751 (eval $ac_try) 2>&5
33752 ac_status=$?
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); }; }; then
afc31813 33755 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 33756else
e6cc62c6
VS
33757 echo "$as_me: failed program was:" >&5
33758sed 's/^/| /' conftest.$ac_ext >&5
33759
33760
33761 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33762echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 33763 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
33764
33765
10f2d63a 33766fi
eea650d8 33767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33768
10f2d63a 33769fi
eea650d8 33770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
afc31813 33771 ac_ext=c
10f2d63a 33772ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
33773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33775ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 33776
a0b9e27f 33777
e6cc62c6
VS
33778fi
33779echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33780echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 33781
afc31813 33782 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 33783 cat >>confdefs.h <<\_ACEOF
afc31813 33784#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 33785_ACEOF
afc31813
VZ
33786
33787 fi
33788 fi
33789
afc31813
VZ
33790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33791fi
33792
8284b0c5 33793
52127426 33794if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 33795 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
33796 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33797echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33798 wxUSE_SOCKETS="no"
33799 fi
0feee163 33800fi
b089607b 33801
0feee163
VZ
33802if test "$wxUSE_SOCKETS" = "yes"; then
33803 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33804 echo "$as_me:$LINENO: checking for socket" >&5
33805echo $ECHO_N "checking for socket... $ECHO_C" >&6
33806if test "${ac_cv_func_socket+set}" = set; then
33807 echo $ECHO_N "(cached) $ECHO_C" >&6
33808else
33809 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33810/* confdefs.h. */
33811_ACEOF
33812cat confdefs.h >>conftest.$ac_ext
33813cat >>conftest.$ac_ext <<_ACEOF
33814/* end confdefs.h. */
eea650d8
VS
33815/* Define socket to an innocuous variant, in case <limits.h> declares socket.
33816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33817#define socket innocuous_socket
33818
c63c7106 33819/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33820 which can conflict with char socket (); below.
33821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33822 <limits.h> exists even on freestanding compilers. */
eea650d8 33823
e6cc62c6
VS
33824#ifdef __STDC__
33825# include <limits.h>
33826#else
33827# include <assert.h>
33828#endif
eea650d8
VS
33829
33830#undef socket
33831
c63c7106 33832/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33833#ifdef __cplusplus
33834extern "C"
33835{
33836#endif
c63c7106 33837/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33838 builtin and then its argument prototype would still apply. */
33839char socket ();
c63c7106
VZ
33840/* The GNU C library defines this for functions which it implements
33841 to always fail with ENOSYS. Some functions are actually named
33842 something starting with __ and the normal name is an alias. */
33843#if defined (__stub_socket) || defined (__stub___socket)
33844choke me
33845#else
e6cc62c6
VS
33846char (*f) () = socket;
33847#endif
33848#ifdef __cplusplus
33849}
c63c7106
VZ
33850#endif
33851
e6cc62c6
VS
33852int
33853main ()
33854{
33855return f != socket;
33856 ;
33857 return 0;
33858}
33859_ACEOF
33860rm -f conftest.$ac_objext conftest$ac_exeext
33861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33862 (eval $ac_link) 2>conftest.er1
e6cc62c6 33863 ac_status=$?
eea650d8
VS
33864 grep -v '^ *+' conftest.er1 >conftest.err
33865 rm -f conftest.er1
33866 cat conftest.err >&5
e6cc62c6
VS
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); } &&
eea650d8
VS
33869 { ac_try='test -z "$ac_c_werror_flag"
33870 || test ! -s conftest.err'
33871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33872 (eval $ac_try) 2>&5
33873 ac_status=$?
33874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); }; } &&
33876 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878 (eval $ac_try) 2>&5
33879 ac_status=$?
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); }; }; then
33882 ac_cv_func_socket=yes
33883else
33884 echo "$as_me: failed program was:" >&5
33885sed 's/^/| /' conftest.$ac_ext >&5
33886
33887ac_cv_func_socket=no
33888fi
eea650d8
VS
33889rm -f conftest.err conftest.$ac_objext \
33890 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33891fi
33892echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33893echo "${ECHO_T}$ac_cv_func_socket" >&6
33894if test $ac_cv_func_socket = yes; then
c63c7106
VZ
33895 :
33896else
0e012a93
VZ
33897
33898 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
33899echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33900if test "${ac_cv_lib_socket_socket+set}" = set; then
33901 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 33902else
e6cc62c6 33903 ac_check_lib_save_LIBS=$LIBS
c63c7106 33904LIBS="-lsocket $LIBS"
e6cc62c6 33905cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33906/* confdefs.h. */
33907_ACEOF
33908cat confdefs.h >>conftest.$ac_ext
33909cat >>conftest.$ac_ext <<_ACEOF
33910/* end confdefs.h. */
33911
c63c7106 33912/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33913#ifdef __cplusplus
33914extern "C"
33915#endif
c63c7106 33916/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33917 builtin and then its argument prototype would still apply. */
33918char socket ();
33919int
33920main ()
33921{
33922socket ();
33923 ;
33924 return 0;
33925}
33926_ACEOF
33927rm -f conftest.$ac_objext conftest$ac_exeext
33928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33929 (eval $ac_link) 2>conftest.er1
e6cc62c6 33930 ac_status=$?
eea650d8
VS
33931 grep -v '^ *+' conftest.er1 >conftest.err
33932 rm -f conftest.er1
33933 cat conftest.err >&5
e6cc62c6
VS
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); } &&
eea650d8
VS
33936 { ac_try='test -z "$ac_c_werror_flag"
33937 || test ! -s conftest.err'
33938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939 (eval $ac_try) 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; } &&
33943 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33946 ac_status=$?
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; }; then
33949 ac_cv_lib_socket_socket=yes
33950else
33951 echo "$as_me: failed program was:" >&5
33952sed 's/^/| /' conftest.$ac_ext >&5
33953
33954ac_cv_lib_socket_socket=no
33955fi
eea650d8
VS
33956rm -f conftest.err conftest.$ac_objext \
33957 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33958LIBS=$ac_check_lib_save_LIBS
33959fi
33960echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33961echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33962if test $ac_cv_lib_socket_socket = yes; then
d558c907 33963 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
33964 INET_LINK="$INET_LINK -lsocket"
33965 fi
c63c7106 33966else
afc31813 33967
0e012a93 33968 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 33969echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 33970 wxUSE_SOCKETS=no
e6cc62c6
VS
33971
33972
6232543b 33973fi
b089607b 33974
e6cc62c6 33975
0e012a93 33976
1e487827 33977fi
afc31813 33978
3a922bb4 33979 fi
0feee163 33980fi
51a9faba 33981
0feee163
VZ
33982if test "$wxUSE_SOCKETS" = "yes" ; then
33983 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33984 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33985echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33986if test "${wx_cv_type_getsockname3+set}" = set; then
33987 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33988else
e6cc62c6
VS
33989
33990 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33991/* confdefs.h. */
33992_ACEOF
33993cat confdefs.h >>conftest.$ac_ext
33994cat >>conftest.$ac_ext <<_ACEOF
33995/* end confdefs.h. */
51a9faba 33996
3a922bb4
RL
33997 #include <sys/types.h>
33998 #include <sys/socket.h>
e6cc62c6
VS
33999
34000int
34001main ()
34002{
51a9faba 34003
3a922bb4
RL
34004 socklen_t len;
34005 getsockname(0, 0, &len);
e6cc62c6
VS
34006
34007 ;
34008 return 0;
34009}
34010_ACEOF
34011rm -f conftest.$ac_objext
34012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34013 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34014 ac_status=$?
eea650d8
VS
34015 grep -v '^ *+' conftest.er1 >conftest.err
34016 rm -f conftest.er1
34017 cat conftest.err >&5
e6cc62c6
VS
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); } &&
eea650d8
VS
34020 { ac_try='test -z "$ac_c_werror_flag"
34021 || test ! -s conftest.err'
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; } &&
34027 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; }; then
51a9faba 34033 wx_cv_type_getsockname3=socklen_t
afc31813 34034else
e6cc62c6
VS
34035 echo "$as_me: failed program was:" >&5
34036sed 's/^/| /' conftest.$ac_ext >&5
34037
34038
9711d31e
GD
34039 CFLAGS_OLD="$CFLAGS"
34040 if test "$GCC" = yes ; then
34041 CFLAGS="$CFLAGS -Werror"
34042 fi
34043
e6cc62c6 34044 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34045/* confdefs.h. */
34046_ACEOF
34047cat confdefs.h >>conftest.$ac_ext
34048cat >>conftest.$ac_ext <<_ACEOF
34049/* end confdefs.h. */
51a9faba 34050
9711d31e
GD
34051 #include <sys/types.h>
34052 #include <sys/socket.h>
e6cc62c6
VS
34053
34054int
34055main ()
34056{
51a9faba 34057
9711d31e
GD
34058 size_t len;
34059 getsockname(0, 0, &len);
e6cc62c6
VS
34060
34061 ;
34062 return 0;
34063}
34064_ACEOF
34065rm -f conftest.$ac_objext
34066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34067 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34068 ac_status=$?
eea650d8
VS
34069 grep -v '^ *+' conftest.er1 >conftest.err
34070 rm -f conftest.er1
34071 cat conftest.err >&5
e6cc62c6
VS
34072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073 (exit $ac_status); } &&
eea650d8
VS
34074 { ac_try='test -z "$ac_c_werror_flag"
34075 || test ! -s conftest.err'
34076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34077 (eval $ac_try) 2>&5
34078 ac_status=$?
34079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080 (exit $ac_status); }; } &&
34081 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34083 (eval $ac_try) 2>&5
34084 ac_status=$?
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); }; }; then
51a9faba 34087 wx_cv_type_getsockname3=size_t
afc31813 34088else
e6cc62c6
VS
34089 echo "$as_me: failed program was:" >&5
34090sed 's/^/| /' conftest.$ac_ext >&5
34091
34092cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34093/* confdefs.h. */
34094_ACEOF
34095cat confdefs.h >>conftest.$ac_ext
34096cat >>conftest.$ac_ext <<_ACEOF
34097/* end confdefs.h. */
51a9faba 34098
9711d31e
GD
34099 #include <sys/types.h>
34100 #include <sys/socket.h>
e6cc62c6
VS
34101
34102int
34103main ()
34104{
51a9faba 34105
9711d31e
GD
34106 int len;
34107 getsockname(0, 0, &len);
e6cc62c6
VS
34108
34109 ;
34110 return 0;
34111}
34112_ACEOF
34113rm -f conftest.$ac_objext
34114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34115 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34116 ac_status=$?
eea650d8
VS
34117 grep -v '^ *+' conftest.er1 >conftest.err
34118 rm -f conftest.er1
34119 cat conftest.err >&5
e6cc62c6
VS
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); } &&
eea650d8
VS
34122 { ac_try='test -z "$ac_c_werror_flag"
34123 || test ! -s conftest.err'
34124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34125 (eval $ac_try) 2>&5
34126 ac_status=$?
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); }; } &&
34129 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 (eval $ac_try) 2>&5
34132 ac_status=$?
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); }; }; then
51a9faba 34135 wx_cv_type_getsockname3=int
afc31813 34136else
e6cc62c6
VS
34137 echo "$as_me: failed program was:" >&5
34138sed 's/^/| /' conftest.$ac_ext >&5
34139
34140wx_cv_type_getsockname3=unknown
34141
afc31813 34142fi
eea650d8 34143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34144
afc31813 34145fi
eea650d8 34146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
34147
34148 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
34149
34150
247f5006 34151fi
eea650d8 34152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 34153
e6cc62c6
VS
34154fi
34155echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
34156echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 34157
3a922bb4
RL
34158 if test "$wx_cv_type_getsockname3" = "unknown"; then
34159 wxUSE_SOCKETS=no
e6cc62c6
VS
34160 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
34161echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 34162 else
e6cc62c6 34163 cat >>confdefs.h <<_ACEOF
51a9faba 34164#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 34165_ACEOF
51a9faba 34166
3a922bb4 34167 fi
51a9faba
VZ
34168 fi
34169fi
afc31813 34170
51a9faba 34171if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 34172 cat >>confdefs.h <<\_ACEOF
afc31813 34173#define wxUSE_SOCKETS 1
e6cc62c6 34174_ACEOF
afc31813 34175
70f7a477 34176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
34177fi
34178
3879ecda
VZ
34179if test "$wxUSE_PROTOCOL" = "yes"; then
34180 if test "$wxUSE_SOCKETS" != "yes"; then
34181 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
34182echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
34183 wxUSE_PROTOCOL=no
34184 fi
34185fi
34186
34187if test "$wxUSE_PROTOCOL" = "yes"; then
34188 cat >>confdefs.h <<\_ACEOF
34189#define wxUSE_PROTOCOL 1
34190_ACEOF
34191
34192
34193 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
34194 cat >>confdefs.h <<\_ACEOF
34195#define wxUSE_PROTOCOL_HTTP 1
34196_ACEOF
34197
34198 fi
34199 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
34200 cat >>confdefs.h <<\_ACEOF
34201#define wxUSE_PROTOCOL_FTP 1
34202_ACEOF
34203
34204 fi
34205 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
34206 cat >>confdefs.h <<\_ACEOF
34207#define wxUSE_PROTOCOL_FILE 1
34208_ACEOF
34209
34210 fi
34211else
34212 if test "$wxUSE_FS_INET" = "yes"; then
34213 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
34214echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
34215 wxUSE_FS_INET="no"
34216 fi
34217fi
34218
34219if test "$wxUSE_URL" = "yes"; then
34220 if test "$wxUSE_PROTOCOL" != "yes"; then
34221 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
34222echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
34223 wxUSE_URL=no
34224 fi
34225 if test "$wxUSE_URL" = "yes"; then
34226 cat >>confdefs.h <<\_ACEOF
34227#define wxUSE_URL 1
34228_ACEOF
34229
34230 fi
34231fi
34232
34233if test "$wxUSE_FS_INET" = "yes"; then
34234 cat >>confdefs.h <<\_ACEOF
34235#define wxUSE_FS_INET 1
34236_ACEOF
34237
34238fi
34239
8284b0c5 34240
dc3d889d
VZ
34241if test "$wxUSE_GUI" = "yes"; then
34242
ac0c4cc3 34243 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
34244 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
34245echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 34246 wxUSE_JOYSTICK=no
156b2523
GD
34247 fi
34248
131f235d 34249 if test "$TOOLKIT" != "MSW"; then
3a922bb4 34250 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
34251
34252for ac_header in linux/joystick.h
10f2d63a 34253do
e6cc62c6
VS
34254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34255if eval "test \"\${$as_ac_Header+set}\" = set"; then
34256 echo "$as_me:$LINENO: checking for $ac_header" >&5
34257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34258if eval "test \"\${$as_ac_Header+set}\" = set"; then
34259 echo $ECHO_N "(cached) $ECHO_C" >&6
34260fi
34261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34263else
34264 # Is the header compilable?
34265echo "$as_me:$LINENO: checking $ac_header usability" >&5
34266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34267cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34268/* confdefs.h. */
34269_ACEOF
34270cat confdefs.h >>conftest.$ac_ext
34271cat >>conftest.$ac_ext <<_ACEOF
34272/* end confdefs.h. */
34273$ac_includes_default
34274#include <$ac_header>
34275_ACEOF
34276rm -f conftest.$ac_objext
34277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34278 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34279 ac_status=$?
eea650d8
VS
34280 grep -v '^ *+' conftest.er1 >conftest.err
34281 rm -f conftest.er1
34282 cat conftest.err >&5
e6cc62c6
VS
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); } &&
eea650d8
VS
34285 { ac_try='test -z "$ac_c_werror_flag"
34286 || test ! -s conftest.err'
34287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34288 (eval $ac_try) 2>&5
34289 ac_status=$?
34290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291 (exit $ac_status); }; } &&
34292 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34294 (eval $ac_try) 2>&5
34295 ac_status=$?
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); }; }; then
34298 ac_header_compiler=yes
34299else
34300 echo "$as_me: failed program was:" >&5
34301sed 's/^/| /' conftest.$ac_ext >&5
34302
34303ac_header_compiler=no
34304fi
eea650d8 34305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
34306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34307echo "${ECHO_T}$ac_header_compiler" >&6
34308
34309# Is the header present?
34310echo "$as_me:$LINENO: checking $ac_header presence" >&5
34311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34312cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34313/* confdefs.h. */
34314_ACEOF
34315cat confdefs.h >>conftest.$ac_ext
34316cat >>conftest.$ac_ext <<_ACEOF
34317/* end confdefs.h. */
34318#include <$ac_header>
34319_ACEOF
34320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34322 ac_status=$?
34323 grep -v '^ *+' conftest.er1 >conftest.err
34324 rm -f conftest.er1
34325 cat conftest.err >&5
34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 (exit $ac_status); } >/dev/null; then
34328 if test -s conftest.err; then
34329 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 34330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
34331 else
34332 ac_cpp_err=
34333 fi
34334else
34335 ac_cpp_err=yes
34336fi
34337if test -z "$ac_cpp_err"; then
34338 ac_header_preproc=yes
34339else
34340 echo "$as_me: failed program was:" >&5
34341sed 's/^/| /' conftest.$ac_ext >&5
34342
34343 ac_header_preproc=no
34344fi
34345rm -f conftest.err conftest.$ac_ext
34346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34347echo "${ECHO_T}$ac_header_preproc" >&6
34348
34349# So? What about this header?
eea650d8
VS
34350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34351 yes:no: )
e6cc62c6
VS
34352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
34354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34356 ac_header_preproc=yes
e6cc62c6 34357 ;;
eea650d8 34358 no:yes:* )
e6cc62c6
VS
34359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
34361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
34367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
34369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
34371 (
34372 cat <<\_ASBOX
eea650d8
VS
34373## ----------------------------------------- ##
34374## Report this to wx-dev@lists.wxwindows.org ##
34375## ----------------------------------------- ##
e6cc62c6
VS
34376_ASBOX
34377 ) |
34378 sed "s/^/$as_me: WARNING: /" >&2
34379 ;;
34380esac
34381echo "$as_me:$LINENO: checking for $ac_header" >&5
34382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34383if eval "test \"\${$as_ac_Header+set}\" = set"; then
34384 echo $ECHO_N "(cached) $ECHO_C" >&6
34385else
eea650d8 34386 eval "$as_ac_Header=\$ac_header_preproc"
247f5006 34387fi
e6cc62c6
VS
34388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34390
10f2d63a 34391fi
e6cc62c6
VS
34392if test `eval echo '${'$as_ac_Header'}'` = yes; then
34393 cat >>confdefs.h <<_ACEOF
34394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34395_ACEOF
34396
247f5006 34397fi
e6cc62c6 34398
10f2d63a
VZ
34399done
34400
3a922bb4
RL
34401 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
34402 wxUSE_JOYSTICK=no
e6cc62c6
VS
34403 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
34404echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
34405 fi
34406 fi
34407 fi
b089607b 34408
3a922bb4 34409 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 34410 cat >>confdefs.h <<\_ACEOF
10f2d63a 34411#define wxUSE_JOYSTICK 1
e6cc62c6 34412_ACEOF
10f2d63a 34413
3a922bb4
RL
34414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
34415 fi
dc3d889d
VZ
34416fi
34417
8284b0c5 34418
73d617c9 34419if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 34420
3a922bb4
RL
34421 HAVE_DL_FUNCS=0
34422 HAVE_SHL_FUNCS=0
0b9ab0bd 34423 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
34424 if test "$USE_DARWIN" = 1; then
34425 HAVE_DL_FUNCS=1
34426 else
e6cc62c6
VS
34427
34428for ac_func in dlopen
10f2d63a 34429do
e6cc62c6
VS
34430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34431echo "$as_me:$LINENO: checking for $ac_func" >&5
34432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34433if eval "test \"\${$as_ac_var+set}\" = set"; then
34434 echo $ECHO_N "(cached) $ECHO_C" >&6
34435else
34436 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34437/* confdefs.h. */
34438_ACEOF
34439cat confdefs.h >>conftest.$ac_ext
34440cat >>conftest.$ac_ext <<_ACEOF
34441/* end confdefs.h. */
eea650d8
VS
34442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34444#define $ac_func innocuous_$ac_func
34445
10f2d63a 34446/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34447 which can conflict with char $ac_func (); below.
34448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34449 <limits.h> exists even on freestanding compilers. */
eea650d8 34450
e6cc62c6
VS
34451#ifdef __STDC__
34452# include <limits.h>
34453#else
34454# include <assert.h>
34455#endif
eea650d8
VS
34456
34457#undef $ac_func
34458
10f2d63a 34459/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34460#ifdef __cplusplus
34461extern "C"
34462{
34463#endif
10f2d63a 34464/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34465 builtin and then its argument prototype would still apply. */
34466char $ac_func ();
10f2d63a
VZ
34467/* The GNU C library defines this for functions which it implements
34468 to always fail with ENOSYS. Some functions are actually named
34469 something starting with __ and the normal name is an alias. */
34470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34471choke me
34472#else
e6cc62c6
VS
34473char (*f) () = $ac_func;
34474#endif
34475#ifdef __cplusplus
34476}
10f2d63a
VZ
34477#endif
34478
e6cc62c6
VS
34479int
34480main ()
34481{
34482return f != $ac_func;
34483 ;
34484 return 0;
34485}
34486_ACEOF
34487rm -f conftest.$ac_objext conftest$ac_exeext
34488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34489 (eval $ac_link) 2>conftest.er1
e6cc62c6 34490 ac_status=$?
eea650d8
VS
34491 grep -v '^ *+' conftest.er1 >conftest.err
34492 rm -f conftest.er1
34493 cat conftest.err >&5
e6cc62c6
VS
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); } &&
eea650d8
VS
34496 { ac_try='test -z "$ac_c_werror_flag"
34497 || test ! -s conftest.err'
34498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34499 (eval $ac_try) 2>&5
34500 ac_status=$?
34501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502 (exit $ac_status); }; } &&
34503 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34505 (eval $ac_try) 2>&5
34506 ac_status=$?
34507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34508 (exit $ac_status); }; }; then
34509 eval "$as_ac_var=yes"
34510else
34511 echo "$as_me: failed program was:" >&5
34512sed 's/^/| /' conftest.$ac_ext >&5
34513
34514eval "$as_ac_var=no"
34515fi
eea650d8
VS
34516rm -f conftest.err conftest.$ac_objext \
34517 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34518fi
34519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34521if test `eval echo '${'$as_ac_var'}'` = yes; then
34522 cat >>confdefs.h <<_ACEOF
34523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34524_ACEOF
34525
34526 cat >>confdefs.h <<\_ACEOF
10f2d63a 34527#define HAVE_DLOPEN 1
e6cc62c6 34528_ACEOF
10f2d63a 34529
3a922bb4 34530 HAVE_DL_FUNCS=1
e6cc62c6 34531
10f2d63a 34532else
e6cc62c6
VS
34533
34534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34535echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34536if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34537 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34538else
e6cc62c6 34539 ac_check_lib_save_LIBS=$LIBS
10f2d63a 34540LIBS="-ldl $LIBS"
e6cc62c6 34541cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34542/* confdefs.h. */
34543_ACEOF
34544cat confdefs.h >>conftest.$ac_ext
34545cat >>conftest.$ac_ext <<_ACEOF
34546/* end confdefs.h. */
34547
10f2d63a 34548/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34549#ifdef __cplusplus
34550extern "C"
34551#endif
10f2d63a 34552/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34553 builtin and then its argument prototype would still apply. */
34554char dlopen ();
34555int
34556main ()
34557{
34558dlopen ();
34559 ;
34560 return 0;
34561}
34562_ACEOF
34563rm -f conftest.$ac_objext conftest$ac_exeext
34564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34565 (eval $ac_link) 2>conftest.er1
e6cc62c6 34566 ac_status=$?
eea650d8
VS
34567 grep -v '^ *+' conftest.er1 >conftest.err
34568 rm -f conftest.er1
34569 cat conftest.err >&5
e6cc62c6
VS
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); } &&
eea650d8
VS
34572 { ac_try='test -z "$ac_c_werror_flag"
34573 || test ! -s conftest.err'
34574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34575 (eval $ac_try) 2>&5
34576 ac_status=$?
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); }; } &&
34579 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34581 (eval $ac_try) 2>&5
34582 ac_status=$?
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); }; }; then
34585 ac_cv_lib_dl_dlopen=yes
34586else
34587 echo "$as_me: failed program was:" >&5
34588sed 's/^/| /' conftest.$ac_ext >&5
34589
34590ac_cv_lib_dl_dlopen=no
34591fi
eea650d8
VS
34592rm -f conftest.err conftest.$ac_objext \
34593 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34594LIBS=$ac_check_lib_save_LIBS
34595fi
34596echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34597echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34598if test $ac_cv_lib_dl_dlopen = yes; then
34599
34600 cat >>confdefs.h <<\_ACEOF
10f2d63a 34601#define HAVE_DLOPEN 1
e6cc62c6 34602_ACEOF
10f2d63a 34603
3a922bb4 34604 HAVE_DL_FUNCS=1
3d63bc3a 34605 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 34606
10f2d63a 34607else
10f2d63a 34608
e6cc62c6
VS
34609
34610for ac_func in shl_load
10f2d63a 34611do
e6cc62c6
VS
34612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34613echo "$as_me:$LINENO: checking for $ac_func" >&5
34614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34615if eval "test \"\${$as_ac_var+set}\" = set"; then
34616 echo $ECHO_N "(cached) $ECHO_C" >&6
34617else
34618 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34619/* confdefs.h. */
34620_ACEOF
34621cat confdefs.h >>conftest.$ac_ext
34622cat >>conftest.$ac_ext <<_ACEOF
34623/* end confdefs.h. */
eea650d8
VS
34624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34626#define $ac_func innocuous_$ac_func
34627
10f2d63a 34628/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34629 which can conflict with char $ac_func (); below.
34630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34631 <limits.h> exists even on freestanding compilers. */
eea650d8 34632
e6cc62c6
VS
34633#ifdef __STDC__
34634# include <limits.h>
34635#else
34636# include <assert.h>
34637#endif
eea650d8
VS
34638
34639#undef $ac_func
34640
10f2d63a 34641/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34642#ifdef __cplusplus
34643extern "C"
34644{
34645#endif
10f2d63a 34646/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34647 builtin and then its argument prototype would still apply. */
34648char $ac_func ();
10f2d63a
VZ
34649/* The GNU C library defines this for functions which it implements
34650 to always fail with ENOSYS. Some functions are actually named
34651 something starting with __ and the normal name is an alias. */
34652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34653choke me
34654#else
e6cc62c6
VS
34655char (*f) () = $ac_func;
34656#endif
34657#ifdef __cplusplus
34658}
10f2d63a
VZ
34659#endif
34660
e6cc62c6
VS
34661int
34662main ()
34663{
34664return f != $ac_func;
34665 ;
34666 return 0;
34667}
34668_ACEOF
34669rm -f conftest.$ac_objext conftest$ac_exeext
34670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34671 (eval $ac_link) 2>conftest.er1
e6cc62c6 34672 ac_status=$?
eea650d8
VS
34673 grep -v '^ *+' conftest.er1 >conftest.err
34674 rm -f conftest.er1
34675 cat conftest.err >&5
e6cc62c6
VS
34676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677 (exit $ac_status); } &&
eea650d8
VS
34678 { ac_try='test -z "$ac_c_werror_flag"
34679 || test ! -s conftest.err'
34680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34681 (eval $ac_try) 2>&5
34682 ac_status=$?
34683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); }; } &&
34685 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34687 (eval $ac_try) 2>&5
34688 ac_status=$?
34689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690 (exit $ac_status); }; }; then
34691 eval "$as_ac_var=yes"
34692else
34693 echo "$as_me: failed program was:" >&5
34694sed 's/^/| /' conftest.$ac_ext >&5
34695
34696eval "$as_ac_var=no"
34697fi
eea650d8
VS
34698rm -f conftest.err conftest.$ac_objext \
34699 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34700fi
34701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34702echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34703if test `eval echo '${'$as_ac_var'}'` = yes; then
34704 cat >>confdefs.h <<_ACEOF
34705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34706_ACEOF
34707
34708 cat >>confdefs.h <<\_ACEOF
10f2d63a 34709#define HAVE_SHL_LOAD 1
e6cc62c6 34710_ACEOF
10f2d63a 34711
3a922bb4 34712 HAVE_SHL_FUNCS=1
e6cc62c6 34713
10f2d63a 34714else
e6cc62c6
VS
34715
34716 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34717echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34718if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34719 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34720else
e6cc62c6 34721 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34722LIBS="-lshl_load $LIBS"
e6cc62c6 34723cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34724/* confdefs.h. */
34725_ACEOF
34726cat confdefs.h >>conftest.$ac_ext
34727cat >>conftest.$ac_ext <<_ACEOF
34728/* end confdefs.h. */
34729
8284b0c5 34730/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34731#ifdef __cplusplus
34732extern "C"
34733#endif
f6bcfd97 34734/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34735 builtin and then its argument prototype would still apply. */
34736char dld ();
34737int
34738main ()
34739{
34740dld ();
34741 ;
34742 return 0;
34743}
34744_ACEOF
34745rm -f conftest.$ac_objext conftest$ac_exeext
34746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34747 (eval $ac_link) 2>conftest.er1
e6cc62c6 34748 ac_status=$?
eea650d8
VS
34749 grep -v '^ *+' conftest.er1 >conftest.err
34750 rm -f conftest.er1
34751 cat conftest.err >&5
e6cc62c6
VS
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); } &&
eea650d8
VS
34754 { ac_try='test -z "$ac_c_werror_flag"
34755 || test ! -s conftest.err'
34756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34757 (eval $ac_try) 2>&5
34758 ac_status=$?
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); }; } &&
34761 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; }; then
34767 ac_cv_lib_shl_load_dld=yes
34768else
34769 echo "$as_me: failed program was:" >&5
34770sed 's/^/| /' conftest.$ac_ext >&5
34771
34772ac_cv_lib_shl_load_dld=no
34773fi
eea650d8
VS
34774rm -f conftest.err conftest.$ac_objext \
34775 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34776LIBS=$ac_check_lib_save_LIBS
34777fi
34778echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34779echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34780if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 34781
3a922bb4 34782 HAVE_SHL_FUNCS=1
3d63bc3a 34783 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 34784
f6bcfd97
BP
34785fi
34786
e6cc62c6 34787
10f2d63a
VZ
34788fi
34789done
34790
e6cc62c6 34791
10f2d63a
VZ
34792fi
34793
e6cc62c6 34794
10f2d63a
VZ
34795fi
34796done
34797
5c6fa7d2 34798
8284b0c5 34799 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
34800
34801for ac_func in dlerror
f6bcfd97 34802do
e6cc62c6
VS
34803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34804echo "$as_me:$LINENO: checking for $ac_func" >&5
34805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34806if eval "test \"\${$as_ac_var+set}\" = set"; then
34807 echo $ECHO_N "(cached) $ECHO_C" >&6
34808else
34809 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34810/* confdefs.h. */
34811_ACEOF
34812cat confdefs.h >>conftest.$ac_ext
34813cat >>conftest.$ac_ext <<_ACEOF
34814/* end confdefs.h. */
eea650d8
VS
34815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34817#define $ac_func innocuous_$ac_func
34818
f6bcfd97 34819/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34820 which can conflict with char $ac_func (); below.
34821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34822 <limits.h> exists even on freestanding compilers. */
eea650d8 34823
e6cc62c6
VS
34824#ifdef __STDC__
34825# include <limits.h>
34826#else
34827# include <assert.h>
34828#endif
eea650d8
VS
34829
34830#undef $ac_func
34831
f6bcfd97 34832/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34833#ifdef __cplusplus
34834extern "C"
34835{
34836#endif
f6bcfd97 34837/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34838 builtin and then its argument prototype would still apply. */
34839char $ac_func ();
f6bcfd97
BP
34840/* The GNU C library defines this for functions which it implements
34841 to always fail with ENOSYS. Some functions are actually named
34842 something starting with __ and the normal name is an alias. */
34843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34844choke me
34845#else
e6cc62c6
VS
34846char (*f) () = $ac_func;
34847#endif
34848#ifdef __cplusplus
34849}
f6bcfd97
BP
34850#endif
34851
e6cc62c6
VS
34852int
34853main ()
34854{
34855return f != $ac_func;
34856 ;
34857 return 0;
34858}
34859_ACEOF
34860rm -f conftest.$ac_objext conftest$ac_exeext
34861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34862 (eval $ac_link) 2>conftest.er1
e6cc62c6 34863 ac_status=$?
eea650d8
VS
34864 grep -v '^ *+' conftest.er1 >conftest.err
34865 rm -f conftest.er1
34866 cat conftest.err >&5
e6cc62c6
VS
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); } &&
eea650d8
VS
34869 { ac_try='test -z "$ac_c_werror_flag"
34870 || test ! -s conftest.err'
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; } &&
34876 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878 (eval $ac_try) 2>&5
34879 ac_status=$?
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); }; }; then
34882 eval "$as_ac_var=yes"
34883else
34884 echo "$as_me: failed program was:" >&5
34885sed 's/^/| /' conftest.$ac_ext >&5
34886
34887eval "$as_ac_var=no"
34888fi
eea650d8
VS
34889rm -f conftest.err conftest.$ac_objext \
34890 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34891fi
34892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34894if test `eval echo '${'$as_ac_var'}'` = yes; then
34895 cat >>confdefs.h <<_ACEOF
34896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34897_ACEOF
34898 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34899#define HAVE_DLERROR 1
e6cc62c6 34900_ACEOF
f6bcfd97
BP
34901
34902else
0e012a93
VZ
34903
34904 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
34905echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34906if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34907 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34908else
e6cc62c6 34909 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34910LIBS="-ldl $LIBS"
e6cc62c6 34911cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34912/* confdefs.h. */
34913_ACEOF
34914cat confdefs.h >>conftest.$ac_ext
34915cat >>conftest.$ac_ext <<_ACEOF
34916/* end confdefs.h. */
34917
f6bcfd97 34918/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34919#ifdef __cplusplus
34920extern "C"
34921#endif
f6bcfd97 34922/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34923 builtin and then its argument prototype would still apply. */
34924char dlerror ();
34925int
34926main ()
34927{
34928dlerror ();
34929 ;
34930 return 0;
34931}
34932_ACEOF
34933rm -f conftest.$ac_objext conftest$ac_exeext
34934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34935 (eval $ac_link) 2>conftest.er1
e6cc62c6 34936 ac_status=$?
eea650d8
VS
34937 grep -v '^ *+' conftest.er1 >conftest.err
34938 rm -f conftest.er1
34939 cat conftest.err >&5
e6cc62c6
VS
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); } &&
eea650d8
VS
34942 { ac_try='test -z "$ac_c_werror_flag"
34943 || test ! -s conftest.err'
34944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945 (eval $ac_try) 2>&5
34946 ac_status=$?
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; } &&
34949 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951 (eval $ac_try) 2>&5
34952 ac_status=$?
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); }; }; then
34955 ac_cv_lib_dl_dlerror=yes
34956else
34957 echo "$as_me: failed program was:" >&5
34958sed 's/^/| /' conftest.$ac_ext >&5
34959
34960ac_cv_lib_dl_dlerror=no
34961fi
eea650d8
VS
34962rm -f conftest.err conftest.$ac_objext \
34963 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34964LIBS=$ac_check_lib_save_LIBS
34965fi
34966echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34967echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34968if test $ac_cv_lib_dl_dlerror = yes; then
34969 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34970#define HAVE_DLERROR 1
e6cc62c6 34971_ACEOF
f6bcfd97 34972
f6bcfd97
BP
34973fi
34974
0e012a93
VZ
34975
34976
f6bcfd97
BP
34977fi
34978done
34979
3a922bb4
RL
34980 fi
34981 fi
f6bcfd97 34982
3a922bb4
RL
34983 if test "$HAVE_DL_FUNCS" = 0; then
34984 if test "$HAVE_SHL_FUNCS" = 0; then
34985 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
34986 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34987echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 34988 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
34989 wxUSE_DYNLIB_CLASS=no
34990 else
e6cc62c6
VS
34991 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34992echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
34993 fi
34994 fi
10f2d63a
VZ
34995 fi
34996 fi
34997fi
34998
0b9ab0bd 34999if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 35000 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 35001#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 35002_ACEOF
0b9ab0bd 35003
1948bb32
VS
35004fi
35005if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 35006 cat >>confdefs.h <<\_ACEOF
10f2d63a 35007#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 35008_ACEOF
10f2d63a
VZ
35009
35010fi
35011
8284b0c5 35012
1e6feb95 35013if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 35014 cat >>confdefs.h <<\_ACEOF
1e6feb95 35015#define wxUSE_FONTMAP 1
e6cc62c6 35016_ACEOF
1e6feb95
VZ
35017
35018fi
35019
10f2d63a 35020if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 35021 cat >>confdefs.h <<\_ACEOF
10f2d63a 35022#define wxUSE_UNICODE 1
e6cc62c6 35023_ACEOF
10f2d63a 35024
8284b0c5 35025
eb854003 35026 if test "$USE_WIN32" != 1; then
bbc3925a
VS
35027 wxUSE_UNICODE_MSLU=no
35028 fi
a72a4bfa 35029
eb854003 35030 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
35031 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35032echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35033if test "${ac_cv_lib_unicows_main+set}" = set; then
35034 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 35035else
e6cc62c6 35036 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 35037LIBS="-lunicows $LIBS"
e6cc62c6 35038cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35039/* confdefs.h. */
35040_ACEOF
35041cat confdefs.h >>conftest.$ac_ext
35042cat >>conftest.$ac_ext <<_ACEOF
35043/* end confdefs.h. */
a72a4bfa 35044
8284b0c5 35045
e6cc62c6
VS
35046int
35047main ()
35048{
35049main ();
35050 ;
35051 return 0;
35052}
35053_ACEOF
35054rm -f conftest.$ac_objext conftest$ac_exeext
35055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 35056 (eval $ac_link) 2>conftest.er1
e6cc62c6 35057 ac_status=$?
eea650d8
VS
35058 grep -v '^ *+' conftest.er1 >conftest.err
35059 rm -f conftest.er1
35060 cat conftest.err >&5
e6cc62c6
VS
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); } &&
eea650d8
VS
35063 { ac_try='test -z "$ac_c_werror_flag"
35064 || test ! -s conftest.err'
35065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35066 (eval $ac_try) 2>&5
35067 ac_status=$?
35068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); }; } &&
35070 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35072 (eval $ac_try) 2>&5
35073 ac_status=$?
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); }; }; then
35076 ac_cv_lib_unicows_main=yes
35077else
35078 echo "$as_me: failed program was:" >&5
35079sed 's/^/| /' conftest.$ac_ext >&5
35080
35081ac_cv_lib_unicows_main=no
35082fi
eea650d8
VS
35083rm -f conftest.err conftest.$ac_objext \
35084 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35085LIBS=$ac_check_lib_save_LIBS
35086fi
35087echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35088echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35089if test $ac_cv_lib_unicows_main = yes; then
35090
35091 cat >>confdefs.h <<\_ACEOF
a72a4bfa 35092#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
35093_ACEOF
35094
a72a4bfa 35095
a72a4bfa 35096else
a72a4bfa 35097
e6cc62c6
VS
35098 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35099 Applications will only run on Windows NT/2000/XP!" >&5
35100echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35101 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 35102 wxUSE_UNICODE_MSLU=no
e6cc62c6 35103
a72a4bfa
VS
35104fi
35105
35106 fi
10f2d63a
VZ
35107fi
35108
10f2d63a 35109if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 35110 cat >>confdefs.h <<\_ACEOF
10f2d63a 35111#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 35112_ACEOF
10f2d63a
VZ
35113
35114fi
35115
8284b0c5 35116
10f2d63a 35117if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 35118 cat >>confdefs.h <<\_ACEOF
10f2d63a 35119#define wxUSE_POSTSCRIPT 1
e6cc62c6 35120_ACEOF
10f2d63a
VZ
35121
35122fi
35123
e6cc62c6 35124cat >>confdefs.h <<\_ACEOF
10f2d63a 35125#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 35126_ACEOF
10f2d63a 35127
8284b0c5 35128
e6cc62c6 35129cat >>confdefs.h <<\_ACEOF
10f2d63a 35130#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 35131_ACEOF
10f2d63a 35132
8284b0c5
MB
35133
35134
10f2d63a 35135if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 35136 cat >>confdefs.h <<\_ACEOF
10f2d63a 35137#define wxUSE_CONSTRAINTS 1
e6cc62c6 35138_ACEOF
10f2d63a
VZ
35139
35140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35141fi
35142
3879ecda 35143if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 35144 cat >>confdefs.h <<\_ACEOF
10f2d63a 35145#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 35146_ACEOF
10f2d63a 35147
1772d20c 35148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
35149fi
35150
35151if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 35152 cat >>confdefs.h <<\_ACEOF
10f2d63a 35153#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 35154_ACEOF
10f2d63a
VZ
35155
35156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35157 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35159 fi
35160fi
35161
35162if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 35163 cat >>confdefs.h <<\_ACEOF
10f2d63a 35164#define wxUSE_HELP 1
e6cc62c6 35165_ACEOF
10f2d63a
VZ
35166
35167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 35168
77e13408 35169 if test "$wxUSE_MSW" = 1; then
031d8228 35170 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 35171 cat >>confdefs.h <<\_ACEOF
29fd3c0c 35172#define wxUSE_MS_HTML_HELP 1
e6cc62c6 35173_ACEOF
29fd3c0c 35174
3e44f09d 35175 fi
3379ed37 35176 fi
031d8228
VS
35177
35178 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35179 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 35180 cat >>confdefs.h <<\_ACEOF
031d8228 35181#define wxUSE_WXHTML_HELP 1
e6cc62c6 35182_ACEOF
031d8228
VS
35183
35184 else
e6cc62c6
VS
35185 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35186echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
35187 wxUSE_WXHTML_HELP=no
35188 fi
35189 fi
10f2d63a
VZ
35190fi
35191
35192if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35193 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
35194 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35195echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 35196 else
e6cc62c6 35197 cat >>confdefs.h <<\_ACEOF
10f2d63a 35198#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 35199_ACEOF
10f2d63a
VZ
35200
35201 fi
35202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35203fi
35204
e6cc62c6
VS
35205if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35206 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35207echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35208 { (exit 1); exit 1; }; }
35209fi
35210
35211
35212if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35213 -o "$wxUSE_CLIPBOARD" = "yes" \
35214 -o "$wxUSE_OLE" = "yes" \
35215 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35216
35217for ac_header in ole2.h
35218do
35219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35220if eval "test \"\${$as_ac_Header+set}\" = set"; then
35221 echo "$as_me:$LINENO: checking for $ac_header" >&5
35222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35223if eval "test \"\${$as_ac_Header+set}\" = set"; then
35224 echo $ECHO_N "(cached) $ECHO_C" >&6
35225fi
35226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35228else
35229 # Is the header compilable?
35230echo "$as_me:$LINENO: checking $ac_header usability" >&5
35231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35232cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35233/* confdefs.h. */
35234_ACEOF
35235cat confdefs.h >>conftest.$ac_ext
35236cat >>conftest.$ac_ext <<_ACEOF
35237/* end confdefs.h. */
35238$ac_includes_default
35239#include <$ac_header>
35240_ACEOF
35241rm -f conftest.$ac_objext
35242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 35243 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35244 ac_status=$?
eea650d8
VS
35245 grep -v '^ *+' conftest.er1 >conftest.err
35246 rm -f conftest.er1
35247 cat conftest.err >&5
e6cc62c6
VS
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); } &&
eea650d8
VS
35250 { ac_try='test -z "$ac_c_werror_flag"
35251 || test ! -s conftest.err'
35252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253 (eval $ac_try) 2>&5
35254 ac_status=$?
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); }; } &&
35257 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259 (eval $ac_try) 2>&5
35260 ac_status=$?
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); }; }; then
35263 ac_header_compiler=yes
35264else
35265 echo "$as_me: failed program was:" >&5
35266sed 's/^/| /' conftest.$ac_ext >&5
35267
35268ac_header_compiler=no
35269fi
eea650d8 35270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
35271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35272echo "${ECHO_T}$ac_header_compiler" >&6
35273
35274# Is the header present?
35275echo "$as_me:$LINENO: checking $ac_header presence" >&5
35276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35277cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35278/* confdefs.h. */
35279_ACEOF
35280cat confdefs.h >>conftest.$ac_ext
35281cat >>conftest.$ac_ext <<_ACEOF
35282/* end confdefs.h. */
35283#include <$ac_header>
35284_ACEOF
35285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35287 ac_status=$?
35288 grep -v '^ *+' conftest.er1 >conftest.err
35289 rm -f conftest.er1
35290 cat conftest.err >&5
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); } >/dev/null; then
35293 if test -s conftest.err; then
35294 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 35295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
35296 else
35297 ac_cpp_err=
35298 fi
35299else
35300 ac_cpp_err=yes
35301fi
35302if test -z "$ac_cpp_err"; then
35303 ac_header_preproc=yes
35304else
35305 echo "$as_me: failed program was:" >&5
35306sed 's/^/| /' conftest.$ac_ext >&5
35307
35308 ac_header_preproc=no
35309fi
35310rm -f conftest.err conftest.$ac_ext
35311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35312echo "${ECHO_T}$ac_header_preproc" >&6
35313
35314# So? What about this header?
eea650d8
VS
35315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35316 yes:no: )
e6cc62c6
VS
35317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
35319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35321 ac_header_preproc=yes
e6cc62c6 35322 ;;
eea650d8 35323 no:yes:* )
e6cc62c6
VS
35324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
35326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
35332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
35334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
35336 (
35337 cat <<\_ASBOX
eea650d8
VS
35338## ----------------------------------------- ##
35339## Report this to wx-dev@lists.wxwindows.org ##
35340## ----------------------------------------- ##
e6cc62c6
VS
35341_ASBOX
35342 ) |
35343 sed "s/^/$as_me: WARNING: /" >&2
35344 ;;
35345esac
35346echo "$as_me:$LINENO: checking for $ac_header" >&5
35347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35348if eval "test \"\${$as_ac_Header+set}\" = set"; then
35349 echo $ECHO_N "(cached) $ECHO_C" >&6
35350else
eea650d8 35351 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
35352fi
35353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35355
10f2d63a 35356fi
e6cc62c6
VS
35357if test `eval echo '${'$as_ac_Header'}'` = yes; then
35358 cat >>confdefs.h <<_ACEOF
35359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35360_ACEOF
10f2d63a 35361
10f2d63a 35362fi
e6cc62c6 35363
10f2d63a
VZ
35364done
35365
8284b0c5 35366
2b9bdf71
VZ
35367 if test "$ac_cv_header_ole2_h" = "yes" ; then
35368 if test "$GCC" = yes ; then
8284b0c5
MB
35369
35370
e6cc62c6
VS
35371 ac_ext=cc
35372ac_cpp='$CXXCPP $CPPFLAGS'
35373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35376
35377
35378 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
35379echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
35380 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35381/* confdefs.h. */
35382_ACEOF
35383cat confdefs.h >>conftest.$ac_ext
35384cat >>conftest.$ac_ext <<_ACEOF
35385/* end confdefs.h. */
8284b0c5
MB
35386#include <windows.h>
35387 #include <ole2.h>
e6cc62c6
VS
35388int
35389main ()
35390{
8284b0c5 35391
e6cc62c6
VS
35392 ;
35393 return 0;
35394}
35395_ACEOF
35396rm -f conftest.$ac_objext
35397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 35398 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35399 ac_status=$?
eea650d8
VS
35400 grep -v '^ *+' conftest.er1 >conftest.err
35401 rm -f conftest.er1
35402 cat conftest.err >&5
e6cc62c6
VS
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); } &&
eea650d8
VS
35405 { ac_try='test -z "$ac_cxx_werror_flag"
35406 || test ! -s conftest.err'
35407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35408 (eval $ac_try) 2>&5
35409 ac_status=$?
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); }; } &&
35412 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35414 (eval $ac_try) 2>&5
35415 ac_status=$?
35416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417 (exit $ac_status); }; }; then
35418 echo "$as_me:$LINENO: result: no" >&5
35419echo "${ECHO_T}no" >&6
35420else
35421 echo "$as_me: failed program was:" >&5
35422sed 's/^/| /' conftest.$ac_ext >&5
35423
35424echo "$as_me:$LINENO: result: yes" >&5
35425echo "${ECHO_T}yes" >&6
8284b0c5
MB
35426 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
35427fi
eea650d8 35428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 35429 ac_ext=c
8284b0c5 35430ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
35431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35433ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 35434
2b9bdf71 35435 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 35436 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 35437 cat >>confdefs.h <<\_ACEOF
4f11a343 35438#define wxUSE_OLE 1
e6cc62c6 35439_ACEOF
4f11a343 35440
8284b0c5 35441
2b9bdf71
VZ
35442 fi
35443
e6cc62c6 35444 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35445#define wxUSE_DATAOBJ 1
e6cc62c6 35446_ACEOF
2b9bdf71
VZ
35447
35448 else
e6cc62c6
VS
35449 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
35450echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
35451
35452 wxUSE_CLIPBOARD=no
35453 wxUSE_DRAG_AND_DROP=no
35454 wxUSE_DATAOBJ=no
3bce6687
JS
35455 wxUSE_OLE=no
35456 fi
35457
35458 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35459 cat >>confdefs.h <<\_ACEOF
3bce6687 35460#define wxUSE_METAFILE 1
e6cc62c6 35461_ACEOF
3bce6687
JS
35462
35463
e6cc62c6 35464 cat >>confdefs.h <<\_ACEOF
3bce6687 35465#define wxUSE_ENH_METAFILE 1
e6cc62c6 35466_ACEOF
3bce6687
JS
35467
35468 fi
35469fi
35470
2b9bdf71
VZ
35471if test "$wxUSE_IPC" = "yes"; then
35472 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
35473 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
35474echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
35475 fi
35476
e6cc62c6 35477 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35478#define wxUSE_IPC 1
e6cc62c6 35479_ACEOF
2b9bdf71
VZ
35480
35481fi
35482
35483if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 35484 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35485 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
35486echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35487 wxUSE_CLIPBOARD=no
35488 fi
35489
35490 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 35491 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35492#define wxUSE_CLIPBOARD 1
e6cc62c6 35493_ACEOF
2b9bdf71 35494
8284b0c5 35495
e6cc62c6 35496 cat >>confdefs.h <<\_ACEOF
673f4220 35497#define wxUSE_DATAOBJ 1
e6cc62c6 35498_ACEOF
673f4220 35499
6c657b52 35500 fi
2b9bdf71
VZ
35501fi
35502
35503if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
35504 if test "$wxUSE_GTK" = 1; then
35505 if test "$WXGTK12" != 1; then
e6cc62c6
VS
35506 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
35507echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
35508 wxUSE_DRAG_AND_DROP=no
35509 fi
35510 fi
35511
2b9bdf71 35512 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35513 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
35514echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
35515 wxUSE_DRAG_AND_DROP=no
35516 fi
35517
f79bd02d 35518 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
35519 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
35520echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
35521 wxUSE_DRAG_AND_DROP=no
35522 fi
35523
6c657b52 35524 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35525 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
35526echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35527 wxUSE_DRAG_AND_DROP=no
35528 fi
35529
10f2d63a 35530 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 35531 cat >>confdefs.h <<\_ACEOF
10f2d63a 35532#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 35533_ACEOF
10f2d63a
VZ
35534
35535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
35536 fi
35537
35538fi
35539
35540if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 35541 cat >>confdefs.h <<\_ACEOF
10f2d63a 35542#define wxUSE_SPLINES 1
e6cc62c6 35543_ACEOF
10f2d63a
VZ
35544
35545fi
35546
8284b0c5 35547
1e6feb95
VZ
35548USES_CONTROLS=0
35549if test "$wxUSE_CONTROLS" = "yes"; then
35550 USES_CONTROLS=1
35551fi
35552
10f2d63a 35553if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 35554 cat >>confdefs.h <<\_ACEOF
10f2d63a 35555#define wxUSE_ACCEL 1
e6cc62c6 35556_ACEOF
10f2d63a 35557
1e6feb95
VZ
35558 USES_CONTROLS=1
35559fi
35560
35561if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 35562 cat >>confdefs.h <<\_ACEOF
1e6feb95 35563#define wxUSE_BUTTON 1
e6cc62c6 35564_ACEOF
1e6feb95
VZ
35565
35566 USES_CONTROLS=1
35567fi
35568
35569if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 35570 cat >>confdefs.h <<\_ACEOF
1e6feb95 35571#define wxUSE_BMPBUTTON 1
e6cc62c6 35572_ACEOF
1e6feb95
VZ
35573
35574 USES_CONTROLS=1
35575fi
35576
35577if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 35578 cat >>confdefs.h <<\_ACEOF
1e6feb95 35579#define wxUSE_CALENDARCTRL 1
e6cc62c6 35580_ACEOF
1e6feb95
VZ
35581
35582 USES_CONTROLS=1
35583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
35584fi
35585
35586if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 35587 cat >>confdefs.h <<\_ACEOF
10f2d63a 35588#define wxUSE_CARET 1
e6cc62c6 35589_ACEOF
10f2d63a 35590
1e6feb95 35591 USES_CONTROLS=1
10f2d63a
VZ
35592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
35593fi
35594
35595if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 35596 cat >>confdefs.h <<\_ACEOF
10f2d63a 35597#define wxUSE_COMBOBOX 1
e6cc62c6 35598_ACEOF
10f2d63a 35599
1e6feb95 35600 USES_CONTROLS=1
10f2d63a
VZ
35601fi
35602
35603if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 35604 cat >>confdefs.h <<\_ACEOF
10f2d63a 35605#define wxUSE_CHOICE 1
e6cc62c6 35606_ACEOF
10f2d63a 35607
1e6feb95 35608 USES_CONTROLS=1
10f2d63a
VZ
35609fi
35610
35611if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 35612 cat >>confdefs.h <<\_ACEOF
10f2d63a 35613#define wxUSE_CHECKBOX 1
e6cc62c6 35614_ACEOF
10f2d63a 35615
1e6feb95 35616 USES_CONTROLS=1
10f2d63a
VZ
35617fi
35618
35619if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 35620 cat >>confdefs.h <<\_ACEOF
10f2d63a 35621#define wxUSE_CHECKLISTBOX 1
e6cc62c6 35622_ACEOF
10f2d63a 35623
1e6feb95 35624 USES_CONTROLS=1
10f2d63a
VZ
35625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
35626fi
35627
da494b40 35628if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 35629 cat >>confdefs.h <<\_ACEOF
da494b40 35630#define wxUSE_DISPLAY 1
e6cc62c6 35631_ACEOF
da494b40
MB
35632
35633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
35634fi
35635
10f2d63a 35636if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 35637 cat >>confdefs.h <<\_ACEOF
10f2d63a 35638#define wxUSE_GAUGE 1
e6cc62c6 35639_ACEOF
10f2d63a 35640
1e6feb95 35641 USES_CONTROLS=1
10f2d63a
VZ
35642fi
35643
d6a55c4b 35644if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 35645 cat >>confdefs.h <<\_ACEOF
d6a55c4b 35646#define wxUSE_GRID 1
e6cc62c6 35647_ACEOF
10f2d63a 35648
1e6feb95 35649 USES_CONTROLS=1
d6a55c4b 35650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
35651fi
35652
35653if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35654 cat >>confdefs.h <<\_ACEOF
10f2d63a 35655#define wxUSE_IMAGLIST 1
e6cc62c6 35656_ACEOF
10f2d63a
VZ
35657
35658fi
35659
0e012a93
VZ
35660if test "$wxUSE_LISTBOOK" = "yes"; then
35661 cat >>confdefs.h <<\_ACEOF
35662#define wxUSE_LISTBOOK 1
35663_ACEOF
35664
35665 USES_CONTROLS=1
35666fi
35667
10f2d63a 35668if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 35669 cat >>confdefs.h <<\_ACEOF
10f2d63a 35670#define wxUSE_LISTBOX 1
e6cc62c6 35671_ACEOF
10f2d63a 35672
1e6feb95 35673 USES_CONTROLS=1
10f2d63a
VZ
35674fi
35675
35676if test "$wxUSE_LISTCTRL" = "yes"; then
35677 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35678 cat >>confdefs.h <<\_ACEOF
10f2d63a 35679#define wxUSE_LISTCTRL 1
e6cc62c6 35680_ACEOF
10f2d63a 35681
1e6feb95 35682 USES_CONTROLS=1
10f2d63a
VZ
35683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
35684 else
e6cc62c6
VS
35685 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
35686echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35687 fi
35688fi
35689
35690if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 35691 cat >>confdefs.h <<\_ACEOF
10f2d63a 35692#define wxUSE_NOTEBOOK 1
e6cc62c6 35693_ACEOF
10f2d63a 35694
1e6feb95 35695 USES_CONTROLS=1
10f2d63a
VZ
35696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
35697fi
35698
24176f2c 35699
10f2d63a 35700if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 35701 cat >>confdefs.h <<\_ACEOF
10f2d63a 35702#define wxUSE_RADIOBOX 1
e6cc62c6 35703_ACEOF
10f2d63a 35704
1e6feb95 35705 USES_CONTROLS=1
10f2d63a
VZ
35706fi
35707
35708if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 35709 cat >>confdefs.h <<\_ACEOF
10f2d63a 35710#define wxUSE_RADIOBTN 1
e6cc62c6 35711_ACEOF
10f2d63a 35712
1e6feb95 35713 USES_CONTROLS=1
10f2d63a
VZ
35714fi
35715
35716if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 35717 cat >>confdefs.h <<\_ACEOF
10f2d63a 35718#define wxUSE_SASH 1
e6cc62c6 35719_ACEOF
10f2d63a
VZ
35720
35721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
35722fi
35723
35724if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 35725 cat >>confdefs.h <<\_ACEOF
10f2d63a 35726#define wxUSE_SCROLLBAR 1
e6cc62c6 35727_ACEOF
10f2d63a 35728
1e6feb95 35729 USES_CONTROLS=1
741a9306 35730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
35731fi
35732
35733if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 35734 cat >>confdefs.h <<\_ACEOF
10f2d63a 35735#define wxUSE_SLIDER 1
e6cc62c6 35736_ACEOF
10f2d63a 35737
1e6feb95 35738 USES_CONTROLS=1
10f2d63a
VZ
35739fi
35740
35741if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 35742 cat >>confdefs.h <<\_ACEOF
10f2d63a 35743#define wxUSE_SPINBTN 1
e6cc62c6 35744_ACEOF
10f2d63a 35745
1e6feb95 35746 USES_CONTROLS=1
10f2d63a
VZ
35747fi
35748
56cfaa52 35749if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 35750 cat >>confdefs.h <<\_ACEOF
56cfaa52 35751#define wxUSE_SPINCTRL 1
e6cc62c6 35752_ACEOF
56cfaa52 35753
1e6feb95 35754 USES_CONTROLS=1
56cfaa52
RR
35755fi
35756
10f2d63a 35757if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 35758 cat >>confdefs.h <<\_ACEOF
10f2d63a 35759#define wxUSE_SPLITTER 1
e6cc62c6 35760_ACEOF
10f2d63a
VZ
35761
35762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
35763fi
35764
35765if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 35766 cat >>confdefs.h <<\_ACEOF
10f2d63a 35767#define wxUSE_STATBMP 1
e6cc62c6 35768_ACEOF
10f2d63a 35769
1e6feb95 35770 USES_CONTROLS=1
10f2d63a
VZ
35771fi
35772
35773if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 35774 cat >>confdefs.h <<\_ACEOF
10f2d63a 35775#define wxUSE_STATBOX 1
e6cc62c6 35776_ACEOF
10f2d63a 35777
1e6feb95
VZ
35778 USES_CONTROLS=1
35779fi
35780
35781if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 35782 cat >>confdefs.h <<\_ACEOF
1e6feb95 35783#define wxUSE_STATTEXT 1
e6cc62c6 35784_ACEOF
1e6feb95
VZ
35785
35786 USES_CONTROLS=1
10f2d63a
VZ
35787fi
35788
35789if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 35790 cat >>confdefs.h <<\_ACEOF
10f2d63a 35791#define wxUSE_STATLINE 1
e6cc62c6 35792_ACEOF
10f2d63a 35793
89e6bf6d 35794 USES_CONTROLS=1
10f2d63a
VZ
35795fi
35796
35797if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 35798 cat >>confdefs.h <<\_ACEOF
10f2d63a 35799#define wxUSE_STATUSBAR 1
e6cc62c6 35800_ACEOF
10f2d63a 35801
1e6feb95 35802 USES_CONTROLS=1
698dcdb6 35803
2286341c 35804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
35805fi
35806
35807if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 35808 cat >>confdefs.h <<\_ACEOF
10f2d63a 35809#define wxUSE_TAB_DIALOG 1
e6cc62c6 35810_ACEOF
10f2d63a
VZ
35811
35812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
35813fi
35814
1e6feb95 35815if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 35816 cat >>confdefs.h <<\_ACEOF
1e6feb95 35817#define wxUSE_TEXTCTRL 1
e6cc62c6 35818_ACEOF
1e6feb95
VZ
35819
35820 USES_CONTROLS=1
35821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
35822fi
35823
1db8dc4a 35824if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 35825 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35826 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
35827echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
35828 wxUSE_TOGGLEBTN=no
35829 fi
35830 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35831 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
35832echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
35833 wxUSE_TOGGLEBTN=no
35834 fi
35835
35836 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 35837 cat >>confdefs.h <<\_ACEOF
1db8dc4a 35838#define wxUSE_TOGGLEBTN 1
e6cc62c6 35839_ACEOF
1db8dc4a 35840
1e6feb95 35841 USES_CONTROLS=1
a45d7ab7 35842 fi
1db8dc4a
VZ
35843fi
35844
360d6699 35845if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 35846 cat >>confdefs.h <<\_ACEOF
360d6699 35847#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 35848_ACEOF
360d6699
VZ
35849
35850 wxUSE_TOOLBAR="yes"
1e6feb95 35851 USES_CONTROLS=1
360d6699
VZ
35852fi
35853
10f2d63a 35854if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 35855 cat >>confdefs.h <<\_ACEOF
10f2d63a 35856#define wxUSE_TOOLBAR 1
e6cc62c6 35857_ACEOF
10f2d63a 35858
1e6feb95 35859 USES_CONTROLS=1
698dcdb6 35860
360d6699
VZ
35861 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
35862 wxUSE_TOOLBAR_NATIVE="yes"
35863 fi
35864
1e6feb95 35865 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 35866 cat >>confdefs.h <<\_ACEOF
360d6699 35867#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 35868_ACEOF
360d6699 35869
1e6feb95
VZ
35870 USES_CONTROLS=1
35871 fi
35872
35873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
35874fi
35875
10f2d63a
VZ
35876if test "$wxUSE_TOOLTIPS" = "yes"; then
35877 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35878 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
35879echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 35880 else
89e6bf6d 35881 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35882 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
35883echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 35884 else
e6cc62c6 35885 cat >>confdefs.h <<\_ACEOF
10f2d63a 35886#define wxUSE_TOOLTIPS 1
e6cc62c6 35887_ACEOF
10f2d63a
VZ
35888
35889 fi
35890 fi
35891fi
35892
35893if test "$wxUSE_TREECTRL" = "yes"; then
35894 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35895 cat >>confdefs.h <<\_ACEOF
10f2d63a 35896#define wxUSE_TREECTRL 1
e6cc62c6 35897_ACEOF
10f2d63a 35898
1e6feb95 35899 USES_CONTROLS=1
10f2d63a
VZ
35900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
35901 else
e6cc62c6
VS
35902 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
35903echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35904 fi
35905fi
35906
9f41d601 35907if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 35908 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35909 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
35910echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 35911 else
833a51f6
MB
35912 if test "$wxUSE_PM" = 1; then
35913 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 35914echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
35915 else
35916 cat >>confdefs.h <<\_ACEOF
9f41d601 35917#define wxUSE_POPUPWIN 1
e6cc62c6 35918_ACEOF
9f41d601 35919
8284b0c5 35920
833a51f6 35921 USES_CONTROLS=1
485cf710 35922 fi
6abe4b65 35923 fi
9f41d601
RR
35924fi
35925
dd964dcc 35926if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 35927 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
35928 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
35929echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 35930 else
e6cc62c6 35931 cat >>confdefs.h <<\_ACEOF
dd964dcc 35932#define wxUSE_TIPWINDOW 1
e6cc62c6 35933_ACEOF
dd964dcc 35934
3c011993 35935 fi
dd964dcc
VZ
35936fi
35937
1e6feb95 35938if test "$USES_CONTROLS" = 1; then
e6cc62c6 35939 cat >>confdefs.h <<\_ACEOF
1e6feb95 35940#define wxUSE_CONTROLS 1
e6cc62c6 35941_ACEOF
10f2d63a 35942
10f2d63a
VZ
35943fi
35944
8284b0c5 35945
e46d2a18
VS
35946if test "$wxUSE_ACCESSIBILITY" = "yes"; then
35947 cat >>confdefs.h <<\_ACEOF
35948#define wxUSE_ACCESSIBILITY 1
35949_ACEOF
35950
35951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
35952fi
1e6feb95 35953
24fd6d87 35954if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 35955 cat >>confdefs.h <<\_ACEOF
24fd6d87 35956#define wxUSE_DRAGIMAGE 1
e6cc62c6 35957_ACEOF
24fd6d87
VZ
35958
35959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
35960fi
35961
e46d2a18 35962if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 35963 cat >>confdefs.h <<\_ACEOF
e46d2a18 35964#define wxUSE_EXCEPTIONS 1
e6cc62c6 35965_ACEOF
7bb2947d 35966
e46d2a18
VS
35967fi
35968
35969USE_HTML=0
35970if test "$wxUSE_HTML" = "yes"; then
35971 cat >>confdefs.h <<\_ACEOF
35972#define wxUSE_HTML 1
35973_ACEOF
35974
35975 USE_HTML=1
35976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
35977fi
35978
1e6feb95 35979if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 35980 cat >>confdefs.h <<\_ACEOF
1e6feb95 35981#define wxUSE_MENUS 1
e6cc62c6 35982_ACEOF
10f2d63a 35983
1e6feb95 35984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
35985fi
35986
1e6feb95 35987if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35988 cat >>confdefs.h <<\_ACEOF
1e6feb95 35989#define wxUSE_METAFILE 1
e6cc62c6 35990_ACEOF
10f2d63a 35991
10f2d63a
VZ
35992fi
35993
1e6feb95 35994if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 35995 cat >>confdefs.h <<\_ACEOF
1e6feb95 35996#define wxUSE_MIMETYPE 1
e6cc62c6 35997_ACEOF
10f2d63a 35998
10f2d63a
VZ
35999fi
36000
36001if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 36002 cat >>confdefs.h <<\_ACEOF
10f2d63a 36003#define wxUSE_MINIFRAME 1
e6cc62c6 36004_ACEOF
10f2d63a
VZ
36005
36006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36007fi
36008
e46d2a18 36009if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 36010 cat >>confdefs.h <<\_ACEOF
e46d2a18 36011#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 36012_ACEOF
10f2d63a 36013
e46d2a18
VS
36014 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36015 "$TOOLKIT" = "MOTIF"; then
36016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36017 fi
10f2d63a
VZ
36018fi
36019
e46d2a18 36020
10f2d63a 36021if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 36022 cat >>confdefs.h <<\_ACEOF
1e487827 36023#define wxUSE_VALIDATORS 1
e6cc62c6 36024_ACEOF
703e0a69 36025
698dcdb6
VZ
36026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36027fi
36028
edae8572 36029if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 36030 cat >>confdefs.h <<\_ACEOF
edae8572 36031#define wxUSE_PALETTE 1
e6cc62c6 36032_ACEOF
edae8572
VZ
36033
36034fi
36035
e46d2a18
VS
36036if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36037 LIBS=" -lunicows $LIBS"
36038fi
36039
36040
698dcdb6 36041if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 36042 cat >>confdefs.h <<\_ACEOF
698dcdb6 36043#define wxUSE_IMAGE 1
e6cc62c6 36044_ACEOF
698dcdb6 36045
698dcdb6 36046
e46d2a18
VS
36047 if test "$wxUSE_GIF" = "yes" ; then
36048 cat >>confdefs.h <<\_ACEOF
698dcdb6 36049#define wxUSE_GIF 1
e6cc62c6 36050_ACEOF
698dcdb6 36051
e46d2a18 36052 fi
698dcdb6 36053
e46d2a18
VS
36054 if test "$wxUSE_PCX" = "yes" ; then
36055 cat >>confdefs.h <<\_ACEOF
698dcdb6 36056#define wxUSE_PCX 1
e6cc62c6 36057_ACEOF
698dcdb6 36058
e46d2a18 36059 fi
698dcdb6 36060
e46d2a18
VS
36061 if test "$wxUSE_IFF" = "yes" ; then
36062 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 36063#define wxUSE_IFF 1
e6cc62c6 36064_ACEOF
4b6b4dfc 36065
e46d2a18 36066 fi
4b6b4dfc 36067
e46d2a18
VS
36068 if test "$wxUSE_PNM" = "yes" ; then
36069 cat >>confdefs.h <<\_ACEOF
698dcdb6 36070#define wxUSE_PNM 1
e6cc62c6 36071_ACEOF
698dcdb6 36072
e46d2a18 36073 fi
698dcdb6 36074
e46d2a18
VS
36075 if test "$wxUSE_XPM" = "yes" ; then
36076 cat >>confdefs.h <<\_ACEOF
698dcdb6 36077#define wxUSE_XPM 1
e6cc62c6 36078_ACEOF
698dcdb6 36079
e46d2a18 36080 fi
698dcdb6 36081
e46d2a18
VS
36082 if test "$wxUSE_ICO_CUR" = "yes" ; then
36083 cat >>confdefs.h <<\_ACEOF
658974ae 36084#define wxUSE_ICO_CUR 1
e6cc62c6 36085_ACEOF
658974ae 36086
e46d2a18 36087 fi
a72a4bfa
VS
36088fi
36089
8284b0c5 36090
1e6feb95 36091if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 36092 cat >>confdefs.h <<\_ACEOF
1e6feb95 36093#define wxUSE_CHOICEDLG 1
e6cc62c6 36094_ACEOF
1e6feb95
VZ
36095
36096fi
36097
36098if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 36099 cat >>confdefs.h <<\_ACEOF
1e6feb95 36100#define wxUSE_COLOURDLG 1
e6cc62c6 36101_ACEOF
1e6feb95
VZ
36102
36103fi
36104
36105if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 36106 cat >>confdefs.h <<\_ACEOF
1e6feb95 36107#define wxUSE_FILEDLG 1
e6cc62c6 36108_ACEOF
1e6feb95
VZ
36109
36110fi
36111
8db37e06 36112if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 36113 cat >>confdefs.h <<\_ACEOF
8db37e06 36114#define wxUSE_FINDREPLDLG 1
e6cc62c6 36115_ACEOF
8db37e06
VZ
36116
36117fi
36118
1e6feb95 36119if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 36120 cat >>confdefs.h <<\_ACEOF
1e6feb95 36121#define wxUSE_FONTDLG 1
e6cc62c6 36122_ACEOF
1e6feb95
VZ
36123
36124fi
36125
36126if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 36127 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
36128 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36129echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 36130 else
e6cc62c6 36131 cat >>confdefs.h <<\_ACEOF
1e6feb95 36132#define wxUSE_DIRDLG 1
e6cc62c6 36133_ACEOF
1e6feb95 36134
1e6feb95
VZ
36135 fi
36136fi
36137
36138if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 36139 cat >>confdefs.h <<\_ACEOF
1e6feb95 36140#define wxUSE_MSGDLG 1
e6cc62c6 36141_ACEOF
1e6feb95
VZ
36142
36143fi
36144
36145if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 36146 cat >>confdefs.h <<\_ACEOF
1e6feb95 36147#define wxUSE_NUMBERDLG 1
e6cc62c6 36148_ACEOF
1e6feb95
VZ
36149
36150fi
36151
36152if test "$wxUSE_PROGRESSDLG" = "yes"; then
36153 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36154 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36155echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 36156 else
e6cc62c6 36157 cat >>confdefs.h <<\_ACEOF
1e6feb95 36158#define wxUSE_PROGRESSDLG 1
e6cc62c6 36159_ACEOF
1e6feb95
VZ
36160
36161 fi
36162fi
36163
cbca9943 36164if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 36165 cat >>confdefs.h <<\_ACEOF
cbca9943 36166#define wxUSE_SPLASH 1
e6cc62c6 36167_ACEOF
cbca9943
VZ
36168
36169fi
36170
1e6feb95
VZ
36171if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36172 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36173 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36174echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 36175 else
e6cc62c6 36176 cat >>confdefs.h <<\_ACEOF
1e6feb95 36177#define wxUSE_STARTUP_TIPS 1
e6cc62c6 36178_ACEOF
1e6feb95 36179
7b4a847f
RR
36180 fi
36181fi
579d8138 36182
8284b0c5 36183if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 36184 cat >>confdefs.h <<\_ACEOF
8284b0c5 36185#define wxUSE_TEXTDLG 1
e6cc62c6 36186_ACEOF
8284b0c5
MB
36187
36188fi
36189
36190if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 36191 cat >>confdefs.h <<\_ACEOF
8284b0c5 36192#define wxUSE_WIZARDDLG 1
e6cc62c6 36193_ACEOF
8284b0c5
MB
36194
36195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36196fi
36197
36198
36199if test "$cross_compiling" = "yes"; then
36200 OSINFO="\"$host\""
36201else
36202 OSINFO=`uname -s -r -m`
36203 OSINFO="\"$OSINFO\""
36204fi
36205
e6cc62c6 36206cat >>confdefs.h <<_ACEOF
8284b0c5 36207#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 36208_ACEOF
8284b0c5
MB
36209
36210
36211
36212if test "x$prefix" != "xNONE"; then
36213 wxPREFIX=$prefix
36214else
36215 wxPREFIX=$ac_default_prefix
36216fi
36217
e6cc62c6 36218cat >>confdefs.h <<_ACEOF
8284b0c5 36219#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 36220_ACEOF
8284b0c5
MB
36221
36222
e6cc62c6 36223top_builddir_wxconfig=`pwd`
52c71b80 36224
8284b0c5
MB
36225
36226
edd891e2
VS
36227CORE_BASE_LIBS="net base"
36228CORE_GUI_LIBS="adv core"
36229
36230if test "$wxUSE_XML" = "yes" ; then
36231 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36232fi
45293562
VS
36233if test "$wxUSE_ODBC" != "no" ; then
36234 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36235 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
36236fi
36237if test "$wxUSE_HTML" = "yes" ; then
36238 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36239fi
36240
57e7d4ac
VS
36241if test "$wxUSE_GUI" != "yes"; then
36242 CORE_GUI_LIBS=""
36243fi
36244
edd891e2
VS
36245
36246
36247
36248
36249
36250
8284b0c5
MB
36251
36252if test "$wxUSE_MAC" = 1 ; then
36253 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
36254fi
ac0c4cc3
DE
36255if test "$wxUSE_COCOA" = 1 ; then
36256 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36257fi
8284b0c5
MB
36258
36259
2b5f62a0
VZ
36260LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
36261
36262have_cos=0
36263have_floor=0
e6cc62c6 36264
2b5f62a0
VZ
36265for ac_func in cos
36266do
e6cc62c6
VS
36267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36268echo "$as_me:$LINENO: checking for $ac_func" >&5
36269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36270if eval "test \"\${$as_ac_var+set}\" = set"; then
36271 echo $ECHO_N "(cached) $ECHO_C" >&6
36272else
36273 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36274/* confdefs.h. */
36275_ACEOF
36276cat confdefs.h >>conftest.$ac_ext
36277cat >>conftest.$ac_ext <<_ACEOF
36278/* end confdefs.h. */
eea650d8
VS
36279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36281#define $ac_func innocuous_$ac_func
36282
2b5f62a0 36283/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36284 which can conflict with char $ac_func (); below.
36285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36286 <limits.h> exists even on freestanding compilers. */
eea650d8 36287
e6cc62c6
VS
36288#ifdef __STDC__
36289# include <limits.h>
36290#else
36291# include <assert.h>
36292#endif
eea650d8
VS
36293
36294#undef $ac_func
36295
2b5f62a0 36296/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36297#ifdef __cplusplus
36298extern "C"
36299{
36300#endif
2b5f62a0 36301/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36302 builtin and then its argument prototype would still apply. */
36303char $ac_func ();
2b5f62a0
VZ
36304/* The GNU C library defines this for functions which it implements
36305 to always fail with ENOSYS. Some functions are actually named
36306 something starting with __ and the normal name is an alias. */
36307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36308choke me
36309#else
e6cc62c6
VS
36310char (*f) () = $ac_func;
36311#endif
36312#ifdef __cplusplus
36313}
2b5f62a0
VZ
36314#endif
36315
e6cc62c6
VS
36316int
36317main ()
36318{
36319return f != $ac_func;
36320 ;
36321 return 0;
36322}
36323_ACEOF
36324rm -f conftest.$ac_objext conftest$ac_exeext
36325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36326 (eval $ac_link) 2>conftest.er1
e6cc62c6 36327 ac_status=$?
eea650d8
VS
36328 grep -v '^ *+' conftest.er1 >conftest.err
36329 rm -f conftest.er1
36330 cat conftest.err >&5
e6cc62c6
VS
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); } &&
eea650d8
VS
36333 { ac_try='test -z "$ac_c_werror_flag"
36334 || test ! -s conftest.err'
36335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336 (eval $ac_try) 2>&5
36337 ac_status=$?
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); }; } &&
36340 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342 (eval $ac_try) 2>&5
36343 ac_status=$?
36344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345 (exit $ac_status); }; }; then
36346 eval "$as_ac_var=yes"
36347else
36348 echo "$as_me: failed program was:" >&5
36349sed 's/^/| /' conftest.$ac_ext >&5
36350
36351eval "$as_ac_var=no"
36352fi
eea650d8
VS
36353rm -f conftest.err conftest.$ac_objext \
36354 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36355fi
36356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36358if test `eval echo '${'$as_ac_var'}'` = yes; then
36359 cat >>confdefs.h <<_ACEOF
36360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36361_ACEOF
2b5f62a0 36362 have_cos=1
2b5f62a0
VZ
36363fi
36364done
36365
e6cc62c6 36366
2b5f62a0
VZ
36367for ac_func in floor
36368do
e6cc62c6
VS
36369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36370echo "$as_me:$LINENO: checking for $ac_func" >&5
36371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36372if eval "test \"\${$as_ac_var+set}\" = set"; then
36373 echo $ECHO_N "(cached) $ECHO_C" >&6
36374else
36375 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36376/* confdefs.h. */
36377_ACEOF
36378cat confdefs.h >>conftest.$ac_ext
36379cat >>conftest.$ac_ext <<_ACEOF
36380/* end confdefs.h. */
eea650d8
VS
36381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36383#define $ac_func innocuous_$ac_func
36384
2b5f62a0 36385/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36386 which can conflict with char $ac_func (); below.
36387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36388 <limits.h> exists even on freestanding compilers. */
eea650d8 36389
e6cc62c6
VS
36390#ifdef __STDC__
36391# include <limits.h>
36392#else
36393# include <assert.h>
36394#endif
eea650d8
VS
36395
36396#undef $ac_func
36397
2b5f62a0 36398/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36399#ifdef __cplusplus
36400extern "C"
36401{
36402#endif
2b5f62a0 36403/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36404 builtin and then its argument prototype would still apply. */
36405char $ac_func ();
2b5f62a0
VZ
36406/* The GNU C library defines this for functions which it implements
36407 to always fail with ENOSYS. Some functions are actually named
36408 something starting with __ and the normal name is an alias. */
36409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36410choke me
36411#else
e6cc62c6
VS
36412char (*f) () = $ac_func;
36413#endif
36414#ifdef __cplusplus
36415}
2b5f62a0
VZ
36416#endif
36417
e6cc62c6
VS
36418int
36419main ()
36420{
36421return f != $ac_func;
36422 ;
36423 return 0;
36424}
36425_ACEOF
36426rm -f conftest.$ac_objext conftest$ac_exeext
36427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36428 (eval $ac_link) 2>conftest.er1
e6cc62c6 36429 ac_status=$?
eea650d8
VS
36430 grep -v '^ *+' conftest.er1 >conftest.err
36431 rm -f conftest.er1
36432 cat conftest.err >&5
e6cc62c6
VS
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); } &&
eea650d8
VS
36435 { ac_try='test -z "$ac_c_werror_flag"
36436 || test ! -s conftest.err'
36437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36438 (eval $ac_try) 2>&5
36439 ac_status=$?
36440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441 (exit $ac_status); }; } &&
36442 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36444 (eval $ac_try) 2>&5
36445 ac_status=$?
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); }; }; then
36448 eval "$as_ac_var=yes"
36449else
36450 echo "$as_me: failed program was:" >&5
36451sed 's/^/| /' conftest.$ac_ext >&5
36452
36453eval "$as_ac_var=no"
36454fi
eea650d8
VS
36455rm -f conftest.err conftest.$ac_objext \
36456 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36457fi
36458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36459echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36460if test `eval echo '${'$as_ac_var'}'` = yes; then
36461 cat >>confdefs.h <<_ACEOF
36462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36463_ACEOF
2b5f62a0 36464 have_floor=1
2b5f62a0
VZ
36465fi
36466done
36467
e6cc62c6
VS
36468echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
36469echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 36470if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
36471 echo "$as_me:$LINENO: result: yes" >&5
36472echo "${ECHO_T}yes" >&6
2b5f62a0 36473else
e6cc62c6
VS
36474 echo "$as_me:$LINENO: result: no" >&5
36475echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36476 LIBS="$LIBS -lm"
36477 # use different functions to avoid configure caching
36478 have_sin=0
36479 have_ceil=0
e6cc62c6
VS
36480
36481for ac_func in sin
2b5f62a0 36482do
e6cc62c6
VS
36483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36484echo "$as_me:$LINENO: checking for $ac_func" >&5
36485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36486if eval "test \"\${$as_ac_var+set}\" = set"; then
36487 echo $ECHO_N "(cached) $ECHO_C" >&6
36488else
36489 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36490/* confdefs.h. */
36491_ACEOF
36492cat confdefs.h >>conftest.$ac_ext
36493cat >>conftest.$ac_ext <<_ACEOF
36494/* end confdefs.h. */
eea650d8
VS
36495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36497#define $ac_func innocuous_$ac_func
36498
2b5f62a0 36499/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36500 which can conflict with char $ac_func (); below.
36501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36502 <limits.h> exists even on freestanding compilers. */
eea650d8 36503
e6cc62c6
VS
36504#ifdef __STDC__
36505# include <limits.h>
36506#else
36507# include <assert.h>
36508#endif
eea650d8
VS
36509
36510#undef $ac_func
36511
2b5f62a0 36512/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36513#ifdef __cplusplus
36514extern "C"
36515{
36516#endif
2b5f62a0 36517/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36518 builtin and then its argument prototype would still apply. */
36519char $ac_func ();
2b5f62a0
VZ
36520/* The GNU C library defines this for functions which it implements
36521 to always fail with ENOSYS. Some functions are actually named
36522 something starting with __ and the normal name is an alias. */
36523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36524choke me
36525#else
e6cc62c6
VS
36526char (*f) () = $ac_func;
36527#endif
36528#ifdef __cplusplus
36529}
2b5f62a0
VZ
36530#endif
36531
e6cc62c6
VS
36532int
36533main ()
36534{
36535return f != $ac_func;
36536 ;
36537 return 0;
36538}
36539_ACEOF
36540rm -f conftest.$ac_objext conftest$ac_exeext
36541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36542 (eval $ac_link) 2>conftest.er1
e6cc62c6 36543 ac_status=$?
eea650d8
VS
36544 grep -v '^ *+' conftest.er1 >conftest.err
36545 rm -f conftest.er1
36546 cat conftest.err >&5
e6cc62c6
VS
36547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548 (exit $ac_status); } &&
eea650d8
VS
36549 { ac_try='test -z "$ac_c_werror_flag"
36550 || test ! -s conftest.err'
36551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36552 (eval $ac_try) 2>&5
36553 ac_status=$?
36554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555 (exit $ac_status); }; } &&
36556 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36559 ac_status=$?
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; }; then
36562 eval "$as_ac_var=yes"
36563else
36564 echo "$as_me: failed program was:" >&5
36565sed 's/^/| /' conftest.$ac_ext >&5
36566
36567eval "$as_ac_var=no"
36568fi
eea650d8
VS
36569rm -f conftest.err conftest.$ac_objext \
36570 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36571fi
36572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36574if test `eval echo '${'$as_ac_var'}'` = yes; then
36575 cat >>confdefs.h <<_ACEOF
36576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36577_ACEOF
2b5f62a0 36578 have_sin=1
2b5f62a0
VZ
36579fi
36580done
36581
e6cc62c6
VS
36582
36583for ac_func in ceil
2b5f62a0 36584do
e6cc62c6
VS
36585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36586echo "$as_me:$LINENO: checking for $ac_func" >&5
36587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36588if eval "test \"\${$as_ac_var+set}\" = set"; then
36589 echo $ECHO_N "(cached) $ECHO_C" >&6
36590else
36591 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36592/* confdefs.h. */
36593_ACEOF
36594cat confdefs.h >>conftest.$ac_ext
36595cat >>conftest.$ac_ext <<_ACEOF
36596/* end confdefs.h. */
eea650d8
VS
36597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36599#define $ac_func innocuous_$ac_func
36600
2b5f62a0 36601/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36602 which can conflict with char $ac_func (); below.
36603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36604 <limits.h> exists even on freestanding compilers. */
eea650d8 36605
e6cc62c6
VS
36606#ifdef __STDC__
36607# include <limits.h>
36608#else
36609# include <assert.h>
36610#endif
eea650d8
VS
36611
36612#undef $ac_func
36613
2b5f62a0 36614/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36615#ifdef __cplusplus
36616extern "C"
36617{
36618#endif
2b5f62a0 36619/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36620 builtin and then its argument prototype would still apply. */
36621char $ac_func ();
2b5f62a0
VZ
36622/* The GNU C library defines this for functions which it implements
36623 to always fail with ENOSYS. Some functions are actually named
36624 something starting with __ and the normal name is an alias. */
36625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36626choke me
36627#else
e6cc62c6
VS
36628char (*f) () = $ac_func;
36629#endif
36630#ifdef __cplusplus
36631}
2b5f62a0
VZ
36632#endif
36633
e6cc62c6
VS
36634int
36635main ()
36636{
36637return f != $ac_func;
36638 ;
36639 return 0;
36640}
36641_ACEOF
36642rm -f conftest.$ac_objext conftest$ac_exeext
36643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36644 (eval $ac_link) 2>conftest.er1
e6cc62c6 36645 ac_status=$?
eea650d8
VS
36646 grep -v '^ *+' conftest.er1 >conftest.err
36647 rm -f conftest.er1
36648 cat conftest.err >&5
e6cc62c6
VS
36649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 (exit $ac_status); } &&
eea650d8
VS
36651 { ac_try='test -z "$ac_c_werror_flag"
36652 || test ! -s conftest.err'
36653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654 (eval $ac_try) 2>&5
36655 ac_status=$?
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); }; } &&
36658 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 (eval $ac_try) 2>&5
36661 ac_status=$?
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); }; }; then
36664 eval "$as_ac_var=yes"
36665else
36666 echo "$as_me: failed program was:" >&5
36667sed 's/^/| /' conftest.$ac_ext >&5
36668
36669eval "$as_ac_var=no"
36670fi
eea650d8
VS
36671rm -f conftest.err conftest.$ac_objext \
36672 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36673fi
36674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36676if test `eval echo '${'$as_ac_var'}'` = yes; then
36677 cat >>confdefs.h <<_ACEOF
36678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36679_ACEOF
2b5f62a0 36680 have_ceil=1
2b5f62a0
VZ
36681fi
36682done
36683
e6cc62c6
VS
36684 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
36685echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 36686 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
36687 echo "$as_me:$LINENO: result: yes" >&5
36688echo "${ECHO_T}yes" >&6
2b5f62a0 36689 else
e6cc62c6
VS
36690 echo "$as_me:$LINENO: result: no" >&5
36691echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36692 # not sure we should warn the user, crash, etc.
36693 fi
36694fi
8284b0c5
MB
36695
36696if test "$wxUSE_GUI" = "yes"; then
36697
e6cc62c6 36698
8284b0c5
MB
36699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
36700 drawing dynamic erase event exec font image \
1dd02ac0 36701 minimal propsize rotate shaped widgets render"
b625909c
VS
36702
36703 if test "$wxUSE_MONOLITHIC" != "yes"; then
36704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
36705 fi
8284b0c5
MB
36706else
36707 SAMPLES_SUBDIRS="console"
36708fi
36709
36710
e6cc62c6 36711INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 36712-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 36713
fddeb06b
VS
36714if test "$GXX" = yes ; then
36715 CXXWARNINGS="-Wall"
36716 fi
36717
36718EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
36719
95318f7d 36720CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
36721CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
36722CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
36723
36724
fddeb06b 36725LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 36726EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 36727EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 36728EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 36729EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
36730if test "$wxUSE_GUI" = "yes"; then
36731 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
36732fi
34b08d2c
VS
36733if test "$wxUSE_OPENGL" = "yes"; then
36734 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
36735fi
fddeb06b
VS
36736
36737LDFLAGS="$LDFLAGS $PROFILE"
36738
8284b0c5
MB
36739if test "$wxUSE_GTK" = 1; then
36740 WXCONFIG_INCLUDE=
36741else
36742 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
36743fi
36744
67c13b6c
VS
36745WXCONFIG_EXTRALIBS="$LIBS"
36746
36747if test "$wxUSE_REGEX" = "builtin" ; then
36748 wxconfig_3rdparty="$wxconfig_3rdparty regex"
36749fi
36750if test "$wxUSE_EXPAT" = "builtin" ; then
36751 wxconfig_3rdparty="$wxconfig_3rdparty expat"
36752fi
36753if test "$wxUSE_ODBC" = "builtin" ; then
36754 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36755fi
36756if test "$wxUSE_LIBTIFF" = "builtin" ; then
36757 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
36758fi
36759if test "$wxUSE_LIBJPEG" = "builtin" ; then
36760 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
36761fi
36762if test "$wxUSE_LIBPNG" = "builtin" ; then
36763 wxconfig_3rdparty="$wxconfig_3rdparty png"
36764fi
36765if test "$wxUSE_ZLIB" = "builtin" ; then
36766 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
36767fi
bb41dcbe
VS
36768if test "$wxUSE_ODBC" = "builtin" ; then
36769 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36770fi
67c13b6c
VS
36771
36772for i in $wxconfig_3rdparty ; do
36773 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
36774done
36775
36776
fe0895cf
VS
36777if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
36778 WXUNIV=1
36779else
36780 WXUNIV=0
8284b0c5
MB
36781fi
36782
8284b0c5
MB
36783
36784
36785
36786
36787
36788
36789
672abd7a 36790
9747f85d
VS
36791if test $wxUSE_MONOLITHIC = "yes" ; then
36792 MONOLITHIC=1
36793else
36794 MONOLITHIC=0
36795fi
8284b0c5 36796
bb41dcbe
VS
36797if test $wxUSE_ODBC != "no" ; then
36798 USE_ODBC=1
36799else
36800 USE_ODBC=0
36801fi
36802
029b47ad
VS
36803if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
36804 OFFICIAL_BUILD=1
36805else
36806 OFFICIAL_BUILD=0
36807fi
36808
8ee2dd05
VS
36809
36810
36811
8284b0c5
MB
36812
36813
36814
36815
36816
36817
c74dc163 36818
34b08d2c 36819
672abd7a 36820
cf615ebb 36821
6c67131a
VS
36822
36823
bb41dcbe 36824
3527f29c 36825
89fe663f 36826TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
36827
36828
36829
36830
36831
ea66c762 36832
0f1bc9c2 36833
fe0895cf 36834 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
36835
36836 if test -n "$ac_tool_prefix"; then
36837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36838set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36839echo "$as_me:$LINENO: checking for $ac_word" >&5
36840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36841if test "${ac_cv_prog_RANLIB+set}" = set; then
36842 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 36843else
fe0895cf
VS
36844 if test -n "$RANLIB"; then
36845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 36846else
e6cc62c6
VS
36847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36848for as_dir in $PATH
36849do
36850 IFS=$as_save_IFS
36851 test -z "$as_dir" && as_dir=.
36852 for ac_exec_ext in '' $ac_executable_extensions; do
36853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36856 break 2
36857 fi
36858done
36859done
36860
10f2d63a 36861fi
10f2d63a 36862fi
e6cc62c6 36863RANLIB=$ac_cv_prog_RANLIB
fe0895cf 36864if test -n "$RANLIB"; then
e6cc62c6
VS
36865 echo "$as_me:$LINENO: result: $RANLIB" >&5
36866echo "${ECHO_T}$RANLIB" >&6
36867else
36868 echo "$as_me:$LINENO: result: no" >&5
36869echo "${ECHO_T}no" >&6
36870fi
36871
36872fi
36873if test -z "$ac_cv_prog_RANLIB"; then
36874 ac_ct_RANLIB=$RANLIB
36875 # Extract the first word of "ranlib", so it can be a program name with args.
36876set dummy ranlib; ac_word=$2
36877echo "$as_me:$LINENO: checking for $ac_word" >&5
36878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36879if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36880 echo $ECHO_N "(cached) $ECHO_C" >&6
36881else
36882 if test -n "$ac_ct_RANLIB"; then
36883 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36884else
36885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36886for as_dir in $PATH
36887do
36888 IFS=$as_save_IFS
36889 test -z "$as_dir" && as_dir=.
36890 for ac_exec_ext in '' $ac_executable_extensions; do
36891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36892 ac_cv_prog_ac_ct_RANLIB="ranlib"
36893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36894 break 2
36895 fi
36896done
36897done
36898
36899 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
36900fi
36901fi
36902ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36903if test -n "$ac_ct_RANLIB"; then
36904 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36905echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 36906else
e6cc62c6
VS
36907 echo "$as_me:$LINENO: result: no" >&5
36908echo "${ECHO_T}no" >&6
36909fi
36910
36911 RANLIB=$ac_ct_RANLIB
36912else
36913 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 36914fi
665bbe97 36915
fe0895cf
VS
36916 # Find a good install program. We prefer a C program (faster),
36917# so one script is as good as another. But avoid the broken or
36918# incompatible versions:
36919# SysV /etc/install, /usr/sbin/install
36920# SunOS /usr/etc/install
36921# IRIX /sbin/install
36922# AIX /bin/install
e6cc62c6 36923# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
36924# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36925# AFS /usr/afsws/bin/install, which mishandles nonexistent args
36926# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
eea650d8 36927# OS/2's system install, which has a completely different semantic
fe0895cf 36928# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
36929echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36930echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 36931if test -z "$INSTALL"; then
e6cc62c6
VS
36932if test "${ac_cv_path_install+set}" = set; then
36933 echo $ECHO_N "(cached) $ECHO_C" >&6
36934else
36935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36936for as_dir in $PATH
36937do
36938 IFS=$as_save_IFS
36939 test -z "$as_dir" && as_dir=.
36940 # Account for people who put trailing slashes in PATH elements.
36941case $as_dir/ in
36942 ./ | .// | /cC/* | \
36943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
eea650d8 36944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
36945 /usr/ucb/* ) ;;
36946 *)
36947 # OSF1 and SCO ODT 3.0 have their own names for install.
36948 # Don't use installbsd from OSF since it installs stuff as root
36949 # by default.
36950 for ac_prog in ginstall scoinst install; do
36951 for ac_exec_ext in '' $ac_executable_extensions; do
eea650d8
VS
36952 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36953 if test $ac_prog = install &&
36954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36955 # AIX install. It has an incompatible calling convention.
36956 :
36957 elif test $ac_prog = install &&
36958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36959 # program-specific install script used by HP pwplus--don't use.
36960 :
36961 else
36962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36963 break 3
36964 fi
36965 fi
fe0895cf 36966 done
e6cc62c6
VS
36967 done
36968 ;;
36969esac
36970done
36971
fe0895cf
VS
36972
36973fi
36974 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 36975 INSTALL=$ac_cv_path_install
fe0895cf
VS
36976 else
36977 # As a last resort, use the slow shell script. We don't cache a
36978 # path for INSTALL within a source directory, because that will
36979 # break other packages using the cache if that directory is
36980 # removed, or if the path is relative.
e6cc62c6 36981 INSTALL=$ac_install_sh
fe0895cf
VS
36982 fi
36983fi
e6cc62c6
VS
36984echo "$as_me:$LINENO: result: $INSTALL" >&5
36985echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
36986
36987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36988# It thinks the first close brace ends the variable substitution.
36989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36990
e6cc62c6 36991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
36992
36993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36994
e6cc62c6
VS
36995 echo "$as_me:$LINENO: checking whether ln -s works" >&5
36996echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
36997LN_S=$as_ln_s
36998if test "$LN_S" = "ln -s"; then
36999 echo "$as_me:$LINENO: result: yes" >&5
37000echo "${ECHO_T}yes" >&6
fe0895cf 37001else
e6cc62c6
VS
37002 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37003echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
37004fi
37005
37006
e6cc62c6
VS
37007 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37008echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
eea650d8 37009set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
37010if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37011 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37012else
e6cc62c6 37013 cat >conftest.make <<\_ACEOF
fe0895cf 37014all:
e6cc62c6
VS
37015 @echo 'ac_maketemp="$(MAKE)"'
37016_ACEOF
fe0895cf 37017# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 37018eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
37019if test -n "$ac_maketemp"; then
37020 eval ac_cv_prog_make_${ac_make}_set=yes
37021else
37022 eval ac_cv_prog_make_${ac_make}_set=no
37023fi
e6cc62c6 37024rm -f conftest.make
fe0895cf
VS
37025fi
37026if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
37027 echo "$as_me:$LINENO: result: yes" >&5
37028echo "${ECHO_T}yes" >&6
fe0895cf
VS
37029 SET_MAKE=
37030else
e6cc62c6
VS
37031 echo "$as_me:$LINENO: result: no" >&5
37032echo "${ECHO_T}no" >&6
fe0895cf
VS
37033 SET_MAKE="MAKE=${MAKE-make}"
37034fi
37035
e6cc62c6
VS
37036
37037
874d12cf
VS
37038 if test -n "$ac_tool_prefix"; then
37039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37040set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
37041echo "$as_me:$LINENO: checking for $ac_word" >&5
37042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37043if test "${ac_cv_prog_AR+set}" = set; then
37044 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37045else
37046 if test -n "$AR"; then
37047 ac_cv_prog_AR="$AR" # Let the user override the test.
37048else
e6cc62c6
VS
37049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37050for as_dir in $PATH
37051do
37052 IFS=$as_save_IFS
37053 test -z "$as_dir" && as_dir=.
37054 for ac_exec_ext in '' $ac_executable_extensions; do
37055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37056 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
37057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37058 break 2
37059 fi
37060done
37061done
37062
fe0895cf
VS
37063fi
37064fi
e6cc62c6 37065AR=$ac_cv_prog_AR
fe0895cf 37066if test -n "$AR"; then
e6cc62c6
VS
37067 echo "$as_me:$LINENO: result: $AR" >&5
37068echo "${ECHO_T}$AR" >&6
fe0895cf 37069else
e6cc62c6
VS
37070 echo "$as_me:$LINENO: result: no" >&5
37071echo "${ECHO_T}no" >&6
fe0895cf
VS
37072fi
37073
874d12cf
VS
37074fi
37075if test -z "$ac_cv_prog_AR"; then
37076 ac_ct_AR=$AR
37077 # Extract the first word of "ar", so it can be a program name with args.
37078set dummy ar; ac_word=$2
37079echo "$as_me:$LINENO: checking for $ac_word" >&5
37080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37081if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37082 echo $ECHO_N "(cached) $ECHO_C" >&6
37083else
37084 if test -n "$ac_ct_AR"; then
37085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37086else
37087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37088for as_dir in $PATH
37089do
37090 IFS=$as_save_IFS
37091 test -z "$as_dir" && as_dir=.
37092 for ac_exec_ext in '' $ac_executable_extensions; do
37093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37094 ac_cv_prog_ac_ct_AR="ar"
37095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37096 break 2
37097 fi
37098done
37099done
37100
37101 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37102fi
37103fi
37104ac_ct_AR=$ac_cv_prog_ac_ct_AR
37105if test -n "$ac_ct_AR"; then
37106 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37107echo "${ECHO_T}$ac_ct_AR" >&6
37108else
37109 echo "$as_me:$LINENO: result: no" >&5
37110echo "${ECHO_T}no" >&6
37111fi
37112
37113 AR=$ac_ct_AR
37114else
37115 AR="$ac_cv_prog_AR"
37116fi
37117
37118 if test -n "$ac_tool_prefix"; then
37119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37120set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
37121echo "$as_me:$LINENO: checking for $ac_word" >&5
37122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37123if test "${ac_cv_prog_STRIP+set}" = set; then
37124 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37125else
37126 if test -n "$STRIP"; then
37127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37128else
e6cc62c6
VS
37129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37130for as_dir in $PATH
37131do
37132 IFS=$as_save_IFS
37133 test -z "$as_dir" && as_dir=.
37134 for ac_exec_ext in '' $ac_executable_extensions; do
37135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37136 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
37137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37138 break 2
37139 fi
37140done
37141done
37142
fe0895cf
VS
37143fi
37144fi
e6cc62c6 37145STRIP=$ac_cv_prog_STRIP
fe0895cf 37146if test -n "$STRIP"; then
e6cc62c6
VS
37147 echo "$as_me:$LINENO: result: $STRIP" >&5
37148echo "${ECHO_T}$STRIP" >&6
fe0895cf 37149else
e6cc62c6
VS
37150 echo "$as_me:$LINENO: result: no" >&5
37151echo "${ECHO_T}no" >&6
fe0895cf
VS
37152fi
37153
874d12cf
VS
37154fi
37155if test -z "$ac_cv_prog_STRIP"; then
37156 ac_ct_STRIP=$STRIP
37157 # Extract the first word of "strip", so it can be a program name with args.
37158set dummy strip; ac_word=$2
37159echo "$as_me:$LINENO: checking for $ac_word" >&5
37160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37161if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37162 echo $ECHO_N "(cached) $ECHO_C" >&6
37163else
37164 if test -n "$ac_ct_STRIP"; then
37165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37166else
37167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37168for as_dir in $PATH
37169do
37170 IFS=$as_save_IFS
37171 test -z "$as_dir" && as_dir=.
37172 for ac_exec_ext in '' $ac_executable_extensions; do
37173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37174 ac_cv_prog_ac_ct_STRIP="strip"
37175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37176 break 2
37177 fi
37178done
37179done
37180
37181 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37182fi
37183fi
37184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37185if test -n "$ac_ct_STRIP"; then
37186 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37187echo "${ECHO_T}$ac_ct_STRIP" >&6
37188else
37189 echo "$as_me:$LINENO: result: no" >&5
37190echo "${ECHO_T}no" >&6
37191fi
37192
37193 STRIP=$ac_ct_STRIP
37194else
37195 STRIP="$ac_cv_prog_STRIP"
37196fi
37197
37198 if test -n "$ac_tool_prefix"; then
37199 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37200set dummy ${ac_tool_prefix}nm; ac_word=$2
37201echo "$as_me:$LINENO: checking for $ac_word" >&5
37202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37203if test "${ac_cv_prog_NM+set}" = set; then
37204 echo $ECHO_N "(cached) $ECHO_C" >&6
37205else
37206 if test -n "$NM"; then
37207 ac_cv_prog_NM="$NM" # Let the user override the test.
37208else
37209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37210for as_dir in $PATH
37211do
37212 IFS=$as_save_IFS
37213 test -z "$as_dir" && as_dir=.
37214 for ac_exec_ext in '' $ac_executable_extensions; do
37215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37216 ac_cv_prog_NM="${ac_tool_prefix}nm"
37217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37218 break 2
37219 fi
37220done
37221done
37222
37223fi
37224fi
37225NM=$ac_cv_prog_NM
37226if test -n "$NM"; then
37227 echo "$as_me:$LINENO: result: $NM" >&5
37228echo "${ECHO_T}$NM" >&6
37229else
37230 echo "$as_me:$LINENO: result: no" >&5
37231echo "${ECHO_T}no" >&6
37232fi
37233
37234fi
37235if test -z "$ac_cv_prog_NM"; then
37236 ac_ct_NM=$NM
37237 # Extract the first word of "nm", so it can be a program name with args.
37238set dummy nm; ac_word=$2
37239echo "$as_me:$LINENO: checking for $ac_word" >&5
37240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37241if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
37242 echo $ECHO_N "(cached) $ECHO_C" >&6
37243else
37244 if test -n "$ac_ct_NM"; then
37245 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37246else
37247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37248for as_dir in $PATH
37249do
37250 IFS=$as_save_IFS
37251 test -z "$as_dir" && as_dir=.
37252 for ac_exec_ext in '' $ac_executable_extensions; do
37253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37254 ac_cv_prog_ac_ct_NM="nm"
37255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37256 break 2
37257 fi
37258done
37259done
37260
37261 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
37262fi
37263fi
37264ac_ct_NM=$ac_cv_prog_ac_ct_NM
37265if test -n "$ac_ct_NM"; then
37266 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
37267echo "${ECHO_T}$ac_ct_NM" >&6
37268else
37269 echo "$as_me:$LINENO: result: no" >&5
37270echo "${ECHO_T}no" >&6
37271fi
37272
37273 NM=$ac_ct_NM
37274else
37275 NM="$ac_cv_prog_NM"
37276fi
37277
fe0895cf
VS
37278
37279 case ${host} in
37280 *-hp-hpux* )
37281 INSTALL_DIR="mkdir"
37282 ;;
37283 *) INSTALL_DIR="$INSTALL -d"
37284 ;;
37285 esac
e6cc62c6 37286
fe0895cf 37287
6b9d41a5
VS
37288 LDFLAGS_GUI=
37289 case ${host} in
37290 *-*-cygwin* | *-*-mingw32* )
37291 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
37292 esac
37293
37294
fe0895cf 37295 fi
e6cc62c6
VS
37296
37297 echo "$as_me:$LINENO: checking if make is GNU make" >&5
37298echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 37299if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 37300 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37301else
e6cc62c6 37302
fe0895cf
VS
37303 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
37304 egrep -s GNU > /dev/null); then
37305 bakefile_cv_prog_makeisgnu="yes"
37306 else
37307 bakefile_cv_prog_makeisgnu="no"
37308 fi
fe0895cf 37309
e6cc62c6 37310fi
49b0a3aa
VS
37311echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
37312echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
37313
37314 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
37315 IF_GNU_MAKE=""
37316 else
37317 IF_GNU_MAKE="#"
37318 fi
fe0895cf 37319
e6cc62c6
VS
37320
37321
fe0895cf
VS
37322 PLATFORM_UNIX=0
37323 PLATFORM_WIN32=0
37324 PLATFORM_MSDOS=0
37325 PLATFORM_MAC=0
37326 PLATFORM_MACOSX=0
96c1699d 37327 PLATFORM_OS2=0
e6cc62c6 37328
fe0895cf
VS
37329 case "${host}" in
37330 *-*-cygwin* | *-*-mingw32* )
37331 PLATFORM_WIN32=1
37332 ;;
96c1699d 37333 *-pc-msdosdjgpp )
fe0895cf
VS
37334 PLATFORM_MSDOS=1
37335 ;;
96c1699d
VS
37336 *-pc-os2_emx | *-pc-os2-emx )
37337 PLATFORM_OS2=1
37338 ;;
fe0895cf
VS
37339 powerpc-*-darwin* )
37340 PLATFORM_MAC=1
37341 PLATFORM_MACOSX=1
37342 ;;
37343 * )
37344 PLATFORM_UNIX=1
37345 ;;
37346 esac
37347
fe0895cf 37348
e6cc62c6
VS
37349
37350
37351
37352
37353
37354
96c1699d 37355
fe0895cf 37356 SO_SUFFIX="so"
131f235d 37357 SO_SUFFIX_MODULE="so"
fe0895cf 37358 EXEEXT=""
4b1f6360 37359 LIBPREFIX=lib
fe0895cf 37360 DLLPREFIX=lib
131f235d 37361 DLLPREFIX_MODULE=
e6cc62c6 37362
fe0895cf
VS
37363 case "${host}" in
37364 *-hp-hpux* )
37365 SO_SUFFIX="sl"
131f235d 37366 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
37367 ;;
37368 *-*-aix* )
37369 SO_SUFFIX="a"
131f235d 37370 SO_SUFFIX_MODULE="a"
fe0895cf
VS
37371 ;;
37372 *-*-cygwin* | *-*-mingw32* )
37373 SO_SUFFIX="dll"
131f235d 37374 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
37375 EXEEXT=".exe"
37376 DLLPREFIX=""
37377 ;;
4b1f6360
VS
37378 *-pc-msdosdjgpp )
37379 EXEEXT=".exe"
37380 DLLPREFIX=""
37381 ;;
37382 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
37383 EXEEXT=".exe"
37384 DLLPREFIX=""
4b1f6360 37385 LIBPREFIX=""
fe0895cf
VS
37386 ;;
37387 powerpc-*-darwin* )
37388 SO_SUFFIX="dylib"
131f235d 37389 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
37390 ;;
37391 esac
37392
fe0895cf 37393
e6cc62c6
VS
37394
37395
37396
37397
131f235d
VS
37398
37399
4b1f6360 37400
fe0895cf
VS
37401 SHARED_LD_CC="\$(CC) -shared -o"
37402 SHARED_LD_CXX="\$(CXX) -shared -o"
37403
37404 if test "x$GCC" = "xyes"; then
37405 PIC_FLAG="-fPIC"
37406 fi
37407
37408 case "${host}" in
37409 *-hp-hpux* )
37410 if test "x$GCC" = "xyes"; then
37411 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
37412 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
37413 else
37414 LDFLAGS="$LDFLAGS -L/usr/lib"
37415
37416 SHARED_LD_CC="${CC} -b -o"
37417 SHARED_LD_CXX="${CXX} -b -o"
37418 PIC_FLAG="+Z"
37419 fi
37420 ;;
37421
37422 *-*-linux* )
37423 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
37424 echo "$as_me:$LINENO: checking for Intel compiler" >&5
37425echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
37426if test "${bakefile_cv_prog_icc+set}" = set; then
37427 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37428else
fe0895cf 37429
e6cc62c6 37430 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37431/* confdefs.h. */
37432_ACEOF
37433cat confdefs.h >>conftest.$ac_ext
37434cat >>conftest.$ac_ext <<_ACEOF
37435/* end confdefs.h. */
37436
37437int
37438main ()
37439{
fe0895cf
VS
37440
37441 #ifndef __INTEL_COMPILER
37442 #error Not icc
37443 #endif
e6cc62c6
VS
37444
37445 ;
37446 return 0;
37447}
37448_ACEOF
37449rm -f conftest.$ac_objext
37450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 37451 (eval $ac_compile) 2>conftest.er1
e6cc62c6 37452 ac_status=$?
eea650d8
VS
37453 grep -v '^ *+' conftest.er1 >conftest.err
37454 rm -f conftest.er1
37455 cat conftest.err >&5
e6cc62c6
VS
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); } &&
eea650d8
VS
37458 { ac_try='test -z "$ac_c_werror_flag"
37459 || test ! -s conftest.err'
37460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461 (eval $ac_try) 2>&5
37462 ac_status=$?
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); }; } &&
37465 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
37466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37467 (eval $ac_try) 2>&5
37468 ac_status=$?
37469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470 (exit $ac_status); }; }; then
fe0895cf
VS
37471 bakefile_cv_prog_icc=yes
37472else
e6cc62c6
VS
37473 echo "$as_me: failed program was:" >&5
37474sed 's/^/| /' conftest.$ac_ext >&5
37475
37476bakefile_cv_prog_icc=no
37477
fe0895cf 37478fi
eea650d8 37479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 37480
e6cc62c6
VS
37481fi
37482echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
37483echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
37484 if test "$bakefile_cv_prog_icc" = "yes"; then
37485 PIC_FLAG="-KPIC"
37486 fi
37487 fi
37488 ;;
37489
37490 *-*-solaris2* )
37491 if test "x$GCC" != xyes ; then
37492 SHARED_LD_CC="${CC} -G -o"
37493 SHARED_LD_CXX="${CXX} -G -o"
37494 PIC_FLAG="-KPIC"
37495 fi
37496 ;;
37497
37498 *-*-darwin* )
37499 CFLAGS="$CFLAGS -fno-common"
37500 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
37501
37502
2a879853 37503 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
37504echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
37505if test "${wx_cv_gcc31+set}" = set; then
37506 echo $ECHO_N "(cached) $ECHO_C" >&6
37507else
37508
2a879853 37509 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
37510/* confdefs.h. */
37511_ACEOF
37512cat confdefs.h >>conftest.$ac_ext
37513cat >>conftest.$ac_ext <<_ACEOF
37514/* end confdefs.h. */
37515
37516int
37517main ()
37518{
37519
2a879853
VS
37520 #if (__GNUC__ < 3) || \
37521 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
37522 #error old gcc
37523 #endif
43948499
RD
37524
37525 ;
37526 return 0;
37527}
37528_ACEOF
37529rm -f conftest.$ac_objext
37530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 37531 (eval $ac_compile) 2>conftest.er1
43948499 37532 ac_status=$?
eea650d8
VS
37533 grep -v '^ *+' conftest.er1 >conftest.err
37534 rm -f conftest.er1
37535 cat conftest.err >&5
43948499
RD
37536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537 (exit $ac_status); } &&
eea650d8
VS
37538 { ac_try='test -z "$ac_c_werror_flag"
37539 || test ! -s conftest.err'
37540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37541 (eval $ac_try) 2>&5
37542 ac_status=$?
37543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544 (exit $ac_status); }; } &&
37545 { ac_try='test -s conftest.$ac_objext'
43948499
RD
37546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547 (eval $ac_try) 2>&5
37548 ac_status=$?
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); }; }; then
37551
2a879853 37552 wx_cv_gcc31=yes
43948499
RD
37553
37554else
37555 echo "$as_me: failed program was:" >&5
37556sed 's/^/| /' conftest.$ac_ext >&5
37557
37558
2a879853 37559 wx_cv_gcc31=no
43948499
RD
37560
37561
37562fi
eea650d8 37563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
37564
37565fi
37566echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
37567echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 37568 if test "$wx_cv_gcc31" = "no"; then
43948499 37569 cat <<EOF >shared-ld-sh
fe0895cf
VS
37570#!/bin/sh
37571#-----------------------------------------------------------------------------
37572#-- Name: distrib/mac/shared-ld-sh
37573#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
37574#-- Author: Gilles Depeyrot
37575#-- Copyright: (c) 2002 Gilles Depeyrot
37576#-- Licence: any use permitted
37577#-----------------------------------------------------------------------------
37578
37579verbose=0
37580args=""
37581objects=""
131f235d 37582linking_flag="-dynamiclib"
fe0895cf
VS
37583
37584while test \${#} -gt 0; do
37585 case \${1} in
37586
37587 -v)
37588 verbose=1
37589 ;;
37590
37591 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
37592 # collect these options and values
37593 args="\${args} \${1} \${2}"
37594 shift
37595 ;;
37596
74500461 37597 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
37598 # collect these options
37599 args="\${args} \${1}"
37600 ;;
37601
131f235d
VS
37602 -dynamiclib|-bundle)
37603 linking_flag="\${1}"
fe0895cf
VS
37604 ;;
37605
37606 -*)
37607 echo "shared-ld: unhandled option '\${1}'"
37608 exit 1
37609 ;;
37610
4d264332 37611 *.o | *.a | *.dylib)
fe0895cf
VS
37612 # collect object files
37613 objects="\${objects} \${1}"
37614 ;;
37615
37616 *)
37617 echo "shared-ld: unhandled argument '\${1}'"
37618 exit 1
37619 ;;
37620
37621 esac
37622 shift
37623done
37624
37625#
37626# Link one module containing all the others
37627#
37628if test \${verbose} = 1; then
37629 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
37630fi
37631c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
37632status=\$?
37633if test \${status} != 0; then
37634 exit \${status}
37635fi
37636
37637#
37638# Link the shared library from the single module created
37639#
37640if test \${verbose} = 1; then
2a879853 37641 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 37642fi
131f235d 37643c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
37644status=\$?
37645if test \${status} != 0; then
37646 exit \${status}
37647fi
37648
37649#
37650# Remove intermediate module
37651#
37652rm -f master.\$\$.o
37653
37654exit 0
37655EOF
43948499 37656 chmod +x shared-ld-sh
fe0895cf 37657
7f523214
VS
37658 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
37659 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
37660 SHARED_LD_CXX="$SHARED_LD_CC"
37661 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
37662 else
7f523214
VS
37663 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
37664 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
37665 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
37666 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
37667 fi
37668
fe0895cf 37669 PIC_FLAG="-dynamic -fPIC"
2a879853 37670 ;;
fe0895cf
VS
37671
37672 *-*-aix* )
37673 if test "x$GCC" != "xyes"; then
37674 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
37675set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
37676echo "$as_me:$LINENO: checking for $ac_word" >&5
37677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37678if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
37679 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37680else
37681 if test -n "$AIX_CXX_LD"; then
37682 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
37683else
e6cc62c6
VS
37684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37685for as_dir in $PATH
37686do
37687 IFS=$as_save_IFS
37688 test -z "$as_dir" && as_dir=.
37689 for ac_exec_ext in '' $ac_executable_extensions; do
37690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37691 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
37692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37693 break 2
37694 fi
37695done
37696done
37697
fe0895cf
VS
37698 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
37699fi
37700fi
e6cc62c6 37701AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 37702if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
37703 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
37704echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 37705else
e6cc62c6
VS
37706 echo "$as_me:$LINENO: result: no" >&5
37707echo "${ECHO_T}no" >&6
fe0895cf
VS
37708fi
37709
37710 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
37711 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
37712 fi
37713 ;;
37714
37715 *-*-beos* )
37716 SHARED_LD_CC="${LD} -shared -o"
37717 SHARED_LD_CXX="${LD} -shared -o"
37718 ;;
37719
37720 *-*-irix* )
37721 if test "x$GCC" != "xyes"; then
37722 PIC_FLAG="-KPIC"
37723 fi
37724 ;;
e6cc62c6 37725
fe0895cf
VS
37726 *-*-cygwin* | *-*-mingw32* )
37727 PIC_FLAG=""
37728 ;;
e6cc62c6 37729
fe0895cf
VS
37730 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
37731 *-*-sunos4* | \
37732 *-*-osf* | \
37733 *-*-dgux5* | \
4b1f6360 37734 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
37735 *-*-sysv5* )
37736 ;;
37737
37738 *)
e6cc62c6
VS
37739 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
37740echo "$as_me: error: unknown system type $host." >&2;}
37741 { (exit 1); exit 1; }; }
fe0895cf
VS
37742 esac
37743
131f235d
VS
37744 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
37745 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
37746 fi
37747 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 37748 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
37749 fi
37750
37751
37752
fe0895cf 37753
e6cc62c6
VS
37754
37755
37756
37757
fe0895cf
VS
37758 USE_SOVERSION=0
37759 USE_SOVERLINUX=0
37760 USE_SOVERSOLARIS=0
37761 USE_SOSYMLINKS=0
37762 USE_MACVERSION=0
37763 SONAME_FLAG=
37764
37765 case "${host}" in
37766 *-*-linux* )
37767 SONAME_FLAG="-Wl,-soname,"
37768 USE_SOVERSION=1
37769 USE_SOVERLINUX=1
37770 USE_SOSYMLINKS=1
37771 ;;
37772
37773 *-*-solaris2* )
37774 SONAME_FLAG="-h "
37775 USE_SOVERSION=1
37776 USE_SOVERSOLARIS=1
37777 USE_SOSYMLINKS=1
37778 ;;
37779
37780 *-*-darwin* )
37781 USE_MACVERSION=1
37782 USE_SOVERSION=1
37783 USE_SOSYMLINKS=1
e6cc62c6 37784 ;;
fe0895cf
VS
37785 esac
37786
fe0895cf 37787
e6cc62c6
VS
37788
37789
37790
37791
37792
37793
37794
49b0a3aa
VS
37795 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
37796echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
37797 DEPS_TRACKING=0
37798
fe0895cf 37799 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
37800 DEPSMODE=gcc
37801 DEPS_TRACKING=1
3e5c3c83
VS
37802 case "${host}" in
37803 powerpc-*-darwin* )
37804 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
37805 ;;
37806 * )
37807 DEPSFLAG_GCC="-MMD"
37808 ;;
37809 esac
49b0a3aa
VS
37810 echo "$as_me:$LINENO: result: gcc" >&5
37811echo "${ECHO_T}gcc" >&6
37812 else
37813 echo "$as_me:$LINENO: result: none" >&5
37814echo "${ECHO_T}none" >&6
37815 fi
37816
37817 if test $DEPS_TRACKING = 1 ; then
37818 cat <<EOF >bk-deps
37819#!/bin/sh
37820
45842500
VS
37821# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37822# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
37823#
37824# Permission is given to use this file in any way.
37825
37826DEPSMODE=$DEPSMODE
37827DEPSDIR=.deps
3e5c3c83 37828DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
37829
37830mkdir -p \$DEPSDIR
37831
37832if test \$DEPSMODE = gcc ; then
3e5c3c83 37833 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
37834 status=\${?}
37835 if test \${status} != 0 ; then
37836 exit \${status}
37837 fi
37838 # move created file to the location we want it in:
37839 while test \${#} -gt 0; do
37840 case "\${1}" in
37841 -o )
37842 shift
37843 objfile=\${1}
37844 ;;
37845 -* )
37846 ;;
37847 * )
37848 srcfile=\${1}
37849 ;;
37850 esac
37851 shift
37852 done
37853 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
37854 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
37855 if test -f \$depfile ; then
37856 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37857 rm -f \$depfile
37858 else
37859 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
37860 if test -f \$depfile ; then
9d0be83a 37861 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
37862 rm -f \$depfile
37863 fi
37864 fi
49b0a3aa
VS
37865 exit 0
37866else
37867 \${*}
37868 exit \${?}
37869fi
37870EOF
37871 chmod +x bk-deps
fe0895cf 37872 fi
fe0895cf 37873
e6cc62c6
VS
37874
37875
37876
fe0895cf
VS
37877 RESCOMP=
37878 SETFILE=
37879
e6cc62c6 37880 case ${host} in
fe0895cf
VS
37881 *-*-cygwin* | *-*-mingw32* )
37882 if test "$build" != "$host" ; then
37883 RESCOMP=$host_alias-windres
37884 else
37885 # Extract the first word of "windres", so it can be a program name with args.
37886set dummy windres; ac_word=$2
e6cc62c6
VS
37887echo "$as_me:$LINENO: checking for $ac_word" >&5
37888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37889if test "${ac_cv_prog_RESCOMP+set}" = set; then
37890 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37891else
37892 if test -n "$RESCOMP"; then
37893 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37894else
e6cc62c6
VS
37895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37896for as_dir in $PATH
37897do
37898 IFS=$as_save_IFS
37899 test -z "$as_dir" && as_dir=.
37900 for ac_exec_ext in '' $ac_executable_extensions; do
37901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37902 ac_cv_prog_RESCOMP="windres"
37903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37904 break 2
37905 fi
37906done
37907done
37908
fe0895cf
VS
37909 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37910fi
37911fi
e6cc62c6 37912RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37913if test -n "$RESCOMP"; then
e6cc62c6
VS
37914 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37915echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37916else
e6cc62c6
VS
37917 echo "$as_me:$LINENO: result: no" >&5
37918echo "${ECHO_T}no" >&6
fe0895cf
VS
37919fi
37920
37921 fi
37922 ;;
e6cc62c6 37923
fe0895cf
VS
37924 *-*-darwin* )
37925 # Extract the first word of "Rez", so it can be a program name with args.
37926set dummy Rez; ac_word=$2
e6cc62c6
VS
37927echo "$as_me:$LINENO: checking for $ac_word" >&5
37928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37929if test "${ac_cv_prog_RESCOMP+set}" = set; then
37930 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37931else
37932 if test -n "$RESCOMP"; then
37933 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37934else
e6cc62c6
VS
37935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37936for as_dir in $PATH
37937do
37938 IFS=$as_save_IFS
37939 test -z "$as_dir" && as_dir=.
37940 for ac_exec_ext in '' $ac_executable_extensions; do
37941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37942 ac_cv_prog_RESCOMP="Rez"
37943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37944 break 2
37945 fi
37946done
37947done
37948
fe0895cf
VS
37949 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37950fi
37951fi
e6cc62c6 37952RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37953if test -n "$RESCOMP"; then
e6cc62c6
VS
37954 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37955echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37956else
e6cc62c6
VS
37957 echo "$as_me:$LINENO: result: no" >&5
37958echo "${ECHO_T}no" >&6
fe0895cf
VS
37959fi
37960
37961 # Extract the first word of "SetFile", so it can be a program name with args.
37962set dummy SetFile; ac_word=$2
e6cc62c6
VS
37963echo "$as_me:$LINENO: checking for $ac_word" >&5
37964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37965if test "${ac_cv_prog_SETFILE+set}" = set; then
37966 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37967else
37968 if test -n "$SETFILE"; then
37969 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37970else
e6cc62c6
VS
37971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37972for as_dir in $PATH
37973do
37974 IFS=$as_save_IFS
37975 test -z "$as_dir" && as_dir=.
37976 for ac_exec_ext in '' $ac_executable_extensions; do
37977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37978 ac_cv_prog_SETFILE="SetFile"
37979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37980 break 2
37981 fi
37982done
37983done
37984
fe0895cf
VS
37985 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37986fi
37987fi
e6cc62c6 37988SETFILE=$ac_cv_prog_SETFILE
fe0895cf 37989if test -n "$SETFILE"; then
e6cc62c6
VS
37990 echo "$as_me:$LINENO: result: $SETFILE" >&5
37991echo "${ECHO_T}$SETFILE" >&6
fe0895cf 37992else
e6cc62c6
VS
37993 echo "$as_me:$LINENO: result: no" >&5
37994echo "${ECHO_T}no" >&6
fe0895cf
VS
37995fi
37996
37997 ;;
37998 esac
37999
fe0895cf
VS
38000
38001
e6cc62c6
VS
38002
38003
38004
38005
45842500 38006
74500461
VS
38007
38008
45842500
VS
38009 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
38010if test "${enable_precomp_headers+set}" = set; then
38011 enableval="$enable_precomp_headers"
38012 bk_use_pch="$enableval"
38013fi;
38014
38015 GCC_PCH=0
38016
38017 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
38018 if test "x$GCC" = "xyes"; then
38019 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
38020echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
38021 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
38022/* confdefs.h. */
38023_ACEOF
38024cat confdefs.h >>conftest.$ac_ext
38025cat >>conftest.$ac_ext <<_ACEOF
38026/* end confdefs.h. */
38027
38028int
38029main ()
38030{
38031
8bcf2d20
VS
38032 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
38033 #error "no pch support"
38034 #endif
38035 #if (__GNUC__ < 3)
38036 #error "no pch support"
38037 #endif
38038 #if (__GNUC__ == 3) && \
38039 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
38040 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
38041 #error "no pch support"
45842500
VS
38042 #endif
38043
38044 ;
38045 return 0;
38046}
38047_ACEOF
38048rm -f conftest.$ac_objext
38049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 38050 (eval $ac_compile) 2>conftest.er1
45842500 38051 ac_status=$?
eea650d8
VS
38052 grep -v '^ *+' conftest.er1 >conftest.err
38053 rm -f conftest.er1
38054 cat conftest.err >&5
45842500
VS
38055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056 (exit $ac_status); } &&
eea650d8
VS
38057 { ac_try='test -z "$ac_c_werror_flag"
38058 || test ! -s conftest.err'
38059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060 (eval $ac_try) 2>&5
38061 ac_status=$?
38062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063 (exit $ac_status); }; } &&
38064 { ac_try='test -s conftest.$ac_objext'
45842500
VS
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38067 ac_status=$?
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; }; then
38070
38071 echo "$as_me:$LINENO: result: yes" >&5
38072echo "${ECHO_T}yes" >&6
38073 CPPFLAGS="-fpch-deps $CPPFLAGS"
38074 GCC_PCH=1
38075
38076else
38077 echo "$as_me: failed program was:" >&5
38078sed 's/^/| /' conftest.$ac_ext >&5
38079
38080
38081 echo "$as_me:$LINENO: result: no" >&5
38082echo "${ECHO_T}no" >&6
38083
38084fi
eea650d8 38085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
38086 if test $GCC_PCH = 1 ; then
38087 cat <<EOF >bk-make-pch
38088#!/bin/sh
38089
38090# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38091# script. It is used to generated precompiled headers.
38092#
38093# Permission is given to use this file in any way.
38094
38095outfile="\${1}"
38096header="\${2}"
38097shift
38098shift
38099
38100compiler=
38101headerfile=
38102while test \${#} -gt 0; do
38103 case "\${1}" in
38104 -I* )
38105 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
38106 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
38107 headerfile="\${incdir}/\${header}"
38108 fi
38109 ;;
38110 esac
38111 compiler="\${compiler} \${1}"
38112 shift
38113done
38114
38115if test "x\${headerfile}" = "x" ; then
38116 echo "error: can't find header \${header} in include paths" >2
38117else
38118 if test -f \${outfile} ; then
38119 rm -f \${outfile}
38120 else
38121 mkdir -p \`dirname \${outfile}\`
38122 fi
38123 depsfile=".deps/\`basename \${outfile}\`.d"
38124 mkdir -p .deps
38125 # can do this because gcc is >= 3.4:
38126 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
38127 exit \${?}
38128fi
38129EOF
38130 chmod +x bk-make-pch
38131 fi
38132 fi
38133 fi
38134
38135
38136
38137
38138
d78c94f2 38139 COND_BUILD_DEBUG="#"
6f628073 38140 if test "x$BUILD" = "xdebug" ; then
d78c94f2 38141 COND_BUILD_DEBUG=""
6f628073
VS
38142 fi
38143
6c67131a
VS
38144 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38145 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38146 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38147 fi
38148
38149 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38150 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38151 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38152 fi
38153
d78c94f2 38154 COND_BUILD_RELEASE="#"
6f628073 38155 if test "x$BUILD" = "xrelease" ; then
d78c94f2 38156 COND_BUILD_RELEASE=""
6b9d41a5
VS
38157 fi
38158
6c67131a
VS
38159 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38160 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38161 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38162 fi
38163
38164 COND_DEBUG_FLAG_1="#"
38165 if test "x$DEBUG_FLAG" = "x1" ; then
38166 COND_DEBUG_FLAG_1=""
38167 fi
38168
38169 COND_DEBUG_INFO_0="#"
38170 if test "x$DEBUG_INFO" = "x0" ; then
38171 COND_DEBUG_INFO_0=""
38172 fi
38173
38174 COND_DEBUG_INFO_1="#"
38175 if test "x$DEBUG_INFO" = "x1" ; then
38176 COND_DEBUG_INFO_1=""
38177 fi
38178
f95cd8fa
VS
38179 COND_DEPS_TRACKING_0="#"
38180 if test "x$DEPS_TRACKING" = "x0" ; then
38181 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
38182 fi
38183
8ee2dd05
VS
38184 COND_DEPS_TRACKING_1="#"
38185 if test "x$DEPS_TRACKING" = "x1" ; then
38186 COND_DEPS_TRACKING_1=""
38187 fi
38188
45842500
VS
38189 COND_GCC_PCH_1="#"
38190 if test "x$GCC_PCH" = "x1" ; then
38191 COND_GCC_PCH_1=""
38192 fi
38193
6f628073
VS
38194 COND_MONOLITHIC_0="#"
38195 if test "x$MONOLITHIC" = "x0" ; then
38196 COND_MONOLITHIC_0=""
6b9d41a5
VS
38197 fi
38198
6f628073
VS
38199 COND_MONOLITHIC_0_SHARED_0="#"
38200 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38201 COND_MONOLITHIC_0_SHARED_0=""
38202 fi
38203
38204 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38205 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38206 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 38207 fi
e6cc62c6 38208
8772a1a7
VS
38209 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38210 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38211 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38212 fi
38213
250700e4
RD
38214 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38215 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38216 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38217 fi
38218
eb69fda5
VS
38219 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38220 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38221 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38222 fi
38223
8ee2dd05
VS
38224 COND_MONOLITHIC_0_SHARED_1="#"
38225 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38226 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 38227 fi
e6cc62c6 38228
6f628073
VS
38229 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38230 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38231 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38232 fi
38233
8772a1a7
VS
38234 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38235 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38236 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38237 fi
38238
250700e4
RD
38239 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38240 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38241 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38242 fi
38243
eb69fda5
VS
38244 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38245 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38246 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38247 fi
38248
3af038c0
VS
38249 COND_MONOLITHIC_1="#"
38250 if test "x$MONOLITHIC" = "x1" ; then
38251 COND_MONOLITHIC_1=""
38252 fi
38253
6f628073
VS
38254 COND_MONOLITHIC_1_SHARED_0="#"
38255 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38256 COND_MONOLITHIC_1_SHARED_0=""
38257 fi
38258
38259 COND_MONOLITHIC_1_SHARED_1="#"
38260 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38261 COND_MONOLITHIC_1_SHARED_1=""
38262 fi
38263
3af038c0
VS
38264 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38265 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38266 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38267 fi
38268
38269 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38270 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38271 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38272 fi
38273
6f628073
VS
38274 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38275 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38276 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38277 fi
38278
3af038c0
VS
38279 COND_PLATFORM_MACOSX_1="#"
38280 if test "x$PLATFORM_MACOSX" = "x1" ; then
38281 COND_PLATFORM_MACOSX_1=""
38282 fi
38283
250700e4
RD
38284 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38285 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38286 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38287 fi
38288
38289 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38290 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38291 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38292 fi
38293
38294 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38295 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38296 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38297 fi
38298
3527f29c
VS
38299 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38300 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38301 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38302 fi
38303
8ee2dd05
VS
38304 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38305 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38306 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38307 fi
38308
45842500
VS
38309 COND_PLATFORM_MAC_1="#"
38310 if test "x$PLATFORM_MAC" = "x1" ; then
38311 COND_PLATFORM_MAC_1=""
38312 fi
38313
3d8c1de0
VS
38314 COND_PLATFORM_OS2_1="#"
38315 if test "x$PLATFORM_OS2" = "x1" ; then
38316 COND_PLATFORM_OS2_1=""
38317 fi
38318
8772a1a7
VS
38319 COND_PLATFORM_UNIX_0="#"
38320 if test "x$PLATFORM_UNIX" = "x0" ; then
38321 COND_PLATFORM_UNIX_0=""
38322 fi
38323
3af038c0
VS
38324 COND_PLATFORM_UNIX_1="#"
38325 if test "x$PLATFORM_UNIX" = "x1" ; then
38326 COND_PLATFORM_UNIX_1=""
38327 fi
38328
3527f29c
VS
38329 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38330 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38331 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38332 fi
38333
3af038c0
VS
38334 COND_PLATFORM_WIN32_0="#"
38335 if test "x$PLATFORM_WIN32" = "x0" ; then
38336 COND_PLATFORM_WIN32_0=""
38337 fi
38338
38339 COND_PLATFORM_WIN32_1="#"
38340 if test "x$PLATFORM_WIN32" = "x1" ; then
38341 COND_PLATFORM_WIN32_1=""
38342 fi
38343
45842500
VS
38344 COND_SHARED_0="#"
38345 if test "x$SHARED" = "x0" ; then
38346 COND_SHARED_0=""
38347 fi
38348
250700e4
RD
38349 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38350 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38351 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38352 fi
38353
52a5a009
VS
38354 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38355 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38356 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38357 fi
38358
38359 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38360 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38361 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38362 fi
38363
38364 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38365 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38366 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38367 fi
38368
38369 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38370 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38371 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38372 fi
38373
38374 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38375 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38376 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38377 fi
38378
38379 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38380 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38381 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38382 fi
38383
38384 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38385 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38386 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38387 fi
38388
45842500
VS
38389 COND_SHARED_1="#"
38390 if test "x$SHARED" = "x1" ; then
38391 COND_SHARED_1=""
38392 fi
38393
250700e4
RD
38394 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38395 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38396 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38397 fi
38398
6f628073
VS
38399 COND_TOOLKIT_COCOA="#"
38400 if test "x$TOOLKIT" = "xCOCOA" ; then
38401 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
38402 fi
38403
6f628073
VS
38404 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38405 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38406 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38407 fi
38408
6f628073
VS
38409 COND_TOOLKIT_GTK="#"
38410 if test "x$TOOLKIT" = "xGTK" ; then
38411 COND_TOOLKIT_GTK=""
f95cd8fa
VS
38412 fi
38413
6f628073
VS
38414 COND_TOOLKIT_GTK_USE_GUI_1="#"
38415 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38416 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
38417 fi
38418
6f628073
VS
38419 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38420 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38421 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38422 fi
38423
3af038c0
VS
38424 COND_TOOLKIT_MAC="#"
38425 if test "x$TOOLKIT" = "xMAC" ; then
38426 COND_TOOLKIT_MAC=""
38427 fi
38428
8772a1a7
VS
38429 COND_TOOLKIT_MAC_USE_GUI_1="#"
38430 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38431 COND_TOOLKIT_MAC_USE_GUI_1=""
38432 fi
38433
6f628073
VS
38434 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38435 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38436 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38437 fi
38438
6f628073
VS
38439 COND_TOOLKIT_MGL="#"
38440 if test "x$TOOLKIT" = "xMGL" ; then
38441 COND_TOOLKIT_MGL=""
8ee2dd05
VS
38442 fi
38443
6f628073
VS
38444 COND_TOOLKIT_MGL_USE_GUI_1="#"
38445 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38446 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
38447 fi
38448
6f628073
VS
38449 COND_TOOLKIT_MOTIF="#"
38450 if test "x$TOOLKIT" = "xMOTIF" ; then
38451 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
38452 fi
38453
6f628073
VS
38454 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38455 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38456 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 38457 fi
e6cc62c6 38458
6f628073
VS
38459 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38460 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38461 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38462 fi
38463
6f628073
VS
38464 COND_TOOLKIT_MSW="#"
38465 if test "x$TOOLKIT" = "xMSW" ; then
38466 COND_TOOLKIT_MSW=""
8ee2dd05
VS
38467 fi
38468
6f628073
VS
38469 COND_TOOLKIT_MSW_USE_GUI_1="#"
38470 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38471 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 38472 fi
e6cc62c6 38473
6f628073
VS
38474 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38475 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38476 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 38477 fi
e6cc62c6 38478
96c1699d
VS
38479 COND_TOOLKIT_PM="#"
38480 if test "x$TOOLKIT" = "xPM" ; then
38481 COND_TOOLKIT_PM=""
38482 fi
38483
38484 COND_TOOLKIT_PM_USE_GUI_1="#"
38485 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38486 COND_TOOLKIT_PM_USE_GUI_1=""
38487 fi
38488
38489 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38490 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38491 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38492 fi
38493
6f628073
VS
38494 COND_TOOLKIT_X11="#"
38495 if test "x$TOOLKIT" = "xX11" ; then
38496 COND_TOOLKIT_X11=""
9747f85d
VS
38497 fi
38498
6f628073
VS
38499 COND_TOOLKIT_X11_USE_GUI_1="#"
38500 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38501 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
38502 fi
38503
3af038c0
VS
38504 COND_UNICODE_1="#"
38505 if test "x$UNICODE" = "x1" ; then
38506 COND_UNICODE_1=""
38507 fi
38508
7015ef3a
VZ
38509 COND_USE_EXCEPTIONS_0="#"
38510 if test "x$USE_EXCEPTIONS" = "x0" ; then
38511 COND_USE_EXCEPTIONS_0=""
38512 fi
38513
38514 COND_USE_EXCEPTIONS_1="#"
38515 if test "x$USE_EXCEPTIONS" = "x1" ; then
38516 COND_USE_EXCEPTIONS_1=""
38517 fi
38518
3af038c0
VS
38519 COND_USE_GUI_0="#"
38520 if test "x$USE_GUI" = "x0" ; then
38521 COND_USE_GUI_0=""
38522 fi
38523
38524 COND_USE_GUI_1="#"
38525 if test "x$USE_GUI" = "x1" ; then
38526 COND_USE_GUI_1=""
38527 fi
38528
e6cc62c6 38529 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
38530 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38531 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 38532 fi
e6cc62c6
VS
38533
38534 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
38535 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38536 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
38537 fi
38538
66a96744
VS
38539 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38540 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38541 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38542 fi
38543
38544 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38545 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38546 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38547 fi
38548
38549 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38550 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38551 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38552 fi
38553
57e7d4ac
VS
38554 COND_USE_ODBC_1="#"
38555 if test "x$USE_ODBC" = "x1" ; then
38556 COND_USE_ODBC_1=""
38557 fi
38558
6f628073
VS
38559 COND_USE_SOSYMLINKS_1="#"
38560 if test "x$USE_SOSYMLINKS" = "x1" ; then
38561 COND_USE_SOSYMLINKS_1=""
b625909c
VS
38562 fi
38563
6f628073
VS
38564 COND_USE_SOVERLINUX_1="#"
38565 if test "x$USE_SOVERLINUX" = "x1" ; then
38566 COND_USE_SOVERLINUX_1=""
b625909c
VS
38567 fi
38568
6f628073
VS
38569 COND_USE_SOVERSION_0="#"
38570 if test "x$USE_SOVERSION" = "x0" ; then
38571 COND_USE_SOVERSION_0=""
fddeb06b 38572 fi
fe0895cf 38573
6f628073
VS
38574 COND_USE_SOVERSOLARIS_1="#"
38575 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38576 COND_USE_SOVERSOLARIS_1=""
fddeb06b 38577 fi
fe0895cf 38578
3af038c0
VS
38579 COND_WXUNIV_1="#"
38580 if test "x$WXUNIV" = "x1" ; then
38581 COND_WXUNIV_1=""
38582 fi
38583
66a96744
VS
38584 COND_WXUSE_EXPAT_BUILTIN="#"
38585 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38586 COND_WXUSE_EXPAT_BUILTIN=""
38587 fi
38588
02980527
VS
38589 COND_WXUSE_LIBJPEG_BUILTIN="#"
38590 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38591 COND_WXUSE_LIBJPEG_BUILTIN=""
38592 fi
38593
38594 COND_WXUSE_LIBPNG_BUILTIN="#"
38595 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38596 COND_WXUSE_LIBPNG_BUILTIN=""
38597 fi
38598
38599 COND_WXUSE_LIBTIFF_BUILTIN="#"
38600 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38601 COND_WXUSE_LIBTIFF_BUILTIN=""
38602 fi
38603
38604 COND_WXUSE_ODBC_BUILTIN="#"
38605 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38606 COND_WXUSE_ODBC_BUILTIN=""
38607 fi
38608
38609 COND_WXUSE_REGEX_BUILTIN="#"
38610 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38611 COND_WXUSE_REGEX_BUILTIN=""
38612 fi
38613
38614 COND_WXUSE_ZLIB_BUILTIN="#"
38615 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38616 COND_WXUSE_ZLIB_BUILTIN=""
38617 fi
38618
1772d20c 38619
fe0895cf 38620
fe0895cf 38621
fe0895cf 38622
45842500 38623if test $GCC_PCH = 1 ; then
130711ba 38624 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
38625 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38626else
38627 case "${host}" in
38628 powerpc-*-darwin* )
130711ba
VS
38629 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38630 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 38631 ;;
45842500
VS
38632 esac
38633fi
fe0895cf
VS
38634
38635
fddeb06b 38636SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715
38716
38717
38718
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
fe0895cf 38731
f0290fca
VS
38732
38733
67c13b6c 38734
e6cc62c6
VS
38735
38736
38737echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38738echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
eea650d8 38739set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
38740if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38741 echo $ECHO_N "(cached) $ECHO_C" >&6
38742else
38743 cat >conftest.make <<\_ACEOF
38744all:
38745 @echo 'ac_maketemp="$(MAKE)"'
38746_ACEOF
38747# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38748eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38749if test -n "$ac_maketemp"; then
38750 eval ac_cv_prog_make_${ac_make}_set=yes
38751else
38752 eval ac_cv_prog_make_${ac_make}_set=no
38753fi
38754rm -f conftest.make
38755fi
38756if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38757 echo "$as_me:$LINENO: result: yes" >&5
38758echo "${ECHO_T}yes" >&6
38759 SET_MAKE=
38760else
38761 echo "$as_me:$LINENO: result: no" >&5
38762echo "${ECHO_T}no" >&6
38763 SET_MAKE="MAKE=${MAKE-make}"
38764fi
38765
38766
38767if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
38768 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
38769fi
38770
38771 ac_config_headers="$ac_config_headers setup.h"
38772
38773
81345eef 38774 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
38775
38776
38777 ac_config_commands="$ac_config_commands default"
38778
38779
9de9b8f0 38780
6c3e36af
VZ
38781if test "$wxUSE_GUI" = "yes"; then
38782 SUBDIRS="samples demos utils contrib"
38783else SUBDIRS="samples utils"
38784fi
e6cc62c6 38785
166263e6 38786for subdir in `echo $SUBDIRS`; do
9747f85d 38787 if test -d ${srcdir}/${subdir} ; then
6c3e36af 38788 if test "$wxUSE_GUI" = "yes"; then
166263e6 38789 if test ${subdir} = "samples"; then
8772a1a7
VS
38790 makefiles="samples/Makefile.in $makefiles"
38791 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
38792 if test -d $srcdir/samples/$sample; then
38793 makefiles="samples/$sample/Makefile.in $makefiles"
38794 fi
38795 done
38796 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38797 fi
6c3e36af 38798 else if test ${subdir} = "samples"; then
8772a1a7 38799 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 38800 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
38801 utils/HelpGen/src/Makefile.in \
38802 utils/tex2rtf/Makefile.in \
38803 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
38804 fi
38805 fi
38806
9747f85d
VS
38807 for mkin in $makefiles ; do
38808 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
38809 ac_config_files="$ac_config_files $mk"
e6cc62c6 38810
9747f85d
VS
38811 done
38812 fi
38813done
e6cc62c6 38814
9de9b8f0 38815
e6cc62c6
VS
38816cat >confcache <<\_ACEOF
38817# This file is a shell script that caches the results of configure
38818# tests run on this system so they can be shared between configure
38819# scripts and configure runs, see configure's option --config-cache.
38820# It is not useful on other systems. If it contains results you don't
38821# want to keep, you may remove or edit it.
38822#
38823# config.status only pays attention to the cache file if you give it
38824# the --recheck option to rerun configure.
38825#
38826# `ac_cv_env_foo' variables (set or unset) will be overridden when
38827# loading this file, other *unset* `ac_cv_foo' will be assigned the
38828# following values.
38829
38830_ACEOF
38831
38832# The following way of writing the cache mishandles newlines in values,
38833# but we know of no workaround that is simple, portable, and efficient.
38834# So, don't put newlines in cache variables' values.
38835# Ultrix sh set writes to stderr and can't be redirected directly,
38836# and sets the high bit in the cache file unless we assign to the vars.
38837{
38838 (set) 2>&1 |
38839 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38840 *ac_space=\ *)
38841 # `set' does not quote correctly, so add quotes (double-quote
38842 # substitution turns \\\\ into \\, and sed turns \\ into \).
38843 sed -n \
eea650d8
VS
38844 "s/'/'\\\\''/g;
38845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
38846 ;;
38847 *)
38848 # `set' quotes correctly as required by POSIX, so do not add quotes.
38849 sed -n \
eea650d8 38850 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
38851 ;;
38852 esac;
38853} |
38854 sed '
38855 t clear
38856 : clear
38857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38858 t end
38859 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38860 : end' >>confcache
38861if diff $cache_file confcache >/dev/null 2>&1; then :; else
38862 if test -w $cache_file; then
38863 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38864 cat confcache >$cache_file
38865 else
38866 echo "not updating unwritable cache $cache_file"
38867 fi
38868fi
38869rm -f confcache
38870
38871test "x$prefix" = xNONE && prefix=$ac_default_prefix
38872# Let make expand exec_prefix.
38873test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38874
38875# VPATH may cause trouble with some makes, so we remove $(srcdir),
38876# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38877# trailing colons and then remove the whole line if VPATH becomes empty
38878# (actually we leave an empty line to preserve line numbers).
38879if test "x$srcdir" = x.; then
eea650d8 38880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
38881s/:*\$(srcdir):*/:/;
38882s/:*\${srcdir}:*/:/;
38883s/:*@srcdir@:*/:/;
eea650d8 38884s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 38885s/:*$//;
eea650d8 38886s/^[^=]*=[ ]*$//;
e6cc62c6
VS
38887}'
38888fi
38889
38890DEFS=-DHAVE_CONFIG_H
38891
38892ac_libobjs=
38893ac_ltlibobjs=
38894for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38895 # 1. Remove the extension, and $U if already installed.
38896 ac_i=`echo "$ac_i" |
eea650d8 38897 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
38898 # 2. Add them.
38899 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38900 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38901done
38902LIBOBJS=$ac_libobjs
38903
38904LTLIBOBJS=$ac_ltlibobjs
38905
38906
38907
38908: ${CONFIG_STATUS=./config.status}
38909ac_clean_files_save=$ac_clean_files
38910ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38911{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38912echo "$as_me: creating $CONFIG_STATUS" >&6;}
38913cat >$CONFIG_STATUS <<_ACEOF
38914#! $SHELL
38915# Generated by $as_me.
38916# Run this file to recreate the current configuration.
38917# Compiler output produced by configure, useful for debugging
38918# configure, is in config.log if it exists.
38919
38920debug=false
38921ac_cs_recheck=false
38922ac_cs_silent=false
38923SHELL=\${CONFIG_SHELL-$SHELL}
38924_ACEOF
38925
38926cat >>$CONFIG_STATUS <<\_ACEOF
38927## --------------------- ##
38928## M4sh Initialization. ##
38929## --------------------- ##
38930
38931# Be Bourne compatible
38932if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38933 emulate sh
38934 NULLCMD=:
38935 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38936 # is contrary to our usage. Disable this feature.
38937 alias -g '${1+"$@"}'='"$@"'
38938elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38939 set -o posix
38940fi
eea650d8 38941DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
38942
38943# Support unset when possible.
eea650d8 38944if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
38945 as_unset=unset
38946else
38947 as_unset=false
38948fi
38949
38950
38951# Work around bugs in pre-3.0 UWIN ksh.
38952$as_unset ENV MAIL MAILPATH
38953PS1='$ '
38954PS2='> '
38955PS4='+ '
38956
38957# NLS nuisances.
38958for as_var in \
38959 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38960 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38961 LC_TELEPHONE LC_TIME
38962do
eea650d8 38963 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
38964 eval $as_var=C; export $as_var
38965 else
38966 $as_unset $as_var
38967 fi
38968done
38969
38970# Required to use basename.
38971if expr a : '\(a\)' >/dev/null 2>&1; then
38972 as_expr=expr
38973else
38974 as_expr=false
38975fi
38976
38977if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38978 as_basename=basename
38979else
38980 as_basename=false
38981fi
38982
38983
38984# Name of the executable.
38985as_me=`$as_basename "$0" ||
38986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38987 X"$0" : 'X\(//\)$' \| \
38988 X"$0" : 'X\(/\)$' \| \
38989 . : '\(.\)' 2>/dev/null ||
38990echo X/"$0" |
38991 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38992 /^X\/\(\/\/\)$/{ s//\1/; q; }
38993 /^X\/\(\/\).*/{ s//\1/; q; }
38994 s/.*/./; q'`
38995
38996
38997# PATH needs CR, and LINENO needs CR and PATH.
38998# Avoid depending upon Character Ranges.
38999as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39000as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39001as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39002as_cr_digits='0123456789'
39003as_cr_alnum=$as_cr_Letters$as_cr_digits
39004
39005# The user is always right.
39006if test "${PATH_SEPARATOR+set}" != set; then
39007 echo "#! /bin/sh" >conf$$.sh
39008 echo "exit 0" >>conf$$.sh
39009 chmod +x conf$$.sh
39010 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39011 PATH_SEPARATOR=';'
39012 else
39013 PATH_SEPARATOR=:
39014 fi
39015 rm -f conf$$.sh
39016fi
39017
39018
39019 as_lineno_1=$LINENO
39020 as_lineno_2=$LINENO
39021 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39022 test "x$as_lineno_1" != "x$as_lineno_2" &&
39023 test "x$as_lineno_3" = "x$as_lineno_2" || {
39024 # Find who we are. Look in the path if we contain no path at all
39025 # relative or not.
39026 case $0 in
39027 *[\\/]* ) as_myself=$0 ;;
39028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39029for as_dir in $PATH
39030do
39031 IFS=$as_save_IFS
39032 test -z "$as_dir" && as_dir=.
39033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39034done
39035
39036 ;;
39037 esac
39038 # We did not find ourselves, most probably we were run as `sh COMMAND'
39039 # in which case we are not to be found in the path.
39040 if test "x$as_myself" = x; then
39041 as_myself=$0
39042 fi
39043 if test ! -f "$as_myself"; then
39044 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39045echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39046 { (exit 1); exit 1; }; }
39047 fi
39048 case $CONFIG_SHELL in
39049 '')
39050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39051for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39052do
39053 IFS=$as_save_IFS
39054 test -z "$as_dir" && as_dir=.
39055 for as_base in sh bash ksh sh5; do
39056 case $as_dir in
39057 /*)
39058 if ("$as_dir/$as_base" -c '
39059 as_lineno_1=$LINENO
39060 as_lineno_2=$LINENO
39061 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39062 test "x$as_lineno_1" != "x$as_lineno_2" &&
39063 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39064 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39065 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39066 CONFIG_SHELL=$as_dir/$as_base
39067 export CONFIG_SHELL
39068 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39069 fi;;
39070 esac
39071 done
39072done
39073;;
39074 esac
39075
39076 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39077 # uniformly replaced by the line number. The first 'sed' inserts a
39078 # line-number line before each line; the second 'sed' does the real
39079 # work. The second script uses 'N' to pair each line-number line
39080 # with the numbered line, and appends trailing '-' during
39081 # substitution so that $LINENO is not a special case at line end.
39082 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39083 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39084 sed '=' <$as_myself |
39085 sed '
39086 N
39087 s,$,-,
39088 : loop
39089 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39090 t loop
39091 s,-$,,
39092 s,^['$as_cr_digits']*\n,,
39093 ' >$as_me.lineno &&
39094 chmod +x $as_me.lineno ||
39095 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39096echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39097 { (exit 1); exit 1; }; }
39098
39099 # Don't try to exec as it changes $[0], causing all sort of problems
39100 # (the dirname of $[0] is not the place where we might find the
39101 # original and so on. Autoconf is especially sensible to this).
39102 . ./$as_me.lineno
39103 # Exit status is that of the last command.
39104 exit
39105}
39106
39107
39108case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39109 *c*,-n*) ECHO_N= ECHO_C='
39110' ECHO_T=' ' ;;
39111 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39112 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39113esac
39114
39115if expr a : '\(a\)' >/dev/null 2>&1; then
39116 as_expr=expr
39117else
39118 as_expr=false
39119fi
39120
39121rm -f conf$$ conf$$.exe conf$$.file
39122echo >conf$$.file
39123if ln -s conf$$.file conf$$ 2>/dev/null; then
39124 # We could just check for DJGPP; but this test a) works b) is more generic
39125 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39126 if test -f conf$$.exe; then
39127 # Don't use ln at all; we don't have any links
39128 as_ln_s='cp -p'
39129 else
39130 as_ln_s='ln -s'
39131 fi
39132elif ln conf$$.file conf$$ 2>/dev/null; then
39133 as_ln_s=ln
39134else
39135 as_ln_s='cp -p'
39136fi
39137rm -f conf$$ conf$$.exe conf$$.file
39138
39139if mkdir -p . 2>/dev/null; then
39140 as_mkdir_p=:
39141else
eea650d8 39142 test -d ./-p && rmdir ./-p
e6cc62c6
VS
39143 as_mkdir_p=false
39144fi
39145
39146as_executable_p="test -f"
39147
39148# Sed expression to map a string onto a valid CPP name.
eea650d8 39149as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39150
39151# Sed expression to map a string onto a valid variable name.
eea650d8 39152as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39153
39154
39155# IFS
39156# We need space, tab and new line, in precisely that order.
39157as_nl='
39158'
39159IFS=" $as_nl"
39160
39161# CDPATH.
39162$as_unset CDPATH
39163
39164exec 6>&1
39165
39166# Open the log real soon, to keep \$[0] and so on meaningful, and to
39167# report actual input values of CONFIG_FILES etc. instead of their
39168# values after options handling. Logging --version etc. is OK.
39169exec 5>>config.log
39170{
39171 echo
39172 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39173## Running $as_me. ##
39174_ASBOX
39175} >&5
39176cat >&5 <<_CSEOF
39177
e46d2a18 39178This file was extended by wxWindows $as_me 2.5.1, which was
eea650d8 39179generated by GNU Autoconf 2.58. Invocation command line was
e6cc62c6
VS
39180
39181 CONFIG_FILES = $CONFIG_FILES
39182 CONFIG_HEADERS = $CONFIG_HEADERS
39183 CONFIG_LINKS = $CONFIG_LINKS
39184 CONFIG_COMMANDS = $CONFIG_COMMANDS
39185 $ $0 $@
39186
39187_CSEOF
39188echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39189echo >&5
39190_ACEOF
39191
39192# Files that config.status was made for.
39193if test -n "$ac_config_files"; then
39194 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39195fi
39196
39197if test -n "$ac_config_headers"; then
39198 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39199fi
39200
39201if test -n "$ac_config_links"; then
39202 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39203fi
39204
39205if test -n "$ac_config_commands"; then
39206 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39207fi
39208
39209cat >>$CONFIG_STATUS <<\_ACEOF
39210
39211ac_cs_usage="\
39212\`$as_me' instantiates files from templates according to the
39213current configuration.
39214
39215Usage: $0 [OPTIONS] [FILE]...
39216
39217 -h, --help print this help, then exit
39218 -V, --version print version number, then exit
39219 -q, --quiet do not print progress messages
39220 -d, --debug don't remove temporary files
39221 --recheck update $as_me by reconfiguring in the same conditions
39222 --file=FILE[:TEMPLATE]
eea650d8 39223 instantiate the configuration file FILE
e6cc62c6 39224 --header=FILE[:TEMPLATE]
eea650d8 39225 instantiate the configuration header FILE
e6cc62c6
VS
39226
39227Configuration files:
39228$config_files
39229
39230Configuration headers:
39231$config_headers
39232
39233Configuration commands:
39234$config_commands
39235
39236Report bugs to <bug-autoconf@gnu.org>."
39237_ACEOF
39238
39239cat >>$CONFIG_STATUS <<_ACEOF
39240ac_cs_version="\\
e46d2a18 39241wxWindows config.status 2.5.1
eea650d8 39242configured by $0, generated by GNU Autoconf 2.58,
e6cc62c6
VS
39243 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39244
eea650d8 39245Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
39246This config.status script is free software; the Free Software Foundation
39247gives unlimited permission to copy, distribute and modify it."
39248srcdir=$srcdir
39249INSTALL="$INSTALL"
39250_ACEOF
39251
39252cat >>$CONFIG_STATUS <<\_ACEOF
39253# If no file are specified by the user, then we need to provide default
39254# value. By we need to know if files were specified by the user.
39255ac_need_defaults=:
39256while test $# != 0
39257do
39258 case $1 in
39259 --*=*)
39260 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39261 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39262 ac_shift=:
39263 ;;
39264 -*)
39265 ac_option=$1
39266 ac_optarg=$2
39267 ac_shift=shift
39268 ;;
39269 *) # This is not an option, so the user has probably given explicit
39270 # arguments.
39271 ac_option=$1
39272 ac_need_defaults=false;;
39273 esac
39274
39275 case $ac_option in
39276 # Handling of the options.
39277_ACEOF
39278cat >>$CONFIG_STATUS <<\_ACEOF
39279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39280 ac_cs_recheck=: ;;
39281 --version | --vers* | -V )
39282 echo "$ac_cs_version"; exit 0 ;;
39283 --he | --h)
39284 # Conflict between --help and --header
39285 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39286Try \`$0 --help' for more information." >&5
39287echo "$as_me: error: ambiguous option: $1
39288Try \`$0 --help' for more information." >&2;}
39289 { (exit 1); exit 1; }; };;
39290 --help | --hel | -h )
39291 echo "$ac_cs_usage"; exit 0 ;;
39292 --debug | --d* | -d )
39293 debug=: ;;
39294 --file | --fil | --fi | --f )
39295 $ac_shift
39296 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39297 ac_need_defaults=false;;
39298 --header | --heade | --head | --hea )
39299 $ac_shift
39300 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39301 ac_need_defaults=false;;
39302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39304 ac_cs_silent=: ;;
39305
39306 # This is an error.
39307 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39308Try \`$0 --help' for more information." >&5
39309echo "$as_me: error: unrecognized option: $1
39310Try \`$0 --help' for more information." >&2;}
39311 { (exit 1); exit 1; }; } ;;
39312
39313 *) ac_config_targets="$ac_config_targets $1" ;;
39314
39315 esac
39316 shift
39317done
39318
39319ac_configure_extra_args=
39320
39321if $ac_cs_silent; then
39322 exec 6>/dev/null
39323 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
39324fi
39325
e6cc62c6
VS
39326_ACEOF
39327cat >>$CONFIG_STATUS <<_ACEOF
39328if \$ac_cs_recheck; then
39329 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39330 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
39331fi
39332
e6cc62c6 39333_ACEOF
fe0895cf 39334
e6cc62c6 39335cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 39336#
e6cc62c6 39337# INIT-COMMANDS section.
10f2d63a 39338#
10f2d63a 39339
a0b9e27f 39340
e6cc62c6
VS
39341 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39342 LN_S="${LN_S}"
10f2d63a 39343
10f2d63a 39344
10f2d63a 39345
e6cc62c6 39346_ACEOF
8284b0c5 39347
52127426 39348
247f5006 39349
e6cc62c6
VS
39350cat >>$CONFIG_STATUS <<\_ACEOF
39351for ac_config_target in $ac_config_targets
247f5006 39352do
e6cc62c6
VS
39353 case "$ac_config_target" in
39354 # Handling of arguments.
81345eef
VZ
39355 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39356 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39357 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 39358 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
39359 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39360 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39361 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39362echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39363 { (exit 1); exit 1; }; };;
247f5006
VZ
39364 esac
39365done
39366
e6cc62c6
VS
39367# If the user did not use the arguments to specify the items to instantiate,
39368# then the envvar interface is used. Set only those that are not.
39369# We use the long form for the default assignment because of an extremely
39370# bizarre bug on SunOS 4.1.3.
39371if $ac_need_defaults; then
39372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39374 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39375fi
39376
39377# Have a temporary directory for convenience. Make it in the build tree
39378# simply because there is no reason to put it here, and in addition,
39379# creating and moving files from /tmp can sometimes cause problems.
39380# Create a temporary directory, and hook for its removal unless debugging.
39381$debug ||
39382{
39383 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39384 trap '{ (exit 1); exit 1; }' 1 2 13 15
39385}
247f5006 39386
e6cc62c6 39387# Create a (secure) tmp directory for tmp files.
247f5006 39388
e6cc62c6
VS
39389{
39390 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39391 test -n "$tmp" && test -d "$tmp"
39392} ||
39393{
39394 tmp=./confstat$$-$RANDOM
39395 (umask 077 && mkdir $tmp)
39396} ||
39397{
39398 echo "$me: cannot create a temporary directory in ." >&2
39399 { (exit 1); exit 1; }
39400}
39401
39402_ACEOF
39403
39404cat >>$CONFIG_STATUS <<_ACEOF
39405
39406#
39407# CONFIG_FILES section.
39408#
247f5006 39409
e6cc62c6
VS
39410# No need to generate the scripts if there are no CONFIG_FILES.
39411# This happens for instance when ./config.status config.h
39412if test -n "\$CONFIG_FILES"; then
39413 # Protect against being on the right side of a sed subst in config.status.
39414 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39415 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39416s,@SHELL@,$SHELL,;t t
39417s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39418s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39419s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39420s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39421s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39422s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39423s,@exec_prefix@,$exec_prefix,;t t
39424s,@prefix@,$prefix,;t t
39425s,@program_transform_name@,$program_transform_name,;t t
39426s,@bindir@,$bindir,;t t
39427s,@sbindir@,$sbindir,;t t
39428s,@libexecdir@,$libexecdir,;t t
39429s,@datadir@,$datadir,;t t
39430s,@sysconfdir@,$sysconfdir,;t t
39431s,@sharedstatedir@,$sharedstatedir,;t t
39432s,@localstatedir@,$localstatedir,;t t
39433s,@libdir@,$libdir,;t t
39434s,@includedir@,$includedir,;t t
39435s,@oldincludedir@,$oldincludedir,;t t
39436s,@infodir@,$infodir,;t t
39437s,@mandir@,$mandir,;t t
39438s,@build_alias@,$build_alias,;t t
39439s,@host_alias@,$host_alias,;t t
39440s,@target_alias@,$target_alias,;t t
39441s,@DEFS@,$DEFS,;t t
39442s,@ECHO_C@,$ECHO_C,;t t
39443s,@ECHO_N@,$ECHO_N,;t t
39444s,@ECHO_T@,$ECHO_T,;t t
39445s,@LIBS@,$LIBS,;t t
39446s,@build@,$build,;t t
39447s,@build_cpu@,$build_cpu,;t t
39448s,@build_vendor@,$build_vendor,;t t
39449s,@build_os@,$build_os,;t t
39450s,@host@,$host,;t t
39451s,@host_cpu@,$host_cpu,;t t
39452s,@host_vendor@,$host_vendor,;t t
39453s,@host_os@,$host_os,;t t
39454s,@target@,$target,;t t
39455s,@target_cpu@,$target_cpu,;t t
39456s,@target_vendor@,$target_vendor,;t t
39457s,@target_os@,$target_os,;t t
39458s,@CC@,$CC,;t t
39459s,@CFLAGS@,$CFLAGS,;t t
39460s,@LDFLAGS@,$LDFLAGS,;t t
39461s,@CPPFLAGS@,$CPPFLAGS,;t t
39462s,@ac_ct_CC@,$ac_ct_CC,;t t
39463s,@EXEEXT@,$EXEEXT,;t t
39464s,@OBJEXT@,$OBJEXT,;t t
39465s,@CPP@,$CPP,;t t
39466s,@EGREP@,$EGREP,;t t
39467s,@CXX@,$CXX,;t t
39468s,@CXXFLAGS@,$CXXFLAGS,;t t
39469s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39470s,@RANLIB@,$RANLIB,;t t
39471s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39472s,@AR@,$AR,;t t
39473s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39474s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39475s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39476s,@STRIP@,$STRIP,;t t
39477s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
39478s,@LN_S@,$LN_S,;t t
39479s,@CXXCPP@,$CXXCPP,;t t
672abd7a 39480s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
39481s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39482s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39483s,@GTK_LIBS@,$GTK_LIBS,;t t
39484s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39485s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39486s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39487s,@X_CFLAGS@,$X_CFLAGS,;t t
39488s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39489s,@X_LIBS@,$X_LIBS,;t t
39490s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39491s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39492s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39493s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39494s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
39495s,@RESCOMP@,$RESCOMP,;t t
39496s,@DEREZ@,$DEREZ,;t t
39497s,@SETFILE@,$SETFILE,;t t
39498s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
39499s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39500s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39501s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
39502s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39503s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 39504s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
39505s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39506s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39507s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39508s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
39509s,@VENDOR@,$VENDOR,;t t
39510s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
39511s,@WXUNIV@,$WXUNIV,;t t
39512s,@MONOLITHIC@,$MONOLITHIC,;t t
39513s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 39514s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 39515s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 39516s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 39517s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 39518s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
39519s,@UNICODE@,$UNICODE,;t t
39520s,@BUILD@,$BUILD,;t t
6c67131a
VS
39521s,@DEBUG_INFO@,$DEBUG_INFO,;t t
39522s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
39523s,@SHARED@,$SHARED,;t t
39524s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
39525s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
39526s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 39527s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 39528s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
39529s,@SET_MAKE@,$SET_MAKE,;t t
39530s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
39531s,@ac_ct_AR@,$ac_ct_AR,;t t
39532s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39533s,@NM@,$NM,;t t
39534s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 39535s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 39536s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
39537s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
39538s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
39539s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
39540s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
39541s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 39542s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 39543s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 39544s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 39545s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 39546s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 39547s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 39548s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
39549s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
39550s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
39551s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
39552s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
39553s,@PIC_FLAG@,$PIC_FLAG,;t t
39554s,@USE_SOVERSION@,$USE_SOVERSION,;t t
39555s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
39556s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
39557s,@USE_MACVERSION@,$USE_MACVERSION,;t t
39558s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
39559s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 39560s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 39561s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 39562s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
39563s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
39564s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 39565s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
39566s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
39567s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
39568s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
39569s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 39570s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 39571s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 39572s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 39573s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
39574s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
39575s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 39576s,@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 39577s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 39578s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 39579s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 39580s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 39581s,@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 39582s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 39583s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 39584s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
39585s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
39586s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
39587s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
39588s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 39589s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 39590s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
39591s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
39592s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
39593s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 39594s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 39595s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 39596s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 39597s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 39598s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 39599s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 39600s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
3af038c0
VS
39601s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
39602s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 39603s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 39604s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
39605s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39606s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39607s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39608s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
39609s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
39610s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
39611s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 39612s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 39613s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
39614s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
39615s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
39616s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
39617s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 39618s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 39619s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 39620s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
39621s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
39622s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
39623s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
39624s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
39625s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
39626s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 39627s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
39628s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
39629s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
39630s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
39631s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
39632s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
39633s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
39634s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 39635s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
39636s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
39637s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
39638s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
39639s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
39640s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
39641s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
39642s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39643s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39644s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 39645s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
6f628073
VS
39646s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
39647s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
39648s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
39649s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 39650s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 39651s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
39652s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
39653s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
39654s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
39655s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
39656s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
39657s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
39658s,@PATH_IFS@,$PATH_IFS,;t t
39659s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
39660s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
39661s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
39662s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
39663s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
39664s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
39665s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
39666s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
39667s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
39668s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
39669s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
39670s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
39671s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
39672s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
39673s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
39674s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
39675s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
39676s,@WX_ALL@,$WX_ALL,;t t
39677s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
39678s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
39679s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
39680s,@STATIC_FLAG@,$STATIC_FLAG,;t t
39681s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
39682s,@USE_GUI@,$USE_GUI,;t t
39683s,@AFMINSTALL@,$AFMINSTALL,;t t
39684s,@WIN32INSTALL@,$WIN32INSTALL,;t t
39685s,@TOOLKIT@,$TOOLKIT,;t t
39686s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
39687s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
39688s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
39689s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
39690s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
39691s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
39692s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 39693s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
39694s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
39695s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
39696s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
39697s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
39698s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
39699s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 39700s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 39701s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
39702s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
39703s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
39704s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
39705s,@ALL_HEADERS@,$ALL_HEADERS,;t t
39706s,@ALL_SOURCES@,$ALL_SOURCES,;t t
39707s,@GUIDIST@,$GUIDIST,;t t
39708s,@PORT_FILES@,$PORT_FILES,;t t
39709s,@DISTDIR@,$DISTDIR,;t t
39710s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
39711s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
39712s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
39713s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
39714s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
39715s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
39716s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
39717s,@RESFLAGS@,$RESFLAGS,;t t
39718s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
39719s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
39720s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
39721s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
39722s,@LIBWXMACRES@,$LIBWXMACRES,;t t
39723s,@MACRESCOMP@,$MACRESCOMP,;t t
39724s,@MACSETFILE@,$MACSETFILE,;t t
39725s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
39726s,@GCC@,$GCC,;t t
39727s,@DLLTOOL@,$DLLTOOL,;t t
39728s,@AS@,$AS,;t t
e6cc62c6
VS
39729s,@LD@,$LD,;t t
39730s,@MAKEINFO@,$MAKEINFO,;t t
39731s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
39732s,@LIBOBJS@,$LIBOBJS,;t t
39733s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
39734CEOF
39735
e6cc62c6
VS
39736_ACEOF
39737
39738 cat >>$CONFIG_STATUS <<\_ACEOF
39739 # Split the substitutions into bite-sized pieces for seds with
39740 # small command number limits, like on Digital OSF/1 and HP-UX.
39741 ac_max_sed_lines=48
39742 ac_sed_frag=1 # Number of current file.
39743 ac_beg=1 # First line for current file.
39744 ac_end=$ac_max_sed_lines # Line after last line for current file.
39745 ac_more_lines=:
39746 ac_sed_cmds=
39747 while $ac_more_lines; do
39748 if test $ac_beg -gt 1; then
39749 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 39750 else
e6cc62c6
VS
39751 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39752 fi
39753 if test ! -s $tmp/subs.frag; then
39754 ac_more_lines=false
39755 else
39756 # The purpose of the label and of the branching condition is to
39757 # speed up the sed processing (if there are no `@' at all, there
39758 # is no need to browse any of the substitutions).
39759 # These are the two extra sed commands mentioned above.
39760 (echo ':t
39761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39762 if test -z "$ac_sed_cmds"; then
eea650d8 39763 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 39764 else
eea650d8 39765 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
39766 fi
39767 ac_sed_frag=`expr $ac_sed_frag + 1`
39768 ac_beg=$ac_end
39769 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 39770 fi
e6cc62c6
VS
39771 done
39772 if test -z "$ac_sed_cmds"; then
39773 ac_sed_cmds=cat
10f2d63a 39774 fi
e6cc62c6 39775fi # test -n "$CONFIG_FILES"
10f2d63a 39776
e6cc62c6
VS
39777_ACEOF
39778cat >>$CONFIG_STATUS <<\_ACEOF
39779for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 39780 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39781 case $ac_file in
39782 - | *:- | *:-:* ) # input from stdin
eea650d8
VS
39783 cat >$tmp/stdin
39784 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39786 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
eea650d8 39787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39788 * ) ac_file_in=$ac_file.in ;;
10f2d63a 39789 esac
247f5006 39790
e6cc62c6
VS
39791 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39792 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39793$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
39794 X"$ac_file" : 'X\(//\)[^/]' \| \
39795 X"$ac_file" : 'X\(//\)$' \| \
39796 X"$ac_file" : 'X\(/\)' \| \
39797 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39798echo X"$ac_file" |
39799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39801 /^X\(\/\/\)$/{ s//\1/; q; }
39802 /^X\(\/\).*/{ s//\1/; q; }
39803 s/.*/./; q'`
39804 { if $as_mkdir_p; then
39805 mkdir -p "$ac_dir"
a0b9e27f 39806 else
e6cc62c6
VS
39807 as_dir="$ac_dir"
39808 as_dirs=
39809 while test ! -d "$as_dir"; do
39810 as_dirs="$as_dir $as_dirs"
39811 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
39813 X"$as_dir" : 'X\(//\)[^/]' \| \
39814 X"$as_dir" : 'X\(//\)$' \| \
39815 X"$as_dir" : 'X\(/\)' \| \
39816 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39817echo X"$as_dir" |
39818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39820 /^X\(\/\/\)$/{ s//\1/; q; }
39821 /^X\(\/\).*/{ s//\1/; q; }
39822 s/.*/./; q'`
39823 done
39824 test ! -n "$as_dirs" || mkdir $as_dirs
39825 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39826echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39827 { (exit 1); exit 1; }; }; }
39828
39829 ac_builddir=.
39830
39831if test "$ac_dir" != .; then
39832 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39833 # A "../" for each directory in $ac_dir_suffix.
39834 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39835else
39836 ac_dir_suffix= ac_top_builddir=
39837fi
247f5006 39838
e6cc62c6
VS
39839case $srcdir in
39840 .) # No --srcdir option. We are building in place.
39841 ac_srcdir=.
39842 if test -z "$ac_top_builddir"; then
39843 ac_top_srcdir=.
39844 else
39845 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39846 fi ;;
39847 [\\/]* | ?:[\\/]* ) # Absolute path.
39848 ac_srcdir=$srcdir$ac_dir_suffix;
39849 ac_top_srcdir=$srcdir ;;
247f5006 39850 *) # Relative path.
e6cc62c6
VS
39851 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39852 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39853esac
eea650d8
VS
39854case "$ac_dir" in
39855.) ac_abs_builddir=$ac_builddir;;
39856*)
39857 case $ac_builddir in
39858 .) ac_abs_builddir="$ac_dir";;
39859 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
39860 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
39861 esac;;
39862esac
39863case "$ac_dir" in
39864.) ac_abs_top_builddir=${ac_top_builddir}.;;
39865*)
39866 case ${ac_top_builddir}. in
39867 .) ac_abs_top_builddir="$ac_dir";;
39868 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39869 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
39870 esac;;
39871esac
39872case "$ac_dir" in
39873.) ac_abs_srcdir=$ac_srcdir;;
39874*)
39875 case $ac_srcdir in
39876 .) ac_abs_srcdir="$ac_dir";;
39877 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39878 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
39879 esac;;
39880esac
39881case "$ac_dir" in
39882.) ac_abs_top_srcdir=$ac_top_srcdir;;
39883*)
39884 case $ac_top_srcdir in
39885 .) ac_abs_top_srcdir="$ac_dir";;
39886 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39887 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
39888 esac;;
39889esac
10f2d63a 39890
247f5006 39891
e6cc62c6
VS
39892 case $INSTALL in
39893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39894 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 39895 esac
247f5006 39896
e6cc62c6
VS
39897 if test x"$ac_file" != x-; then
39898 { echo "$as_me:$LINENO: creating $ac_file" >&5
39899echo "$as_me: creating $ac_file" >&6;}
39900 rm -f "$ac_file"
39901 fi
39902 # Let's still pretend it is `configure' which instantiates (i.e., don't
39903 # use $as_me), people would be surprised to read:
39904 # /* config.h. Generated by config.status. */
39905 if test x"$ac_file" = x-; then
39906 configure_input=
39907 else
39908 configure_input="$ac_file. "
39909 fi
39910 configure_input=$configure_input"Generated from `echo $ac_file_in |
eea650d8 39911 sed 's,.*/,,'` by configure."
e6cc62c6
VS
39912
39913 # First look for the input files in the build tree, otherwise in the
39914 # src tree.
39915 ac_file_inputs=`IFS=:
39916 for f in $ac_file_in; do
39917 case $f in
39918 -) echo $tmp/stdin ;;
39919 [\\/$]*)
eea650d8
VS
39920 # Absolute (can't be DOS-style, as IFS=:)
39921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39922echo "$as_me: error: cannot find input file: $f" >&2;}
39923 { (exit 1); exit 1; }; }
eea650d8 39924 echo "$f";;
e6cc62c6 39925 *) # Relative
eea650d8
VS
39926 if test -f "$f"; then
39927 # Build tree
39928 echo "$f"
39929 elif test -f "$srcdir/$f"; then
39930 # Source tree
39931 echo "$srcdir/$f"
39932 else
39933 # /dev/null tree
39934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39935echo "$as_me: error: cannot find input file: $f" >&2;}
39936 { (exit 1); exit 1; }; }
eea650d8 39937 fi;;
e6cc62c6
VS
39938 esac
39939 done` || { (exit 1); exit 1; }
39940_ACEOF
39941cat >>$CONFIG_STATUS <<_ACEOF
39942 sed "$ac_vpsub
39943$extrasub
39944_ACEOF
39945cat >>$CONFIG_STATUS <<\_ACEOF
39946:t
39947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39948s,@configure_input@,$configure_input,;t t
39949s,@srcdir@,$ac_srcdir,;t t
39950s,@abs_srcdir@,$ac_abs_srcdir,;t t
39951s,@top_srcdir@,$ac_top_srcdir,;t t
39952s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39953s,@builddir@,$ac_builddir,;t t
39954s,@abs_builddir@,$ac_abs_builddir,;t t
39955s,@top_builddir@,$ac_top_builddir,;t t
39956s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39957s,@INSTALL@,$ac_INSTALL,;t t
39958" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39959 rm -f $tmp/stdin
39960 if test x"$ac_file" != x-; then
39961 mv $tmp/out $ac_file
39962 else
39963 cat $tmp/out
39964 rm -f $tmp/out
39965 fi
39966
39967done
39968_ACEOF
39969cat >>$CONFIG_STATUS <<\_ACEOF
39970
39971#
39972# CONFIG_HEADER section.
39973#
10f2d63a
VZ
39974
39975# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39976# NAME is the cpp macro being defined and VALUE is the value it is being given.
39977#
39978# ac_d sets the value in "#define NAME VALUE" lines.
eea650d8
VS
39979ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
39980ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
39981ac_dC=' '
39982ac_dD=',;t'
39983# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
eea650d8 39984ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 39985ac_uB='$,\1#\2define\3'
10f2d63a 39986ac_uC=' '
e6cc62c6
VS
39987ac_uD=',;t'
39988
39989for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 39990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39991 case $ac_file in
39992 - | *:- | *:-:* ) # input from stdin
eea650d8
VS
39993 cat >$tmp/stdin
39994 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39996 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
eea650d8 39997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39998 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
39999 esac
40000
e6cc62c6
VS
40001 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40002echo "$as_me: creating $ac_file" >&6;}
40003
40004 # First look for the input files in the build tree, otherwise in the
40005 # src tree.
40006 ac_file_inputs=`IFS=:
40007 for f in $ac_file_in; do
40008 case $f in
40009 -) echo $tmp/stdin ;;
40010 [\\/$]*)
eea650d8
VS
40011 # Absolute (can't be DOS-style, as IFS=:)
40012 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40013echo "$as_me: error: cannot find input file: $f" >&2;}
40014 { (exit 1); exit 1; }; }
eea650d8
VS
40015 # Do quote $f, to prevent DOS paths from being IFS'd.
40016 echo "$f";;
e6cc62c6 40017 *) # Relative
eea650d8
VS
40018 if test -f "$f"; then
40019 # Build tree
40020 echo "$f"
40021 elif test -f "$srcdir/$f"; then
40022 # Source tree
40023 echo "$srcdir/$f"
40024 else
40025 # /dev/null tree
40026 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40027echo "$as_me: error: cannot find input file: $f" >&2;}
40028 { (exit 1); exit 1; }; }
eea650d8 40029 fi;;
e6cc62c6
VS
40030 esac
40031 done` || { (exit 1); exit 1; }
40032 # Remove the trailing spaces.
eea650d8 40033 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
40034
40035_ACEOF
40036
40037# Transform confdefs.h into two sed scripts, `conftest.defines' and
40038# `conftest.undefs', that substitutes the proper values into
40039# config.h.in to produce config.h. The first handles `#define'
40040# templates, and the second `#undef' templates.
40041# And first: Protect against being on the right side of a sed subst in
40042# config.status. Protect against being in an unquoted here document
40043# in config.status.
40044rm -f conftest.defines conftest.undefs
40045# Using a here document instead of a string reduces the quoting nightmare.
40046# Putting comments in sed scripts is not portable.
40047#
40048# `end' is used to avoid that the second main sed command (meant for
40049# 0-ary CPP macros) applies to n-ary macro definitions.
40050# See the Autoconf documentation for `clear'.
40051cat >confdef2sed.sed <<\_ACEOF
40052s/[\\&,]/\\&/g
40053s,[\\$`],\\&,g
40054t clear
40055: clear
eea650d8 40056s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 40057t end
eea650d8 40058s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
40059: end
40060_ACEOF
40061# If some macros were called several times there might be several times
40062# the same #defines, which is useless. Nevertheless, we may not want to
40063# sort them, since we want the *last* AC-DEFINE to be honored.
40064uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40065sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40066rm -f confdef2sed.sed
10f2d63a
VZ
40067
40068# This sed command replaces #undef with comments. This is necessary, for
40069# example, in the case of _POSIX_SOURCE, which is predefined and required
40070# on some systems where configure will not decide to define it.
e6cc62c6 40071cat >>conftest.undefs <<\_ACEOF
eea650d8 40072s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
40073_ACEOF
40074
40075# Break up conftest.defines because some shells have a limit on the size
40076# of here documents, and old seds have small limits too (100 cmds).
40077echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
eea650d8 40078echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
40079echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40080echo ' :' >>$CONFIG_STATUS
40081rm -f conftest.tail
40082while grep . conftest.defines >/dev/null
40083do
40084 # Write a limited-size here document to $tmp/defines.sed.
40085 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40086 # Speed up: don't consider the non `#define' lines.
eea650d8 40087 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40088 # Work around the forget-to-reset-the-flag bug.
40089 echo 't clr' >>$CONFIG_STATUS
40090 echo ': clr' >>$CONFIG_STATUS
40091 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40092 echo 'CEOF
40093 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40094 rm -f $tmp/in
40095 mv $tmp/out $tmp/in
40096' >>$CONFIG_STATUS
40097 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40098 rm -f conftest.defines
40099 mv conftest.tail conftest.defines
40100done
40101rm -f conftest.defines
40102echo ' fi # grep' >>$CONFIG_STATUS
40103echo >>$CONFIG_STATUS
10f2d63a 40104
e6cc62c6
VS
40105# Break up conftest.undefs because some shells have a limit on the size
40106# of here documents, and old seds have small limits too (100 cmds).
40107echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 40108rm -f conftest.tail
e6cc62c6 40109while grep . conftest.undefs >/dev/null
10f2d63a 40110do
e6cc62c6
VS
40111 # Write a limited-size here document to $tmp/undefs.sed.
40112 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40113 # Speed up: don't consider the non `#undef'
eea650d8 40114 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40115 # Work around the forget-to-reset-the-flag bug.
40116 echo 't clr' >>$CONFIG_STATUS
40117 echo ': clr' >>$CONFIG_STATUS
40118 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 40119 echo 'CEOF
e6cc62c6
VS
40120 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40121 rm -f $tmp/in
40122 mv $tmp/out $tmp/in
40123' >>$CONFIG_STATUS
40124 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40125 rm -f conftest.undefs
40126 mv conftest.tail conftest.undefs
10f2d63a 40127done
e6cc62c6
VS
40128rm -f conftest.undefs
40129
40130cat >>$CONFIG_STATUS <<\_ACEOF
40131 # Let's still pretend it is `configure' which instantiates (i.e., don't
40132 # use $as_me), people would be surprised to read:
40133 # /* config.h. Generated by config.status. */
40134 if test x"$ac_file" = x-; then
40135 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 40136 else
e6cc62c6 40137 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 40138 fi
e6cc62c6
VS
40139 cat $tmp/in >>$tmp/config.h
40140 rm -f $tmp/in
40141 if test x"$ac_file" != x-; then
40142 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40143 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40144echo "$as_me: $ac_file is unchanged" >&6;}
40145 else
40146 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40148 X"$ac_file" : 'X\(//\)[^/]' \| \
40149 X"$ac_file" : 'X\(//\)$' \| \
40150 X"$ac_file" : 'X\(/\)' \| \
40151 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40152echo X"$ac_file" |
40153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40155 /^X\(\/\/\)$/{ s//\1/; q; }
40156 /^X\(\/\).*/{ s//\1/; q; }
40157 s/.*/./; q'`
40158 { if $as_mkdir_p; then
40159 mkdir -p "$ac_dir"
40160 else
40161 as_dir="$ac_dir"
40162 as_dirs=
40163 while test ! -d "$as_dir"; do
40164 as_dirs="$as_dir $as_dirs"
40165 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40166$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40167 X"$as_dir" : 'X\(//\)[^/]' \| \
40168 X"$as_dir" : 'X\(//\)$' \| \
40169 X"$as_dir" : 'X\(/\)' \| \
40170 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40171echo X"$as_dir" |
40172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40174 /^X\(\/\/\)$/{ s//\1/; q; }
40175 /^X\(\/\).*/{ s//\1/; q; }
40176 s/.*/./; q'`
40177 done
40178 test ! -n "$as_dirs" || mkdir $as_dirs
40179 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40180echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40181 { (exit 1); exit 1; }; }; }
a0b9e27f 40182
e6cc62c6
VS
40183 rm -f $ac_file
40184 mv $tmp/config.h $ac_file
40185 fi
40186 else
40187 cat $tmp/config.h
40188 rm -f $tmp/config.h
40189 fi
40190done
40191_ACEOF
40192cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 40193
e6cc62c6
VS
40194#
40195# CONFIG_COMMANDS section.
40196#
40197for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40198 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40199 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40200 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40201$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40202 X"$ac_dest" : 'X\(//\)[^/]' \| \
40203 X"$ac_dest" : 'X\(//\)$' \| \
40204 X"$ac_dest" : 'X\(/\)' \| \
40205 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40206echo X"$ac_dest" |
40207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40209 /^X\(\/\/\)$/{ s//\1/; q; }
40210 /^X\(\/\).*/{ s//\1/; q; }
40211 s/.*/./; q'`
eea650d8
VS
40212 { if $as_mkdir_p; then
40213 mkdir -p "$ac_dir"
40214 else
40215 as_dir="$ac_dir"
40216 as_dirs=
40217 while test ! -d "$as_dir"; do
40218 as_dirs="$as_dir $as_dirs"
40219 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40221 X"$as_dir" : 'X\(//\)[^/]' \| \
40222 X"$as_dir" : 'X\(//\)$' \| \
40223 X"$as_dir" : 'X\(/\)' \| \
40224 . : '\(.\)' 2>/dev/null ||
40225echo X"$as_dir" |
40226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40228 /^X\(\/\/\)$/{ s//\1/; q; }
40229 /^X\(\/\).*/{ s//\1/; q; }
40230 s/.*/./; q'`
40231 done
40232 test ! -n "$as_dirs" || mkdir $as_dirs
40233 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40234echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40235 { (exit 1); exit 1; }; }; }
40236
e6cc62c6
VS
40237 ac_builddir=.
40238
40239if test "$ac_dir" != .; then
40240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40241 # A "../" for each directory in $ac_dir_suffix.
40242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40243else
40244 ac_dir_suffix= ac_top_builddir=
40245fi
40246
40247case $srcdir in
40248 .) # No --srcdir option. We are building in place.
40249 ac_srcdir=.
40250 if test -z "$ac_top_builddir"; then
40251 ac_top_srcdir=.
40252 else
40253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40254 fi ;;
40255 [\\/]* | ?:[\\/]* ) # Absolute path.
40256 ac_srcdir=$srcdir$ac_dir_suffix;
40257 ac_top_srcdir=$srcdir ;;
40258 *) # Relative path.
40259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40261esac
eea650d8
VS
40262case "$ac_dir" in
40263.) ac_abs_builddir=$ac_builddir;;
40264*)
40265 case $ac_builddir in
40266 .) ac_abs_builddir="$ac_dir";;
40267 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40268 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40269 esac;;
40270esac
40271case "$ac_dir" in
40272.) ac_abs_top_builddir=${ac_top_builddir}.;;
40273*)
40274 case ${ac_top_builddir}. in
40275 .) ac_abs_top_builddir="$ac_dir";;
40276 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40277 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40278 esac;;
40279esac
40280case "$ac_dir" in
40281.) ac_abs_srcdir=$ac_srcdir;;
40282*)
40283 case $ac_srcdir in
40284 .) ac_abs_srcdir="$ac_dir";;
40285 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40286 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40287 esac;;
40288esac
40289case "$ac_dir" in
40290.) ac_abs_top_srcdir=$ac_top_srcdir;;
40291*)
40292 case $ac_top_srcdir in
40293 .) ac_abs_top_srcdir="$ac_dir";;
40294 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40295 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40296 esac;;
40297esac
e6cc62c6
VS
40298
40299
40300 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40301echo "$as_me: executing $ac_dest commands" >&6;}
40302 case $ac_dest in
40303 default )
652d930d 40304 if test ! -h wx-config; then
991a5759 40305 chmod +x wx-config
3a922bb4
RL
40306 mv wx-config wx${TOOLCHAIN_NAME}-config
40307 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 40308 fi
665bbe97 40309
00cf1208
RR
40310 if test ! -d lib; then
40311 mkdir lib
40312 fi
40313 if test ! -d lib/wx; then
40314 mkdir lib/wx
40315 fi
40316 if test ! -d lib/wx/include; then
40317 mkdir lib/wx/include
40318 fi
3a922bb4
RL
40319 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40320 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 40321 fi
3a922bb4
RL
40322 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40323 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
40324 fi
40325 if test -f setup.h; then
3a922bb4 40326 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 40327 fi
e6cc62c6
VS
40328 ;;
40329 esac
40330done
40331_ACEOF
2224580a 40332
e6cc62c6 40333cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 40334
e6cc62c6
VS
40335{ (exit 0); exit 0; }
40336_ACEOF
40337chmod +x $CONFIG_STATUS
40338ac_clean_files=$ac_clean_files_save
40339
40340
40341# configure is writing to config.log, and then calls config.status.
40342# config.status does its own redirection, appending to config.log.
40343# Unfortunately, on DOS this fails, as config.log is still kept open
40344# by configure, so config.status won't be able to write to it; its
40345# output is simply discarded. So we exec the FD to /dev/null,
40346# effectively closing config.log, so it can be properly (re)opened and
40347# appended to by config.status. When coming back to configure, we
40348# need to make the FD available again.
40349if test "$no_create" != yes; then
40350 ac_cs_success=:
40351 ac_config_status_args=
40352 test "$silent" = yes &&
40353 ac_config_status_args="$ac_config_status_args --quiet"
40354 exec 5>/dev/null
40355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40356 exec 5>>config.log
40357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40358 # would make configure fail if this is the last instruction.
40359 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
40360fi
40361
672abd7a
VS
40362#
40363# CONFIG_SUBDIRS section.
40364#
40365if test "$no_recursion" != yes; then
40366
40367 # Remove --cache-file and --srcdir arguments so they do not pile up.
40368 ac_sub_configure_args=
40369 ac_prev=
40370 for ac_arg in $ac_configure_args; do
40371 if test -n "$ac_prev"; then
40372 ac_prev=
40373 continue
40374 fi
40375 case $ac_arg in
40376 -cache-file | --cache-file | --cache-fil | --cache-fi \
40377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40378 ac_prev=cache_file ;;
40379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40381 | --c=*)
40382 ;;
40383 --config-cache | -C)
40384 ;;
40385 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40386 ac_prev=srcdir ;;
40387 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40388 ;;
40389 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40390 ac_prev=prefix ;;
40391 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40392 ;;
40393 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40394 esac
40395 done
40396
40397 # Always prepend --prefix to ensure using the same prefix
40398 # in subdir configurations.
40399 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40400
40401 ac_popdir=`pwd`
40402 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40403
40404 # Do not complain, so a configure script can configure whichever
40405 # parts of a large source tree are present.
40406 test -d $srcdir/$ac_dir || continue
40407
40408 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40409echo "$as_me: configuring in $ac_dir" >&6;}
40410 { if $as_mkdir_p; then
40411 mkdir -p "$ac_dir"
40412 else
40413 as_dir="$ac_dir"
40414 as_dirs=
40415 while test ! -d "$as_dir"; do
40416 as_dirs="$as_dir $as_dirs"
40417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40419 X"$as_dir" : 'X\(//\)[^/]' \| \
40420 X"$as_dir" : 'X\(//\)$' \| \
40421 X"$as_dir" : 'X\(/\)' \| \
40422 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
40423echo X"$as_dir" |
40424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40426 /^X\(\/\/\)$/{ s//\1/; q; }
40427 /^X\(\/\).*/{ s//\1/; q; }
40428 s/.*/./; q'`
40429 done
40430 test ! -n "$as_dirs" || mkdir $as_dirs
40431 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40432echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40433 { (exit 1); exit 1; }; }; }
40434
40435 ac_builddir=.
40436
40437if test "$ac_dir" != .; then
40438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40439 # A "../" for each directory in $ac_dir_suffix.
40440 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40441else
40442 ac_dir_suffix= ac_top_builddir=
40443fi
40444
40445case $srcdir in
40446 .) # No --srcdir option. We are building in place.
40447 ac_srcdir=.
40448 if test -z "$ac_top_builddir"; then
40449 ac_top_srcdir=.
40450 else
40451 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40452 fi ;;
40453 [\\/]* | ?:[\\/]* ) # Absolute path.
40454 ac_srcdir=$srcdir$ac_dir_suffix;
40455 ac_top_srcdir=$srcdir ;;
40456 *) # Relative path.
40457 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40458 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40459esac
eea650d8
VS
40460case "$ac_dir" in
40461.) ac_abs_builddir=$ac_builddir;;
40462*)
40463 case $ac_builddir in
40464 .) ac_abs_builddir="$ac_dir";;
40465 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40466 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40467 esac;;
40468esac
40469case "$ac_dir" in
40470.) ac_abs_top_builddir=${ac_top_builddir}.;;
40471*)
40472 case ${ac_top_builddir}. in
40473 .) ac_abs_top_builddir="$ac_dir";;
40474 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40475 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40476 esac;;
40477esac
40478case "$ac_dir" in
40479.) ac_abs_srcdir=$ac_srcdir;;
40480*)
40481 case $ac_srcdir in
40482 .) ac_abs_srcdir="$ac_dir";;
40483 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40484 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40485 esac;;
40486esac
40487case "$ac_dir" in
40488.) ac_abs_top_srcdir=$ac_top_srcdir;;
40489*)
40490 case $ac_top_srcdir in
40491 .) ac_abs_top_srcdir="$ac_dir";;
40492 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40493 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40494 esac;;
40495esac
672abd7a
VS
40496
40497
40498 cd $ac_dir
40499
40500 # Check for guested configure; otherwise get Cygnus style configure.
40501 if test -f $ac_srcdir/configure.gnu; then
40502 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40503 elif test -f $ac_srcdir/configure; then
40504 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40505 elif test -f $ac_srcdir/configure.in; then
40506 ac_sub_configure=$ac_configure
40507 else
40508 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40509echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40510 ac_sub_configure=
40511 fi
40512
40513 # The recursion is here.
40514 if test -n "$ac_sub_configure"; then
40515 # Make the cache file name correct relative to the subdirectory.
40516 case $cache_file in
40517 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40518 *) # Relative path.
eea650d8 40519 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
40520 esac
40521
40522 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40523echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40524 # The eval makes quoting arguments work.
40525 eval $ac_sub_configure $ac_sub_configure_args \
eea650d8
VS
40526 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40527 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
40528echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40529 { (exit 1); exit 1; }; }
40530 fi
40531
40532 cd $ac_popdir
40533 done
40534fi
40535
8284b0c5 40536
2b5f62a0
VZ
40537echo
40538echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
40539echo ""
89fe663f 40540echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 40541echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
40542
40543echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
40544echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
40545echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
40546
0c98a14e 40547echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
40548echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
40549echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 40550
2b5f62a0
VZ
40551echo " Which libraries should wxWindows use?"
40552echo " jpeg ${wxUSE_LIBJPEG-none}"
40553echo " png ${wxUSE_LIBPNG-none}"
40554echo " regex ${wxUSE_REGEX}"
40555echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
40556if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40557echo " xpm ${wxUSE_LIBXPM-none}"
40558fi
2b5f62a0 40559echo " zlib ${wxUSE_ZLIB}"
fd3d7534 40560echo " odbc ${wxUSE_ODBC}"
5f0b6dff 40561echo " expat ${wxUSE_EXPAT}"
3527f29c 40562echo " libmspack ${wxUSE_LIBMSPACK}"
2b5f62a0
VZ
40563
40564echo ""
40565