]> git.saurik.com Git - wxWidgets.git/blame - configure
Try using a regular mask on wxGTK
[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.
32ddf007 4# Generated by GNU Autoconf 2.59 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
32ddf007 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
32ddf007 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
32ddf007 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
32ddf007 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
32ddf007 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.
32ddf007 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.
32ddf007 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"
670ec357 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG 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 \
32ddf007 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
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
32ddf007 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
32ddf007 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
f93ca9fd
VS
871 --enable-monolithic build wxWindows as single library
872 --enable-plugins build parts of wxWindows as loadable components
e6cc62c6
VS
873 --enable-universal use wxWindows GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
0f87e84c 876 --enable-gpe use GNOME PDA Environment features if possible
e6cc62c6 877 --enable-shared create shared library code
e6cc62c6
VS
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
df5168c4 880 --enable-stl use STL for containers
e6cc62c6
VS
881 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
882 --enable-debug_info create code with debugging information
883 --enable-debug_gdb create code with extra GDB debugging information
884 --enable-debug_cntxt use wxDebugContext
885 --enable-mem_tracing create code with memory tracing
886 --enable-profile create code with profiling information
887 --enable-no_rtti create code without RTTI information
888 --enable-no_exceptions create code without C++ exceptions handling
889 --enable-permissive compile code disregarding strict ANSI
890 --enable-no_deps create code without dependency information
e6cc62c6
VS
891 --enable-compat22 enable wxWindows 2.2 compatibility
892 --disable-compat24 disable wxWindows 2.4 compatibility
893 --enable-rpath=DIR output the rpath flag from wx-config
894 --enable-intl use internationalization system
895 --enable-config use wxConfig (and derived) classes
896 --enable-protocols use wxProtocol and derived classes
897 --enable-ftp use wxFTP (requires wxProtocol
898 --enable-http use wxHTTP (requires wxProtocol
899 --enable-fileproto use wxFileProto class (requires wxProtocol
900 --enable-sockets use socket/network classes
e46d2a18 901 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
902 --enable-dataobj use data object classes
903 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
904 --enable-apple_ieee use the Apple IEEE codec
905 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
906 --enable-cmdline use wxCmdLineParser class
907 --enable-datetime use wxDateTime class
e6cc62c6 908 --enable-dialupman use dialup network classes
e6cc62c6
VS
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
911 --enable-exceptions build exception-safe library
912 --enable-ffile use wxFFile class
913 --enable-file use wxFile class
914 --enable-filesystem use virtual file systems classes
915 --enable-fontmap use font encodings conversion classes
916 --enable-fs_inet use virtual HTTP/FTP filesystems
917 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
918 --enable-geometry use geometry class
919 --enable-log use logging system
e46d2a18
VS
920 --enable-longlong use wxLongLong class
921 --enable-mimetype use wxMimeTypesManager
922 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
923 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 924 --enable-streams use wxStream etc classes
e46d2a18
VS
925 --enable-std_iostreams use standard C++ stream classes
926 --enable-stopwatch use wxStopWatch class
927 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
928 --enable-textbuf use wxTextBuffer class
929 --enable-textfile use wxTextFile class
e46d2a18 930 --enable-timer use wxTimer class
e6cc62c6 931 --enable-unicode compile wxString with Unicode support
002ed9af 932 --enable-sound use wxSound class
e6cc62c6 933 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 934 --enable-zipstream use wxZipInputStream
7015ef3a 935 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
950 --enable-loggui use standard GUI logger
951 --enable-logwin use wxLogWindow
952 --enable-logdialog use wxLogDialog
953 --enable-postscript use wxPostscriptDC device context (default for gtk+)
954 --enable-prologio not available; see contrib
955 --enable-resources not available; see contrib
956 --enable-clipboard use wxClipboard class
957 --enable-dnd use Drag'n'Drop classes
958 --enable-metafile use win32 metafiles
959 --enable-controls use all usual controls
960 --enable-accel use accelerators
961 --enable-button use wxButton class
962 --enable-bmpbutton use wxBitmapButton class
963 --enable-calendar use wxCalendarCtrl class
964 --enable-caret use wxCaret class
965 --enable-checkbox use wxCheckBox class
966 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
967 --enable-choice use wxChoice class
968 --enable-combobox use wxComboBox class
969 --enable-display use wxDisplay class
970 --enable-gauge use wxGauge class
971 --enable-grid use wxGrid class
972 --enable-imaglist use wxImageList class
0e012a93 973 --enable-listbook use wxListbook class
e6cc62c6
VS
974 --enable-listbox use wxListBox class
975 --enable-listctrl use wxListCtrl class
976 --enable-notebook use wxNotebook class
977 --enable-radiobox use wxRadioBox class
978 --enable-radiobtn use wxRadioButton class
979 --enable-sash use wxSashWindow class
980 --enable-scrollbar use wxScrollBar class and scrollable windows
981 --enable-slider use wxSlider class
982 --enable-spinbtn use wxSpinButton class
983 --enable-spinctrl use wxSpinCtrl class
984 --enable-splitter use wxSplitterWindow class
985 --enable-statbmp use wxStaticBitmap class
986 --enable-statbox use wxStaticBox class
987 --enable-statline use wxStaticLine class
988 --enable-stattext use wxStaticText class
989 --enable-statusbar use wxStatusBar class
990 --enable-tabdialog use wxTabControl class
991 --enable-textctrl use wxTextCtrl class
992 --enable-togglebtn use wxToggleButton class
993 --enable-toolbar use wxToolBar class
994 --enable-tbarnative use native wxToolBar class
995 --enable-tbarsmpl use wxToolBarSimple class
996 --enable-treectrl use wxTreeCtrl class
997 --enable-tipwindow use wxTipWindow class
998 --enable-popupwin use wxPopUpWindow class
999 --enable-commondlg use all common dialogs
1000 --enable-choicedlg use wxChoiceDialog
1001 --enable-coldlg use wxColourDialog
1002 --enable-filedlg use wxFileDialog
1003 --enable-finddlg use wxFindReplaceDialog
1004 --enable-fontdlg use wxFontDialog
1005 --enable-dirdlg use wxDirDialog
1006 --enable-msgdlg use wxMessageDialog
1007 --enable-numberdlg use wxNumberEntryDialog
1008 --enable-splash use wxSplashScreen
1009 --enable-textdlg use wxTextDialog
1010 --enable-tipdlg use startup tips
1011 --enable-progressdlg use wxProgressDialog
1012 --enable-wizarddlg use wxWizard
1013 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1014 --enable-miniframe use wxMiniFrame class
1015 --enable-tooltips use wxToolTip class
1016 --enable-splines use spline drawing code
1017 --enable-validators use wxValidator and derived classes
1018 --enable-busyinfo use wxBusyInfo
1019 --enable-joystick use wxJoystick (Linux only)
1020 --enable-metafiles use wxMetaFile (Windows only)
1021 --enable-dragimage use wxDragImage
1022 --enable-accessibility enable accessibility support
1023 --enable-palette use wxPalette class
1024 --enable-image use wxImage class
1025 --enable-gif use gif images (GIF file format)
1026 --enable-pcx use pcx images (PCX file format)
1027 --enable-iff use iff images (IFF file format)
1028 --enable-pnm use pnm images (PNM file format)
1029 --enable-xpm use xpm images (XPM file format)
1030 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1031 --enable-official_build official build of wxWindows (win32 DLL only)
1032 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1033 --disable-largefile omit support for large files
1034 --disable-gtktest do not try to compile and run a test GTK+ program
1035 --disable-gtktest Do not try to compile and run a test GTK program
f93ca9fd 1036 --disable-sdltest Do not try to compile and run a test SDL program
45842500 1037 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1038
1039Optional Packages:
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1042 --with-gtk use GTK+
1043 --with-motif use Motif/Lesstif
1044 --with-mac use Mac OS X
1045 --with-cocoa use Cocoa
1046 --with-wine use Wine
1047 --with-msw use MS-Windows
1048 --with-pm use OS/2 Presentation Manager
1049 --with-mgl use SciTech MGL
1050 --with-microwin use MicroWindows
1051 --with-x11 use X11
1052 --with-libpng use libpng (PNG image format)
1053 --with-libjpeg use libjpeg (JPEG file format)
1054 --with-libtiff use libtiff (TIFF file format)
89fe663f 1055 --with-libxpm use libxpm (XPM file format)
3527f29c 1056 --with-libmspack use libmspack (CHM help files loading)
f93ca9fd 1057 --with-sdl use SDL for audio on Unix
e6cc62c6
VS
1058 --with-opengl use OpenGL (or Mesa)
1059 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1060 --with-regex enable support for wxRegEx class
1061 --with-zlib use zlib for LZW compression
1062 --with-odbc use the IODBC and wxODBC classes
672abd7a 1063 --with-expat enable XML support using expat parser
e6cc62c6
VS
1064 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1065 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1066 --with-x use the X Window System
1067 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
f93ca9fd
VS
1068 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1069 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
670ec357
VS
1070 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1071 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
e6cc62c6
VS
1072
1073Some influential environment variables:
1074 CC C compiler command
1075 CFLAGS C compiler flags
1076 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1077 nonstandard directory <lib dir>
1078 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079 headers in a nonstandard directory <include dir>
1080 CPP C preprocessor
1081 CXX C++ compiler command
1082 CXXFLAGS C++ compiler flags
1083 CXXCPP C++ preprocessor
1084
1085Use these variables to override the choices made by `configure' or to help
1086it to find libraries and programs with nonstandard names/locations.
1087
1088Report bugs to <wx-dev@lists.wxwindows.org>.
1089_ACEOF
1090fi
1091
1092if test "$ac_init_help" = "recursive"; then
1093 # If there are subdirs, report their specific --help.
1094 ac_popdir=`pwd`
1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096 test -d $ac_dir || continue
1097 ac_builddir=.
1098
1099if test "$ac_dir" != .; then
1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101 # A "../" for each directory in $ac_dir_suffix.
1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103else
1104 ac_dir_suffix= ac_top_builddir=
1105fi
1106
1107case $srcdir in
1108 .) # No --srcdir option. We are building in place.
1109 ac_srcdir=.
1110 if test -z "$ac_top_builddir"; then
1111 ac_top_srcdir=.
1112 else
1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114 fi ;;
1115 [\\/]* | ?:[\\/]* ) # Absolute path.
1116 ac_srcdir=$srcdir$ac_dir_suffix;
1117 ac_top_srcdir=$srcdir ;;
1118 *) # Relative path.
1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121esac
32ddf007
VS
1122
1123# Do not use `cd foo && pwd` to compute absolute paths, because
1124# the directories may not exist.
1125case `pwd` in
1126.) ac_abs_builddir="$ac_dir";;
1127*)
1128 case "$ac_dir" in
1129 .) ac_abs_builddir=`pwd`;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_builddir=${ac_top_builddir}.;;
1136*)
1137 case ${ac_top_builddir}. in
1138 .) ac_abs_top_builddir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_srcdir=$ac_srcdir;;
1145*)
1146 case $ac_srcdir in
1147 .) ac_abs_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_srcdir=$ac_top_srcdir;;
1154*)
1155 case $ac_top_srcdir in
1156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159 esac;;
1160esac
e6cc62c6
VS
1161
1162 cd $ac_dir
1163 # Check for guested configure; otherwise get Cygnus style configure.
1164 if test -f $ac_srcdir/configure.gnu; then
1165 echo
1166 $SHELL $ac_srcdir/configure.gnu --help=recursive
1167 elif test -f $ac_srcdir/configure; then
1168 echo
1169 $SHELL $ac_srcdir/configure --help=recursive
1170 elif test -f $ac_srcdir/configure.ac ||
32ddf007 1171 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1172 echo
1173 $ac_configure --help
1174 else
1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 fi
e1293dcf 1177 cd "$ac_popdir"
e6cc62c6
VS
1178 done
1179fi
8284b0c5 1180
e6cc62c6
VS
1181test -n "$ac_init_help" && exit 0
1182if $ac_init_version; then
1183 cat <<\_ACEOF
e46d2a18 1184wxWindows configure 2.5.1
32ddf007 1185generated by GNU Autoconf 2.59
10f2d63a 1186
32ddf007 1187Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1188This configure script is free software; the Free Software Foundation
1189gives unlimited permission to copy, distribute and modify it.
1190_ACEOF
1191 exit 0
7c66a493 1192fi
e6cc62c6
VS
1193exec 5>config.log
1194cat >&5 <<_ACEOF
1195This file contains any messages produced by compilers while
1196running configure, to aid debugging if configure makes a mistake.
1197
e46d2a18 1198It was created by wxWindows $as_me 2.5.1, which was
32ddf007 1199generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
1200
1201 $ $0 $@
1202
1203_ACEOF
1204{
1205cat <<_ASUNAME
1206## --------- ##
1207## Platform. ##
1208## --------- ##
1209
1210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218
1219/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1220/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1223/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1224/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1225/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226
1227_ASUNAME
1228
1229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230for as_dir in $PATH
1231do
1232 IFS=$as_save_IFS
1233 test -z "$as_dir" && as_dir=.
1234 echo "PATH: $as_dir"
1235done
1236
1237} >&5
1238
1239cat >&5 <<_ACEOF
1240
1241
1242## ----------- ##
1243## Core tests. ##
1244## ----------- ##
1245
1246_ACEOF
1247
1248
1249# Keep a trace of the command line.
1250# Strip out --no-create and --no-recursion so they do not pile up.
1251# Strip out --silent because we don't want to record it for future runs.
1252# Also quote any args containing shell meta-characters.
1253# Make two passes to allow for proper duplicate-argument suppression.
1254ac_configure_args=
1255ac_configure_args0=
1256ac_configure_args1=
1257ac_sep=
1258ac_must_keep_next=false
1259for ac_pass in 1 2
1260do
1261 for ac_arg
1262 do
1263 case $ac_arg in
1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 continue ;;
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 esac
1271 case $ac_pass in
1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 2)
1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275 if test $ac_must_keep_next = true; then
32ddf007 1276 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1277 else
32ddf007
VS
1278 case $ac_arg in
1279 *=* | --config-cache | -C | -disable-* | --disable-* \
1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282 | -with-* | --with-* | -without-* | --without-* | --x)
1283 case "$ac_configure_args0 " in
1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285 esac
1286 ;;
1287 -* ) ac_must_keep_next=true ;;
1288 esac
e6cc62c6
VS
1289 fi
1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291 # Get rid of the leading space.
1292 ac_sep=" "
1293 ;;
1294 esac
1295 done
1296done
1297$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300# When interrupted or exit'd, cleanup temporary files, and complete
1301# config.log. We remove comments because anyway the quotes in there
1302# would cause problems or look ugly.
1303# WARNING: Be sure not to use single quotes in there, as some shells,
1304# such as our DU 5.0 friend, will then `close' the trap.
1305trap 'exit_status=$?
1306 # Save into config.log some information that might help in debugging.
1307 {
1308 echo
1309
1310 cat <<\_ASBOX
1311## ---------------- ##
1312## Cache variables. ##
1313## ---------------- ##
1314_ASBOX
1315 echo
1316 # The following way of writing the cache mishandles newlines in values,
1317{
1318 (set) 2>&1 |
1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320 *ac_space=\ *)
1321 sed -n \
32ddf007
VS
1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1324 ;;
1325 *)
1326 sed -n \
32ddf007 1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1328 ;;
1329 esac;
1330}
1331 echo
1332
1333 cat <<\_ASBOX
1334## ----------------- ##
1335## Output variables. ##
1336## ----------------- ##
1337_ASBOX
1338 echo
1339 for ac_var in $ac_subst_vars
1340 do
1341 eval ac_val=$`echo $ac_var`
1342 echo "$ac_var='"'"'$ac_val'"'"'"
1343 done | sort
1344 echo
1345
1346 if test -n "$ac_subst_files"; then
1347 cat <<\_ASBOX
1348## ------------- ##
1349## Output files. ##
1350## ------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_files
1354 do
1355 eval ac_val=$`echo $ac_var`
32ddf007 1356 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1357 done | sort
1358 echo
1359 fi
1360
1361 if test -s confdefs.h; then
1362 cat <<\_ASBOX
1363## ----------- ##
1364## confdefs.h. ##
1365## ----------- ##
1366_ASBOX
1367 echo
1368 sed "/^$/d" confdefs.h | sort
1369 echo
1370 fi
1371 test "$ac_signal" != 0 &&
1372 echo "$as_me: caught signal $ac_signal"
1373 echo "$as_me: exit $exit_status"
1374 } >&5
32ddf007 1375 rm -f core *.core &&
e6cc62c6
VS
1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377 exit $exit_status
1378 ' 0
1379for ac_signal in 1 2 13 15; do
1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381done
1382ac_signal=0
1383
1384# confdefs.h avoids OS command line length limits that DEFS can exceed.
1385rm -rf conftest* confdefs.h
1386# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387echo >confdefs.h
1388
1389# Predefined preprocessor variables.
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_NAME "$PACKAGE_NAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_VERSION "$PACKAGE_VERSION"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_STRING "$PACKAGE_STRING"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413_ACEOF
1414
1415
1416# Let the site file select an alternate cache file if it wants to.
1417# Prefer explicitly selected file to automatically selected ones.
1418if test -z "$CONFIG_SITE"; then
1419 if test "x$prefix" != xNONE; then
1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 else
1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423 fi
1424fi
1425for ac_site_file in $CONFIG_SITE; do
1426 if test -r "$ac_site_file"; then
1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428echo "$as_me: loading site script $ac_site_file" >&6;}
1429 sed 's/^/| /' "$ac_site_file" >&5
1430 . "$ac_site_file"
1431 fi
1432done
1433
1434if test -r "$cache_file"; then
1435 # Some versions of bash will fail to source /dev/null (special
1436 # files actually), so we avoid doing that.
1437 if test -f "$cache_file"; then
1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439echo "$as_me: loading cache $cache_file" >&6;}
1440 case $cache_file in
1441 [\\/]* | ?:[\\/]* ) . $cache_file;;
1442 *) . ./$cache_file;;
1443 esac
1444 fi
1445else
1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447echo "$as_me: creating cache $cache_file" >&6;}
1448 >$cache_file
1449fi
1450
1451# Check that the precious variables saved in the cache have kept the same
1452# value.
1453ac_cache_corrupted=false
1454for ac_var in `(set) 2>&1 |
32ddf007 1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457 eval ac_new_set=\$ac_env_${ac_var}_set
1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459 eval ac_new_val="\$ac_env_${ac_var}_value"
1460 case $ac_old_set,$ac_new_set in
1461 set,)
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1465 ,set)
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1469 ,);;
1470 *)
1471 if test "x$ac_old_val" != "x$ac_new_val"; then
32ddf007 1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1473echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
32ddf007 1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1475echo "$as_me: former value: $ac_old_val" >&2;}
32ddf007 1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1477echo "$as_me: current value: $ac_new_val" >&2;}
32ddf007 1478 ac_cache_corrupted=:
e6cc62c6
VS
1479 fi;;
1480 esac
1481 # Pass precious variables to config.status.
1482 if test "$ac_new_set" = set; then
1483 case $ac_new_val in
1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 *) ac_arg=$ac_var=$ac_new_val ;;
1487 esac
1488 case " $ac_configure_args " in
1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 esac
1492 fi
1493done
1494if $ac_cache_corrupted; then
1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499 { (exit 1); exit 1; }; }
1500fi
1501
1502ac_ext=c
1503ac_cpp='$CPP $CPPFLAGS'
1504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
698dcdb6 1524
8284b0c5 1525
7c66a493 1526
a0b9e27f
MB
1527
1528
a0b9e27f 1529
a0b9e27f 1530
a0b9e27f 1531
a0b9e27f 1532
a0b9e27f 1533
a0b9e27f 1534
e6cc62c6
VS
1535
1536
1537ac_aux_dir=
1538for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1539 if test -f $ac_dir/install-sh; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 break
1543 elif test -f $ac_dir/install.sh; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 break
1547 elif test -f $ac_dir/shtool; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/shtool install -c"
1550 break
1551 fi
1552done
1553if test -z "$ac_aux_dir"; then
1554 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1555echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1556 { (exit 1); exit 1; }; }
1557fi
1558ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
1562# Make sure we can run config.sub.
1563$ac_config_sub sun4 >/dev/null 2>&1 ||
1564 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1565echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568echo "$as_me:$LINENO: checking build system type" >&5
1569echo $ECHO_N "checking build system type... $ECHO_C" >&6
1570if test "${ac_cv_build+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573 ac_cv_build_alias=$build_alias
1574test -z "$ac_cv_build_alias" &&
1575 ac_cv_build_alias=`$ac_config_guess`
1576test -z "$ac_cv_build_alias" &&
1577 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1578echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1579 { (exit 1); exit 1; }; }
1580ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1587echo "${ECHO_T}$ac_cv_build" >&6
1588build=$ac_cv_build
1589build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594echo "$as_me:$LINENO: checking host system type" >&5
1595echo $ECHO_N "checking host system type... $ECHO_C" >&6
1596if test "${ac_cv_host+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598else
1599 ac_cv_host_alias=$host_alias
1600test -z "$ac_cv_host_alias" &&
1601 ac_cv_host_alias=$ac_cv_build_alias
1602ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1609echo "${ECHO_T}$ac_cv_host" >&6
1610host=$ac_cv_host
1611host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616echo "$as_me:$LINENO: checking target system type" >&5
1617echo $ECHO_N "checking target system type... $ECHO_C" >&6
1618if test "${ac_cv_target+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_target_alias=$target_alias
1622test "x$ac_cv_target_alias" = "x" &&
1623 ac_cv_target_alias=$ac_cv_host_alias
1624ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1631echo "${ECHO_T}$ac_cv_target" >&6
1632target=$ac_cv_target
1633target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638# The aliases save the names the user supplied, while $host etc.
1639# will get canonicalized.
1640test -n "$target_alias" &&
7c66a493
VZ
1641 test "$program_prefix$program_suffix$program_transform_name" = \
1642 NONENONEs,x,x, &&
1643 program_prefix=${target_alias}-
8284b0c5
MB
1644
1645
a0b9e27f 1646
10f2d63a 1647WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1648WX_MINOR_VERSION_NUMBER=5
e46d2a18 1649WX_RELEASE_NUMBER=1
10f2d63a 1650
10f2d63a 1651WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1652WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1653
978f1259
RL
1654WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1655
7015ef3a 1656WX_CURRENT=1
6426998c
RL
1657WX_REVISION=0
1658WX_AGE=0
1659
8284b0c5
MB
1660
1661
10f2d63a 1662USE_UNIX=1
73d617c9 1663USE_OS2=0
10f2d63a 1664USE_WIN32=0
f9bc1684 1665USE_DOS=0
b12915c1 1666USE_BEOS=0
1216f52d 1667USE_MAC=0
b12915c1 1668
10f2d63a 1669USE_AIX=
fe0895cf
VS
1670USE_BSD= USE_DARWIN= USE_FREEBSD=
1671USE_GNU= USE_HPUX=
89e3b3e4 1672USE_LINUX=
f6bcfd97 1673USE_NETBSD=
89e3b3e4 1674USE_OPENBSD=
fe0895cf
VS
1675USE_OSF= USE_SGI=
1676USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1677USE_ULTRIX=
89e3b3e4
VZ
1678USE_UNIXWARE=
1679
1680USE_ALPHA=
10f2d63a 1681
ab9b9eab
VZ
1682NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1683
ac0c4cc3 1684ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1685
ac0c4cc3 1686DEFAULT_wxUSE_COCOA=0
10f2d63a 1687DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1688DEFAULT_wxUSE_MAC=0
1689DEFAULT_wxUSE_MGL=0
1725144d 1690DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1691DEFAULT_wxUSE_MOTIF=0
1692DEFAULT_wxUSE_MSW=0
e07802fc 1693DEFAULT_wxUSE_PM=0
f79bd02d 1694DEFAULT_wxUSE_X11=0
10f2d63a 1695
ac0c4cc3 1696DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1697DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1698DEFAULT_DEFAULT_wxUSE_MAC=0
1699DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1700DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1701DEFAULT_DEFAULT_wxUSE_MOTIF=0
1702DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1703DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1704DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1705
d6a55c4b 1706PROGRAM_EXT=
3a922bb4 1707SO_SUFFIX=so
fe0895cf 1708SAMPLES_RPATH_FLAG=
0f1bc9c2 1709SAMPLES_RPATH_POSTLINK=
d6a55c4b 1710
10f2d63a
VZ
1711case "${host}" in
1712 *-hp-hpux* )
1713 USE_HPUX=1
1714 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1715 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1716 SO_SUFFIX=sl
e6cc62c6 1717 cat >>confdefs.h <<\_ACEOF
10f2d63a 1718#define __HPUX__ 1
e6cc62c6 1719_ACEOF
10f2d63a
VZ
1720
1721 ;;
1722 *-*-linux* )
1723 USE_LINUX=1
e6cc62c6 1724 cat >>confdefs.h <<\_ACEOF
10f2d63a 1725#define __LINUX__ 1
e6cc62c6 1726_ACEOF
10f2d63a
VZ
1727
1728 TMP=`uname -m`
1729 if test "x$TMP" = "xalpha"; then
1730 USE_ALPHA=1
e6cc62c6 1731 cat >>confdefs.h <<\_ACEOF
10f2d63a 1732#define __ALPHA__ 1
e6cc62c6 1733_ACEOF
fe0895cf
VS
1734
1735 fi
1736 DEFAULT_DEFAULT_wxUSE_GTK=1
1737 ;;
e1293dcf 1738 *-*-gnu* | *-*-k*bsd*-gnu )
fe0895cf 1739 USE_GNU=1
fe0895cf
VS
1740 TMP=`uname -m`
1741 if test "x$TMP" = "xalpha"; then
1742 USE_ALPHA=1
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
fe0895cf 1744#define __ALPHA__ 1
e6cc62c6 1745_ACEOF
10f2d63a
VZ
1746
1747 fi
1748 DEFAULT_DEFAULT_wxUSE_GTK=1
1749 ;;
1750 *-*-irix5* | *-*-irix6* )
1751 USE_SGI=1
1752 USE_SVR4=1
e6cc62c6 1753 cat >>confdefs.h <<\_ACEOF
10f2d63a 1754#define __SGI__ 1
e6cc62c6 1755_ACEOF
10f2d63a 1756
e6cc62c6 1757 cat >>confdefs.h <<\_ACEOF
10f2d63a 1758#define __SVR4__ 1
e6cc62c6 1759_ACEOF
10f2d63a
VZ
1760
1761 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1762 ;;
1763 *-*-solaris2* )
1764 USE_SUN=1
1765 USE_SOLARIS=1
1766 USE_SVR4=1
e6cc62c6 1767 cat >>confdefs.h <<\_ACEOF
10f2d63a 1768#define __SUN__ 1
e6cc62c6 1769_ACEOF
10f2d63a 1770
e6cc62c6 1771 cat >>confdefs.h <<\_ACEOF
10f2d63a 1772#define __SOLARIS__ 1
e6cc62c6 1773_ACEOF
10f2d63a 1774
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
10f2d63a 1776#define __SVR4__ 1
e6cc62c6 1777_ACEOF
10f2d63a
VZ
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1780 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1781 ;;
1782 *-*-sunos4* )
1783 USE_SUN=1
1784 USE_SUNOS=1
1785 USE_BSD=1
e6cc62c6 1786 cat >>confdefs.h <<\_ACEOF
10f2d63a 1787#define __SUN__ 1
e6cc62c6 1788_ACEOF
10f2d63a 1789
e6cc62c6 1790 cat >>confdefs.h <<\_ACEOF
10f2d63a 1791#define __SUNOS__ 1
e6cc62c6 1792_ACEOF
10f2d63a 1793
e6cc62c6 1794 cat >>confdefs.h <<\_ACEOF
10f2d63a 1795#define __BSD__ 1
e6cc62c6 1796_ACEOF
10f2d63a
VZ
1797
1798 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1799 ;;
f6bcfd97 1800 *-*-freebsd*)
10f2d63a
VZ
1801 USE_BSD=1
1802 USE_FREEBSD=1
e6cc62c6 1803 cat >>confdefs.h <<\_ACEOF
10f2d63a 1804#define __FREEBSD__ 1
e6cc62c6 1805_ACEOF
10f2d63a 1806
e6cc62c6 1807 cat >>confdefs.h <<\_ACEOF
10f2d63a 1808#define __BSD__ 1
e6cc62c6 1809_ACEOF
95c8801c
VS
1810
1811 DEFAULT_DEFAULT_wxUSE_GTK=1
1812 ;;
1813 *-*-openbsd*)
1814 USE_BSD=1
1815 USE_OPENBSD=1
e6cc62c6 1816 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1817#define __OPENBSD__ 1
e6cc62c6 1818_ACEOF
95c8801c 1819
e6cc62c6 1820 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1821#define __BSD__ 1
e6cc62c6 1822_ACEOF
f6bcfd97
BP
1823
1824 DEFAULT_DEFAULT_wxUSE_GTK=1
1825 ;;
1826 *-*-netbsd*)
1827 USE_BSD=1
1828 USE_NETBSD=1
e6cc62c6 1829 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1830#define __NETBSD__ 1
e6cc62c6 1831_ACEOF
f6bcfd97 1832
e6cc62c6 1833 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1834#define __BSD__ 1
e6cc62c6 1835_ACEOF
10f2d63a
VZ
1836
1837 DEFAULT_DEFAULT_wxUSE_GTK=1
1838 ;;
1839 *-*-osf* )
1840 USE_ALPHA=1
1841 USE_OSF=1
e6cc62c6 1842 cat >>confdefs.h <<\_ACEOF
10f2d63a 1843#define __ALPHA__ 1
e6cc62c6 1844_ACEOF
10f2d63a 1845
e6cc62c6 1846 cat >>confdefs.h <<\_ACEOF
10f2d63a 1847#define __OSF__ 1
e6cc62c6 1848_ACEOF
10f2d63a
VZ
1849
1850 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1851 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1852 ;;
1853 *-*-dgux5* )
1854 USE_ALPHA=1
1855 USE_SVR4=1
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
10f2d63a 1857#define __ALPHA__ 1
e6cc62c6 1858_ACEOF
10f2d63a 1859
e6cc62c6 1860 cat >>confdefs.h <<\_ACEOF
10f2d63a 1861#define __SVR4__ 1
e6cc62c6 1862_ACEOF
10f2d63a
VZ
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 ;;
1866 *-*-sysv5* )
1867 USE_SYSV=1
1868 USE_SVR4=1
e6cc62c6 1869 cat >>confdefs.h <<\_ACEOF
10f2d63a 1870#define __SYSV__ 1
e6cc62c6 1871_ACEOF
10f2d63a 1872
e6cc62c6 1873 cat >>confdefs.h <<\_ACEOF
10f2d63a 1874#define __SVR4__ 1
e6cc62c6 1875_ACEOF
10f2d63a
VZ
1876
1877 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1878 ;;
1879 *-*-aix* )
1880 USE_AIX=1
1881 USE_SYSV=1
1882 USE_SVR4=1
2b5f62a0 1883 SO_SUFFIX=a
e6cc62c6 1884 cat >>confdefs.h <<\_ACEOF
10f2d63a 1885#define __AIX__ 1
e6cc62c6 1886_ACEOF
10f2d63a 1887
e6cc62c6 1888 cat >>confdefs.h <<\_ACEOF
10f2d63a 1889#define __SYSV__ 1
e6cc62c6 1890_ACEOF
10f2d63a 1891
e6cc62c6 1892 cat >>confdefs.h <<\_ACEOF
10f2d63a 1893#define __SVR4__ 1
e6cc62c6 1894_ACEOF
10f2d63a
VZ
1895
1896 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1897 ;;
1898
89e3b3e4
VZ
1899 *-*-*UnixWare*)
1900 USE_SYSV=1
1901 USE_SVR4=1
1902 USE_UNIXWARE=1
e6cc62c6 1903 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1904#define __UNIXWARE__ 1
e6cc62c6 1905_ACEOF
89e3b3e4
VZ
1906
1907 ;;
1908
1c8183e2 1909 *-*-cygwin* | *-*-mingw32* )
17234b26 1910 SO_SUFFIX=dll
cf27ef00 1911 PROGRAM_EXT=".exe"
7b7a7637 1912 RESCOMP=windres
10f2d63a
VZ
1913 DEFAULT_DEFAULT_wxUSE_MSW=1
1914 ;;
1915
f9bc1684
VS
1916 *-pc-msdosdjgpp )
1917 USE_UNIX=0
1918 USE_DOS=1
e6cc62c6 1919 cat >>confdefs.h <<\_ACEOF
f9bc1684 1920#define __DOS__ 1
e6cc62c6 1921_ACEOF
f9bc1684
VS
1922
1923 PROGRAM_EXT=".exe"
1924 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1925 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1926 ;;
1927
6fa882bd 1928 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1929 cat >>confdefs.h <<\_ACEOF
10f2d63a 1930#define __EMX__ 1
e6cc62c6 1931_ACEOF
10f2d63a 1932
73d617c9 1933 USE_OS2=1
7015ef3a
VZ
1934 cat >>confdefs.h <<\_ACEOF
1935#define __OS2__ 1
1936_ACEOF
1937
cf27ef00 1938 PROGRAM_EXT=".exe"
e07802fc 1939 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1940 CXX=gcc
32ddf007 1941 LDFLAGS="$LDFLAGS -Zcrtdll"
d5fc095c
VS
1942 ac_executable_extensions=".exe"
1943 export ac_executable_extensions
1944 ac_save_IFS="$IFS"
e46d2a18 1945 IFS='\\'
d5fc095c
VS
1946 ac_TEMP_PATH=
1947 for ac_dir in $PATH; do
1948 IFS=$ac_save_IFS
1949 if test -z "$ac_TEMP_PATH"; then
1950 ac_TEMP_PATH="$ac_dir"
1951 else
1952 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1953 fi
1954 done
1955 export PATH="$ac_TEMP_PATH"
1956 unset ac_TEMP_PATH
10f2d63a
VZ
1957 ;;
1958
d08b457b
GD
1959 powerpc-*-darwin* )
1960 USE_BSD=1
f11bdd03 1961 USE_DARWIN=1
3a922bb4 1962 SO_SUFFIX=dylib
e6cc62c6 1963 cat >>confdefs.h <<\_ACEOF
f11bdd03 1964#define __BSD__ 1
e6cc62c6 1965_ACEOF
b4085ce6 1966
e6cc62c6 1967 cat >>confdefs.h <<\_ACEOF
f11bdd03 1968#define __DARWIN__ 1
e6cc62c6 1969_ACEOF
d08b457b 1970
e6cc62c6 1971 cat >>confdefs.h <<\_ACEOF
d08b457b 1972#define __POWERPC__ 1
e6cc62c6 1973_ACEOF
82d43113 1974
e6cc62c6 1975 cat >>confdefs.h <<\_ACEOF
82d43113 1976#define TARGET_CARBON 1
e6cc62c6 1977_ACEOF
b4085ce6
GD
1978
1979 DEFAULT_DEFAULT_wxUSE_MAC=1
1980 ;;
1981
b12915c1
VZ
1982 *-*-beos* )
1983 USE_BEOS=1
e6cc62c6 1984 cat >>confdefs.h <<\_ACEOF
b12915c1 1985#define __BEOS__ 1
e6cc62c6 1986_ACEOF
b12915c1
VZ
1987
1988 ;;
1989
10f2d63a 1990 *)
e6cc62c6
VS
1991 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1992echo "$as_me: error: unknown system type ${host}." >&2;}
1993 { (exit 1); exit 1; }; }
10f2d63a
VZ
1994esac
1995
8284b0c5
MB
1996
1997
1998
1999 wx_arg_cache_file="configarg.cache"
2000 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
2001 rm -f ${wx_arg_cache_file}.tmp
2002 touch ${wx_arg_cache_file}.tmp
2003 touch ${wx_arg_cache_file}
e6cc62c6 2004
10f2d63a
VZ
2005
2006DEBUG_CONFIGURE=0
2007if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2008 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2009 DEFAULT_wxUSE_STL=no
1e6feb95 2010
d8356fa3
VZ
2011 DEFAULT_wxUSE_NANOX=no
2012
10f2d63a
VZ
2013 DEFAULT_wxUSE_THREADS=yes
2014
2015 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2016 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2017 DEFAULT_wxUSE_PROFILE=no
2018 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2019 DEFAULT_wxUSE_NO_RTTI=no
2020 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2021 DEFAULT_wxUSE_PERMISSIVE=no
2022 DEFAULT_wxUSE_DEBUG_FLAG=yes
2023 DEFAULT_wxUSE_DEBUG_INFO=yes
2024 DEFAULT_wxUSE_DEBUG_GDB=yes
2025 DEFAULT_wxUSE_MEM_TRACING=no
2026 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2027 DEFAULT_wxUSE_DMALLOC=no
2028 DEFAULT_wxUSE_APPLE_IEEE=no
2029
e46d2a18 2030 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2031 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2032 DEFAULT_wxUSE_LOGWINDOW=no
2033 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2034 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2035
2036 DEFAULT_wxUSE_GUI=yes
1e6feb95 2037 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2038
3e44f09d 2039 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2040 DEFAULT_wxUSE_XML=no
2041 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2042 DEFAULT_wxUSE_ZLIB=no
2043 DEFAULT_wxUSE_LIBPNG=no
2044 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2045 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2046 DEFAULT_wxUSE_LIBXPM=no
f93ca9fd
VS
2047 DEFAULT_wxUSE_LIBMSPACK=no
2048 DEFAULT_wxUSE_LIBSDL=no
10f2d63a 2049 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2050 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2051
eb4efbdc 2052 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2053 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2054 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2055 DEFAULT_wxUSE_CMDLINE_PARSER=no
2056 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2057 DEFAULT_wxUSE_TIMER=no
2058 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2059 DEFAULT_wxUSE_FILE=no
1e6feb95 2060 DEFAULT_wxUSE_FFILE=no
a3a584a7 2061 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2062 DEFAULT_wxUSE_TEXTFILE=no
002ed9af 2063 DEFAULT_wxUSE_SOUND=no
10f2d63a
VZ
2064 DEFAULT_wxUSE_INTL=no
2065 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2066 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2067 DEFAULT_wxUSE_STREAMS=no
2068 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2069 DEFAULT_wxUSE_OLE=no
2070 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2071 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2072 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2073 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2074 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2075 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2076 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2077
2078 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2079 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2080 DEFAULT_wxUSE_POSTSCRIPT=no
2081
10f2d63a
VZ
2082 DEFAULT_wxUSE_CLIPBOARD=no
2083 DEFAULT_wxUSE_TOOLTIPS=no
2084 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2085 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2086 DEFAULT_wxUSE_SPLINES=no
2087
2088 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2089 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2090 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2091
10f2d63a
VZ
2092 DEFAULT_wxUSE_RESOURCES=no
2093 DEFAULT_wxUSE_CONSTRAINTS=no
2094 DEFAULT_wxUSE_IPC=no
2095 DEFAULT_wxUSE_HELP=no
29fd3c0c 2096 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2097 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2098 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2099 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2100 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2101 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2102 DEFAULT_wxUSE_PROTOCOL=no
2103 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2104 DEFAULT_wxUSE_PROTOCOL_FTP=no
2105 DEFAULT_wxUSE_PROTOCOL_FILE=no
2106 DEFAULT_wxUSE_URL=no
3bd8fb5f 2107
10f2d63a 2108 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2109 DEFAULT_wxUSE_CHOICEDLG=no
2110 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2111 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2112 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2113 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2114 DEFAULT_wxUSE_FONTDLG=no
2115 DEFAULT_wxUSE_MSGDLG=no
2116 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2117 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2118 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2119 DEFAULT_wxUSE_STARTUP_TIPS=no
2120 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2121 DEFAULT_wxUSE_WIZARDDLG=no
2122
1e6feb95 2123 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2124 DEFAULT_wxUSE_MINIFRAME=no
2125 DEFAULT_wxUSE_HTML=no
24528b0c 2126 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2127 DEFAULT_wxUSE_FS_INET=no
2128 DEFAULT_wxUSE_FS_ZIP=no
2129 DEFAULT_wxUSE_BUSYINFO=no
2130 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2131 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2132 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2133
2134 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2135 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2136 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2137 DEFAULT_wxUSE_CALCTRL=no
2138 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2139 DEFAULT_wxUSE_CHECKBOX=no
2140 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2141 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2142 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2143 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2144 DEFAULT_wxUSE_GAUGE=no
2145 DEFAULT_wxUSE_GRID=no
10f2d63a 2146 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2147 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2148 DEFAULT_wxUSE_LISTBOX=no
2149 DEFAULT_wxUSE_LISTCTRL=no
2150 DEFAULT_wxUSE_NOTEBOOK=no
2151 DEFAULT_wxUSE_RADIOBOX=no
2152 DEFAULT_wxUSE_RADIOBTN=no
2153 DEFAULT_wxUSE_SASH=no
2154 DEFAULT_wxUSE_SCROLLBAR=no
2155 DEFAULT_wxUSE_SLIDER=no
2156 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2157 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2158 DEFAULT_wxUSE_SPLITTER=no
2159 DEFAULT_wxUSE_STATBMP=no
2160 DEFAULT_wxUSE_STATBOX=no
2161 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2162 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2163 DEFAULT_wxUSE_STATUSBAR=yes
2164 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2165 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2166 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2167 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2168 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2169 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2170 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2171 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2172 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2173
2174 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2175 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2176 DEFAULT_wxUSE_WCSRTOMBS=no
2177
edae8572 2178 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2179 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2180 DEFAULT_wxUSE_GIF=no
2181 DEFAULT_wxUSE_PCX=no
2182 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2183 DEFAULT_wxUSE_IFF=no
0046ff7c 2184 DEFAULT_wxUSE_XPM=no
658974ae 2185 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2186 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2187
e9e0dc15 2188 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2189 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2190 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2191else
1e6feb95 2192 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2193 DEFAULT_wxUSE_STL=no
1e6feb95 2194
d8356fa3
VZ
2195 DEFAULT_wxUSE_NANOX=no
2196
10f2d63a
VZ
2197 DEFAULT_wxUSE_THREADS=yes
2198
2199 DEFAULT_wxUSE_SHARED=yes
2200 DEFAULT_wxUSE_OPTIMISE=yes
2201 DEFAULT_wxUSE_PROFILE=no
2202 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2203 DEFAULT_wxUSE_NO_RTTI=no
2204 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2205 DEFAULT_wxUSE_PERMISSIVE=no
2206 DEFAULT_wxUSE_DEBUG_FLAG=no
2207 DEFAULT_wxUSE_DEBUG_INFO=no
2208 DEFAULT_wxUSE_DEBUG_GDB=no
2209 DEFAULT_wxUSE_MEM_TRACING=no
2210 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2211 DEFAULT_wxUSE_DMALLOC=no
2212 DEFAULT_wxUSE_APPLE_IEEE=yes
2213
e46d2a18 2214 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2215 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2216 DEFAULT_wxUSE_LOGWINDOW=yes
2217 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2218 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2219
2220 DEFAULT_wxUSE_GUI=yes
2221
aa2d9ecc 2222 DEFAULT_wxUSE_REGEX=yes
672abd7a 2223 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2224 DEFAULT_wxUSE_EXPAT=yes
2225 DEFAULT_wxUSE_ZLIB=yes
2226 DEFAULT_wxUSE_LIBPNG=yes
2227 DEFAULT_wxUSE_LIBJPEG=yes
2228 DEFAULT_wxUSE_LIBTIFF=yes
2229 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2230 DEFAULT_wxUSE_LIBMSPACK=yes
f93ca9fd 2231 DEFAULT_wxUSE_LIBSDL=no
16b52fa1 2232 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2233 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2234
eb4efbdc 2235 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2236 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2237 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2238 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2239 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2240 DEFAULT_wxUSE_TIMER=yes
2241 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2242 DEFAULT_wxUSE_FILE=yes
1e6feb95 2243 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2244 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2245 DEFAULT_wxUSE_TEXTFILE=yes
002ed9af 2246 DEFAULT_wxUSE_SOUND=yes
10f2d63a
VZ
2247 DEFAULT_wxUSE_INTL=yes
2248 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2249 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2250 DEFAULT_wxUSE_STREAMS=yes
2251 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2252 DEFAULT_wxUSE_OLE=yes
2253 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2254 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2255 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2256 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2257 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2258 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2259 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2260
2261 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2262 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2263 DEFAULT_wxUSE_POSTSCRIPT=yes
2264
10f2d63a
VZ
2265 DEFAULT_wxUSE_CLIPBOARD=yes
2266 DEFAULT_wxUSE_TOOLTIPS=yes
2267 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2268 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2269 DEFAULT_wxUSE_SPLINES=yes
2270
2271 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2272 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2273 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2274
2b5f62a0 2275 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2276 DEFAULT_wxUSE_CONSTRAINTS=yes
2277 DEFAULT_wxUSE_IPC=yes
2278 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2279 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2280 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2281 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2282 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2283 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2284 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2285 DEFAULT_wxUSE_PROTOCOL=yes
2286 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2287 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2288 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2289 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2290
2291 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2292 DEFAULT_wxUSE_CHOICEDLG=yes
2293 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2294 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2295 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2296 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2297 DEFAULT_wxUSE_FONTDLG=yes
2298 DEFAULT_wxUSE_MSGDLG=yes
2299 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2300 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2301 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2302 DEFAULT_wxUSE_STARTUP_TIPS=yes
2303 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2304 DEFAULT_wxUSE_WIZARDDLG=yes
2305
1e6feb95 2306 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2307 DEFAULT_wxUSE_MINIFRAME=yes
2308 DEFAULT_wxUSE_HTML=yes
24528b0c 2309 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2310 DEFAULT_wxUSE_FS_INET=yes
2311 DEFAULT_wxUSE_FS_ZIP=yes
2312 DEFAULT_wxUSE_BUSYINFO=yes
2313 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2314 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2315 DEFAULT_wxUSE_VALIDATORS=yes
2316
2317 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2318 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2319 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2320 DEFAULT_wxUSE_CALCTRL=yes
2321 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2322 DEFAULT_wxUSE_CHECKBOX=yes
2323 DEFAULT_wxUSE_CHECKLST=yes
2324 DEFAULT_wxUSE_CHOICE=yes
2325 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2326 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2327 DEFAULT_wxUSE_GAUGE=yes
2328 DEFAULT_wxUSE_GRID=yes
10f2d63a 2329 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2330 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2331 DEFAULT_wxUSE_LISTBOX=yes
2332 DEFAULT_wxUSE_LISTCTRL=yes
2333 DEFAULT_wxUSE_NOTEBOOK=yes
2334 DEFAULT_wxUSE_RADIOBOX=yes
2335 DEFAULT_wxUSE_RADIOBTN=yes
2336 DEFAULT_wxUSE_SASH=yes
2337 DEFAULT_wxUSE_SCROLLBAR=yes
2338 DEFAULT_wxUSE_SLIDER=yes
2339 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2340 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2341 DEFAULT_wxUSE_SPLITTER=yes
2342 DEFAULT_wxUSE_STATBMP=yes
2343 DEFAULT_wxUSE_STATBOX=yes
2344 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2345 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2346 DEFAULT_wxUSE_STATUSBAR=yes
2347 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2348 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2349 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2350 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2351 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2352 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2353 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2354 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2355 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2356
2357 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2358 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2359 DEFAULT_wxUSE_WCSRTOMBS=no
2360
edae8572 2361 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2362 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2363 DEFAULT_wxUSE_GIF=yes
2364 DEFAULT_wxUSE_PCX=yes
cc0e8480 2365 DEFAULT_wxUSE_IFF=no
10f2d63a 2366 DEFAULT_wxUSE_PNM=yes
0046ff7c 2367 DEFAULT_wxUSE_XPM=yes
658974ae 2368 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2369 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2370
e9e0dc15 2371 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2372 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2373 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2374fi
2375
8284b0c5
MB
2376
2377
10f2d63a 2378for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2379 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2380 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2381 has_toolkit_in_cache=1
2382 eval "DEFAULT_$LINE"
2383 eval "CACHE_$toolkit=1"
2384 fi
2385done
2386
8284b0c5
MB
2387
2388
5005acfe 2389 enablestring=
e6cc62c6
VS
2390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2391echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2392 no_cache=0
2393 # Check whether --enable-gui or --disable-gui was given.
2394if test "${enable_gui+set}" = set; then
2395 enableval="$enable_gui"
e6cc62c6 2396
10f2d63a
VZ
2397 if test "$enableval" = yes; then
2398 ac_cv_use_gui='wxUSE_GUI=yes'
2399 else
2400 ac_cv_use_gui='wxUSE_GUI=no'
2401 fi
e6cc62c6 2402
10f2d63a 2403else
e6cc62c6 2404
10f2d63a
VZ
2405 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2406 if test "x$LINE" != x ; then
2407 eval "DEFAULT_$LINE"
2408 else
2409 no_cache=1
2410 fi
2411
2412 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2413
e6cc62c6 2414fi;
10f2d63a
VZ
2415
2416 eval "$ac_cv_use_gui"
2417 if test "$no_cache" != 1; then
2418 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2419 fi
2420
2421 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2422 echo "$as_me:$LINENO: result: yes" >&5
2423echo "${ECHO_T}yes" >&6
10f2d63a 2424 else
e6cc62c6
VS
2425 echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6
10f2d63a 2427 fi
e6cc62c6 2428
10f2d63a 2429
9747f85d
VS
2430 enablestring=
2431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2432echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2433 no_cache=0
2434 # Check whether --enable-monolithic or --disable-monolithic was given.
2435if test "${enable_monolithic+set}" = set; then
2436 enableval="$enable_monolithic"
2437
2438 if test "$enableval" = yes; then
2439 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2440 else
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2442 fi
2443
2444else
2445
2446 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2447 if test "x$LINE" != x ; then
2448 eval "DEFAULT_$LINE"
2449 else
2450 no_cache=1
2451 fi
2452
2453 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2454
2455fi;
2456
2457 eval "$ac_cv_use_monolithic"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_MONOLITHIC" = yes; then
2463 echo "$as_me:$LINENO: result: yes" >&5
2464echo "${ECHO_T}yes" >&6
2465 else
2466 echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6
2468 fi
2469
2470
f93ca9fd
VS
2471 enablestring=
2472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2473echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2474 no_cache=0
2475 # Check whether --enable-plugins or --disable-plugins was given.
2476if test "${enable_plugins+set}" = set; then
2477 enableval="$enable_plugins"
2478
2479 if test "$enableval" = yes; then
2480 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2481 else
2482 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2483 fi
2484
2485else
2486
2487 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2488 if test "x$LINE" != x ; then
2489 eval "DEFAULT_$LINE"
2490 else
2491 no_cache=1
2492 fi
2493
2494 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2495
2496fi;
2497
2498 eval "$ac_cv_use_plugins"
2499 if test "$no_cache" != 1; then
2500 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2501 fi
2502
2503 if test "$wxUSE_PLUGINS" = yes; then
2504 echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6
2506 else
2507 echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6
2509 fi
2510
2511
b12915c1 2512if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2513
8284b0c5 2514
5005acfe 2515 enablestring=
e6cc62c6
VS
2516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2517echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2518 no_cache=0
2519 # Check whether --enable-universal or --disable-universal was given.
2520if test "${enable_universal+set}" = set; then
2521 enableval="$enable_universal"
e6cc62c6 2522
1e6feb95
VZ
2523 if test "$enableval" = yes; then
2524 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2525 else
2526 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2527 fi
e6cc62c6 2528
1e6feb95 2529else
e6cc62c6 2530
1e6feb95
VZ
2531 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2539
e6cc62c6 2540fi;
1e6feb95
VZ
2541
2542 eval "$ac_cv_use_universal"
2543 if test "$no_cache" != 1; then
2544 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2545 fi
2546
2547 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2548 echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
1e6feb95 2550 else
e6cc62c6
VS
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
1e6feb95 2553 fi
e6cc62c6
VS
2554
2555
10f2d63a
VZ
2556# Check whether --with-gtk or --without-gtk was given.
2557if test "${with_gtk+set}" = set; then
2558 withval="$with_gtk"
2559 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2560fi;
10f2d63a
VZ
2561
2562# Check whether --with-motif or --without-motif was given.
2563if test "${with_motif+set}" = set; then
2564 withval="$with_motif"
2565 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2566fi;
10f2d63a 2567
b4085ce6
GD
2568# Check whether --with-mac or --without-mac was given.
2569if test "${with_mac+set}" = set; then
2570 withval="$with_mac"
2571 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2572fi;
b4085ce6 2573
ac0c4cc3
DE
2574# Check whether --with-cocoa or --without-cocoa was given.
2575if test "${with_cocoa+set}" = set; then
2576 withval="$with_cocoa"
2577 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2578fi;
ac0c4cc3 2579
10f2d63a
VZ
2580# Check whether --with-wine or --without-wine was given.
2581if test "${with_wine+set}" = set; then
2582 withval="$with_wine"
89e6bf6d 2583 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2584fi;
10f2d63a 2585
77e13408
RL
2586# Check whether --with-msw or --without-msw was given.
2587if test "${with_msw+set}" = set; then
2588 withval="$with_msw"
b4efce5e 2589 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2590fi;
10f2d63a 2591
e07802fc
VZ
2592# Check whether --with-pm or --without-pm was given.
2593if test "${with_pm+set}" = set; then
2594 withval="$with_pm"
2595 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2596fi;
698dcdb6 2597
1e6feb95
VZ
2598# Check whether --with-mgl or --without-mgl was given.
2599if test "${with_mgl+set}" = set; then
2600 withval="$with_mgl"
6c657b52 2601 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2602fi;
1e6feb95 2603
1725144d
RR
2604# Check whether --with-microwin or --without-microwin was given.
2605if test "${with_microwin+set}" = set; then
2606 withval="$with_microwin"
2607 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2608fi;
1725144d 2609
f79bd02d
JS
2610# Check whether --with-x11 or --without-x11 was given.
2611if test "${with_x11+set}" = set; then
2612 withval="$with_x11"
3c011993 2613 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2614fi;
a0b9e27f 2615
5005acfe 2616 enablestring=
e6cc62c6
VS
2617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2618echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2619 no_cache=0
ba875e66
VZ
2620 # Check whether --enable-nanox or --disable-nanox was given.
2621if test "${enable_nanox+set}" = set; then
2622 enableval="$enable_nanox"
e6cc62c6 2623
d8356fa3 2624 if test "$enableval" = yes; then
ba875e66 2625 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2626 else
ba875e66 2627 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2628 fi
e6cc62c6 2629
d8356fa3 2630else
e6cc62c6 2631
d8356fa3
VZ
2632 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2633 if test "x$LINE" != x ; then
2634 eval "DEFAULT_$LINE"
2635 else
2636 no_cache=1
2637 fi
2638
ba875e66 2639 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2640
e6cc62c6 2641fi;
d8356fa3 2642
ba875e66 2643 eval "$ac_cv_use_nanox"
d8356fa3 2644 if test "$no_cache" != 1; then
ba875e66 2645 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2646 fi
2647
2648 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2649 echo "$as_me:$LINENO: result: yes" >&5
2650echo "${ECHO_T}yes" >&6
d8356fa3 2651 else
e6cc62c6
VS
2652 echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6
d8356fa3 2654 fi
e6cc62c6 2655
8284b0c5 2656
d74f4b5a 2657
5005acfe 2658 enablestring=
e6cc62c6
VS
2659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2660echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2661 no_cache=0
2662 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2663if test "${enable_gtk2+set}" = set; then
2664 enableval="$enable_gtk2"
e6cc62c6 2665
d74f4b5a
VZ
2666 if test "$enableval" = yes; then
2667 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2668 else
2669 ac_cv_use_gtk2='wxUSE_GTK2=no'
2670 fi
e6cc62c6 2671
10f2d63a 2672else
e6cc62c6 2673
d74f4b5a
VZ
2674 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2682
e6cc62c6 2683fi;
328a083c 2684
d74f4b5a
VZ
2685 eval "$ac_cv_use_gtk2"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2691 echo "$as_me:$LINENO: result: yes" >&5
2692echo "${ECHO_T}yes" >&6
d74f4b5a 2693 else
e6cc62c6
VS
2694 echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6
d74f4b5a 2696 fi
d74f4b5a 2697
5c6fa7d2 2698
0f87e84c
RR
2699 enablestring=
2700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2701echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2702 no_cache=0
2703 # Check whether --enable-gpe or --disable-gpe was given.
2704if test "${enable_gpe+set}" = set; then
2705 enableval="$enable_gpe"
2706
2707 if test "$enableval" = yes; then
2708 ac_cv_use_gpe='wxUSE_GPE=yes'
2709 else
2710 ac_cv_use_gpe='wxUSE_GPE=no'
2711 fi
2712
2713else
2714
2715 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2716 if test "x$LINE" != x ; then
2717 eval "DEFAULT_$LINE"
2718 else
2719 no_cache=1
2720 fi
2721
2722 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2723
2724fi;
2725
2726 eval "$ac_cv_use_gpe"
2727 if test "$no_cache" != 1; then
2728 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2729 fi
2730
2731 if test "$wxUSE_GPE" = yes; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
2734 else
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
2737 fi
2738
2739
e6cc62c6
VS
2740
2741 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2742echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2743 no_cache=0
e6cc62c6
VS
2744
2745# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2746if test "${with_libpng+set}" = set; then
2747 withval="$with_libpng"
e6cc62c6 2748
10f2d63a 2749 if test "$withval" = yes; then
b12915c1 2750 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2751 elif test "$withval" = no; then
b12915c1 2752 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2753 elif test "$withval" = sys; then
2754 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2755 elif test "$withval" = builtin; then
2756 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2757 else
e6cc62c6
VS
2758 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2759echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2760 { (exit 1); exit 1; }; }
10f2d63a 2761 fi
e6cc62c6 2762
10f2d63a 2763else
e6cc62c6 2764
b12915c1 2765 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2766 if test "x$LINE" != x ; then
2767 eval "DEFAULT_$LINE"
2768 else
2769 no_cache=1
2770 fi
2771
b12915c1 2772 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2773
e6cc62c6 2774fi;
10f2d63a 2775
b12915c1 2776 eval "$ac_cv_use_libpng"
10f2d63a 2777 if test "$no_cache" != 1; then
b12915c1 2778 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2779 fi
2780
b12915c1 2781 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2782 echo "$as_me:$LINENO: result: yes" >&5
2783echo "${ECHO_T}yes" >&6
422107f9 2784 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2785 echo "$as_me:$LINENO: result: no" >&5
2786echo "${ECHO_T}no" >&6
422107f9 2787 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2788 echo "$as_me:$LINENO: result: system version" >&5
2789echo "${ECHO_T}system version" >&6
4f14bcd8 2790 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2791 echo "$as_me:$LINENO: result: builtin version" >&5
2792echo "${ECHO_T}builtin version" >&6
422107f9 2793 else
e6cc62c6
VS
2794 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2795echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2796 { (exit 1); exit 1; }; }
10f2d63a 2797 fi
10f2d63a 2798
e6cc62c6
VS
2799
2800 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2801echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2802 no_cache=0
e6cc62c6
VS
2803
2804# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2805if test "${with_libjpeg+set}" = set; then
2806 withval="$with_libjpeg"
e6cc62c6 2807
10f2d63a 2808 if test "$withval" = yes; then
b12915c1 2809 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2810 elif test "$withval" = no; then
b12915c1 2811 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2812 elif test "$withval" = sys; then
2813 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2814 elif test "$withval" = builtin; then
2815 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2816 else
e6cc62c6
VS
2817 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2818echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2819 { (exit 1); exit 1; }; }
10f2d63a 2820 fi
e6cc62c6 2821
10f2d63a 2822else
e6cc62c6 2823
b12915c1 2824 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2825 if test "x$LINE" != x ; then
2826 eval "DEFAULT_$LINE"
2827 else
2828 no_cache=1
2829 fi
2830
b12915c1 2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2832
e6cc62c6 2833fi;
10f2d63a 2834
b12915c1 2835 eval "$ac_cv_use_libjpeg"
10f2d63a 2836 if test "$no_cache" != 1; then
b12915c1 2837 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2838 fi
2839
b12915c1 2840 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2841 echo "$as_me:$LINENO: result: yes" >&5
2842echo "${ECHO_T}yes" >&6
422107f9 2843 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2844 echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6
422107f9 2846 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2847 echo "$as_me:$LINENO: result: system version" >&5
2848echo "${ECHO_T}system version" >&6
4f14bcd8 2849 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2850 echo "$as_me:$LINENO: result: builtin version" >&5
2851echo "${ECHO_T}builtin version" >&6
422107f9 2852 else
e6cc62c6
VS
2853 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2854echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2855 { (exit 1); exit 1; }; }
10f2d63a 2856 fi
10f2d63a 2857
e6cc62c6
VS
2858
2859 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2860echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2861 no_cache=0
e6cc62c6
VS
2862
2863# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2864if test "${with_libtiff+set}" = set; then
2865 withval="$with_libtiff"
e6cc62c6 2866
10f2d63a 2867 if test "$withval" = yes; then
b12915c1 2868 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2869 elif test "$withval" = no; then
b12915c1 2870 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2871 elif test "$withval" = sys; then
2872 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2873 elif test "$withval" = builtin; then
2874 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2875 else
e6cc62c6
VS
2876 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2877echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2878 { (exit 1); exit 1; }; }
10f2d63a 2879 fi
e6cc62c6 2880
10f2d63a 2881else
e6cc62c6 2882
b12915c1 2883 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2884 if test "x$LINE" != x ; then
2885 eval "DEFAULT_$LINE"
2886 else
2887 no_cache=1
2888 fi
2889
b12915c1 2890 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2891
e6cc62c6 2892fi;
10f2d63a 2893
b12915c1 2894 eval "$ac_cv_use_libtiff"
10f2d63a 2895 if test "$no_cache" != 1; then
b12915c1 2896 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2897 fi
2898
b12915c1 2899 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2900 echo "$as_me:$LINENO: result: yes" >&5
2901echo "${ECHO_T}yes" >&6
0dcf9893 2902 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2903 echo "$as_me:$LINENO: result: no" >&5
2904echo "${ECHO_T}no" >&6
0dcf9893 2905 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2906 echo "$as_me:$LINENO: result: system version" >&5
2907echo "${ECHO_T}system version" >&6
4f14bcd8 2908 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2909 echo "$as_me:$LINENO: result: builtin version" >&5
2910echo "${ECHO_T}builtin version" >&6
0dcf9893 2911 else
e6cc62c6
VS
2912 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2913echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2914 { (exit 1); exit 1; }; }
10f2d63a 2915 fi
10f2d63a 2916
e6cc62c6 2917
89fe663f
VZ
2918 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2919echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2920 no_cache=0
2921
2922# Check whether --with-libxpm or --without-libxpm was given.
2923if test "${with_libxpm+set}" = set; then
2924 withval="$with_libxpm"
2925
2926 if test "$withval" = yes; then
2927 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2928 elif test "$withval" = no; then
2929 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2930 elif test "$withval" = sys; then
2931 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2932 elif test "$withval" = builtin; then
2933 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2934 else
2935 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2936echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2937 { (exit 1); exit 1; }; }
2938 fi
2939
2940else
2941
2942 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2943 if test "x$LINE" != x ; then
2944 eval "DEFAULT_$LINE"
2945 else
2946 no_cache=1
2947 fi
2948
2949 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2950
2951fi;
2952
2953 eval "$ac_cv_use_libxpm"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$wxUSE_LIBXPM" = yes; then
2959 echo "$as_me:$LINENO: result: yes" >&5
2960echo "${ECHO_T}yes" >&6
2961 elif test "$wxUSE_LIBXPM" = no; then
2962 echo "$as_me:$LINENO: result: no" >&5
2963echo "${ECHO_T}no" >&6
2964 elif test "$wxUSE_LIBXPM" = sys; then
2965 echo "$as_me:$LINENO: result: system version" >&5
2966echo "${ECHO_T}system version" >&6
2967 elif test "$wxUSE_LIBXPM" = builtin; then
2968 echo "$as_me:$LINENO: result: builtin version" >&5
2969echo "${ECHO_T}builtin version" >&6
2970 else
2971 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2972echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2973 { (exit 1); exit 1; }; }
2974 fi
2975
2976
3527f29c
VS
2977 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2978echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2979 no_cache=0
2980
2981# Check whether --with-libmspack or --without-libmspack was given.
2982if test "${with_libmspack+set}" = set; then
2983 withval="$with_libmspack"
2984
2985 if test "$withval" = yes; then
2986 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2987 else
2988 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2989 fi
2990
2991else
2992
2993 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2994 if test "x$LINE" != x ; then
2995 eval "DEFAULT_$LINE"
2996 else
2997 no_cache=1
2998 fi
2999
3000 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3001
3002fi;
3003
3004 eval "$ac_cv_use_libmspack"
3005 if test "$no_cache" != 1; then
3006 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3007 fi
3008
3009 if test "$wxUSE_LIBMSPACK" = yes; then
3010 echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
3015 fi
3016
3017
f93ca9fd
VS
3018 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3019echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3020 no_cache=0
3021
3022# Check whether --with-sdl or --without-sdl was given.
3023if test "${with_sdl+set}" = set; then
3024 withval="$with_sdl"
3025
3026 if test "$withval" = yes; then
3027 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3028 else
3029 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3030 fi
3031
3032else
3033
3034 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3035 if test "x$LINE" != x ; then
3036 eval "DEFAULT_$LINE"
3037 else
3038 no_cache=1
3039 fi
3040
3041 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3042
3043fi;
3044
3045 eval "$ac_cv_use_sdl"
3046 if test "$no_cache" != 1; then
3047 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3048 fi
3049
3050 if test "$wxUSE_LIBSDL" = yes; then
3051 echo "$as_me:$LINENO: result: yes" >&5
3052echo "${ECHO_T}yes" >&6
3053 else
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
3056 fi
3057
3058
e6cc62c6
VS
3059 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3060echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 3061 no_cache=0
e6cc62c6
VS
3062
3063# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
3064if test "${with_opengl+set}" = set; then
3065 withval="$with_opengl"
e6cc62c6 3066
10f2d63a 3067 if test "$withval" = yes; then
b12915c1 3068 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 3069 else
b12915c1 3070 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 3071 fi
e6cc62c6 3072
10f2d63a 3073else
e6cc62c6 3074
b12915c1 3075 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
3076 if test "x$LINE" != x ; then
3077 eval "DEFAULT_$LINE"
3078 else
3079 no_cache=1
3080 fi
3081
b12915c1 3082 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 3083
e6cc62c6 3084fi;
10f2d63a 3085
b12915c1 3086 eval "$ac_cv_use_opengl"
10f2d63a 3087 if test "$no_cache" != 1; then
b12915c1 3088 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3089 fi
3090
b12915c1 3091 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
3092 echo "$as_me:$LINENO: result: yes" >&5
3093echo "${ECHO_T}yes" >&6
10f2d63a 3094 else
e6cc62c6
VS
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
10f2d63a 3097 fi
e6cc62c6 3098
10f2d63a 3099
b12915c1
VZ
3100fi
3101
5c6fa7d2 3102
e6cc62c6
VS
3103 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3104echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 3105 no_cache=0
e6cc62c6
VS
3106
3107# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
3108if test "${with_dmalloc+set}" = set; then
3109 withval="$with_dmalloc"
e6cc62c6 3110
c7a2bf27 3111 if test "$withval" = yes; then
b12915c1 3112 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 3113 else
b12915c1 3114 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 3115 fi
e6cc62c6 3116
c7a2bf27 3117else
e6cc62c6 3118
b12915c1 3119 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
b12915c1 3126 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 3127
e6cc62c6 3128fi;
c7a2bf27 3129
b12915c1 3130 eval "$ac_cv_use_dmalloc"
c7a2bf27 3131 if test "$no_cache" != 1; then
b12915c1 3132 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3133 fi
3134
b12915c1 3135 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
c7a2bf27 3138 else
e6cc62c6
VS
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
c7a2bf27 3141 fi
c7a2bf27 3142
e6cc62c6
VS
3143
3144 echo "$as_me:$LINENO: checking for --with-regex" >&5
3145echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3146 no_cache=0
e6cc62c6
VS
3147
3148# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3149if test "${with_regex+set}" = set; then
3150 withval="$with_regex"
e6cc62c6 3151
3e44f09d
VZ
3152 if test "$withval" = yes; then
3153 ac_cv_use_regex='wxUSE_REGEX=yes'
3154 elif test "$withval" = no; then
3155 ac_cv_use_regex='wxUSE_REGEX=no'
3156 elif test "$withval" = sys; then
3157 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3158 elif test "$withval" = builtin; then
3159 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3160 else
e6cc62c6
VS
3161 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3162echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3163 { (exit 1); exit 1; }; }
3e44f09d 3164 fi
e6cc62c6 3165
3e44f09d 3166else
e6cc62c6 3167
3e44f09d
VZ
3168 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3169 if test "x$LINE" != x ; then
3170 eval "DEFAULT_$LINE"
3171 else
3172 no_cache=1
3173 fi
3174
3175 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3176
e6cc62c6 3177fi;
3e44f09d
VZ
3178
3179 eval "$ac_cv_use_regex"
3180 if test "$no_cache" != 1; then
3181 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3182 fi
3183
3184 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3185 echo "$as_me:$LINENO: result: yes" >&5
3186echo "${ECHO_T}yes" >&6
3e44f09d 3187 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3188 echo "$as_me:$LINENO: result: no" >&5
3189echo "${ECHO_T}no" >&6
3e44f09d 3190 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3191 echo "$as_me:$LINENO: result: system version" >&5
3192echo "${ECHO_T}system version" >&6
4f14bcd8 3193 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3194 echo "$as_me:$LINENO: result: builtin version" >&5
3195echo "${ECHO_T}builtin version" >&6
3e44f09d 3196 else
e6cc62c6
VS
3197 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3198echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3199 { (exit 1); exit 1; }; }
3e44f09d 3200 fi
3e44f09d 3201
e6cc62c6
VS
3202
3203 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3204echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3205 no_cache=0
e6cc62c6
VS
3206
3207# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3208if test "${with_zlib+set}" = set; then
3209 withval="$with_zlib"
e6cc62c6 3210
10f2d63a 3211 if test "$withval" = yes; then
b12915c1 3212 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3213 elif test "$withval" = no; then
b12915c1 3214 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3215 elif test "$withval" = sys; then
3216 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3217 elif test "$withval" = builtin; then
3218 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3219 else
e6cc62c6
VS
3220 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3221echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3222 { (exit 1); exit 1; }; }
10f2d63a 3223 fi
e6cc62c6 3224
10f2d63a 3225else
e6cc62c6 3226
b12915c1 3227 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3228 if test "x$LINE" != x ; then
3229 eval "DEFAULT_$LINE"
3230 else
3231 no_cache=1
3232 fi
3233
b12915c1 3234 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3235
e6cc62c6 3236fi;
10f2d63a 3237
b12915c1 3238 eval "$ac_cv_use_zlib"
10f2d63a 3239 if test "$no_cache" != 1; then
b12915c1 3240 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3241 fi
3242
b12915c1 3243 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3244 echo "$as_me:$LINENO: result: yes" >&5
3245echo "${ECHO_T}yes" >&6
422107f9 3246 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3247 echo "$as_me:$LINENO: result: no" >&5
3248echo "${ECHO_T}no" >&6
422107f9 3249 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3250 echo "$as_me:$LINENO: result: system version" >&5
3251echo "${ECHO_T}system version" >&6
4f14bcd8 3252 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3253 echo "$as_me:$LINENO: result: builtin version" >&5
3254echo "${ECHO_T}builtin version" >&6
422107f9 3255 else
e6cc62c6
VS
3256 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3257echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3258 { (exit 1); exit 1; }; }
10f2d63a 3259 fi
10f2d63a 3260
e6cc62c6
VS
3261
3262 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3263echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3264 no_cache=0
e6cc62c6
VS
3265
3266# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3267if test "${with_odbc+set}" = set; then
3268 withval="$with_odbc"
e6cc62c6 3269
10f2d63a
VZ
3270 if test "$withval" = yes; then
3271 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3272 elif test "$withval" = no; then
10f2d63a 3273 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3274 elif test "$withval" = sys; then
3275 ac_cv_use_odbc='wxUSE_ODBC=sys'
3276 elif test "$withval" = builtin; then
3277 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3278 else
e6cc62c6
VS
3279 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3280echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3281 { (exit 1); exit 1; }; }
10f2d63a 3282 fi
e6cc62c6 3283
10f2d63a 3284else
e6cc62c6 3285
10f2d63a
VZ
3286 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3287 if test "x$LINE" != x ; then
3288 eval "DEFAULT_$LINE"
3289 else
3290 no_cache=1
3291 fi
3292
3293 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3294
e6cc62c6 3295fi;
10f2d63a
VZ
3296
3297 eval "$ac_cv_use_odbc"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3303 echo "$as_me:$LINENO: result: yes" >&5
3304echo "${ECHO_T}yes" >&6
8647bec6 3305 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3306 echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
8647bec6 3308 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3309 echo "$as_me:$LINENO: result: system version" >&5
3310echo "${ECHO_T}system version" >&6
8647bec6 3311 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3312 echo "$as_me:$LINENO: result: builtin version" >&5
3313echo "${ECHO_T}builtin version" >&6
8647bec6 3314 else
e6cc62c6
VS
3315 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3316echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3317 { (exit 1); exit 1; }; }
10f2d63a 3318 fi
e6cc62c6 3319
52127426 3320
672abd7a
VS
3321 echo "$as_me:$LINENO: checking for --with-expat" >&5
3322echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3323 no_cache=0
3324
3325# Check whether --with-expat or --without-expat was given.
3326if test "${with_expat+set}" = set; then
3327 withval="$with_expat"
3328
3329 if test "$withval" = yes; then
3330 ac_cv_use_expat='wxUSE_EXPAT=yes'
3331 elif test "$withval" = no; then
3332 ac_cv_use_expat='wxUSE_EXPAT=no'
3333 elif test "$withval" = sys; then
3334 ac_cv_use_expat='wxUSE_EXPAT=sys'
3335 elif test "$withval" = builtin; then
3336 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3337 else
3338 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3339echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3340 { (exit 1); exit 1; }; }
3341 fi
3342
3343else
3344
3345 LINE=`grep "wxUSE_EXPAT" ${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_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3353
3354fi;
3355
3356 eval "$ac_cv_use_expat"
3357 if test "$no_cache" != 1; then
3358 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3359 fi
3360
3361 if test "$wxUSE_EXPAT" = yes; then
3362 echo "$as_me:$LINENO: result: yes" >&5
3363echo "${ECHO_T}yes" >&6
3364 elif test "$wxUSE_EXPAT" = no; then
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367 elif test "$wxUSE_EXPAT" = sys; then
3368 echo "$as_me:$LINENO: result: system version" >&5
3369echo "${ECHO_T}system version" >&6
3370 elif test "$wxUSE_EXPAT" = builtin; then
3371 echo "$as_me:$LINENO: result: builtin version" >&5
3372echo "${ECHO_T}builtin version" >&6
3373 else
3374 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3375echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3376 { (exit 1); exit 1; }; }
3377 fi
3378
3379
8284b0c5
MB
3380
3381
5005acfe 3382 enablestring=
e6cc62c6
VS
3383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3384echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3385 no_cache=0
3386 # Check whether --enable-shared or --disable-shared was given.
3387if test "${enable_shared+set}" = set; then
3388 enableval="$enable_shared"
e6cc62c6 3389
10f2d63a
VZ
3390 if test "$enableval" = yes; then
3391 ac_cv_use_shared='wxUSE_SHARED=yes'
3392 else
3393 ac_cv_use_shared='wxUSE_SHARED=no'
3394 fi
e6cc62c6 3395
10f2d63a 3396else
e6cc62c6 3397
10f2d63a
VZ
3398 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3399 if test "x$LINE" != x ; then
3400 eval "DEFAULT_$LINE"
3401 else
3402 no_cache=1
3403 fi
3404
3405 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3406
e6cc62c6 3407fi;
10f2d63a
VZ
3408
3409 eval "$ac_cv_use_shared"
3410 if test "$no_cache" != 1; then
3411 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3412 fi
3413
3414 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3415 echo "$as_me:$LINENO: result: yes" >&5
3416echo "${ECHO_T}yes" >&6
10f2d63a 3417 else
e6cc62c6
VS
3418 echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
10f2d63a 3420 fi
e6cc62c6 3421
10f2d63a 3422
5005acfe 3423 enablestring=
e6cc62c6
VS
3424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3425echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3426 no_cache=0
3427 # Check whether --enable-optimise or --disable-optimise was given.
3428if test "${enable_optimise+set}" = set; then
3429 enableval="$enable_optimise"
e6cc62c6 3430
10f2d63a
VZ
3431 if test "$enableval" = yes; then
3432 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3433 else
3434 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3435 fi
e6cc62c6 3436
10f2d63a 3437else
e6cc62c6 3438
10f2d63a
VZ
3439 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3447
e6cc62c6 3448fi;
10f2d63a
VZ
3449
3450 eval "$ac_cv_use_optimise"
3451 if test "$no_cache" != 1; then
3452 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3453 fi
3454
3455 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3456 echo "$as_me:$LINENO: result: yes" >&5
3457echo "${ECHO_T}yes" >&6
10f2d63a 3458 else
e6cc62c6
VS
3459 echo "$as_me:$LINENO: result: no" >&5
3460echo "${ECHO_T}no" >&6
10f2d63a 3461 fi
e6cc62c6 3462
10f2d63a 3463
5005acfe 3464 enablestring=
e6cc62c6
VS
3465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3466echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3467 no_cache=0
3468 # Check whether --enable-debug or --disable-debug was given.
3469if test "${enable_debug+set}" = set; then
3470 enableval="$enable_debug"
e6cc62c6 3471
10f2d63a
VZ
3472 if test "$enableval" = yes; then
3473 ac_cv_use_debug='wxUSE_DEBUG=yes'
3474 else
3475 ac_cv_use_debug='wxUSE_DEBUG=no'
3476 fi
e6cc62c6 3477
10f2d63a 3478else
e6cc62c6 3479
10f2d63a
VZ
3480 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3481 if test "x$LINE" != x ; then
3482 eval "DEFAULT_$LINE"
3483 else
3484 no_cache=1
3485 fi
3486
3487 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3488
e6cc62c6 3489fi;
10f2d63a
VZ
3490
3491 eval "$ac_cv_use_debug"
3492 if test "$no_cache" != 1; then
3493 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3494 fi
3495
3496 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3497 echo "$as_me:$LINENO: result: yes" >&5
3498echo "${ECHO_T}yes" >&6
10f2d63a 3499 else
e6cc62c6
VS
3500 echo "$as_me:$LINENO: result: no" >&5
3501echo "${ECHO_T}no" >&6
10f2d63a 3502 fi
e6cc62c6 3503
52127426 3504
df5168c4
MB
3505 enablestring=
3506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3507echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3508 no_cache=0
3509 # Check whether --enable-stl or --disable-stl was given.
3510if test "${enable_stl+set}" = set; then
3511 enableval="$enable_stl"
3512
3513 if test "$enableval" = yes; then
3514 ac_cv_use_stl='wxUSE_STL=yes'
3515 else
3516 ac_cv_use_stl='wxUSE_STL=no'
3517 fi
3518
3519else
3520
3521 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3522 if test "x$LINE" != x ; then
3523 eval "DEFAULT_$LINE"
3524 else
3525 no_cache=1
3526 fi
3527
3528 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3529
3530fi;
3531
3532 eval "$ac_cv_use_stl"
3533 if test "$no_cache" != 1; then
3534 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3535 fi
3536
3537 if test "$wxUSE_STL" = yes; then
3538 echo "$as_me:$LINENO: result: yes" >&5
3539echo "${ECHO_T}yes" >&6
3540 else
3541 echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
3543 fi
3544
3545
10f2d63a
VZ
3546if test "$wxUSE_DEBUG" = "yes"; then
3547 DEFAULT_wxUSE_DEBUG_FLAG=yes
3548 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3549 BUILD=debug
10f2d63a
VZ
3550elif test "$wxUSE_DEBUG" = "no"; then
3551 DEFAULT_wxUSE_DEBUG_FLAG=no
3552 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3553 BUILD=release
10f2d63a
VZ
3554fi
3555
8284b0c5 3556
5005acfe 3557 enablestring=
e6cc62c6
VS
3558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3559echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3560 no_cache=0
3561 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3562if test "${enable_debug_flag+set}" = set; then
3563 enableval="$enable_debug_flag"
e6cc62c6 3564
10f2d63a
VZ
3565 if test "$enableval" = yes; then
3566 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3567 else
3568 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3569 fi
e6cc62c6 3570
10f2d63a 3571else
e6cc62c6 3572
10f2d63a
VZ
3573 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3581
e6cc62c6 3582fi;
10f2d63a
VZ
3583
3584 eval "$ac_cv_use_debug_flag"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3590 echo "$as_me:$LINENO: result: yes" >&5
3591echo "${ECHO_T}yes" >&6
10f2d63a 3592 else
e6cc62c6
VS
3593 echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
10f2d63a 3595 fi
e6cc62c6 3596
10f2d63a 3597
5005acfe 3598 enablestring=
e6cc62c6
VS
3599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3600echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3601 no_cache=0
3602 # Check whether --enable-debug_info or --disable-debug_info was given.
3603if test "${enable_debug_info+set}" = set; then
3604 enableval="$enable_debug_info"
e6cc62c6 3605
10f2d63a
VZ
3606 if test "$enableval" = yes; then
3607 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3608 else
3609 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3610 fi
e6cc62c6 3611
10f2d63a 3612else
e6cc62c6 3613
10f2d63a
VZ
3614 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3622
e6cc62c6 3623fi;
10f2d63a
VZ
3624
3625 eval "$ac_cv_use_debug_info"
3626 if test "$no_cache" != 1; then
3627 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3628 fi
3629
3630 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3631 echo "$as_me:$LINENO: result: yes" >&5
3632echo "${ECHO_T}yes" >&6
10f2d63a 3633 else
e6cc62c6
VS
3634 echo "$as_me:$LINENO: result: no" >&5
3635echo "${ECHO_T}no" >&6
10f2d63a 3636 fi
e6cc62c6 3637
10f2d63a 3638
5005acfe 3639 enablestring=
e6cc62c6
VS
3640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3641echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3642 no_cache=0
3643 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3644if test "${enable_debug_gdb+set}" = set; then
3645 enableval="$enable_debug_gdb"
e6cc62c6 3646
10f2d63a
VZ
3647 if test "$enableval" = yes; then
3648 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3649 else
3650 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3651 fi
e6cc62c6 3652
10f2d63a 3653else
e6cc62c6 3654
10f2d63a
VZ
3655 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3656 if test "x$LINE" != x ; then
3657 eval "DEFAULT_$LINE"
3658 else
3659 no_cache=1
3660 fi
3661
3662 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3663
e6cc62c6 3664fi;
10f2d63a
VZ
3665
3666 eval "$ac_cv_use_debug_gdb"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3672 echo "$as_me:$LINENO: result: yes" >&5
3673echo "${ECHO_T}yes" >&6
10f2d63a 3674 else
e6cc62c6
VS
3675 echo "$as_me:$LINENO: result: no" >&5
3676echo "${ECHO_T}no" >&6
10f2d63a 3677 fi
e6cc62c6 3678
10f2d63a 3679
5005acfe 3680 enablestring=
e6cc62c6
VS
3681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3682echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3683 no_cache=0
3684 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3685if test "${enable_debug_cntxt+set}" = set; then
3686 enableval="$enable_debug_cntxt"
e6cc62c6 3687
10f2d63a
VZ
3688 if test "$enableval" = yes; then
3689 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3690 else
3691 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3692 fi
e6cc62c6 3693
10f2d63a 3694else
e6cc62c6 3695
10f2d63a
VZ
3696 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3704
e6cc62c6 3705fi;
10f2d63a
VZ
3706
3707 eval "$ac_cv_use_debug_cntxt"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3713 echo "$as_me:$LINENO: result: yes" >&5
3714echo "${ECHO_T}yes" >&6
10f2d63a 3715 else
e6cc62c6
VS
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
10f2d63a 3718 fi
e6cc62c6 3719
10f2d63a 3720
5005acfe 3721 enablestring=
e6cc62c6
VS
3722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3723echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3724 no_cache=0
3725 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3726if test "${enable_mem_tracing+set}" = set; then
3727 enableval="$enable_mem_tracing"
e6cc62c6 3728
10f2d63a
VZ
3729 if test "$enableval" = yes; then
3730 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3731 else
3732 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3733 fi
e6cc62c6 3734
10f2d63a 3735else
e6cc62c6 3736
10f2d63a
VZ
3737 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3738 if test "x$LINE" != x ; then
3739 eval "DEFAULT_$LINE"
3740 else
3741 no_cache=1
3742 fi
3743
3744 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3745
e6cc62c6 3746fi;
10f2d63a
VZ
3747
3748 eval "$ac_cv_use_mem_tracing"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3754 echo "$as_me:$LINENO: result: yes" >&5
3755echo "${ECHO_T}yes" >&6
10f2d63a 3756 else
e6cc62c6
VS
3757 echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6
10f2d63a 3759 fi
e6cc62c6 3760
10f2d63a 3761
5005acfe 3762 enablestring=
e6cc62c6
VS
3763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3764echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3765 no_cache=0
3766 # Check whether --enable-profile or --disable-profile was given.
3767if test "${enable_profile+set}" = set; then
3768 enableval="$enable_profile"
e6cc62c6 3769
10f2d63a
VZ
3770 if test "$enableval" = yes; then
3771 ac_cv_use_profile='wxUSE_PROFILE=yes'
3772 else
3773 ac_cv_use_profile='wxUSE_PROFILE=no'
3774 fi
e6cc62c6 3775
10f2d63a 3776else
e6cc62c6 3777
10f2d63a
VZ
3778 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3779 if test "x$LINE" != x ; then
3780 eval "DEFAULT_$LINE"
3781 else
3782 no_cache=1
3783 fi
3784
3785 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3786
e6cc62c6 3787fi;
10f2d63a
VZ
3788
3789 eval "$ac_cv_use_profile"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3795 echo "$as_me:$LINENO: result: yes" >&5
3796echo "${ECHO_T}yes" >&6
10f2d63a 3797 else
e6cc62c6
VS
3798 echo "$as_me:$LINENO: result: no" >&5
3799echo "${ECHO_T}no" >&6
10f2d63a 3800 fi
e6cc62c6 3801
10f2d63a 3802
5005acfe 3803 enablestring=
e6cc62c6
VS
3804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3805echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3806 no_cache=0
3807 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3808if test "${enable_no_rtti+set}" = set; then
3809 enableval="$enable_no_rtti"
e6cc62c6 3810
10f2d63a
VZ
3811 if test "$enableval" = yes; then
3812 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3813 else
3814 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3815 fi
e6cc62c6 3816
10f2d63a 3817else
e6cc62c6 3818
10f2d63a
VZ
3819 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3827
e6cc62c6 3828fi;
10f2d63a
VZ
3829
3830 eval "$ac_cv_use_no_rtti"
3831 if test "$no_cache" != 1; then
3832 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3833 fi
3834
3835 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3836 echo "$as_me:$LINENO: result: yes" >&5
3837echo "${ECHO_T}yes" >&6
10f2d63a 3838 else
e6cc62c6
VS
3839 echo "$as_me:$LINENO: result: no" >&5
3840echo "${ECHO_T}no" >&6
10f2d63a 3841 fi
e6cc62c6 3842
10f2d63a 3843
5005acfe 3844 enablestring=
e6cc62c6
VS
3845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3846echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3847 no_cache=0
3848 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3849if test "${enable_no_exceptions+set}" = set; then
3850 enableval="$enable_no_exceptions"
e6cc62c6 3851
10f2d63a
VZ
3852 if test "$enableval" = yes; then
3853 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3854 else
3855 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3856 fi
e6cc62c6 3857
10f2d63a 3858else
e6cc62c6 3859
10f2d63a
VZ
3860 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3861 if test "x$LINE" != x ; then
3862 eval "DEFAULT_$LINE"
3863 else
3864 no_cache=1
3865 fi
3866
3867 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3868
e6cc62c6 3869fi;
10f2d63a
VZ
3870
3871 eval "$ac_cv_use_no_exceptions"
3872 if test "$no_cache" != 1; then
3873 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3874 fi
3875
3876 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3877 echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6
10f2d63a 3879 else
e6cc62c6
VS
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
10f2d63a 3882 fi
e6cc62c6 3883
10f2d63a 3884
5005acfe 3885 enablestring=
e6cc62c6
VS
3886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3887echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3888 no_cache=0
3889 # Check whether --enable-permissive or --disable-permissive was given.
3890if test "${enable_permissive+set}" = set; then
3891 enableval="$enable_permissive"
e6cc62c6 3892
10f2d63a
VZ
3893 if test "$enableval" = yes; then
3894 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3895 else
3896 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3897 fi
e6cc62c6 3898
10f2d63a 3899else
e6cc62c6 3900
10f2d63a
VZ
3901 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3902 if test "x$LINE" != x ; then
3903 eval "DEFAULT_$LINE"
3904 else
3905 no_cache=1
3906 fi
3907
3908 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3909
e6cc62c6 3910fi;
10f2d63a
VZ
3911
3912 eval "$ac_cv_use_permissive"
3913 if test "$no_cache" != 1; then
3914 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3915 fi
3916
3917 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3918 echo "$as_me:$LINENO: result: yes" >&5
3919echo "${ECHO_T}yes" >&6
10f2d63a 3920 else
e6cc62c6
VS
3921 echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
10f2d63a 3923 fi
e6cc62c6 3924
10f2d63a 3925
5005acfe 3926 enablestring=
e6cc62c6
VS
3927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3928echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3929 no_cache=0
3930 # Check whether --enable-no_deps or --disable-no_deps was given.
3931if test "${enable_no_deps+set}" = set; then
3932 enableval="$enable_no_deps"
e6cc62c6 3933
10f2d63a
VZ
3934 if test "$enableval" = yes; then
3935 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3936 else
3937 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3938 fi
e6cc62c6 3939
10f2d63a 3940else
e6cc62c6 3941
10f2d63a
VZ
3942 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3943 if test "x$LINE" != x ; then
3944 eval "DEFAULT_$LINE"
3945 else
3946 no_cache=1
3947 fi
3948
3949 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3950
e6cc62c6 3951fi;
10f2d63a
VZ
3952
3953 eval "$ac_cv_use_no_deps"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3959 echo "$as_me:$LINENO: result: yes" >&5
3960echo "${ECHO_T}yes" >&6
10f2d63a 3961 else
e6cc62c6
VS
3962 echo "$as_me:$LINENO: result: no" >&5
3963echo "${ECHO_T}no" >&6
10f2d63a 3964 fi
e6cc62c6 3965
52127426 3966
8284b0c5 3967
65d8ef1e 3968 enablestring=
e6cc62c6
VS
3969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3970echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3971 no_cache=0
3972 # Check whether --enable-compat22 or --disable-compat22 was given.
3973if test "${enable_compat22+set}" = set; then
3974 enableval="$enable_compat22"
e6cc62c6 3975
54276ccf
VZ
3976 if test "$enableval" = yes; then
3977 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3978 else
3979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3980 fi
e6cc62c6 3981
54276ccf 3982else
e6cc62c6 3983
54276ccf
VZ
3984 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3992
e6cc62c6 3993fi;
54276ccf
VZ
3994
3995 eval "$ac_cv_use_compat22"
3996 if test "$no_cache" != 1; then
3997 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3998 fi
3999
4000 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
4001 echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6
54276ccf 4003 else
e6cc62c6
VS
4004 echo "$as_me:$LINENO: result: no" >&5
4005echo "${ECHO_T}no" >&6
54276ccf 4006 fi
e6cc62c6 4007
54276ccf 4008
65d8ef1e 4009 enablestring=disable
e6cc62c6
VS
4010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4011echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
4012 no_cache=0
4013 # Check whether --enable-compat24 or --disable-compat24 was given.
4014if test "${enable_compat24+set}" = set; then
4015 enableval="$enable_compat24"
e6cc62c6 4016
65d8ef1e
VS
4017 if test "$enableval" = yes; then
4018 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4019 else
4020 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4021 fi
e6cc62c6 4022
65d8ef1e 4023else
e6cc62c6 4024
65d8ef1e
VS
4025 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4026 if test "x$LINE" != x ; then
4027 eval "DEFAULT_$LINE"
4028 else
4029 no_cache=1
4030 fi
4031
4032 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 4033
e6cc62c6 4034fi;
65d8ef1e
VS
4035
4036 eval "$ac_cv_use_compat24"
4037 if test "$no_cache" != 1; then
4038 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4039 fi
4040
4041 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
4042 echo "$as_me:$LINENO: result: yes" >&5
4043echo "${ECHO_T}yes" >&6
65d8ef1e 4044 else
e6cc62c6
VS
4045 echo "$as_me:$LINENO: result: no" >&5
4046echo "${ECHO_T}no" >&6
65d8ef1e 4047 fi
e6cc62c6 4048
65d8ef1e 4049
3bd8fb5f
RD
4050# Check whether --enable-rpath or --disable-rpath was given.
4051if test "${enable_rpath+set}" = set; then
4052 enableval="$enable_rpath"
4053 wxRPATH_DIR="$enableval"
e6cc62c6 4054fi;
3bd8fb5f
RD
4055
4056if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4057 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4058fi
4059
8284b0c5
MB
4060
4061
4062
5005acfe 4063 enablestring=
e6cc62c6
VS
4064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4065echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
4066 no_cache=0
4067 # Check whether --enable-intl or --disable-intl was given.
4068if test "${enable_intl+set}" = set; then
4069 enableval="$enable_intl"
e6cc62c6 4070
10f2d63a
VZ
4071 if test "$enableval" = yes; then
4072 ac_cv_use_intl='wxUSE_INTL=yes'
4073 else
4074 ac_cv_use_intl='wxUSE_INTL=no'
4075 fi
e6cc62c6 4076
10f2d63a 4077else
e6cc62c6 4078
10f2d63a
VZ
4079 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4080 if test "x$LINE" != x ; then
4081 eval "DEFAULT_$LINE"
4082 else
4083 no_cache=1
4084 fi
4085
4086 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 4087
e6cc62c6 4088fi;
10f2d63a
VZ
4089
4090 eval "$ac_cv_use_intl"
4091 if test "$no_cache" != 1; then
4092 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4093 fi
4094
4095 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
4096 echo "$as_me:$LINENO: result: yes" >&5
4097echo "${ECHO_T}yes" >&6
10f2d63a 4098 else
e6cc62c6
VS
4099 echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6
10f2d63a 4101 fi
e6cc62c6 4102
10f2d63a 4103
5005acfe 4104 enablestring=
e6cc62c6
VS
4105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4106echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
4107 no_cache=0
4108 # Check whether --enable-config or --disable-config was given.
4109if test "${enable_config+set}" = set; then
4110 enableval="$enable_config"
e6cc62c6 4111
10f2d63a
VZ
4112 if test "$enableval" = yes; then
4113 ac_cv_use_config='wxUSE_CONFIG=yes'
4114 else
4115 ac_cv_use_config='wxUSE_CONFIG=no'
4116 fi
e6cc62c6 4117
10f2d63a 4118else
e6cc62c6 4119
10f2d63a
VZ
4120 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 4128
e6cc62c6 4129fi;
10f2d63a
VZ
4130
4131 eval "$ac_cv_use_config"
4132 if test "$no_cache" != 1; then
4133 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4134 fi
4135
4136 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4137 echo "$as_me:$LINENO: result: yes" >&5
4138echo "${ECHO_T}yes" >&6
10f2d63a 4139 else
e6cc62c6
VS
4140 echo "$as_me:$LINENO: result: no" >&5
4141echo "${ECHO_T}no" >&6
10f2d63a 4142 fi
e6cc62c6 4143
52127426 4144
8284b0c5 4145
5005acfe 4146 enablestring=
e6cc62c6
VS
4147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4148echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4149 no_cache=0
4150 # Check whether --enable-protocols or --disable-protocols was given.
4151if test "${enable_protocols+set}" = set; then
4152 enableval="$enable_protocols"
e6cc62c6 4153
a1622950
VZ
4154 if test "$enableval" = yes; then
4155 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4156 else
4157 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4158 fi
e6cc62c6 4159
a1622950 4160else
e6cc62c6 4161
a1622950
VZ
4162 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4163 if test "x$LINE" != x ; then
4164 eval "DEFAULT_$LINE"
4165 else
4166 no_cache=1
4167 fi
4168
4169 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4170
e6cc62c6 4171fi;
a1622950
VZ
4172
4173 eval "$ac_cv_use_protocols"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4179 echo "$as_me:$LINENO: result: yes" >&5
4180echo "${ECHO_T}yes" >&6
a1622950 4181 else
e6cc62c6
VS
4182 echo "$as_me:$LINENO: result: no" >&5
4183echo "${ECHO_T}no" >&6
a1622950 4184 fi
e6cc62c6 4185
a1622950 4186
5005acfe 4187 enablestring=
e6cc62c6
VS
4188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4189echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4190 no_cache=0
4191 # Check whether --enable-ftp or --disable-ftp was given.
4192if test "${enable_ftp+set}" = set; then
4193 enableval="$enable_ftp"
e6cc62c6 4194
a1622950
VZ
4195 if test "$enableval" = yes; then
4196 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4197 else
4198 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4199 fi
e6cc62c6 4200
a1622950 4201else
e6cc62c6 4202
a1622950
VZ
4203 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4211
e6cc62c6 4212fi;
a1622950
VZ
4213
4214 eval "$ac_cv_use_ftp"
4215 if test "$no_cache" != 1; then
4216 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4217 fi
4218
4219 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4220 echo "$as_me:$LINENO: result: yes" >&5
4221echo "${ECHO_T}yes" >&6
a1622950 4222 else
e6cc62c6
VS
4223 echo "$as_me:$LINENO: result: no" >&5
4224echo "${ECHO_T}no" >&6
a1622950 4225 fi
e6cc62c6 4226
a1622950 4227
5005acfe 4228 enablestring=
e6cc62c6
VS
4229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4230echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4231 no_cache=0
4232 # Check whether --enable-http or --disable-http was given.
4233if test "${enable_http+set}" = set; then
4234 enableval="$enable_http"
e6cc62c6 4235
a1622950
VZ
4236 if test "$enableval" = yes; then
4237 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4238 else
4239 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4240 fi
e6cc62c6 4241
a1622950 4242else
e6cc62c6 4243
a1622950
VZ
4244 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4245 if test "x$LINE" != x ; then
4246 eval "DEFAULT_$LINE"
4247 else
4248 no_cache=1
4249 fi
4250
4251 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4252
e6cc62c6 4253fi;
a1622950
VZ
4254
4255 eval "$ac_cv_use_http"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4261 echo "$as_me:$LINENO: result: yes" >&5
4262echo "${ECHO_T}yes" >&6
a1622950 4263 else
e6cc62c6
VS
4264 echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
a1622950 4266 fi
e6cc62c6 4267
a1622950 4268
5005acfe 4269 enablestring=
e6cc62c6
VS
4270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4271echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4272 no_cache=0
4273 # Check whether --enable-fileproto or --disable-fileproto was given.
4274if test "${enable_fileproto+set}" = set; then
4275 enableval="$enable_fileproto"
e6cc62c6 4276
a1622950
VZ
4277 if test "$enableval" = yes; then
4278 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4279 else
4280 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4281 fi
e6cc62c6 4282
a1622950 4283else
e6cc62c6 4284
a1622950
VZ
4285 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4286 if test "x$LINE" != x ; then
4287 eval "DEFAULT_$LINE"
4288 else
4289 no_cache=1
4290 fi
4291
4292 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4293
e6cc62c6 4294fi;
a1622950
VZ
4295
4296 eval "$ac_cv_use_fileproto"
4297 if test "$no_cache" != 1; then
4298 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4299 fi
4300
4301 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4302 echo "$as_me:$LINENO: result: yes" >&5
4303echo "${ECHO_T}yes" >&6
a1622950 4304 else
e6cc62c6
VS
4305 echo "$as_me:$LINENO: result: no" >&5
4306echo "${ECHO_T}no" >&6
a1622950 4307 fi
e6cc62c6 4308
a1622950 4309
5005acfe 4310 enablestring=
e6cc62c6
VS
4311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4312echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4313 no_cache=0
4314 # Check whether --enable-sockets or --disable-sockets was given.
4315if test "${enable_sockets+set}" = set; then
4316 enableval="$enable_sockets"
e6cc62c6 4317
10f2d63a
VZ
4318 if test "$enableval" = yes; then
4319 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4320 else
4321 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4322 fi
e6cc62c6 4323
10f2d63a 4324else
e6cc62c6 4325
10f2d63a
VZ
4326 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4334
e6cc62c6 4335fi;
10f2d63a
VZ
4336
4337 eval "$ac_cv_use_sockets"
4338 if test "$no_cache" != 1; then
4339 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4340 fi
4341
4342 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4343 echo "$as_me:$LINENO: result: yes" >&5
4344echo "${ECHO_T}yes" >&6
10f2d63a 4345 else
e6cc62c6
VS
4346 echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
10f2d63a 4348 fi
e6cc62c6 4349
8284b0c5 4350
5005acfe 4351 enablestring=
e6cc62c6
VS
4352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4353echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4354 no_cache=0
4355 # Check whether --enable-ole or --disable-ole was given.
4356if test "${enable_ole+set}" = set; then
4357 enableval="$enable_ole"
e6cc62c6 4358
3bce6687
JS
4359 if test "$enableval" = yes; then
4360 ac_cv_use_ole='wxUSE_OLE=yes'
4361 else
4362 ac_cv_use_ole='wxUSE_OLE=no'
4363 fi
e6cc62c6 4364
3bce6687 4365else
e6cc62c6 4366
3bce6687
JS
4367 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4368 if test "x$LINE" != x ; then
4369 eval "DEFAULT_$LINE"
4370 else
4371 no_cache=1
4372 fi
4373
4374 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4375
e6cc62c6 4376fi;
3bce6687
JS
4377
4378 eval "$ac_cv_use_ole"
4379 if test "$no_cache" != 1; then
4380 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4381 fi
4382
4383 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4384 echo "$as_me:$LINENO: result: yes" >&5
4385echo "${ECHO_T}yes" >&6
3bce6687 4386 else
e6cc62c6
VS
4387 echo "$as_me:$LINENO: result: no" >&5
4388echo "${ECHO_T}no" >&6
3bce6687 4389 fi
e6cc62c6 4390
3bce6687 4391
5005acfe 4392 enablestring=
e6cc62c6
VS
4393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4394echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4395 no_cache=0
4396 # Check whether --enable-dataobj or --disable-dataobj was given.
4397if test "${enable_dataobj+set}" = set; then
4398 enableval="$enable_dataobj"
e6cc62c6 4399
3bce6687
JS
4400 if test "$enableval" = yes; then
4401 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4402 else
4403 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4404 fi
e6cc62c6 4405
3bce6687 4406else
e6cc62c6 4407
3bce6687
JS
4408 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4409 if test "x$LINE" != x ; then
4410 eval "DEFAULT_$LINE"
4411 else
4412 no_cache=1
4413 fi
4414
4415 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4416
e6cc62c6 4417fi;
3bce6687
JS
4418
4419 eval "$ac_cv_use_dataobj"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4425 echo "$as_me:$LINENO: result: yes" >&5
4426echo "${ECHO_T}yes" >&6
3bce6687 4427 else
e6cc62c6
VS
4428 echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6
3bce6687 4430 fi
e6cc62c6 4431
3bce6687 4432
52127426 4433
5005acfe 4434 enablestring=
e6cc62c6
VS
4435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4436echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4437 no_cache=0
eb4efbdc
VZ
4438 # Check whether --enable-ipc or --disable-ipc was given.
4439if test "${enable_ipc+set}" = set; then
4440 enableval="$enable_ipc"
e6cc62c6 4441
10f2d63a 4442 if test "$enableval" = yes; then
eb4efbdc 4443 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4444 else
eb4efbdc 4445 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4446 fi
e6cc62c6 4447
10f2d63a 4448else
e6cc62c6 4449
eb4efbdc 4450 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4451 if test "x$LINE" != x ; then
4452 eval "DEFAULT_$LINE"
4453 else
4454 no_cache=1
4455 fi
4456
eb4efbdc 4457 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4458
e6cc62c6 4459fi;
10f2d63a 4460
eb4efbdc 4461 eval "$ac_cv_use_ipc"
10f2d63a 4462 if test "$no_cache" != 1; then
eb4efbdc 4463 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4464 fi
4465
eb4efbdc 4466 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4467 echo "$as_me:$LINENO: result: yes" >&5
4468echo "${ECHO_T}yes" >&6
10f2d63a 4469 else
e6cc62c6
VS
4470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
10f2d63a 4472 fi
e6cc62c6 4473
52127426 4474
8284b0c5 4475
5005acfe 4476 enablestring=
e46d2a18
VS
4477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4478echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4479 no_cache=0
e46d2a18
VS
4480 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4481if test "${enable_apple_ieee+set}" = set; then
4482 enableval="$enable_apple_ieee"
e6cc62c6 4483
10f2d63a 4484 if test "$enableval" = yes; then
e46d2a18 4485 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4486 else
e46d2a18 4487 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4488 fi
e6cc62c6 4489
10f2d63a 4490else
e6cc62c6 4491
e46d2a18 4492 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4493 if test "x$LINE" != x ; then
4494 eval "DEFAULT_$LINE"
4495 else
4496 no_cache=1
4497 fi
4498
e46d2a18 4499 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4500
e6cc62c6 4501fi;
10f2d63a 4502
e46d2a18 4503 eval "$ac_cv_use_apple_ieee"
10f2d63a 4504 if test "$no_cache" != 1; then
e46d2a18 4505 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4506 fi
4507
e46d2a18 4508 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4509 echo "$as_me:$LINENO: result: yes" >&5
4510echo "${ECHO_T}yes" >&6
10f2d63a 4511 else
e6cc62c6
VS
4512 echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
10f2d63a 4514 fi
e6cc62c6 4515
10f2d63a 4516
5005acfe 4517 enablestring=
e46d2a18
VS
4518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4519echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4520 no_cache=0
e46d2a18
VS
4521 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4522if test "${enable_catch_segvs+set}" = set; then
4523 enableval="$enable_catch_segvs"
e6cc62c6 4524
10f2d63a 4525 if test "$enableval" = yes; then
e46d2a18 4526 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4527 else
e46d2a18 4528 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4529 fi
e6cc62c6 4530
10f2d63a 4531else
e6cc62c6 4532
e46d2a18 4533 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4534 if test "x$LINE" != x ; then
4535 eval "DEFAULT_$LINE"
4536 else
4537 no_cache=1
4538 fi
4539
e46d2a18 4540 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4541
e6cc62c6 4542fi;
10f2d63a 4543
e46d2a18 4544 eval "$ac_cv_use_catch_segvs"
10f2d63a 4545 if test "$no_cache" != 1; then
e46d2a18 4546 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4547 fi
4548
e46d2a18 4549 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4550 echo "$as_me:$LINENO: result: yes" >&5
4551echo "${ECHO_T}yes" >&6
10f2d63a 4552 else
e6cc62c6
VS
4553 echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6
10f2d63a 4555 fi
e6cc62c6 4556
10f2d63a 4557
5005acfe 4558 enablestring=
e46d2a18
VS
4559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4560echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4561 no_cache=0
e46d2a18
VS
4562 # Check whether --enable-cmdline or --disable-cmdline was given.
4563if test "${enable_cmdline+set}" = set; then
4564 enableval="$enable_cmdline"
e6cc62c6 4565
10f2d63a 4566 if test "$enableval" = yes; then
e46d2a18 4567 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4568 else
e46d2a18 4569 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4570 fi
e6cc62c6 4571
10f2d63a 4572else
e6cc62c6 4573
e46d2a18 4574 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4575 if test "x$LINE" != x ; then
4576 eval "DEFAULT_$LINE"
4577 else
4578 no_cache=1
4579 fi
4580
e46d2a18 4581 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4582
e6cc62c6 4583fi;
10f2d63a 4584
e46d2a18 4585 eval "$ac_cv_use_cmdline"
10f2d63a 4586 if test "$no_cache" != 1; then
e46d2a18 4587 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4588 fi
4589
e46d2a18 4590 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4591 echo "$as_me:$LINENO: result: yes" >&5
4592echo "${ECHO_T}yes" >&6
10f2d63a 4593 else
e6cc62c6
VS
4594 echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6
10f2d63a 4596 fi
e6cc62c6 4597
10f2d63a 4598
5005acfe 4599 enablestring=
e46d2a18
VS
4600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4601echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4602 no_cache=0
e46d2a18
VS
4603 # Check whether --enable-datetime or --disable-datetime was given.
4604if test "${enable_datetime+set}" = set; then
4605 enableval="$enable_datetime"
e6cc62c6 4606
10f2d63a 4607 if test "$enableval" = yes; then
e46d2a18 4608 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4609 else
e46d2a18 4610 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4611 fi
e6cc62c6 4612
10f2d63a 4613else
e6cc62c6 4614
e46d2a18 4615 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4616 if test "x$LINE" != x ; then
4617 eval "DEFAULT_$LINE"
4618 else
4619 no_cache=1
4620 fi
4621
e46d2a18 4622 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4623
e6cc62c6 4624fi;
10f2d63a 4625
e46d2a18 4626 eval "$ac_cv_use_datetime"
10f2d63a 4627 if test "$no_cache" != 1; then
e46d2a18 4628 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4629 fi
4630
e46d2a18 4631 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4632 echo "$as_me:$LINENO: result: yes" >&5
4633echo "${ECHO_T}yes" >&6
10f2d63a 4634 else
e6cc62c6
VS
4635 echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6
10f2d63a 4637 fi
e6cc62c6 4638
10f2d63a 4639
5005acfe 4640 enablestring=
e46d2a18
VS
4641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4642echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4643 no_cache=0
e46d2a18
VS
4644 # Check whether --enable-dialupman or --disable-dialupman was given.
4645if test "${enable_dialupman+set}" = set; then
4646 enableval="$enable_dialupman"
e6cc62c6 4647
10f2d63a 4648 if test "$enableval" = yes; then
e46d2a18 4649 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4650 else
e46d2a18 4651 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4652 fi
e6cc62c6 4653
10f2d63a 4654else
e6cc62c6 4655
e46d2a18 4656 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
e46d2a18 4663 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4664
e6cc62c6 4665fi;
10f2d63a 4666
e46d2a18 4667 eval "$ac_cv_use_dialupman"
10f2d63a 4668 if test "$no_cache" != 1; then
e46d2a18 4669 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4670 fi
4671
e46d2a18 4672 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4673 echo "$as_me:$LINENO: result: yes" >&5
4674echo "${ECHO_T}yes" >&6
10f2d63a 4675 else
e6cc62c6
VS
4676 echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
10f2d63a 4678 fi
e6cc62c6 4679
10f2d63a 4680
5005acfe 4681 enablestring=
e6cc62c6
VS
4682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4683echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4684 no_cache=0
4685 # Check whether --enable-dynlib or --disable-dynlib was given.
4686if test "${enable_dynlib+set}" = set; then
4687 enableval="$enable_dynlib"
e6cc62c6 4688
10f2d63a
VZ
4689 if test "$enableval" = yes; then
4690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4691 else
4692 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4693 fi
e6cc62c6 4694
10f2d63a 4695else
e6cc62c6 4696
10f2d63a
VZ
4697 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4698 if test "x$LINE" != x ; then
4699 eval "DEFAULT_$LINE"
4700 else
4701 no_cache=1
4702 fi
4703
4704 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4705
e6cc62c6 4706fi;
10f2d63a
VZ
4707
4708 eval "$ac_cv_use_dynlib"
4709 if test "$no_cache" != 1; then
4710 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4711 fi
4712
4713 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4714 echo "$as_me:$LINENO: result: yes" >&5
4715echo "${ECHO_T}yes" >&6
10f2d63a 4716 else
e6cc62c6
VS
4717 echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6
10f2d63a 4719 fi
e6cc62c6 4720
10f2d63a 4721
5005acfe 4722 enablestring=
e6cc62c6
VS
4723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4724echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4725 no_cache=0
4726 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4727if test "${enable_dynamicloader+set}" = set; then
4728 enableval="$enable_dynamicloader"
e6cc62c6 4729
0b9ab0bd
RL
4730 if test "$enableval" = yes; then
4731 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4732 else
4733 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4734 fi
e6cc62c6 4735
0b9ab0bd 4736else
e6cc62c6 4737
0b9ab0bd
RL
4738 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4746
e6cc62c6 4747fi;
0b9ab0bd
RL
4748
4749 eval "$ac_cv_use_dynamicloader"
4750 if test "$no_cache" != 1; then
4751 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4752 fi
4753
4754 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4755 echo "$as_me:$LINENO: result: yes" >&5
4756echo "${ECHO_T}yes" >&6
0b9ab0bd 4757 else
e6cc62c6
VS
4758 echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6
0b9ab0bd 4760 fi
e6cc62c6 4761
0b9ab0bd 4762
5005acfe 4763 enablestring=
e46d2a18
VS
4764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4765echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4766 no_cache=0
e46d2a18
VS
4767 # Check whether --enable-exceptions or --disable-exceptions was given.
4768if test "${enable_exceptions+set}" = set; then
4769 enableval="$enable_exceptions"
e6cc62c6 4770
10f2d63a 4771 if test "$enableval" = yes; then
e46d2a18 4772 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4773 else
e46d2a18 4774 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4775 fi
e6cc62c6 4776
10f2d63a 4777else
e6cc62c6 4778
e46d2a18 4779 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
e46d2a18 4786 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4787
e6cc62c6 4788fi;
10f2d63a 4789
e46d2a18 4790 eval "$ac_cv_use_exceptions"
10f2d63a 4791 if test "$no_cache" != 1; then
e46d2a18 4792 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4793 fi
4794
e46d2a18 4795 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4796 echo "$as_me:$LINENO: result: yes" >&5
4797echo "${ECHO_T}yes" >&6
10f2d63a 4798 else
e6cc62c6
VS
4799 echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6
10f2d63a 4801 fi
e6cc62c6 4802
10f2d63a 4803
5005acfe 4804 enablestring=
e46d2a18
VS
4805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4806echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4807 no_cache=0
e46d2a18
VS
4808 # Check whether --enable-ffile or --disable-ffile was given.
4809if test "${enable_ffile+set}" = set; then
4810 enableval="$enable_ffile"
e6cc62c6 4811
e8f65ba6 4812 if test "$enableval" = yes; then
e46d2a18 4813 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4814 else
e46d2a18 4815 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4816 fi
e6cc62c6 4817
e8f65ba6 4818else
e6cc62c6 4819
e46d2a18 4820 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
e46d2a18 4827 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4828
e6cc62c6 4829fi;
e8f65ba6 4830
e46d2a18 4831 eval "$ac_cv_use_ffile"
e8f65ba6 4832 if test "$no_cache" != 1; then
e46d2a18 4833 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4834 fi
4835
e46d2a18 4836 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4837 echo "$as_me:$LINENO: result: yes" >&5
4838echo "${ECHO_T}yes" >&6
e8f65ba6 4839 else
e6cc62c6
VS
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
e8f65ba6 4842 fi
e6cc62c6 4843
e8f65ba6 4844
5005acfe 4845 enablestring=
e46d2a18
VS
4846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4847echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4848 no_cache=0
e46d2a18
VS
4849 # Check whether --enable-file or --disable-file was given.
4850if test "${enable_file+set}" = set; then
4851 enableval="$enable_file"
e6cc62c6 4852
10f2d63a 4853 if test "$enableval" = yes; then
e46d2a18 4854 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4855 else
e46d2a18 4856 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4857 fi
e6cc62c6 4858
10f2d63a 4859else
e6cc62c6 4860
e46d2a18 4861 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
e46d2a18 4868 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4869
e6cc62c6 4870fi;
10f2d63a 4871
e46d2a18 4872 eval "$ac_cv_use_file"
10f2d63a 4873 if test "$no_cache" != 1; then
e46d2a18 4874 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4875 fi
4876
e46d2a18 4877 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4878 echo "$as_me:$LINENO: result: yes" >&5
4879echo "${ECHO_T}yes" >&6
10f2d63a 4880 else
e6cc62c6
VS
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
10f2d63a 4883 fi
e6cc62c6 4884
10f2d63a 4885
5005acfe 4886 enablestring=
e46d2a18
VS
4887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4888echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4889 no_cache=0
e46d2a18
VS
4890 # Check whether --enable-filesystem or --disable-filesystem was given.
4891if test "${enable_filesystem+set}" = set; then
4892 enableval="$enable_filesystem"
e6cc62c6 4893
10f2d63a 4894 if test "$enableval" = yes; then
e46d2a18 4895 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4896 else
e46d2a18 4897 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4898 fi
e6cc62c6 4899
10f2d63a 4900else
e6cc62c6 4901
e46d2a18 4902 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
e46d2a18 4909 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4910
e6cc62c6 4911fi;
10f2d63a 4912
e46d2a18 4913 eval "$ac_cv_use_filesystem"
10f2d63a 4914 if test "$no_cache" != 1; then
e46d2a18 4915 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4916 fi
4917
e46d2a18 4918 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4919 echo "$as_me:$LINENO: result: yes" >&5
4920echo "${ECHO_T}yes" >&6
10f2d63a 4921 else
e6cc62c6
VS
4922 echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
10f2d63a 4924 fi
e6cc62c6 4925
10f2d63a 4926
5005acfe 4927 enablestring=
e46d2a18
VS
4928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4929echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4930 no_cache=0
e46d2a18
VS
4931 # Check whether --enable-fontmap or --disable-fontmap was given.
4932if test "${enable_fontmap+set}" = set; then
4933 enableval="$enable_fontmap"
e6cc62c6 4934
10f2d63a 4935 if test "$enableval" = yes; then
e46d2a18 4936 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4937 else
e46d2a18 4938 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4939 fi
e6cc62c6 4940
10f2d63a 4941else
e6cc62c6 4942
e46d2a18 4943 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
e46d2a18 4950 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4951
e6cc62c6 4952fi;
10f2d63a 4953
e46d2a18 4954 eval "$ac_cv_use_fontmap"
10f2d63a 4955 if test "$no_cache" != 1; then
e46d2a18 4956 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4957 fi
4958
e46d2a18 4959 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4960 echo "$as_me:$LINENO: result: yes" >&5
4961echo "${ECHO_T}yes" >&6
10f2d63a 4962 else
e6cc62c6
VS
4963 echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
10f2d63a 4965 fi
e6cc62c6 4966
10f2d63a 4967
5005acfe 4968 enablestring=
e46d2a18
VS
4969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4970echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4971 no_cache=0
e46d2a18
VS
4972 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4973if test "${enable_fs_inet+set}" = set; then
4974 enableval="$enable_fs_inet"
e6cc62c6 4975
10f2d63a 4976 if test "$enableval" = yes; then
e46d2a18 4977 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4978 else
e46d2a18 4979 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4980 fi
e6cc62c6 4981
10f2d63a 4982else
e6cc62c6 4983
e46d2a18 4984 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
e46d2a18 4991 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4992
e6cc62c6 4993fi;
10f2d63a 4994
e46d2a18 4995 eval "$ac_cv_use_fs_inet"
10f2d63a 4996 if test "$no_cache" != 1; then
e46d2a18 4997 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4998 fi
4999
e46d2a18 5000 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5001 echo "$as_me:$LINENO: result: yes" >&5
5002echo "${ECHO_T}yes" >&6
10f2d63a 5003 else
e6cc62c6
VS
5004 echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
10f2d63a 5006 fi
e6cc62c6 5007
10f2d63a 5008
5005acfe 5009 enablestring=
e46d2a18
VS
5010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5011echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 5012 no_cache=0
e46d2a18
VS
5013 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5014if test "${enable_fs_zip+set}" = set; then
5015 enableval="$enable_fs_zip"
e6cc62c6 5016
a3a584a7 5017 if test "$enableval" = yes; then
e46d2a18 5018 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 5019 else
e46d2a18 5020 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 5021 fi
e6cc62c6 5022
a3a584a7 5023else
e6cc62c6 5024
e46d2a18 5025 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
5026 if test "x$LINE" != x ; then
5027 eval "DEFAULT_$LINE"
5028 else
5029 no_cache=1
5030 fi
5031
e46d2a18 5032 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 5033
e6cc62c6 5034fi;
a3a584a7 5035
e46d2a18 5036 eval "$ac_cv_use_fs_zip"
a3a584a7 5037 if test "$no_cache" != 1; then
e46d2a18 5038 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
5039 fi
5040
e46d2a18 5041 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5042 echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6
a3a584a7 5044 else
e6cc62c6
VS
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
a3a584a7 5047 fi
e6cc62c6 5048
a3a584a7 5049
5005acfe 5050 enablestring=
e46d2a18
VS
5051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5052echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 5053 no_cache=0
e46d2a18
VS
5054 # Check whether --enable-geometry or --disable-geometry was given.
5055if test "${enable_geometry+set}" = set; then
5056 enableval="$enable_geometry"
e6cc62c6 5057
10f2d63a 5058 if test "$enableval" = yes; then
e46d2a18 5059 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 5060 else
e46d2a18 5061 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 5062 fi
e6cc62c6 5063
10f2d63a 5064else
e6cc62c6 5065
e46d2a18 5066 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
e46d2a18 5073 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 5074
e6cc62c6 5075fi;
10f2d63a 5076
e46d2a18 5077 eval "$ac_cv_use_geometry"
10f2d63a 5078 if test "$no_cache" != 1; then
e46d2a18 5079 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5080 fi
5081
e46d2a18 5082 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
5083 echo "$as_me:$LINENO: result: yes" >&5
5084echo "${ECHO_T}yes" >&6
10f2d63a 5085 else
e6cc62c6
VS
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
10f2d63a 5088 fi
e6cc62c6 5089
10f2d63a 5090
5005acfe 5091 enablestring=
e46d2a18
VS
5092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5093echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 5094 no_cache=0
e46d2a18
VS
5095 # Check whether --enable-log or --disable-log was given.
5096if test "${enable_log+set}" = set; then
5097 enableval="$enable_log"
e6cc62c6 5098
10f2d63a 5099 if test "$enableval" = yes; then
e46d2a18 5100 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 5101 else
e46d2a18 5102 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 5103 fi
e6cc62c6 5104
10f2d63a 5105else
e6cc62c6 5106
e46d2a18 5107 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
e46d2a18 5114 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 5115
e6cc62c6 5116fi;
10f2d63a 5117
e46d2a18 5118 eval "$ac_cv_use_log"
10f2d63a 5119 if test "$no_cache" != 1; then
e46d2a18 5120 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5121 fi
5122
e46d2a18 5123 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
5124 echo "$as_me:$LINENO: result: yes" >&5
5125echo "${ECHO_T}yes" >&6
10f2d63a 5126 else
e6cc62c6
VS
5127 echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
10f2d63a 5129 fi
e6cc62c6 5130
10f2d63a 5131
5005acfe 5132 enablestring=
e46d2a18
VS
5133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5134echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5135 no_cache=0
e46d2a18
VS
5136 # Check whether --enable-longlong or --disable-longlong was given.
5137if test "${enable_longlong+set}" = set; then
5138 enableval="$enable_longlong"
e6cc62c6 5139
1e6feb95 5140 if test "$enableval" = yes; then
e46d2a18 5141 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5142 else
e46d2a18 5143 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5144 fi
e6cc62c6 5145
1e6feb95 5146else
e6cc62c6 5147
e46d2a18 5148 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
e46d2a18 5155 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5156
e6cc62c6 5157fi;
1e6feb95 5158
e46d2a18 5159 eval "$ac_cv_use_longlong"
1e6feb95 5160 if test "$no_cache" != 1; then
e46d2a18 5161 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5162 fi
5163
e46d2a18
VS
5164 if test "$wxUSE_LONGLONG" = yes; then
5165 echo "$as_me:$LINENO: result: yes" >&5
5166echo "${ECHO_T}yes" >&6
5167 else
5168 echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170 fi
5171
5172
5173 enablestring=
5174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5175echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5176 no_cache=0
5177 # Check whether --enable-mimetype or --disable-mimetype was given.
5178if test "${enable_mimetype+set}" = set; then
5179 enableval="$enable_mimetype"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5183 else
5184 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5197
5198fi;
5199
5200 eval "$ac_cv_use_mimetype"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5206 echo "$as_me:$LINENO: result: yes" >&5
5207echo "${ECHO_T}yes" >&6
1e6feb95 5208 else
e6cc62c6
VS
5209 echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
1e6feb95 5211 fi
e6cc62c6 5212
1e6feb95 5213
5005acfe 5214 enablestring=
e6cc62c6
VS
5215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5216echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5217 no_cache=0
5218 # Check whether --enable-mslu or --disable-mslu was given.
5219if test "${enable_mslu+set}" = set; then
5220 enableval="$enable_mslu"
e6cc62c6 5221
a72a4bfa
VS
5222 if test "$enableval" = yes; then
5223 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5224 else
5225 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5226 fi
e6cc62c6 5227
a72a4bfa 5228else
e6cc62c6 5229
a72a4bfa
VS
5230 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5238
e6cc62c6 5239fi;
a72a4bfa
VS
5240
5241 eval "$ac_cv_use_mslu"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5247 echo "$as_me:$LINENO: result: yes" >&5
5248echo "${ECHO_T}yes" >&6
a72a4bfa 5249 else
e6cc62c6
VS
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
a72a4bfa 5252 fi
e6cc62c6 5253
a72a4bfa 5254
5005acfe 5255 enablestring=
e46d2a18
VS
5256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5257echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5258 no_cache=0
e46d2a18
VS
5259 # Check whether --enable-snglinst or --disable-snglinst was given.
5260if test "${enable_snglinst+set}" = set; then
5261 enableval="$enable_snglinst"
e6cc62c6 5262
1e6feb95 5263 if test "$enableval" = yes; then
e46d2a18 5264 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5265 else
e46d2a18 5266 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5267 fi
e6cc62c6 5268
10f2d63a 5269else
e6cc62c6 5270
e46d2a18 5271 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
e46d2a18 5278 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5279
e6cc62c6 5280fi;
10f2d63a 5281
e46d2a18 5282 eval "$ac_cv_use_snglinst"
10f2d63a 5283 if test "$no_cache" != 1; then
e46d2a18 5284 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5285 fi
5286
e46d2a18
VS
5287 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5288 echo "$as_me:$LINENO: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
5290 else
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293 fi
5294
5295
5296 enablestring=
5297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5298echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5299 no_cache=0
5300 # Check whether --enable-streams or --disable-streams was given.
5301if test "${enable_streams+set}" = set; then
5302 enableval="$enable_streams"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_streams='wxUSE_STREAMS=yes'
5306 else
5307 ac_cv_use_streams='wxUSE_STREAMS=no'
5308 fi
5309
5310else
5311
5312 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5320
5321fi;
5322
5323 eval "$ac_cv_use_streams"
5324 if test "$no_cache" != 1; then
5325 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5326 fi
5327
5328 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5329 echo "$as_me:$LINENO: result: yes" >&5
5330echo "${ECHO_T}yes" >&6
10f2d63a 5331 else
e6cc62c6
VS
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
10f2d63a 5334 fi
e6cc62c6 5335
10f2d63a 5336
5005acfe 5337 enablestring=
e6cc62c6
VS
5338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5339echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5340 no_cache=0
5341 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5342if test "${enable_std_iostreams+set}" = set; then
5343 enableval="$enable_std_iostreams"
e6cc62c6 5344
10f2d63a
VZ
5345 if test "$enableval" = yes; then
5346 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5347 else
5348 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5349 fi
e6cc62c6 5350
10f2d63a 5351else
e6cc62c6 5352
10f2d63a
VZ
5353 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5354 if test "x$LINE" != x ; then
5355 eval "DEFAULT_$LINE"
5356 else
5357 no_cache=1
5358 fi
5359
5360 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5361
e6cc62c6 5362fi;
10f2d63a
VZ
5363
5364 eval "$ac_cv_use_std_iostreams"
5365 if test "$no_cache" != 1; then
5366 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5367 fi
5368
5369 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5370 echo "$as_me:$LINENO: result: yes" >&5
5371echo "${ECHO_T}yes" >&6
10f2d63a 5372 else
e6cc62c6
VS
5373 echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
10f2d63a 5375 fi
e6cc62c6 5376
10f2d63a 5377
5005acfe 5378 enablestring=
e46d2a18
VS
5379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5380echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5381 no_cache=0
e46d2a18
VS
5382 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5383if test "${enable_stopwatch+set}" = set; then
5384 enableval="$enable_stopwatch"
e6cc62c6 5385
24528b0c 5386 if test "$enableval" = yes; then
e46d2a18 5387 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5388 else
e46d2a18 5389 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5390 fi
e6cc62c6 5391
24528b0c 5392else
e6cc62c6 5393
e46d2a18 5394 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
e46d2a18 5401 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5402
e6cc62c6 5403fi;
24528b0c 5404
e46d2a18 5405 eval "$ac_cv_use_stopwatch"
24528b0c 5406 if test "$no_cache" != 1; then
e46d2a18 5407 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5408 fi
5409
e46d2a18 5410 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5411 echo "$as_me:$LINENO: result: yes" >&5
5412echo "${ECHO_T}yes" >&6
24528b0c 5413 else
e6cc62c6
VS
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
24528b0c 5416 fi
e6cc62c6 5417
24528b0c 5418
5005acfe 5419 enablestring=
e46d2a18
VS
5420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5421echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5422 no_cache=0
e46d2a18
VS
5423 # Check whether --enable-system_options or --disable-system_options was given.
5424if test "${enable_system_options+set}" = set; then
5425 enableval="$enable_system_options"
e6cc62c6 5426
10f2d63a 5427 if test "$enableval" = yes; then
e46d2a18 5428 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5429 else
e46d2a18 5430 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5431 fi
e6cc62c6 5432
10f2d63a 5433else
e6cc62c6 5434
e46d2a18 5435 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
e46d2a18 5442 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5443
e6cc62c6 5444fi;
10f2d63a 5445
e46d2a18 5446 eval "$ac_cv_use_system_options"
10f2d63a 5447 if test "$no_cache" != 1; then
e46d2a18 5448 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5449 fi
5450
e46d2a18 5451 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5452 echo "$as_me:$LINENO: result: yes" >&5
5453echo "${ECHO_T}yes" >&6
10f2d63a 5454 else
e6cc62c6
VS
5455 echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
10f2d63a 5457 fi
e6cc62c6 5458
10f2d63a 5459
5005acfe 5460 enablestring=
e46d2a18
VS
5461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5462echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5463 no_cache=0
e46d2a18
VS
5464 # Check whether --enable-textbuf or --disable-textbuf was given.
5465if test "${enable_textbuf+set}" = set; then
5466 enableval="$enable_textbuf"
e6cc62c6 5467
10f2d63a 5468 if test "$enableval" = yes; then
e46d2a18 5469 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5470 else
e46d2a18 5471 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5472 fi
e6cc62c6 5473
10f2d63a 5474else
e6cc62c6 5475
e46d2a18 5476 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 else
5480 no_cache=1
5481 fi
5482
e46d2a18 5483 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5484
e6cc62c6 5485fi;
10f2d63a 5486
e46d2a18 5487 eval "$ac_cv_use_textbuf"
10f2d63a 5488 if test "$no_cache" != 1; then
e46d2a18 5489 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5490 fi
5491
e46d2a18 5492 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5493 echo "$as_me:$LINENO: result: yes" >&5
5494echo "${ECHO_T}yes" >&6
10f2d63a 5495 else
e6cc62c6
VS
5496 echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6
10f2d63a 5498 fi
e6cc62c6 5499
10f2d63a 5500
5005acfe 5501 enablestring=
e46d2a18
VS
5502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5503echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5504 no_cache=0
e46d2a18
VS
5505 # Check whether --enable-textfile or --disable-textfile was given.
5506if test "${enable_textfile+set}" = set; then
5507 enableval="$enable_textfile"
e6cc62c6 5508
10f2d63a 5509 if test "$enableval" = yes; then
e46d2a18 5510 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5511 else
e46d2a18 5512 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5513 fi
e6cc62c6 5514
10f2d63a 5515else
e6cc62c6 5516
e46d2a18 5517 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5518 if test "x$LINE" != x ; then
5519 eval "DEFAULT_$LINE"
5520 else
5521 no_cache=1
5522 fi
5523
e46d2a18 5524 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5525
e6cc62c6 5526fi;
10f2d63a 5527
e46d2a18 5528 eval "$ac_cv_use_textfile"
10f2d63a 5529 if test "$no_cache" != 1; then
e46d2a18 5530 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5531 fi
5532
e46d2a18 5533 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5534 echo "$as_me:$LINENO: result: yes" >&5
5535echo "${ECHO_T}yes" >&6
10f2d63a 5536 else
e6cc62c6
VS
5537 echo "$as_me:$LINENO: result: no" >&5
5538echo "${ECHO_T}no" >&6
10f2d63a 5539 fi
e6cc62c6 5540
8284b0c5 5541
5005acfe 5542 enablestring=
e46d2a18
VS
5543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5544echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5545 no_cache=0
e46d2a18
VS
5546 # Check whether --enable-timer or --disable-timer was given.
5547if test "${enable_timer+set}" = set; then
5548 enableval="$enable_timer"
e6cc62c6 5549
eb4efbdc 5550 if test "$enableval" = yes; then
e46d2a18 5551 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5552 else
e46d2a18 5553 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5554 fi
e6cc62c6 5555
eb4efbdc 5556else
e6cc62c6 5557
e46d2a18 5558 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5559 if test "x$LINE" != x ; then
5560 eval "DEFAULT_$LINE"
5561 else
5562 no_cache=1
5563 fi
5564
e46d2a18 5565 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5566
e6cc62c6 5567fi;
eb4efbdc 5568
e46d2a18 5569 eval "$ac_cv_use_timer"
eb4efbdc 5570 if test "$no_cache" != 1; then
e46d2a18 5571 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5572 fi
5573
e46d2a18 5574 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5575 echo "$as_me:$LINENO: result: yes" >&5
5576echo "${ECHO_T}yes" >&6
eb4efbdc 5577 else
e6cc62c6
VS
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
eb4efbdc 5580 fi
e6cc62c6 5581
eb4efbdc 5582
5005acfe 5583 enablestring=
e46d2a18
VS
5584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5585echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5586 no_cache=0
e46d2a18
VS
5587 # Check whether --enable-unicode or --disable-unicode was given.
5588if test "${enable_unicode+set}" = set; then
5589 enableval="$enable_unicode"
e6cc62c6 5590
4f3c5f06 5591 if test "$enableval" = yes; then
e46d2a18 5592 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5593 else
e46d2a18 5594 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5595 fi
e6cc62c6 5596
4f3c5f06 5597else
e6cc62c6 5598
e46d2a18 5599 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
e46d2a18 5606 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5607
e6cc62c6 5608fi;
4f3c5f06 5609
e46d2a18 5610 eval "$ac_cv_use_unicode"
4f3c5f06 5611 if test "$no_cache" != 1; then
e46d2a18 5612 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5613 fi
5614
e46d2a18 5615 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5616 echo "$as_me:$LINENO: result: yes" >&5
5617echo "${ECHO_T}yes" >&6
4f3c5f06 5618 else
e6cc62c6
VS
5619 echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6
4f3c5f06 5621 fi
e6cc62c6 5622
52127426 5623
e46d2a18 5624 enablestring=
002ed9af
VS
5625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5626echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
e46d2a18 5627 no_cache=0
002ed9af
VS
5628 # Check whether --enable-sound or --disable-sound was given.
5629if test "${enable_sound+set}" = set; then
5630 enableval="$enable_sound"
e46d2a18
VS
5631
5632 if test "$enableval" = yes; then
002ed9af 5633 ac_cv_use_sound='wxUSE_SOUND=yes'
e46d2a18 5634 else
002ed9af 5635 ac_cv_use_sound='wxUSE_SOUND=no'
e46d2a18
VS
5636 fi
5637
5638else
5639
002ed9af 5640 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
e46d2a18
VS
5641 if test "x$LINE" != x ; then
5642 eval "DEFAULT_$LINE"
5643 else
5644 no_cache=1
5645 fi
5646
002ed9af 5647 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
e46d2a18
VS
5648
5649fi;
5650
002ed9af 5651 eval "$ac_cv_use_sound"
e46d2a18 5652 if test "$no_cache" != 1; then
002ed9af 5653 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
e46d2a18
VS
5654 fi
5655
002ed9af 5656 if test "$wxUSE_SOUND" = yes; then
e46d2a18
VS
5657 echo "$as_me:$LINENO: result: yes" >&5
5658echo "${ECHO_T}yes" >&6
5659 else
5660 echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
5662 fi
5663
8284b0c5 5664
5005acfe 5665 enablestring=
e46d2a18
VS
5666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5667echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5668 no_cache=0
e46d2a18
VS
5669 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5670if test "${enable_wxprintfv+set}" = set; then
5671 enableval="$enable_wxprintfv"
e6cc62c6 5672
1e6feb95 5673 if test "$enableval" = yes; then
e46d2a18 5674 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5675 else
e46d2a18 5676 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5677 fi
e6cc62c6 5678
1e6feb95 5679else
e6cc62c6 5680
e46d2a18 5681 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5682 if test "x$LINE" != x ; then
5683 eval "DEFAULT_$LINE"
5684 else
5685 no_cache=1
5686 fi
5687
e46d2a18 5688 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5689
e6cc62c6 5690fi;
1e6feb95 5691
e46d2a18 5692 eval "$ac_cv_use_wxprintfv"
1e6feb95 5693 if test "$no_cache" != 1; then
e46d2a18 5694 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5695 fi
5696
e46d2a18 5697 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5698 echo "$as_me:$LINENO: result: yes" >&5
5699echo "${ECHO_T}yes" >&6
1e6feb95 5700 else
e6cc62c6
VS
5701 echo "$as_me:$LINENO: result: no" >&5
5702echo "${ECHO_T}no" >&6
1e6feb95 5703 fi
e6cc62c6 5704
1e6feb95 5705
5005acfe 5706 enablestring=
e46d2a18
VS
5707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5708echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5709 no_cache=0
e46d2a18
VS
5710 # Check whether --enable-zipstream or --disable-zipstream was given.
5711if test "${enable_zipstream+set}" = set; then
5712 enableval="$enable_zipstream"
e6cc62c6 5713
3e44f09d 5714 if test "$enableval" = yes; then
e46d2a18 5715 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5716 else
e46d2a18 5717 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5718 fi
e6cc62c6 5719
3e44f09d 5720else
e6cc62c6 5721
e46d2a18 5722 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5723 if test "x$LINE" != x ; then
5724 eval "DEFAULT_$LINE"
5725 else
5726 no_cache=1
5727 fi
5728
e46d2a18 5729 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5730
e6cc62c6 5731fi;
3e44f09d 5732
e46d2a18 5733 eval "$ac_cv_use_zipstream"
3e44f09d 5734 if test "$no_cache" != 1; then
e46d2a18 5735 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5736 fi
5737
e46d2a18 5738 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5739 echo "$as_me:$LINENO: result: yes" >&5
5740echo "${ECHO_T}yes" >&6
3e44f09d 5741 else
e6cc62c6
VS
5742 echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
3e44f09d 5744 fi
e6cc62c6 5745
8284b0c5 5746
7015ef3a
VZ
5747 enablestring=
5748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5749echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5750 no_cache=0
5751 # Check whether --enable-gzstream or --disable-gzstream was given.
5752if test "${enable_gzstream+set}" = set; then
5753 enableval="$enable_gzstream"
5754
5755 if test "$enableval" = yes; then
5756 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5757 else
5758 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5759 fi
5760
5761else
5762
5763 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5771
5772fi;
5773
5774 eval "$ac_cv_use_gzstream"
5775 if test "$no_cache" != 1; then
5776 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5777 fi
5778
5779 if test "$wxUSE_GZSTREAM" = yes; then
5780 echo "$as_me:$LINENO: result: yes" >&5
5781echo "${ECHO_T}yes" >&6
5782 else
5783 echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6
5785 fi
5786
5787
52127426 5788
5005acfe 5789 enablestring=
e6cc62c6
VS
5790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5791echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5792 no_cache=0
5793 # Check whether --enable-url or --disable-url was given.
5794if test "${enable_url+set}" = set; then
5795 enableval="$enable_url"
e6cc62c6 5796
4cdb0ab0
VS
5797 if test "$enableval" = yes; then
5798 ac_cv_use_url='wxUSE_URL=yes'
5799 else
5800 ac_cv_use_url='wxUSE_URL=no'
5801 fi
e6cc62c6 5802
4cdb0ab0 5803else
e6cc62c6 5804
4cdb0ab0
VS
5805 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5806 if test "x$LINE" != x ; then
5807 eval "DEFAULT_$LINE"
5808 else
5809 no_cache=1
5810 fi
5811
5812 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5813
e6cc62c6 5814fi;
4cdb0ab0
VS
5815
5816 eval "$ac_cv_use_url"
5817 if test "$no_cache" != 1; then
5818 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5819 fi
5820
5821 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5822 echo "$as_me:$LINENO: result: yes" >&5
5823echo "${ECHO_T}yes" >&6
4cdb0ab0 5824 else
e6cc62c6
VS
5825 echo "$as_me:$LINENO: result: no" >&5
5826echo "${ECHO_T}no" >&6
4cdb0ab0 5827 fi
e6cc62c6 5828
4cdb0ab0 5829
5005acfe 5830 enablestring=
e6cc62c6
VS
5831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5832echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5833 no_cache=0
5834 # Check whether --enable-protocol or --disable-protocol was given.
5835if test "${enable_protocol+set}" = set; then
5836 enableval="$enable_protocol"
e6cc62c6 5837
4cdb0ab0
VS
5838 if test "$enableval" = yes; then
5839 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5840 else
5841 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5842 fi
e6cc62c6 5843
4cdb0ab0 5844else
e6cc62c6 5845
4cdb0ab0
VS
5846 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5854
e6cc62c6 5855fi;
4cdb0ab0
VS
5856
5857 eval "$ac_cv_use_protocol"
5858 if test "$no_cache" != 1; then
5859 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5860 fi
5861
5862 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5863 echo "$as_me:$LINENO: result: yes" >&5
5864echo "${ECHO_T}yes" >&6
4cdb0ab0 5865 else
e6cc62c6
VS
5866 echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
4cdb0ab0 5868 fi
e6cc62c6 5869
4cdb0ab0 5870
5005acfe 5871 enablestring=
e6cc62c6
VS
5872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5873echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5874 no_cache=0
5875 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5876if test "${enable_protocol_http+set}" = set; then
5877 enableval="$enable_protocol_http"
e6cc62c6 5878
4cdb0ab0
VS
5879 if test "$enableval" = yes; then
5880 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5881 else
5882 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5883 fi
e6cc62c6 5884
4cdb0ab0 5885else
e6cc62c6 5886
4cdb0ab0
VS
5887 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5888 if test "x$LINE" != x ; then
5889 eval "DEFAULT_$LINE"
5890 else
5891 no_cache=1
5892 fi
5893
5894 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5895
e6cc62c6 5896fi;
4cdb0ab0
VS
5897
5898 eval "$ac_cv_use_protocol_http"
5899 if test "$no_cache" != 1; then
5900 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5901 fi
5902
5903 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5904 echo "$as_me:$LINENO: result: yes" >&5
5905echo "${ECHO_T}yes" >&6
4cdb0ab0 5906 else
e6cc62c6
VS
5907 echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6
4cdb0ab0 5909 fi
e6cc62c6 5910
4cdb0ab0 5911
5005acfe 5912 enablestring=
e6cc62c6
VS
5913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5914echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5915 no_cache=0
5916 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5917if test "${enable_protocol_ftp+set}" = set; then
5918 enableval="$enable_protocol_ftp"
e6cc62c6 5919
4cdb0ab0
VS
5920 if test "$enableval" = yes; then
5921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5922 else
5923 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5924 fi
e6cc62c6 5925
4cdb0ab0 5926else
e6cc62c6 5927
4cdb0ab0
VS
5928 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5936
e6cc62c6 5937fi;
4cdb0ab0
VS
5938
5939 eval "$ac_cv_use_protocol_ftp"
5940 if test "$no_cache" != 1; then
5941 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5942 fi
5943
5944 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5945 echo "$as_me:$LINENO: result: yes" >&5
5946echo "${ECHO_T}yes" >&6
4cdb0ab0 5947 else
e6cc62c6
VS
5948 echo "$as_me:$LINENO: result: no" >&5
5949echo "${ECHO_T}no" >&6
4cdb0ab0 5950 fi
e6cc62c6 5951
4cdb0ab0 5952
5005acfe 5953 enablestring=
e6cc62c6
VS
5954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5955echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5956 no_cache=0
5957 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5958if test "${enable_protocol_file+set}" = set; then
5959 enableval="$enable_protocol_file"
e6cc62c6 5960
4cdb0ab0
VS
5961 if test "$enableval" = yes; then
5962 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5963 else
5964 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5965 fi
e6cc62c6 5966
4cdb0ab0 5967else
e6cc62c6 5968
4cdb0ab0
VS
5969 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5970 if test "x$LINE" != x ; then
5971 eval "DEFAULT_$LINE"
5972 else
5973 no_cache=1
5974 fi
5975
5976 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5977
e6cc62c6 5978fi;
4cdb0ab0
VS
5979
5980 eval "$ac_cv_use_protocol_file"
5981 if test "$no_cache" != 1; then
5982 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5983 fi
5984
5985 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5986 echo "$as_me:$LINENO: result: yes" >&5
5987echo "${ECHO_T}yes" >&6
4cdb0ab0 5988 else
e6cc62c6
VS
5989 echo "$as_me:$LINENO: result: no" >&5
5990echo "${ECHO_T}no" >&6
4cdb0ab0 5991 fi
e6cc62c6 5992
52127426 5993
8284b0c5
MB
5994
5995
5996
5005acfe 5997 enablestring=
e6cc62c6
VS
5998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5999echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
6000 no_cache=0
6001 # Check whether --enable-threads or --disable-threads was given.
6002if test "${enable_threads+set}" = set; then
6003 enableval="$enable_threads"
e6cc62c6 6004
10f2d63a
VZ
6005 if test "$enableval" = yes; then
6006 ac_cv_use_threads='wxUSE_THREADS=yes'
6007 else
6008 ac_cv_use_threads='wxUSE_THREADS=no'
6009 fi
e6cc62c6 6010
10f2d63a 6011else
e6cc62c6 6012
10f2d63a
VZ
6013 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6014 if test "x$LINE" != x ; then
6015 eval "DEFAULT_$LINE"
6016 else
6017 no_cache=1
6018 fi
6019
6020 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 6021
e6cc62c6 6022fi;
10f2d63a
VZ
6023
6024 eval "$ac_cv_use_threads"
6025 if test "$no_cache" != 1; then
6026 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6027 fi
6028
6029 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
6030 echo "$as_me:$LINENO: result: yes" >&5
6031echo "${ECHO_T}yes" >&6
10f2d63a 6032 else
e6cc62c6
VS
6033 echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6
10f2d63a 6035 fi
e6cc62c6 6036
10f2d63a 6037
b12915c1
VZ
6038if test "$wxUSE_GUI" = "yes"; then
6039
8284b0c5
MB
6040
6041
5005acfe 6042 enablestring=
e6cc62c6
VS
6043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6044echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
6045 no_cache=0
6046 # Check whether --enable-docview or --disable-docview was given.
6047if test "${enable_docview+set}" = set; then
6048 enableval="$enable_docview"
e6cc62c6 6049
10f2d63a
VZ
6050 if test "$enableval" = yes; then
6051 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6052 else
6053 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6054 fi
e6cc62c6 6055
10f2d63a 6056else
e6cc62c6 6057
10f2d63a
VZ
6058 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6059 if test "x$LINE" != x ; then
6060 eval "DEFAULT_$LINE"
6061 else
6062 no_cache=1
6063 fi
6064
6065 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 6066
e6cc62c6 6067fi;
10f2d63a
VZ
6068
6069 eval "$ac_cv_use_docview"
6070 if test "$no_cache" != 1; then
6071 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6072 fi
6073
6074 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
6075 echo "$as_me:$LINENO: result: yes" >&5
6076echo "${ECHO_T}yes" >&6
10f2d63a 6077 else
e6cc62c6
VS
6078 echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
10f2d63a 6080 fi
e6cc62c6 6081
10f2d63a 6082
5005acfe 6083 enablestring=
e6cc62c6
VS
6084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6085echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
6086 no_cache=0
6087 # Check whether --enable-help or --disable-help was given.
6088if test "${enable_help+set}" = set; then
6089 enableval="$enable_help"
e6cc62c6 6090
10f2d63a
VZ
6091 if test "$enableval" = yes; then
6092 ac_cv_use_help='wxUSE_HELP=yes'
6093 else
6094 ac_cv_use_help='wxUSE_HELP=no'
6095 fi
e6cc62c6 6096
10f2d63a 6097else
e6cc62c6 6098
10f2d63a
VZ
6099 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6100 if test "x$LINE" != x ; then
6101 eval "DEFAULT_$LINE"
6102 else
6103 no_cache=1
6104 fi
6105
6106 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 6107
e6cc62c6 6108fi;
10f2d63a
VZ
6109
6110 eval "$ac_cv_use_help"
6111 if test "$no_cache" != 1; then
6112 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6113 fi
6114
6115 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
6116 echo "$as_me:$LINENO: result: yes" >&5
6117echo "${ECHO_T}yes" >&6
10f2d63a 6118 else
e6cc62c6
VS
6119 echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6
10f2d63a 6121 fi
e6cc62c6 6122
10f2d63a 6123
5005acfe 6124 enablestring=
e6cc62c6
VS
6125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6126echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
6127 no_cache=0
6128 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6129if test "${enable_mshtmlhelp+set}" = set; then
6130 enableval="$enable_mshtmlhelp"
e6cc62c6 6131
29fd3c0c
VS
6132 if test "$enableval" = yes; then
6133 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6134 else
6135 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6136 fi
e6cc62c6 6137
29fd3c0c 6138else
e6cc62c6 6139
29fd3c0c
VS
6140 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6141 if test "x$LINE" != x ; then
6142 eval "DEFAULT_$LINE"
6143 else
6144 no_cache=1
6145 fi
6146
6147 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6148
e6cc62c6 6149fi;
29fd3c0c
VS
6150
6151 eval "$ac_cv_use_mshtmlhelp"
6152 if test "$no_cache" != 1; then
6153 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6154 fi
6155
6156 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6157 echo "$as_me:$LINENO: result: yes" >&5
6158echo "${ECHO_T}yes" >&6
29fd3c0c 6159 else
e6cc62c6
VS
6160 echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
29fd3c0c 6162 fi
e6cc62c6 6163
29fd3c0c 6164
5005acfe 6165 enablestring=
e6cc62c6
VS
6166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6167echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6168 no_cache=0
6169 # Check whether --enable-html or --disable-html was given.
6170if test "${enable_html+set}" = set; then
6171 enableval="$enable_html"
e6cc62c6 6172
3379ed37
VZ
6173 if test "$enableval" = yes; then
6174 ac_cv_use_html='wxUSE_HTML=yes'
6175 else
6176 ac_cv_use_html='wxUSE_HTML=no'
6177 fi
e6cc62c6 6178
3379ed37 6179else
e6cc62c6 6180
3379ed37
VZ
6181 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6182 if test "x$LINE" != x ; then
6183 eval "DEFAULT_$LINE"
6184 else
6185 no_cache=1
6186 fi
6187
6188 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6189
e6cc62c6 6190fi;
3379ed37
VZ
6191
6192 eval "$ac_cv_use_html"
6193 if test "$no_cache" != 1; then
6194 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6195 fi
6196
6197 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6198 echo "$as_me:$LINENO: result: yes" >&5
6199echo "${ECHO_T}yes" >&6
3379ed37 6200 else
e6cc62c6
VS
6201 echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6
3379ed37 6203 fi
e6cc62c6 6204
3379ed37 6205
5005acfe 6206 enablestring=
e6cc62c6
VS
6207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6208echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6209 no_cache=0
6210 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6211if test "${enable_htmlhelp+set}" = set; then
6212 enableval="$enable_htmlhelp"
e6cc62c6 6213
3379ed37
VZ
6214 if test "$enableval" = yes; then
6215 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6216 else
6217 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6218 fi
e6cc62c6 6219
3379ed37 6220else
e6cc62c6 6221
3379ed37
VZ
6222 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6223 if test "x$LINE" != x ; then
6224 eval "DEFAULT_$LINE"
6225 else
6226 no_cache=1
6227 fi
6228
6229 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6230
e6cc62c6 6231fi;
3379ed37
VZ
6232
6233 eval "$ac_cv_use_htmlhelp"
6234 if test "$no_cache" != 1; then
6235 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6236 fi
6237
6238 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6239 echo "$as_me:$LINENO: result: yes" >&5
6240echo "${ECHO_T}yes" >&6
3379ed37 6241 else
e6cc62c6
VS
6242 echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
3379ed37 6244 fi
e6cc62c6 6245
3379ed37 6246
5005acfe 6247 enablestring=
e6cc62c6
VS
6248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6249echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6250 no_cache=0
6251 # Check whether --enable-constraints or --disable-constraints was given.
6252if test "${enable_constraints+set}" = set; then
6253 enableval="$enable_constraints"
e6cc62c6 6254
10f2d63a
VZ
6255 if test "$enableval" = yes; then
6256 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6257 else
6258 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6259 fi
e6cc62c6 6260
10f2d63a 6261else
e6cc62c6 6262
10f2d63a
VZ
6263 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6264 if test "x$LINE" != x ; then
6265 eval "DEFAULT_$LINE"
6266 else
6267 no_cache=1
6268 fi
6269
6270 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6271
e6cc62c6 6272fi;
10f2d63a
VZ
6273
6274 eval "$ac_cv_use_constraints"
6275 if test "$no_cache" != 1; then
6276 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6277 fi
6278
6279 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6280 echo "$as_me:$LINENO: result: yes" >&5
6281echo "${ECHO_T}yes" >&6
10f2d63a 6282 else
e6cc62c6
VS
6283 echo "$as_me:$LINENO: result: no" >&5
6284echo "${ECHO_T}no" >&6
10f2d63a 6285 fi
e6cc62c6 6286
10f2d63a 6287
5005acfe 6288 enablestring=
e6cc62c6
VS
6289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6290echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6291 no_cache=0
6292 # Check whether --enable-printarch or --disable-printarch was given.
6293if test "${enable_printarch+set}" = set; then
6294 enableval="$enable_printarch"
e6cc62c6 6295
10f2d63a
VZ
6296 if test "$enableval" = yes; then
6297 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6298 else
6299 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6300 fi
e6cc62c6 6301
10f2d63a 6302else
e6cc62c6 6303
10f2d63a
VZ
6304 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6312
e6cc62c6 6313fi;
10f2d63a
VZ
6314
6315 eval "$ac_cv_use_printarch"
6316 if test "$no_cache" != 1; then
6317 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6318 fi
6319
6320 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6321 echo "$as_me:$LINENO: result: yes" >&5
6322echo "${ECHO_T}yes" >&6
10f2d63a 6323 else
e6cc62c6
VS
6324 echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
10f2d63a 6326 fi
e6cc62c6 6327
10f2d63a 6328
5005acfe 6329 enablestring=
e6cc62c6
VS
6330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6331echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6332 no_cache=0
6333 # Check whether --enable-mdi or --disable-mdi was given.
6334if test "${enable_mdi+set}" = set; then
6335 enableval="$enable_mdi"
e6cc62c6 6336
10f2d63a
VZ
6337 if test "$enableval" = yes; then
6338 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6339 else
6340 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6341 fi
e6cc62c6 6342
10f2d63a 6343else
e6cc62c6 6344
10f2d63a
VZ
6345 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6346 if test "x$LINE" != x ; then
6347 eval "DEFAULT_$LINE"
6348 else
6349 no_cache=1
6350 fi
6351
6352 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6353
e6cc62c6 6354fi;
10f2d63a
VZ
6355
6356 eval "$ac_cv_use_mdi"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6362 echo "$as_me:$LINENO: result: yes" >&5
6363echo "${ECHO_T}yes" >&6
10f2d63a 6364 else
e6cc62c6
VS
6365 echo "$as_me:$LINENO: result: no" >&5
6366echo "${ECHO_T}no" >&6
10f2d63a 6367 fi
e6cc62c6 6368
698dcdb6 6369
5005acfe 6370 enablestring=
e6cc62c6
VS
6371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6372echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6373 no_cache=0
6374 # Check whether --enable-loggui or --disable-loggui was given.
6375if test "${enable_loggui+set}" = set; then
6376 enableval="$enable_loggui"
e6cc62c6 6377
1e6feb95
VZ
6378 if test "$enableval" = yes; then
6379 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6380 else
6381 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6382 fi
e6cc62c6 6383
1e6feb95 6384else
e6cc62c6 6385
1e6feb95
VZ
6386 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6387 if test "x$LINE" != x ; then
6388 eval "DEFAULT_$LINE"
6389 else
6390 no_cache=1
6391 fi
6392
6393 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6394
e6cc62c6 6395fi;
1e6feb95
VZ
6396
6397 eval "$ac_cv_use_loggui"
6398 if test "$no_cache" != 1; then
6399 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6400 fi
6401
6402 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6403 echo "$as_me:$LINENO: result: yes" >&5
6404echo "${ECHO_T}yes" >&6
1e6feb95 6405 else
e6cc62c6
VS
6406 echo "$as_me:$LINENO: result: no" >&5
6407echo "${ECHO_T}no" >&6
1e6feb95 6408 fi
e6cc62c6 6409
1e6feb95 6410
5005acfe 6411 enablestring=
e6cc62c6
VS
6412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6413echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6414 no_cache=0
6415 # Check whether --enable-logwin or --disable-logwin was given.
6416if test "${enable_logwin+set}" = set; then
6417 enableval="$enable_logwin"
e6cc62c6 6418
1e6feb95
VZ
6419 if test "$enableval" = yes; then
6420 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6421 else
6422 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6423 fi
e6cc62c6 6424
1e6feb95 6425else
e6cc62c6 6426
1e6feb95
VZ
6427 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6435
e6cc62c6 6436fi;
1e6feb95
VZ
6437
6438 eval "$ac_cv_use_logwin"
6439 if test "$no_cache" != 1; then
6440 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6441 fi
6442
6443 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6444 echo "$as_me:$LINENO: result: yes" >&5
6445echo "${ECHO_T}yes" >&6
1e6feb95 6446 else
e6cc62c6
VS
6447 echo "$as_me:$LINENO: result: no" >&5
6448echo "${ECHO_T}no" >&6
1e6feb95 6449 fi
e6cc62c6 6450
1e6feb95 6451
5005acfe 6452 enablestring=
e6cc62c6
VS
6453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6454echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6455 no_cache=0
6456 # Check whether --enable-logdialog or --disable-logdialog was given.
6457if test "${enable_logdialog+set}" = set; then
6458 enableval="$enable_logdialog"
e6cc62c6 6459
69d27ff7
MB
6460 if test "$enableval" = yes; then
6461 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6462 else
6463 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6464 fi
e6cc62c6 6465
69d27ff7 6466else
e6cc62c6 6467
69d27ff7
MB
6468 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6476
e6cc62c6 6477fi;
69d27ff7
MB
6478
6479 eval "$ac_cv_use_logdialog"
6480 if test "$no_cache" != 1; then
6481 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6482 fi
6483
6484 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6485 echo "$as_me:$LINENO: result: yes" >&5
6486echo "${ECHO_T}yes" >&6
69d27ff7 6487 else
e6cc62c6
VS
6488 echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6
69d27ff7 6490 fi
e6cc62c6 6491
8284b0c5 6492
52127426 6493
5005acfe 6494 enablestring=
e6cc62c6
VS
6495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6496echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6497 no_cache=0
6498 # Check whether --enable-postscript or --disable-postscript was given.
6499if test "${enable_postscript+set}" = set; then
6500 enableval="$enable_postscript"
e6cc62c6 6501
10f2d63a
VZ
6502 if test "$enableval" = yes; then
6503 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6504 else
6505 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6506 fi
e6cc62c6 6507
10f2d63a 6508else
e6cc62c6 6509
10f2d63a
VZ
6510 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6511 if test "x$LINE" != x ; then
6512 eval "DEFAULT_$LINE"
6513 else
6514 no_cache=1
6515 fi
6516
6517 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6518
e6cc62c6 6519fi;
10f2d63a
VZ
6520
6521 eval "$ac_cv_use_postscript"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6527 echo "$as_me:$LINENO: result: yes" >&5
6528echo "${ECHO_T}yes" >&6
10f2d63a 6529 else
e6cc62c6
VS
6530 echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6
10f2d63a 6532 fi
e6cc62c6 6533
8284b0c5
MB
6534
6535
52127426 6536
8284b0c5 6537
5005acfe 6538 enablestring=
e6cc62c6
VS
6539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6540echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6541 no_cache=0
3c907f20
VZ
6542 # Check whether --enable-prologio or --disable-prologio was given.
6543if test "${enable_prologio+set}" = set; then
6544 enableval="$enable_prologio"
e6cc62c6 6545
10f2d63a 6546 if test "$enableval" = yes; then
3c907f20 6547 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6548 else
3c907f20 6549 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6550 fi
e6cc62c6 6551
10f2d63a 6552else
e6cc62c6 6553
3c907f20 6554 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6555 if test "x$LINE" != x ; then
6556 eval "DEFAULT_$LINE"
6557 else
6558 no_cache=1
6559 fi
6560
3c907f20 6561 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6562
e6cc62c6 6563fi;
10f2d63a 6564
3c907f20 6565 eval "$ac_cv_use_prologio"
10f2d63a 6566 if test "$no_cache" != 1; then
3c907f20 6567 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6568 fi
6569
3c907f20 6570 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6571 echo "$as_me:$LINENO: result: yes" >&5
6572echo "${ECHO_T}yes" >&6
10f2d63a 6573 else
e6cc62c6
VS
6574 echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6
10f2d63a 6576 fi
e6cc62c6 6577
8284b0c5 6578
5005acfe 6579 enablestring=
e6cc62c6
VS
6580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6581echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6582 no_cache=0
3c907f20
VZ
6583 # Check whether --enable-resources or --disable-resources was given.
6584if test "${enable_resources+set}" = set; then
6585 enableval="$enable_resources"
e6cc62c6 6586
10f2d63a 6587 if test "$enableval" = yes; then
3c907f20 6588 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6589 else
3c907f20 6590 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6591 fi
e6cc62c6 6592
10f2d63a 6593else
e6cc62c6 6594
3c907f20 6595 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6596 if test "x$LINE" != x ; then
6597 eval "DEFAULT_$LINE"
6598 else
6599 no_cache=1
6600 fi
6601
3c907f20 6602 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6603
e6cc62c6 6604fi;
10f2d63a 6605
3c907f20 6606 eval "$ac_cv_use_resources"
10f2d63a 6607 if test "$no_cache" != 1; then
3c907f20 6608 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6609 fi
6610
3c907f20 6611 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6612 echo "$as_me:$LINENO: result: yes" >&5
6613echo "${ECHO_T}yes" >&6
10f2d63a 6614 else
e6cc62c6
VS
6615 echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6
10f2d63a 6617 fi
e6cc62c6 6618
8284b0c5
MB
6619
6620
52127426 6621
5005acfe 6622 enablestring=
e6cc62c6
VS
6623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6624echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6625 no_cache=0
6626 # Check whether --enable-clipboard or --disable-clipboard was given.
6627if test "${enable_clipboard+set}" = set; then
6628 enableval="$enable_clipboard"
e6cc62c6 6629
10f2d63a
VZ
6630 if test "$enableval" = yes; then
6631 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6632 else
6633 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6634 fi
e6cc62c6 6635
10f2d63a 6636else
e6cc62c6 6637
10f2d63a
VZ
6638 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6639 if test "x$LINE" != x ; then
6640 eval "DEFAULT_$LINE"
6641 else
6642 no_cache=1
6643 fi
6644
6645 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6646
e6cc62c6 6647fi;
10f2d63a
VZ
6648
6649 eval "$ac_cv_use_clipboard"
6650 if test "$no_cache" != 1; then
6651 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6652 fi
6653
6654 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6655 echo "$as_me:$LINENO: result: yes" >&5
6656echo "${ECHO_T}yes" >&6
10f2d63a 6657 else
e6cc62c6
VS
6658 echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
10f2d63a 6660 fi
e6cc62c6 6661
10f2d63a 6662
5005acfe 6663 enablestring=
e6cc62c6
VS
6664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6665echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6666 no_cache=0
6667 # Check whether --enable-dnd or --disable-dnd was given.
6668if test "${enable_dnd+set}" = set; then
6669 enableval="$enable_dnd"
e6cc62c6 6670
10f2d63a
VZ
6671 if test "$enableval" = yes; then
6672 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6673 else
6674 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6675 fi
e6cc62c6 6676
10f2d63a 6677else
e6cc62c6 6678
10f2d63a
VZ
6679 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6680 if test "x$LINE" != x ; then
6681 eval "DEFAULT_$LINE"
6682 else
6683 no_cache=1
6684 fi
6685
6686 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6687
e6cc62c6 6688fi;
10f2d63a
VZ
6689
6690 eval "$ac_cv_use_dnd"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6696 echo "$as_me:$LINENO: result: yes" >&5
6697echo "${ECHO_T}yes" >&6
10f2d63a 6698 else
e6cc62c6
VS
6699 echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
10f2d63a 6701 fi
e6cc62c6 6702
10f2d63a 6703
5005acfe 6704 enablestring=
e6cc62c6
VS
6705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6706echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6707 no_cache=0
6708 # Check whether --enable-metafile or --disable-metafile was given.
6709if test "${enable_metafile+set}" = set; then
6710 enableval="$enable_metafile"
e6cc62c6 6711
b64f0a5f
RL
6712 if test "$enableval" = yes; then
6713 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6714 else
6715 ac_cv_use_metafile='wxUSE_METAFILE=no'
6716 fi
e6cc62c6 6717
b64f0a5f 6718else
e6cc62c6 6719
b64f0a5f
RL
6720 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
6727 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6728
e6cc62c6 6729fi;
b64f0a5f
RL
6730
6731 eval "$ac_cv_use_metafile"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6737 echo "$as_me:$LINENO: result: yes" >&5
6738echo "${ECHO_T}yes" >&6
b64f0a5f 6739 else
e6cc62c6
VS
6740 echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6
b64f0a5f 6742 fi
e6cc62c6 6743
52127426 6744
8284b0c5 6745
52127426 6746
8284b0c5 6747
5005acfe 6748 enablestring=
e6cc62c6
VS
6749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6750echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6751 no_cache=0
6752 # Check whether --enable-controls or --disable-controls was given.
6753if test "${enable_controls+set}" = set; then
6754 enableval="$enable_controls"
e6cc62c6 6755
10f2d63a
VZ
6756 if test "$enableval" = yes; then
6757 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6758 else
6759 ac_cv_use_controls='wxUSE_CONTROLS=no'
6760 fi
e6cc62c6 6761
10f2d63a 6762else
e6cc62c6 6763
10f2d63a
VZ
6764 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6765 if test "x$LINE" != x ; then
6766 eval "DEFAULT_$LINE"
6767 else
6768 no_cache=1
6769 fi
6770
6771 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6772
e6cc62c6 6773fi;
10f2d63a
VZ
6774
6775 eval "$ac_cv_use_controls"
6776 if test "$no_cache" != 1; then
6777 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6778 fi
6779
6780 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6781 echo "$as_me:$LINENO: result: yes" >&5
6782echo "${ECHO_T}yes" >&6
10f2d63a 6783 else
e6cc62c6
VS
6784 echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6
10f2d63a 6786 fi
e6cc62c6 6787
10f2d63a
VZ
6788
6789if test "$wxUSE_CONTROLS" = "yes"; then
6790 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6791 DEFAULT_wxUSE_BMPBUTTON=yes
6792 DEFAULT_wxUSE_BUTTON=yes
6793 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6794 DEFAULT_wxUSE_CARET=yes
6795 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6796 DEFAULT_wxUSE_CHECKBOX=yes
6797 DEFAULT_wxUSE_CHECKLISTBOX=yes
6798 DEFAULT_wxUSE_CHOICE=yes
6799 DEFAULT_wxUSE_GAUGE=yes
6800 DEFAULT_wxUSE_GRID=yes
10f2d63a 6801 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6802 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6803 DEFAULT_wxUSE_LISTBOX=yes
6804 DEFAULT_wxUSE_LISTCTRL=yes
6805 DEFAULT_wxUSE_NOTEBOOK=yes
6806 DEFAULT_wxUSE_RADIOBOX=yes
6807 DEFAULT_wxUSE_RADIOBTN=yes
6808 DEFAULT_wxUSE_SASH=yes
6809 DEFAULT_wxUSE_SCROLLBAR=yes
6810 DEFAULT_wxUSE_SLIDER=yes
6811 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6812 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6813 DEFAULT_wxUSE_SPLITTER=yes
6814 DEFAULT_wxUSE_STATBMP=yes
6815 DEFAULT_wxUSE_STATBOX=yes
6816 DEFAULT_wxUSE_STATLINE=yes
6817 DEFAULT_wxUSE_STATUSBAR=yes
6818 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6819 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6820 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6821 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6822 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6823 DEFAULT_wxUSE_TOOLTIPS=yes
6824 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6825 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6826 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6827elif test "$wxUSE_CONTROLS" = "no"; then
6828 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6829 DEFAULT_wxUSE_BMPBUTTON=no
6830 DEFAULT_wxUSE_BUTTON=no
6831 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6832 DEFAULT_wxUSE_CARET=no
6833 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6834 DEFAULT_wxUSE_CHECKBOX=no
6835 DEFAULT_wxUSE_CHECKLISTBOX=no
6836 DEFAULT_wxUSE_CHOICE=no
6837 DEFAULT_wxUSE_GAUGE=no
6838 DEFAULT_wxUSE_GRID=no
10f2d63a 6839 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6840 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6841 DEFAULT_wxUSE_LISTBOX=no
6842 DEFAULT_wxUSE_LISTCTRL=no
6843 DEFAULT_wxUSE_NOTEBOOK=no
6844 DEFAULT_wxUSE_RADIOBOX=no
6845 DEFAULT_wxUSE_RADIOBTN=no
6846 DEFAULT_wxUSE_SASH=no
6847 DEFAULT_wxUSE_SCROLLBAR=no
6848 DEFAULT_wxUSE_SLIDER=no
6849 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6850 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6851 DEFAULT_wxUSE_SPLITTER=no
6852 DEFAULT_wxUSE_STATBMP=no
6853 DEFAULT_wxUSE_STATBOX=no
6854 DEFAULT_wxUSE_STATLINE=no
6855 DEFAULT_wxUSE_STATUSBAR=no
6856 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6857 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6858 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6859 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6860 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6861 DEFAULT_wxUSE_TOOLTIPS=no
6862 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6863 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6864 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6865fi
6866
ac0c4cc3
DE
6867## FIXME: This is a blatant hack
6868if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6869 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6870 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6871 # Generic notebook requires tab dialog
6872 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6873 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6874 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6875 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6876fi
6877
8284b0c5 6878
5005acfe 6879 enablestring=
e6cc62c6
VS
6880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6881echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6882 no_cache=0
6883 # Check whether --enable-accel or --disable-accel was given.
6884if test "${enable_accel+set}" = set; then
6885 enableval="$enable_accel"
e6cc62c6 6886
10f2d63a
VZ
6887 if test "$enableval" = yes; then
6888 ac_cv_use_accel='wxUSE_ACCEL=yes'
6889 else
6890 ac_cv_use_accel='wxUSE_ACCEL=no'
6891 fi
e6cc62c6 6892
10f2d63a 6893else
e6cc62c6 6894
10f2d63a
VZ
6895 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6903
e6cc62c6 6904fi;
10f2d63a
VZ
6905
6906 eval "$ac_cv_use_accel"
6907 if test "$no_cache" != 1; then
6908 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6909 fi
6910
6911 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6912 echo "$as_me:$LINENO: result: yes" >&5
6913echo "${ECHO_T}yes" >&6
10f2d63a 6914 else
e6cc62c6
VS
6915 echo "$as_me:$LINENO: result: no" >&5
6916echo "${ECHO_T}no" >&6
10f2d63a 6917 fi
e6cc62c6 6918
10f2d63a 6919
5005acfe 6920 enablestring=
e6cc62c6
VS
6921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6922echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6923 no_cache=0
1e6feb95
VZ
6924 # Check whether --enable-button or --disable-button was given.
6925if test "${enable_button+set}" = set; then
6926 enableval="$enable_button"
e6cc62c6 6927
10f2d63a 6928 if test "$enableval" = yes; then
1e6feb95 6929 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6930 else
1e6feb95 6931 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6932 fi
e6cc62c6 6933
10f2d63a 6934else
e6cc62c6 6935
1e6feb95 6936 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
1e6feb95 6943 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6944
e6cc62c6 6945fi;
10f2d63a 6946
1e6feb95 6947 eval "$ac_cv_use_button"
10f2d63a 6948 if test "$no_cache" != 1; then
1e6feb95 6949 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6950 fi
6951
1e6feb95 6952 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6953 echo "$as_me:$LINENO: result: yes" >&5
6954echo "${ECHO_T}yes" >&6
10f2d63a 6955 else
e6cc62c6
VS
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
10f2d63a 6958 fi
e6cc62c6 6959
10f2d63a 6960
5005acfe 6961 enablestring=
e6cc62c6
VS
6962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6963echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6964 no_cache=0
6965 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6966if test "${enable_bmpbutton+set}" = set; then
6967 enableval="$enable_bmpbutton"
e6cc62c6 6968
10f2d63a
VZ
6969 if test "$enableval" = yes; then
6970 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6971 else
6972 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6973 fi
e6cc62c6 6974
10f2d63a 6975else
e6cc62c6 6976
10f2d63a
VZ
6977 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6978 if test "x$LINE" != x ; then
6979 eval "DEFAULT_$LINE"
6980 else
6981 no_cache=1
6982 fi
6983
6984 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6985
e6cc62c6 6986fi;
10f2d63a
VZ
6987
6988 eval "$ac_cv_use_bmpbutton"
6989 if test "$no_cache" != 1; then
6990 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6991 fi
6992
6993 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6994 echo "$as_me:$LINENO: result: yes" >&5
6995echo "${ECHO_T}yes" >&6
10f2d63a 6996 else
e6cc62c6
VS
6997 echo "$as_me:$LINENO: result: no" >&5
6998echo "${ECHO_T}no" >&6
10f2d63a 6999 fi
e6cc62c6 7000
10f2d63a 7001
5005acfe 7002 enablestring=
e6cc62c6
VS
7003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7004echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
7005 no_cache=0
7006 # Check whether --enable-calendar or --disable-calendar was given.
7007if test "${enable_calendar+set}" = set; then
7008 enableval="$enable_calendar"
e6cc62c6 7009
1e6feb95
VZ
7010 if test "$enableval" = yes; then
7011 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7012 else
7013 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7014 fi
e6cc62c6 7015
1e6feb95 7016else
e6cc62c6 7017
1e6feb95
VZ
7018 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7019 if test "x$LINE" != x ; then
7020 eval "DEFAULT_$LINE"
7021 else
7022 no_cache=1
7023 fi
7024
7025 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 7026
e6cc62c6 7027fi;
1e6feb95
VZ
7028
7029 eval "$ac_cv_use_calendar"
7030 if test "$no_cache" != 1; then
7031 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7032 fi
7033
7034 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
7035 echo "$as_me:$LINENO: result: yes" >&5
7036echo "${ECHO_T}yes" >&6
1e6feb95 7037 else
e6cc62c6
VS
7038 echo "$as_me:$LINENO: result: no" >&5
7039echo "${ECHO_T}no" >&6
1e6feb95 7040 fi
e6cc62c6 7041
1e6feb95 7042
5005acfe 7043 enablestring=
e6cc62c6
VS
7044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7045echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
7046 no_cache=0
7047 # Check whether --enable-caret or --disable-caret was given.
7048if test "${enable_caret+set}" = set; then
7049 enableval="$enable_caret"
e6cc62c6 7050
1e6feb95
VZ
7051 if test "$enableval" = yes; then
7052 ac_cv_use_caret='wxUSE_CARET=yes'
7053 else
7054 ac_cv_use_caret='wxUSE_CARET=no'
7055 fi
e6cc62c6 7056
1e6feb95 7057else
e6cc62c6 7058
1e6feb95
VZ
7059 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7060 if test "x$LINE" != x ; then
7061 eval "DEFAULT_$LINE"
7062 else
7063 no_cache=1
7064 fi
7065
7066 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 7067
e6cc62c6 7068fi;
1e6feb95
VZ
7069
7070 eval "$ac_cv_use_caret"
7071 if test "$no_cache" != 1; then
7072 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7073 fi
7074
7075 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
7076 echo "$as_me:$LINENO: result: yes" >&5
7077echo "${ECHO_T}yes" >&6
1e6feb95 7078 else
e6cc62c6
VS
7079 echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6
1e6feb95 7081 fi
e6cc62c6 7082
1e6feb95 7083
5005acfe 7084 enablestring=
e6cc62c6
VS
7085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7086echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
7087 no_cache=0
7088 # Check whether --enable-checkbox or --disable-checkbox was given.
7089if test "${enable_checkbox+set}" = set; then
7090 enableval="$enable_checkbox"
e6cc62c6 7091
10f2d63a
VZ
7092 if test "$enableval" = yes; then
7093 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7094 else
7095 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7096 fi
e6cc62c6 7097
10f2d63a 7098else
e6cc62c6 7099
10f2d63a
VZ
7100 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7101 if test "x$LINE" != x ; then
7102 eval "DEFAULT_$LINE"
7103 else
7104 no_cache=1
7105 fi
7106
7107 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 7108
e6cc62c6 7109fi;
10f2d63a
VZ
7110
7111 eval "$ac_cv_use_checkbox"
7112 if test "$no_cache" != 1; then
7113 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7114 fi
7115
7116 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
7117 echo "$as_me:$LINENO: result: yes" >&5
7118echo "${ECHO_T}yes" >&6
10f2d63a 7119 else
e6cc62c6
VS
7120 echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6
10f2d63a 7122 fi
e6cc62c6 7123
10f2d63a 7124
5005acfe 7125 enablestring=
e6cc62c6
VS
7126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7127echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
7128 no_cache=0
7129 # Check whether --enable-checklst or --disable-checklst was given.
7130if test "${enable_checklst+set}" = set; then
7131 enableval="$enable_checklst"
e6cc62c6 7132
10f2d63a
VZ
7133 if test "$enableval" = yes; then
7134 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7135 else
7136 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7137 fi
e6cc62c6 7138
10f2d63a 7139else
e6cc62c6 7140
10f2d63a
VZ
7141 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7142 if test "x$LINE" != x ; then
7143 eval "DEFAULT_$LINE"
7144 else
7145 no_cache=1
7146 fi
7147
7148 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7149
e6cc62c6 7150fi;
10f2d63a
VZ
7151
7152 eval "$ac_cv_use_checklst"
7153 if test "$no_cache" != 1; then
7154 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7155 fi
7156
7157 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7158 echo "$as_me:$LINENO: result: yes" >&5
7159echo "${ECHO_T}yes" >&6
10f2d63a 7160 else
e6cc62c6
VS
7161 echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
10f2d63a 7163 fi
e6cc62c6 7164
10f2d63a 7165
5005acfe 7166 enablestring=
e6cc62c6
VS
7167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7168echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7169 no_cache=0
7170 # Check whether --enable-choice or --disable-choice was given.
7171if test "${enable_choice+set}" = set; then
7172 enableval="$enable_choice"
e6cc62c6 7173
10f2d63a
VZ
7174 if test "$enableval" = yes; then
7175 ac_cv_use_choice='wxUSE_CHOICE=yes'
7176 else
7177 ac_cv_use_choice='wxUSE_CHOICE=no'
7178 fi
e6cc62c6 7179
10f2d63a 7180else
e6cc62c6 7181
10f2d63a
VZ
7182 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7183 if test "x$LINE" != x ; then
7184 eval "DEFAULT_$LINE"
7185 else
7186 no_cache=1
7187 fi
7188
7189 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7190
e6cc62c6 7191fi;
10f2d63a
VZ
7192
7193 eval "$ac_cv_use_choice"
7194 if test "$no_cache" != 1; then
7195 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7196 fi
7197
7198 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7199 echo "$as_me:$LINENO: result: yes" >&5
7200echo "${ECHO_T}yes" >&6
10f2d63a 7201 else
e6cc62c6
VS
7202 echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6
10f2d63a 7204 fi
e6cc62c6 7205
10f2d63a 7206
5005acfe 7207 enablestring=
e6cc62c6
VS
7208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7209echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7210 no_cache=0
7211 # Check whether --enable-combobox or --disable-combobox was given.
7212if test "${enable_combobox+set}" = set; then
7213 enableval="$enable_combobox"
e6cc62c6 7214
10f2d63a
VZ
7215 if test "$enableval" = yes; then
7216 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7217 else
7218 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7219 fi
e6cc62c6 7220
10f2d63a 7221else
e6cc62c6 7222
10f2d63a
VZ
7223 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7224 if test "x$LINE" != x ; then
7225 eval "DEFAULT_$LINE"
7226 else
7227 no_cache=1
7228 fi
7229
7230 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7231
e6cc62c6 7232fi;
10f2d63a
VZ
7233
7234 eval "$ac_cv_use_combobox"
7235 if test "$no_cache" != 1; then
7236 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7237 fi
7238
7239 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7240 echo "$as_me:$LINENO: result: yes" >&5
7241echo "${ECHO_T}yes" >&6
10f2d63a 7242 else
e6cc62c6
VS
7243 echo "$as_me:$LINENO: result: no" >&5
7244echo "${ECHO_T}no" >&6
10f2d63a 7245 fi
e6cc62c6 7246
10f2d63a 7247
da494b40 7248 enablestring=
e6cc62c6
VS
7249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7250echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7251 no_cache=0
7252 # Check whether --enable-display or --disable-display was given.
7253if test "${enable_display+set}" = set; then
7254 enableval="$enable_display"
e6cc62c6 7255
da494b40
MB
7256 if test "$enableval" = yes; then
7257 ac_cv_use_display='wxUSE_DISPLAY=yes'
7258 else
7259 ac_cv_use_display='wxUSE_DISPLAY=no'
7260 fi
e6cc62c6 7261
da494b40 7262else
e6cc62c6 7263
da494b40
MB
7264 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7272
e6cc62c6 7273fi;
da494b40
MB
7274
7275 eval "$ac_cv_use_display"
7276 if test "$no_cache" != 1; then
7277 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7278 fi
7279
7280 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7281 echo "$as_me:$LINENO: result: yes" >&5
7282echo "${ECHO_T}yes" >&6
da494b40 7283 else
e6cc62c6
VS
7284 echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6
da494b40 7286 fi
e6cc62c6 7287
da494b40 7288
5005acfe 7289 enablestring=
e6cc62c6
VS
7290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7291echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7292 no_cache=0
7293 # Check whether --enable-gauge or --disable-gauge was given.
7294if test "${enable_gauge+set}" = set; then
7295 enableval="$enable_gauge"
e6cc62c6 7296
10f2d63a
VZ
7297 if test "$enableval" = yes; then
7298 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7299 else
7300 ac_cv_use_gauge='wxUSE_GAUGE=no'
7301 fi
e6cc62c6 7302
10f2d63a 7303else
e6cc62c6 7304
10f2d63a
VZ
7305 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7306 if test "x$LINE" != x ; then
7307 eval "DEFAULT_$LINE"
7308 else
7309 no_cache=1
7310 fi
7311
7312 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7313
e6cc62c6 7314fi;
10f2d63a
VZ
7315
7316 eval "$ac_cv_use_gauge"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7322 echo "$as_me:$LINENO: result: yes" >&5
7323echo "${ECHO_T}yes" >&6
10f2d63a 7324 else
e6cc62c6
VS
7325 echo "$as_me:$LINENO: result: no" >&5
7326echo "${ECHO_T}no" >&6
10f2d63a 7327 fi
e6cc62c6 7328
10f2d63a 7329
5005acfe 7330 enablestring=
e6cc62c6
VS
7331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7332echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7333 no_cache=0
7334 # Check whether --enable-grid or --disable-grid was given.
7335if test "${enable_grid+set}" = set; then
7336 enableval="$enable_grid"
e6cc62c6 7337
10f2d63a
VZ
7338 if test "$enableval" = yes; then
7339 ac_cv_use_grid='wxUSE_GRID=yes'
7340 else
7341 ac_cv_use_grid='wxUSE_GRID=no'
7342 fi
e6cc62c6 7343
10f2d63a 7344else
e6cc62c6 7345
10f2d63a
VZ
7346 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7347 if test "x$LINE" != x ; then
7348 eval "DEFAULT_$LINE"
7349 else
7350 no_cache=1
7351 fi
7352
7353 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7354
e6cc62c6 7355fi;
10f2d63a
VZ
7356
7357 eval "$ac_cv_use_grid"
7358 if test "$no_cache" != 1; then
7359 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7360 fi
7361
7362 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7363 echo "$as_me:$LINENO: result: yes" >&5
7364echo "${ECHO_T}yes" >&6
10f2d63a 7365 else
e6cc62c6
VS
7366 echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6
10f2d63a 7368 fi
e6cc62c6 7369
10f2d63a 7370
5005acfe 7371 enablestring=
e6cc62c6
VS
7372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7373echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7374 no_cache=0
7375 # Check whether --enable-imaglist or --disable-imaglist was given.
7376if test "${enable_imaglist+set}" = set; then
7377 enableval="$enable_imaglist"
e6cc62c6 7378
10f2d63a
VZ
7379 if test "$enableval" = yes; then
7380 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7381 else
7382 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7383 fi
e6cc62c6 7384
10f2d63a 7385else
e6cc62c6 7386
10f2d63a
VZ
7387 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7388 if test "x$LINE" != x ; then
7389 eval "DEFAULT_$LINE"
7390 else
7391 no_cache=1
7392 fi
7393
7394 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7395
e6cc62c6 7396fi;
10f2d63a
VZ
7397
7398 eval "$ac_cv_use_imaglist"
7399 if test "$no_cache" != 1; then
7400 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7401 fi
7402
7403 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7404 echo "$as_me:$LINENO: result: yes" >&5
7405echo "${ECHO_T}yes" >&6
10f2d63a 7406 else
e6cc62c6
VS
7407 echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6
10f2d63a 7409 fi
e6cc62c6 7410
10f2d63a 7411
0e012a93
VZ
7412 enablestring=
7413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7414echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7415 no_cache=0
7416 # Check whether --enable-listbook or --disable-listbook was given.
7417if test "${enable_listbook+set}" = set; then
7418 enableval="$enable_listbook"
7419
7420 if test "$enableval" = yes; then
7421 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7422 else
7423 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7424 fi
7425
7426else
7427
7428 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7429 if test "x$LINE" != x ; then
7430 eval "DEFAULT_$LINE"
7431 else
7432 no_cache=1
7433 fi
7434
7435 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7436
7437fi;
7438
7439 eval "$ac_cv_use_listbook"
7440 if test "$no_cache" != 1; then
7441 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7442 fi
7443
7444 if test "$wxUSE_LISTBOOK" = yes; then
7445 echo "$as_me:$LINENO: result: yes" >&5
7446echo "${ECHO_T}yes" >&6
7447 else
7448 echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6
7450 fi
7451
7452
5005acfe 7453 enablestring=
e6cc62c6
VS
7454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7455echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7456 no_cache=0
7457 # Check whether --enable-listbox or --disable-listbox was given.
7458if test "${enable_listbox+set}" = set; then
7459 enableval="$enable_listbox"
e6cc62c6 7460
10f2d63a
VZ
7461 if test "$enableval" = yes; then
7462 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7463 else
7464 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7465 fi
e6cc62c6 7466
10f2d63a 7467else
e6cc62c6 7468
10f2d63a
VZ
7469 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7470 if test "x$LINE" != x ; then
7471 eval "DEFAULT_$LINE"
7472 else
7473 no_cache=1
7474 fi
7475
7476 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7477
e6cc62c6 7478fi;
10f2d63a
VZ
7479
7480 eval "$ac_cv_use_listbox"
7481 if test "$no_cache" != 1; then
7482 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7483 fi
7484
7485 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7486 echo "$as_me:$LINENO: result: yes" >&5
7487echo "${ECHO_T}yes" >&6
10f2d63a 7488 else
e6cc62c6
VS
7489 echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6
10f2d63a 7491 fi
e6cc62c6 7492
10f2d63a 7493
5005acfe 7494 enablestring=
e6cc62c6
VS
7495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7496echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7497 no_cache=0
7498 # Check whether --enable-listctrl or --disable-listctrl was given.
7499if test "${enable_listctrl+set}" = set; then
7500 enableval="$enable_listctrl"
e6cc62c6 7501
10f2d63a
VZ
7502 if test "$enableval" = yes; then
7503 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7504 else
7505 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7506 fi
e6cc62c6 7507
10f2d63a 7508else
e6cc62c6 7509
10f2d63a
VZ
7510 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7511 if test "x$LINE" != x ; then
7512 eval "DEFAULT_$LINE"
7513 else
7514 no_cache=1
7515 fi
7516
7517 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7518
e6cc62c6 7519fi;
10f2d63a
VZ
7520
7521 eval "$ac_cv_use_listctrl"
7522 if test "$no_cache" != 1; then
7523 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7524 fi
7525
7526 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7527 echo "$as_me:$LINENO: result: yes" >&5
7528echo "${ECHO_T}yes" >&6
10f2d63a 7529 else
e6cc62c6
VS
7530 echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6
10f2d63a 7532 fi
e6cc62c6 7533
10f2d63a 7534
5005acfe 7535 enablestring=
e6cc62c6
VS
7536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7537echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7538 no_cache=0
7539 # Check whether --enable-notebook or --disable-notebook was given.
7540if test "${enable_notebook+set}" = set; then
7541 enableval="$enable_notebook"
e6cc62c6 7542
10f2d63a
VZ
7543 if test "$enableval" = yes; then
7544 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7545 else
7546 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7547 fi
e6cc62c6 7548
10f2d63a 7549else
e6cc62c6 7550
10f2d63a
VZ
7551 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7552 if test "x$LINE" != x ; then
7553 eval "DEFAULT_$LINE"
7554 else
7555 no_cache=1
7556 fi
7557
7558 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7559
e6cc62c6 7560fi;
10f2d63a
VZ
7561
7562 eval "$ac_cv_use_notebook"
7563 if test "$no_cache" != 1; then
7564 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7565 fi
7566
7567 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7568 echo "$as_me:$LINENO: result: yes" >&5
7569echo "${ECHO_T}yes" >&6
10f2d63a 7570 else
e6cc62c6
VS
7571 echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6
10f2d63a 7573 fi
e6cc62c6 7574
10f2d63a 7575
5005acfe 7576 enablestring=
e6cc62c6
VS
7577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7578echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7579 no_cache=0
7580 # Check whether --enable-radiobox or --disable-radiobox was given.
7581if test "${enable_radiobox+set}" = set; then
7582 enableval="$enable_radiobox"
e6cc62c6 7583
10f2d63a
VZ
7584 if test "$enableval" = yes; then
7585 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7586 else
7587 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7588 fi
e6cc62c6 7589
10f2d63a 7590else
e6cc62c6 7591
10f2d63a
VZ
7592 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7593 if test "x$LINE" != x ; then
7594 eval "DEFAULT_$LINE"
7595 else
7596 no_cache=1
7597 fi
7598
7599 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7600
e6cc62c6 7601fi;
10f2d63a
VZ
7602
7603 eval "$ac_cv_use_radiobox"
7604 if test "$no_cache" != 1; then
7605 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7606 fi
7607
7608 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7609 echo "$as_me:$LINENO: result: yes" >&5
7610echo "${ECHO_T}yes" >&6
10f2d63a 7611 else
e6cc62c6
VS
7612 echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6
10f2d63a 7614 fi
e6cc62c6 7615
10f2d63a 7616
5005acfe 7617 enablestring=
e6cc62c6
VS
7618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7619echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7620 no_cache=0
7621 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7622if test "${enable_radiobtn+set}" = set; then
7623 enableval="$enable_radiobtn"
e6cc62c6 7624
10f2d63a
VZ
7625 if test "$enableval" = yes; then
7626 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7627 else
7628 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7629 fi
e6cc62c6 7630
10f2d63a 7631else
e6cc62c6 7632
10f2d63a
VZ
7633 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7634 if test "x$LINE" != x ; then
7635 eval "DEFAULT_$LINE"
7636 else
7637 no_cache=1
7638 fi
7639
7640 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7641
e6cc62c6 7642fi;
10f2d63a
VZ
7643
7644 eval "$ac_cv_use_radiobtn"
7645 if test "$no_cache" != 1; then
7646 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7647 fi
7648
7649 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7650 echo "$as_me:$LINENO: result: yes" >&5
7651echo "${ECHO_T}yes" >&6
10f2d63a 7652 else
e6cc62c6
VS
7653 echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6
10f2d63a 7655 fi
e6cc62c6 7656
10f2d63a 7657
5005acfe 7658 enablestring=
e6cc62c6
VS
7659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7660echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7661 no_cache=0
7662 # Check whether --enable-sash or --disable-sash was given.
7663if test "${enable_sash+set}" = set; then
7664 enableval="$enable_sash"
e6cc62c6 7665
10f2d63a
VZ
7666 if test "$enableval" = yes; then
7667 ac_cv_use_sash='wxUSE_SASH=yes'
7668 else
7669 ac_cv_use_sash='wxUSE_SASH=no'
7670 fi
e6cc62c6 7671
10f2d63a 7672else
e6cc62c6 7673
10f2d63a
VZ
7674 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7675 if test "x$LINE" != x ; then
7676 eval "DEFAULT_$LINE"
7677 else
7678 no_cache=1
7679 fi
7680
7681 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7682
e6cc62c6 7683fi;
10f2d63a
VZ
7684
7685 eval "$ac_cv_use_sash"
7686 if test "$no_cache" != 1; then
7687 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7688 fi
7689
7690 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7691 echo "$as_me:$LINENO: result: yes" >&5
7692echo "${ECHO_T}yes" >&6
10f2d63a 7693 else
e6cc62c6
VS
7694 echo "$as_me:$LINENO: result: no" >&5
7695echo "${ECHO_T}no" >&6
10f2d63a 7696 fi
e6cc62c6 7697
10f2d63a 7698
5005acfe 7699 enablestring=
e6cc62c6
VS
7700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7701echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7702 no_cache=0
7703 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7704if test "${enable_scrollbar+set}" = set; then
7705 enableval="$enable_scrollbar"
e6cc62c6 7706
10f2d63a
VZ
7707 if test "$enableval" = yes; then
7708 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7709 else
7710 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7711 fi
e6cc62c6 7712
10f2d63a 7713else
e6cc62c6 7714
10f2d63a
VZ
7715 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7716 if test "x$LINE" != x ; then
7717 eval "DEFAULT_$LINE"
7718 else
7719 no_cache=1
7720 fi
7721
7722 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7723
e6cc62c6 7724fi;
10f2d63a
VZ
7725
7726 eval "$ac_cv_use_scrollbar"
7727 if test "$no_cache" != 1; then
7728 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7729 fi
7730
7731 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7732 echo "$as_me:$LINENO: result: yes" >&5
7733echo "${ECHO_T}yes" >&6
10f2d63a 7734 else
e6cc62c6
VS
7735 echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
10f2d63a 7737 fi
e6cc62c6 7738
10f2d63a 7739
5005acfe 7740 enablestring=
e6cc62c6
VS
7741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7742echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7743 no_cache=0
7744 # Check whether --enable-slider or --disable-slider was given.
7745if test "${enable_slider+set}" = set; then
7746 enableval="$enable_slider"
e6cc62c6 7747
10f2d63a
VZ
7748 if test "$enableval" = yes; then
7749 ac_cv_use_slider='wxUSE_SLIDER=yes'
7750 else
7751 ac_cv_use_slider='wxUSE_SLIDER=no'
7752 fi
e6cc62c6 7753
10f2d63a 7754else
e6cc62c6 7755
10f2d63a
VZ
7756 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7757 if test "x$LINE" != x ; then
7758 eval "DEFAULT_$LINE"
7759 else
7760 no_cache=1
7761 fi
7762
7763 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7764
e6cc62c6 7765fi;
10f2d63a
VZ
7766
7767 eval "$ac_cv_use_slider"
7768 if test "$no_cache" != 1; then
7769 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7770 fi
7771
7772 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7773 echo "$as_me:$LINENO: result: yes" >&5
7774echo "${ECHO_T}yes" >&6
10f2d63a 7775 else
e6cc62c6
VS
7776 echo "$as_me:$LINENO: result: no" >&5
7777echo "${ECHO_T}no" >&6
10f2d63a 7778 fi
e6cc62c6 7779
10f2d63a 7780
5005acfe 7781 enablestring=
e6cc62c6
VS
7782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7783echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7784 no_cache=0
7785 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7786if test "${enable_spinbtn+set}" = set; then
7787 enableval="$enable_spinbtn"
e6cc62c6 7788
10f2d63a
VZ
7789 if test "$enableval" = yes; then
7790 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7791 else
7792 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7793 fi
e6cc62c6 7794
10f2d63a 7795else
e6cc62c6 7796
10f2d63a
VZ
7797 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7798 if test "x$LINE" != x ; then
7799 eval "DEFAULT_$LINE"
7800 else
7801 no_cache=1
7802 fi
7803
7804 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7805
e6cc62c6 7806fi;
10f2d63a
VZ
7807
7808 eval "$ac_cv_use_spinbtn"
7809 if test "$no_cache" != 1; then
7810 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7811 fi
7812
7813 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7814 echo "$as_me:$LINENO: result: yes" >&5
7815echo "${ECHO_T}yes" >&6
10f2d63a 7816 else
e6cc62c6
VS
7817 echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6
10f2d63a 7819 fi
e6cc62c6 7820
10f2d63a 7821
5005acfe 7822 enablestring=
e6cc62c6
VS
7823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7824echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7825 no_cache=0
7826 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7827if test "${enable_spinctrl+set}" = set; then
7828 enableval="$enable_spinctrl"
e6cc62c6 7829
56cfaa52
RR
7830 if test "$enableval" = yes; then
7831 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7832 else
7833 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7834 fi
e6cc62c6 7835
56cfaa52 7836else
e6cc62c6 7837
56cfaa52
RR
7838 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7839 if test "x$LINE" != x ; then
7840 eval "DEFAULT_$LINE"
7841 else
7842 no_cache=1
7843 fi
7844
7845 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7846
e6cc62c6 7847fi;
56cfaa52
RR
7848
7849 eval "$ac_cv_use_spinctrl"
7850 if test "$no_cache" != 1; then
7851 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7852 fi
7853
7854 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7855 echo "$as_me:$LINENO: result: yes" >&5
7856echo "${ECHO_T}yes" >&6
56cfaa52 7857 else
e6cc62c6
VS
7858 echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6
56cfaa52 7860 fi
e6cc62c6 7861
56cfaa52 7862
5005acfe 7863 enablestring=
e6cc62c6
VS
7864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7865echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7866 no_cache=0
7867 # Check whether --enable-splitter or --disable-splitter was given.
7868if test "${enable_splitter+set}" = set; then
7869 enableval="$enable_splitter"
e6cc62c6 7870
10f2d63a
VZ
7871 if test "$enableval" = yes; then
7872 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7873 else
7874 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7875 fi
e6cc62c6 7876
10f2d63a 7877else
e6cc62c6 7878
10f2d63a
VZ
7879 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7880 if test "x$LINE" != x ; then
7881 eval "DEFAULT_$LINE"
7882 else
7883 no_cache=1
7884 fi
7885
7886 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7887
e6cc62c6 7888fi;
10f2d63a
VZ
7889
7890 eval "$ac_cv_use_splitter"
7891 if test "$no_cache" != 1; then
7892 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7893 fi
7894
7895 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7896 echo "$as_me:$LINENO: result: yes" >&5
7897echo "${ECHO_T}yes" >&6
10f2d63a 7898 else
e6cc62c6
VS
7899 echo "$as_me:$LINENO: result: no" >&5
7900echo "${ECHO_T}no" >&6
10f2d63a 7901 fi
e6cc62c6 7902
10f2d63a 7903
5005acfe 7904 enablestring=
e6cc62c6
VS
7905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7906echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7907 no_cache=0
7908 # Check whether --enable-statbmp or --disable-statbmp was given.
7909if test "${enable_statbmp+set}" = set; then
7910 enableval="$enable_statbmp"
e6cc62c6 7911
10f2d63a
VZ
7912 if test "$enableval" = yes; then
7913 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7914 else
7915 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7916 fi
e6cc62c6 7917
10f2d63a 7918else
e6cc62c6 7919
10f2d63a
VZ
7920 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7921 if test "x$LINE" != x ; then
7922 eval "DEFAULT_$LINE"
7923 else
7924 no_cache=1
7925 fi
7926
7927 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7928
e6cc62c6 7929fi;
10f2d63a
VZ
7930
7931 eval "$ac_cv_use_statbmp"
7932 if test "$no_cache" != 1; then
7933 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7934 fi
7935
7936 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7937 echo "$as_me:$LINENO: result: yes" >&5
7938echo "${ECHO_T}yes" >&6
10f2d63a 7939 else
e6cc62c6
VS
7940 echo "$as_me:$LINENO: result: no" >&5
7941echo "${ECHO_T}no" >&6
10f2d63a 7942 fi
e6cc62c6 7943
10f2d63a 7944
5005acfe 7945 enablestring=
e6cc62c6
VS
7946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7947echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7948 no_cache=0
7949 # Check whether --enable-statbox or --disable-statbox was given.
7950if test "${enable_statbox+set}" = set; then
7951 enableval="$enable_statbox"
e6cc62c6 7952
10f2d63a
VZ
7953 if test "$enableval" = yes; then
7954 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7955 else
7956 ac_cv_use_statbox='wxUSE_STATBOX=no'
7957 fi
e6cc62c6 7958
10f2d63a 7959else
e6cc62c6 7960
10f2d63a
VZ
7961 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7962 if test "x$LINE" != x ; then
7963 eval "DEFAULT_$LINE"
7964 else
7965 no_cache=1
7966 fi
7967
7968 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7969
e6cc62c6 7970fi;
10f2d63a
VZ
7971
7972 eval "$ac_cv_use_statbox"
7973 if test "$no_cache" != 1; then
7974 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7975 fi
7976
7977 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7978 echo "$as_me:$LINENO: result: yes" >&5
7979echo "${ECHO_T}yes" >&6
10f2d63a 7980 else
e6cc62c6
VS
7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
10f2d63a 7983 fi
e6cc62c6 7984
10f2d63a 7985
5005acfe 7986 enablestring=
e6cc62c6
VS
7987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7988echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7989 no_cache=0
7990 # Check whether --enable-statline or --disable-statline was given.
7991if test "${enable_statline+set}" = set; then
7992 enableval="$enable_statline"
e6cc62c6 7993
10f2d63a
VZ
7994 if test "$enableval" = yes; then
7995 ac_cv_use_statline='wxUSE_STATLINE=yes'
7996 else
7997 ac_cv_use_statline='wxUSE_STATLINE=no'
7998 fi
e6cc62c6 7999
10f2d63a 8000else
e6cc62c6 8001
10f2d63a
VZ
8002 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8003 if test "x$LINE" != x ; then
8004 eval "DEFAULT_$LINE"
8005 else
8006 no_cache=1
8007 fi
8008
8009 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 8010
e6cc62c6 8011fi;
10f2d63a
VZ
8012
8013 eval "$ac_cv_use_statline"
8014 if test "$no_cache" != 1; then
8015 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8016 fi
8017
8018 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
8019 echo "$as_me:$LINENO: result: yes" >&5
8020echo "${ECHO_T}yes" >&6
10f2d63a 8021 else
e6cc62c6
VS
8022 echo "$as_me:$LINENO: result: no" >&5
8023echo "${ECHO_T}no" >&6
10f2d63a 8024 fi
e6cc62c6 8025
10f2d63a 8026
5005acfe 8027 enablestring=
e6cc62c6
VS
8028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8029echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
8030 no_cache=0
8031 # Check whether --enable-stattext or --disable-stattext was given.
8032if test "${enable_stattext+set}" = set; then
8033 enableval="$enable_stattext"
e6cc62c6 8034
1e6feb95
VZ
8035 if test "$enableval" = yes; then
8036 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8037 else
8038 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8039 fi
e6cc62c6 8040
1e6feb95 8041else
e6cc62c6 8042
1e6feb95
VZ
8043 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8044 if test "x$LINE" != x ; then
8045 eval "DEFAULT_$LINE"
8046 else
8047 no_cache=1
8048 fi
8049
8050 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 8051
e6cc62c6 8052fi;
1e6feb95
VZ
8053
8054 eval "$ac_cv_use_stattext"
8055 if test "$no_cache" != 1; then
8056 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8057 fi
8058
8059 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
8060 echo "$as_me:$LINENO: result: yes" >&5
8061echo "${ECHO_T}yes" >&6
1e6feb95 8062 else
e6cc62c6
VS
8063 echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
1e6feb95 8065 fi
e6cc62c6 8066
1e6feb95 8067
5005acfe 8068 enablestring=
e6cc62c6
VS
8069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8070echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
8071 no_cache=0
8072 # Check whether --enable-statusbar or --disable-statusbar was given.
8073if test "${enable_statusbar+set}" = set; then
8074 enableval="$enable_statusbar"
e6cc62c6 8075
10f2d63a
VZ
8076 if test "$enableval" = yes; then
8077 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8078 else
8079 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8080 fi
e6cc62c6 8081
10f2d63a 8082else
e6cc62c6 8083
10f2d63a
VZ
8084 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8085 if test "x$LINE" != x ; then
8086 eval "DEFAULT_$LINE"
8087 else
8088 no_cache=1
8089 fi
8090
8091 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 8092
e6cc62c6 8093fi;
10f2d63a
VZ
8094
8095 eval "$ac_cv_use_statusbar"
8096 if test "$no_cache" != 1; then
8097 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8098 fi
8099
8100 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
8101 echo "$as_me:$LINENO: result: yes" >&5
8102echo "${ECHO_T}yes" >&6
10f2d63a 8103 else
e6cc62c6
VS
8104 echo "$as_me:$LINENO: result: no" >&5
8105echo "${ECHO_T}no" >&6
10f2d63a 8106 fi
e6cc62c6 8107
10f2d63a 8108
5005acfe 8109 enablestring=
e6cc62c6
VS
8110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8111echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
8112 no_cache=0
8113 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8114if test "${enable_tabdialog+set}" = set; then
8115 enableval="$enable_tabdialog"
e6cc62c6 8116
10f2d63a
VZ
8117 if test "$enableval" = yes; then
8118 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8119 else
8120 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8121 fi
e6cc62c6 8122
10f2d63a 8123else
e6cc62c6 8124
10f2d63a
VZ
8125 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8126 if test "x$LINE" != x ; then
8127 eval "DEFAULT_$LINE"
8128 else
8129 no_cache=1
8130 fi
8131
8132 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8133
e6cc62c6 8134fi;
10f2d63a
VZ
8135
8136 eval "$ac_cv_use_tabdialog"
8137 if test "$no_cache" != 1; then
8138 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8139 fi
8140
8141 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8142 echo "$as_me:$LINENO: result: yes" >&5
8143echo "${ECHO_T}yes" >&6
10f2d63a 8144 else
e6cc62c6
VS
8145 echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6
10f2d63a 8147 fi
e6cc62c6 8148
10f2d63a 8149
5005acfe 8150 enablestring=
e6cc62c6
VS
8151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8152echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8153 no_cache=0
8154 # Check whether --enable-textctrl or --disable-textctrl was given.
8155if test "${enable_textctrl+set}" = set; then
8156 enableval="$enable_textctrl"
e6cc62c6 8157
1e6feb95
VZ
8158 if test "$enableval" = yes; then
8159 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8160 else
8161 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8162 fi
e6cc62c6 8163
1e6feb95 8164else
e6cc62c6 8165
1e6feb95
VZ
8166 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8167 if test "x$LINE" != x ; then
8168 eval "DEFAULT_$LINE"
8169 else
8170 no_cache=1
8171 fi
8172
8173 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8174
e6cc62c6 8175fi;
1e6feb95
VZ
8176
8177 eval "$ac_cv_use_textctrl"
8178 if test "$no_cache" != 1; then
8179 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8180 fi
8181
8182 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8183 echo "$as_me:$LINENO: result: yes" >&5
8184echo "${ECHO_T}yes" >&6
1e6feb95 8185 else
e6cc62c6
VS
8186 echo "$as_me:$LINENO: result: no" >&5
8187echo "${ECHO_T}no" >&6
1e6feb95 8188 fi
e6cc62c6 8189
1e6feb95 8190
5005acfe 8191 enablestring=
e6cc62c6
VS
8192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8193echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8194 no_cache=0
8195 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8196if test "${enable_togglebtn+set}" = set; then
8197 enableval="$enable_togglebtn"
e6cc62c6 8198
1db8dc4a
VZ
8199 if test "$enableval" = yes; then
8200 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8201 else
8202 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8203 fi
e6cc62c6 8204
1db8dc4a 8205else
e6cc62c6 8206
1db8dc4a
VZ
8207 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8208 if test "x$LINE" != x ; then
8209 eval "DEFAULT_$LINE"
8210 else
8211 no_cache=1
8212 fi
8213
8214 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8215
e6cc62c6 8216fi;
1db8dc4a
VZ
8217
8218 eval "$ac_cv_use_togglebtn"
8219 if test "$no_cache" != 1; then
8220 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8221 fi
8222
8223 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8224 echo "$as_me:$LINENO: result: yes" >&5
8225echo "${ECHO_T}yes" >&6
1db8dc4a 8226 else
e6cc62c6
VS
8227 echo "$as_me:$LINENO: result: no" >&5
8228echo "${ECHO_T}no" >&6
1db8dc4a 8229 fi
e6cc62c6 8230
1db8dc4a 8231
5005acfe 8232 enablestring=
e6cc62c6
VS
8233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8234echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8235 no_cache=0
8236 # Check whether --enable-toolbar or --disable-toolbar was given.
8237if test "${enable_toolbar+set}" = set; then
8238 enableval="$enable_toolbar"
e6cc62c6 8239
10f2d63a
VZ
8240 if test "$enableval" = yes; then
8241 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8242 else
8243 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8244 fi
e6cc62c6 8245
10f2d63a 8246else
e6cc62c6 8247
10f2d63a
VZ
8248 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8249 if test "x$LINE" != x ; then
8250 eval "DEFAULT_$LINE"
8251 else
8252 no_cache=1
8253 fi
8254
8255 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8256
e6cc62c6 8257fi;
10f2d63a
VZ
8258
8259 eval "$ac_cv_use_toolbar"
8260 if test "$no_cache" != 1; then
8261 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8262 fi
8263
8264 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8265 echo "$as_me:$LINENO: result: yes" >&5
8266echo "${ECHO_T}yes" >&6
10f2d63a 8267 else
e6cc62c6
VS
8268 echo "$as_me:$LINENO: result: no" >&5
8269echo "${ECHO_T}no" >&6
10f2d63a 8270 fi
e6cc62c6 8271
10f2d63a 8272
5005acfe 8273 enablestring=
e6cc62c6
VS
8274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8275echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8276 no_cache=0
8277 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8278if test "${enable_tbarnative+set}" = set; then
8279 enableval="$enable_tbarnative"
e6cc62c6 8280
360d6699
VZ
8281 if test "$enableval" = yes; then
8282 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8283 else
8284 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8285 fi
e6cc62c6 8286
360d6699 8287else
e6cc62c6 8288
360d6699
VZ
8289 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8290 if test "x$LINE" != x ; then
8291 eval "DEFAULT_$LINE"
8292 else
8293 no_cache=1
8294 fi
8295
8296 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8297
e6cc62c6 8298fi;
360d6699
VZ
8299
8300 eval "$ac_cv_use_tbarnative"
8301 if test "$no_cache" != 1; then
8302 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8303 fi
8304
8305 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8306 echo "$as_me:$LINENO: result: yes" >&5
8307echo "${ECHO_T}yes" >&6
360d6699 8308 else
e6cc62c6
VS
8309 echo "$as_me:$LINENO: result: no" >&5
8310echo "${ECHO_T}no" >&6
360d6699 8311 fi
e6cc62c6 8312
360d6699 8313
5005acfe 8314 enablestring=
e6cc62c6
VS
8315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8316echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8317 no_cache=0
8318 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8319if test "${enable_tbarsmpl+set}" = set; then
8320 enableval="$enable_tbarsmpl"
e6cc62c6 8321
360d6699
VZ
8322 if test "$enableval" = yes; then
8323 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8324 else
8325 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8326 fi
e6cc62c6 8327
360d6699 8328else
e6cc62c6 8329
360d6699
VZ
8330 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8331 if test "x$LINE" != x ; then
8332 eval "DEFAULT_$LINE"
8333 else
8334 no_cache=1
8335 fi
8336
8337 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8338
e6cc62c6 8339fi;
360d6699
VZ
8340
8341 eval "$ac_cv_use_tbarsmpl"
8342 if test "$no_cache" != 1; then
8343 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8344 fi
8345
8346 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8347 echo "$as_me:$LINENO: result: yes" >&5
8348echo "${ECHO_T}yes" >&6
360d6699 8349 else
e6cc62c6
VS
8350 echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6
360d6699 8352 fi
e6cc62c6 8353
360d6699 8354
5005acfe 8355 enablestring=
e6cc62c6
VS
8356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8357echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8358 no_cache=0
8359 # Check whether --enable-treectrl or --disable-treectrl was given.
8360if test "${enable_treectrl+set}" = set; then
8361 enableval="$enable_treectrl"
e6cc62c6 8362
10f2d63a
VZ
8363 if test "$enableval" = yes; then
8364 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8365 else
8366 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8367 fi
e6cc62c6 8368
10f2d63a 8369else
e6cc62c6 8370
10f2d63a
VZ
8371 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8372 if test "x$LINE" != x ; then
8373 eval "DEFAULT_$LINE"
8374 else
8375 no_cache=1
8376 fi
8377
8378 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8379
e6cc62c6 8380fi;
10f2d63a 8381
1e6feb95
VZ
8382 eval "$ac_cv_use_treectrl"
8383 if test "$no_cache" != 1; then
8384 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8385 fi
8386
8387 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8388 echo "$as_me:$LINENO: result: yes" >&5
8389echo "${ECHO_T}yes" >&6
1e6feb95 8390 else
e6cc62c6
VS
8391 echo "$as_me:$LINENO: result: no" >&5
8392echo "${ECHO_T}no" >&6
1e6feb95 8393 fi
e6cc62c6 8394
1e6feb95 8395
5005acfe 8396 enablestring=
e6cc62c6
VS
8397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8398echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8399 no_cache=0
8400 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8401if test "${enable_tipwindow+set}" = set; then
8402 enableval="$enable_tipwindow"
e6cc62c6 8403
9926e4a4
VZ
8404 if test "$enableval" = yes; then
8405 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8406 else
8407 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8408 fi
e6cc62c6 8409
9926e4a4 8410else
e6cc62c6 8411
9926e4a4
VZ
8412 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8413 if test "x$LINE" != x ; then
8414 eval "DEFAULT_$LINE"
8415 else
8416 no_cache=1
8417 fi
8418
8419 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8420
e6cc62c6 8421fi;
9926e4a4
VZ
8422
8423 eval "$ac_cv_use_tipwindow"
8424 if test "$no_cache" != 1; then
8425 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8426 fi
8427
8428 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8429 echo "$as_me:$LINENO: result: yes" >&5
8430echo "${ECHO_T}yes" >&6
9926e4a4 8431 else
e6cc62c6
VS
8432 echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
9926e4a4 8434 fi
e6cc62c6 8435
9926e4a4 8436
5005acfe 8437 enablestring=
e6cc62c6
VS
8438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8439echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8440 no_cache=0
8441 # Check whether --enable-popupwin or --disable-popupwin was given.
8442if test "${enable_popupwin+set}" = set; then
8443 enableval="$enable_popupwin"
e6cc62c6 8444
9f41d601
RR
8445 if test "$enableval" = yes; then
8446 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8447 else
8448 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8449 fi
e6cc62c6 8450
9f41d601 8451else
e6cc62c6 8452
9f41d601
RR
8453 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8454 if test "x$LINE" != x ; then
8455 eval "DEFAULT_$LINE"
8456 else
8457 no_cache=1
8458 fi
8459
8460 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8461
e6cc62c6 8462fi;
9f41d601
RR
8463
8464 eval "$ac_cv_use_popupwin"
8465 if test "$no_cache" != 1; then
8466 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8467 fi
8468
8469 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8470 echo "$as_me:$LINENO: result: yes" >&5
8471echo "${ECHO_T}yes" >&6
9f41d601 8472 else
e6cc62c6
VS
8473 echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6
9f41d601 8475 fi
e6cc62c6 8476
52127426 8477
8284b0c5
MB
8478
8479
5005acfe 8480 enablestring=
e6cc62c6
VS
8481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8482echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8483 no_cache=0
8484 # Check whether --enable-commondlg or --disable-commondlg was given.
8485if test "${enable_commondlg+set}" = set; then
8486 enableval="$enable_commondlg"
e6cc62c6 8487
1e6feb95
VZ
8488 if test "$enableval" = yes; then
8489 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8490 else
8491 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8492 fi
e6cc62c6 8493
1e6feb95 8494else
e6cc62c6 8495
1e6feb95
VZ
8496 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8497 if test "x$LINE" != x ; then
8498 eval "DEFAULT_$LINE"
8499 else
8500 no_cache=1
8501 fi
8502
8503 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8504
e6cc62c6 8505fi;
1e6feb95
VZ
8506
8507 eval "$ac_cv_use_commondlg"
8508 if test "$no_cache" != 1; then
8509 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8510 fi
8511
8512 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8513 echo "$as_me:$LINENO: result: yes" >&5
8514echo "${ECHO_T}yes" >&6
1e6feb95 8515 else
e6cc62c6
VS
8516 echo "$as_me:$LINENO: result: no" >&5
8517echo "${ECHO_T}no" >&6
1e6feb95 8518 fi
e6cc62c6 8519
1e6feb95 8520
5005acfe 8521 enablestring=
e6cc62c6
VS
8522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8523echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8524 no_cache=0
8525 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8526if test "${enable_choicedlg+set}" = set; then
8527 enableval="$enable_choicedlg"
e6cc62c6 8528
1e6feb95
VZ
8529 if test "$enableval" = yes; then
8530 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8531 else
8532 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8533 fi
e6cc62c6 8534
1e6feb95 8535else
e6cc62c6 8536
1e6feb95
VZ
8537 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8538 if test "x$LINE" != x ; then
8539 eval "DEFAULT_$LINE"
8540 else
8541 no_cache=1
8542 fi
8543
8544 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8545
e6cc62c6 8546fi;
1e6feb95
VZ
8547
8548 eval "$ac_cv_use_choicedlg"
8549 if test "$no_cache" != 1; then
8550 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8551 fi
8552
8553 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8554 echo "$as_me:$LINENO: result: yes" >&5
8555echo "${ECHO_T}yes" >&6
1e6feb95 8556 else
e6cc62c6
VS
8557 echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6
1e6feb95 8559 fi
e6cc62c6 8560
1e6feb95 8561
5005acfe 8562 enablestring=
e6cc62c6
VS
8563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8564echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8565 no_cache=0
8566 # Check whether --enable-coldlg or --disable-coldlg was given.
8567if test "${enable_coldlg+set}" = set; then
8568 enableval="$enable_coldlg"
e6cc62c6 8569
1e6feb95
VZ
8570 if test "$enableval" = yes; then
8571 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8572 else
8573 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8574 fi
e6cc62c6 8575
1e6feb95 8576else
e6cc62c6 8577
1e6feb95
VZ
8578 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8579 if test "x$LINE" != x ; then
8580 eval "DEFAULT_$LINE"
8581 else
8582 no_cache=1
8583 fi
8584
8585 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8586
e6cc62c6 8587fi;
1e6feb95
VZ
8588
8589 eval "$ac_cv_use_coldlg"
8590 if test "$no_cache" != 1; then
8591 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8592 fi
8593
8594 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8595 echo "$as_me:$LINENO: result: yes" >&5
8596echo "${ECHO_T}yes" >&6
1e6feb95 8597 else
e6cc62c6
VS
8598 echo "$as_me:$LINENO: result: no" >&5
8599echo "${ECHO_T}no" >&6
1e6feb95 8600 fi
e6cc62c6 8601
1e6feb95 8602
5005acfe 8603 enablestring=
e6cc62c6
VS
8604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8605echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8606 no_cache=0
8607 # Check whether --enable-filedlg or --disable-filedlg was given.
8608if test "${enable_filedlg+set}" = set; then
8609 enableval="$enable_filedlg"
e6cc62c6 8610
1e6feb95
VZ
8611 if test "$enableval" = yes; then
8612 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8613 else
8614 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8615 fi
e6cc62c6 8616
1e6feb95 8617else
e6cc62c6 8618
1e6feb95
VZ
8619 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8620 if test "x$LINE" != x ; then
8621 eval "DEFAULT_$LINE"
8622 else
8623 no_cache=1
8624 fi
8625
8626 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8627
e6cc62c6 8628fi;
1e6feb95
VZ
8629
8630 eval "$ac_cv_use_filedlg"
8631 if test "$no_cache" != 1; then
8632 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8633 fi
8634
8635 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8636 echo "$as_me:$LINENO: result: yes" >&5
8637echo "${ECHO_T}yes" >&6
1e6feb95 8638 else
e6cc62c6
VS
8639 echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
1e6feb95 8641 fi
e6cc62c6 8642
1e6feb95 8643
5005acfe 8644 enablestring=
e6cc62c6
VS
8645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8646echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8647 no_cache=0
69d27ff7
MB
8648 # Check whether --enable-finddlg or --disable-finddlg was given.
8649if test "${enable_finddlg+set}" = set; then
8650 enableval="$enable_finddlg"
e6cc62c6 8651
8db37e06 8652 if test "$enableval" = yes; then
69d27ff7 8653 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8654 else
69d27ff7 8655 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8656 fi
e6cc62c6 8657
8db37e06 8658else
e6cc62c6 8659
8db37e06
VZ
8660 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8661 if test "x$LINE" != x ; then
8662 eval "DEFAULT_$LINE"
8663 else
8664 no_cache=1
8665 fi
8666
69d27ff7 8667 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8668
e6cc62c6 8669fi;
8db37e06 8670
69d27ff7 8671 eval "$ac_cv_use_finddlg"
8db37e06 8672 if test "$no_cache" != 1; then
69d27ff7 8673 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8674 fi
8675
8676 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8677 echo "$as_me:$LINENO: result: yes" >&5
8678echo "${ECHO_T}yes" >&6
8db37e06 8679 else
e6cc62c6
VS
8680 echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
8db37e06 8682 fi
e6cc62c6 8683
8db37e06 8684
5005acfe 8685 enablestring=
e6cc62c6
VS
8686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8687echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8688 no_cache=0
8689 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8690if test "${enable_fontdlg+set}" = set; then
8691 enableval="$enable_fontdlg"
e6cc62c6 8692
1e6feb95
VZ
8693 if test "$enableval" = yes; then
8694 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8695 else
8696 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8697 fi
e6cc62c6 8698
1e6feb95 8699else
e6cc62c6 8700
1e6feb95
VZ
8701 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8702 if test "x$LINE" != x ; then
8703 eval "DEFAULT_$LINE"
8704 else
8705 no_cache=1
8706 fi
8707
8708 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8709
e6cc62c6 8710fi;
1e6feb95
VZ
8711
8712 eval "$ac_cv_use_fontdlg"
8713 if test "$no_cache" != 1; then
8714 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8715 fi
8716
8717 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8718 echo "$as_me:$LINENO: result: yes" >&5
8719echo "${ECHO_T}yes" >&6
1e6feb95 8720 else
e6cc62c6
VS
8721 echo "$as_me:$LINENO: result: no" >&5
8722echo "${ECHO_T}no" >&6
1e6feb95 8723 fi
e6cc62c6 8724
1e6feb95 8725
5005acfe 8726 enablestring=
e6cc62c6
VS
8727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8728echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8729 no_cache=0
8730 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8731if test "${enable_dirdlg+set}" = set; then
8732 enableval="$enable_dirdlg"
e6cc62c6 8733
1e6feb95
VZ
8734 if test "$enableval" = yes; then
8735 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8736 else
8737 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8738 fi
e6cc62c6 8739
1e6feb95 8740else
e6cc62c6 8741
1e6feb95
VZ
8742 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8743 if test "x$LINE" != x ; then
8744 eval "DEFAULT_$LINE"
8745 else
8746 no_cache=1
8747 fi
8748
8749 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8750
e6cc62c6 8751fi;
1e6feb95
VZ
8752
8753 eval "$ac_cv_use_dirdlg"
10f2d63a 8754 if test "$no_cache" != 1; then
1e6feb95 8755 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8756 fi
8757
1e6feb95 8758 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8759 echo "$as_me:$LINENO: result: yes" >&5
8760echo "${ECHO_T}yes" >&6
10f2d63a 8761 else
e6cc62c6
VS
8762 echo "$as_me:$LINENO: result: no" >&5
8763echo "${ECHO_T}no" >&6
10f2d63a 8764 fi
e6cc62c6 8765
698dcdb6 8766
5005acfe 8767 enablestring=
e6cc62c6
VS
8768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8769echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8770 no_cache=0
1e6feb95
VZ
8771 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8772if test "${enable_msgdlg+set}" = set; then
8773 enableval="$enable_msgdlg"
e6cc62c6 8774
10f2d63a 8775 if test "$enableval" = yes; then
1e6feb95 8776 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8777 else
1e6feb95 8778 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8779 fi
e6cc62c6 8780
10f2d63a 8781else
e6cc62c6 8782
1e6feb95 8783 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8784 if test "x$LINE" != x ; then
8785 eval "DEFAULT_$LINE"
8786 else
8787 no_cache=1
8788 fi
8789
1e6feb95 8790 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8791
e6cc62c6 8792fi;
10f2d63a 8793
1e6feb95 8794 eval "$ac_cv_use_msgdlg"
10f2d63a 8795 if test "$no_cache" != 1; then
1e6feb95 8796 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8797 fi
8798
1e6feb95 8799 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8800 echo "$as_me:$LINENO: result: yes" >&5
8801echo "${ECHO_T}yes" >&6
10f2d63a 8802 else
e6cc62c6
VS
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
10f2d63a 8805 fi
e6cc62c6 8806
10f2d63a 8807
5005acfe 8808 enablestring=
e6cc62c6
VS
8809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8810echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8811 no_cache=0
1e6feb95
VZ
8812 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8813if test "${enable_numberdlg+set}" = set; then
8814 enableval="$enable_numberdlg"
e6cc62c6 8815
10f2d63a 8816 if test "$enableval" = yes; then
1e6feb95 8817 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8818 else
1e6feb95 8819 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8820 fi
e6cc62c6 8821
10f2d63a 8822else
e6cc62c6 8823
1e6feb95 8824 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8825 if test "x$LINE" != x ; then
8826 eval "DEFAULT_$LINE"
8827 else
8828 no_cache=1
8829 fi
8830
1e6feb95 8831 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8832
e6cc62c6 8833fi;
10f2d63a 8834
1e6feb95 8835 eval "$ac_cv_use_numberdlg"
10f2d63a 8836 if test "$no_cache" != 1; then
1e6feb95 8837 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8838 fi
8839
1e6feb95 8840 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8841 echo "$as_me:$LINENO: result: yes" >&5
8842echo "${ECHO_T}yes" >&6
10f2d63a 8843 else
e6cc62c6
VS
8844 echo "$as_me:$LINENO: result: no" >&5
8845echo "${ECHO_T}no" >&6
10f2d63a 8846 fi
e6cc62c6 8847
10f2d63a 8848
5005acfe 8849 enablestring=
e6cc62c6
VS
8850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8851echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8852 no_cache=0
8853 # Check whether --enable-splash or --disable-splash was given.
8854if test "${enable_splash+set}" = set; then
8855 enableval="$enable_splash"
e6cc62c6 8856
cbca9943
VZ
8857 if test "$enableval" = yes; then
8858 ac_cv_use_splash='wxUSE_SPLASH=yes'
8859 else
8860 ac_cv_use_splash='wxUSE_SPLASH=no'
8861 fi
e6cc62c6 8862
cbca9943 8863else
e6cc62c6 8864
cbca9943
VZ
8865 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8866 if test "x$LINE" != x ; then
8867 eval "DEFAULT_$LINE"
8868 else
8869 no_cache=1
8870 fi
8871
8872 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8873
e6cc62c6 8874fi;
cbca9943
VZ
8875
8876 eval "$ac_cv_use_splash"
8877 if test "$no_cache" != 1; then
8878 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8879 fi
8880
8881 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8882 echo "$as_me:$LINENO: result: yes" >&5
8883echo "${ECHO_T}yes" >&6
cbca9943 8884 else
e6cc62c6
VS
8885 echo "$as_me:$LINENO: result: no" >&5
8886echo "${ECHO_T}no" >&6
cbca9943 8887 fi
e6cc62c6 8888
cbca9943 8889
5005acfe 8890 enablestring=
e6cc62c6
VS
8891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8892echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8893 no_cache=0
8894 # Check whether --enable-textdlg or --disable-textdlg was given.
8895if test "${enable_textdlg+set}" = set; then
8896 enableval="$enable_textdlg"
e6cc62c6 8897
10f2d63a
VZ
8898 if test "$enableval" = yes; then
8899 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8900 else
8901 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8902 fi
e6cc62c6 8903
10f2d63a 8904else
e6cc62c6 8905
10f2d63a
VZ
8906 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8907 if test "x$LINE" != x ; then
8908 eval "DEFAULT_$LINE"
8909 else
8910 no_cache=1
8911 fi
8912
8913 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8914
e6cc62c6 8915fi;
10f2d63a
VZ
8916
8917 eval "$ac_cv_use_textdlg"
8918 if test "$no_cache" != 1; then
8919 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8920 fi
8921
8922 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8923 echo "$as_me:$LINENO: result: yes" >&5
8924echo "${ECHO_T}yes" >&6
10f2d63a 8925 else
e6cc62c6
VS
8926 echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
10f2d63a 8928 fi
e6cc62c6 8929
10f2d63a 8930
5005acfe 8931 enablestring=
e6cc62c6
VS
8932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8933echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8934 no_cache=0
8935 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8936if test "${enable_tipdlg+set}" = set; then
8937 enableval="$enable_tipdlg"
e6cc62c6 8938
10f2d63a
VZ
8939 if test "$enableval" = yes; then
8940 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8941 else
8942 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8943 fi
e6cc62c6 8944
10f2d63a 8945else
e6cc62c6 8946
10f2d63a
VZ
8947 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8948 if test "x$LINE" != x ; then
8949 eval "DEFAULT_$LINE"
8950 else
8951 no_cache=1
8952 fi
8953
8954 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8955
e6cc62c6 8956fi;
10f2d63a
VZ
8957
8958 eval "$ac_cv_use_tipdlg"
8959 if test "$no_cache" != 1; then
8960 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8961 fi
8962
8963 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8964 echo "$as_me:$LINENO: result: yes" >&5
8965echo "${ECHO_T}yes" >&6
10f2d63a 8966 else
e6cc62c6
VS
8967 echo "$as_me:$LINENO: result: no" >&5
8968echo "${ECHO_T}no" >&6
10f2d63a 8969 fi
e6cc62c6 8970
10f2d63a 8971
5005acfe 8972 enablestring=
e6cc62c6
VS
8973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8974echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8975 no_cache=0
8976 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8977if test "${enable_progressdlg+set}" = set; then
8978 enableval="$enable_progressdlg"
e6cc62c6 8979
10f2d63a
VZ
8980 if test "$enableval" = yes; then
8981 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8982 else
8983 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8984 fi
e6cc62c6 8985
10f2d63a 8986else
e6cc62c6 8987
10f2d63a
VZ
8988 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8989 if test "x$LINE" != x ; then
8990 eval "DEFAULT_$LINE"
8991 else
8992 no_cache=1
8993 fi
8994
8995 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8996
e6cc62c6 8997fi;
10f2d63a
VZ
8998
8999 eval "$ac_cv_use_progressdlg"
9000 if test "$no_cache" != 1; then
9001 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9002 fi
9003
9004 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
9005 echo "$as_me:$LINENO: result: yes" >&5
9006echo "${ECHO_T}yes" >&6
10f2d63a 9007 else
e6cc62c6
VS
9008 echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
10f2d63a 9010 fi
e6cc62c6 9011
10f2d63a 9012
5005acfe 9013 enablestring=
e6cc62c6
VS
9014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9015echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
9016 no_cache=0
9017 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9018if test "${enable_wizarddlg+set}" = set; then
9019 enableval="$enable_wizarddlg"
e6cc62c6 9020
b1f5d087
VZ
9021 if test "$enableval" = yes; then
9022 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9023 else
9024 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9025 fi
e6cc62c6 9026
b1f5d087 9027else
e6cc62c6 9028
b1f5d087
VZ
9029 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9030 if test "x$LINE" != x ; then
9031 eval "DEFAULT_$LINE"
9032 else
9033 no_cache=1
9034 fi
9035
9036 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 9037
e6cc62c6 9038fi;
b1f5d087
VZ
9039
9040 eval "$ac_cv_use_wizarddlg"
9041 if test "$no_cache" != 1; then
9042 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9043 fi
9044
9045 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
9046 echo "$as_me:$LINENO: result: yes" >&5
9047echo "${ECHO_T}yes" >&6
b1f5d087 9048 else
e6cc62c6
VS
9049 echo "$as_me:$LINENO: result: no" >&5
9050echo "${ECHO_T}no" >&6
b1f5d087 9051 fi
e6cc62c6 9052
8284b0c5
MB
9053
9054
52127426 9055
5005acfe 9056 enablestring=
e6cc62c6
VS
9057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9058echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
9059 no_cache=0
9060 # Check whether --enable-menus or --disable-menus was given.
9061if test "${enable_menus+set}" = set; then
9062 enableval="$enable_menus"
e6cc62c6 9063
1e6feb95
VZ
9064 if test "$enableval" = yes; then
9065 ac_cv_use_menus='wxUSE_MENUS=yes'
9066 else
9067 ac_cv_use_menus='wxUSE_MENUS=no'
9068 fi
e6cc62c6 9069
1e6feb95 9070else
e6cc62c6 9071
1e6feb95
VZ
9072 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9073 if test "x$LINE" != x ; then
9074 eval "DEFAULT_$LINE"
9075 else
9076 no_cache=1
9077 fi
9078
9079 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 9080
e6cc62c6 9081fi;
1e6feb95
VZ
9082
9083 eval "$ac_cv_use_menus"
9084 if test "$no_cache" != 1; then
9085 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9086 fi
9087
9088 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
9089 echo "$as_me:$LINENO: result: yes" >&5
9090echo "${ECHO_T}yes" >&6
1e6feb95 9091 else
e6cc62c6
VS
9092 echo "$as_me:$LINENO: result: no" >&5
9093echo "${ECHO_T}no" >&6
1e6feb95 9094 fi
e6cc62c6 9095
1e6feb95 9096
5005acfe 9097 enablestring=
e6cc62c6
VS
9098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9099echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
9100 no_cache=0
9101 # Check whether --enable-miniframe or --disable-miniframe was given.
9102if test "${enable_miniframe+set}" = set; then
9103 enableval="$enable_miniframe"
e6cc62c6 9104
10f2d63a
VZ
9105 if test "$enableval" = yes; then
9106 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9107 else
9108 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9109 fi
e6cc62c6 9110
10f2d63a 9111else
e6cc62c6 9112
10f2d63a
VZ
9113 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9114 if test "x$LINE" != x ; then
9115 eval "DEFAULT_$LINE"
9116 else
9117 no_cache=1
9118 fi
9119
9120 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 9121
e6cc62c6 9122fi;
10f2d63a
VZ
9123
9124 eval "$ac_cv_use_miniframe"
9125 if test "$no_cache" != 1; then
9126 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9127 fi
9128
9129 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
9130 echo "$as_me:$LINENO: result: yes" >&5
9131echo "${ECHO_T}yes" >&6
10f2d63a 9132 else
e6cc62c6
VS
9133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
10f2d63a 9135 fi
e6cc62c6 9136
10f2d63a 9137
5005acfe 9138 enablestring=
e6cc62c6
VS
9139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9140echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9141 no_cache=0
9142 # Check whether --enable-tooltips or --disable-tooltips was given.
9143if test "${enable_tooltips+set}" = set; then
9144 enableval="$enable_tooltips"
e6cc62c6 9145
10f2d63a
VZ
9146 if test "$enableval" = yes; then
9147 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9148 else
9149 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9150 fi
e6cc62c6 9151
10f2d63a 9152else
e6cc62c6 9153
10f2d63a
VZ
9154 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9155 if test "x$LINE" != x ; then
9156 eval "DEFAULT_$LINE"
9157 else
9158 no_cache=1
9159 fi
9160
9161 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9162
e6cc62c6 9163fi;
10f2d63a
VZ
9164
9165 eval "$ac_cv_use_tooltips"
9166 if test "$no_cache" != 1; then
9167 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9168 fi
9169
9170 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9171 echo "$as_me:$LINENO: result: yes" >&5
9172echo "${ECHO_T}yes" >&6
10f2d63a 9173 else
e6cc62c6
VS
9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
10f2d63a 9176 fi
e6cc62c6 9177
10f2d63a 9178
5005acfe 9179 enablestring=
e6cc62c6
VS
9180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9181echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9182 no_cache=0
9183 # Check whether --enable-splines or --disable-splines was given.
9184if test "${enable_splines+set}" = set; then
9185 enableval="$enable_splines"
e6cc62c6 9186
10f2d63a
VZ
9187 if test "$enableval" = yes; then
9188 ac_cv_use_splines='wxUSE_SPLINES=yes'
9189 else
9190 ac_cv_use_splines='wxUSE_SPLINES=no'
9191 fi
e6cc62c6 9192
10f2d63a 9193else
e6cc62c6 9194
10f2d63a
VZ
9195 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9196 if test "x$LINE" != x ; then
9197 eval "DEFAULT_$LINE"
9198 else
9199 no_cache=1
9200 fi
9201
9202 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9203
e6cc62c6 9204fi;
10f2d63a
VZ
9205
9206 eval "$ac_cv_use_splines"
9207 if test "$no_cache" != 1; then
9208 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9209 fi
9210
9211 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9212 echo "$as_me:$LINENO: result: yes" >&5
9213echo "${ECHO_T}yes" >&6
10f2d63a 9214 else
e6cc62c6
VS
9215 echo "$as_me:$LINENO: result: no" >&5
9216echo "${ECHO_T}no" >&6
10f2d63a 9217 fi
e6cc62c6 9218
10f2d63a 9219
5005acfe 9220 enablestring=
e6cc62c6
VS
9221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9222echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9223 no_cache=0
9224 # Check whether --enable-validators or --disable-validators was given.
9225if test "${enable_validators+set}" = set; then
9226 enableval="$enable_validators"
e6cc62c6 9227
10f2d63a
VZ
9228 if test "$enableval" = yes; then
9229 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9230 else
9231 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9232 fi
e6cc62c6 9233
10f2d63a 9234else
e6cc62c6 9235
10f2d63a
VZ
9236 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9237 if test "x$LINE" != x ; then
9238 eval "DEFAULT_$LINE"
9239 else
9240 no_cache=1
9241 fi
9242
9243 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9244
e6cc62c6 9245fi;
10f2d63a
VZ
9246
9247 eval "$ac_cv_use_validators"
9248 if test "$no_cache" != 1; then
9249 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9250 fi
9251
9252 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9253 echo "$as_me:$LINENO: result: yes" >&5
9254echo "${ECHO_T}yes" >&6
10f2d63a 9255 else
e6cc62c6
VS
9256 echo "$as_me:$LINENO: result: no" >&5
9257echo "${ECHO_T}no" >&6
10f2d63a 9258 fi
e6cc62c6 9259
10f2d63a 9260
5005acfe 9261 enablestring=
e6cc62c6
VS
9262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9263echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9264 no_cache=0
9265 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9266if test "${enable_busyinfo+set}" = set; then
9267 enableval="$enable_busyinfo"
e6cc62c6 9268
10f2d63a
VZ
9269 if test "$enableval" = yes; then
9270 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9271 else
9272 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9273 fi
e6cc62c6 9274
10f2d63a 9275else
e6cc62c6 9276
10f2d63a
VZ
9277 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9278 if test "x$LINE" != x ; then
9279 eval "DEFAULT_$LINE"
9280 else
9281 no_cache=1
9282 fi
9283
9284 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9285
e6cc62c6 9286fi;
10f2d63a
VZ
9287
9288 eval "$ac_cv_use_busyinfo"
9289 if test "$no_cache" != 1; then
9290 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9291 fi
9292
9293 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9294 echo "$as_me:$LINENO: result: yes" >&5
9295echo "${ECHO_T}yes" >&6
10f2d63a 9296 else
e6cc62c6
VS
9297 echo "$as_me:$LINENO: result: no" >&5
9298echo "${ECHO_T}no" >&6
10f2d63a 9299 fi
e6cc62c6 9300
10f2d63a 9301
5005acfe 9302 enablestring=
e6cc62c6
VS
9303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9304echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9305 no_cache=0
9306 # Check whether --enable-joystick or --disable-joystick was given.
9307if test "${enable_joystick+set}" = set; then
9308 enableval="$enable_joystick"
e6cc62c6 9309
f6bcfd97
BP
9310 if test "$enableval" = yes; then
9311 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9312 else
9313 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9314 fi
e6cc62c6 9315
f6bcfd97 9316else
e6cc62c6 9317
f6bcfd97
BP
9318 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9319 if test "x$LINE" != x ; then
9320 eval "DEFAULT_$LINE"
9321 else
9322 no_cache=1
9323 fi
9324
9325 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9326
e6cc62c6 9327fi;
f6bcfd97
BP
9328
9329 eval "$ac_cv_use_joystick"
9330 if test "$no_cache" != 1; then
9331 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9332 fi
9333
9334 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9335 echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6
f6bcfd97 9337 else
e6cc62c6
VS
9338 echo "$as_me:$LINENO: result: no" >&5
9339echo "${ECHO_T}no" >&6
f6bcfd97 9340 fi
e6cc62c6 9341
698dcdb6 9342
5005acfe 9343 enablestring=
e6cc62c6
VS
9344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9345echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9346 no_cache=0
9347 # Check whether --enable-metafile or --disable-metafile was given.
9348if test "${enable_metafile+set}" = set; then
9349 enableval="$enable_metafile"
e6cc62c6 9350
1e6feb95
VZ
9351 if test "$enableval" = yes; then
9352 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9353 else
9354 ac_cv_use_metafile='wxUSE_METAFILE=no'
9355 fi
e6cc62c6 9356
1e6feb95 9357else
e6cc62c6 9358
1e6feb95
VZ
9359 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9360 if test "x$LINE" != x ; then
9361 eval "DEFAULT_$LINE"
9362 else
9363 no_cache=1
9364 fi
9365
9366 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9367
e6cc62c6 9368fi;
1e6feb95
VZ
9369
9370 eval "$ac_cv_use_metafile"
9371 if test "$no_cache" != 1; then
9372 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9373 fi
9374
9375 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9376 echo "$as_me:$LINENO: result: yes" >&5
9377echo "${ECHO_T}yes" >&6
1e6feb95 9378 else
e6cc62c6
VS
9379 echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
1e6feb95 9381 fi
e6cc62c6 9382
1e6feb95 9383
5005acfe 9384 enablestring=
e6cc62c6
VS
9385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9386echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9387 no_cache=0
9388 # Check whether --enable-dragimage or --disable-dragimage was given.
9389if test "${enable_dragimage+set}" = set; then
9390 enableval="$enable_dragimage"
e6cc62c6 9391
24fd6d87
VZ
9392 if test "$enableval" = yes; then
9393 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9394 else
9395 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9396 fi
e6cc62c6 9397
24fd6d87 9398else
e6cc62c6 9399
24fd6d87
VZ
9400 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9401 if test "x$LINE" != x ; then
9402 eval "DEFAULT_$LINE"
9403 else
9404 no_cache=1
9405 fi
9406
9407 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9408
e6cc62c6 9409fi;
24fd6d87
VZ
9410
9411 eval "$ac_cv_use_dragimage"
9412 if test "$no_cache" != 1; then
9413 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9414 fi
9415
9416 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9417 echo "$as_me:$LINENO: result: yes" >&5
9418echo "${ECHO_T}yes" >&6
24fd6d87 9419 else
e6cc62c6
VS
9420 echo "$as_me:$LINENO: result: no" >&5
9421echo "${ECHO_T}no" >&6
24fd6d87 9422 fi
e6cc62c6 9423
52127426 9424
7bb2947d 9425 enablestring=
e6cc62c6
VS
9426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9427echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9428 no_cache=0
9429 # Check whether --enable-accessibility or --disable-accessibility was given.
9430if test "${enable_accessibility+set}" = set; then
9431 enableval="$enable_accessibility"
e6cc62c6 9432
7bb2947d
MB
9433 if test "$enableval" = yes; then
9434 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9435 else
9436 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9437 fi
e6cc62c6 9438
7bb2947d 9439else
e6cc62c6 9440
7bb2947d
MB
9441 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9442 if test "x$LINE" != x ; then
9443 eval "DEFAULT_$LINE"
9444 else
9445 no_cache=1
9446 fi
9447
9448 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9449
e6cc62c6 9450fi;
7bb2947d
MB
9451
9452 eval "$ac_cv_use_accessibility"
9453 if test "$no_cache" != 1; then
9454 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9455 fi
9456
9457 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9458 echo "$as_me:$LINENO: result: yes" >&5
9459echo "${ECHO_T}yes" >&6
7bb2947d 9460 else
e6cc62c6
VS
9461 echo "$as_me:$LINENO: result: no" >&5
9462echo "${ECHO_T}no" >&6
7bb2947d 9463 fi
e6cc62c6 9464
7bb2947d 9465
8284b0c5
MB
9466
9467
5005acfe 9468 enablestring=
e6cc62c6
VS
9469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9470echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9471 no_cache=0
9472 # Check whether --enable-palette or --disable-palette was given.
9473if test "${enable_palette+set}" = set; then
9474 enableval="$enable_palette"
e6cc62c6 9475
edae8572
VZ
9476 if test "$enableval" = yes; then
9477 ac_cv_use_palette='wxUSE_PALETTE=yes'
9478 else
9479 ac_cv_use_palette='wxUSE_PALETTE=no'
9480 fi
e6cc62c6 9481
edae8572 9482else
e6cc62c6 9483
edae8572
VZ
9484 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9485 if test "x$LINE" != x ; then
9486 eval "DEFAULT_$LINE"
9487 else
9488 no_cache=1
9489 fi
9490
9491 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9492
e6cc62c6 9493fi;
edae8572
VZ
9494
9495 eval "$ac_cv_use_palette"
9496 if test "$no_cache" != 1; then
9497 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9498 fi
9499
9500 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9501 echo "$as_me:$LINENO: result: yes" >&5
9502echo "${ECHO_T}yes" >&6
edae8572 9503 else
e6cc62c6
VS
9504 echo "$as_me:$LINENO: result: no" >&5
9505echo "${ECHO_T}no" >&6
edae8572 9506 fi
e6cc62c6 9507
edae8572 9508
5005acfe 9509 enablestring=
e6cc62c6
VS
9510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9511echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9512 no_cache=0
9513 # Check whether --enable-image or --disable-image was given.
9514if test "${enable_image+set}" = set; then
9515 enableval="$enable_image"
e6cc62c6 9516
0046ff7c
VS
9517 if test "$enableval" = yes; then
9518 ac_cv_use_image='wxUSE_IMAGE=yes'
9519 else
9520 ac_cv_use_image='wxUSE_IMAGE=no'
9521 fi
e6cc62c6 9522
0046ff7c 9523else
e6cc62c6 9524
0046ff7c
VS
9525 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9526 if test "x$LINE" != x ; then
9527 eval "DEFAULT_$LINE"
9528 else
9529 no_cache=1
9530 fi
9531
9532 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9533
e6cc62c6 9534fi;
0046ff7c
VS
9535
9536 eval "$ac_cv_use_image"
9537 if test "$no_cache" != 1; then
9538 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9539 fi
9540
9541 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9542 echo "$as_me:$LINENO: result: yes" >&5
9543echo "${ECHO_T}yes" >&6
0046ff7c 9544 else
e6cc62c6
VS
9545 echo "$as_me:$LINENO: result: no" >&5
9546echo "${ECHO_T}no" >&6
0046ff7c 9547 fi
e6cc62c6 9548
0046ff7c 9549
5005acfe 9550 enablestring=
e6cc62c6
VS
9551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9552echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9553 no_cache=0
9554 # Check whether --enable-gif or --disable-gif was given.
9555if test "${enable_gif+set}" = set; then
9556 enableval="$enable_gif"
e6cc62c6 9557
10f2d63a
VZ
9558 if test "$enableval" = yes; then
9559 ac_cv_use_gif='wxUSE_GIF=yes'
9560 else
9561 ac_cv_use_gif='wxUSE_GIF=no'
9562 fi
e6cc62c6 9563
10f2d63a 9564else
e6cc62c6 9565
10f2d63a
VZ
9566 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9567 if test "x$LINE" != x ; then
9568 eval "DEFAULT_$LINE"
9569 else
9570 no_cache=1
9571 fi
9572
9573 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9574
e6cc62c6 9575fi;
10f2d63a
VZ
9576
9577 eval "$ac_cv_use_gif"
9578 if test "$no_cache" != 1; then
9579 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9580 fi
9581
9582 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9583 echo "$as_me:$LINENO: result: yes" >&5
9584echo "${ECHO_T}yes" >&6
10f2d63a 9585 else
e6cc62c6
VS
9586 echo "$as_me:$LINENO: result: no" >&5
9587echo "${ECHO_T}no" >&6
10f2d63a 9588 fi
e6cc62c6 9589
10f2d63a 9590
5005acfe 9591 enablestring=
e6cc62c6
VS
9592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9593echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9594 no_cache=0
9595 # Check whether --enable-pcx or --disable-pcx was given.
9596if test "${enable_pcx+set}" = set; then
9597 enableval="$enable_pcx"
e6cc62c6 9598
10f2d63a
VZ
9599 if test "$enableval" = yes; then
9600 ac_cv_use_pcx='wxUSE_PCX=yes'
9601 else
9602 ac_cv_use_pcx='wxUSE_PCX=no'
9603 fi
e6cc62c6 9604
10f2d63a 9605else
e6cc62c6 9606
10f2d63a
VZ
9607 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9608 if test "x$LINE" != x ; then
9609 eval "DEFAULT_$LINE"
9610 else
9611 no_cache=1
9612 fi
9613
9614 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9615
e6cc62c6 9616fi;
10f2d63a
VZ
9617
9618 eval "$ac_cv_use_pcx"
9619 if test "$no_cache" != 1; then
9620 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9621 fi
9622
9623 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9624 echo "$as_me:$LINENO: result: yes" >&5
9625echo "${ECHO_T}yes" >&6
10f2d63a 9626 else
e6cc62c6
VS
9627 echo "$as_me:$LINENO: result: no" >&5
9628echo "${ECHO_T}no" >&6
10f2d63a 9629 fi
e6cc62c6 9630
10f2d63a 9631
5005acfe 9632 enablestring=
e6cc62c6
VS
9633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9634echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9635 no_cache=0
9636 # Check whether --enable-iff or --disable-iff was given.
9637if test "${enable_iff+set}" = set; then
9638 enableval="$enable_iff"
e6cc62c6 9639
4b6b4dfc
RR
9640 if test "$enableval" = yes; then
9641 ac_cv_use_iff='wxUSE_IFF=yes'
9642 else
9643 ac_cv_use_iff='wxUSE_IFF=no'
9644 fi
e6cc62c6 9645
4b6b4dfc 9646else
e6cc62c6 9647
4b6b4dfc
RR
9648 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9649 if test "x$LINE" != x ; then
9650 eval "DEFAULT_$LINE"
9651 else
9652 no_cache=1
9653 fi
9654
9655 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9656
e6cc62c6 9657fi;
4b6b4dfc
RR
9658
9659 eval "$ac_cv_use_iff"
9660 if test "$no_cache" != 1; then
9661 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9662 fi
9663
9664 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9665 echo "$as_me:$LINENO: result: yes" >&5
9666echo "${ECHO_T}yes" >&6
4b6b4dfc 9667 else
e6cc62c6
VS
9668 echo "$as_me:$LINENO: result: no" >&5
9669echo "${ECHO_T}no" >&6
4b6b4dfc 9670 fi
e6cc62c6 9671
4b6b4dfc 9672
5005acfe 9673 enablestring=
e6cc62c6
VS
9674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9675echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9676 no_cache=0
9677 # Check whether --enable-pnm or --disable-pnm was given.
9678if test "${enable_pnm+set}" = set; then
9679 enableval="$enable_pnm"
e6cc62c6 9680
10f2d63a
VZ
9681 if test "$enableval" = yes; then
9682 ac_cv_use_pnm='wxUSE_PNM=yes'
9683 else
9684 ac_cv_use_pnm='wxUSE_PNM=no'
9685 fi
e6cc62c6 9686
10f2d63a 9687else
e6cc62c6 9688
10f2d63a
VZ
9689 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9690 if test "x$LINE" != x ; then
9691 eval "DEFAULT_$LINE"
9692 else
9693 no_cache=1
9694 fi
9695
9696 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9697
e6cc62c6 9698fi;
10f2d63a
VZ
9699
9700 eval "$ac_cv_use_pnm"
9701 if test "$no_cache" != 1; then
9702 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9703 fi
9704
9705 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9706 echo "$as_me:$LINENO: result: yes" >&5
9707echo "${ECHO_T}yes" >&6
10f2d63a 9708 else
e6cc62c6
VS
9709 echo "$as_me:$LINENO: result: no" >&5
9710echo "${ECHO_T}no" >&6
10f2d63a 9711 fi
e6cc62c6 9712
10f2d63a 9713
5005acfe 9714 enablestring=
e6cc62c6
VS
9715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9716echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9717 no_cache=0
69d27ff7
MB
9718 # Check whether --enable-xpm or --disable-xpm was given.
9719if test "${enable_xpm+set}" = set; then
9720 enableval="$enable_xpm"
e6cc62c6 9721
0046ff7c 9722 if test "$enableval" = yes; then
69d27ff7 9723 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9724 else
69d27ff7 9725 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9726 fi
e6cc62c6 9727
0046ff7c 9728else
e6cc62c6 9729
0046ff7c
VS
9730 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9731 if test "x$LINE" != x ; then
9732 eval "DEFAULT_$LINE"
9733 else
9734 no_cache=1
9735 fi
9736
69d27ff7 9737 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9738
e6cc62c6 9739fi;
0046ff7c 9740
69d27ff7 9741 eval "$ac_cv_use_xpm"
0046ff7c 9742 if test "$no_cache" != 1; then
69d27ff7 9743 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9744 fi
9745
9746 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9747 echo "$as_me:$LINENO: result: yes" >&5
9748echo "${ECHO_T}yes" >&6
0046ff7c 9749 else
e6cc62c6
VS
9750 echo "$as_me:$LINENO: result: no" >&5
9751echo "${ECHO_T}no" >&6
0046ff7c 9752 fi
e6cc62c6 9753
0046ff7c 9754
5005acfe 9755 enablestring=
e6cc62c6
VS
9756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9757echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9758 no_cache=0
c7206e64
VS
9759 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9760if test "${enable_ico_cur+set}" = set; then
9761 enableval="$enable_ico_cur"
e6cc62c6 9762
658974ae 9763 if test "$enableval" = yes; then
c7206e64 9764 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9765 else
c7206e64 9766 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9767 fi
e6cc62c6 9768
658974ae 9769else
e6cc62c6 9770
658974ae
VS
9771 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9772 if test "x$LINE" != x ; then
9773 eval "DEFAULT_$LINE"
9774 else
9775 no_cache=1
9776 fi
9777
c7206e64 9778 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9779
e6cc62c6 9780fi;
658974ae 9781
c7206e64 9782 eval "$ac_cv_use_ico_cur"
658974ae 9783 if test "$no_cache" != 1; then
c7206e64 9784 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9785 fi
9786
9787 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9788 echo "$as_me:$LINENO: result: yes" >&5
9789echo "${ECHO_T}yes" >&6
658974ae 9790 else
e6cc62c6
VS
9791 echo "$as_me:$LINENO: result: no" >&5
9792echo "${ECHO_T}no" >&6
658974ae 9793 fi
e6cc62c6 9794
658974ae 9795
b12915c1
VZ
9796fi
9797
029b47ad
VS
9798
9799
9800 enablestring=
9801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9802echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9803 no_cache=0
9804 # Check whether --enable-official_build or --disable-official_build was given.
9805if test "${enable_official_build+set}" = set; then
9806 enableval="$enable_official_build"
9807
9808 if test "$enableval" = yes; then
9809 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9810 else
9811 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9812 fi
9813
9814else
9815
9816 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9817 if test "x$LINE" != x ; then
9818 eval "DEFAULT_$LINE"
9819 else
9820 no_cache=1
9821 fi
9822
9823 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9824
9825fi;
9826
9827 eval "$ac_cv_use_official_build"
9828 if test "$no_cache" != 1; then
9829 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9830 fi
9831
9832 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9833 echo "$as_me:$LINENO: result: yes" >&5
9834echo "${ECHO_T}yes" >&6
9835 else
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
9838 fi
9839
9840# Check whether --enable-vendor or --disable-vendor was given.
9841if test "${enable_vendor+set}" = set; then
9842 enableval="$enable_vendor"
9843 VENDOR="$enableval"
9844fi;
9845if test "x$VENDOR" = "x"; then
9846 VENDOR="custom"
9847fi
9848
d558c907
VS
9849case "${host}" in
9850 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9851 PATH_IFS=';'
d558c907
VS
9852 ;;
9853 *)
9854 PATH_IFS=':'
d558c907
VS
9855 ;;
9856esac
9857
8284b0c5
MB
9858
9859
10f2d63a
VZ
9860 echo "saving argument cache $wx_arg_cache_file"
9861 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9862
8284b0c5 9863
e6cc62c6
VS
9864
9865echo "$as_me:$LINENO: checking for toolkit" >&5
9866echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9867
9868# In Wine, we need to default to MSW, not GTK or MOTIF
9869if test "$wxUSE_WINE" = "yes"; then
9870 DEFAULT_DEFAULT_wxUSE_GTK=0
9871 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9872 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9873 wxUSE_SHARED=no
89e6bf6d 9874fi
10f2d63a
VZ
9875
9876if test "$wxUSE_GUI" = "yes"; then
9877
3a922bb4 9878 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9879 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9880echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9881 { (exit 1); exit 1; }; }
3a922bb4 9882 fi
b12915c1 9883
3a922bb4
RL
9884 if test "$TOOLKIT_GIVEN" = 1; then
9885 for toolkit in `echo $ALL_TOOLKITS`; do
9886 var=wxUSE_$toolkit
9887 eval "value=\$${var}"
9888 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9889 done
10f2d63a 9890 else
3a922bb4
RL
9891 for toolkit in `echo $ALL_TOOLKITS`; do
9892 if test "$has_toolkit_in_cache" != 1; then
9893 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9894 else
9895 var=DEFAULT_wxUSE_$toolkit
9896 fi
9897 eval "wxUSE_$toolkit=\$${var}"
9898 done
10f2d63a 9899 fi
10f2d63a 9900
ac0c4cc3
DE
9901 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9902 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9903 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9904
d558c907 9905 case "${host}" in
6fa882bd 9906 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9907 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9908 esac
10f2d63a 9909
3a922bb4
RL
9910 case "$NUM_TOOLKITS" in
9911 1)
9912 ;;
9913 0)
e6cc62c6
VS
9914 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9915echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9916 { (exit 1); exit 1; }; }
3a922bb4
RL
9917 ;;
9918 *)
e6cc62c6
VS
9919 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9920echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9921 { (exit 1); exit 1; }; }
3a922bb4 9922 esac
10f2d63a 9923
3a922bb4
RL
9924 for toolkit in `echo $ALL_TOOLKITS`; do
9925 var=wxUSE_$toolkit
9926 eval "value=\$${var}"
9927 if test "x$value" != x; then
9928 cache_var=CACHE_$toolkit
9929 eval "cache=\$${cache_var}"
9930 if test "$cache" = 1; then
9931 echo "$var=$value" >> ${wx_arg_cache_file}
9932 fi
9933 if test "$value" = 1; then
89fe663f 9934 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9935 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9936echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9937 fi
9938 fi
9939 done
10f2d63a 9940else
9de9b8f0
VZ
9941 if test "x$host_alias" != "x"; then
9942 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9943echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9944 else
9945 echo "$as_me:$LINENO: result: base only" >&5
9946echo "${ECHO_T}base only" >&6
9947 fi
10f2d63a
VZ
9948fi
9949
43d99b6d
VS
9950wants_win32=0
9951doesnt_want_win32=0
17234b26
MB
9952case "${host}" in
9953 *-*-cygwin*)
9954 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9955 wants_win32=1
9956 else
9957 doesnt_want_win32=1
17234b26
MB
9958 fi
9959 ;;
9960 *-*-mingw*)
43d99b6d 9961 wants_win32=1
17234b26
MB
9962 ;;
9963esac
9964
89e6bf6d
VZ
9965if test "$wxUSE_WINE" = "yes"; then
9966 wants_win32=1
9967 CC=winegcc
9968 CXX=wineg++
9969 RESCOMP=wrc
30f2fa6c 9970 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9971fi
9972
43d99b6d 9973if test "$wants_win32" = 1 ; then
17234b26
MB
9974 USE_UNIX=0
9975 USE_WIN32=1
e6cc62c6 9976 cat >>confdefs.h <<\_ACEOF
17234b26 9977#define __WIN32__ 1
e6cc62c6 9978_ACEOF
17234b26 9979
e6cc62c6 9980 cat >>confdefs.h <<\_ACEOF
17234b26 9981#define __WIN95__ 1
e6cc62c6 9982_ACEOF
17234b26 9983
e6cc62c6 9984 cat >>confdefs.h <<\_ACEOF
17234b26 9985#define __WINDOWS__ 1
e6cc62c6 9986_ACEOF
17234b26 9987
e6cc62c6 9988 cat >>confdefs.h <<\_ACEOF
17234b26 9989#define __GNUWIN32__ 1
e6cc62c6 9990_ACEOF
17234b26 9991
e6cc62c6 9992 cat >>confdefs.h <<\_ACEOF
17234b26 9993#define STRICT 1
e6cc62c6 9994_ACEOF
17234b26 9995
e6cc62c6 9996 cat >>confdefs.h <<\_ACEOF
17234b26 9997#define WINVER 0x0400
e6cc62c6 9998_ACEOF
17234b26 9999
43d99b6d
VS
10000fi
10001if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
10002 USE_UNIX=1
10003 USE_WIN32=0
10004fi
10005
10006if test "$USE_UNIX" = 1 ; then
10007 wxUSE_UNIX=yes
e6cc62c6 10008 cat >>confdefs.h <<\_ACEOF
17234b26 10009#define __UNIX__ 1
e6cc62c6 10010_ACEOF
17234b26
MB
10011
10012fi
10013
8284b0c5 10014
e6cc62c6 10015cat >confcache <<\_ACEOF
10f2d63a
VZ
10016# This file is a shell script that caches the results of configure
10017# tests run on this system so they can be shared between configure
e6cc62c6
VS
10018# scripts and configure runs, see configure's option --config-cache.
10019# It is not useful on other systems. If it contains results you don't
10020# want to keep, you may remove or edit it.
10f2d63a 10021#
e6cc62c6
VS
10022# config.status only pays attention to the cache file if you give it
10023# the --recheck option to rerun configure.
10f2d63a 10024#
e6cc62c6
VS
10025# `ac_cv_env_foo' variables (set or unset) will be overridden when
10026# loading this file, other *unset* `ac_cv_foo' will be assigned the
10027# following values.
10028
10029_ACEOF
10030
10f2d63a
VZ
10031# The following way of writing the cache mishandles newlines in values,
10032# but we know of no workaround that is simple, portable, and efficient.
10033# So, don't put newlines in cache variables' values.
10034# Ultrix sh set writes to stderr and can't be redirected directly,
10035# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
10036{
10037 (set) 2>&1 |
10038 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10039 *ac_space=\ *)
10040 # `set' does not quote correctly, so add quotes (double-quote
10041 # substitution turns \\\\ into \\, and sed turns \\ into \).
10042 sed -n \
32ddf007
VS
10043 "s/'/'\\\\''/g;
10044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
10045 ;;
10046 *)
10047 # `set' quotes correctly as required by POSIX, so do not add quotes.
10048 sed -n \
32ddf007 10049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
10050 ;;
10051 esac;
10052} |
10053 sed '
10054 t clear
10055 : clear
10056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10057 t end
10058 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10059 : end' >>confcache
10060if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 10061 if test -w $cache_file; then
e6cc62c6
VS
10062 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10063 cat confcache >$cache_file
10f2d63a
VZ
10064 else
10065 echo "not updating unwritable cache $cache_file"
10066 fi
10067fi
10068rm -f confcache
10069
e59890c3 10070if test "$build" != "$host" ; then
9d353d4a 10071 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
10072 CC=$host_alias-gcc
10073 CXX=$host_alias-c++
10074 AR=$host_alias-ar
10075 RANLIB=$host_alias-ranlib
10076 DLLTOOL=$host_alias-dlltool
10077 RESCOMP=$host_alias-windres
10078 LD=$host_alias-ld
10079 NM=$host_alias-nm
10080 STRIP=$host_alias-strip
10081 else
e6cc62c6
VS
10082 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10083echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10084 { (exit 1); exit 1; }; }
3a922bb4 10085 fi
10f2d63a
VZ
10086fi
10087
ec603395 10088CFLAGS=${CFLAGS:=}
e6cc62c6
VS
10089ac_ext=c
10090ac_cpp='$CPP $CPPFLAGS'
10091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10093ac_compiler_gnu=$ac_cv_c_compiler_gnu
10094if test -n "$ac_tool_prefix"; then
10095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10096set dummy ${ac_tool_prefix}gcc; ac_word=$2
10097echo "$as_me:$LINENO: checking for $ac_word" >&5
10098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10099if test "${ac_cv_prog_CC+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102 if test -n "$CC"; then
10103 ac_cv_prog_CC="$CC" # Let the user override the test.
10104else
10105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106for as_dir in $PATH
10107do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10115 fi
10116done
10117done
10118
10119fi
10120fi
10121CC=$ac_cv_prog_CC
10122if test -n "$CC"; then
10123 echo "$as_me:$LINENO: result: $CC" >&5
10124echo "${ECHO_T}$CC" >&6
10125else
10126 echo "$as_me:$LINENO: result: no" >&5
10127echo "${ECHO_T}no" >&6
10128fi
10129
10130fi
10131if test -z "$ac_cv_prog_CC"; then
10132 ac_ct_CC=$CC
10133 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10134set dummy gcc; ac_word=$2
e6cc62c6
VS
10135echo "$as_me:$LINENO: checking for $ac_word" >&5
10136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10137if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140 if test -n "$ac_ct_CC"; then
10141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10142else
10143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150 ac_cv_prog_ac_ct_CC="gcc"
10151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 break 2
10153 fi
10154done
10155done
10156
10157fi
10158fi
10159ac_ct_CC=$ac_cv_prog_ac_ct_CC
10160if test -n "$ac_ct_CC"; then
10161 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10162echo "${ECHO_T}$ac_ct_CC" >&6
10163else
10164 echo "$as_me:$LINENO: result: no" >&5
10165echo "${ECHO_T}no" >&6
10166fi
10167
10168 CC=$ac_ct_CC
10169else
10170 CC="$ac_cv_prog_CC"
10171fi
10172
10173if test -z "$CC"; then
10174 if test -n "$ac_tool_prefix"; then
10175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10176set dummy ${ac_tool_prefix}cc; ac_word=$2
10177echo "$as_me:$LINENO: checking for $ac_word" >&5
10178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10179if test "${ac_cv_prog_CC+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10181else
10182 if test -n "$CC"; then
10183 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10184else
e6cc62c6
VS
10185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186for as_dir in $PATH
10187do
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192 ac_cv_prog_CC="${ac_tool_prefix}cc"
10193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 break 2
10195 fi
10196done
10197done
10198
10f2d63a 10199fi
6232543b 10200fi
e6cc62c6 10201CC=$ac_cv_prog_CC
6232543b 10202if test -n "$CC"; then
e6cc62c6
VS
10203 echo "$as_me:$LINENO: result: $CC" >&5
10204echo "${ECHO_T}$CC" >&6
10205else
10206 echo "$as_me:$LINENO: result: no" >&5
10207echo "${ECHO_T}no" >&6
10208fi
10209
10210fi
10211if test -z "$ac_cv_prog_CC"; then
10212 ac_ct_CC=$CC
10213 # Extract the first word of "cc", so it can be a program name with args.
10214set dummy cc; ac_word=$2
10215echo "$as_me:$LINENO: checking for $ac_word" >&5
10216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10217if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219else
10220 if test -n "$ac_ct_CC"; then
10221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10222else
10223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224for as_dir in $PATH
10225do
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230 ac_cv_prog_ac_ct_CC="cc"
10231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10233 fi
10234done
10235done
10236
10237fi
10238fi
10239ac_ct_CC=$ac_cv_prog_ac_ct_CC
10240if test -n "$ac_ct_CC"; then
10241 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10242echo "${ECHO_T}$ac_ct_CC" >&6
10243else
10244 echo "$as_me:$LINENO: result: no" >&5
10245echo "${ECHO_T}no" >&6
10246fi
10247
10248 CC=$ac_ct_CC
247f5006 10249else
e6cc62c6 10250 CC="$ac_cv_prog_CC"
247f5006
VZ
10251fi
10252
e6cc62c6 10253fi
5c6fa7d2
RR
10254if test -z "$CC"; then
10255 # Extract the first word of "cc", so it can be a program name with args.
10256set dummy cc; ac_word=$2
e6cc62c6
VS
10257echo "$as_me:$LINENO: checking for $ac_word" >&5
10258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10259if test "${ac_cv_prog_CC+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10261else
10262 if test -n "$CC"; then
10263 ac_cv_prog_CC="$CC" # Let the user override the test.
10264else
10265 ac_prog_rejected=no
e6cc62c6
VS
10266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267for as_dir in $PATH
10268do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10274 ac_prog_rejected=yes
10275 continue
10276 fi
10277 ac_cv_prog_CC="cc"
10278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 break 2
10280 fi
10281done
10282done
10283
328a083c
RR
10284if test $ac_prog_rejected = yes; then
10285 # We found a bogon in the path, so make sure we never use it.
10286 set dummy $ac_cv_prog_CC
10287 shift
e6cc62c6 10288 if test $# != 0; then
328a083c 10289 # We chose a different compiler from the bogus one.
1e487827
VS
10290 # However, it has the same basename, so the bogon will be chosen
10291 # first if we set CC to just the basename; use the full file name.
10292 shift
e6cc62c6 10293 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10294 fi
1e487827
VS
10295fi
10296fi
10297fi
e6cc62c6 10298CC=$ac_cv_prog_CC
1e487827 10299if test -n "$CC"; then
e6cc62c6
VS
10300 echo "$as_me:$LINENO: result: $CC" >&5
10301echo "${ECHO_T}$CC" >&6
703e0a69 10302else
e6cc62c6
VS
10303 echo "$as_me:$LINENO: result: no" >&5
10304echo "${ECHO_T}no" >&6
703e0a69 10305fi
1e487827 10306
e6cc62c6
VS
10307fi
10308if test -z "$CC"; then
10309 if test -n "$ac_tool_prefix"; then
10310 for ac_prog in cl
10311 do
10312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10314echo "$as_me:$LINENO: checking for $ac_word" >&5
10315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10316if test "${ac_cv_prog_CC+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10318else
10319 if test -n "$CC"; then
10320 ac_cv_prog_CC="$CC" # Let the user override the test.
10321else
e6cc62c6
VS
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10332 fi
10333done
10334done
10335
f09359cf
VS
10336fi
10337fi
e6cc62c6 10338CC=$ac_cv_prog_CC
f09359cf 10339if test -n "$CC"; then
e6cc62c6
VS
10340 echo "$as_me:$LINENO: result: $CC" >&5
10341echo "${ECHO_T}$CC" >&6
f09359cf 10342else
e6cc62c6
VS
10343 echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
5c6fa7d2 10345fi
1e487827 10346
e6cc62c6
VS
10347 test -n "$CC" && break
10348 done
10349fi
10350if test -z "$CC"; then
10351 ac_ct_CC=$CC
10352 for ac_prog in cl
10353do
10354 # Extract the first word of "$ac_prog", so it can be a program name with args.
10355set dummy $ac_prog; ac_word=$2
10356echo "$as_me:$LINENO: checking for $ac_word" >&5
10357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10358if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361 if test -n "$ac_ct_CC"; then
10362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_prog_ac_ct_CC="$ac_prog"
10372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10374 fi
10375done
10376done
f09359cf 10377
e6cc62c6
VS
10378fi
10379fi
10380ac_ct_CC=$ac_cv_prog_ac_ct_CC
10381if test -n "$ac_ct_CC"; then
10382 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10383echo "${ECHO_T}$ac_ct_CC" >&6
10384else
10385 echo "$as_me:$LINENO: result: no" >&5
10386echo "${ECHO_T}no" >&6
10387fi
f09359cf 10388
e6cc62c6
VS
10389 test -n "$ac_ct_CC" && break
10390done
247f5006 10391
e6cc62c6
VS
10392 CC=$ac_ct_CC
10393fi
10394
10395fi
10396
10397
10398test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10399See \`config.log' for more details." >&5
10400echo "$as_me: error: no acceptable C compiler found in \$PATH
10401See \`config.log' for more details." >&2;}
10402 { (exit 1); exit 1; }; }
10403
10404# Provide some information about the compiler.
10405echo "$as_me:$LINENO:" \
10406 "checking for C compiler version" >&5
10407ac_compiler=`set X $ac_compile; echo $2`
10408{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10409 (eval $ac_compiler --version </dev/null >&5) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }
10413{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10414 (eval $ac_compiler -v </dev/null >&5) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }
10418{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10419 (eval $ac_compiler -V </dev/null >&5) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }
10423
10424cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
10430
10431int
10432main ()
10433{
247f5006 10434
e6cc62c6
VS
10435 ;
10436 return 0;
10437}
10438_ACEOF
10439ac_clean_files_save=$ac_clean_files
10440ac_clean_files="$ac_clean_files a.out a.exe b.out"
10441# Try to create an executable without -o first, disregard a.out.
10442# It will help us diagnose broken compilers, and finding out an intuition
10443# of exeext.
32ddf007
VS
10444echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10445echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10446ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10447if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10448 (eval $ac_link_default) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; then
10452 # Find the output, starting from the most likely. This scheme is
10453# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10454# resort.
10455
10456# Be careful to initialize this variable, since it used to be cached.
10457# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10458ac_cv_exeext=
10459# b.out is created by i960 compilers.
10460for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10461do
10462 test -f "$ac_file" || continue
10463 case $ac_file in
10464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
32ddf007 10465 ;;
e6cc62c6 10466 conftest.$ac_ext )
32ddf007
VS
10467 # This is the source file.
10468 ;;
e6cc62c6 10469 [ab].out )
32ddf007
VS
10470 # We found the default executable, but exeext='' is most
10471 # certainly right.
10472 break;;
e6cc62c6 10473 *.* )
32ddf007
VS
10474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10475 # FIXME: I believe we export ac_cv_exeext for Libtool,
10476 # but it would be cool to find out if it's true. Does anybody
10477 # maintain Libtool? --akim.
10478 export ac_cv_exeext
10479 break;;
e6cc62c6 10480 * )
32ddf007 10481 break;;
e6cc62c6
VS
10482 esac
10483done
10484else
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
10488{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10489See \`config.log' for more details." >&5
10490echo "$as_me: error: C compiler cannot create executables
10491See \`config.log' for more details." >&2;}
10492 { (exit 77); exit 77; }; }
10493fi
10494
10495ac_exeext=$ac_cv_exeext
10496echo "$as_me:$LINENO: result: $ac_file" >&5
10497echo "${ECHO_T}$ac_file" >&6
10498
10499# Check the compiler produces executables we can run. If not, either
10500# the compiler is broken, or we cross compile.
10501echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10502echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10503# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10504# If not cross compiling, check that we can run a simple program.
10505if test "$cross_compiling" != yes; then
10506 if { ac_try='./$ac_file'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 cross_compiling=no
698dcdb6 10513 else
e6cc62c6
VS
10514 if test "$cross_compiling" = maybe; then
10515 cross_compiling=yes
10516 else
10517 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10518If you meant to cross compile, use \`--host'.
10519See \`config.log' for more details." >&5
10520echo "$as_me: error: cannot run C compiled programs.
10521If you meant to cross compile, use \`--host'.
10522See \`config.log' for more details." >&2;}
10523 { (exit 1); exit 1; }; }
10524 fi
698dcdb6 10525 fi
52127426 10526fi
e6cc62c6
VS
10527echo "$as_me:$LINENO: result: yes" >&5
10528echo "${ECHO_T}yes" >&6
10529
10530rm -f a.out a.exe conftest$ac_cv_exeext b.out
10531ac_clean_files=$ac_clean_files_save
10532# Check the compiler produces executables we can run. If not, either
10533# the compiler is broken, or we cross compile.
10534echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10535echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10536echo "$as_me:$LINENO: result: $cross_compiling" >&5
10537echo "${ECHO_T}$cross_compiling" >&6
10538
10539echo "$as_me:$LINENO: checking for suffix of executables" >&5
10540echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; then
10546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10547# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10548# work properly (i.e., refer to `conftest.exe'), while it won't with
10549# `rm'.
10550for ac_file in conftest.exe conftest conftest.*; do
10551 test -f "$ac_file" || continue
10552 case $ac_file in
10553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
32ddf007
VS
10555 export ac_cv_exeext
10556 break;;
e6cc62c6
VS
10557 * ) break;;
10558 esac
10559done
5c6fa7d2 10560else
e6cc62c6
VS
10561 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10562See \`config.log' for more details." >&5
10563echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10564See \`config.log' for more details." >&2;}
10565 { (exit 1); exit 1; }; }
10566fi
10567
10568rm -f conftest$ac_cv_exeext
10569echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10570echo "${ECHO_T}$ac_cv_exeext" >&6
10571
10572rm -f conftest.$ac_ext
10573EXEEXT=$ac_cv_exeext
10574ac_exeext=$EXEEXT
10575echo "$as_me:$LINENO: checking for suffix of object files" >&5
10576echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10577if test "${ac_cv_objext+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10581/* confdefs.h. */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h. */
10586
10587int
10588main ()
10589{
f09359cf 10590
e6cc62c6
VS
10591 ;
10592 return 0;
10593}
10594_ACEOF
10595rm -f conftest.o conftest.obj
10596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; then
10601 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10602 case $ac_file in
10603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10605 break;;
10606 esac
10607done
a0b9e27f 10608else
e6cc62c6
VS
10609 echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
10611
10612{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10613See \`config.log' for more details." >&5
10614echo "$as_me: error: cannot compute suffix of object files: cannot compile
10615See \`config.log' for more details." >&2;}
10616 { (exit 1); exit 1; }; }
a0b9e27f 10617fi
247f5006 10618
e6cc62c6
VS
10619rm -f conftest.$ac_cv_objext conftest.$ac_ext
10620fi
10621echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10622echo "${ECHO_T}$ac_cv_objext" >&6
10623OBJEXT=$ac_cv_objext
10624ac_objext=$OBJEXT
10625echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10626echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10627if test "${ac_cv_c_compiler_gnu+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10629else
e6cc62c6 10630 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636
10637int
10638main ()
10639{
10640#ifndef __GNUC__
10641 choke me
10642#endif
10643
10644 ;
10645 return 0;
10646}
10647_ACEOF
10648rm -f conftest.$ac_objext
10649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10650 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10651 ac_status=$?
32ddf007
VS
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
e6cc62c6
VS
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
e1293dcf 10657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_compiler_gnu=yes
10670else
10671 echo "$as_me: failed program was:" >&5
10672sed 's/^/| /' conftest.$ac_ext >&5
10673
10674ac_compiler_gnu=no
10675fi
32ddf007 10676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10677ac_cv_c_compiler_gnu=$ac_compiler_gnu
10678
10679fi
10680echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10681echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10682GCC=`test $ac_compiler_gnu = yes && echo yes`
10683ac_test_CFLAGS=${CFLAGS+set}
10684ac_save_CFLAGS=$CFLAGS
10685CFLAGS="-g"
10686echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10687echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10688if test "${ac_cv_prog_cc_g+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690else
10691 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697
10698int
10699main ()
10700{
10701
10702 ;
10703 return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext
10707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10708 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10709 ac_status=$?
32ddf007
VS
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
e6cc62c6
VS
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
e1293dcf 10715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; } &&
10721 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10f2d63a
VZ
10727 ac_cv_prog_cc_g=yes
10728else
e6cc62c6
VS
10729 echo "$as_me: failed program was:" >&5
10730sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10731
e6cc62c6 10732ac_cv_prog_cc_g=no
10f2d63a 10733fi
32ddf007 10734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10735fi
10736echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10737echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10738if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10739 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10740elif test $ac_cv_prog_cc_g = yes; then
10741 if test "$GCC" = yes; then
10f2d63a
VZ
10742 CFLAGS="-g -O2"
10743 else
f09359cf 10744 CFLAGS="-g"
10f2d63a 10745 fi
5c0a20c3 10746else
f09359cf
VS
10747 if test "$GCC" = yes; then
10748 CFLAGS="-O2"
10749 else
10750 CFLAGS=
10751 fi
10f2d63a 10752fi
e6cc62c6
VS
10753echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10754echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10755if test "${ac_cv_prog_cc_stdc+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757else
10758 ac_cv_prog_cc_stdc=no
10759ac_save_CC=$CC
10760cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10761/* confdefs.h. */
10762_ACEOF
10763cat confdefs.h >>conftest.$ac_ext
10764cat >>conftest.$ac_ext <<_ACEOF
10765/* end confdefs.h. */
10766#include <stdarg.h>
10767#include <stdio.h>
10768#include <sys/types.h>
10769#include <sys/stat.h>
10770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10771struct buf { int x; };
10772FILE * (*rcsopen) (struct buf *, struct stat *, int);
10773static char *e (p, i)
10774 char **p;
10775 int i;
10776{
10777 return p[i];
10778}
10779static char *f (char * (*g) (char **, int), char **p, ...)
10780{
10781 char *s;
10782 va_list v;
10783 va_start (v,p);
10784 s = g (p, va_arg (v,int));
10785 va_end (v);
10786 return s;
10787}
32ddf007
VS
10788
10789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10790 function prototypes and stuff, but not '\xHH' hex character constants.
10791 These don't provoke an error unfortunately, instead are silently treated
10792 as 'x'. The following induces an error, until -std1 is added to get
10793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10794 array size at least. It's necessary to write '\x00'==0 to get something
10795 that's true only with -std1. */
10796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10797
e6cc62c6
VS
10798int test (int i, double x);
10799struct s1 {int (*f) (int a);};
10800struct s2 {int (*f) (double a);};
10801int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10802int argc;
10803char **argv;
10804int
10805main ()
10806{
10807return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10808 ;
10809 return 0;
10810}
10811_ACEOF
10812# Don't try gcc -ansi; that turns off useful extensions and
10813# breaks some systems' header files.
10814# AIX -qlanglvl=ansi
10815# Ultrix and OSF/1 -std1
10816# HP-UX 10.20 and later -Ae
10817# HP-UX older versions -Aa -D_HPUX_SOURCE
10818# SVR4 -Xc -D__EXTENSIONS__
10819for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10820do
10821 CC="$ac_save_CC $ac_arg"
10822 rm -f conftest.$ac_objext
10823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10824 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10825 ac_status=$?
32ddf007
VS
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
e6cc62c6
VS
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
e1293dcf 10831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 ac_cv_prog_cc_stdc=$ac_arg
10844break
10845else
10846 echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849fi
32ddf007 10850rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10851done
10852rm -f conftest.$ac_ext conftest.$ac_objext
10853CC=$ac_save_CC
10854
10855fi
10856
10857case "x$ac_cv_prog_cc_stdc" in
10858 x|xno)
10859 echo "$as_me:$LINENO: result: none needed" >&5
10860echo "${ECHO_T}none needed" >&6 ;;
10861 *)
10862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10863echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10864 CC="$CC $ac_cv_prog_cc_stdc" ;;
10865esac
10866
10867# Some people use a C++ compiler to compile C. Since we use `exit',
10868# in C++ we need to declare it. In case someone uses the same compiler
10869# for both compiling C and C++ we need to have the C++ compiler decide
10870# the declaration of exit, since it's the most demanding environment.
10871cat >conftest.$ac_ext <<_ACEOF
10872#ifndef __cplusplus
10873 choke me
10874#endif
10875_ACEOF
10876rm -f conftest.$ac_objext
10877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10878 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10879 ac_status=$?
32ddf007
VS
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
e6cc62c6
VS
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
e1293dcf 10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 for ac_declaration in \
32ddf007 10898 '' \
e6cc62c6
VS
10899 'extern "C" void std::exit (int) throw (); using std::exit;' \
10900 'extern "C" void std::exit (int); using std::exit;' \
10901 'extern "C" void exit (int) throw ();' \
10902 'extern "C" void exit (int);' \
10903 'void exit (int);'
10904do
10905 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
0f87e84c 10911$ac_declaration
32ddf007 10912#include <stdlib.h>
e6cc62c6
VS
10913int
10914main ()
10915{
10916exit (42);
10917 ;
10918 return 0;
10919}
10920_ACEOF
10921rm -f conftest.$ac_objext
10922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10923 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10924 ac_status=$?
32ddf007
VS
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
e6cc62c6
VS
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
e1293dcf 10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 :
10943else
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947continue
10948fi
32ddf007 10949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10950 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h. */
10956$ac_declaration
10957int
10958main ()
10959{
10960exit (42);
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext
10966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10967 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10968 ac_status=$?
32ddf007
VS
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
e6cc62c6
VS
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
e1293dcf 10974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; } &&
10980 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 break
10987else
10988 echo "$as_me: failed program was:" >&5
10989sed 's/^/| /' conftest.$ac_ext >&5
10990
10991fi
32ddf007 10992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10993done
10994rm -f conftest*
10995if test -n "$ac_declaration"; then
10996 echo '#ifdef __cplusplus' >>confdefs.h
10997 echo $ac_declaration >>confdefs.h
10998 echo '#endif' >>confdefs.h
10999fi
11000
11001else
11002 echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005fi
32ddf007 11006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11007ac_ext=c
11008ac_cpp='$CPP $CPPFLAGS'
11009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11011ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
11012
11013
e6cc62c6
VS
11014
11015ac_ext=c
11016ac_cpp='$CPP $CPPFLAGS'
11017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11019ac_compiler_gnu=$ac_cv_c_compiler_gnu
11020echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11021echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
11022# On Suns, sometimes $CPP names a directory.
11023if test -n "$CPP" && test -d "$CPP"; then
11024 CPP=
11025fi
11026if test -z "$CPP"; then
e6cc62c6
VS
11027 if test "${ac_cv_prog_CPP+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029else
11030 # Double quotes because CPP needs to be expanded
11031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11032 do
11033 ac_preproc_ok=false
11034for ac_c_preproc_warn_flag in '' yes
11035do
11036 # Use a header file that comes with gcc, so configuring glibc
11037 # with a fresh cross-compiler works.
11038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039 # <limits.h> exists even on freestanding compilers.
10f2d63a 11040 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
11041 # not just through cpp. "Syntax error" is here to catch this case.
11042 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048#ifdef __STDC__
11049# include <limits.h>
11050#else
11051# include <assert.h>
11052#endif
32ddf007 11053 Syntax error
e6cc62c6
VS
11054_ACEOF
11055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11057 ac_status=$?
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } >/dev/null; then
11063 if test -s conftest.err; then
11064 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11066 else
11067 ac_cpp_err=
11068 fi
10f2d63a 11069else
e6cc62c6
VS
11070 ac_cpp_err=yes
11071fi
11072if test -z "$ac_cpp_err"; then
a0b9e27f 11073 :
247f5006 11074else
e6cc62c6
VS
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 # Broken: fails on valid input.
11079continue
11080fi
11081rm -f conftest.err conftest.$ac_ext
11082
11083 # OK, works on sane cases. Now check whether non-existent headers
11084 # can be detected and how.
11085 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11086/* confdefs.h. */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
11090/* end confdefs.h. */
11091#include <ac_nonexistent.h>
11092_ACEOF
11093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } >/dev/null; then
11101 if test -s conftest.err; then
11102 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11104 else
11105 ac_cpp_err=
11106 fi
10f2d63a 11107else
e6cc62c6 11108 ac_cpp_err=yes
579d8138 11109fi
e6cc62c6
VS
11110if test -z "$ac_cpp_err"; then
11111 # Broken: success on invalid input.
11112continue
11113else
11114 echo "$as_me: failed program was:" >&5
11115sed 's/^/| /' conftest.$ac_ext >&5
11116
11117 # Passes both tests.
11118ac_preproc_ok=:
11119break
52127426 11120fi
e6cc62c6
VS
11121rm -f conftest.err conftest.$ac_ext
11122
11123done
11124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11125rm -f conftest.err conftest.$ac_ext
11126if $ac_preproc_ok; then
11127 break
8284b0c5 11128fi
e6cc62c6
VS
11129
11130 done
11131 ac_cv_prog_CPP=$CPP
11132
11133fi
11134 CPP=$ac_cv_prog_CPP
11135else
11136 ac_cv_prog_CPP=$CPP
11137fi
11138echo "$as_me:$LINENO: result: $CPP" >&5
11139echo "${ECHO_T}$CPP" >&6
11140ac_preproc_ok=false
11141for ac_c_preproc_warn_flag in '' yes
11142do
11143 # Use a header file that comes with gcc, so configuring glibc
11144 # with a fresh cross-compiler works.
11145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 # <limits.h> exists even on freestanding compilers.
11147 # On the NeXT, cc -E runs the code through the compiler's parser,
11148 # not just through cpp. "Syntax error" is here to catch this case.
11149 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155#ifdef __STDC__
11156# include <limits.h>
11157#else
11158# include <assert.h>
11159#endif
32ddf007 11160 Syntax error
e6cc62c6
VS
11161_ACEOF
11162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } >/dev/null; then
11170 if test -s conftest.err; then
11171 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11173 else
11174 ac_cpp_err=
11175 fi
11176else
11177 ac_cpp_err=yes
11178fi
11179if test -z "$ac_cpp_err"; then
11180 :
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185 # Broken: fails on valid input.
11186continue
11187fi
11188rm -f conftest.err conftest.$ac_ext
11189
11190 # OK, works on sane cases. Now check whether non-existent headers
11191 # can be detected and how.
11192 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11193/* confdefs.h. */
11194_ACEOF
11195cat confdefs.h >>conftest.$ac_ext
11196cat >>conftest.$ac_ext <<_ACEOF
11197/* end confdefs.h. */
11198#include <ac_nonexistent.h>
11199_ACEOF
11200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } >/dev/null; then
11208 if test -s conftest.err; then
11209 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11211 else
11212 ac_cpp_err=
11213 fi
11214else
11215 ac_cpp_err=yes
11216fi
11217if test -z "$ac_cpp_err"; then
11218 # Broken: success on invalid input.
11219continue
11220else
11221 echo "$as_me: failed program was:" >&5
11222sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 # Passes both tests.
11225ac_preproc_ok=:
11226break
a0b9e27f 11227fi
e6cc62c6
VS
11228rm -f conftest.err conftest.$ac_ext
11229
11230done
11231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11232rm -f conftest.err conftest.$ac_ext
11233if $ac_preproc_ok; then
11234 :
11235else
11236 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11237See \`config.log' for more details." >&5
11238echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11239See \`config.log' for more details." >&2;}
11240 { (exit 1); exit 1; }; }
11241fi
11242
11243ac_ext=c
11244ac_cpp='$CPP $CPPFLAGS'
11245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11247ac_compiler_gnu=$ac_cv_c_compiler_gnu
11248
11249
11250echo "$as_me:$LINENO: checking for egrep" >&5
11251echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11252if test "${ac_cv_prog_egrep+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11254else
e6cc62c6
VS
11255 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11256 then ac_cv_prog_egrep='grep -E'
11257 else ac_cv_prog_egrep='egrep'
11258 fi
10f2d63a 11259fi
e6cc62c6
VS
11260echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11261echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11262 EGREP=$ac_cv_prog_egrep
11263
10f2d63a 11264
e6cc62c6
VS
11265if test $ac_cv_c_compiler_gnu = yes; then
11266 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11267echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11268if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11270else
11271 ac_pattern="Autoconf.*'x'"
e6cc62c6 11272 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
10f2d63a
VZ
11278#include <sgtty.h>
11279Autoconf TIOCGETP
e6cc62c6 11280_ACEOF
10f2d63a 11281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11282 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11283 ac_cv_prog_gcc_traditional=yes
11284else
10f2d63a
VZ
11285 ac_cv_prog_gcc_traditional=no
11286fi
11287rm -f conftest*
11288
8284b0c5 11289
10f2d63a 11290 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11291 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
10f2d63a
VZ
11297#include <termio.h>
11298Autoconf TCGETA
e6cc62c6 11299_ACEOF
10f2d63a 11300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11301 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11302 ac_cv_prog_gcc_traditional=yes
11303fi
11304rm -f conftest*
11305
11306 fi
11307fi
e6cc62c6
VS
11308echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11309echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11310 if test $ac_cv_prog_gcc_traditional = yes; then
11311 CC="$CC -traditional"
11312 fi
11313fi
11314
8284b0c5
MB
11315
11316
e6cc62c6
VS
11317
11318ac_ext=cc
1e487827 11319ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11323
698dcdb6 11324
ec603395 11325CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11326ac_ext=cc
11327ac_cpp='$CXXCPP $CPPFLAGS'
11328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11331if test -n "$ac_tool_prefix"; then
11332 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11333 do
11334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11336echo "$as_me:$LINENO: checking for $ac_word" >&5
11337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11338if test "${ac_cv_prog_CXX+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11340else
11341 if test -n "$CXX"; then
11342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11343else
e6cc62c6
VS
11344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345for as_dir in $PATH
11346do
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 break 2
11354 fi
11355done
11356done
11357
10f2d63a
VZ
11358fi
11359fi
e6cc62c6 11360CXX=$ac_cv_prog_CXX
10f2d63a 11361if test -n "$CXX"; then
e6cc62c6
VS
11362 echo "$as_me:$LINENO: result: $CXX" >&5
11363echo "${ECHO_T}$CXX" >&6
10f2d63a 11364else
e6cc62c6
VS
11365 echo "$as_me:$LINENO: result: no" >&5
11366echo "${ECHO_T}no" >&6
10f2d63a
VZ
11367fi
11368
e6cc62c6
VS
11369 test -n "$CXX" && break
11370 done
11371fi
11372if test -z "$CXX"; then
11373 ac_ct_CXX=$CXX
11374 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11375do
11376 # Extract the first word of "$ac_prog", so it can be a program name with args.
11377set dummy $ac_prog; ac_word=$2
11378echo "$as_me:$LINENO: checking for $ac_word" >&5
11379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11380if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382else
11383 if test -n "$ac_ct_CXX"; then
11384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11385else
11386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387for as_dir in $PATH
11388do
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11393 ac_cv_prog_ac_ct_CXX="$ac_prog"
11394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11396 fi
11397done
10f2d63a 11398done
a0b9e27f 11399
8284b0c5 11400fi
a0b9e27f 11401fi
e6cc62c6
VS
11402ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11403if test -n "$ac_ct_CXX"; then
11404 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11405echo "${ECHO_T}$ac_ct_CXX" >&6
11406else
11407 echo "$as_me:$LINENO: result: no" >&5
11408echo "${ECHO_T}no" >&6
a0b9e27f 11409fi
10f2d63a 11410
e6cc62c6
VS
11411 test -n "$ac_ct_CXX" && break
11412done
11413test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11414
11415 CXX=$ac_ct_CXX
11416fi
11417
11418
11419# Provide some information about the compiler.
11420echo "$as_me:$LINENO:" \
11421 "checking for C++ compiler version" >&5
11422ac_compiler=`set X $ac_compile; echo $2`
11423{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11424 (eval $ac_compiler --version </dev/null >&5) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }
11428{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11429 (eval $ac_compiler -v </dev/null >&5) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }
11433{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11434 (eval $ac_compiler -V </dev/null >&5) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }
11438
11439echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11440echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11441if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450
11451int
11452main ()
11453{
11454#ifndef __GNUC__
11455 choke me
11456#endif
10f2d63a 11457
e6cc62c6
VS
11458 ;
11459 return 0;
11460}
11461_ACEOF
11462rm -f conftest.$ac_objext
11463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11464 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11465 ac_status=$?
32ddf007
VS
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
e6cc62c6
VS
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
e1293dcf 11471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_compiler_gnu=yes
11484else
11485 echo "$as_me: failed program was:" >&5
11486sed 's/^/| /' conftest.$ac_ext >&5
11487
11488ac_compiler_gnu=no
11489fi
32ddf007 11490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11491ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11492
11493fi
11494echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11495echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11496GXX=`test $ac_compiler_gnu = yes && echo yes`
11497ac_test_CXXFLAGS=${CXXFLAGS+set}
11498ac_save_CXXFLAGS=$CXXFLAGS
11499CXXFLAGS="-g"
11500echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11501echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11502if test "${ac_cv_prog_cxx_g+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11504else
11505 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
11511
11512int
11513main ()
11514{
f09359cf 11515
e6cc62c6
VS
11516 ;
11517 return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext
11521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11522 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11523 ac_status=$?
32ddf007
VS
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
e6cc62c6
VS
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
e1293dcf 11529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
10f2d63a
VZ
11541 ac_cv_prog_cxx_g=yes
11542else
e6cc62c6
VS
11543 echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11545
e6cc62c6 11546ac_cv_prog_cxx_g=no
10f2d63a 11547fi
32ddf007 11548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11549fi
11550echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11551echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11552if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11553 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11554elif test $ac_cv_prog_cxx_g = yes; then
11555 if test "$GXX" = yes; then
10f2d63a
VZ
11556 CXXFLAGS="-g -O2"
11557 else
f09359cf 11558 CXXFLAGS="-g"
10f2d63a 11559 fi
5c0a20c3 11560else
f09359cf
VS
11561 if test "$GXX" = yes; then
11562 CXXFLAGS="-O2"
11563 else
11564 CXXFLAGS=
11565 fi
10f2d63a 11566fi
e6cc62c6 11567for ac_declaration in \
32ddf007 11568 '' \
e6cc62c6
VS
11569 'extern "C" void std::exit (int) throw (); using std::exit;' \
11570 'extern "C" void std::exit (int); using std::exit;' \
11571 'extern "C" void exit (int) throw ();' \
11572 'extern "C" void exit (int);' \
11573 'void exit (int);'
11574do
11575 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
0f87e84c 11581$ac_declaration
32ddf007 11582#include <stdlib.h>
e6cc62c6
VS
11583int
11584main ()
11585{
11586exit (42);
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591rm -f conftest.$ac_objext
11592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11593 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11594 ac_status=$?
32ddf007
VS
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
e6cc62c6
VS
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
e1293dcf 11600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 :
11613else
11614 echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617continue
11618fi
32ddf007 11619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11620 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
11626$ac_declaration
11627int
11628main ()
11629{
11630exit (42);
11631 ;
11632 return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext
11636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11637 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11638 ac_status=$?
32ddf007
VS
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
e6cc62c6
VS
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
e1293dcf 11644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 break
11657else
11658 echo "$as_me: failed program was:" >&5
11659sed 's/^/| /' conftest.$ac_ext >&5
11660
11661fi
32ddf007 11662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11663done
11664rm -f conftest*
11665if test -n "$ac_declaration"; then
11666 echo '#ifdef __cplusplus' >>confdefs.h
11667 echo $ac_declaration >>confdefs.h
11668 echo '#endif' >>confdefs.h
11669fi
11670
11671ac_ext=cc
11672ac_cpp='$CXXCPP $CPPFLAGS'
11673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11676
11677
10f2d63a 11678ac_ext=c
10f2d63a 11679ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11683
11684
243f8ae5
VS
11685echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11686echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11687GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11688if test "$GCC" = "yes" ; then
11689 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11690 sed -n '1,/End of search list\./p' | \
11691 grep '^ */usr/local/include$' 2>&1 /dev/null \
11692 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11693fi
11694echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11695echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11696
e6cc62c6
VS
11697if test -n "$ac_tool_prefix"; then
11698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11699set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11700echo "$as_me:$LINENO: checking for $ac_word" >&5
11701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11702if test "${ac_cv_prog_RANLIB+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11704else
11705 if test -n "$RANLIB"; then
11706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11707else
e6cc62c6
VS
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719done
11720done
11721
10f2d63a
VZ
11722fi
11723fi
e6cc62c6 11724RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11725if test -n "$RANLIB"; then
e6cc62c6
VS
11726 echo "$as_me:$LINENO: result: $RANLIB" >&5
11727echo "${ECHO_T}$RANLIB" >&6
11728else
11729 echo "$as_me:$LINENO: result: no" >&5
11730echo "${ECHO_T}no" >&6
11731fi
11732
11733fi
11734if test -z "$ac_cv_prog_RANLIB"; then
11735 ac_ct_RANLIB=$RANLIB
11736 # Extract the first word of "ranlib", so it can be a program name with args.
11737set dummy ranlib; ac_word=$2
11738echo "$as_me:$LINENO: checking for $ac_word" >&5
11739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11740if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11742else
e6cc62c6
VS
11743 if test -n "$ac_ct_RANLIB"; then
11744 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11745else
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_ac_ct_RANLIB="ranlib"
11754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11756 fi
11757done
11758done
11759
11760 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11761fi
11762fi
11763ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11764if test -n "$ac_ct_RANLIB"; then
11765 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11766echo "${ECHO_T}$ac_ct_RANLIB" >&6
11767else
11768 echo "$as_me:$LINENO: result: no" >&5
11769echo "${ECHO_T}no" >&6
11770fi
11771
11772 RANLIB=$ac_ct_RANLIB
11773else
11774 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11775fi
11776
10f2d63a
VZ
11777
11778# Extract the first word of "ar", so it can be a program name with args.
11779set dummy ar; ac_word=$2
e6cc62c6
VS
11780echo "$as_me:$LINENO: checking for $ac_word" >&5
11781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11782if test "${ac_cv_prog_AR+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11784else
11785 if test -n "$AR"; then
11786 ac_cv_prog_AR="$AR" # Let the user override the test.
11787else
e6cc62c6
VS
11788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $PATH
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_AR="ar"
11796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799done
11800done
11801
10f2d63a
VZ
11802fi
11803fi
e6cc62c6 11804AR=$ac_cv_prog_AR
10f2d63a 11805if test -n "$AR"; then
e6cc62c6
VS
11806 echo "$as_me:$LINENO: result: $AR" >&5
11807echo "${ECHO_T}$AR" >&6
10f2d63a 11808else
e6cc62c6
VS
11809 echo "$as_me:$LINENO: result: no" >&5
11810echo "${ECHO_T}no" >&6
10f2d63a
VZ
11811fi
11812
911740e7
VS
11813if test "x$AR" = "x" ; then
11814 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11815echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11816 { (exit 1); exit 1; }; }
11817fi
8284b0c5 11818
6054113a 11819# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11820# so one script is as good as another. But avoid the broken or
11821# incompatible versions:
11822# SysV /etc/install, /usr/sbin/install
11823# SunOS /usr/etc/install
11824# IRIX /sbin/install
11825# AIX /bin/install
e6cc62c6 11826# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11827# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11828# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11829# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32ddf007 11830# OS/2's system install, which has a completely different semantic
10f2d63a 11831# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11832echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11833echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11834if test -z "$INSTALL"; then
e6cc62c6
VS
11835if test "${ac_cv_path_install+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 # Account for people who put trailing slashes in PATH elements.
11844case $as_dir/ in
11845 ./ | .// | /cC/* | \
11846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32ddf007 11847 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11848 /usr/ucb/* ) ;;
11849 *)
11850 # OSF1 and SCO ODT 3.0 have their own names for install.
11851 # Don't use installbsd from OSF since it installs stuff as root
11852 # by default.
11853 for ac_prog in ginstall scoinst install; do
11854 for ac_exec_ext in '' $ac_executable_extensions; do
32ddf007
VS
11855 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11856 if test $ac_prog = install &&
11857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11858 # AIX install. It has an incompatible calling convention.
11859 :
11860 elif test $ac_prog = install &&
11861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11862 # program-specific install script used by HP pwplus--don't use.
11863 :
11864 else
11865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11866 break 3
11867 fi
11868 fi
10f2d63a 11869 done
e6cc62c6
VS
11870 done
11871 ;;
11872esac
11873done
11874
10f2d63a
VZ
11875
11876fi
11877 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11878 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11879 else
11880 # As a last resort, use the slow shell script. We don't cache a
11881 # path for INSTALL within a source directory, because that will
11882 # break other packages using the cache if that directory is
11883 # removed, or if the path is relative.
e6cc62c6 11884 INSTALL=$ac_install_sh
10f2d63a
VZ
11885 fi
11886fi
e6cc62c6
VS
11887echo "$as_me:$LINENO: result: $INSTALL" >&5
11888echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11889
11890# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11891# It thinks the first close brace ends the variable substitution.
11892test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11893
e6cc62c6 11894test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11895
10f2d63a
VZ
11896test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11897
8284b0c5 11898
1d1b75ac
VZ
11899case ${INSTALL} in
11900 /* ) # Absolute
11901 ;;
4f5a7f74
VZ
11902 ?:* ) # Drive letter, considered as absolute.
11903 ;;
3bd8fb5f 11904 *)
1d1b75ac
VZ
11905 INSTALL=`pwd`/${INSTALL} ;;
11906esac
11907
4f5a7f74
VZ
11908case ${host} in
11909 *-hp-hpux* )
11910 INSTALL_DIR="mkdir"
11911 ;;
11912
11913 *) INSTALL_DIR="$INSTALL -d"
11914 ;;
11915esac
11916
8284b0c5 11917
6054113a
GD
11918case "${host}" in
11919
b5853384 11920 powerpc-*-darwin* )
eb99ae0b
GD
11921 INSTALL_PROGRAM="cp -fp"
11922 INSTALL_DATA="cp -fp"
6054113a
GD
11923 ;;
11924 *)
11925 ;;
d6853540 11926esac
698dcdb6 11927
10f2d63a
VZ
11928# Extract the first word of "strip", so it can be a program name with args.
11929set dummy strip; ac_word=$2
e6cc62c6
VS
11930echo "$as_me:$LINENO: checking for $ac_word" >&5
11931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11932if test "${ac_cv_prog_STRIP+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11934else
11935 if test -n "$STRIP"; then
11936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11937else
e6cc62c6
VS
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11945 ac_cv_prog_STRIP="strip"
11946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11948 fi
11949done
11950done
11951
10f2d63a
VZ
11952 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11953fi
11954fi
e6cc62c6 11955STRIP=$ac_cv_prog_STRIP
10f2d63a 11956if test -n "$STRIP"; then
e6cc62c6
VS
11957 echo "$as_me:$LINENO: result: $STRIP" >&5
11958echo "${ECHO_T}$STRIP" >&6
10f2d63a 11959else
e6cc62c6
VS
11960 echo "$as_me:$LINENO: result: no" >&5
11961echo "${ECHO_T}no" >&6
10f2d63a
VZ
11962fi
11963
5c6fa7d2 11964
e6cc62c6
VS
11965echo "$as_me:$LINENO: checking if make is GNU make" >&5
11966echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11967if test "${wx_cv_prog_makeisgnu+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11969else
e6cc62c6 11970
414eab6d 11971 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11972 egrep -s GNU > /dev/null); then
414eab6d
VZ
11973 wx_cv_prog_makeisgnu="yes"
11974 else
11975 wx_cv_prog_makeisgnu="no"
11976 fi
11977
11978fi
e6cc62c6
VS
11979echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11980echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11981
11982if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11983 IF_GNU_MAKE=""
11984else
11985 IF_GNU_MAKE="#"
11986fi
11987
8284b0c5
MB
11988
11989
414eab6d 11990if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11991echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11992echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11993if test "${wx_cv_prog_makevpath+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11995else
e6cc62c6 11996
10f2d63a
VZ
11997cat - << EOF > confMake
11998check : file
11999 cp \$? \$@
12000 cp \$? final_file
12001EOF
12002
12003if test ! -d sub ; then
12004 mkdir sub
12005fi
12006echo dummy > sub/file
f6bcfd97 12007${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
12008RESULT=$?
12009rm -f sub/file check final_file confMake
12010rmdir sub
12011if test "$RESULT" = 0; then
04e7a216 12012 wx_cv_prog_makevpath="yes"
10f2d63a 12013else
04e7a216
VZ
12014 wx_cv_prog_makevpath="no"
12015fi
12016
12017fi
e6cc62c6
VS
12018echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12019echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
12020
12021if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 12022{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
12023You need a make-utility that is able to use the variable
12024VPATH correctly.
12025If your version of make does not support VPATH correctly,
12026please install GNU-make (possibly as gmake), and start
12027configure with the following command:
12028export MAKE=gmake; ./configure for sh-type shells
12029setenv MAKE gmake; ./configure for csh-type shells
12030Also please do remember to use gmake in this case every time
12031you are trying to compile.
e6cc62c6
VS
12032" >&5
12033echo "$as_me: error:
12034You need a make-utility that is able to use the variable
12035VPATH correctly.
12036If your version of make does not support VPATH correctly,
12037please install GNU-make (possibly as gmake), and start
12038configure with the following command:
12039export MAKE=gmake; ./configure for sh-type shells
12040setenv MAKE gmake; ./configure for csh-type shells
12041Also please do remember to use gmake in this case every time
12042you are trying to compile.
12043" >&2;}
12044 { (exit 1); exit 1; }; }
12045fi fi
e6cc62c6
VS
12046echo "$as_me:$LINENO: checking whether ln -s works" >&5
12047echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12048LN_S=$as_ln_s
12049if test "$LN_S" = "ln -s"; then
12050 echo "$as_me:$LINENO: result: yes" >&5
12051echo "${ECHO_T}yes" >&6
10f2d63a 12052else
e6cc62c6
VS
12053 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12054echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 12055fi
5c6fa7d2 12056
247f5006 12057
243f8ae5 12058
2b5f62a0
VZ
12059case "${host}" in
12060 *-pc-os2_emx | *-pc-os2-emx )
243f8ae5 12061 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
12062 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12063echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12064if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 12066else
e6cc62c6 12067 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 12068LIBS="-lcExt $LIBS"
e6cc62c6 12069cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12070/* confdefs.h. */
12071_ACEOF
12072cat confdefs.h >>conftest.$ac_ext
12073cat >>conftest.$ac_ext <<_ACEOF
12074/* end confdefs.h. */
12075
2b5f62a0 12076/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12077#ifdef __cplusplus
12078extern "C"
12079#endif
2b5f62a0 12080/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12081 builtin and then its argument prototype would still apply. */
12082char drand48 ();
12083int
12084main ()
12085{
12086drand48 ();
12087 ;
12088 return 0;
12089}
12090_ACEOF
12091rm -f conftest.$ac_objext conftest$ac_exeext
12092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12093 (eval $ac_link) 2>conftest.er1
e6cc62c6 12094 ac_status=$?
32ddf007
VS
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
e6cc62c6
VS
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
e1293dcf 12100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_lib_cExt_drand48=yes
12113else
12114 echo "$as_me: failed program was:" >&5
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
12117ac_cv_lib_cExt_drand48=no
12118fi
32ddf007
VS
12119rm -f conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
12121LIBS=$ac_check_lib_save_LIBS
12122fi
12123echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12124echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12125if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 12126 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
12127fi
12128
12129 else
12130 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12131 fi
32ddf007
VS
12132 echo "$as_me:$LINENO: checking for gcc version" >&5
12133echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12134if test "${wx_cv_gccversion+set}" = set; then
73d617c9
MB
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136else
12137
12138 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
3527f29c 12144
73d617c9
MB
12145int
12146main ()
12147{
12148
12149 #if (__GNUC__ < 3)
12150 #error old gcc
12151 #endif
12152
12153 ;
12154 return 0;
12155}
12156_ACEOF
12157rm -f conftest.$ac_objext
12158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007
VS
12159 (eval $ac_compile) 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
e1293dcf 12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178
12179 cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185
12186int
12187main ()
12188{
12189
12190 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12191 #error intermediate gcc
12192 #endif
12193
12194 ;
12195 return 0;
12196}
12197_ACEOF
12198rm -f conftest.$ac_objext
12199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>conftest.er1
73d617c9 12201 ac_status=$?
32ddf007
VS
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
73d617c9
MB
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
e1293dcf 12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219
32ddf007 12220 wx_cv_gccversion=Innotek
73d617c9
MB
12221
12222else
12223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
12226
32ddf007 12227 wx_cv_gccversion=3
73d617c9
MB
12228
12229
12230fi
32ddf007
VS
12231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232
12233else
12234 echo "$as_me: failed program was:" >&5
12235sed 's/^/| /' conftest.$ac_ext >&5
12236
12237
12238 wx_cv_gccversion=2
12239
73d617c9
MB
12240
12241fi
32ddf007
VS
12242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12243
12244fi
12245echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12246echo "${ECHO_T}$wx_cv_gccversion" >&6
12247 if test "$wx_cv_gccversion" = "2"; then
73d617c9 12248 LIBS="$LIBS -lstdcpp"
32ddf007 12249 LDFLAGS="$LDFLAGS -Zsysv-signals"
73d617c9 12250 else
32ddf007
VS
12251 if test "$wx_cv_gccversion" = "3"; then
12252 LIBS="$LIBS -lstdcxx"
12253 LDFLAGS="$LDFLAGS -Zsysv-signals"
12254 else
12255 LIBS="$LIBS -lstdc++"
12256 fi
73d617c9 12257 fi
243f8ae5
VS
12258 ;;
12259 *)
a0b9e27f 12260
1c2d1459
VZ
12261
12262
243f8ae5 12263 ac_ext=cc
1c2d1459
VZ
12264ac_cpp='$CXXCPP $CPPFLAGS'
12265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12268
12269
12270
12271echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12272echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12273if test "${ac_cv_string_strcasecmp+set}" = set; then
01aa5863
VS
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275else
1c2d1459 12276
243f8ae5 12277 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12278/* confdefs.h. */
12279_ACEOF
12280cat confdefs.h >>conftest.$ac_ext
12281cat >>conftest.$ac_ext <<_ACEOF
12282/* end confdefs.h. */
12283
243f8ae5 12284 #include <string.h>
1c2d1459
VZ
12285
12286int
12287main ()
12288{
12289
243f8ae5 12290 strcasecmp("foo", "bar");
1c2d1459
VZ
12291
12292 ;
12293 return 0;
12294}
12295_ACEOF
12296rm -f conftest.$ac_objext conftest$ac_exeext
12297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12298 (eval $ac_link) 2>conftest.er1
1c2d1459 12299 ac_status=$?
32ddf007
VS
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
1c2d1459
VZ
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
e1293dcf 12305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_string_strcasecmp=yes
12318else
12319 echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322ac_cv_string_strcasecmp=no
12323
12324fi
32ddf007
VS
12325rm -f conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
1c2d1459
VZ
12327
12328fi
12329echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12330echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12331
243f8ae5
VS
12332 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12333 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12334#define HAVE_STRCASECMP_IN_STRING_H 1
12335_ACEOF
12336
243f8ae5
VS
12337 else
12338 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
1c2d1459
VZ
12339echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12340if test "${ac_cv_strings_strcasecmp+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343
243f8ae5 12344 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h. */
12350
243f8ae5 12351 #include <strings.h>
1c2d1459
VZ
12352
12353int
12354main ()
12355{
12356
243f8ae5 12357 strcasecmp("foo", "bar");
1c2d1459
VZ
12358
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363rm -f conftest.$ac_objext conftest$ac_exeext
12364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12365 (eval $ac_link) 2>conftest.er1
1c2d1459 12366 ac_status=$?
32ddf007
VS
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
1c2d1459
VZ
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
e1293dcf 12372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_strings_strcasecmp=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
12389ac_cv_strings_strcasecmp=no
12390
12391fi
32ddf007
VS
12392rm -f conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
1c2d1459 12394
01aa5863 12395fi
1c2d1459
VZ
12396echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12397echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12398
243f8ae5
VS
12399 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12400 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12401#define HAVE_STRCASECMP_IN_STRINGS_H 1
12402_ACEOF
12403
243f8ae5
VS
12404 else
12405 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
1c2d1459
VZ
12406echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12407 { (exit 1); exit 1; }; }
243f8ae5
VS
12408 fi
12409 fi
1c2d1459 12410
243f8ae5 12411 ac_ext=c
1c2d1459
VZ
12412ac_cpp='$CPP $CPPFLAGS'
12413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12415ac_compiler_gnu=$ac_cv_c_compiler_gnu
12416
243f8ae5
VS
12417 ;;
12418esac
12419
1c2d1459 12420
01aa5863 12421echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12422echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12423if test "${ac_cv_header_stdc+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425else
12426 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432#include <stdlib.h>
12433#include <stdarg.h>
12434#include <string.h>
12435#include <float.h>
247f5006 12436
e6cc62c6
VS
12437int
12438main ()
12439{
90dd450c 12440
e6cc62c6
VS
12441 ;
12442 return 0;
12443}
12444_ACEOF
12445rm -f conftest.$ac_objext
12446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12447 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12448 ac_status=$?
32ddf007
VS
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
e6cc62c6
VS
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
e1293dcf 12454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_header_stdc=yes
8284b0c5 12467else
e6cc62c6
VS
12468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471ac_cv_header_stdc=no
21d1c967 12472fi
32ddf007 12473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12474
e6cc62c6
VS
12475if test $ac_cv_header_stdc = yes; then
12476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12477 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483#include <string.h>
12484
12485_ACEOF
12486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12487 $EGREP "memchr" >/dev/null 2>&1; then
12488 :
12489else
12490 ac_cv_header_stdc=no
3a922bb4 12491fi
a0b9e27f 12492rm -f conftest*
e6cc62c6 12493
90dd450c 12494fi
e6cc62c6
VS
12495
12496if test $ac_cv_header_stdc = yes; then
12497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12498 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12499/* confdefs.h. */
12500_ACEOF
12501cat confdefs.h >>conftest.$ac_ext
12502cat >>conftest.$ac_ext <<_ACEOF
12503/* end confdefs.h. */
12504#include <stdlib.h>
12505
12506_ACEOF
12507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12508 $EGREP "free" >/dev/null 2>&1; then
12509 :
a0b9e27f 12510else
e6cc62c6 12511 ac_cv_header_stdc=no
21d1c967 12512fi
e6cc62c6 12513rm -f conftest*
247f5006
VZ
12514
12515fi
e6cc62c6
VS
12516
12517if test $ac_cv_header_stdc = yes; then
12518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12519 if test "$cross_compiling" = yes; then
12520 :
12521else
12522 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528#include <ctype.h>
12529#if ((' ' & 0x0FF) == 0x020)
12530# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12531# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12532#else
12533# define ISLOWER(c) \
32ddf007
VS
12534 (('a' <= (c) && (c) <= 'i') \
12535 || ('j' <= (c) && (c) <= 'r') \
12536 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12537# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12538#endif
12539
12540#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12541int
12542main ()
12543{
12544 int i;
12545 for (i = 0; i < 256; i++)
12546 if (XOR (islower (i), ISLOWER (i))
32ddf007 12547 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12548 exit(2);
12549 exit (0);
12550}
12551_ACEOF
12552rm -f conftest$ac_exeext
12553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554 (eval $ac_link) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 :
a0b9e27f 12564else
e6cc62c6
VS
12565 echo "$as_me: program exited with status $ac_status" >&5
12566echo "$as_me: failed program was:" >&5
12567sed 's/^/| /' conftest.$ac_ext >&5
12568
12569( exit $ac_status )
12570ac_cv_header_stdc=no
12571fi
32ddf007 12572rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12573fi
12574fi
12575fi
12576echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12577echo "${ECHO_T}$ac_cv_header_stdc" >&6
12578if test $ac_cv_header_stdc = yes; then
12579
12580cat >>confdefs.h <<\_ACEOF
12581#define STDC_HEADERS 1
12582_ACEOF
12583
a0b9e27f 12584fi
e6cc62c6
VS
12585
12586# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
32ddf007 12597 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12598do
12599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12600echo "$as_me:$LINENO: checking for $ac_header" >&5
12601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12602if eval "test \"\${$as_ac_Header+set}\" = set"; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604else
12605 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
12610/* end confdefs.h. */
12611$ac_includes_default
12612
12613#include <$ac_header>
12614_ACEOF
12615rm -f conftest.$ac_objext
12616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12617 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12618 ac_status=$?
32ddf007
VS
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
e6cc62c6
VS
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
e1293dcf 12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 eval "$as_ac_Header=yes"
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641eval "$as_ac_Header=no"
12642fi
32ddf007 12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12644fi
12645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12647if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650_ACEOF
12651
12652fi
12653
a0b9e27f 12654done
90dd450c 12655
e6cc62c6
VS
12656
12657
e6cc62c6
VS
12658for ac_header in stdlib.h
12659do
12660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12661if eval "test \"\${$as_ac_Header+set}\" = set"; then
12662 echo "$as_me:$LINENO: checking for $ac_header" >&5
12663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666fi
12667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12669else
12670 # Is the header compilable?
12671echo "$as_me:$LINENO: checking $ac_header usability" >&5
12672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12673cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
12679$ac_includes_default
12680#include <$ac_header>
12681_ACEOF
12682rm -f conftest.$ac_objext
12683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12684 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12685 ac_status=$?
32ddf007
VS
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
e6cc62c6
VS
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
e1293dcf 12691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler=yes
12704else
12705 echo "$as_me: failed program was:" >&5
12706sed 's/^/| /' conftest.$ac_ext >&5
12707
12708ac_header_compiler=no
12709fi
32ddf007 12710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712echo "${ECHO_T}$ac_header_compiler" >&6
12713
12714# Is the header present?
12715echo "$as_me:$LINENO: checking $ac_header presence" >&5
12716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12717cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12718/* confdefs.h. */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h. */
12723#include <$ac_header>
12724_ACEOF
12725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev/null; then
12733 if test -s conftest.err; then
12734 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 12735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12736 else
12737 ac_cpp_err=
12738 fi
12739else
12740 ac_cpp_err=yes
12741fi
12742if test -z "$ac_cpp_err"; then
12743 ac_header_preproc=yes
12744else
12745 echo "$as_me: failed program was:" >&5
12746sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 ac_header_preproc=no
12749fi
12750rm -f conftest.err conftest.$ac_ext
12751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752echo "${ECHO_T}$ac_header_preproc" >&6
12753
12754# So? What about this header?
32ddf007
VS
12755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12756 yes:no: )
e6cc62c6
VS
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
12759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12761 ac_header_preproc=yes
e6cc62c6 12762 ;;
32ddf007 12763 no:yes:* )
e6cc62c6
VS
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12776 (
12777 cat <<\_ASBOX
32ddf007
VS
12778## ----------------------------------------- ##
12779## Report this to wx-dev@lists.wxwindows.org ##
12780## ----------------------------------------- ##
e6cc62c6
VS
12781_ASBOX
12782 ) |
12783 sed "s/^/$as_me: WARNING: /" >&2
12784 ;;
12785esac
12786echo "$as_me:$LINENO: checking for $ac_header" >&5
12787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12788if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12790else
32ddf007 12791 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12792fi
12793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12795
21d1c967 12796fi
e6cc62c6
VS
12797if test `eval echo '${'$as_ac_Header'}'` = yes; then
12798 cat >>confdefs.h <<_ACEOF
12799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12800_ACEOF
12801
12802fi
12803
21d1c967 12804done
4f14bcd8 12805
5c6fa7d2 12806
e6cc62c6 12807for ac_header in malloc.h
21d1c967 12808do
e6cc62c6
VS
12809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12810if eval "test \"\${$as_ac_Header+set}\" = set"; then
12811 echo "$as_me:$LINENO: checking for $ac_header" >&5
12812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12813if eval "test \"\${$as_ac_Header+set}\" = set"; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815fi
12816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12818else
12819 # Is the header compilable?
12820echo "$as_me:$LINENO: checking $ac_header usability" >&5
12821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12822cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
12828$ac_includes_default
12829#include <$ac_header>
12830_ACEOF
12831rm -f conftest.$ac_objext
12832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12833 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12834 ac_status=$?
32ddf007
VS
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
e6cc62c6
VS
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
e1293dcf 12840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_header_compiler=yes
12853else
12854 echo "$as_me: failed program was:" >&5
12855sed 's/^/| /' conftest.$ac_ext >&5
12856
12857ac_header_compiler=no
12858fi
32ddf007 12859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12861echo "${ECHO_T}$ac_header_compiler" >&6
12862
12863# Is the header present?
12864echo "$as_me:$LINENO: checking $ac_header presence" >&5
12865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12866cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12867/* confdefs.h. */
12868_ACEOF
12869cat confdefs.h >>conftest.$ac_ext
12870cat >>conftest.$ac_ext <<_ACEOF
12871/* end confdefs.h. */
12872#include <$ac_header>
12873_ACEOF
12874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } >/dev/null; then
12882 if test -s conftest.err; then
12883 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 12884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12885 else
12886 ac_cpp_err=
12887 fi
12888else
12889 ac_cpp_err=yes
12890fi
12891if test -z "$ac_cpp_err"; then
12892 ac_header_preproc=yes
12893else
12894 echo "$as_me: failed program was:" >&5
12895sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_header_preproc=no
12898fi
12899rm -f conftest.err conftest.$ac_ext
12900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12901echo "${ECHO_T}$ac_header_preproc" >&6
12902
12903# So? What about this header?
32ddf007
VS
12904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12905 yes:no: )
e6cc62c6
VS
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12910 ac_header_preproc=yes
e6cc62c6 12911 ;;
32ddf007 12912 no:yes:* )
e6cc62c6
VS
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12925 (
12926 cat <<\_ASBOX
32ddf007
VS
12927## ----------------------------------------- ##
12928## Report this to wx-dev@lists.wxwindows.org ##
12929## ----------------------------------------- ##
e6cc62c6
VS
12930_ASBOX
12931 ) |
12932 sed "s/^/$as_me: WARNING: /" >&2
12933 ;;
12934esac
12935echo "$as_me:$LINENO: checking for $ac_header" >&5
12936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12937if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
32ddf007 12940 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12941fi
e6cc62c6
VS
12942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12944
21d1c967 12945fi
e6cc62c6
VS
12946if test `eval echo '${'$as_ac_Header'}'` = yes; then
12947 cat >>confdefs.h <<_ACEOF
12948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12949_ACEOF
12950
12951fi
12952
12953done
12954
12955
12956for ac_header in unistd.h
12957do
12958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12959if eval "test \"\${$as_ac_Header+set}\" = set"; then
12960 echo "$as_me:$LINENO: checking for $ac_header" >&5
12961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12962if eval "test \"\${$as_ac_Header+set}\" = set"; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964fi
12965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12967else
12968 # Is the header compilable?
12969echo "$as_me:$LINENO: checking $ac_header usability" >&5
12970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12971cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12972/* confdefs.h. */
12973_ACEOF
12974cat confdefs.h >>conftest.$ac_ext
12975cat >>conftest.$ac_ext <<_ACEOF
12976/* end confdefs.h. */
12977$ac_includes_default
12978#include <$ac_header>
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12982 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12983 ac_status=$?
32ddf007
VS
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
e6cc62c6
VS
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
e1293dcf 12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_header_compiler=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006ac_header_compiler=no
13007fi
32ddf007 13008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13010echo "${ECHO_T}$ac_header_compiler" >&6
13011
13012# Is the header present?
13013echo "$as_me:$LINENO: checking $ac_header presence" >&5
13014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13015cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021#include <$ac_header>
13022_ACEOF
13023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } >/dev/null; then
13031 if test -s conftest.err; then
13032 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13034 else
13035 ac_cpp_err=
13036 fi
a0b9e27f 13037else
e6cc62c6
VS
13038 ac_cpp_err=yes
13039fi
13040if test -z "$ac_cpp_err"; then
13041 ac_header_preproc=yes
13042else
13043 echo "$as_me: failed program was:" >&5
13044sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_header_preproc=no
13047fi
13048rm -f conftest.err conftest.$ac_ext
13049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13050echo "${ECHO_T}$ac_header_preproc" >&6
13051
13052# So? What about this header?
32ddf007
VS
13053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13054 yes:no: )
e6cc62c6
VS
13055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13059 ac_header_preproc=yes
e6cc62c6 13060 ;;
32ddf007 13061 no:yes:* )
e6cc62c6
VS
13062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13074 (
13075 cat <<\_ASBOX
32ddf007
VS
13076## ----------------------------------------- ##
13077## Report this to wx-dev@lists.wxwindows.org ##
13078## ----------------------------------------- ##
e6cc62c6
VS
13079_ASBOX
13080 ) |
13081 sed "s/^/$as_me: WARNING: /" >&2
13082 ;;
13083esac
13084echo "$as_me:$LINENO: checking for $ac_header" >&5
13085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13086if eval "test \"\${$as_ac_Header+set}\" = set"; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088else
32ddf007 13089 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13090fi
13091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13093
13094fi
13095if test `eval echo '${'$as_ac_Header'}'` = yes; then
13096 cat >>confdefs.h <<_ACEOF
13097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13098_ACEOF
13099
d4158b5d 13100fi
e6cc62c6 13101
21d1c967 13102done
f6bcfd97 13103
e6cc62c6
VS
13104
13105for ac_header in wchar.h
13106do
13107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13108if eval "test \"\${$as_ac_Header+set}\" = set"; then
13109 echo "$as_me:$LINENO: checking for $ac_header" >&5
13110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13111if eval "test \"\${$as_ac_Header+set}\" = set"; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113fi
13114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13116else
13117 # Is the header compilable?
13118echo "$as_me:$LINENO: checking $ac_header usability" >&5
13119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13120cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13121/* confdefs.h. */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h. */
13126$ac_includes_default
13127#include <$ac_header>
13128_ACEOF
13129rm -f conftest.$ac_objext
13130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13131 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13132 ac_status=$?
32ddf007
VS
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
e6cc62c6
VS
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
e1293dcf 13138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_header_compiler=yes
13151else
13152 echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
13155ac_header_compiler=no
13156fi
32ddf007 13157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159echo "${ECHO_T}$ac_header_compiler" >&6
13160
13161# Is the header present?
13162echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13164cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170#include <$ac_header>
13171_ACEOF
13172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } >/dev/null; then
13180 if test -s conftest.err; then
13181 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13183 else
13184 ac_cpp_err=
13185 fi
13186else
13187 ac_cpp_err=yes
13188fi
13189if test -z "$ac_cpp_err"; then
13190 ac_header_preproc=yes
13191else
13192 echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
13195 ac_header_preproc=no
13196fi
13197rm -f conftest.err conftest.$ac_ext
13198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13199echo "${ECHO_T}$ac_header_preproc" >&6
13200
13201# So? What about this header?
32ddf007
VS
13202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13203 yes:no: )
e6cc62c6
VS
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13208 ac_header_preproc=yes
e6cc62c6 13209 ;;
32ddf007 13210 no:yes:* )
e6cc62c6
VS
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13223 (
13224 cat <<\_ASBOX
32ddf007
VS
13225## ----------------------------------------- ##
13226## Report this to wx-dev@lists.wxwindows.org ##
13227## ----------------------------------------- ##
e6cc62c6
VS
13228_ASBOX
13229 ) |
13230 sed "s/^/$as_me: WARNING: /" >&2
13231 ;;
13232esac
13233echo "$as_me:$LINENO: checking for $ac_header" >&5
13234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13235if eval "test \"\${$as_ac_Header+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
32ddf007 13238 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13239fi
13240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13242
90dd450c 13243fi
e6cc62c6
VS
13244if test `eval echo '${'$as_ac_Header'}'` = yes; then
13245 cat >>confdefs.h <<_ACEOF
13246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247_ACEOF
13248
13249fi
13250
13251done
90dd450c 13252
e6cc62c6
VS
13253
13254if test "$ac_cv_header_wchar_h" != "yes"; then
13255
13256for ac_header in wcstr.h
21d1c967 13257do
e6cc62c6
VS
13258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13259if eval "test \"\${$as_ac_Header+set}\" = set"; then
13260 echo "$as_me:$LINENO: checking for $ac_header" >&5
13261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13262if eval "test \"\${$as_ac_Header+set}\" = set"; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264fi
13265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13267else
13268 # Is the header compilable?
13269echo "$as_me:$LINENO: checking $ac_header usability" >&5
13270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13271cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
13276/* end confdefs.h. */
13277$ac_includes_default
13278#include <$ac_header>
13279_ACEOF
13280rm -f conftest.$ac_objext
13281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13282 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13283 ac_status=$?
32ddf007
VS
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
e6cc62c6
VS
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
e1293dcf 13289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; } &&
13295 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_header_compiler=yes
13302else
13303 echo "$as_me: failed program was:" >&5
13304sed 's/^/| /' conftest.$ac_ext >&5
13305
13306ac_header_compiler=no
13307fi
32ddf007 13308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13310echo "${ECHO_T}$ac_header_compiler" >&6
13311
13312# Is the header present?
13313echo "$as_me:$LINENO: checking $ac_header presence" >&5
13314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13315cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321#include <$ac_header>
13322_ACEOF
13323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } >/dev/null; then
13331 if test -s conftest.err; then
13332 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13334 else
13335 ac_cpp_err=
13336 fi
13337else
13338 ac_cpp_err=yes
13339fi
13340if test -z "$ac_cpp_err"; then
13341 ac_header_preproc=yes
13342else
13343 echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 ac_header_preproc=no
13347fi
13348rm -f conftest.err conftest.$ac_ext
13349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13350echo "${ECHO_T}$ac_header_preproc" >&6
13351
13352# So? What about this header?
32ddf007
VS
13353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13354 yes:no: )
e6cc62c6
VS
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13359 ac_header_preproc=yes
e6cc62c6 13360 ;;
32ddf007 13361 no:yes:* )
e6cc62c6
VS
13362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13374 (
13375 cat <<\_ASBOX
32ddf007
VS
13376## ----------------------------------------- ##
13377## Report this to wx-dev@lists.wxwindows.org ##
13378## ----------------------------------------- ##
e6cc62c6
VS
13379_ASBOX
13380 ) |
13381 sed "s/^/$as_me: WARNING: /" >&2
13382 ;;
13383esac
13384echo "$as_me:$LINENO: checking for $ac_header" >&5
13385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13386if eval "test \"\${$as_ac_Header+set}\" = set"; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
32ddf007 13389 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13390fi
e6cc62c6
VS
13391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13393
4f14bcd8 13394fi
e6cc62c6
VS
13395if test `eval echo '${'$as_ac_Header'}'` = yes; then
13396 cat >>confdefs.h <<_ACEOF
13397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13398_ACEOF
13399
13400fi
13401
13402done
13403
13404fi
13405
13406
13407for ac_header in fnmatch.h
13408do
13409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13410if eval "test \"\${$as_ac_Header+set}\" = set"; then
13411 echo "$as_me:$LINENO: checking for $ac_header" >&5
13412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13413if eval "test \"\${$as_ac_Header+set}\" = set"; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415fi
13416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13418else
13419 # Is the header compilable?
13420echo "$as_me:$LINENO: checking $ac_header usability" >&5
13421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13422cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h. */
13428$ac_includes_default
13429#include <$ac_header>
13430_ACEOF
13431rm -f conftest.$ac_objext
13432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13433 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13434 ac_status=$?
32ddf007
VS
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
e6cc62c6
VS
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
e1293dcf 13440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 ac_header_compiler=yes
13453else
13454 echo "$as_me: failed program was:" >&5
13455sed 's/^/| /' conftest.$ac_ext >&5
13456
13457ac_header_compiler=no
13458fi
32ddf007 13459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13461echo "${ECHO_T}$ac_header_compiler" >&6
13462
13463# Is the header present?
13464echo "$as_me:$LINENO: checking $ac_header presence" >&5
13465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13466cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13467/* confdefs.h. */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h. */
13472#include <$ac_header>
13473_ACEOF
13474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } >/dev/null; then
13482 if test -s conftest.err; then
13483 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13485 else
13486 ac_cpp_err=
13487 fi
13488else
13489 ac_cpp_err=yes
13490fi
13491if test -z "$ac_cpp_err"; then
13492 ac_header_preproc=yes
13493else
13494 echo "$as_me: failed program was:" >&5
13495sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_header_preproc=no
13498fi
13499rm -f conftest.err conftest.$ac_ext
13500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501echo "${ECHO_T}$ac_header_preproc" >&6
13502
13503# So? What about this header?
32ddf007
VS
13504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 yes:no: )
e6cc62c6
VS
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13510 ac_header_preproc=yes
e6cc62c6 13511 ;;
32ddf007 13512 no:yes:* )
e6cc62c6
VS
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13525 (
13526 cat <<\_ASBOX
32ddf007
VS
13527## ----------------------------------------- ##
13528## Report this to wx-dev@lists.wxwindows.org ##
13529## ----------------------------------------- ##
e6cc62c6
VS
13530_ASBOX
13531 ) |
13532 sed "s/^/$as_me: WARNING: /" >&2
13533 ;;
13534esac
13535echo "$as_me:$LINENO: checking for $ac_header" >&5
13536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13537if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13539else
32ddf007 13540 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13541fi
13542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13544
21d1c967 13545fi
e6cc62c6
VS
13546if test `eval echo '${'$as_ac_Header'}'` = yes; then
13547 cat >>confdefs.h <<_ACEOF
13548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13549_ACEOF
13550
13551fi
13552
21d1c967 13553done
90dd450c 13554
5c6fa7d2 13555
a0b9e27f 13556if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13557
13558for ac_func in fnmatch
21d1c967 13559do
e6cc62c6
VS
13560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13561echo "$as_me:$LINENO: checking for $ac_func" >&5
13562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13563if eval "test \"\${$as_ac_var+set}\" = set"; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13567/* confdefs.h. */
13568_ACEOF
13569cat confdefs.h >>conftest.$ac_ext
13570cat >>conftest.$ac_ext <<_ACEOF
13571/* end confdefs.h. */
32ddf007
VS
13572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13574#define $ac_func innocuous_$ac_func
13575
a0b9e27f 13576/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13577 which can conflict with char $ac_func (); below.
13578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13579 <limits.h> exists even on freestanding compilers. */
32ddf007 13580
e6cc62c6
VS
13581#ifdef __STDC__
13582# include <limits.h>
13583#else
13584# include <assert.h>
13585#endif
32ddf007
VS
13586
13587#undef $ac_func
13588
a0b9e27f 13589/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13590#ifdef __cplusplus
13591extern "C"
13592{
13593#endif
a0b9e27f 13594/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13595 builtin and then its argument prototype would still apply. */
13596char $ac_func ();
a0b9e27f
MB
13597/* The GNU C library defines this for functions which it implements
13598 to always fail with ENOSYS. Some functions are actually named
13599 something starting with __ and the normal name is an alias. */
13600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13601choke me
13602#else
e6cc62c6
VS
13603char (*f) () = $ac_func;
13604#endif
13605#ifdef __cplusplus
13606}
a0b9e27f
MB
13607#endif
13608
e6cc62c6
VS
13609int
13610main ()
13611{
13612return f != $ac_func;
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617rm -f conftest.$ac_objext conftest$ac_exeext
13618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 13619 (eval $ac_link) 2>conftest.er1
e6cc62c6 13620 ac_status=$?
32ddf007
VS
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
e6cc62c6
VS
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
e1293dcf 13626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 eval "$as_ac_var=yes"
13639else
13640 echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643eval "$as_ac_var=no"
13644fi
32ddf007
VS
13645rm -f conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13647fi
13648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13650if test `eval echo '${'$as_ac_var'}'` = yes; then
13651 cat >>confdefs.h <<_ACEOF
13652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13653_ACEOF
32832908 13654
21d1c967
GD
13655fi
13656done
90dd450c 13657
a0b9e27f 13658fi
90dd450c 13659
e6cc62c6
VS
13660
13661for ac_header in langinfo.h
21d1c967 13662do
e6cc62c6
VS
13663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13664if eval "test \"\${$as_ac_Header+set}\" = set"; then
13665 echo "$as_me:$LINENO: checking for $ac_header" >&5
13666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13667if eval "test \"\${$as_ac_Header+set}\" = set"; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669fi
13670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13672else
13673 # Is the header compilable?
13674echo "$as_me:$LINENO: checking $ac_header usability" >&5
13675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13676cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13677/* confdefs.h. */
13678_ACEOF
13679cat confdefs.h >>conftest.$ac_ext
13680cat >>conftest.$ac_ext <<_ACEOF
13681/* end confdefs.h. */
13682$ac_includes_default
13683#include <$ac_header>
13684_ACEOF
13685rm -f conftest.$ac_objext
13686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13687 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13688 ac_status=$?
32ddf007
VS
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
e6cc62c6
VS
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
e1293dcf 13694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_header_compiler=yes
13707else
13708 echo "$as_me: failed program was:" >&5
13709sed 's/^/| /' conftest.$ac_ext >&5
13710
13711ac_header_compiler=no
13712fi
32ddf007 13713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13715echo "${ECHO_T}$ac_header_compiler" >&6
13716
13717# Is the header present?
13718echo "$as_me:$LINENO: checking $ac_header presence" >&5
13719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13720cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13721/* confdefs.h. */
13722_ACEOF
13723cat confdefs.h >>conftest.$ac_ext
13724cat >>conftest.$ac_ext <<_ACEOF
13725/* end confdefs.h. */
13726#include <$ac_header>
13727_ACEOF
13728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } >/dev/null; then
13736 if test -s conftest.err; then
13737 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13739 else
13740 ac_cpp_err=
13741 fi
13742else
13743 ac_cpp_err=yes
13744fi
13745if test -z "$ac_cpp_err"; then
13746 ac_header_preproc=yes
13747else
13748 echo "$as_me: failed program was:" >&5
13749sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ac_header_preproc=no
13752fi
13753rm -f conftest.err conftest.$ac_ext
13754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13755echo "${ECHO_T}$ac_header_preproc" >&6
13756
13757# So? What about this header?
32ddf007
VS
13758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13759 yes:no: )
e6cc62c6
VS
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13764 ac_header_preproc=yes
e6cc62c6 13765 ;;
32ddf007 13766 no:yes:* )
e6cc62c6
VS
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13779 (
13780 cat <<\_ASBOX
32ddf007
VS
13781## ----------------------------------------- ##
13782## Report this to wx-dev@lists.wxwindows.org ##
13783## ----------------------------------------- ##
e6cc62c6
VS
13784_ASBOX
13785 ) |
13786 sed "s/^/$as_me: WARNING: /" >&2
13787 ;;
13788esac
13789echo "$as_me:$LINENO: checking for $ac_header" >&5
13790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13791if eval "test \"\${$as_ac_Header+set}\" = set"; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
32ddf007 13794 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13795fi
e6cc62c6
VS
13796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13798
4f14bcd8 13799fi
e6cc62c6
VS
13800if test `eval echo '${'$as_ac_Header'}'` = yes; then
13801 cat >>confdefs.h <<_ACEOF
13802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13803_ACEOF
13804
21d1c967 13805fi
e6cc62c6 13806
21d1c967 13807done
3a922bb4 13808
8284b0c5 13809
4f5a7f74
VZ
13810case "${host}" in
13811 *-pc-os2_emx | *-pc-os2-emx )
13812 if test $ac_cv_header_langinfo_h = "yes"; then
13813 LIBS="$LIBS -lintl"
13814 fi
13815 ;;
13816esac
1542ea39 13817
a0b9e27f 13818if test "$wxUSE_GUI" = "yes"; then
73d617c9 13819 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13820
eb69fda5 13821for ac_header in X11/Xlib.h
21d1c967 13822do
e6cc62c6
VS
13823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13824if eval "test \"\${$as_ac_Header+set}\" = set"; then
13825 echo "$as_me:$LINENO: checking for $ac_header" >&5
13826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13827if eval "test \"\${$as_ac_Header+set}\" = set"; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13829fi
13830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13832else
13833 # Is the header compilable?
13834echo "$as_me:$LINENO: checking $ac_header usability" >&5
13835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13836cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13837/* confdefs.h. */
13838_ACEOF
13839cat confdefs.h >>conftest.$ac_ext
13840cat >>conftest.$ac_ext <<_ACEOF
13841/* end confdefs.h. */
13842$ac_includes_default
13843#include <$ac_header>
13844_ACEOF
13845rm -f conftest.$ac_objext
13846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13847 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13848 ac_status=$?
32ddf007
VS
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
e6cc62c6
VS
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
e1293dcf 13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_header_compiler=yes
13867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871ac_header_compiler=no
13872fi
32ddf007 13873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13875echo "${ECHO_T}$ac_header_compiler" >&6
13876
13877# Is the header present?
13878echo "$as_me:$LINENO: checking $ac_header presence" >&5
13879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13880cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13881/* confdefs.h. */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h. */
13886#include <$ac_header>
13887_ACEOF
13888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } >/dev/null; then
13896 if test -s conftest.err; then
13897 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13899 else
13900 ac_cpp_err=
13901 fi
13902else
13903 ac_cpp_err=yes
13904fi
13905if test -z "$ac_cpp_err"; then
13906 ac_header_preproc=yes
13907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ac_header_preproc=no
13912fi
13913rm -f conftest.err conftest.$ac_ext
13914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13915echo "${ECHO_T}$ac_header_preproc" >&6
13916
13917# So? What about this header?
32ddf007
VS
13918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13919 yes:no: )
e6cc62c6
VS
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13924 ac_header_preproc=yes
e6cc62c6 13925 ;;
32ddf007 13926 no:yes:* )
e6cc62c6
VS
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13939 (
13940 cat <<\_ASBOX
32ddf007
VS
13941## ----------------------------------------- ##
13942## Report this to wx-dev@lists.wxwindows.org ##
13943## ----------------------------------------- ##
e6cc62c6
VS
13944_ASBOX
13945 ) |
13946 sed "s/^/$as_me: WARNING: /" >&2
13947 ;;
13948esac
13949echo "$as_me:$LINENO: checking for $ac_header" >&5
13950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13951if eval "test \"\${$as_ac_Header+set}\" = set"; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
32ddf007 13954 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13955fi
e6cc62c6
VS
13956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13958
90dd450c 13959fi
e6cc62c6
VS
13960if test `eval echo '${'$as_ac_Header'}'` = yes; then
13961 cat >>confdefs.h <<_ACEOF
13962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13963_ACEOF
13964
247f5006 13965fi
e6cc62c6 13966
eb69fda5
VS
13967done
13968
13969
13970for ac_header in X11/XKBlib.h
13971do
13972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13973echo "$as_me:$LINENO: checking for $ac_header" >&5
13974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13975if eval "test \"\${$as_ac_Header+set}\" = set"; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977else
13978 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
13984
13985 #if HAVE_X11_XLIB_H
13986 #include <X11/Xlib.h>
13987 #endif
13988
13989
13990#include <$ac_header>
13991_ACEOF
13992rm -f conftest.$ac_objext
13993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13994 (eval $ac_compile) 2>conftest.er1
eb69fda5 13995 ac_status=$?
32ddf007
VS
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
eb69fda5
VS
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
e1293dcf 14001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 eval "$as_ac_Header=yes"
14014else
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018eval "$as_ac_Header=no"
14019fi
32ddf007 14020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
14021fi
14022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14024if test `eval echo '${'$as_ac_Header'}'` = yes; then
14025 cat >>confdefs.h <<_ACEOF
14026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14027_ACEOF
14028
14029fi
14030
247f5006
VZ
14031done
14032
a0b9e27f
MB
14033 fi
14034fi
247f5006 14035
247f5006 14036
e6cc62c6
VS
14037echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14038echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14039if test "${ac_cv_c_const+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14043/* confdefs.h. */
14044_ACEOF
14045cat confdefs.h >>conftest.$ac_ext
14046cat >>conftest.$ac_ext <<_ACEOF
14047/* end confdefs.h. */
14048
14049int
14050main ()
14051{
14052/* FIXME: Include the comments suggested by Paul. */
14053#ifndef __cplusplus
14054 /* Ultrix mips cc rejects this. */
14055 typedef int charset[2];
14056 const charset x;
14057 /* SunOS 4.1.1 cc rejects this. */
14058 char const *const *ccp;
14059 char **p;
14060 /* NEC SVR4.0.2 mips cc rejects this. */
14061 struct point {int x, y;};
14062 static struct point const zero = {0,0};
14063 /* AIX XL C 1.02.0.0 rejects this.
14064 It does not let you subtract one const X* pointer from another in
14065 an arm of an if-expression whose if-part is not a constant
14066 expression */
14067 const char *g = "string";
14068 ccp = &g + (g ? g-g : 0);
14069 /* HPUX 7.0 cc rejects these. */
14070 ++ccp;
14071 p = (char**) ccp;
14072 ccp = (char const *const *) p;
14073 { /* SCO 3.2v4 cc rejects this. */
14074 char *t;
14075 char const *s = 0 ? (char *) 0 : (char const *) 0;
14076
14077 *t++ = 0;
14078 }
14079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14080 int x[] = {25, 17};
14081 const int *foo = &x[0];
14082 ++foo;
14083 }
14084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14085 typedef const int *iptr;
14086 iptr p = 0;
14087 ++p;
14088 }
14089 { /* AIX XL C 1.02.0.0 rejects this saying
14090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14091 struct s { int j; const int *ap[3]; };
14092 struct s *b; b->j = 5;
14093 }
14094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14095 const int foo = 10;
14096 }
14097#endif
14098
14099 ;
14100 return 0;
14101}
14102_ACEOF
14103rm -f conftest.$ac_objext
14104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14105 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14106 ac_status=$?
32ddf007
VS
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
e6cc62c6
VS
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
e1293dcf 14112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
a0b9e27f 14124 ac_cv_c_const=yes
247f5006 14125else
e6cc62c6
VS
14126 echo "$as_me: failed program was:" >&5
14127sed 's/^/| /' conftest.$ac_ext >&5
14128
14129ac_cv_c_const=no
247f5006 14130fi
32ddf007 14131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 14132fi
e6cc62c6
VS
14133echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14134echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 14135if test $ac_cv_c_const = no; then
e6cc62c6
VS
14136
14137cat >>confdefs.h <<\_ACEOF
14138#define const
14139_ACEOF
10f2d63a 14140
90dd450c 14141fi
81809c07 14142
e6cc62c6
VS
14143echo "$as_me:$LINENO: checking for inline" >&5
14144echo $ECHO_N "checking for inline... $ECHO_C" >&6
14145if test "${ac_cv_c_inline+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 14147else
a0b9e27f
MB
14148 ac_cv_c_inline=no
14149for ac_kw in inline __inline__ __inline; do
e6cc62c6 14150 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156#ifndef __cplusplus
14157typedef int foo_t;
14158static $ac_kw foo_t static_foo () {return 0; }
14159$ac_kw foo_t foo () {return 0; }
14160#endif
a0b9e27f 14161
e6cc62c6
VS
14162_ACEOF
14163rm -f conftest.$ac_objext
14164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14165 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14166 ac_status=$?
32ddf007
VS
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
e6cc62c6
VS
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
e1293dcf 14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
a0b9e27f 14184 ac_cv_c_inline=$ac_kw; break
247f5006 14185else
e6cc62c6
VS
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
247f5006 14189fi
32ddf007 14190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14191done
247f5006
VZ
14192
14193fi
e6cc62c6
VS
14194echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14195echo "${ECHO_T}$ac_cv_c_inline" >&6
32ddf007
VS
14196
14197
e6cc62c6 14198case $ac_cv_c_inline in
a0b9e27f 14199 inline | yes) ;;
32ddf007
VS
14200 *)
14201 case $ac_cv_c_inline in
14202 no) ac_val=;;
14203 *) ac_val=$ac_cv_c_inline;;
14204 esac
14205 cat >>confdefs.h <<_ACEOF
14206#ifndef __cplusplus
14207#define inline $ac_val
14208#endif
0f87e84c 14209_ACEOF
32ddf007 14210 ;;
a0b9e27f 14211esac
247f5006 14212
247f5006 14213
e6cc62c6
VS
14214echo "$as_me:$LINENO: checking for char" >&5
14215echo $ECHO_N "checking for char... $ECHO_C" >&6
14216if test "${ac_cv_type_char+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218else
14219 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14220/* confdefs.h. */
14221_ACEOF
14222cat confdefs.h >>conftest.$ac_ext
14223cat >>conftest.$ac_ext <<_ACEOF
14224/* end confdefs.h. */
14225$ac_includes_default
14226int
14227main ()
14228{
14229if ((char *) 0)
14230 return 0;
14231if (sizeof (char))
14232 return 0;
14233 ;
14234 return 0;
14235}
14236_ACEOF
14237rm -f conftest.$ac_objext
14238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14239 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14240 ac_status=$?
32ddf007
VS
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
e6cc62c6
VS
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
e1293dcf 14246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_cv_type_char=yes
14259else
14260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263ac_cv_type_char=no
14264fi
32ddf007 14265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14266fi
14267echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14268echo "${ECHO_T}$ac_cv_type_char" >&6
14269
14270echo "$as_me:$LINENO: checking size of char" >&5
14271echo $ECHO_N "checking size of char... $ECHO_C" >&6
14272if test "${ac_cv_sizeof_char+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 if test "$ac_cv_type_char" = yes; then
14276 # The cast to unsigned long works around a bug in the HP C Compiler
14277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14279 # This bug is HP SR number 8606223364.
a0b9e27f 14280 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14281 # Depending upon the size, compute the lo and hi bounds.
14282cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14283/* confdefs.h. */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h. */
14288$ac_includes_default
14289int
14290main ()
14291{
14292static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14293test_array [0] = 0
14294
14295 ;
14296 return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext
14300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14301 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14302 ac_status=$?
32ddf007
VS
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
e6cc62c6
VS
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
e1293dcf 14308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_lo=0 ac_mid=0
14321 while :; do
14322 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14323/* confdefs.h. */
14324_ACEOF
14325cat confdefs.h >>conftest.$ac_ext
14326cat >>conftest.$ac_ext <<_ACEOF
14327/* end confdefs.h. */
14328$ac_includes_default
14329int
14330main ()
14331{
14332static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14333test_array [0] = 0
14334
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext
14340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14341 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14342 ac_status=$?
32ddf007
VS
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
e6cc62c6
VS
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
e1293dcf 14348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_hi=$ac_mid; break
14361else
14362 echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
14365ac_lo=`expr $ac_mid + 1`
32ddf007
VS
14366 if test $ac_lo -le $ac_mid; then
14367 ac_lo= ac_hi=
14368 break
14369 fi
14370 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14371fi
32ddf007 14372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14373 done
a0b9e27f 14374else
e6cc62c6
VS
14375 echo "$as_me: failed program was:" >&5
14376sed 's/^/| /' conftest.$ac_ext >&5
14377
14378cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14379/* confdefs.h. */
14380_ACEOF
14381cat confdefs.h >>conftest.$ac_ext
14382cat >>conftest.$ac_ext <<_ACEOF
14383/* end confdefs.h. */
14384$ac_includes_default
14385int
14386main ()
14387{
14388static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14389test_array [0] = 0
14390
14391 ;
14392 return 0;
14393}
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14397 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14398 ac_status=$?
32ddf007
VS
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
e6cc62c6
VS
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
e1293dcf 14404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_hi=-1 ac_mid=-1
14417 while :; do
14418 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14419/* confdefs.h. */
14420_ACEOF
14421cat confdefs.h >>conftest.$ac_ext
14422cat >>conftest.$ac_ext <<_ACEOF
14423/* end confdefs.h. */
14424$ac_includes_default
14425int
14426main ()
14427{
14428static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14429test_array [0] = 0
14430
14431 ;
14432 return 0;
14433}
14434_ACEOF
14435rm -f conftest.$ac_objext
14436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14437 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14438 ac_status=$?
32ddf007
VS
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
e6cc62c6
VS
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
e1293dcf 14444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_lo=$ac_mid; break
14457else
14458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
14462 if test $ac_mid -le $ac_hi; then
14463 ac_lo= ac_hi=
14464 break
14465 fi
14466 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14467fi
32ddf007 14468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14469 done
14470else
14471 echo "$as_me: failed program was:" >&5
14472sed 's/^/| /' conftest.$ac_ext >&5
14473
14474ac_lo= ac_hi=
14475fi
32ddf007 14476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14477fi
32ddf007 14478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14479# Binary search between lo and hi bounds.
14480while test "x$ac_lo" != "x$ac_hi"; do
14481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14482 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14483/* confdefs.h. */
14484_ACEOF
14485cat confdefs.h >>conftest.$ac_ext
14486cat >>conftest.$ac_ext <<_ACEOF
14487/* end confdefs.h. */
14488$ac_includes_default
14489int
14490main ()
14491{
14492static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14493test_array [0] = 0
14494
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext
14500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14501 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14502 ac_status=$?
32ddf007
VS
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
e6cc62c6
VS
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
e1293dcf 14508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; } &&
14514 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_hi=$ac_mid
14521else
14522 echo "$as_me: failed program was:" >&5
14523sed 's/^/| /' conftest.$ac_ext >&5
14524
14525ac_lo=`expr '(' $ac_mid ')' + 1`
14526fi
32ddf007 14527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14528done
14529case $ac_lo in
14530?*) ac_cv_sizeof_char=$ac_lo;;
14531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14532See \`config.log' for more details." >&5
14533echo "$as_me: error: cannot compute sizeof (char), 77
14534See \`config.log' for more details." >&2;}
14535 { (exit 1); exit 1; }; } ;;
14536esac
14537else
14538 if test "$cross_compiling" = yes; then
e1293dcf
RL
14539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
14541 { (exit 1); exit 1; }; }
14542else
14543 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h. */
14549$ac_includes_default
14550long longval () { return (long) (sizeof (char)); }
14551unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14552#include <stdio.h>
e6cc62c6
VS
14553#include <stdlib.h>
14554int
14555main ()
247f5006 14556{
e6cc62c6
VS
14557
14558 FILE *f = fopen ("conftest.val", "w");
14559 if (! f)
14560 exit (1);
14561 if (((long) (sizeof (char))) < 0)
14562 {
14563 long i = longval ();
14564 if (i != ((long) (sizeof (char))))
14565 exit (1);
14566 fprintf (f, "%ld\n", i);
14567 }
14568 else
14569 {
14570 unsigned long i = ulongval ();
14571 if (i != ((long) (sizeof (char))))
14572 exit (1);
14573 fprintf (f, "%lu\n", i);
14574 }
14575 exit (ferror (f) || fclose (f) != 0);
14576
14577 ;
14578 return 0;
52127426 14579}
e6cc62c6
VS
14580_ACEOF
14581rm -f conftest$ac_exeext
14582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14583 (eval $ac_link) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_cv_sizeof_char=`cat conftest.val`
14593else
14594 echo "$as_me: program exited with status $ac_status" >&5
14595echo "$as_me: failed program was:" >&5
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
14598( exit $ac_status )
14599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14600See \`config.log' for more details." >&5
14601echo "$as_me: error: cannot compute sizeof (char), 77
14602See \`config.log' for more details." >&2;}
14603 { (exit 1); exit 1; }; }
14604fi
32ddf007 14605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14606fi
14607fi
14608rm -f conftest.val
247f5006 14609else
a0b9e27f 14610 ac_cv_sizeof_char=0
247f5006 14611fi
247f5006 14612fi
e6cc62c6
VS
14613echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14614echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14615cat >>confdefs.h <<_ACEOF
14616#define SIZEOF_CHAR $ac_cv_sizeof_char
14617_ACEOF
14618
14619
14620echo "$as_me:$LINENO: checking for short" >&5
14621echo $ECHO_N "checking for short... $ECHO_C" >&6
14622if test "${ac_cv_type_short+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624else
14625 cat >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{
14635if ((short *) 0)
14636 return 0;
14637if (sizeof (short))
14638 return 0;
14639 ;
14640 return 0;
14641}
14642_ACEOF
14643rm -f conftest.$ac_objext
14644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14645 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14646 ac_status=$?
32ddf007
VS
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
e6cc62c6
VS
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
e1293dcf 14652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
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_cv_type_short=yes
14665else
14666 echo "$as_me: failed program was:" >&5
14667sed 's/^/| /' conftest.$ac_ext >&5
14668
14669ac_cv_type_short=no
14670fi
32ddf007 14671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14672fi
14673echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14674echo "${ECHO_T}$ac_cv_type_short" >&6
14675
14676echo "$as_me:$LINENO: checking size of short" >&5
14677echo $ECHO_N "checking size of short... $ECHO_C" >&6
14678if test "${ac_cv_sizeof_short+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680else
14681 if test "$ac_cv_type_short" = yes; then
14682 # The cast to unsigned long works around a bug in the HP C Compiler
14683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14685 # This bug is HP SR number 8606223364.
14686 if test "$cross_compiling" = yes; then
14687 # Depending upon the size, compute the lo and hi bounds.
14688cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14689/* confdefs.h. */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h. */
14694$ac_includes_default
14695int
14696main ()
14697{
14698static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14699test_array [0] = 0
247f5006 14700
e6cc62c6
VS
14701 ;
14702 return 0;
14703}
14704_ACEOF
14705rm -f conftest.$ac_objext
14706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14707 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14708 ac_status=$?
32ddf007
VS
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
e6cc62c6
VS
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
e1293dcf 14714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_lo=0 ac_mid=0
14727 while :; do
14728 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14729/* confdefs.h. */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h. */
14734$ac_includes_default
14735int
14736main ()
14737{
14738static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14739test_array [0] = 0
14740
14741 ;
14742 return 0;
14743}
14744_ACEOF
14745rm -f conftest.$ac_objext
14746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14747 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14748 ac_status=$?
32ddf007
VS
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
e6cc62c6
VS
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
e1293dcf 14754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_hi=$ac_mid; break
14767else
14768 echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771ac_lo=`expr $ac_mid + 1`
32ddf007
VS
14772 if test $ac_lo -le $ac_mid; then
14773 ac_lo= ac_hi=
14774 break
14775 fi
14776 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14777fi
32ddf007 14778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14779 done
14780else
14781 echo "$as_me: failed program was:" >&5
14782sed 's/^/| /' conftest.$ac_ext >&5
14783
14784cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14785/* confdefs.h. */
14786_ACEOF
14787cat confdefs.h >>conftest.$ac_ext
14788cat >>conftest.$ac_ext <<_ACEOF
14789/* end confdefs.h. */
14790$ac_includes_default
14791int
14792main ()
14793{
14794static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14795test_array [0] = 0
247f5006 14796
e6cc62c6
VS
14797 ;
14798 return 0;
14799}
14800_ACEOF
14801rm -f conftest.$ac_objext
14802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14803 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14804 ac_status=$?
32ddf007
VS
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
e6cc62c6
VS
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
e1293dcf 14810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_hi=-1 ac_mid=-1
14823 while :; do
14824 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14825/* confdefs.h. */
14826_ACEOF
14827cat confdefs.h >>conftest.$ac_ext
14828cat >>conftest.$ac_ext <<_ACEOF
14829/* end confdefs.h. */
14830$ac_includes_default
14831int
14832main ()
14833{
14834static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14835test_array [0] = 0
247f5006 14836
e6cc62c6
VS
14837 ;
14838 return 0;
14839}
14840_ACEOF
14841rm -f conftest.$ac_objext
14842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14843 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14844 ac_status=$?
32ddf007
VS
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
e6cc62c6
VS
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
e1293dcf 14850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_lo=$ac_mid; break
14863else
14864 echo "$as_me: failed program was:" >&5
14865sed 's/^/| /' conftest.$ac_ext >&5
14866
14867ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
14868 if test $ac_mid -le $ac_hi; then
14869 ac_lo= ac_hi=
14870 break
14871 fi
14872 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14873fi
32ddf007 14874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14875 done
247f5006 14876else
e6cc62c6
VS
14877 echo "$as_me: failed program was:" >&5
14878sed 's/^/| /' conftest.$ac_ext >&5
14879
14880ac_lo= ac_hi=
14881fi
32ddf007 14882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14883fi
32ddf007 14884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14885# Binary search between lo and hi bounds.
14886while test "x$ac_lo" != "x$ac_hi"; do
14887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14888 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14889/* confdefs.h. */
14890_ACEOF
14891cat confdefs.h >>conftest.$ac_ext
14892cat >>conftest.$ac_ext <<_ACEOF
14893/* end confdefs.h. */
14894$ac_includes_default
14895int
14896main ()
14897{
14898static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14899test_array [0] = 0
14900
14901 ;
14902 return 0;
14903}
14904_ACEOF
14905rm -f conftest.$ac_objext
14906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14907 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14908 ac_status=$?
32ddf007
VS
14909 grep -v '^ *+' conftest.er1 >conftest.err
14910 rm -f conftest.er1
14911 cat conftest.err >&5
e6cc62c6
VS
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
e1293dcf 14914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_hi=$ac_mid
14927else
14928 echo "$as_me: failed program was:" >&5
14929sed 's/^/| /' conftest.$ac_ext >&5
14930
14931ac_lo=`expr '(' $ac_mid ')' + 1`
14932fi
32ddf007 14933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14934done
14935case $ac_lo in
14936?*) ac_cv_sizeof_short=$ac_lo;;
14937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14938See \`config.log' for more details." >&5
14939echo "$as_me: error: cannot compute sizeof (short), 77
14940See \`config.log' for more details." >&2;}
14941 { (exit 1); exit 1; }; } ;;
14942esac
247f5006 14943else
e6cc62c6 14944 if test "$cross_compiling" = yes; then
e1293dcf
RL
14945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
14947 { (exit 1); exit 1; }; }
14948else
14949 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14950/* confdefs.h. */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h. */
14955$ac_includes_default
14956long longval () { return (long) (sizeof (short)); }
14957unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14958#include <stdio.h>
e6cc62c6
VS
14959#include <stdlib.h>
14960int
14961main ()
a0b9e27f 14962{
e6cc62c6
VS
14963
14964 FILE *f = fopen ("conftest.val", "w");
14965 if (! f)
14966 exit (1);
14967 if (((long) (sizeof (short))) < 0)
14968 {
14969 long i = longval ();
14970 if (i != ((long) (sizeof (short))))
14971 exit (1);
14972 fprintf (f, "%ld\n", i);
14973 }
14974 else
14975 {
14976 unsigned long i = ulongval ();
14977 if (i != ((long) (sizeof (short))))
14978 exit (1);
14979 fprintf (f, "%lu\n", i);
14980 }
14981 exit (ferror (f) || fclose (f) != 0);
14982
14983 ;
14984 return 0;
a0b9e27f 14985}
e6cc62c6
VS
14986_ACEOF
14987rm -f conftest$ac_exeext
14988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989 (eval $ac_link) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_cv_sizeof_short=`cat conftest.val`
14999else
15000 echo "$as_me: program exited with status $ac_status" >&5
15001echo "$as_me: failed program was:" >&5
15002sed 's/^/| /' conftest.$ac_ext >&5
15003
15004( exit $ac_status )
15005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15006See \`config.log' for more details." >&5
15007echo "$as_me: error: cannot compute sizeof (short), 77
15008See \`config.log' for more details." >&2;}
15009 { (exit 1); exit 1; }; }
15010fi
32ddf007 15011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15012fi
15013fi
15014rm -f conftest.val
247f5006 15015else
a0b9e27f 15016 ac_cv_sizeof_short=0
247f5006 15017fi
247f5006 15018fi
e6cc62c6
VS
15019echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15020echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15021cat >>confdefs.h <<_ACEOF
15022#define SIZEOF_SHORT $ac_cv_sizeof_short
15023_ACEOF
15024
15025
15026echo "$as_me:$LINENO: checking for void *" >&5
15027echo $ECHO_N "checking for void *... $ECHO_C" >&6
15028if test "${ac_cv_type_void_p+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037$ac_includes_default
15038int
15039main ()
15040{
15041if ((void * *) 0)
15042 return 0;
15043if (sizeof (void *))
15044 return 0;
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049rm -f conftest.$ac_objext
15050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15051 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15052 ac_status=$?
32ddf007
VS
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
e6cc62c6
VS
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
e1293dcf 15058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_type_void_p=yes
15071else
15072 echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075ac_cv_type_void_p=no
15076fi
32ddf007 15077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15078fi
15079echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15080echo "${ECHO_T}$ac_cv_type_void_p" >&6
15081
15082echo "$as_me:$LINENO: checking size of void *" >&5
15083echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15084if test "${ac_cv_sizeof_void_p+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086else
15087 if test "$ac_cv_type_void_p" = yes; then
15088 # The cast to unsigned long works around a bug in the HP C Compiler
15089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15091 # This bug is HP SR number 8606223364.
15092 if test "$cross_compiling" = yes; then
15093 # Depending upon the size, compute the lo and hi bounds.
15094cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
15099/* end confdefs.h. */
15100$ac_includes_default
15101int
15102main ()
15103{
15104static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15105test_array [0] = 0
15106
15107 ;
15108 return 0;
15109}
15110_ACEOF
15111rm -f conftest.$ac_objext
15112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15113 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15114 ac_status=$?
32ddf007
VS
15115 grep -v '^ *+' conftest.er1 >conftest.err
15116 rm -f conftest.er1
15117 cat conftest.err >&5
e6cc62c6
VS
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
e1293dcf 15120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; } &&
15126 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 ac_lo=0 ac_mid=0
15133 while :; do
15134 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15135/* confdefs.h. */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
15139/* end confdefs.h. */
15140$ac_includes_default
15141int
15142main ()
15143{
15144static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15145test_array [0] = 0
247f5006 15146
e6cc62c6
VS
15147 ;
15148 return 0;
15149}
15150_ACEOF
15151rm -f conftest.$ac_objext
15152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15153 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15154 ac_status=$?
32ddf007
VS
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
e6cc62c6
VS
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
e1293dcf 15160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_hi=$ac_mid; break
15173else
15174 echo "$as_me: failed program was:" >&5
15175sed 's/^/| /' conftest.$ac_ext >&5
15176
15177ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15178 if test $ac_lo -le $ac_mid; then
15179 ac_lo= ac_hi=
15180 break
15181 fi
15182 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15183fi
32ddf007 15184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15185 done
15186else
15187 echo "$as_me: failed program was:" >&5
15188sed 's/^/| /' conftest.$ac_ext >&5
15189
15190cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
15196$ac_includes_default
15197int
15198main ()
15199{
15200static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15201test_array [0] = 0
247f5006 15202
e6cc62c6
VS
15203 ;
15204 return 0;
15205}
15206_ACEOF
15207rm -f conftest.$ac_objext
15208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15209 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15210 ac_status=$?
32ddf007
VS
15211 grep -v '^ *+' conftest.er1 >conftest.err
15212 rm -f conftest.er1
15213 cat conftest.err >&5
e6cc62c6
VS
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
e1293dcf 15216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 ac_hi=-1 ac_mid=-1
15229 while :; do
15230 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15231/* confdefs.h. */
15232_ACEOF
15233cat confdefs.h >>conftest.$ac_ext
15234cat >>conftest.$ac_ext <<_ACEOF
15235/* end confdefs.h. */
15236$ac_includes_default
15237int
15238main ()
15239{
15240static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15241test_array [0] = 0
247f5006 15242
e6cc62c6
VS
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247rm -f conftest.$ac_objext
15248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15249 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15250 ac_status=$?
32ddf007
VS
15251 grep -v '^ *+' conftest.er1 >conftest.err
15252 rm -f conftest.er1
15253 cat conftest.err >&5
e6cc62c6
VS
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
e1293dcf 15256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_lo=$ac_mid; break
15269else
15270 echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
15272
15273ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
15274 if test $ac_mid -le $ac_hi; then
15275 ac_lo= ac_hi=
15276 break
15277 fi
15278 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15279fi
32ddf007 15280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15281 done
a0b9e27f 15282else
e6cc62c6
VS
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286ac_lo= ac_hi=
15287fi
32ddf007 15288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15289fi
32ddf007 15290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15291# Binary search between lo and hi bounds.
15292while test "x$ac_lo" != "x$ac_hi"; do
15293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15294 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
15300$ac_includes_default
15301int
15302main ()
15303{
15304static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15305test_array [0] = 0
15306
15307 ;
15308 return 0;
15309}
15310_ACEOF
15311rm -f conftest.$ac_objext
15312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15313 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15314 ac_status=$?
32ddf007
VS
15315 grep -v '^ *+' conftest.er1 >conftest.err
15316 rm -f conftest.er1
15317 cat conftest.err >&5
e6cc62c6
VS
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
e1293dcf 15320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_hi=$ac_mid
15333else
15334 echo "$as_me: failed program was:" >&5
15335sed 's/^/| /' conftest.$ac_ext >&5
15336
15337ac_lo=`expr '(' $ac_mid ')' + 1`
15338fi
32ddf007 15339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15340done
15341case $ac_lo in
15342?*) ac_cv_sizeof_void_p=$ac_lo;;
15343'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15344See \`config.log' for more details." >&5
15345echo "$as_me: error: cannot compute sizeof (void *), 77
15346See \`config.log' for more details." >&2;}
15347 { (exit 1); exit 1; }; } ;;
15348esac
247f5006 15349else
e6cc62c6 15350 if test "$cross_compiling" = yes; then
e1293dcf
RL
15351 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15352echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
15353 { (exit 1); exit 1; }; }
15354else
15355 cat >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
15362long longval () { return (long) (sizeof (void *)); }
15363unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15364#include <stdio.h>
e6cc62c6
VS
15365#include <stdlib.h>
15366int
15367main ()
247f5006 15368{
e6cc62c6
VS
15369
15370 FILE *f = fopen ("conftest.val", "w");
15371 if (! f)
15372 exit (1);
15373 if (((long) (sizeof (void *))) < 0)
15374 {
15375 long i = longval ();
15376 if (i != ((long) (sizeof (void *))))
15377 exit (1);
15378 fprintf (f, "%ld\n", i);
15379 }
15380 else
15381 {
15382 unsigned long i = ulongval ();
15383 if (i != ((long) (sizeof (void *))))
15384 exit (1);
15385 fprintf (f, "%lu\n", i);
15386 }
15387 exit (ferror (f) || fclose (f) != 0);
15388
15389 ;
15390 return 0;
5c6fa7d2 15391}
e6cc62c6
VS
15392_ACEOF
15393rm -f conftest$ac_exeext
15394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15395 (eval $ac_link) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_cv_sizeof_void_p=`cat conftest.val`
15405else
15406 echo "$as_me: program exited with status $ac_status" >&5
15407echo "$as_me: failed program was:" >&5
15408sed 's/^/| /' conftest.$ac_ext >&5
15409
15410( exit $ac_status )
15411{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15412See \`config.log' for more details." >&5
15413echo "$as_me: error: cannot compute sizeof (void *), 77
15414See \`config.log' for more details." >&2;}
15415 { (exit 1); exit 1; }; }
15416fi
32ddf007 15417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15418fi
15419fi
15420rm -f conftest.val
a0b9e27f 15421else
a0b9e27f
MB
15422 ac_cv_sizeof_void_p=0
15423fi
a0b9e27f 15424fi
e6cc62c6
VS
15425echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15426echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15427cat >>confdefs.h <<_ACEOF
15428#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15429_ACEOF
15430
15431
15432echo "$as_me:$LINENO: checking for int" >&5
15433echo $ECHO_N "checking for int... $ECHO_C" >&6
15434if test "${ac_cv_type_int+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436else
15437 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15438/* confdefs.h. */
15439_ACEOF
15440cat confdefs.h >>conftest.$ac_ext
15441cat >>conftest.$ac_ext <<_ACEOF
15442/* end confdefs.h. */
15443$ac_includes_default
15444int
15445main ()
15446{
15447if ((int *) 0)
15448 return 0;
15449if (sizeof (int))
15450 return 0;
15451 ;
15452 return 0;
15453}
15454_ACEOF
15455rm -f conftest.$ac_objext
15456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15457 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15458 ac_status=$?
32ddf007
VS
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
e6cc62c6
VS
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
e1293dcf 15464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_type_int=yes
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481ac_cv_type_int=no
15482fi
32ddf007 15483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15484fi
15485echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15486echo "${ECHO_T}$ac_cv_type_int" >&6
15487
15488echo "$as_me:$LINENO: checking size of int" >&5
15489echo $ECHO_N "checking size of int... $ECHO_C" >&6
15490if test "${ac_cv_sizeof_int+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492else
15493 if test "$ac_cv_type_int" = yes; then
15494 # The cast to unsigned long works around a bug in the HP C Compiler
15495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15497 # This bug is HP SR number 8606223364.
15498 if test "$cross_compiling" = yes; then
15499 # Depending upon the size, compute the lo and hi bounds.
15500cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15501/* confdefs.h. */
15502_ACEOF
15503cat confdefs.h >>conftest.$ac_ext
15504cat >>conftest.$ac_ext <<_ACEOF
15505/* end confdefs.h. */
15506$ac_includes_default
15507int
15508main ()
15509{
15510static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15511test_array [0] = 0
8284b0c5 15512
e6cc62c6
VS
15513 ;
15514 return 0;
15515}
15516_ACEOF
15517rm -f conftest.$ac_objext
15518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15519 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15520 ac_status=$?
32ddf007
VS
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
e6cc62c6
VS
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
e1293dcf 15526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_lo=0 ac_mid=0
15539 while :; do
15540 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15541/* confdefs.h. */
15542_ACEOF
15543cat confdefs.h >>conftest.$ac_ext
15544cat >>conftest.$ac_ext <<_ACEOF
15545/* end confdefs.h. */
15546$ac_includes_default
15547int
15548main ()
15549{
15550static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15551test_array [0] = 0
15552
15553 ;
15554 return 0;
15555}
15556_ACEOF
15557rm -f conftest.$ac_objext
15558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15559 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15560 ac_status=$?
32ddf007
VS
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
e6cc62c6
VS
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
e1293dcf 15566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_hi=$ac_mid; break
15579else
15580 echo "$as_me: failed program was:" >&5
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
15583ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15584 if test $ac_lo -le $ac_mid; then
15585 ac_lo= ac_hi=
15586 break
15587 fi
15588 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15589fi
32ddf007 15590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15591 done
15592else
15593 echo "$as_me: failed program was:" >&5
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
15596cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602$ac_includes_default
15603int
15604main ()
15605{
15606static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15607test_array [0] = 0
247f5006 15608
e6cc62c6
VS
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15615 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15616 ac_status=$?
32ddf007
VS
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
e6cc62c6
VS
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
e1293dcf 15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_hi=-1 ac_mid=-1
15635 while :; do
15636 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15637/* confdefs.h. */
15638_ACEOF
15639cat confdefs.h >>conftest.$ac_ext
15640cat >>conftest.$ac_ext <<_ACEOF
15641/* end confdefs.h. */
15642$ac_includes_default
15643int
15644main ()
15645{
15646static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15647test_array [0] = 0
247f5006 15648
e6cc62c6
VS
15649 ;
15650 return 0;
15651}
15652_ACEOF
15653rm -f conftest.$ac_objext
15654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15655 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15656 ac_status=$?
32ddf007
VS
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
e6cc62c6
VS
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
e1293dcf 15662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_lo=$ac_mid; break
15675else
15676 echo "$as_me: failed program was:" >&5
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
15679ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
15680 if test $ac_mid -le $ac_hi; then
15681 ac_lo= ac_hi=
15682 break
15683 fi
15684 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15685fi
32ddf007 15686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15687 done
247f5006 15688else
e6cc62c6
VS
15689 echo "$as_me: failed program was:" >&5
15690sed 's/^/| /' conftest.$ac_ext >&5
15691
15692ac_lo= ac_hi=
15693fi
32ddf007 15694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15695fi
32ddf007 15696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15697# Binary search between lo and hi bounds.
15698while test "x$ac_lo" != "x$ac_hi"; do
15699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15700 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706$ac_includes_default
15707int
15708main ()
15709{
15710static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15711test_array [0] = 0
15712
15713 ;
15714 return 0;
15715}
15716_ACEOF
15717rm -f conftest.$ac_objext
15718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15719 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15720 ac_status=$?
32ddf007
VS
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
e6cc62c6
VS
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
e1293dcf 15726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_hi=$ac_mid
15739else
15740 echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743ac_lo=`expr '(' $ac_mid ')' + 1`
15744fi
32ddf007 15745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15746done
15747case $ac_lo in
15748?*) ac_cv_sizeof_int=$ac_lo;;
15749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15750See \`config.log' for more details." >&5
15751echo "$as_me: error: cannot compute sizeof (int), 77
15752See \`config.log' for more details." >&2;}
15753 { (exit 1); exit 1; }; } ;;
15754esac
a0b9e27f 15755else
e6cc62c6 15756 if test "$cross_compiling" = yes; then
e1293dcf
RL
15757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15758echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
15759 { (exit 1); exit 1; }; }
15760else
15761 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15762/* confdefs.h. */
15763_ACEOF
15764cat confdefs.h >>conftest.$ac_ext
15765cat >>conftest.$ac_ext <<_ACEOF
15766/* end confdefs.h. */
15767$ac_includes_default
15768long longval () { return (long) (sizeof (int)); }
15769unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15770#include <stdio.h>
e6cc62c6
VS
15771#include <stdlib.h>
15772int
15773main ()
247f5006 15774{
e6cc62c6
VS
15775
15776 FILE *f = fopen ("conftest.val", "w");
15777 if (! f)
15778 exit (1);
15779 if (((long) (sizeof (int))) < 0)
15780 {
15781 long i = longval ();
15782 if (i != ((long) (sizeof (int))))
15783 exit (1);
15784 fprintf (f, "%ld\n", i);
15785 }
15786 else
15787 {
15788 unsigned long i = ulongval ();
15789 if (i != ((long) (sizeof (int))))
15790 exit (1);
15791 fprintf (f, "%lu\n", i);
15792 }
15793 exit (ferror (f) || fclose (f) != 0);
15794
15795 ;
15796 return 0;
247f5006 15797}
e6cc62c6
VS
15798_ACEOF
15799rm -f conftest$ac_exeext
15800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15801 (eval $ac_link) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_cv_sizeof_int=`cat conftest.val`
15811else
15812 echo "$as_me: program exited with status $ac_status" >&5
15813echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816( exit $ac_status )
15817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15818See \`config.log' for more details." >&5
15819echo "$as_me: error: cannot compute sizeof (int), 77
15820See \`config.log' for more details." >&2;}
15821 { (exit 1); exit 1; }; }
15822fi
32ddf007 15823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15824fi
15825fi
15826rm -f conftest.val
6f72b082 15827else
a0b9e27f 15828 ac_cv_sizeof_int=0
21d1c967 15829fi
698dcdb6 15830fi
e6cc62c6
VS
15831echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15832echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15833cat >>confdefs.h <<_ACEOF
15834#define SIZEOF_INT $ac_cv_sizeof_int
15835_ACEOF
15836
15837
15838echo "$as_me:$LINENO: checking for long" >&5
15839echo $ECHO_N "checking for long... $ECHO_C" >&6
15840if test "${ac_cv_type_long+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842else
15843 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15844/* confdefs.h. */
15845_ACEOF
15846cat confdefs.h >>conftest.$ac_ext
15847cat >>conftest.$ac_ext <<_ACEOF
15848/* end confdefs.h. */
15849$ac_includes_default
15850int
15851main ()
15852{
15853if ((long *) 0)
15854 return 0;
15855if (sizeof (long))
15856 return 0;
15857 ;
15858 return 0;
15859}
15860_ACEOF
15861rm -f conftest.$ac_objext
15862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15863 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15864 ac_status=$?
32ddf007
VS
15865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
e6cc62c6
VS
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
e1293dcf 15870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; } &&
15876 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15882 ac_cv_type_long=yes
15883else
15884 echo "$as_me: failed program was:" >&5
15885sed 's/^/| /' conftest.$ac_ext >&5
15886
15887ac_cv_type_long=no
15888fi
32ddf007 15889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15890fi
15891echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15892echo "${ECHO_T}$ac_cv_type_long" >&6
15893
15894echo "$as_me:$LINENO: checking size of long" >&5
15895echo $ECHO_N "checking size of long... $ECHO_C" >&6
15896if test "${ac_cv_sizeof_long+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898else
15899 if test "$ac_cv_type_long" = yes; then
15900 # The cast to unsigned long works around a bug in the HP C Compiler
15901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15903 # This bug is HP SR number 8606223364.
15904 if test "$cross_compiling" = yes; then
15905 # Depending upon the size, compute the lo and hi bounds.
15906cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15907/* confdefs.h. */
15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
15912$ac_includes_default
15913int
15914main ()
15915{
15916static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15917test_array [0] = 0
15918
15919 ;
15920 return 0;
15921}
15922_ACEOF
15923rm -f conftest.$ac_objext
15924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15925 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15926 ac_status=$?
32ddf007
VS
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
e6cc62c6
VS
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } &&
e1293dcf 15932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 ac_lo=0 ac_mid=0
15945 while :; do
15946 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15947/* confdefs.h. */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h. */
15952$ac_includes_default
15953int
15954main ()
15955{
15956static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15957test_array [0] = 0
4f14bcd8 15958
e6cc62c6
VS
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext
15964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15965 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15966 ac_status=$?
32ddf007
VS
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
e6cc62c6
VS
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
e1293dcf 15972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15984 ac_hi=$ac_mid; break
15985else
15986 echo "$as_me: failed program was:" >&5
15987sed 's/^/| /' conftest.$ac_ext >&5
15988
15989ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15990 if test $ac_lo -le $ac_mid; then
15991 ac_lo= ac_hi=
15992 break
15993 fi
15994 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15995fi
32ddf007 15996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15997 done
15998else
15999 echo "$as_me: failed program was:" >&5
16000sed 's/^/| /' conftest.$ac_ext >&5
16001
16002cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008$ac_includes_default
16009int
16010main ()
16011{
16012static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16013test_array [0] = 0
4f14bcd8 16014
e6cc62c6
VS
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext
16020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16021 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16022 ac_status=$?
32ddf007
VS
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
e6cc62c6
VS
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
e1293dcf 16028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_hi=-1 ac_mid=-1
16041 while :; do
16042 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
16048$ac_includes_default
16049int
16050main ()
16051{
16052static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16053test_array [0] = 0
5c6fa7d2 16054
e6cc62c6
VS
16055 ;
16056 return 0;
16057}
16058_ACEOF
16059rm -f conftest.$ac_objext
16060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16061 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16062 ac_status=$?
32ddf007
VS
16063 grep -v '^ *+' conftest.er1 >conftest.err
16064 rm -f conftest.er1
16065 cat conftest.err >&5
e6cc62c6
VS
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
e1293dcf 16068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_lo=$ac_mid; break
16081else
16082 echo "$as_me: failed program was:" >&5
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
16085ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16086 if test $ac_mid -le $ac_hi; then
16087 ac_lo= ac_hi=
16088 break
16089 fi
16090 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16091fi
32ddf007 16092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16093 done
247f5006 16094else
e6cc62c6
VS
16095 echo "$as_me: failed program was:" >&5
16096sed 's/^/| /' conftest.$ac_ext >&5
16097
16098ac_lo= ac_hi=
16099fi
32ddf007 16100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16101fi
32ddf007 16102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16103# Binary search between lo and hi bounds.
16104while test "x$ac_lo" != "x$ac_hi"; do
16105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16106 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16107/* confdefs.h. */
16108_ACEOF
16109cat confdefs.h >>conftest.$ac_ext
16110cat >>conftest.$ac_ext <<_ACEOF
16111/* end confdefs.h. */
16112$ac_includes_default
16113int
16114main ()
16115{
16116static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16117test_array [0] = 0
16118
16119 ;
16120 return 0;
16121}
16122_ACEOF
16123rm -f conftest.$ac_objext
16124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16125 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16126 ac_status=$?
32ddf007
VS
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
e6cc62c6
VS
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
e1293dcf 16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_hi=$ac_mid
16145else
16146 echo "$as_me: failed program was:" >&5
16147sed 's/^/| /' conftest.$ac_ext >&5
16148
16149ac_lo=`expr '(' $ac_mid ')' + 1`
16150fi
32ddf007 16151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16152done
16153case $ac_lo in
16154?*) ac_cv_sizeof_long=$ac_lo;;
16155'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16156See \`config.log' for more details." >&5
16157echo "$as_me: error: cannot compute sizeof (long), 77
16158See \`config.log' for more details." >&2;}
16159 { (exit 1); exit 1; }; } ;;
16160esac
247f5006 16161else
e6cc62c6 16162 if test "$cross_compiling" = yes; then
e1293dcf
RL
16163 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16164echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
16165 { (exit 1); exit 1; }; }
16166else
16167 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16168/* confdefs.h. */
16169_ACEOF
16170cat confdefs.h >>conftest.$ac_ext
16171cat >>conftest.$ac_ext <<_ACEOF
16172/* end confdefs.h. */
16173$ac_includes_default
16174long longval () { return (long) (sizeof (long)); }
16175unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16176#include <stdio.h>
e6cc62c6
VS
16177#include <stdlib.h>
16178int
16179main ()
247f5006 16180{
e6cc62c6
VS
16181
16182 FILE *f = fopen ("conftest.val", "w");
16183 if (! f)
16184 exit (1);
16185 if (((long) (sizeof (long))) < 0)
16186 {
16187 long i = longval ();
16188 if (i != ((long) (sizeof (long))))
16189 exit (1);
16190 fprintf (f, "%ld\n", i);
16191 }
16192 else
16193 {
16194 unsigned long i = ulongval ();
16195 if (i != ((long) (sizeof (long))))
16196 exit (1);
16197 fprintf (f, "%lu\n", i);
16198 }
16199 exit (ferror (f) || fclose (f) != 0);
16200
16201 ;
16202 return 0;
247f5006 16203}
e6cc62c6
VS
16204_ACEOF
16205rm -f conftest$ac_exeext
16206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16207 (eval $ac_link) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_sizeof_long=`cat conftest.val`
16217else
16218 echo "$as_me: program exited with status $ac_status" >&5
16219echo "$as_me: failed program was:" >&5
16220sed 's/^/| /' conftest.$ac_ext >&5
16221
16222( exit $ac_status )
16223{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16224See \`config.log' for more details." >&5
16225echo "$as_me: error: cannot compute sizeof (long), 77
16226See \`config.log' for more details." >&2;}
16227 { (exit 1); exit 1; }; }
16228fi
32ddf007 16229rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16230fi
16231fi
16232rm -f conftest.val
247f5006 16233else
a0b9e27f 16234 ac_cv_sizeof_long=0
247f5006 16235fi
247f5006 16236fi
e6cc62c6
VS
16237echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16238echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16239cat >>confdefs.h <<_ACEOF
a0b9e27f 16240#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16241_ACEOF
247f5006 16242
a0b9e27f 16243
ecfd48ca
VZ
16244echo "$as_me:$LINENO: checking for size_t" >&5
16245echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16246if test "${ac_cv_type_size_t+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16248else
16249 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16250/* confdefs.h. */
16251_ACEOF
16252cat confdefs.h >>conftest.$ac_ext
16253cat >>conftest.$ac_ext <<_ACEOF
16254/* end confdefs.h. */
16255$ac_includes_default
16256int
16257main ()
16258{
16259if ((size_t *) 0)
16260 return 0;
16261if (sizeof (size_t))
16262 return 0;
16263 ;
16264 return 0;
16265}
16266_ACEOF
16267rm -f conftest.$ac_objext
16268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16269 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16270 ac_status=$?
32ddf007
VS
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
ecfd48ca
VZ
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
e1293dcf 16276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_type_size_t=yes
16289else
16290 echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
16293ac_cv_type_size_t=no
16294fi
32ddf007 16295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16296fi
16297echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16298echo "${ECHO_T}$ac_cv_type_size_t" >&6
16299
16300echo "$as_me:$LINENO: checking size of size_t" >&5
16301echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16302if test "${ac_cv_sizeof_size_t+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305 if test "$ac_cv_type_size_t" = yes; then
16306 # The cast to unsigned long works around a bug in the HP C Compiler
16307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16309 # This bug is HP SR number 8606223364.
16310 if test "$cross_compiling" = yes; then
16311 # Depending upon the size, compute the lo and hi bounds.
16312cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16313/* confdefs.h. */
16314_ACEOF
16315cat confdefs.h >>conftest.$ac_ext
16316cat >>conftest.$ac_ext <<_ACEOF
16317/* end confdefs.h. */
16318$ac_includes_default
16319int
16320main ()
16321{
16322static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16323test_array [0] = 0
16324
16325 ;
16326 return 0;
16327}
16328_ACEOF
16329rm -f conftest.$ac_objext
16330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16331 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16332 ac_status=$?
32ddf007
VS
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
ecfd48ca
VZ
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
e1293dcf 16338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_lo=0 ac_mid=0
16351 while :; do
16352 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358$ac_includes_default
16359int
16360main ()
16361{
16362static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16363test_array [0] = 0
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369rm -f conftest.$ac_objext
16370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16371 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16372 ac_status=$?
32ddf007
VS
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
ecfd48ca
VZ
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
e1293dcf 16378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_hi=$ac_mid; break
16391else
16392 echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395ac_lo=`expr $ac_mid + 1`
32ddf007
VS
16396 if test $ac_lo -le $ac_mid; then
16397 ac_lo= ac_hi=
16398 break
16399 fi
16400 ac_mid=`expr 2 '*' $ac_mid + 1`
ecfd48ca 16401fi
32ddf007 16402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16403 done
16404else
16405 echo "$as_me: failed program was:" >&5
16406sed 's/^/| /' conftest.$ac_ext >&5
16407
16408cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
16413/* end confdefs.h. */
16414$ac_includes_default
16415int
16416main ()
16417{
16418static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16419test_array [0] = 0
16420
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16427 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16428 ac_status=$?
32ddf007
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
ecfd48ca
VZ
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
e1293dcf 16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_hi=-1 ac_mid=-1
16447 while :; do
16448 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16449/* confdefs.h. */
16450_ACEOF
16451cat confdefs.h >>conftest.$ac_ext
16452cat >>conftest.$ac_ext <<_ACEOF
16453/* end confdefs.h. */
16454$ac_includes_default
16455int
16456main ()
16457{
16458static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16459test_array [0] = 0
16460
16461 ;
16462 return 0;
16463}
16464_ACEOF
16465rm -f conftest.$ac_objext
16466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16467 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16468 ac_status=$?
32ddf007
VS
16469 grep -v '^ *+' conftest.er1 >conftest.err
16470 rm -f conftest.er1
16471 cat conftest.err >&5
ecfd48ca
VZ
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
e1293dcf 16474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_lo=$ac_mid; break
16487else
16488 echo "$as_me: failed program was:" >&5
16489sed 's/^/| /' conftest.$ac_ext >&5
16490
16491ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16492 if test $ac_mid -le $ac_hi; then
16493 ac_lo= ac_hi=
16494 break
16495 fi
16496 ac_mid=`expr 2 '*' $ac_mid`
ecfd48ca 16497fi
32ddf007 16498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16499 done
16500else
16501 echo "$as_me: failed program was:" >&5
16502sed 's/^/| /' conftest.$ac_ext >&5
16503
16504ac_lo= ac_hi=
16505fi
32ddf007 16506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca 16507fi
32ddf007 16508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16509# Binary search between lo and hi bounds.
16510while test "x$ac_lo" != "x$ac_hi"; do
16511 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16512 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
16518$ac_includes_default
16519int
16520main ()
16521{
16522static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16523test_array [0] = 0
16524
16525 ;
16526 return 0;
16527}
16528_ACEOF
16529rm -f conftest.$ac_objext
16530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16531 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16532 ac_status=$?
32ddf007
VS
16533 grep -v '^ *+' conftest.er1 >conftest.err
16534 rm -f conftest.er1
16535 cat conftest.err >&5
ecfd48ca
VZ
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
e1293dcf 16538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_hi=$ac_mid
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555ac_lo=`expr '(' $ac_mid ')' + 1`
16556fi
32ddf007 16557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16558done
16559case $ac_lo in
16560?*) ac_cv_sizeof_size_t=$ac_lo;;
16561'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16562See \`config.log' for more details." >&5
16563echo "$as_me: error: cannot compute sizeof (size_t), 77
16564See \`config.log' for more details." >&2;}
16565 { (exit 1); exit 1; }; } ;;
16566esac
16567else
16568 if test "$cross_compiling" = yes; then
e1293dcf
RL
16569 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16570echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
ecfd48ca
VZ
16571 { (exit 1); exit 1; }; }
16572else
16573 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16574/* confdefs.h. */
16575_ACEOF
16576cat confdefs.h >>conftest.$ac_ext
16577cat >>conftest.$ac_ext <<_ACEOF
16578/* end confdefs.h. */
16579$ac_includes_default
16580long longval () { return (long) (sizeof (size_t)); }
16581unsigned long ulongval () { return (long) (sizeof (size_t)); }
16582#include <stdio.h>
16583#include <stdlib.h>
16584int
16585main ()
16586{
16587
16588 FILE *f = fopen ("conftest.val", "w");
16589 if (! f)
16590 exit (1);
16591 if (((long) (sizeof (size_t))) < 0)
16592 {
16593 long i = longval ();
16594 if (i != ((long) (sizeof (size_t))))
16595 exit (1);
16596 fprintf (f, "%ld\n", i);
16597 }
16598 else
16599 {
16600 unsigned long i = ulongval ();
16601 if (i != ((long) (sizeof (size_t))))
16602 exit (1);
16603 fprintf (f, "%lu\n", i);
16604 }
16605 exit (ferror (f) || fclose (f) != 0);
16606
16607 ;
16608 return 0;
16609}
16610_ACEOF
16611rm -f conftest$ac_exeext
16612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 ac_cv_sizeof_size_t=`cat conftest.val`
16623else
16624 echo "$as_me: program exited with status $ac_status" >&5
16625echo "$as_me: failed program was:" >&5
16626sed 's/^/| /' conftest.$ac_ext >&5
16627
16628( exit $ac_status )
16629{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16630See \`config.log' for more details." >&5
16631echo "$as_me: error: cannot compute sizeof (size_t), 77
16632See \`config.log' for more details." >&2;}
16633 { (exit 1); exit 1; }; }
16634fi
32ddf007 16635rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16636fi
16637fi
16638rm -f conftest.val
16639else
16640 ac_cv_sizeof_size_t=0
16641fi
16642fi
16643echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16644echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16645cat >>confdefs.h <<_ACEOF
16646#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16647_ACEOF
16648
16649
a0b9e27f
MB
16650
16651case "${host}" in
16652 arm-*-linux* )
e6cc62c6
VS
16653 echo "$as_me:$LINENO: checking for long long" >&5
16654echo $ECHO_N "checking for long long... $ECHO_C" >&6
16655if test "${ac_cv_type_long_long+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16657else
16658 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
16664$ac_includes_default
16665int
16666main ()
16667{
16668if ((long long *) 0)
16669 return 0;
16670if (sizeof (long long))
16671 return 0;
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676rm -f conftest.$ac_objext
16677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16678 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16679 ac_status=$?
32ddf007
VS
16680 grep -v '^ *+' conftest.er1 >conftest.err
16681 rm -f conftest.er1
16682 cat conftest.err >&5
e6cc62c6
VS
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
e1293dcf 16685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_cv_type_long_long=yes
16698else
16699 echo "$as_me: failed program was:" >&5
16700sed 's/^/| /' conftest.$ac_ext >&5
16701
16702ac_cv_type_long_long=no
16703fi
32ddf007 16704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16705fi
16706echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16707echo "${ECHO_T}$ac_cv_type_long_long" >&6
16708
16709echo "$as_me:$LINENO: checking size of long long" >&5
16710echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16711if test "${ac_cv_sizeof_long_long+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16713else
16714 if test "$ac_cv_type_long_long" = yes; then
16715 # The cast to unsigned long works around a bug in the HP C Compiler
16716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16718 # This bug is HP SR number 8606223364.
a0b9e27f 16719 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16720 # Depending upon the size, compute the lo and hi bounds.
16721cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16722/* confdefs.h. */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
16726/* end confdefs.h. */
16727$ac_includes_default
16728int
16729main ()
16730{
16731static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16732test_array [0] = 0
16733
16734 ;
16735 return 0;
16736}
16737_ACEOF
16738rm -f conftest.$ac_objext
16739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16740 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16741 ac_status=$?
32ddf007
VS
16742 grep -v '^ *+' conftest.er1 >conftest.err
16743 rm -f conftest.er1
16744 cat conftest.err >&5
e6cc62c6
VS
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } &&
e1293dcf 16747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_lo=0 ac_mid=0
16760 while :; do
16761 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
16767$ac_includes_default
16768int
16769main ()
16770{
16771static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16772test_array [0] = 0
16773
16774 ;
16775 return 0;
16776}
16777_ACEOF
16778rm -f conftest.$ac_objext
16779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16780 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16781 ac_status=$?
32ddf007
VS
16782 grep -v '^ *+' conftest.er1 >conftest.err
16783 rm -f conftest.er1
16784 cat conftest.err >&5
e6cc62c6
VS
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
e1293dcf 16787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_hi=$ac_mid; break
16800else
16801 echo "$as_me: failed program was:" >&5
16802sed 's/^/| /' conftest.$ac_ext >&5
16803
16804ac_lo=`expr $ac_mid + 1`
32ddf007
VS
16805 if test $ac_lo -le $ac_mid; then
16806 ac_lo= ac_hi=
16807 break
16808 fi
16809 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16810fi
32ddf007 16811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16812 done
16813else
16814 echo "$as_me: failed program was:" >&5
16815sed 's/^/| /' conftest.$ac_ext >&5
16816
16817cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
16823$ac_includes_default
16824int
16825main ()
16826{
16827static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16828test_array [0] = 0
16829
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834rm -f conftest.$ac_objext
16835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16836 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16837 ac_status=$?
32ddf007
VS
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
e6cc62c6
VS
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
e1293dcf 16843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_hi=-1 ac_mid=-1
16856 while :; do
16857 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16858/* confdefs.h. */
16859_ACEOF
16860cat confdefs.h >>conftest.$ac_ext
16861cat >>conftest.$ac_ext <<_ACEOF
16862/* end confdefs.h. */
16863$ac_includes_default
16864int
16865main ()
16866{
16867static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16868test_array [0] = 0
16869
16870 ;
16871 return 0;
16872}
16873_ACEOF
16874rm -f conftest.$ac_objext
16875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16876 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16877 ac_status=$?
32ddf007
VS
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
e6cc62c6
VS
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
e1293dcf 16883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_lo=$ac_mid; break
16896else
16897 echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
16900ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16901 if test $ac_mid -le $ac_hi; then
16902 ac_lo= ac_hi=
16903 break
16904 fi
16905 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16906fi
32ddf007 16907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16908 done
16909else
16910 echo "$as_me: failed program was:" >&5
16911sed 's/^/| /' conftest.$ac_ext >&5
16912
16913ac_lo= ac_hi=
16914fi
32ddf007 16915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16916fi
32ddf007 16917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16918# Binary search between lo and hi bounds.
16919while test "x$ac_lo" != "x$ac_hi"; do
16920 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16921 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16922/* confdefs.h. */
16923_ACEOF
16924cat confdefs.h >>conftest.$ac_ext
16925cat >>conftest.$ac_ext <<_ACEOF
16926/* end confdefs.h. */
16927$ac_includes_default
16928int
16929main ()
16930{
16931static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16932test_array [0] = 0
16933
16934 ;
16935 return 0;
16936}
16937_ACEOF
16938rm -f conftest.$ac_objext
16939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16940 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16941 ac_status=$?
32ddf007
VS
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
e6cc62c6
VS
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
e1293dcf 16947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_hi=$ac_mid
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
16964ac_lo=`expr '(' $ac_mid ')' + 1`
16965fi
32ddf007 16966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16967done
16968case $ac_lo in
16969?*) ac_cv_sizeof_long_long=$ac_lo;;
16970'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16971See \`config.log' for more details." >&5
16972echo "$as_me: error: cannot compute sizeof (long long), 77
16973See \`config.log' for more details." >&2;}
16974 { (exit 1); exit 1; }; } ;;
16975esac
a0b9e27f 16976else
e6cc62c6 16977 if test "$cross_compiling" = yes; then
e1293dcf
RL
16978 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16979echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
16980 { (exit 1); exit 1; }; }
16981else
16982 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988$ac_includes_default
16989long longval () { return (long) (sizeof (long long)); }
16990unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16991#include <stdio.h>
e6cc62c6
VS
16992#include <stdlib.h>
16993int
16994main ()
247f5006 16995{
e6cc62c6
VS
16996
16997 FILE *f = fopen ("conftest.val", "w");
16998 if (! f)
16999 exit (1);
17000 if (((long) (sizeof (long long))) < 0)
17001 {
17002 long i = longval ();
17003 if (i != ((long) (sizeof (long long))))
17004 exit (1);
17005 fprintf (f, "%ld\n", i);
17006 }
17007 else
17008 {
17009 unsigned long i = ulongval ();
17010 if (i != ((long) (sizeof (long long))))
17011 exit (1);
17012 fprintf (f, "%lu\n", i);
17013 }
17014 exit (ferror (f) || fclose (f) != 0);
17015
17016 ;
17017 return 0;
247f5006 17018}
e6cc62c6
VS
17019_ACEOF
17020rm -f conftest$ac_exeext
17021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022 (eval $ac_link) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_sizeof_long_long=`cat conftest.val`
17032else
17033 echo "$as_me: program exited with status $ac_status" >&5
17034echo "$as_me: failed program was:" >&5
17035sed 's/^/| /' conftest.$ac_ext >&5
17036
17037( exit $ac_status )
17038{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17039See \`config.log' for more details." >&5
17040echo "$as_me: error: cannot compute sizeof (long long), 77
17041See \`config.log' for more details." >&2;}
17042 { (exit 1); exit 1; }; }
17043fi
32ddf007 17044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17045fi
17046fi
17047rm -f conftest.val
7b4a847f 17048else
a0b9e27f 17049 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
17050fi
17051fi
e6cc62c6
VS
17052echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17053echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17054cat >>confdefs.h <<_ACEOF
17055#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17056_ACEOF
17057
17058
17059 ;;
17060 *-hp-hpux* )
17061 echo "$as_me:$LINENO: checking for long long" >&5
17062echo $ECHO_N "checking for long long... $ECHO_C" >&6
17063if test "${ac_cv_type_long_long+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
17072$ac_includes_default
17073int
17074main ()
17075{
17076if ((long long *) 0)
17077 return 0;
17078if (sizeof (long long))
17079 return 0;
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084rm -f conftest.$ac_objext
17085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17086 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17087 ac_status=$?
32ddf007
VS
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
e6cc62c6
VS
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
e1293dcf 17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_type_long_long=yes
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
17110ac_cv_type_long_long=no
17111fi
32ddf007 17112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17113fi
17114echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17115echo "${ECHO_T}$ac_cv_type_long_long" >&6
17116
17117echo "$as_me:$LINENO: checking size of long long" >&5
17118echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17119if test "${ac_cv_sizeof_long_long+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17121else
17122 if test "$ac_cv_type_long_long" = yes; then
17123 # The cast to unsigned long works around a bug in the HP C Compiler
17124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17126 # This bug is HP SR number 8606223364.
17127 if test "$cross_compiling" = yes; then
17128 # Depending upon the size, compute the lo and hi bounds.
17129cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17130/* confdefs.h. */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h. */
17135$ac_includes_default
17136int
17137main ()
17138{
17139static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17140test_array [0] = 0
17141
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext
17147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17148 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17149 ac_status=$?
32ddf007
VS
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
e6cc62c6
VS
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
e1293dcf 17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_lo=0 ac_mid=0
17168 while :; do
17169 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
17175$ac_includes_default
17176int
17177main ()
17178{
17179static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17180test_array [0] = 0
8284b0c5 17181
e6cc62c6
VS
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186rm -f conftest.$ac_objext
17187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17188 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17189 ac_status=$?
32ddf007
VS
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
e6cc62c6
VS
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
e1293dcf 17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 ac_hi=$ac_mid; break
17208else
17209 echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212ac_lo=`expr $ac_mid + 1`
32ddf007
VS
17213 if test $ac_lo -le $ac_mid; then
17214 ac_lo= ac_hi=
17215 break
17216 fi
17217 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 17218fi
32ddf007 17219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17220 done
17221else
17222 echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225cat >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))) < 0)];
17236test_array [0] = 0
a0b9e27f 17237
e6cc62c6
VS
17238 ;
17239 return 0;
17240}
17241_ACEOF
17242rm -f conftest.$ac_objext
17243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17244 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17245 ac_status=$?
32ddf007
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); } &&
e1293dcf 17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_hi=-1 ac_mid=-1
17264 while :; do
17265 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
17271$ac_includes_default
17272int
17273main ()
17274{
17275static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17276test_array [0] = 0
a0b9e27f 17277
e6cc62c6
VS
17278 ;
17279 return 0;
17280}
17281_ACEOF
17282rm -f conftest.$ac_objext
17283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17284 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17285 ac_status=$?
32ddf007
VS
17286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
e6cc62c6
VS
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } &&
e1293dcf 17291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_lo=$ac_mid; break
17304else
17305 echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
17309 if test $ac_mid -le $ac_hi; then
17310 ac_lo= ac_hi=
17311 break
17312 fi
17313 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17314fi
32ddf007 17315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17316 done
8284b0c5 17317else
e6cc62c6
VS
17318 echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321ac_lo= ac_hi=
17322fi
32ddf007 17323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17324fi
32ddf007 17325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17326# Binary search between lo and hi bounds.
17327while test "x$ac_lo" != "x$ac_hi"; do
17328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17329 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17330/* confdefs.h. */
17331_ACEOF
17332cat confdefs.h >>conftest.$ac_ext
17333cat >>conftest.$ac_ext <<_ACEOF
17334/* end confdefs.h. */
17335$ac_includes_default
17336int
17337main ()
17338{
17339static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17340test_array [0] = 0
17341
17342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext
17347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17348 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17349 ac_status=$?
32ddf007
VS
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
e6cc62c6
VS
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
e1293dcf 17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_hi=$ac_mid
17368else
17369 echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372ac_lo=`expr '(' $ac_mid ')' + 1`
17373fi
32ddf007 17374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17375done
17376case $ac_lo in
17377?*) ac_cv_sizeof_long_long=$ac_lo;;
17378'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17379See \`config.log' for more details." >&5
17380echo "$as_me: error: cannot compute sizeof (long long), 77
17381See \`config.log' for more details." >&2;}
17382 { (exit 1); exit 1; }; } ;;
17383esac
8284b0c5 17384else
e6cc62c6 17385 if test "$cross_compiling" = yes; then
e1293dcf
RL
17386 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17387echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
17388 { (exit 1); exit 1; }; }
17389else
17390 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396$ac_includes_default
17397long longval () { return (long) (sizeof (long long)); }
17398unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 17399#include <stdio.h>
e6cc62c6
VS
17400#include <stdlib.h>
17401int
17402main ()
8284b0c5 17403{
e6cc62c6
VS
17404
17405 FILE *f = fopen ("conftest.val", "w");
17406 if (! f)
17407 exit (1);
17408 if (((long) (sizeof (long long))) < 0)
17409 {
17410 long i = longval ();
17411 if (i != ((long) (sizeof (long long))))
17412 exit (1);
17413 fprintf (f, "%ld\n", i);
17414 }
17415 else
17416 {
17417 unsigned long i = ulongval ();
17418 if (i != ((long) (sizeof (long long))))
17419 exit (1);
17420 fprintf (f, "%lu\n", i);
17421 }
17422 exit (ferror (f) || fclose (f) != 0);
17423
17424 ;
17425 return 0;
8284b0c5 17426}
e6cc62c6
VS
17427_ACEOF
17428rm -f conftest$ac_exeext
17429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_sizeof_long_long=`cat conftest.val`
17440else
17441 echo "$as_me: program exited with status $ac_status" >&5
17442echo "$as_me: failed program was:" >&5
17443sed 's/^/| /' conftest.$ac_ext >&5
17444
17445( exit $ac_status )
17446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17447See \`config.log' for more details." >&5
17448echo "$as_me: error: cannot compute sizeof (long long), 77
17449See \`config.log' for more details." >&2;}
17450 { (exit 1); exit 1; }; }
17451fi
32ddf007 17452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17453fi
17454fi
17455rm -f conftest.val
5c6fa7d2
RR
17456else
17457 ac_cv_sizeof_long_long=0
52127426 17458fi
4f57cf11 17459fi
e6cc62c6
VS
17460echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17461echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17462cat >>confdefs.h <<_ACEOF
4f57cf11 17463#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17464_ACEOF
4f57cf11
GD
17465
17466
17467 if test "$ac_cv_sizeof_long_long" != "0"; then
17468 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17469 fi
17470 ;;
17471 * )
e6cc62c6
VS
17472 echo "$as_me:$LINENO: checking for long long" >&5
17473echo $ECHO_N "checking for long long... $ECHO_C" >&6
17474if test "${ac_cv_type_long_long+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476else
17477 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
17483$ac_includes_default
17484int
17485main ()
17486{
17487if ((long long *) 0)
17488 return 0;
17489if (sizeof (long long))
17490 return 0;
17491 ;
17492 return 0;
17493}
17494_ACEOF
17495rm -f conftest.$ac_objext
17496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17497 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17498 ac_status=$?
32ddf007
VS
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
e6cc62c6
VS
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
e1293dcf 17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_type_long_long=yes
17517else
17518 echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
17520
17521ac_cv_type_long_long=no
17522fi
32ddf007 17523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17524fi
17525echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17526echo "${ECHO_T}$ac_cv_type_long_long" >&6
17527
17528echo "$as_me:$LINENO: checking size of long long" >&5
17529echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17530if test "${ac_cv_sizeof_long_long+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17532else
17533 if test "$ac_cv_type_long_long" = yes; then
17534 # The cast to unsigned long works around a bug in the HP C Compiler
17535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17537 # This bug is HP SR number 8606223364.
4f57cf11 17538 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17539 # Depending upon the size, compute the lo and hi bounds.
17540cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546$ac_includes_default
17547int
17548main ()
17549{
17550static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17551test_array [0] = 0
17552
17553 ;
17554 return 0;
17555}
17556_ACEOF
17557rm -f conftest.$ac_objext
17558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17559 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17560 ac_status=$?
32ddf007
VS
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
e6cc62c6
VS
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } &&
e1293dcf 17566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_lo=0 ac_mid=0
17579 while :; do
17580 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17581/* confdefs.h. */
17582_ACEOF
17583cat confdefs.h >>conftest.$ac_ext
17584cat >>conftest.$ac_ext <<_ACEOF
17585/* end confdefs.h. */
17586$ac_includes_default
17587int
17588main ()
17589{
17590static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17591test_array [0] = 0
17592
17593 ;
17594 return 0;
17595}
17596_ACEOF
17597rm -f conftest.$ac_objext
17598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17599 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17600 ac_status=$?
32ddf007
VS
17601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
e6cc62c6
VS
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
e1293dcf 17606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_hi=$ac_mid; break
17619else
17620 echo "$as_me: failed program was:" >&5
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
17623ac_lo=`expr $ac_mid + 1`
32ddf007
VS
17624 if test $ac_lo -le $ac_mid; then
17625 ac_lo= ac_hi=
17626 break
17627 fi
17628 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17629fi
32ddf007 17630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17631 done
17632else
17633 echo "$as_me: failed program was:" >&5
17634sed 's/^/| /' conftest.$ac_ext >&5
17635
17636cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17637/* confdefs.h. */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h. */
17642$ac_includes_default
17643int
17644main ()
17645{
17646static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17647test_array [0] = 0
17648
17649 ;
17650 return 0;
17651}
17652_ACEOF
17653rm -f conftest.$ac_objext
17654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17655 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17656 ac_status=$?
32ddf007
VS
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
e6cc62c6
VS
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
e1293dcf 17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_hi=-1 ac_mid=-1
17675 while :; do
17676 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17677/* confdefs.h. */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h. */
17682$ac_includes_default
17683int
17684main ()
17685{
17686static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17687test_array [0] = 0
17688
17689 ;
17690 return 0;
17691}
17692_ACEOF
17693rm -f conftest.$ac_objext
17694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17695 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17696 ac_status=$?
32ddf007
VS
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
e6cc62c6
VS
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
e1293dcf 17702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_lo=$ac_mid; break
17715else
17716 echo "$as_me: failed program was:" >&5
17717sed 's/^/| /' conftest.$ac_ext >&5
17718
17719ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
17720 if test $ac_mid -le $ac_hi; then
17721 ac_lo= ac_hi=
17722 break
17723 fi
17724 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17725fi
32ddf007 17726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17727 done
4f57cf11 17728else
e6cc62c6
VS
17729 echo "$as_me: failed program was:" >&5
17730sed 's/^/| /' conftest.$ac_ext >&5
17731
17732ac_lo= ac_hi=
17733fi
32ddf007 17734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17735fi
32ddf007 17736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17737# Binary search between lo and hi bounds.
17738while test "x$ac_lo" != "x$ac_hi"; do
17739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17740 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746$ac_includes_default
17747int
17748main ()
17749{
17750static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17751test_array [0] = 0
17752
17753 ;
17754 return 0;
17755}
17756_ACEOF
17757rm -f conftest.$ac_objext
17758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17759 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17760 ac_status=$?
32ddf007
VS
17761 grep -v '^ *+' conftest.er1 >conftest.err
17762 rm -f conftest.er1
17763 cat conftest.err >&5
e6cc62c6
VS
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
e1293dcf 17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_hi=$ac_mid
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783ac_lo=`expr '(' $ac_mid ')' + 1`
17784fi
32ddf007 17785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17786done
17787case $ac_lo in
17788?*) ac_cv_sizeof_long_long=$ac_lo;;
17789'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17790See \`config.log' for more details." >&5
17791echo "$as_me: error: cannot compute sizeof (long long), 77
17792See \`config.log' for more details." >&2;}
17793 { (exit 1); exit 1; }; } ;;
17794esac
17795else
17796 if test "$cross_compiling" = yes; then
e1293dcf
RL
17797 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17798echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
17799 { (exit 1); exit 1; }; }
17800else
17801 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17802/* confdefs.h. */
17803_ACEOF
17804cat confdefs.h >>conftest.$ac_ext
17805cat >>conftest.$ac_ext <<_ACEOF
17806/* end confdefs.h. */
17807$ac_includes_default
17808long longval () { return (long) (sizeof (long long)); }
17809unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17810#include <stdio.h>
e6cc62c6
VS
17811#include <stdlib.h>
17812int
17813main ()
4f57cf11 17814{
e6cc62c6
VS
17815
17816 FILE *f = fopen ("conftest.val", "w");
17817 if (! f)
17818 exit (1);
17819 if (((long) (sizeof (long long))) < 0)
17820 {
17821 long i = longval ();
17822 if (i != ((long) (sizeof (long long))))
17823 exit (1);
17824 fprintf (f, "%ld\n", i);
17825 }
17826 else
17827 {
17828 unsigned long i = ulongval ();
17829 if (i != ((long) (sizeof (long long))))
17830 exit (1);
17831 fprintf (f, "%lu\n", i);
17832 }
17833 exit (ferror (f) || fclose (f) != 0);
17834
17835 ;
17836 return 0;
4f57cf11 17837}
e6cc62c6
VS
17838_ACEOF
17839rm -f conftest$ac_exeext
17840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841 (eval $ac_link) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_cv_sizeof_long_long=`cat conftest.val`
17851else
17852 echo "$as_me: program exited with status $ac_status" >&5
17853echo "$as_me: failed program was:" >&5
17854sed 's/^/| /' conftest.$ac_ext >&5
17855
17856( exit $ac_status )
17857{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17858See \`config.log' for more details." >&5
17859echo "$as_me: error: cannot compute sizeof (long long), 77
17860See \`config.log' for more details." >&2;}
17861 { (exit 1); exit 1; }; }
17862fi
32ddf007 17863rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17864fi
17865fi
17866rm -f conftest.val
4f57cf11 17867else
4f57cf11
GD
17868 ac_cv_sizeof_long_long=0
17869fi
7b4a847f 17870fi
e6cc62c6
VS
17871echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17872echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17873cat >>confdefs.h <<_ACEOF
21d1c967 17874#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17875_ACEOF
9e691f46 17876
8284b0c5 17877
21d1c967
GD
17878esac
17879
e6cc62c6
VS
17880echo "$as_me:$LINENO: checking size of wchar_t" >&5
17881echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17882if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17884else
e6cc62c6 17885
21d1c967 17886 if test "$cross_compiling" = yes; then
e6cc62c6 17887
2b5f62a0
VZ
17888 case "${host}" in
17889 *-pc-msdosdjgpp )
17890 wx_cv_sizeof_wchar_t=0
17891 ;;
17892 * )
17893 wx_cv_sizeof_wchar_t=4
17894 ;;
17895 esac
e6cc62c6
VS
17896
17897
6f72b082 17898else
e6cc62c6 17899 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17900/* confdefs.h. */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h. */
21d1c967 17905
2b5f62a0
VZ
17906 /* DJGPP only has fake wchar_t: */
17907 #ifdef __DJGPP__
17908 # error "fake wchar_t"
17909 #endif
21d1c967
GD
17910 #ifdef HAVE_WCHAR_H
17911 # ifdef __CYGWIN__
17912 # include <stddef.h>
17913 # endif
17914 # include <wchar.h>
17915 #endif
17916 #ifdef HAVE_STDLIB_H
17917 # include <stdlib.h>
17918 #endif
17919 #include <stdio.h>
17920 int main()
17921 {
17922 FILE *f=fopen("conftestval", "w");
17923 if (!f) exit(1);
17924 fprintf(f, "%i", sizeof(wchar_t));
17925 exit(0);
17926 }
e6cc62c6
VS
17927
17928_ACEOF
17929rm -f conftest$ac_exeext
17930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
21d1c967 17940 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17941else
e6cc62c6
VS
17942 echo "$as_me: program exited with status $ac_status" >&5
17943echo "$as_me: failed program was:" >&5
17944sed 's/^/| /' conftest.$ac_ext >&5
17945
17946( exit $ac_status )
17947wx_cv_sizeof_wchar_t=0
6f72b082 17948fi
32ddf007 17949rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17950fi
6f72b082 17951
3f345b47 17952fi
e6cc62c6
VS
17953echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17954echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17955
e6cc62c6 17956cat >>confdefs.h <<_ACEOF
21d1c967 17957#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17958_ACEOF
90dd450c 17959
8284b0c5 17960
21d1c967
GD
17961# Check whether --enable-largefile or --disable-largefile was given.
17962if test "${enable_largefile+set}" = set; then
17963 enableval="$enable_largefile"
3f345b47 17964
e6cc62c6 17965fi;
21d1c967
GD
17966if test "$enable_largefile" != no; then
17967 wx_largefile=no
e6cc62c6
VS
17968
17969 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17970echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17971if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17973else
17974
17975 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17976/* confdefs.h. */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h. */
21d1c967
GD
17981#define _FILE_OFFSET_BITS 64
17982 #include <sys/types.h>
e6cc62c6
VS
17983int
17984main ()
17985{
21d1c967
GD
17986typedef struct {
17987 unsigned int field: sizeof(off_t) == 8;
17988} wxlf;
17989
e6cc62c6
VS
17990 ;
17991 return 0;
17992}
17993_ACEOF
17994rm -f conftest.$ac_objext
17995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17996 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17997 ac_status=$?
32ddf007
VS
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
e6cc62c6
VS
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
e1293dcf 18003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
21d1c967 18015 ac_cv_sys_file_offset_bits=64
f6bcfd97 18016else
e6cc62c6
VS
18017 echo "$as_me: failed program was:" >&5
18018sed 's/^/| /' conftest.$ac_ext >&5
18019
18020ac_cv_sys_file_offset_bits=no
247f5006 18021fi
32ddf007 18022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18023
a0b9e27f 18024
e6cc62c6
VS
18025fi
18026echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18027echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
18028
18029 if test "$ac_cv_sys_file_offset_bits" != no; then
18030 wx_largefile=yes
e6cc62c6 18031 cat >>confdefs.h <<_ACEOF
21d1c967 18032#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 18033_ACEOF
21d1c967
GD
18034
18035 fi
18036
18037 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
18038
18039 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18040echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18041if test "${ac_cv_sys_large_files+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043else
18044
18045 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
21d1c967
GD
18051#define _LARGE_FILES 1
18052 #include <sys/types.h>
e6cc62c6
VS
18053int
18054main ()
18055{
21d1c967
GD
18056typedef struct {
18057 unsigned int field: sizeof(off_t) == 8;
18058} wxlf;
18059
e6cc62c6
VS
18060 ;
18061 return 0;
18062}
18063_ACEOF
18064rm -f conftest.$ac_objext
18065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18066 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18067 ac_status=$?
32ddf007
VS
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
e6cc62c6
VS
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } &&
e1293dcf 18073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
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); }; } &&
18079 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
21d1c967 18085 ac_cv_sys_large_files=1
f6bcfd97 18086else
e6cc62c6
VS
18087 echo "$as_me: failed program was:" >&5
18088sed 's/^/| /' conftest.$ac_ext >&5
18089
18090ac_cv_sys_large_files=no
247f5006 18091fi
32ddf007 18092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18093
e6cc62c6
VS
18094
18095fi
18096echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18097echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 18098
21d1c967
GD
18099 if test "$ac_cv_sys_large_files" != no; then
18100 wx_largefile=yes
e6cc62c6 18101 cat >>confdefs.h <<_ACEOF
21d1c967 18102#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 18103_ACEOF
90dd450c 18104
90dd450c
VZ
18105 fi
18106
90dd450c 18107 fi
90dd450c 18108
e6cc62c6
VS
18109 echo "$as_me:$LINENO: checking if large file support is available" >&5
18110echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 18111 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 18112 cat >>confdefs.h <<\_ACEOF
21d1c967 18113#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 18114_ACEOF
90dd450c 18115
90dd450c 18116 fi
e6cc62c6
VS
18117 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18118echo "${ECHO_T}$wx_largefile" >&6
21d1c967 18119fi
90dd450c 18120
8284b0c5 18121
f02444d0 18122if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
18123 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18124 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 18125 else
e26c13cf 18126 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 18127 fi
e26c13cf 18128 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
18129fi
18130
e6cc62c6
VS
18131echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18132echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18133if test "${ac_cv_c_bigendian+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 18135else
21d1c967
GD
18136 ac_cv_c_bigendian=unknown
18137# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 18138cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18139/* confdefs.h. */
18140_ACEOF
18141cat confdefs.h >>conftest.$ac_ext
18142cat >>conftest.$ac_ext <<_ACEOF
18143/* end confdefs.h. */
21d1c967
GD
18144#include <sys/types.h>
18145#include <sys/param.h>
e6cc62c6
VS
18146int
18147main ()
18148{
21d1c967
GD
18149
18150#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18151 bogus endian macros
18152#endif
e6cc62c6
VS
18153 ;
18154 return 0;
18155}
18156_ACEOF
18157rm -f conftest.$ac_objext
18158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18159 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18160 ac_status=$?
32ddf007
VS
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
e6cc62c6
VS
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
e1293dcf 18166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; } &&
18172 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
21d1c967 18178 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 18179cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18180/* confdefs.h. */
18181_ACEOF
18182cat confdefs.h >>conftest.$ac_ext
18183cat >>conftest.$ac_ext <<_ACEOF
18184/* end confdefs.h. */
21d1c967
GD
18185#include <sys/types.h>
18186#include <sys/param.h>
e6cc62c6
VS
18187int
18188main ()
18189{
21d1c967
GD
18190
18191#if BYTE_ORDER != BIG_ENDIAN
18192 not big endian
18193#endif
e6cc62c6
VS
18194 ;
18195 return 0;
18196}
18197_ACEOF
18198rm -f conftest.$ac_objext
18199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18200 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18201 ac_status=$?
32ddf007
VS
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
e6cc62c6
VS
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
e1293dcf 18207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
21d1c967 18219 ac_cv_c_bigendian=yes
3f345b47 18220else
e6cc62c6
VS
18221 echo "$as_me: failed program was:" >&5
18222sed 's/^/| /' conftest.$ac_ext >&5
18223
18224ac_cv_c_bigendian=no
3f345b47 18225fi
32ddf007 18226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 18227else
e6cc62c6
VS
18228 echo "$as_me: failed program was:" >&5
18229sed 's/^/| /' conftest.$ac_ext >&5
18230
3f345b47 18231fi
32ddf007 18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18233if test $ac_cv_c_bigendian = unknown; then
18234if test "$cross_compiling" = yes; then
18235 ac_cv_c_bigendian=unknown
10f2d63a 18236else
e6cc62c6 18237 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18238/* confdefs.h. */
18239_ACEOF
18240cat confdefs.h >>conftest.$ac_ext
18241cat >>conftest.$ac_ext <<_ACEOF
18242/* end confdefs.h. */
21d1c967
GD
18243main () {
18244 /* Are we little or big endian? From Harbison&Steele. */
18245 union
18246 {
18247 long l;
18248 char c[sizeof (long)];
18249 } u;
18250 u.l = 1;
18251 exit (u.c[sizeof (long) - 1] == 1);
18252}
e6cc62c6
VS
18253_ACEOF
18254rm -f conftest$ac_exeext
18255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18256 (eval $ac_link) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
21d1c967 18265 ac_cv_c_bigendian=no
3f345b47 18266else
e6cc62c6
VS
18267 echo "$as_me: program exited with status $ac_status" >&5
18268echo "$as_me: failed program was:" >&5
18269sed 's/^/| /' conftest.$ac_ext >&5
18270
18271( exit $ac_status )
18272ac_cv_c_bigendian=yes
247f5006 18273fi
32ddf007 18274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 18275fi
3f345b47 18276fi
8168de4c 18277fi
e6cc62c6
VS
18278echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18279echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 18280if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
18281 { 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
18282echo "$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
18283fi
18284if test $ac_cv_c_bigendian = yes; then
e6cc62c6 18285 cat >>confdefs.h <<\_ACEOF
247f5006 18286#define WORDS_BIGENDIAN 1
e6cc62c6 18287_ACEOF
247f5006
VZ
18288
18289fi
18290
18291
e6cc62c6
VS
18292ac_ext=cc
18293ac_cpp='$CXXCPP $CPPFLAGS'
18294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18297echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18298echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 18299if test -z "$CXXCPP"; then
e6cc62c6
VS
18300 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18302else
18303 # Double quotes because CXXCPP needs to be expanded
18304 for CXXCPP in "$CXX -E" "/lib/cpp"
18305 do
18306 ac_preproc_ok=false
18307for ac_cxx_preproc_warn_flag in '' yes
18308do
18309 # Use a header file that comes with gcc, so configuring glibc
18310 # with a fresh cross-compiler works.
18311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18312 # <limits.h> exists even on freestanding compilers.
18313 # On the NeXT, cc -E runs the code through the compiler's parser,
18314 # not just through cpp. "Syntax error" is here to catch this case.
18315 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18316/* confdefs.h. */
18317_ACEOF
18318cat confdefs.h >>conftest.$ac_ext
18319cat >>conftest.$ac_ext <<_ACEOF
18320/* end confdefs.h. */
18321#ifdef __STDC__
18322# include <limits.h>
18323#else
18324# include <assert.h>
18325#endif
32ddf007 18326 Syntax error
e6cc62c6
VS
18327_ACEOF
18328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } >/dev/null; then
18336 if test -s conftest.err; then
18337 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18339 else
18340 ac_cpp_err=
18341 fi
247f5006 18342else
e6cc62c6
VS
18343 ac_cpp_err=yes
18344fi
18345if test -z "$ac_cpp_err"; then
18346 :
18347else
18348 echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 # Broken: fails on valid input.
18352continue
18353fi
18354rm -f conftest.err conftest.$ac_ext
18355
18356 # OK, works on sane cases. Now check whether non-existent headers
18357 # can be detected and how.
18358 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
18364#include <ac_nonexistent.h>
18365_ACEOF
18366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18368 ac_status=$?
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } >/dev/null; then
18374 if test -s conftest.err; then
18375 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18376 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18377 else
18378 ac_cpp_err=
18379 fi
18380else
18381 ac_cpp_err=yes
18382fi
18383if test -z "$ac_cpp_err"; then
18384 # Broken: success on invalid input.
18385continue
18386else
18387 echo "$as_me: failed program was:" >&5
18388sed 's/^/| /' conftest.$ac_ext >&5
18389
18390 # Passes both tests.
18391ac_preproc_ok=:
18392break
18393fi
18394rm -f conftest.err conftest.$ac_ext
18395
18396done
18397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18398rm -f conftest.err conftest.$ac_ext
18399if $ac_preproc_ok; then
18400 break
18401fi
18402
18403 done
18404 ac_cv_prog_CXXCPP=$CXXCPP
18405
18406fi
18407 CXXCPP=$ac_cv_prog_CXXCPP
18408else
18409 ac_cv_prog_CXXCPP=$CXXCPP
18410fi
18411echo "$as_me:$LINENO: result: $CXXCPP" >&5
18412echo "${ECHO_T}$CXXCPP" >&6
18413ac_preproc_ok=false
18414for ac_cxx_preproc_warn_flag in '' yes
18415do
18416 # Use a header file that comes with gcc, so configuring glibc
18417 # with a fresh cross-compiler works.
18418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18419 # <limits.h> exists even on freestanding compilers.
18420 # On the NeXT, cc -E runs the code through the compiler's parser,
18421 # not just through cpp. "Syntax error" is here to catch this case.
18422 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18423/* confdefs.h. */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
18427/* end confdefs.h. */
18428#ifdef __STDC__
18429# include <limits.h>
18430#else
18431# include <assert.h>
18432#endif
32ddf007 18433 Syntax error
e6cc62c6
VS
18434_ACEOF
18435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18437 ac_status=$?
18438 grep -v '^ *+' conftest.er1 >conftest.err
18439 rm -f conftest.er1
18440 cat conftest.err >&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } >/dev/null; then
18443 if test -s conftest.err; then
18444 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18445 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18446 else
18447 ac_cpp_err=
18448 fi
18449else
18450 ac_cpp_err=yes
18451fi
18452if test -z "$ac_cpp_err"; then
21d1c967 18453 :
698dcdb6 18454else
e6cc62c6
VS
18455 echo "$as_me: failed program was:" >&5
18456sed 's/^/| /' conftest.$ac_ext >&5
18457
18458 # Broken: fails on valid input.
18459continue
18460fi
18461rm -f conftest.err conftest.$ac_ext
18462
18463 # OK, works on sane cases. Now check whether non-existent headers
18464 # can be detected and how.
18465 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18466/* confdefs.h. */
18467_ACEOF
18468cat confdefs.h >>conftest.$ac_ext
18469cat >>conftest.$ac_ext <<_ACEOF
18470/* end confdefs.h. */
18471#include <ac_nonexistent.h>
18472_ACEOF
18473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } >/dev/null; then
18481 if test -s conftest.err; then
18482 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18483 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18484 else
18485 ac_cpp_err=
18486 fi
18487else
18488 ac_cpp_err=yes
247f5006 18489fi
e6cc62c6
VS
18490if test -z "$ac_cpp_err"; then
18491 # Broken: success on invalid input.
18492continue
18493else
18494 echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 # Passes both tests.
18498ac_preproc_ok=:
18499break
328a083c 18500fi
e6cc62c6
VS
18501rm -f conftest.err conftest.$ac_ext
18502
18503done
18504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18505rm -f conftest.err conftest.$ac_ext
18506if $ac_preproc_ok; then
18507 :
18508else
18509 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18510See \`config.log' for more details." >&5
18511echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18512See \`config.log' for more details." >&2;}
18513 { (exit 1); exit 1; }; }
90dd450c 18514fi
e6cc62c6
VS
18515
18516ac_ext=cc
18517ac_cpp='$CXXCPP $CPPFLAGS'
18518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18521
1e6feb95 18522
1725144d 18523
21d1c967 18524 if test "$cross_compiling" = "yes"; then
e6cc62c6 18525 cat >>confdefs.h <<\_ACEOF
21d1c967 18526#define wxUSE_IOSTREAMH 1
e6cc62c6 18527_ACEOF
ab9b9eab 18528
21d1c967 18529 else
e6cc62c6
VS
18530
18531
18532 ac_ext=cc
5c6fa7d2 18533ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18537
52127426 18538
247f5006 18539
e6cc62c6 18540for ac_header in iostream
21d1c967 18541do
e6cc62c6
VS
18542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18543if eval "test \"\${$as_ac_Header+set}\" = set"; then
18544 echo "$as_me:$LINENO: checking for $ac_header" >&5
18545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18546if eval "test \"\${$as_ac_Header+set}\" = set"; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548fi
18549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18551else
18552 # Is the header compilable?
18553echo "$as_me:$LINENO: checking $ac_header usability" >&5
18554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18555cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18556/* confdefs.h. */
18557_ACEOF
18558cat confdefs.h >>conftest.$ac_ext
18559cat >>conftest.$ac_ext <<_ACEOF
18560/* end confdefs.h. */
18561$ac_includes_default
18562#include <$ac_header>
18563_ACEOF
18564rm -f conftest.$ac_objext
18565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18566 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18567 ac_status=$?
32ddf007
VS
18568 grep -v '^ *+' conftest.er1 >conftest.err
18569 rm -f conftest.er1
18570 cat conftest.err >&5
e6cc62c6
VS
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
e1293dcf 18573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; } &&
18579 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; }; then
18585 ac_header_compiler=yes
18586else
18587 echo "$as_me: failed program was:" >&5
18588sed 's/^/| /' conftest.$ac_ext >&5
18589
18590ac_header_compiler=no
18591fi
32ddf007 18592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18594echo "${ECHO_T}$ac_header_compiler" >&6
18595
18596# Is the header present?
18597echo "$as_me:$LINENO: checking $ac_header presence" >&5
18598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18599cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18600/* confdefs.h. */
18601_ACEOF
18602cat confdefs.h >>conftest.$ac_ext
18603cat >>conftest.$ac_ext <<_ACEOF
18604/* end confdefs.h. */
18605#include <$ac_header>
18606_ACEOF
18607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18609 ac_status=$?
18610 grep -v '^ *+' conftest.er1 >conftest.err
18611 rm -f conftest.er1
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } >/dev/null; then
18615 if test -s conftest.err; then
18616 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18617 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18618 else
18619 ac_cpp_err=
18620 fi
18621else
18622 ac_cpp_err=yes
18623fi
18624if test -z "$ac_cpp_err"; then
18625 ac_header_preproc=yes
18626else
18627 echo "$as_me: failed program was:" >&5
18628sed 's/^/| /' conftest.$ac_ext >&5
18629
18630 ac_header_preproc=no
18631fi
18632rm -f conftest.err conftest.$ac_ext
18633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18634echo "${ECHO_T}$ac_header_preproc" >&6
18635
18636# So? What about this header?
32ddf007
VS
18637case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18638 yes:no: )
e6cc62c6
VS
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
18641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18642echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18643 ac_header_preproc=yes
e6cc62c6 18644 ;;
32ddf007 18645 no:yes:* )
e6cc62c6
VS
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18651echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18653echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
18656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18657echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18658 (
18659 cat <<\_ASBOX
32ddf007
VS
18660## ----------------------------------------- ##
18661## Report this to wx-dev@lists.wxwindows.org ##
18662## ----------------------------------------- ##
e6cc62c6
VS
18663_ASBOX
18664 ) |
18665 sed "s/^/$as_me: WARNING: /" >&2
18666 ;;
18667esac
18668echo "$as_me:$LINENO: checking for $ac_header" >&5
18669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18670if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
32ddf007 18673 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18674fi
e6cc62c6
VS
18675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18677
90dd450c 18678fi
e6cc62c6
VS
18679if test `eval echo '${'$as_ac_Header'}'` = yes; then
18680 cat >>confdefs.h <<_ACEOF
18681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18682_ACEOF
18683
90dd450c 18684fi
e6cc62c6 18685
21d1c967 18686done
10f2d63a 18687
8284b0c5 18688
21d1c967
GD
18689 if test "$ac_cv_header_iostream" = "yes" ; then
18690 :
18691 else
e6cc62c6 18692 cat >>confdefs.h <<\_ACEOF
21d1c967 18693#define wxUSE_IOSTREAMH 1
e6cc62c6 18694_ACEOF
788deba1 18695
90dd450c 18696 fi
ab9b9eab 18697
21d1c967 18698 ac_ext=c
21d1c967 18699ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18703
21d1c967 18704 fi
ab9b9eab 18705
52127426 18706
8284b0c5 18707
e6cc62c6
VS
18708 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18709echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18710if test "${wx_cv_cpp_bool+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18712else
e6cc62c6
VS
18713
18714
18715
18716 ac_ext=cc
5c6fa7d2 18717ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18721
8284b0c5 18722
e6cc62c6 18723 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
18728/* end confdefs.h. */
21d1c967 18729
e6cc62c6
VS
18730
18731int
18732main ()
18733{
21d1c967
GD
18734
18735 bool b = true;
18736
18737 return 0;
e6cc62c6
VS
18738
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18745 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18746 ac_status=$?
32ddf007
VS
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
e6cc62c6
VS
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
e1293dcf 18752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764
21d1c967 18765 wx_cv_cpp_bool=yes
e6cc62c6 18766
698dcdb6 18767else
e6cc62c6
VS
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771
21d1c967 18772 wx_cv_cpp_bool=no
e6cc62c6
VS
18773
18774
698dcdb6 18775fi
32ddf007 18776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18777
18778 ac_ext=c
21d1c967 18779ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18782ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18783
a0b9e27f 18784
e6cc62c6
VS
18785fi
18786echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18787echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18788
18789 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18790 cat >>confdefs.h <<\_ACEOF
21d1c967 18791#define HAVE_BOOL 1
e6cc62c6 18792_ACEOF
ab9b9eab 18793
21d1c967
GD
18794 fi
18795
52127426 18796
8284b0c5 18797
e6cc62c6
VS
18798 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18799echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18800if test "${wx_cv_explicit+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18802else
e6cc62c6
VS
18803
18804
18805
18806 ac_ext=cc
5c6fa7d2 18807ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18811
8284b0c5 18812
e6cc62c6 18813 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18814/* confdefs.h. */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h. */
986ecc86
VZ
18819
18820 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18821
18822int
18823main ()
18824{
986ecc86
VZ
18825
18826 return 0;
e6cc62c6
VS
18827
18828 ;
18829 return 0;
18830}
18831_ACEOF
18832rm -f conftest.$ac_objext
18833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18834 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18835 ac_status=$?
32ddf007
VS
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
e6cc62c6
VS
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } &&
e1293dcf 18841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853
18854 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
986ecc86
VZ
18860
18861 class Foo { public: explicit Foo(int) {} };
18862 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18863
18864int
18865main ()
18866{
986ecc86
VZ
18867
18868 TakeFoo(17);
18869 return 0;
e6cc62c6
VS
18870
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext
18876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18877 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18878 ac_status=$?
32ddf007
VS
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
e6cc62c6
VS
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
e1293dcf 18884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; } &&
18890 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
986ecc86
VZ
18896 wx_cv_explicit=no
18897else
e6cc62c6
VS
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
18901wx_cv_explicit=yes
18902
986ecc86 18903fi
32ddf007 18904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18905
986ecc86 18906else
e6cc62c6
VS
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910wx_cv_explicit=no
18911
986ecc86 18912fi
32ddf007 18913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18914
18915 ac_ext=c
986ecc86 18916ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18920
a0b9e27f 18921
e6cc62c6
VS
18922fi
18923echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18924echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18925
18926 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18927 cat >>confdefs.h <<\_ACEOF
986ecc86 18928#define HAVE_EXPLICIT 1
e6cc62c6 18929_ACEOF
986ecc86
VZ
18930
18931 fi
18932
8284b0c5 18933
e6cc62c6
VS
18934echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18935echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18936if test "${ac_cv_cxx_const_cast+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18938else
521196a2 18939
521196a2 18940
e6cc62c6
VS
18941 ac_ext=cc
18942ac_cpp='$CXXCPP $CPPFLAGS'
18943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18946
18947 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18948/* confdefs.h. */
18949_ACEOF
18950cat confdefs.h >>conftest.$ac_ext
18951cat >>conftest.$ac_ext <<_ACEOF
18952/* end confdefs.h. */
18953
18954int
18955main ()
18956{
521196a2 18957int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18958 ;
18959 return 0;
18960}
18961_ACEOF
18962rm -f conftest.$ac_objext
18963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18964 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18965 ac_status=$?
32ddf007
VS
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
e6cc62c6
VS
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
e1293dcf 18971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
521196a2
MB
18983 ac_cv_cxx_const_cast=yes
18984else
e6cc62c6
VS
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988ac_cv_cxx_const_cast=no
521196a2 18989fi
32ddf007 18990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 18991 ac_ext=c
521196a2 18992ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18995ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18996
18997
18998fi
e6cc62c6
VS
18999echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19000echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 19001if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
19002
19003cat >>confdefs.h <<\_ACEOF
19004#define HAVE_CONST_CAST
19005_ACEOF
521196a2
MB
19006
19007fi
19008
ecfd48ca
VZ
19009echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19010echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19011if test "${ac_cv_cxx_static_cast+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014
19015
19016 ac_ext=cc
19017ac_cpp='$CXXCPP $CPPFLAGS'
19018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19021
19022 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
19023/* confdefs.h. */
19024_ACEOF
19025cat confdefs.h >>conftest.$ac_ext
19026cat >>conftest.$ac_ext <<_ACEOF
19027/* end confdefs.h. */
19028#include <typeinfo>
19029class Base { public : Base () {} virtual void f () = 0; };
19030class Derived : public Base { public : Derived () {} virtual void f () {} };
19031int g (Derived&) { return 0; }
19032int
19033main ()
19034{
19035
19036Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext
19042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19043 (eval $ac_compile) 2>conftest.er1
ecfd48ca 19044 ac_status=$?
32ddf007
VS
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
ecfd48ca
VZ
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
e1293dcf 19050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_cv_cxx_static_cast=yes
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067ac_cv_cxx_static_cast=no
19068fi
32ddf007 19069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
19070 ac_ext=c
19071ac_cpp='$CPP $CPPFLAGS'
19072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19074ac_compiler_gnu=$ac_cv_c_compiler_gnu
19075
19076
19077fi
19078echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19079echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19080if test "$ac_cv_cxx_static_cast" = yes; then
19081
19082cat >>confdefs.h <<\_ACEOF
19083#define HAVE_STATIC_CAST
19084_ACEOF
19085
19086fi
19087
521196a2 19088
e87b7833
MB
19089if test "$wxUSE_STL" = "yes"; then
19090 ac_ext=cc
19091ac_cpp='$CXXCPP $CPPFLAGS'
19092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19095
19096
19097 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19098echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19099 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19100/* confdefs.h. */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h. */
19105#include <string>
19106 #include <functional>
19107 #include <algorithm>
19108 #include <vector>
19109 #include <list>
19110int
19111main ()
19112{
19113std::vector<int> moo;
19114 std::list<int> foo;
19115 std::vector<int>::iterator it =
19116 std::find_if(moo.begin(), moo.end(),
19117 std::bind2nd(std::less<int>(), 3));
19118 ;
19119 return 0;
19120}
19121_ACEOF
19122rm -f conftest.$ac_objext
19123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19124 (eval $ac_compile) 2>conftest.er1
e87b7833 19125 ac_status=$?
32ddf007
VS
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
e87b7833
MB
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
e1293dcf 19131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 echo "$as_me:$LINENO: result: yes" >&5
19144echo "${ECHO_T}yes" >&6
19145else
19146 echo "$as_me: failed program was:" >&5
19147sed 's/^/| /' conftest.$ac_ext >&5
19148
19149echo "$as_me:$LINENO: result: no" >&5
19150echo "${ECHO_T}no" >&6
19151 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19152echo "$as_me: error: Basic STL functionality missing" >&2;}
19153 { (exit 1); exit 1; }; }
19154fi
32ddf007 19155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19156
19157 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19158echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
19165#include <string>
19166int
19167main ()
19168{
19169std::wstring foo;
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext
19175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19176 (eval $ac_compile) 2>conftest.er1
e87b7833 19177 ac_status=$?
32ddf007
VS
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
e87b7833
MB
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
e1293dcf 19183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 echo "$as_me:$LINENO: result: yes" >&5
19196echo "${ECHO_T}yes" >&6
19197 cat >>confdefs.h <<\_ACEOF
19198#define HAVE_STD_WSTRING 1
19199_ACEOF
19200
19201else
19202 echo "$as_me: failed program was:" >&5
19203sed 's/^/| /' conftest.$ac_ext >&5
19204
19205echo "$as_me:$LINENO: result: no" >&5
19206echo "${ECHO_T}no" >&6
19207fi
32ddf007 19208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19209
19210 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19211echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h. */
19218#include <string>
19219int
19220main ()
19221{
19222std::string foo, bar;
19223 foo.compare(bar);
19224 foo.compare(1, 1, bar);
19225 foo.compare(1, 1, bar, 1, 1);
19226 foo.compare("");
19227 foo.compare(1, 1, "");
19228 foo.compare(1, 1, "", 2);
19229 ;
19230 return 0;
19231}
19232_ACEOF
19233rm -f conftest.$ac_objext
19234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19235 (eval $ac_compile) 2>conftest.er1
e87b7833 19236 ac_status=$?
32ddf007
VS
19237 grep -v '^ *+' conftest.er1 >conftest.err
19238 rm -f conftest.er1
19239 cat conftest.err >&5
e87b7833
MB
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
e1293dcf 19242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 echo "$as_me:$LINENO: result: yes" >&5
19255echo "${ECHO_T}yes" >&6
19256 cat >>confdefs.h <<\_ACEOF
19257#define HAVE_STD_STRING_COMPARE 1
19258_ACEOF
19259
19260else
19261 echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264echo "$as_me:$LINENO: result: no" >&5
19265echo "${ECHO_T}no" >&6
19266fi
32ddf007 19267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19268
19269 ac_ext=c
19270ac_cpp='$CPP $CPPFLAGS'
19271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273ac_compiler_gnu=$ac_cv_c_compiler_gnu
19274
19275fi
19276
8284b0c5 19277
21d1c967
GD
19278SEARCH_INCLUDE="\
19279 /usr/local/include \
19280 \
21d1c967 19281 /usr/Motif-2.1/include \
789c5f4a 19282 /usr/Motif-1.2/include \
21d1c967
GD
19283 /usr/include/Motif1.2 \
19284 /opt/xpm/include/X11 \
19285 /opt/GBxpm/include/ \
19286 /opt/GBxpm/X11/include/ \
19287 \
21d1c967
GD
19288 /usr/dt/include \
19289 /usr/openwin/include \
19290 \
19291 /usr/include/Xm \
19292 \
19293 /usr/X11R6/include \
19294 /usr/X11R6.4/include \
19295 /usr/X11R5/include \
19296 /usr/X11R4/include \
19297 \
19298 /usr/include/X11R6 \
19299 /usr/include/X11R5 \
19300 /usr/include/X11R4 \
19301 \
19302 /usr/local/X11R6/include \
19303 /usr/local/X11R5/include \
19304 /usr/local/X11R4/include \
19305 \
19306 /usr/local/include/X11R6 \
19307 /usr/local/include/X11R5 \
19308 /usr/local/include/X11R4 \
19309 \
19310 /usr/X11/include \
19311 /usr/include/X11 \
19312 /usr/local/X11/include \
19313 /usr/local/include/X11 \
19314 \
19315 /usr/X386/include \
19316 /usr/x386/include \
19317 /usr/XFree86/include/X11 \
19318 \
19319 X:/XFree86/include \
19320 X:/XFree86/include/X11 \
19321 \
19322 /usr/include/gtk \
19323 /usr/local/include/gtk \
19324 /usr/include/glib \
19325 /usr/local/include/glib \
19326 \
19327 /usr/include/qt \
19328 /usr/local/include/qt \
19329 \
0f87e84c
RR
19330 /usr/local/arm/3.3.2/include \
19331 \
21d1c967
GD
19332 /usr/include/windows \
19333 /usr/include/wine \
19334 /usr/local/include/wine \
19335 \
19336 /usr/unsupported/include \
19337 /usr/athena/include \
19338 /usr/local/x11r5/include \
19339 /usr/lpp/Xamples/include \
19340 \
2b5f62a0 19341 /usr/openwin/share/include"
21d1c967 19342
b62e750d 19343SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21d1c967 19344
8284b0c5 19345
e6cc62c6 19346cat >confcache <<\_ACEOF
21d1c967
GD
19347# This file is a shell script that caches the results of configure
19348# tests run on this system so they can be shared between configure
e6cc62c6
VS
19349# scripts and configure runs, see configure's option --config-cache.
19350# It is not useful on other systems. If it contains results you don't
19351# want to keep, you may remove or edit it.
21d1c967 19352#
e6cc62c6
VS
19353# config.status only pays attention to the cache file if you give it
19354# the --recheck option to rerun configure.
21d1c967 19355#
e6cc62c6
VS
19356# `ac_cv_env_foo' variables (set or unset) will be overridden when
19357# loading this file, other *unset* `ac_cv_foo' will be assigned the
19358# following values.
19359
19360_ACEOF
19361
21d1c967
GD
19362# The following way of writing the cache mishandles newlines in values,
19363# but we know of no workaround that is simple, portable, and efficient.
19364# So, don't put newlines in cache variables' values.
19365# Ultrix sh set writes to stderr and can't be redirected directly,
19366# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
19367{
19368 (set) 2>&1 |
19369 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19370 *ac_space=\ *)
19371 # `set' does not quote correctly, so add quotes (double-quote
19372 # substitution turns \\\\ into \\, and sed turns \\ into \).
19373 sed -n \
32ddf007
VS
19374 "s/'/'\\\\''/g;
19375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
19376 ;;
19377 *)
19378 # `set' quotes correctly as required by POSIX, so do not add quotes.
19379 sed -n \
32ddf007 19380 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
19381 ;;
19382 esac;
19383} |
19384 sed '
19385 t clear
19386 : clear
19387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19388 t end
19389 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19390 : end' >>confcache
19391if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 19392 if test -w $cache_file; then
e6cc62c6
VS
19393 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19394 cat confcache >$cache_file
21d1c967
GD
19395 else
19396 echo "not updating unwritable cache $cache_file"
19397 fi
ab9b9eab 19398fi
21d1c967 19399rm -f confcache
ab9b9eab 19400
fe0895cf 19401if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
19402 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19403echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19404if test "${wx_cv_lib_glibc21+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406else
19407
19408 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
21d1c967 19414#include <features.h>
e6cc62c6
VS
19415int
19416main ()
19417{
ab9b9eab 19418
21d1c967
GD
19419 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19420 #error not glibc2.1
19421 #endif
e6cc62c6
VS
19422
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19429 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19430 ac_status=$?
32ddf007
VS
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
e6cc62c6
VS
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
e1293dcf 19436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448
21d1c967 19449 wx_cv_lib_glibc21=yes
e6cc62c6 19450
698dcdb6 19451else
e6cc62c6
VS
19452 echo "$as_me: failed program was:" >&5
19453sed 's/^/| /' conftest.$ac_ext >&5
19454
19455
21d1c967 19456 wx_cv_lib_glibc21=no
e6cc62c6
VS
19457
19458
247f5006 19459fi
32ddf007 19460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19461
e6cc62c6
VS
19462fi
19463echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19464echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 19465 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 19466 cat >>confdefs.h <<\_ACEOF
21d1c967 19467#define wxHAVE_GLIBC2 1
e6cc62c6 19468_ACEOF
1e487827 19469
90dd450c 19470 fi
ab9b9eab
VZ
19471fi
19472
5c0a20c3
VZ
19473if test "x$wx_cv_lib_glibc21" = "xyes"; then
19474 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 19475 cat >>confdefs.h <<\_ACEOF
5c0a20c3 19476#define _GNU_SOURCE 1
e6cc62c6 19477_ACEOF
5c0a20c3
VZ
19478
19479 fi
19480fi
19481
8284b0c5
MB
19482
19483
21d1c967 19484if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 19485 cat >>confdefs.h <<\_ACEOF
21d1c967 19486#define wxUSE_REGEX 1
e6cc62c6 19487_ACEOF
698dcdb6 19488
8284b0c5 19489
30f2fa6c 19490 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
4996f261
VS
19491 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19492echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
30f2fa6c
VS
19493 wxUSE_REGEX=builtin
19494 fi
19495
21d1c967 19496 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
19497 if test "${ac_cv_header_regex_h+set}" = set; then
19498 echo "$as_me:$LINENO: checking for regex.h" >&5
19499echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19500if test "${ac_cv_header_regex_h+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19502fi
19503echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19504echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19505else
19506 # Is the header compilable?
19507echo "$as_me:$LINENO: checking regex.h usability" >&5
19508echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19509cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19510/* confdefs.h. */
19511_ACEOF
19512cat confdefs.h >>conftest.$ac_ext
19513cat >>conftest.$ac_ext <<_ACEOF
19514/* end confdefs.h. */
19515$ac_includes_default
247f5006 19516#include <regex.h>
e6cc62c6
VS
19517_ACEOF
19518rm -f conftest.$ac_objext
19519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19520 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19521 ac_status=$?
32ddf007
VS
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
e6cc62c6
VS
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
e1293dcf 19527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_header_compiler=yes
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544ac_header_compiler=no
19545fi
32ddf007 19546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19548echo "${ECHO_T}$ac_header_compiler" >&6
19549
19550# Is the header present?
19551echo "$as_me:$LINENO: checking regex.h presence" >&5
19552echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19553cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19554/* confdefs.h. */
19555_ACEOF
19556cat confdefs.h >>conftest.$ac_ext
19557cat >>conftest.$ac_ext <<_ACEOF
19558/* end confdefs.h. */
19559#include <regex.h>
19560_ACEOF
19561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19563 ac_status=$?
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } >/dev/null; then
19569 if test -s conftest.err; then
19570 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 19571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19572 else
19573 ac_cpp_err=
19574 fi
19575else
19576 ac_cpp_err=yes
19577fi
19578if test -z "$ac_cpp_err"; then
19579 ac_header_preproc=yes
19580else
19581 echo "$as_me: failed program was:" >&5
19582sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ac_header_preproc=no
19585fi
19586rm -f conftest.err conftest.$ac_ext
19587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19588echo "${ECHO_T}$ac_header_preproc" >&6
19589
19590# So? What about this header?
32ddf007
VS
19591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19592 yes:no: )
e6cc62c6
VS
19593 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19594echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
19595 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19596echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19597 ac_header_preproc=yes
e6cc62c6 19598 ;;
32ddf007 19599 no:yes:* )
e6cc62c6
VS
19600 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19601echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
32ddf007
VS
19602 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19603echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19605echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19606 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19607echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19608 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19609echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
19610 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19611echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19612 (
19613 cat <<\_ASBOX
32ddf007
VS
19614## ----------------------------------------- ##
19615## Report this to wx-dev@lists.wxwindows.org ##
19616## ----------------------------------------- ##
e6cc62c6
VS
19617_ASBOX
19618 ) |
19619 sed "s/^/$as_me: WARNING: /" >&2
19620 ;;
19621esac
19622echo "$as_me:$LINENO: checking for regex.h" >&5
19623echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19624if test "${ac_cv_header_regex_h+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19626else
19627 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19628fi
e6cc62c6
VS
19629echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19630echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19631
698dcdb6 19632fi
e6cc62c6
VS
19633if test $ac_cv_header_regex_h = yes; then
19634
19635for ac_func in regcomp
21d1c967 19636do
e6cc62c6
VS
19637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19638echo "$as_me:$LINENO: checking for $ac_func" >&5
19639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19640if eval "test \"\${$as_ac_var+set}\" = set"; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642else
19643 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
19648/* end confdefs.h. */
32ddf007
VS
19649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19651#define $ac_func innocuous_$ac_func
19652
a0b9e27f 19653/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19654 which can conflict with char $ac_func (); below.
19655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19656 <limits.h> exists even on freestanding compilers. */
32ddf007 19657
e6cc62c6
VS
19658#ifdef __STDC__
19659# include <limits.h>
19660#else
19661# include <assert.h>
19662#endif
32ddf007
VS
19663
19664#undef $ac_func
19665
21d1c967 19666/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19667#ifdef __cplusplus
19668extern "C"
19669{
19670#endif
21d1c967 19671/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19672 builtin and then its argument prototype would still apply. */
19673char $ac_func ();
21d1c967
GD
19674/* The GNU C library defines this for functions which it implements
19675 to always fail with ENOSYS. Some functions are actually named
19676 something starting with __ and the normal name is an alias. */
19677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19678choke me
19679#else
e6cc62c6
VS
19680char (*f) () = $ac_func;
19681#endif
19682#ifdef __cplusplus
19683}
21d1c967 19684#endif
90dd450c 19685
e6cc62c6
VS
19686int
19687main ()
19688{
19689return f != $ac_func;
19690 ;
19691 return 0;
19692}
19693_ACEOF
19694rm -f conftest.$ac_objext conftest$ac_exeext
19695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 19696 (eval $ac_link) 2>conftest.er1
e6cc62c6 19697 ac_status=$?
32ddf007
VS
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
e6cc62c6
VS
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
e1293dcf 19703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } &&
19709 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 eval "$as_ac_var=yes"
19716else
19717 echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720eval "$as_ac_var=no"
19721fi
32ddf007
VS
19722rm -f conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19724fi
19725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19727if test `eval echo '${'$as_ac_var'}'` = yes; then
19728 cat >>confdefs.h <<_ACEOF
19729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19730_ACEOF
5c6fa7d2 19731
698dcdb6 19732fi
21d1c967
GD
19733done
19734
ab9b9eab
VZ
19735fi
19736
8284b0c5 19737
e6cc62c6 19738
21d1c967
GD
19739 if test "x$ac_cv_func_regcomp" != "xyes"; then
19740 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19741 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19742echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19743 { (exit 1); exit 1; }; }
21d1c967 19744 else
e6cc62c6
VS
19745 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19746echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19747 wxUSE_REGEX=builtin
19748 fi
19749 else
19750 wxUSE_REGEX=sys
4996f261
VS
19751 cat >>confdefs.h <<\_ACEOF
19752#define WX_NO_REGEX_ADVANCED 1
19753_ACEOF
19754
21d1c967 19755 fi
ab9b9eab 19756 fi
21d1c967 19757fi
90dd450c 19758
8284b0c5 19759
21d1c967
GD
19760ZLIB_LINK=
19761if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19762 cat >>confdefs.h <<\_ACEOF
21d1c967 19763#define wxUSE_ZLIB 1
e6cc62c6 19764_ACEOF
21d1c967 19765
8284b0c5 19766
21d1c967 19767 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19768 if test "$USE_DARWIN" = 1; then
19769 system_zlib_h_ok="yes"
19770 else
e6cc62c6
VS
19771 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19772echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19773if test "${ac_cv_header_zlib_h+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19775else
19776 if test "$cross_compiling" = yes; then
89e6bf6d 19777 unset ac_cv_header_zlib_h
e6cc62c6 19778
d643b80e 19779else
e6cc62c6 19780 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h. */
19786
ef33c576 19787 #include <zlib.h>
d775acfa 19788 #include <stdio.h>
d643b80e 19789
d775acfa
VZ
19790 int main()
19791 {
19792 FILE *f=fopen("conftestval", "w");
19793 if (!f) exit(1);
19794 fprintf(f, "%s",
19795 ZLIB_VERSION[0] == '1' &&
19796 (ZLIB_VERSION[2] > '1' ||
19797 (ZLIB_VERSION[2] == '1' &&
19798 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19799 exit(0);
19800 }
e6cc62c6
VS
19801
19802_ACEOF
19803rm -f conftest$ac_exeext
19804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19805 (eval $ac_link) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
d643b80e
VZ
19814 ac_cv_header_zlib_h=`cat conftestval`
19815else
e6cc62c6
VS
19816 echo "$as_me: program exited with status $ac_status" >&5
19817echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
19820( exit $ac_status )
19821ac_cv_header_zlib_h=no
d643b80e 19822fi
32ddf007 19823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19824fi
19825
d643b80e 19826fi
e6cc62c6
VS
19827echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19828echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19829 if test "${ac_cv_header_zlib_h+set}" = set; then
19830 echo "$as_me:$LINENO: checking for zlib.h" >&5
19831echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19832if test "${ac_cv_header_zlib_h+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19834fi
19835echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19836echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19837else
e6cc62c6
VS
19838 # Is the header compilable?
19839echo "$as_me:$LINENO: checking zlib.h usability" >&5
19840echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19841cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19842/* confdefs.h. */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h. */
19847$ac_includes_default
89e6bf6d 19848#include <zlib.h>
e6cc62c6
VS
19849_ACEOF
19850rm -f conftest.$ac_objext
19851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19852 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19853 ac_status=$?
32ddf007
VS
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
e6cc62c6
VS
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
e1293dcf 19859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 ac_header_compiler=yes
19872else
19873 echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
19876ac_header_compiler=no
19877fi
32ddf007 19878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19880echo "${ECHO_T}$ac_header_compiler" >&6
19881
19882# Is the header present?
19883echo "$as_me:$LINENO: checking zlib.h presence" >&5
19884echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19885cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
19891#include <zlib.h>
19892_ACEOF
19893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } >/dev/null; then
19901 if test -s conftest.err; then
19902 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 19903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19904 else
19905 ac_cpp_err=
19906 fi
19907else
19908 ac_cpp_err=yes
19909fi
19910if test -z "$ac_cpp_err"; then
19911 ac_header_preproc=yes
19912else
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 ac_header_preproc=no
19917fi
19918rm -f conftest.err conftest.$ac_ext
19919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920echo "${ECHO_T}$ac_header_preproc" >&6
19921
19922# So? What about this header?
32ddf007
VS
19923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19924 yes:no: )
e6cc62c6
VS
19925 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19926echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
19927 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19928echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19929 ac_header_preproc=yes
e6cc62c6 19930 ;;
32ddf007 19931 no:yes:* )
e6cc62c6
VS
19932 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19933echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
32ddf007
VS
19934 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19935echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19937echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19939echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19940 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19941echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
19942 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19943echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19944 (
19945 cat <<\_ASBOX
32ddf007
VS
19946## ----------------------------------------- ##
19947## Report this to wx-dev@lists.wxwindows.org ##
19948## ----------------------------------------- ##
e6cc62c6
VS
19949_ASBOX
19950 ) |
19951 sed "s/^/$as_me: WARNING: /" >&2
19952 ;;
19953esac
19954echo "$as_me:$LINENO: checking for zlib.h" >&5
19955echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19956if test "${ac_cv_header_zlib_h+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19958else
e6cc62c6
VS
19959 ac_cv_header_zlib_h=$ac_header_preproc
19960fi
19961echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19962echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19963
89e6bf6d
VZ
19964fi
19965
d643b80e 19966
e6cc62c6 19967
d775acfa
VZ
19968 system_zlib_h_ok=$ac_cv_header_zlib_h
19969 fi
19970
19971 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19972 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19973echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19974if test "${ac_cv_lib_z_deflate+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19976else
e6cc62c6 19977 ac_check_lib_save_LIBS=$LIBS
21d1c967 19978LIBS="-lz $LIBS"
e6cc62c6 19979cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
19985
21d1c967 19986/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19987#ifdef __cplusplus
19988extern "C"
19989#endif
21d1c967 19990/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19991 builtin and then its argument prototype would still apply. */
19992char deflate ();
19993int
19994main ()
19995{
19996deflate ();
19997 ;
19998 return 0;
19999}
20000_ACEOF
20001rm -f conftest.$ac_objext conftest$ac_exeext
20002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20003 (eval $ac_link) 2>conftest.er1
e6cc62c6 20004 ac_status=$?
32ddf007
VS
20005 grep -v '^ *+' conftest.er1 >conftest.err
20006 rm -f conftest.er1
20007 cat conftest.err >&5
e6cc62c6
VS
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
e1293dcf 20010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 ac_cv_lib_z_deflate=yes
20023else
20024 echo "$as_me: failed program was:" >&5
20025sed 's/^/| /' conftest.$ac_ext >&5
20026
20027ac_cv_lib_z_deflate=no
20028fi
32ddf007
VS
20029rm -f conftest.err conftest.$ac_objext \
20030 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20031LIBS=$ac_check_lib_save_LIBS
20032fi
20033echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20034echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20035if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 20036 ZLIB_LINK=" -lz"
a0b9e27f 20037fi
698dcdb6 20038
d643b80e 20039 fi
247f5006 20040
21d1c967
GD
20041 if test "x$ZLIB_LINK" = "x" ; then
20042 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
20043 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20044echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20045 { (exit 1); exit 1; }; }
21d1c967 20046 else
e6cc62c6
VS
20047 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20048echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20049 wxUSE_ZLIB=builtin
20050 fi
20051 else
20052 wxUSE_ZLIB=sys
20053 fi
20054 fi
ab9b9eab
VZ
20055fi
20056
8284b0c5 20057
21d1c967
GD
20058PNG_LINK=
20059if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 20060 cat >>confdefs.h <<\_ACEOF
21d1c967 20061#define wxUSE_LIBPNG 1
e6cc62c6 20062_ACEOF
90dd450c 20063
8284b0c5 20064
21d1c967 20065 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
20066 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20067echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
20068 wxUSE_LIBPNG=sys
20069 fi
90dd450c 20070
21d1c967 20071 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
20072 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20073echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
20074 wxUSE_LIBPNG=builtin
20075 fi
20076
20077 if test "$wxUSE_MGL" != 1 ; then
20078 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
20079 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20080echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20081if test "${ac_cv_header_png_h+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
20083else
20084 if test "$cross_compiling" = yes; then
89e6bf6d 20085 unset ac_cv_header_png_h
e6cc62c6 20086
5d3f766d 20087else
e6cc62c6 20088 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
20094
ef33c576 20095 #include <png.h>
5d3f766d
VZ
20096 #include <stdio.h>
20097
20098 int main()
20099 {
20100 FILE *f=fopen("conftestval", "w");
20101 if (!f) exit(1);
20102 fprintf(f, "%s",
20103 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20104 exit(0);
20105 }
e6cc62c6
VS
20106
20107_ACEOF
20108rm -f conftest$ac_exeext
20109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20110 (eval $ac_link) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
5d3f766d
VZ
20119 ac_cv_header_png_h=`cat conftestval`
20120else
e6cc62c6
VS
20121 echo "$as_me: program exited with status $ac_status" >&5
20122echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
20125( exit $ac_status )
20126ac_cv_header_png_h=no
5d3f766d 20127fi
32ddf007 20128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
20129fi
20130
5d3f766d 20131fi
e6cc62c6
VS
20132echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20133echo "${ECHO_T}$ac_cv_header_png_h" >&6
20134 if test "${ac_cv_header_png_h+set}" = set; then
20135 echo "$as_me:$LINENO: checking for png.h" >&5
20136echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20137if test "${ac_cv_header_png_h+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139fi
20140echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20141echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 20142else
e6cc62c6
VS
20143 # Is the header compilable?
20144echo "$as_me:$LINENO: checking png.h usability" >&5
20145echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20146cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
20152$ac_includes_default
89e6bf6d 20153#include <png.h>
e6cc62c6
VS
20154_ACEOF
20155rm -f conftest.$ac_objext
20156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20157 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20158 ac_status=$?
32ddf007
VS
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
e6cc62c6
VS
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
e1293dcf 20164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; } &&
20170 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176 ac_header_compiler=yes
20177else
20178 echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181ac_header_compiler=no
20182fi
32ddf007 20183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20185echo "${ECHO_T}$ac_header_compiler" >&6
20186
20187# Is the header present?
20188echo "$as_me:$LINENO: checking png.h presence" >&5
20189echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20190cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h. */
20196#include <png.h>
20197_ACEOF
20198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } >/dev/null; then
20206 if test -s conftest.err; then
20207 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20209 else
20210 ac_cpp_err=
20211 fi
20212else
20213 ac_cpp_err=yes
20214fi
20215if test -z "$ac_cpp_err"; then
20216 ac_header_preproc=yes
20217else
20218 echo "$as_me: failed program was:" >&5
20219sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 ac_header_preproc=no
20222fi
20223rm -f conftest.err conftest.$ac_ext
20224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20225echo "${ECHO_T}$ac_header_preproc" >&6
20226
20227# So? What about this header?
32ddf007
VS
20228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20229 yes:no: )
e6cc62c6
VS
20230 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20231echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20232 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20233echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20234 ac_header_preproc=yes
e6cc62c6 20235 ;;
32ddf007 20236 no:yes:* )
e6cc62c6
VS
20237 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20238echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
32ddf007
VS
20239 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20240echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20242echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20244echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20245 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20246echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20247 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20248echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20249 (
20250 cat <<\_ASBOX
32ddf007
VS
20251## ----------------------------------------- ##
20252## Report this to wx-dev@lists.wxwindows.org ##
20253## ----------------------------------------- ##
e6cc62c6
VS
20254_ASBOX
20255 ) |
20256 sed "s/^/$as_me: WARNING: /" >&2
20257 ;;
20258esac
20259echo "$as_me:$LINENO: checking for png.h" >&5
20260echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20261if test "${ac_cv_header_png_h+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 20263else
e6cc62c6
VS
20264 ac_cv_header_png_h=$ac_header_preproc
20265fi
20266echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20267echo "${ECHO_T}$ac_cv_header_png_h" >&6
20268
89e6bf6d
VZ
20269fi
20270
5d3f766d 20271
e6cc62c6 20272
5d3f766d 20273 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
20274 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20275echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20276if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20278else
e6cc62c6 20279 ac_check_lib_save_LIBS=$LIBS
21d1c967 20280LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 20281cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20282/* confdefs.h. */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h. */
20287
21d1c967 20288/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20289#ifdef __cplusplus
20290extern "C"
20291#endif
21d1c967 20292/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20293 builtin and then its argument prototype would still apply. */
20294char png_check_sig ();
20295int
20296main ()
20297{
20298png_check_sig ();
20299 ;
20300 return 0;
20301}
20302_ACEOF
20303rm -f conftest.$ac_objext conftest$ac_exeext
20304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20305 (eval $ac_link) 2>conftest.er1
e6cc62c6 20306 ac_status=$?
32ddf007
VS
20307 grep -v '^ *+' conftest.er1 >conftest.err
20308 rm -f conftest.er1
20309 cat conftest.err >&5
e6cc62c6
VS
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } &&
e1293dcf 20312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; } &&
20318 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 ac_cv_lib_png_png_check_sig=yes
20325else
20326 echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329ac_cv_lib_png_png_check_sig=no
20330fi
32ddf007
VS
20331rm -f conftest.err conftest.$ac_objext \
20332 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20333LIBS=$ac_check_lib_save_LIBS
20334fi
20335echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20336echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20337if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 20338 PNG_LINK=" -lpng"
a0b9e27f 20339fi
90dd450c 20340
5d3f766d 20341 fi
247f5006 20342
21d1c967
GD
20343 if test "x$PNG_LINK" = "x" ; then
20344 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
20345 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20346echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20347 { (exit 1); exit 1; }; }
21d1c967 20348 else
e6cc62c6
VS
20349 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20350echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20351 wxUSE_LIBPNG=builtin
20352 fi
20353 else
2b5f62a0 20354 wxUSE_LIBPNG=sys
21d1c967
GD
20355 fi
20356 fi
20357 fi
90dd450c 20358
21d1c967 20359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
20360fi
20361
8284b0c5 20362
21d1c967
GD
20363JPEG_LINK=
20364if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 20365 cat >>confdefs.h <<\_ACEOF
21d1c967 20366#define wxUSE_LIBJPEG 1
e6cc62c6 20367_ACEOF
90dd450c 20368
8284b0c5 20369
21d1c967 20370 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
20371 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20372echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
20373 wxUSE_LIBJPEG=sys
20374 fi
90dd450c 20375
21d1c967
GD
20376 if test "$wxUSE_MGL" != 1 ; then
20377 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
20378 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20379echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20380 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382else
20383 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20384/* confdefs.h. */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h. */
90dd450c 20389
21d1c967
GD
20390 #undef HAVE_STDLIB_H
20391 #include <stdio.h>
20392 #include <jpeglib.h>
90dd450c 20393
e6cc62c6
VS
20394int
20395main ()
20396{
20397
20398
20399 ;
20400 return 0;
20401}
20402_ACEOF
20403rm -f conftest.$ac_objext
20404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20405 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20406 ac_status=$?
32ddf007
VS
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
e6cc62c6
VS
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } &&
e1293dcf 20412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
21d1c967 20424 ac_cv_header_jpeglib_h=yes
90dd450c 20425else
e6cc62c6
VS
20426 echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
20428
20429ac_cv_header_jpeglib_h=no
20430
90dd450c 20431fi
32ddf007 20432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 20433
90dd450c
VZ
20434fi
20435
e6cc62c6
VS
20436 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20437echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 20438
21d1c967 20439 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
20440 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20441echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20442if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20444else
e6cc62c6 20445 ac_check_lib_save_LIBS=$LIBS
21d1c967 20446LIBS="-ljpeg $LIBS"
e6cc62c6 20447cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
20453
21d1c967 20454/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20455#ifdef __cplusplus
20456extern "C"
20457#endif
21d1c967 20458/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20459 builtin and then its argument prototype would still apply. */
20460char jpeg_read_header ();
20461int
20462main ()
20463{
20464jpeg_read_header ();
20465 ;
20466 return 0;
20467}
20468_ACEOF
20469rm -f conftest.$ac_objext conftest$ac_exeext
20470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20471 (eval $ac_link) 2>conftest.er1
e6cc62c6 20472 ac_status=$?
32ddf007
VS
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
e6cc62c6
VS
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
e1293dcf 20478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; } &&
20484 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 ac_cv_lib_jpeg_jpeg_read_header=yes
20491else
20492 echo "$as_me: failed program was:" >&5
20493sed 's/^/| /' conftest.$ac_ext >&5
20494
20495ac_cv_lib_jpeg_jpeg_read_header=no
20496fi
32ddf007
VS
20497rm -f conftest.err conftest.$ac_objext \
20498 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20499LIBS=$ac_check_lib_save_LIBS
20500fi
20501echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20502echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20503if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 20504 JPEG_LINK=" -ljpeg"
90dd450c
VZ
20505fi
20506
21d1c967 20507 fi
90dd450c 20508
21d1c967
GD
20509 if test "x$JPEG_LINK" = "x" ; then
20510 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
20511 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20512echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20513 { (exit 1); exit 1; }; }
21d1c967 20514 else
e6cc62c6
VS
20515 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20516echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
20517 wxUSE_LIBJPEG=builtin
20518 fi
20519 else
20520 wxUSE_LIBJPEG=sys
20521 fi
20522 fi
20523 fi
21d1c967 20524fi
90dd450c 20525
8284b0c5 20526
21d1c967 20527TIFF_LINK=
2b5f62a0 20528TIFF_PREREQ_LINKS=-lm
21d1c967 20529if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 20530 cat >>confdefs.h <<\_ACEOF
21d1c967 20531#define wxUSE_LIBTIFF 1
e6cc62c6 20532_ACEOF
21d1c967 20533
8284b0c5 20534
21d1c967 20535 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
20536 if test "$wxUSE_LIBJPEG" = "sys"; then
20537 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20538 fi
20539 if test "$wxUSE_ZLIB" = "sys"; then
20540 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20541 fi
e6cc62c6
VS
20542 if test "${ac_cv_header_tiffio_h+set}" = set; then
20543 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20544echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20545if test "${ac_cv_header_tiffio_h+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20547fi
20548echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20549echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20550else
20551 # Is the header compilable?
20552echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20553echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20554cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
20560$ac_includes_default
247f5006 20561#include <tiffio.h>
e6cc62c6
VS
20562_ACEOF
20563rm -f conftest.$ac_objext
20564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20565 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20566 ac_status=$?
32ddf007
VS
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
e6cc62c6
VS
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
e1293dcf 20572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_header_compiler=yes
20585else
20586 echo "$as_me: failed program was:" >&5
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
20589ac_header_compiler=no
20590fi
32ddf007 20591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20593echo "${ECHO_T}$ac_header_compiler" >&6
20594
20595# Is the header present?
20596echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20597echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20598cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20599/* confdefs.h. */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
20603/* end confdefs.h. */
20604#include <tiffio.h>
20605_ACEOF
20606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } >/dev/null; then
20614 if test -s conftest.err; then
20615 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20617 else
20618 ac_cpp_err=
20619 fi
20620else
20621 ac_cpp_err=yes
20622fi
20623if test -z "$ac_cpp_err"; then
20624 ac_header_preproc=yes
20625else
20626 echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_header_preproc=no
20630fi
20631rm -f conftest.err conftest.$ac_ext
20632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20633echo "${ECHO_T}$ac_header_preproc" >&6
20634
20635# So? What about this header?
32ddf007
VS
20636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20637 yes:no: )
e6cc62c6
VS
20638 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20639echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20640 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20641echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20642 ac_header_preproc=yes
e6cc62c6 20643 ;;
32ddf007 20644 no:yes:* )
e6cc62c6
VS
20645 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20646echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
32ddf007
VS
20647 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20648echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20650echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20652echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20653 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20654echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20655 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20656echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20657 (
20658 cat <<\_ASBOX
32ddf007
VS
20659## ----------------------------------------- ##
20660## Report this to wx-dev@lists.wxwindows.org ##
20661## ----------------------------------------- ##
e6cc62c6
VS
20662_ASBOX
20663 ) |
20664 sed "s/^/$as_me: WARNING: /" >&2
20665 ;;
20666esac
20667echo "$as_me:$LINENO: checking for tiffio.h" >&5
20668echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20669if test "${ac_cv_header_tiffio_h+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671else
20672 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20673fi
e6cc62c6
VS
20674echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20675echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20676
21d1c967 20677fi
e6cc62c6 20678if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20679
20680 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20681echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20682if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20684else
e6cc62c6 20685 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20686LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20687cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20688/* confdefs.h. */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
20692/* end confdefs.h. */
20693
ab9b9eab 20694/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20695#ifdef __cplusplus
20696extern "C"
20697#endif
ab9b9eab 20698/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20699 builtin and then its argument prototype would still apply. */
20700char TIFFError ();
20701int
20702main ()
20703{
20704TIFFError ();
20705 ;
20706 return 0;
20707}
20708_ACEOF
20709rm -f conftest.$ac_objext conftest$ac_exeext
20710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20711 (eval $ac_link) 2>conftest.er1
e6cc62c6 20712 ac_status=$?
32ddf007
VS
20713 grep -v '^ *+' conftest.er1 >conftest.err
20714 rm -f conftest.er1
20715 cat conftest.err >&5
e6cc62c6
VS
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
e1293dcf 20718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; } &&
20724 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_cv_lib_tiff_TIFFError=yes
20731else
20732 echo "$as_me: failed program was:" >&5
20733sed 's/^/| /' conftest.$ac_ext >&5
20734
20735ac_cv_lib_tiff_TIFFError=no
20736fi
32ddf007
VS
20737rm -f conftest.err conftest.$ac_objext \
20738 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20739LIBS=$ac_check_lib_save_LIBS
20740fi
20741echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20742echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20743if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20744 TIFF_LINK=" -ltiff"
a0b9e27f 20745fi
cd6d6d5b 20746
e6cc62c6 20747
0e012a93 20748
a0b9e27f 20749fi
8284b0c5 20750
247f5006 20751
e6cc62c6 20752
21d1c967
GD
20753 if test "x$TIFF_LINK" = "x" ; then
20754 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20755 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20756echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20757 { (exit 1); exit 1; }; }
90dd450c 20758 else
e6cc62c6
VS
20759 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20760echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20761 wxUSE_LIBTIFF=builtin
d8356fa3 20762 fi
d8356fa3 20763 else
21d1c967 20764 wxUSE_LIBTIFF=sys
d8356fa3 20765 fi
21d1c967 20766 fi
21d1c967 20767fi
10f2d63a 20768
8284b0c5 20769
672abd7a 20770if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20771 wxUSE_XML=yes
672abd7a
VS
20772 cat >>confdefs.h <<\_ACEOF
20773#define wxUSE_EXPAT 1
20774_ACEOF
20775
20776 cat >>confdefs.h <<\_ACEOF
20777#define wxUSE_XML 1
20778_ACEOF
20779
20780
20781 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20782 if test "${ac_cv_header_expat_h+set}" = set; then
20783 echo "$as_me:$LINENO: checking for expat.h" >&5
20784echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20785if test "${ac_cv_header_expat_h+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787fi
20788echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20789echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20790else
20791 # Is the header compilable?
20792echo "$as_me:$LINENO: checking expat.h usability" >&5
20793echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20794cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20795/* confdefs.h. */
20796_ACEOF
20797cat confdefs.h >>conftest.$ac_ext
20798cat >>conftest.$ac_ext <<_ACEOF
20799/* end confdefs.h. */
20800$ac_includes_default
20801#include <expat.h>
20802_ACEOF
20803rm -f conftest.$ac_objext
20804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20805 (eval $ac_compile) 2>conftest.er1
672abd7a 20806 ac_status=$?
32ddf007
VS
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
672abd7a
VS
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
e1293dcf 20812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_header_compiler=yes
20825else
20826 echo "$as_me: failed program was:" >&5
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
20829ac_header_compiler=no
20830fi
32ddf007 20831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20833echo "${ECHO_T}$ac_header_compiler" >&6
20834
20835# Is the header present?
20836echo "$as_me:$LINENO: checking expat.h presence" >&5
20837echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20838cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20839/* confdefs.h. */
20840_ACEOF
20841cat confdefs.h >>conftest.$ac_ext
20842cat >>conftest.$ac_ext <<_ACEOF
20843/* end confdefs.h. */
20844#include <expat.h>
20845_ACEOF
20846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } >/dev/null; then
20854 if test -s conftest.err; then
20855 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20857 else
20858 ac_cpp_err=
20859 fi
20860else
20861 ac_cpp_err=yes
20862fi
20863if test -z "$ac_cpp_err"; then
20864 ac_header_preproc=yes
20865else
20866 echo "$as_me: failed program was:" >&5
20867sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 ac_header_preproc=no
20870fi
20871rm -f conftest.err conftest.$ac_ext
20872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20873echo "${ECHO_T}$ac_header_preproc" >&6
20874
20875# So? What about this header?
32ddf007
VS
20876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20877 yes:no: )
672abd7a
VS
20878 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20879echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20880 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20881echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20882 ac_header_preproc=yes
672abd7a 20883 ;;
32ddf007 20884 no:yes:* )
672abd7a
VS
20885 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20886echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
32ddf007
VS
20887 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20888echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20889 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20890echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20892echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20893 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20894echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20895 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20896echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20897 (
20898 cat <<\_ASBOX
32ddf007
VS
20899## ----------------------------------------- ##
20900## Report this to wx-dev@lists.wxwindows.org ##
20901## ----------------------------------------- ##
672abd7a
VS
20902_ASBOX
20903 ) |
20904 sed "s/^/$as_me: WARNING: /" >&2
20905 ;;
20906esac
20907echo "$as_me:$LINENO: checking for expat.h" >&5
20908echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20909if test "${ac_cv_header_expat_h+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912 ac_cv_header_expat_h=$ac_header_preproc
20913fi
20914echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20915echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20916
20917fi
5f0b6dff
VS
20918if test $ac_cv_header_expat_h = yes; then
20919 found_expat_h=1
20920fi
20921
20922
20923 if test "x$found_expat_h" = "x1"; then
20924 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20925echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20926if test "${wx_cv_expat_is_not_broken+set}" = set; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
20928else
20929
20930
672abd7a 20931
5f0b6dff
VS
20932 ac_ext=cc
20933ac_cpp='$CXXCPP $CPPFLAGS'
20934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20937
20938 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944#include <expat.h>
20945int
20946main ()
20947{
672abd7a 20948
5f0b6dff
VS
20949 ;
20950 return 0;
20951}
20952_ACEOF
20953rm -f conftest.$ac_objext
20954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20955 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20956 ac_status=$?
32ddf007
VS
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
5f0b6dff
VS
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
e1293dcf 20962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 wx_cv_expat_is_not_broken=yes
20975else
20976 echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979wx_cv_expat_is_not_broken=no
20980
20981fi
32ddf007 20982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20983 ac_ext=c
20984ac_cpp='$CPP $CPPFLAGS'
20985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988
20989
20990
20991fi
20992echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20993echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20994 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20995 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20996echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20997if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999else
21000 ac_check_lib_save_LIBS=$LIBS
21001LIBS="-lexpat $LIBS"
21002cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008
21009/* Override any gcc2 internal prototype to avoid an error. */
21010#ifdef __cplusplus
21011extern "C"
21012#endif
21013/* We use char because int might match the return type of a gcc2
21014 builtin and then its argument prototype would still apply. */
21015char XML_ParserCreate ();
21016int
21017main ()
21018{
21019XML_ParserCreate ();
21020 ;
21021 return 0;
21022}
21023_ACEOF
21024rm -f conftest.$ac_objext conftest$ac_exeext
21025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21026 (eval $ac_link) 2>conftest.er1
672abd7a 21027 ac_status=$?
32ddf007
VS
21028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
672abd7a
VS
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } &&
e1293dcf 21033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_lib_expat_XML_ParserCreate=yes
21046else
21047 echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050ac_cv_lib_expat_XML_ParserCreate=no
21051fi
32ddf007
VS
21052rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
21054LIBS=$ac_check_lib_save_LIBS
21055fi
21056echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21057echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21058if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21059 EXPAT_LINK=" -lexpat"
21060fi
21061
5f0b6dff 21062 fi
672abd7a
VS
21063 fi
21064 if test "x$EXPAT_LINK" = "x" ; then
21065 if test "$wxUSE_EXPAT" = "sys" ; then
21066 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21067echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21068 { (exit 1); exit 1; }; }
21069 else
21070 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21071echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21072 wxUSE_EXPAT=builtin
21073 fi
21074 else
21075 wxUSE_EXPAT=sys
21076 fi
21077 fi
21078 if test "$wxUSE_EXPAT" = "builtin" ; then
21079
21080
21081subdirs="$subdirs src/expat"
21082
21083 fi
21084fi
21085
21086
21087
3527f29c
VS
21088if test "$wxUSE_LIBMSPACK" != "no"; then
21089
21090 if test "${ac_cv_header_mspack_h+set}" = set; then
21091 echo "$as_me:$LINENO: checking for mspack.h" >&5
21092echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21093if test "${ac_cv_header_mspack_h+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095fi
21096echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21097echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21098else
21099 # Is the header compilable?
21100echo "$as_me:$LINENO: checking mspack.h usability" >&5
21101echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21102cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21103/* confdefs.h. */
21104_ACEOF
21105cat confdefs.h >>conftest.$ac_ext
21106cat >>conftest.$ac_ext <<_ACEOF
21107/* end confdefs.h. */
21108$ac_includes_default
21109#include <mspack.h>
21110_ACEOF
21111rm -f conftest.$ac_objext
21112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21113 (eval $ac_compile) 2>conftest.er1
3527f29c 21114 ac_status=$?
32ddf007
VS
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
3527f29c
VS
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
e1293dcf 21120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_header_compiler=yes
21133else
21134 echo "$as_me: failed program was:" >&5
21135sed 's/^/| /' conftest.$ac_ext >&5
21136
21137ac_header_compiler=no
21138fi
32ddf007 21139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
21140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21141echo "${ECHO_T}$ac_header_compiler" >&6
21142
21143# Is the header present?
21144echo "$as_me:$LINENO: checking mspack.h presence" >&5
21145echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21146cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21147/* confdefs.h. */
21148_ACEOF
21149cat confdefs.h >>conftest.$ac_ext
21150cat >>conftest.$ac_ext <<_ACEOF
21151/* end confdefs.h. */
21152#include <mspack.h>
21153_ACEOF
21154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } >/dev/null; then
21162 if test -s conftest.err; then
21163 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
21165 else
21166 ac_cpp_err=
21167 fi
21168else
21169 ac_cpp_err=yes
21170fi
21171if test -z "$ac_cpp_err"; then
21172 ac_header_preproc=yes
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ac_header_preproc=no
21178fi
21179rm -f conftest.err conftest.$ac_ext
21180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21181echo "${ECHO_T}$ac_header_preproc" >&6
21182
21183# So? What about this header?
32ddf007
VS
21184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21185 yes:no: )
3527f29c
VS
21186 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21187echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21188 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21189echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21190 ac_header_preproc=yes
3527f29c 21191 ;;
32ddf007 21192 no:yes:* )
3527f29c
VS
21193 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21194echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
32ddf007
VS
21195 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21196echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21198echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21199 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21200echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
21201 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21202echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21203 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21204echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
21205 (
21206 cat <<\_ASBOX
32ddf007
VS
21207## ----------------------------------------- ##
21208## Report this to wx-dev@lists.wxwindows.org ##
21209## ----------------------------------------- ##
3527f29c
VS
21210_ASBOX
21211 ) |
21212 sed "s/^/$as_me: WARNING: /" >&2
21213 ;;
21214esac
21215echo "$as_me:$LINENO: checking for mspack.h" >&5
21216echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21217if test "${ac_cv_header_mspack_h+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219else
21220 ac_cv_header_mspack_h=$ac_header_preproc
21221fi
21222echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21223echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21224
21225fi
21226if test $ac_cv_header_mspack_h = yes; then
21227 found_mspack_h=1
21228fi
21229
21230
21231 if test "x$found_mspack_h" = "x1"; then
21232 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21233echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21234if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21236else
21237 ac_check_lib_save_LIBS=$LIBS
21238LIBS="-lmspack $LIBS"
21239cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21240/* confdefs.h. */
21241_ACEOF
21242cat confdefs.h >>conftest.$ac_ext
21243cat >>conftest.$ac_ext <<_ACEOF
21244/* end confdefs.h. */
21245
21246/* Override any gcc2 internal prototype to avoid an error. */
21247#ifdef __cplusplus
21248extern "C"
21249#endif
21250/* We use char because int might match the return type of a gcc2
21251 builtin and then its argument prototype would still apply. */
21252char mspack_create_chm_decompressor ();
21253int
21254main ()
21255{
21256mspack_create_chm_decompressor ();
21257 ;
21258 return 0;
21259}
21260_ACEOF
21261rm -f conftest.$ac_objext conftest$ac_exeext
21262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21263 (eval $ac_link) 2>conftest.er1
3527f29c 21264 ac_status=$?
32ddf007
VS
21265 grep -v '^ *+' conftest.er1 >conftest.err
21266 rm -f conftest.er1
21267 cat conftest.err >&5
3527f29c
VS
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } &&
e1293dcf 21270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; } &&
21276 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21283else
21284 echo "$as_me: failed program was:" >&5
21285sed 's/^/| /' conftest.$ac_ext >&5
21286
21287ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21288fi
32ddf007
VS
21289rm -f conftest.err conftest.$ac_objext \
21290 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
21291LIBS=$ac_check_lib_save_LIBS
21292fi
21293echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21294echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21295if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21296 MSPACK_LINK=" -lmspack"
21297fi
21298
21299 fi
21300 if test "x$MSPACK_LINK" = "x" ; then
21301 wxUSE_LIBMSPACK=no
21302 else
21303 cat >>confdefs.h <<\_ACEOF
21304#define wxUSE_LIBMSPACK 1
21305_ACEOF
21306
21307 fi
21308fi
21309
21310
21311
21d1c967 21312AFMINSTALL=
2b5f62a0 21313WIN32INSTALL=
90dd450c 21314
21d1c967
GD
21315TOOLKIT=
21316TOOLKIT_INCLUDE=
21317WIDGET_SET=
21318
21319if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
21320
21321for ac_header in w32api.h
21d1c967 21322do
e6cc62c6
VS
21323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21324if eval "test \"\${$as_ac_Header+set}\" = set"; then
21325 echo "$as_me:$LINENO: checking for $ac_header" >&5
21326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21327if eval "test \"\${$as_ac_Header+set}\" = set"; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21329fi
21330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21332else
21333 # Is the header compilable?
21334echo "$as_me:$LINENO: checking $ac_header usability" >&5
21335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21336cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21337/* confdefs.h. */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h. */
21342$ac_includes_default
21343#include <$ac_header>
21344_ACEOF
21345rm -f conftest.$ac_objext
21346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21347 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21348 ac_status=$?
32ddf007
VS
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
e6cc62c6
VS
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
e1293dcf 21354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_header_compiler=yes
21367else
21368 echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371ac_header_compiler=no
21372fi
32ddf007 21373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21375echo "${ECHO_T}$ac_header_compiler" >&6
21376
21377# Is the header present?
21378echo "$as_me:$LINENO: checking $ac_header presence" >&5
21379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21380cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
21386#include <$ac_header>
21387_ACEOF
21388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } >/dev/null; then
21396 if test -s conftest.err; then
21397 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21399 else
21400 ac_cpp_err=
21401 fi
21402else
21403 ac_cpp_err=yes
21404fi
21405if test -z "$ac_cpp_err"; then
21406 ac_header_preproc=yes
21407else
21408 echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 ac_header_preproc=no
21412fi
21413rm -f conftest.err conftest.$ac_ext
21414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21415echo "${ECHO_T}$ac_header_preproc" >&6
21416
21417# So? What about this header?
32ddf007
VS
21418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21419 yes:no: )
e6cc62c6
VS
21420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21424 ac_header_preproc=yes
e6cc62c6 21425 ;;
32ddf007 21426 no:yes:* )
e6cc62c6
VS
21427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
21429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21430echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21434echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21439 (
21440 cat <<\_ASBOX
32ddf007
VS
21441## ----------------------------------------- ##
21442## Report this to wx-dev@lists.wxwindows.org ##
21443## ----------------------------------------- ##
e6cc62c6
VS
21444_ASBOX
21445 ) |
21446 sed "s/^/$as_me: WARNING: /" >&2
21447 ;;
21448esac
21449echo "$as_me:$LINENO: checking for $ac_header" >&5
21450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21451if eval "test \"\${$as_ac_Header+set}\" = set"; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21453else
32ddf007 21454 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 21455fi
e6cc62c6
VS
21456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21458
21d1c967 21459fi
e6cc62c6
VS
21460if test `eval echo '${'$as_ac_Header'}'` = yes; then
21461 cat >>confdefs.h <<_ACEOF
21462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21463_ACEOF
21464
21d1c967 21465fi
e6cc62c6 21466
21d1c967 21467done
f79bd02d 21468
e6cc62c6
VS
21469 if test "${ac_cv_header_windows_h+set}" = set; then
21470 echo "$as_me:$LINENO: checking for windows.h" >&5
21471echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21472if test "${ac_cv_header_windows_h+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474fi
21475echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21476echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21477else
21478 # Is the header compilable?
21479echo "$as_me:$LINENO: checking windows.h usability" >&5
21480echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21481cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21487$ac_includes_default
247f5006 21488#include <windows.h>
e6cc62c6
VS
21489_ACEOF
21490rm -f conftest.$ac_objext
21491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21492 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21493 ac_status=$?
32ddf007
VS
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
e6cc62c6
VS
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } &&
e1293dcf 21499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 ac_header_compiler=yes
21512else
21513 echo "$as_me: failed program was:" >&5
21514sed 's/^/| /' conftest.$ac_ext >&5
21515
21516ac_header_compiler=no
21517fi
32ddf007 21518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21520echo "${ECHO_T}$ac_header_compiler" >&6
21521
21522# Is the header present?
21523echo "$as_me:$LINENO: checking windows.h presence" >&5
21524echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21525cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21526/* confdefs.h. */
21527_ACEOF
21528cat confdefs.h >>conftest.$ac_ext
21529cat >>conftest.$ac_ext <<_ACEOF
21530/* end confdefs.h. */
21531#include <windows.h>
21532_ACEOF
21533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21535 ac_status=$?
21536 grep -v '^ *+' conftest.er1 >conftest.err
21537 rm -f conftest.er1
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } >/dev/null; then
21541 if test -s conftest.err; then
21542 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21544 else
21545 ac_cpp_err=
21546 fi
21547else
21548 ac_cpp_err=yes
21549fi
21550if test -z "$ac_cpp_err"; then
21551 ac_header_preproc=yes
21552else
21553 echo "$as_me: failed program was:" >&5
21554sed 's/^/| /' conftest.$ac_ext >&5
21555
21556 ac_header_preproc=no
21557fi
21558rm -f conftest.err conftest.$ac_ext
21559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21560echo "${ECHO_T}$ac_header_preproc" >&6
21561
21562# So? What about this header?
32ddf007
VS
21563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21564 yes:no: )
e6cc62c6
VS
21565 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21566echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21567 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21568echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21569 ac_header_preproc=yes
e6cc62c6 21570 ;;
32ddf007 21571 no:yes:* )
e6cc62c6
VS
21572 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21573echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
32ddf007
VS
21574 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21575echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21577echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21579echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21580 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21581echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21582 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21583echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21584 (
21585 cat <<\_ASBOX
32ddf007
VS
21586## ----------------------------------------- ##
21587## Report this to wx-dev@lists.wxwindows.org ##
21588## ----------------------------------------- ##
e6cc62c6
VS
21589_ASBOX
21590 ) |
21591 sed "s/^/$as_me: WARNING: /" >&2
21592 ;;
21593esac
21594echo "$as_me:$LINENO: checking for windows.h" >&5
21595echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21596if test "${ac_cv_header_windows_h+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21598else
21599 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21600fi
e6cc62c6
VS
21601echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21602echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21603
90dd450c 21604fi
e6cc62c6 21605if test $ac_cv_header_windows_h = yes; then
21d1c967 21606 :
90dd450c 21607else
21d1c967 21608
e6cc62c6
VS
21609 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21610echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21611 { (exit 1); exit 1; }; }
21612
5c6fa7d2 21613fi
7b4a847f 21614
5c6fa7d2 21615
e6cc62c6 21616
b3dfbbc9 21617 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21618
7bb2947d
MB
21619 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21620 LIBS="$LIBS -loleacc"
21621 fi
21622
21d1c967
GD
21623 case "${host}" in
21624 *-*-cygwin* )
b3dfbbc9 21625 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21626 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21627 esac
f79bd02d 21628
8647bec6
RG
21629 if test "$wxUSE_ODBC" = "sys" ; then
21630 wxUSE_ODBC = "yes"
21d1c967 21631 fi
8647bec6
RG
21632 if test "$wxUSE_ODBC" = "yes" ; then
21633 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21634 cat >>confdefs.h <<\_ACEOF
8647bec6 21635#define wxUSE_ODBC 1
e6cc62c6 21636_ACEOF
f79bd02d 21637
8647bec6 21638 fi
e6cc62c6 21639
21d1c967
GD
21640 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21641 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21642
21643 WIN32INSTALL=win32install
f79bd02d 21644fi
f79bd02d 21645
21d1c967
GD
21646if test "$wxUSE_GUI" = "yes"; then
21647 USE_GUI=1
f79bd02d 21648
21d1c967 21649 GUI_TK_LIBRARY=
f79bd02d 21650
21d1c967
GD
21651 WXGTK12=
21652 WXGTK127=
21653 WXGTK20=
0f87e84c 21654 WXGPE=
f79bd02d 21655
21d1c967
GD
21656 if test "$wxUSE_MSW" = 1 ; then
21657 TOOLKIT=MSW
21658 GUIDIST=MSW_DIST
ffef10f6
VS
21659
21660 case "${host}" in
21661 *-*-mingw32* )
21662 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21663 esac
f79bd02d
JS
21664 fi
21665
21d1c967 21666 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21667 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21668echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21669
21670 gtk_version_cached=1
e6cc62c6
VS
21671 if test "${wx_cv_lib_gtk+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21673else
e6cc62c6 21674
21d1c967 21675 gtk_version_cached=0
e6cc62c6
VS
21676 echo "$as_me:$LINENO: result: " >&5
21677echo "${ECHO_T}" >&6
f79bd02d 21678
21d1c967
GD
21679 GTK_MODULES=
21680 if test "$wxUSE_THREADS" = "yes"; then
21681 GTK_MODULES=gthread
21682 fi
f79bd02d 21683
2b5f62a0 21684 wx_cv_lib_gtk=
21d1c967
GD
21685 if test "x$wxUSE_GTK2" = "xyes"; then
21686 # Check whether --enable-gtktest or --disable-gtktest was given.
21687if test "${enable_gtktest+set}" = set; then
21688 enableval="$enable_gtktest"
e6cc62c6 21689
f79bd02d 21690else
21d1c967 21691 enable_gtktest=yes
e6cc62c6 21692fi;
f79bd02d 21693
21d1c967
GD
21694 pkg_config_args=gtk+-2.0
21695 for module in . $GTK_MODULES
21696 do
21697 case "$module" in
e6cc62c6 21698 gthread)
21d1c967
GD
21699 pkg_config_args="$pkg_config_args gthread-2.0"
21700 ;;
21701 esac
21702 done
21703
21704 no_gtk=""
f79bd02d 21705
21d1c967
GD
21706 # Extract the first word of "pkg-config", so it can be a program name with args.
21707set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21708echo "$as_me:$LINENO: checking for $ac_word" >&5
21709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21710if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21712else
e6cc62c6
VS
21713 case $PKG_CONFIG in
21714 [\\/]* | ?:[\\/]*)
21d1c967
GD
21715 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21716 ;;
21d1c967 21717 *)
e6cc62c6
VS
21718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21719for as_dir in $PATH
21720do
21721 IFS=$as_save_IFS
21722 test -z "$as_dir" && as_dir=.
21723 for ac_exec_ext in '' $ac_executable_extensions; do
21724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21725 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21727 break 2
21728 fi
21729done
21730done
21731
21d1c967
GD
21732 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21733 ;;
21734esac
f79bd02d 21735fi
e6cc62c6
VS
21736PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21737
21d1c967 21738if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21739 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21740echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21741else
e6cc62c6
VS
21742 echo "$as_me:$LINENO: result: no" >&5
21743echo "${ECHO_T}no" >&6
f79bd02d
JS
21744fi
21745
8284b0c5 21746
21d1c967
GD
21747 if test x$PKG_CONFIG != xno ; then
21748 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21749 :
21750 else
21751 echo *** pkg-config too old; version 0.7 or better required.
21752 no_gtk=yes
21753 PKG_CONFIG=no
21754 fi
21755 else
21756 no_gtk=yes
21757 fi
f79bd02d 21758
21d1c967 21759 min_gtk_version=2.0.0
e6cc62c6
VS
21760 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21761echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21762
21d1c967
GD
21763 if test x$PKG_CONFIG != xno ; then
21764 ## don't try to run the test against uninstalled libtool libs
21765 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21766 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21767 enable_gtktest=no
21768 fi
f79bd02d 21769
21d1c967
GD
21770 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21771 :
21772 else
21773 no_gtk=yes
21774 fi
21775 fi
f79bd02d 21776
21d1c967
GD
21777 if test x"$no_gtk" = x ; then
21778 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21779 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21780 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21781 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21782 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21783 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21784 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21785 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21786 if test "x$enable_gtktest" = "xyes" ; then
21787 ac_save_CFLAGS="$CFLAGS"
21788 ac_save_LIBS="$LIBS"
21789 CFLAGS="$CFLAGS $GTK_CFLAGS"
21790 LIBS="$GTK_LIBS $LIBS"
21791 rm -f conf.gtktest
21792 if test "$cross_compiling" = yes; then
21793 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21794else
e6cc62c6 21795 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21796/* confdefs.h. */
21797_ACEOF
21798cat confdefs.h >>conftest.$ac_ext
21799cat >>conftest.$ac_ext <<_ACEOF
21800/* end confdefs.h. */
f79bd02d 21801
21d1c967
GD
21802#include <gtk/gtk.h>
21803#include <stdio.h>
21804#include <stdlib.h>
f79bd02d 21805
e6cc62c6 21806int
21d1c967
GD
21807main ()
21808{
21809 int major, minor, micro;
21810 char *tmp_version;
f79bd02d 21811
21d1c967 21812 system ("touch conf.gtktest");
f79bd02d 21813
21d1c967
GD
21814 /* HP/UX 9 (%@#!) writes to sscanf strings */
21815 tmp_version = g_strdup("$min_gtk_version");
21816 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21817 printf("%s, bad version string\n", "$min_gtk_version");
21818 exit(1);
21819 }
f79bd02d 21820
21d1c967
GD
21821 if ((gtk_major_version != $gtk_config_major_version) ||
21822 (gtk_minor_version != $gtk_config_minor_version) ||
21823 (gtk_micro_version != $gtk_config_micro_version))
21824 {
e6cc62c6 21825 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21826 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21827 gtk_major_version, gtk_minor_version, gtk_micro_version);
21828 printf ("*** was found! If pkg-config was correct, then it is best\n");
21829 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21830 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21831 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21832 printf("*** required on your system.\n");
21833 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21834 printf("*** to point to the correct configuration files\n");
e6cc62c6 21835 }
21d1c967
GD
21836 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21837 (gtk_minor_version != GTK_MINOR_VERSION) ||
21838 (gtk_micro_version != GTK_MICRO_VERSION))
21839 {
21840 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21841 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21842 printf("*** library (version %d.%d.%d)\n",
21843 gtk_major_version, gtk_minor_version, gtk_micro_version);
21844 }
21845 else
21846 {
21847 if ((gtk_major_version > major) ||
21848 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21849 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21850 {
21851 return 0;
21852 }
21853 else
21854 {
21855 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21856 gtk_major_version, gtk_minor_version, gtk_micro_version);
21857 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21858 major, minor, micro);
21859 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21860 printf("***\n");
21861 printf("*** If you have already installed a sufficiently new version, this error\n");
21862 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21863 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21864 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21865 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21866 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21867 printf("*** so that the correct libraries are found at run-time))\n");
21868 }
21869 }
21870 return 1;
21871}
f79bd02d 21872
e6cc62c6
VS
21873_ACEOF
21874rm -f conftest$ac_exeext
21875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21876 (eval $ac_link) 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21d1c967 21885 :
f79bd02d 21886else
e6cc62c6
VS
21887 echo "$as_me: program exited with status $ac_status" >&5
21888echo "$as_me: failed program was:" >&5
21889sed 's/^/| /' conftest.$ac_ext >&5
21890
21891( exit $ac_status )
21892no_gtk=yes
f79bd02d 21893fi
32ddf007 21894rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21895fi
21d1c967
GD
21896 CFLAGS="$ac_save_CFLAGS"
21897 LIBS="$ac_save_LIBS"
21898 fi
21899 fi
21900 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21901 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21902echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21903 wx_cv_lib_gtk=2.0
21d1c967 21904 else
e6cc62c6
VS
21905 echo "$as_me:$LINENO: result: no" >&5
21906echo "${ECHO_T}no" >&6
21d1c967
GD
21907 if test "$PKG_CONFIG" = "no" ; then
21908 echo "*** A new enough version of pkg-config was not found."
21909 echo "*** See http://pkgconfig.sourceforge.net"
21910 else
21911 if test -f conf.gtktest ; then
21912 :
21913 else
21914 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21915 ac_save_CFLAGS="$CFLAGS"
21916 ac_save_LIBS="$LIBS"
21d1c967
GD
21917 CFLAGS="$CFLAGS $GTK_CFLAGS"
21918 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21919 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21920/* confdefs.h. */
21921_ACEOF
21922cat confdefs.h >>conftest.$ac_ext
21923cat >>conftest.$ac_ext <<_ACEOF
21924/* end confdefs.h. */
21d1c967
GD
21925
21926#include <gtk/gtk.h>
21927#include <stdio.h>
f79bd02d 21928
e6cc62c6
VS
21929int
21930main ()
21931{
21932 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21933 ;
21934 return 0;
21935}
21936_ACEOF
21937rm -f conftest.$ac_objext conftest$ac_exeext
21938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21939 (eval $ac_link) 2>conftest.er1
e6cc62c6 21940 ac_status=$?
32ddf007
VS
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
e6cc62c6
VS
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } &&
e1293dcf 21946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21955 ac_status=$?
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21d1c967
GD
21958 echo "*** The test program compiled, but did not run. This usually means"
21959 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21960 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21961 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21962 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21963 echo "*** is required on your system"
21964 echo "***"
21965 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21966 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21967else
e6cc62c6
VS
21968 echo "$as_me: failed program was:" >&5
21969sed 's/^/| /' conftest.$ac_ext >&5
21970
21971 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 21972 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 21973fi
32ddf007
VS
21974rm -f conftest.err conftest.$ac_objext \
21975 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21976 CFLAGS="$ac_save_CFLAGS"
21977 LIBS="$ac_save_LIBS"
21978 fi
21979 fi
21980 GTK_CFLAGS=""
21981 GTK_LIBS=""
21982 :
21983 fi
e6cc62c6
VS
21984
21985
21d1c967 21986 rm -f conf.gtktest
f79bd02d 21987
2b5f62a0 21988 else
e6cc62c6
VS
21989
21990# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21991if test "${with_gtk_prefix+set}" = set; then
21992 withval="$with_gtk_prefix"
21993 gtk_config_prefix="$withval"
21994else
21995 gtk_config_prefix=""
e6cc62c6 21996fi;
f79bd02d 21997
21d1c967
GD
21998# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21999if test "${with_gtk_exec_prefix+set}" = set; then
22000 withval="$with_gtk_exec_prefix"
22001 gtk_config_exec_prefix="$withval"
22002else
22003 gtk_config_exec_prefix=""
e6cc62c6 22004fi;
21d1c967
GD
22005# Check whether --enable-gtktest or --disable-gtktest was given.
22006if test "${enable_gtktest+set}" = set; then
22007 enableval="$enable_gtktest"
e6cc62c6 22008
21d1c967
GD
22009else
22010 enable_gtktest=yes
e6cc62c6 22011fi;
21d1c967
GD
22012
22013 for module in . $GTK_MODULES
22014 do
22015 case "$module" in
e6cc62c6 22016 gthread)
21d1c967
GD
22017 gtk_config_args="$gtk_config_args gthread"
22018 ;;
22019 esac
22020 done
22021
22022 if test x$gtk_config_exec_prefix != x ; then
22023 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22024 if test x${GTK_CONFIG+set} != xset ; then
22025 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22026 fi
22027 fi
22028 if test x$gtk_config_prefix != x ; then
22029 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22030 if test x${GTK_CONFIG+set} != xset ; then
22031 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22032 fi
22033 fi
22034
22035 # Extract the first word of "gtk-config", so it can be a program name with args.
22036set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22037echo "$as_me:$LINENO: checking for $ac_word" >&5
22038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22039if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22041else
e6cc62c6
VS
22042 case $GTK_CONFIG in
22043 [\\/]* | ?:[\\/]*)
21d1c967
GD
22044 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22045 ;;
21d1c967 22046 *)
e6cc62c6
VS
22047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22048for as_dir in $PATH
22049do
22050 IFS=$as_save_IFS
22051 test -z "$as_dir" && as_dir=.
22052 for ac_exec_ext in '' $ac_executable_extensions; do
22053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22054 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22056 break 2
22057 fi
22058done
22059done
22060
21d1c967
GD
22061 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22062 ;;
22063esac
22064fi
e6cc62c6
VS
22065GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22066
21d1c967 22067if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22068 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22069echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22070else
e6cc62c6
VS
22071 echo "$as_me:$LINENO: result: no" >&5
22072echo "${ECHO_T}no" >&6
21d1c967
GD
22073fi
22074
22075 min_gtk_version=1.2.7
e6cc62c6
VS
22076 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22077echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22078 no_gtk=""
22079 if test "$GTK_CONFIG" = "no" ; then
22080 no_gtk=yes
22081 else
22082 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22083 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22084 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22085 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22086 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22087 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22088 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22089 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22090 if test "x$enable_gtktest" = "xyes" ; then
22091 ac_save_CFLAGS="$CFLAGS"
22092 ac_save_LIBS="$LIBS"
22093 CFLAGS="$CFLAGS $GTK_CFLAGS"
22094 LIBS="$GTK_LIBS $LIBS"
22095 rm -f conf.gtktest
22096 if test "$cross_compiling" = yes; then
22097 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 22098else
e6cc62c6 22099 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22100/* confdefs.h. */
22101_ACEOF
22102cat confdefs.h >>conftest.$ac_ext
22103cat >>conftest.$ac_ext <<_ACEOF
22104/* end confdefs.h. */
f79bd02d 22105
21d1c967
GD
22106#include <gtk/gtk.h>
22107#include <stdio.h>
22108#include <stdlib.h>
f79bd02d 22109
e6cc62c6 22110int
21d1c967
GD
22111main ()
22112{
22113 int major, minor, micro;
22114 char *tmp_version;
22115
22116 system ("touch conf.gtktest");
22117
22118 /* HP/UX 9 (%@#!) writes to sscanf strings */
22119 tmp_version = g_strdup("$min_gtk_version");
22120 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22121 printf("%s, bad version string\n", "$min_gtk_version");
22122 exit(1);
22123 }
90dd450c 22124
21d1c967
GD
22125 if ((gtk_major_version != $gtk_config_major_version) ||
22126 (gtk_minor_version != $gtk_config_minor_version) ||
22127 (gtk_micro_version != $gtk_config_micro_version))
22128 {
e6cc62c6 22129 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22130 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22131 gtk_major_version, gtk_minor_version, gtk_micro_version);
22132 printf ("*** was found! If gtk-config was correct, then it is best\n");
22133 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22134 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22135 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22136 printf("*** required on your system.\n");
22137 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22138 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22139 printf("*** before re-running configure\n");
e6cc62c6 22140 }
21d1c967
GD
22141#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22142 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22143 (gtk_minor_version != GTK_MINOR_VERSION) ||
22144 (gtk_micro_version != GTK_MICRO_VERSION))
22145 {
22146 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22147 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22148 printf("*** library (version %d.%d.%d)\n",
22149 gtk_major_version, gtk_minor_version, gtk_micro_version);
22150 }
22151#endif /* defined (GTK_MAJOR_VERSION) ... */
22152 else
22153 {
22154 if ((gtk_major_version > major) ||
22155 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22156 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22157 {
22158 return 0;
22159 }
22160 else
22161 {
22162 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22163 gtk_major_version, gtk_minor_version, gtk_micro_version);
22164 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22165 major, minor, micro);
22166 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22167 printf("***\n");
22168 printf("*** If you have already installed a sufficiently new version, this error\n");
22169 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22170 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22171 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22172 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22173 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22174 printf("*** so that the correct libraries are found at run-time))\n");
22175 }
22176 }
22177 return 1;
22178}
22179
e6cc62c6
VS
22180_ACEOF
22181rm -f conftest$ac_exeext
22182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183 (eval $ac_link) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; }; then
21d1c967
GD
22192 :
22193else
e6cc62c6
VS
22194 echo "$as_me: program exited with status $ac_status" >&5
22195echo "$as_me: failed program was:" >&5
22196sed 's/^/| /' conftest.$ac_ext >&5
22197
22198( exit $ac_status )
22199no_gtk=yes
21d1c967 22200fi
32ddf007 22201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22202fi
21d1c967
GD
22203 CFLAGS="$ac_save_CFLAGS"
22204 LIBS="$ac_save_LIBS"
22205 fi
22206 fi
22207 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22208 echo "$as_me:$LINENO: result: yes" >&5
22209echo "${ECHO_T}yes" >&6
22210 wx_cv_lib_gtk=1.2.7
21d1c967 22211 else
e6cc62c6
VS
22212 echo "$as_me:$LINENO: result: no" >&5
22213echo "${ECHO_T}no" >&6
21d1c967
GD
22214 if test "$GTK_CONFIG" = "no" ; then
22215 echo "*** The gtk-config script installed by GTK could not be found"
22216 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22217 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22218 echo "*** full path to gtk-config."
22219 else
22220 if test -f conf.gtktest ; then
22221 :
22222 else
22223 echo "*** Could not run GTK test program, checking why..."
22224 CFLAGS="$CFLAGS $GTK_CFLAGS"
22225 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22226 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22227/* confdefs.h. */
22228_ACEOF
22229cat confdefs.h >>conftest.$ac_ext
22230cat >>conftest.$ac_ext <<_ACEOF
22231/* end confdefs.h. */
21d1c967
GD
22232
22233#include <gtk/gtk.h>
22234#include <stdio.h>
22235
e6cc62c6
VS
22236int
22237main ()
22238{
22239 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22240 ;
22241 return 0;
22242}
22243_ACEOF
22244rm -f conftest.$ac_objext conftest$ac_exeext
22245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22246 (eval $ac_link) 2>conftest.er1
e6cc62c6 22247 ac_status=$?
32ddf007
VS
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
e6cc62c6
VS
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } &&
e1293dcf 22253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
21d1c967
GD
22265 echo "*** The test program compiled, but did not run. This usually means"
22266 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22267 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22268 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22269 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22270 echo "*** is required on your system"
22271 echo "***"
22272 echo "*** If you have an old version installed, it is best to remove it, although"
22273 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22274 echo "***"
22275 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22276 echo "*** came with the system with the command"
22277 echo "***"
e6cc62c6 22278 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22279else
e6cc62c6
VS
22280 echo "$as_me: failed program was:" >&5
22281sed 's/^/| /' conftest.$ac_ext >&5
22282
22283 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22284 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22285 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22286 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22287fi
32ddf007
VS
22288rm -f conftest.err conftest.$ac_objext \
22289 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22290 CFLAGS="$ac_save_CFLAGS"
22291 LIBS="$ac_save_LIBS"
22292 fi
22293 fi
22294 GTK_CFLAGS=""
22295 GTK_LIBS=""
22296 :
22297 fi
e6cc62c6
VS
22298
22299
21d1c967
GD
22300 rm -f conf.gtktest
22301
21d1c967 22302
2b5f62a0 22303 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
22304
22305# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
22306if test "${with_gtk_prefix+set}" = set; then
22307 withval="$with_gtk_prefix"
22308 gtk_config_prefix="$withval"
22309else
22310 gtk_config_prefix=""
e6cc62c6 22311fi;
f79bd02d 22312
21d1c967
GD
22313# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22314if test "${with_gtk_exec_prefix+set}" = set; then
22315 withval="$with_gtk_exec_prefix"
22316 gtk_config_exec_prefix="$withval"
22317else
22318 gtk_config_exec_prefix=""
e6cc62c6 22319fi;
21d1c967
GD
22320# Check whether --enable-gtktest or --disable-gtktest was given.
22321if test "${enable_gtktest+set}" = set; then
22322 enableval="$enable_gtktest"
e6cc62c6 22323
90dd450c 22324else
21d1c967 22325 enable_gtktest=yes
e6cc62c6 22326fi;
21d1c967
GD
22327
22328 for module in . $GTK_MODULES
22329 do
22330 case "$module" in
e6cc62c6 22331 gthread)
21d1c967
GD
22332 gtk_config_args="$gtk_config_args gthread"
22333 ;;
22334 esac
22335 done
22336
22337 if test x$gtk_config_exec_prefix != x ; then
22338 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22339 if test x${GTK_CONFIG+set} != xset ; then
22340 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22341 fi
22342 fi
22343 if test x$gtk_config_prefix != x ; then
22344 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22345 if test x${GTK_CONFIG+set} != xset ; then
22346 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22347 fi
22348 fi
22349
22350 # Extract the first word of "gtk-config", so it can be a program name with args.
22351set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22352echo "$as_me:$LINENO: checking for $ac_word" >&5
22353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22354if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22356else
e6cc62c6
VS
22357 case $GTK_CONFIG in
22358 [\\/]* | ?:[\\/]*)
21d1c967
GD
22359 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22360 ;;
21d1c967 22361 *)
e6cc62c6
VS
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363for as_dir in $PATH
22364do
22365 IFS=$as_save_IFS
22366 test -z "$as_dir" && as_dir=.
22367 for ac_exec_ext in '' $ac_executable_extensions; do
22368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22371 break 2
22372 fi
22373done
22374done
22375
21d1c967
GD
22376 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22377 ;;
22378esac
22379fi
e6cc62c6
VS
22380GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22381
21d1c967 22382if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22383 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22384echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22385else
e6cc62c6
VS
22386 echo "$as_me:$LINENO: result: no" >&5
22387echo "${ECHO_T}no" >&6
21d1c967
GD
22388fi
22389
22390 min_gtk_version=1.2.3
e6cc62c6
VS
22391 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22392echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22393 no_gtk=""
22394 if test "$GTK_CONFIG" = "no" ; then
22395 no_gtk=yes
22396 else
22397 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22398 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22399 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22401 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22403 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22404 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22405 if test "x$enable_gtktest" = "xyes" ; then
22406 ac_save_CFLAGS="$CFLAGS"
22407 ac_save_LIBS="$LIBS"
22408 CFLAGS="$CFLAGS $GTK_CFLAGS"
22409 LIBS="$GTK_LIBS $LIBS"
22410 rm -f conf.gtktest
22411 if test "$cross_compiling" = yes; then
22412 echo $ac_n "cross compiling; assumed OK... $ac_c"
22413else
e6cc62c6 22414 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22415/* confdefs.h. */
22416_ACEOF
22417cat confdefs.h >>conftest.$ac_ext
22418cat >>conftest.$ac_ext <<_ACEOF
22419/* end confdefs.h. */
21d1c967
GD
22420
22421#include <gtk/gtk.h>
22422#include <stdio.h>
22423#include <stdlib.h>
22424
e6cc62c6 22425int
21d1c967
GD
22426main ()
22427{
22428 int major, minor, micro;
22429 char *tmp_version;
22430
22431 system ("touch conf.gtktest");
22432
22433 /* HP/UX 9 (%@#!) writes to sscanf strings */
22434 tmp_version = g_strdup("$min_gtk_version");
22435 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22436 printf("%s, bad version string\n", "$min_gtk_version");
22437 exit(1);
22438 }
22439
22440 if ((gtk_major_version != $gtk_config_major_version) ||
22441 (gtk_minor_version != $gtk_config_minor_version) ||
22442 (gtk_micro_version != $gtk_config_micro_version))
22443 {
e6cc62c6 22444 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22445 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22446 gtk_major_version, gtk_minor_version, gtk_micro_version);
22447 printf ("*** was found! If gtk-config was correct, then it is best\n");
22448 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22449 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22450 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22451 printf("*** required on your system.\n");
22452 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22453 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22454 printf("*** before re-running configure\n");
e6cc62c6 22455 }
21d1c967
GD
22456#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22457 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22458 (gtk_minor_version != GTK_MINOR_VERSION) ||
22459 (gtk_micro_version != GTK_MICRO_VERSION))
22460 {
22461 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22462 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22463 printf("*** library (version %d.%d.%d)\n",
22464 gtk_major_version, gtk_minor_version, gtk_micro_version);
22465 }
22466#endif /* defined (GTK_MAJOR_VERSION) ... */
22467 else
22468 {
22469 if ((gtk_major_version > major) ||
22470 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22471 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22472 {
22473 return 0;
22474 }
22475 else
22476 {
22477 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22478 gtk_major_version, gtk_minor_version, gtk_micro_version);
22479 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22480 major, minor, micro);
22481 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22482 printf("***\n");
22483 printf("*** If you have already installed a sufficiently new version, this error\n");
22484 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22485 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22486 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22487 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22488 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22489 printf("*** so that the correct libraries are found at run-time))\n");
22490 }
22491 }
22492 return 1;
22493}
22494
e6cc62c6
VS
22495_ACEOF
22496rm -f conftest$ac_exeext
22497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498 (eval $ac_link) 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
21d1c967
GD
22507 :
22508else
e6cc62c6
VS
22509 echo "$as_me: program exited with status $ac_status" >&5
22510echo "$as_me: failed program was:" >&5
22511sed 's/^/| /' conftest.$ac_ext >&5
22512
22513( exit $ac_status )
22514no_gtk=yes
21d1c967 22515fi
32ddf007 22516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22517fi
21d1c967
GD
22518 CFLAGS="$ac_save_CFLAGS"
22519 LIBS="$ac_save_LIBS"
22520 fi
22521 fi
22522 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22523 echo "$as_me:$LINENO: result: yes" >&5
22524echo "${ECHO_T}yes" >&6
22525 wx_cv_lib_gtk=1.2.3
21d1c967 22526 else
e6cc62c6
VS
22527 echo "$as_me:$LINENO: result: no" >&5
22528echo "${ECHO_T}no" >&6
21d1c967
GD
22529 if test "$GTK_CONFIG" = "no" ; then
22530 echo "*** The gtk-config script installed by GTK could not be found"
22531 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22532 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22533 echo "*** full path to gtk-config."
22534 else
22535 if test -f conf.gtktest ; then
22536 :
22537 else
22538 echo "*** Could not run GTK test program, checking why..."
22539 CFLAGS="$CFLAGS $GTK_CFLAGS"
22540 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22541 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22542/* confdefs.h. */
22543_ACEOF
22544cat confdefs.h >>conftest.$ac_ext
22545cat >>conftest.$ac_ext <<_ACEOF
22546/* end confdefs.h. */
21d1c967
GD
22547
22548#include <gtk/gtk.h>
22549#include <stdio.h>
f79bd02d 22550
e6cc62c6
VS
22551int
22552main ()
22553{
22554 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22555 ;
22556 return 0;
22557}
22558_ACEOF
22559rm -f conftest.$ac_objext conftest$ac_exeext
22560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22561 (eval $ac_link) 2>conftest.er1
e6cc62c6 22562 ac_status=$?
32ddf007
VS
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
e6cc62c6
VS
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } &&
e1293dcf 22568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; } &&
22574 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
21d1c967
GD
22580 echo "*** The test program compiled, but did not run. This usually means"
22581 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22582 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22583 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22584 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22585 echo "*** is required on your system"
22586 echo "***"
22587 echo "*** If you have an old version installed, it is best to remove it, although"
22588 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22589 echo "***"
22590 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22591 echo "*** came with the system with the command"
22592 echo "***"
e6cc62c6 22593 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22594else
e6cc62c6
VS
22595 echo "$as_me: failed program was:" >&5
22596sed 's/^/| /' conftest.$ac_ext >&5
22597
22598 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22599 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22600 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22601 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22602fi
32ddf007
VS
22603rm -f conftest.err conftest.$ac_objext \
22604 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22605 CFLAGS="$ac_save_CFLAGS"
22606 LIBS="$ac_save_LIBS"
22607 fi
22608 fi
22609 GTK_CFLAGS=""
22610 GTK_LIBS=""
22611 :
22612 fi
e6cc62c6
VS
22613
22614
21d1c967 22615 rm -f conf.gtktest
f79bd02d 22616
2b5f62a0 22617 fi
21d1c967
GD
22618 fi
22619
22620 if test -z "$wx_cv_lib_gtk"; then
22621 wx_cv_lib_gtk=none
22622 else
22623 wx_cv_cflags_gtk=$GTK_CFLAGS
22624 wx_cv_libs_gtk=$GTK_LIBS
22625 fi
e6cc62c6
VS
22626
22627
5c6fa7d2 22628fi
52127426 22629
8284b0c5 22630
21d1c967 22631 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22632 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22633echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22634 fi
22635
22636 case "$wx_cv_lib_gtk" in
22637 2.0) WXGTK20=1
2b5f62a0 22638 TOOLKIT_VERSION=2
21d1c967
GD
22639 ;;
22640 1.2.7) WXGTK127=1
22641 WXGTK12=1
22642 ;;
22643 1.2.3) WXGTK12=1
22644 ;;
e6cc62c6
VS
22645 *) { { echo "$as_me:$LINENO: error:
22646Please check that gtk-config is in path, the directory
22647where GTK+ libraries are installed (returned by
22648'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22649equivalent variable and GTK+ is version 1.2.3 or above.
22650 " >&5
22651echo "$as_me: error:
247f5006
VZ
22652Please check that gtk-config is in path, the directory
22653where GTK+ libraries are installed (returned by
22654'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22655equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22656 " >&2;}
22657 { (exit 1); exit 1; }; }
21d1c967
GD
22658 ;;
22659 esac
22660
b13cd66e
VZ
22661 if test "$WXGTK20" = 1; then
22662 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22663
f09359cf
VS
22664 succeeded=no
22665
22666 if test -z "$PKG_CONFIG"; then
22667 # Extract the first word of "pkg-config", so it can be a program name with args.
22668set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22669echo "$as_me:$LINENO: checking for $ac_word" >&5
22670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22671if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22673else
e6cc62c6
VS
22674 case $PKG_CONFIG in
22675 [\\/]* | ?:[\\/]*)
f09359cf
VS
22676 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22677 ;;
f09359cf 22678 *)
e6cc62c6
VS
22679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22680for as_dir in $PATH
22681do
22682 IFS=$as_save_IFS
22683 test -z "$as_dir" && as_dir=.
22684 for ac_exec_ext in '' $ac_executable_extensions; do
22685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22686 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22688 break 2
22689 fi
22690done
22691done
22692
f09359cf
VS
22693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22694 ;;
22695esac
22696fi
e6cc62c6
VS
22697PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22698
f09359cf 22699if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22700 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22701echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22702else
e6cc62c6
VS
22703 echo "$as_me:$LINENO: result: no" >&5
22704echo "${ECHO_T}no" >&6
f09359cf
VS
22705fi
22706
22707 fi
22708
22709 if test "$PKG_CONFIG" = "no" ; then
22710 echo "*** The pkg-config script could not be found. Make sure it is"
22711 echo "*** in your path, or set the PKG_CONFIG environment variable"
22712 echo "*** to the full path to pkg-config."
22713 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22714 else
22715 PKG_CONFIG_MIN_VERSION=0.9.0
22716 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22717 echo "$as_me:$LINENO: checking for pangoft2" >&5
22718echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22719
22720 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22721 echo "$as_me:$LINENO: result: yes" >&5
22722echo "${ECHO_T}yes" >&6
f09359cf
VS
22723 succeeded=yes
22724
e6cc62c6
VS
22725 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22726echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22727 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22728 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22729echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22730
e6cc62c6
VS
22731 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22732echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22733 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22734 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22735echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22736 else
22737 PANGOFT2_CFLAGS=""
22738 PANGOFT2_LIBS=""
e6cc62c6 22739 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22740 ## do set a variable so people can do so.
22741 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22742
f09359cf
VS
22743 fi
22744
e6cc62c6
VS
22745
22746
f09359cf
VS
22747 else
22748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22750 fi
22751 fi
22752
22753 if test $succeeded = yes; then
e6cc62c6 22754
b13cd66e 22755 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22756 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22757
f09359cf 22758 else
e6cc62c6
VS
22759
22760 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22761echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22762 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22763
22764
f09359cf
VS
22765 fi
22766
b13cd66e 22767 fi
2b5f62a0
VZ
22768 else
22769 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22770 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22771echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22772 wxUSE_UNICODE=no
22773 fi
22774 fi
22775
22776 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22777
22778for ac_func in poll
2b5f62a0 22779do
e6cc62c6
VS
22780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22781echo "$as_me:$LINENO: checking for $ac_func" >&5
22782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22783if eval "test \"\${$as_ac_var+set}\" = set"; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785else
22786 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22787/* confdefs.h. */
22788_ACEOF
22789cat confdefs.h >>conftest.$ac_ext
22790cat >>conftest.$ac_ext <<_ACEOF
22791/* end confdefs.h. */
32ddf007
VS
22792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22794#define $ac_func innocuous_$ac_func
22795
2b5f62a0 22796/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22797 which can conflict with char $ac_func (); below.
22798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22799 <limits.h> exists even on freestanding compilers. */
32ddf007 22800
e6cc62c6
VS
22801#ifdef __STDC__
22802# include <limits.h>
22803#else
22804# include <assert.h>
22805#endif
32ddf007
VS
22806
22807#undef $ac_func
22808
2b5f62a0 22809/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22810#ifdef __cplusplus
22811extern "C"
22812{
22813#endif
2b5f62a0 22814/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22815 builtin and then its argument prototype would still apply. */
22816char $ac_func ();
2b5f62a0
VZ
22817/* The GNU C library defines this for functions which it implements
22818 to always fail with ENOSYS. Some functions are actually named
22819 something starting with __ and the normal name is an alias. */
22820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22821choke me
22822#else
e6cc62c6
VS
22823char (*f) () = $ac_func;
22824#endif
22825#ifdef __cplusplus
22826}
2b5f62a0
VZ
22827#endif
22828
e6cc62c6
VS
22829int
22830main ()
22831{
22832return f != $ac_func;
22833 ;
22834 return 0;
22835}
22836_ACEOF
22837rm -f conftest.$ac_objext conftest$ac_exeext
22838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22839 (eval $ac_link) 2>conftest.er1
e6cc62c6 22840 ac_status=$?
32ddf007
VS
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
e6cc62c6
VS
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } &&
e1293dcf 22846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22849 ac_status=$?
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; } &&
22852 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; }; then
22858 eval "$as_ac_var=yes"
22859else
22860 echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
22862
22863eval "$as_ac_var=no"
22864fi
32ddf007
VS
22865rm -f conftest.err conftest.$ac_objext \
22866 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22867fi
22868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22870if test `eval echo '${'$as_ac_var'}'` = yes; then
22871 cat >>confdefs.h <<_ACEOF
22872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22873_ACEOF
2b5f62a0 22874
2b5f62a0
VZ
22875fi
22876done
22877
f09359cf
VS
22878 fi
22879
21d1c967 22880 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22881 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22882
22883 AFMINSTALL=afminstall
22884 TOOLKIT=GTK
22885 GUIDIST=GTK_DIST
22886
e6cc62c6
VS
22887 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22888echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22889if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22891else
e6cc62c6 22892 ac_check_lib_save_LIBS=$LIBS
21d1c967 22893LIBS="-lgdk $LIBS"
e6cc62c6 22894cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22895/* confdefs.h. */
22896_ACEOF
22897cat confdefs.h >>conftest.$ac_ext
22898cat >>conftest.$ac_ext <<_ACEOF
22899/* end confdefs.h. */
22900
5c6fa7d2 22901/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22902#ifdef __cplusplus
22903extern "C"
22904#endif
5c6fa7d2 22905/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22906 builtin and then its argument prototype would still apply. */
22907char gdk_im_open ();
22908int
22909main ()
22910{
22911gdk_im_open ();
22912 ;
22913 return 0;
22914}
22915_ACEOF
22916rm -f conftest.$ac_objext conftest$ac_exeext
22917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22918 (eval $ac_link) 2>conftest.er1
e6cc62c6 22919 ac_status=$?
32ddf007
VS
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
e6cc62c6
VS
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
e1293dcf 22925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; } &&
22931 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22933 (eval $ac_try) 2>&5
22934 ac_status=$?
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); }; }; then
22937 ac_cv_lib_gdk_gdk_im_open=yes
22938else
22939 echo "$as_me: failed program was:" >&5
22940sed 's/^/| /' conftest.$ac_ext >&5
22941
22942ac_cv_lib_gdk_gdk_im_open=no
22943fi
32ddf007
VS
22944rm -f conftest.err conftest.$ac_objext \
22945 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22946LIBS=$ac_check_lib_save_LIBS
22947fi
22948echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22949echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22950if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22951 cat >>confdefs.h <<\_ACEOF
21d1c967 22952#define HAVE_XIM 1
e6cc62c6 22953_ACEOF
21d1c967 22954
90dd450c 22955fi
1e6feb95 22956
0f87e84c
RR
22957
22958
22959 if test "$wxUSE_GPE" = "yes"; then
22960 echo "$as_me:$LINENO: checking for gpewidget library" >&5
22961echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
22962
22963ac_find_libraries=
22964for ac_dir in $SEARCH_LIB /usr/lib;
22965 do
22966 for ac_extension in a so sl dylib; do
22967 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
22968 ac_find_libraries=$ac_dir
22969 break 2
22970 fi
22971 done
22972 done
22973
22974 if test "$ac_find_libraries" != "" ; then
22975
22976 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22977 result=$?
22978 if test $result = 0; then
22979 ac_path_to_link=""
22980 else
22981 ac_path_to_link=" -L$ac_find_libraries"
22982 fi
22983
22984 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
22985 WXGPE=1
22986 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22987echo "${ECHO_T}found at $ac_find_libraries" >&6
22988 else
22989 echo "$as_me:$LINENO: result: not found" >&5
22990echo "${ECHO_T}not found" >&6
22991 fi
22992
22993 fi
21d1c967 22994 fi
1e6feb95 22995
21d1c967 22996 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22997 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22998echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22999 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
23000 echo "$as_me:$LINENO: result: not found" >&5
23001echo "${ECHO_T}not found" >&6
23002 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23003echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23004 { (exit 1); exit 1; }; }
21d1c967 23005 else
e6cc62c6
VS
23006 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23007echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
23008 fi
23009
e6cc62c6
VS
23010 echo "$as_me:$LINENO: checking for libmgl location" >&5
23011echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 23012 case "${host}" in
21d1c967 23013 *-*-linux* )
e46d2a18
VS
23014 if test "x$wxUSE_SHARED" = xyes ; then
23015 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 23016 else
e46d2a18 23017 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 23018 fi
21d1c967
GD
23019 ;;
23020 *-pc-msdosdjgpp )
63a76696 23021 mgl_os_candidates="dos32/dj2"
21d1c967
GD
23022 ;;
23023 *)
e6cc62c6
VS
23024 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23025echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23026 { (exit 1); exit 1; }; }
21d1c967 23027 esac
1e6feb95 23028
21d1c967 23029 mgl_lib_type=""
63a76696
VS
23030 mgl_os=""
23031
23032 for mgl_os_i in $mgl_os_candidates ; do
23033 if test "x$mgl_os" = x ; then
23034 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23035 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23036 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23037 mgl_lib_type=debug
23038 mgl_os=$mgl_os_i
23039 fi
23040 fi
23041 if test "x$mgl_lib_type" = x ; then
23042 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23043 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23044 mgl_lib_type=release
23045 mgl_os=$mgl_os_i
23046 fi
23047 fi
21d1c967 23048 fi
63a76696 23049 done
2224580a 23050
63a76696 23051 if test "x$mgl_os" = x ; then
e6cc62c6
VS
23052 echo "$as_me:$LINENO: result: not found" >&5
23053echo "${ECHO_T}not found" >&6
23054 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23055echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23056 { (exit 1); exit 1; }; }
63a76696 23057 fi
e6cc62c6
VS
23058 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23059echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 23060
1d1b75ac
VZ
23061 wxUSE_UNIVERSAL="yes"
23062
21d1c967
GD
23063 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23064 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23065
90dd450c 23066 AFMINSTALL=afminstall
21d1c967
GD
23067 TOOLKIT=MGL
23068 GUIDIST=MGL_DIST
23069 fi
dad6c0ea 23070
21d1c967 23071 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
23072 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23073echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 23074 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
23075 echo "$as_me:$LINENO: result: not found" >&5
23076echo "${ECHO_T}not found" >&6
23077 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23078echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23079 { (exit 1); exit 1; }; }
21d1c967 23080 else
e6cc62c6
VS
23081 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23082echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 23083 fi
f6bcfd97 23084
21d1c967 23085 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
23086 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23087echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 23088 else
e6cc62c6
VS
23089 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23090echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23091 { (exit 1); exit 1; }; }
90dd450c 23092 fi
0b2effe9 23093
21d1c967
GD
23094 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23095 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23096
1d1b75ac
VZ
23097 wxUSE_UNIVERSAL="yes"
23098
21d1c967
GD
23099 AFMINSTALL=afminstall
23100 TOOLKIT=MICROWIN
23101 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
23102
23103 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 23104 fi
f6bcfd97 23105
21d1c967 23106 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
23107 echo "$as_me:$LINENO: checking for X" >&5
23108echo $ECHO_N "checking for X... $ECHO_C" >&6
23109
d8356fa3 23110
21d1c967
GD
23111# Check whether --with-x or --without-x was given.
23112if test "${with_x+set}" = set; then
23113 withval="$with_x"
2224580a 23114
e6cc62c6 23115fi;
21d1c967
GD
23116# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23117if test "x$with_x" = xno; then
23118 # The user explicitly disabled X.
23119 have_x=disabled
23120else
23121 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23122 # Both variables are already set.
23123 have_x=yes
23124 else
e6cc62c6
VS
23125 if test "${ac_cv_have_x+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
23127else
23128 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
23129ac_x_includes=no ac_x_libraries=no
23130rm -fr conftest.dir
23131if mkdir conftest.dir; then
23132 cd conftest.dir
21d1c967 23133 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 23134 cat >Imakefile <<'_ACEOF'
21d1c967
GD
23135acfindx:
23136 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 23137_ACEOF
21d1c967
GD
23138 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23139 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23140 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23141 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23142 for ac_extension in a so sl; do
23143 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
32ddf007
VS
23144 test -f $ac_im_libdir/libX11.$ac_extension; then
23145 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
23146 fi
23147 done
23148 # Screen out bogus values from the imake configuration. They are
23149 # bogus both because they are the default anyway, and because
23150 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 23151 case $ac_im_incroot in
21d1c967 23152 /usr/include) ;;
e6cc62c6 23153 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 23154 esac
e6cc62c6 23155 case $ac_im_usrlibdir in
21d1c967 23156 /usr/lib | /lib) ;;
e6cc62c6 23157 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
23158 esac
23159 fi
23160 cd ..
e6cc62c6 23161 rm -fr conftest.dir
21d1c967 23162fi
10f2d63a 23163
e6cc62c6
VS
23164# Standard set of common directories for X headers.
23165# Check X11 before X11Rn because it is often a symlink to the current release.
23166ac_x_header_dirs='
23167/usr/X11/include
23168/usr/X11R6/include
23169/usr/X11R5/include
23170/usr/X11R4/include
23171
23172/usr/include/X11
23173/usr/include/X11R6
23174/usr/include/X11R5
23175/usr/include/X11R4
23176
23177/usr/local/X11/include
23178/usr/local/X11R6/include
23179/usr/local/X11R5/include
23180/usr/local/X11R4/include
23181
23182/usr/local/include/X11
23183/usr/local/include/X11R6
23184/usr/local/include/X11R5
23185/usr/local/include/X11R4
23186
23187/usr/X386/include
23188/usr/x386/include
23189/usr/XFree86/include/X11
23190
23191/usr/include
23192/usr/local/include
23193/usr/unsupported/include
23194/usr/athena/include
23195/usr/local/x11r5/include
23196/usr/lpp/Xamples/include
23197
23198/usr/openwin/include
23199/usr/openwin/share/include'
23200
23201if test "$ac_x_includes" = no; then
23202 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 23203 # First, try using that file with no special directory specified.
e6cc62c6 23204 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
23210#include <X11/Intrinsic.h>
23211_ACEOF
23212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23214 ac_status=$?
23215 grep -v '^ *+' conftest.er1 >conftest.err
23216 rm -f conftest.er1
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } >/dev/null; then
23220 if test -s conftest.err; then
23221 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 23222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
23223 else
23224 ac_cpp_err=
23225 fi
23226else
23227 ac_cpp_err=yes
23228fi
23229if test -z "$ac_cpp_err"; then
21d1c967
GD
23230 # We can compile using X headers with no special include directory.
23231ac_x_includes=
90dd450c 23232else
e6cc62c6
VS
23233 echo "$as_me: failed program was:" >&5
23234sed 's/^/| /' conftest.$ac_ext >&5
23235
23236 for ac_dir in $ac_x_header_dirs; do
23237 if test -r "$ac_dir/X11/Intrinsic.h"; then
23238 ac_x_includes=$ac_dir
23239 break
23240 fi
23241done
3a922bb4 23242fi
e6cc62c6
VS
23243rm -f conftest.err conftest.$ac_ext
23244fi # $ac_x_includes = no
10f2d63a 23245
e6cc62c6 23246if test "$ac_x_libraries" = no; then
21d1c967 23247 # Check for the libraries.
21d1c967
GD
23248 # See if we find them without any special options.
23249 # Don't add to $LIBS permanently.
e6cc62c6
VS
23250 ac_save_LIBS=$LIBS
23251 LIBS="-lXt $LIBS"
23252 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23253/* confdefs.h. */
23254_ACEOF
23255cat confdefs.h >>conftest.$ac_ext
23256cat >>conftest.$ac_ext <<_ACEOF
23257/* end confdefs.h. */
23258#include <X11/Intrinsic.h>
23259int
23260main ()
23261{
23262XtMalloc (0)
23263 ;
23264 return 0;
23265}
23266_ACEOF
23267rm -f conftest.$ac_objext conftest$ac_exeext
23268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23269 (eval $ac_link) 2>conftest.er1
e6cc62c6 23270 ac_status=$?
32ddf007
VS
23271 grep -v '^ *+' conftest.er1 >conftest.err
23272 rm -f conftest.er1
23273 cat conftest.err >&5
e6cc62c6
VS
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
e1293dcf 23276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; } &&
23282 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; }; then
23288 LIBS=$ac_save_LIBS
21d1c967
GD
23289# We can link X programs with no special library path.
23290ac_x_libraries=
3a922bb4 23291else
e6cc62c6
VS
23292 echo "$as_me: failed program was:" >&5
23293sed 's/^/| /' conftest.$ac_ext >&5
23294
23295LIBS=$ac_save_LIBS
23296for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 23297do
e6cc62c6 23298 # Don't even attempt the hair of trying to link an X program!
21d1c967 23299 for ac_extension in a so sl; do
e6cc62c6 23300 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
23301 ac_x_libraries=$ac_dir
23302 break 2
23303 fi
23304 done
23305done
3a922bb4 23306fi
32ddf007
VS
23307rm -f conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23309fi # $ac_x_libraries = no
90dd450c 23310
e6cc62c6 23311if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
23312 # Didn't find X anywhere. Cache the known absence of X.
23313 ac_cv_have_x="have_x=no"
23314else
23315 # Record where we found X for the cache.
23316 ac_cv_have_x="have_x=yes \
32ddf007 23317 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 23318fi
21d1c967 23319fi
e6cc62c6 23320
21d1c967
GD
23321 fi
23322 eval "$ac_cv_have_x"
23323fi # $with_x != no
90dd450c 23324
21d1c967 23325if test "$have_x" != yes; then
e6cc62c6
VS
23326 echo "$as_me:$LINENO: result: $have_x" >&5
23327echo "${ECHO_T}$have_x" >&6
21d1c967
GD
23328 no_x=yes
23329else
23330 # If each of the values was on the command line, it overrides each guess.
23331 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23332 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23333 # Update the cache value to reflect the command line values.
23334 ac_cv_have_x="have_x=yes \
23335 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
23336 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23337echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 23338fi
90dd450c 23339
21d1c967 23340if test "$no_x" = yes; then
90dd450c 23341 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23342
23343cat >>confdefs.h <<\_ACEOF
90dd450c 23344#define X_DISPLAY_MISSING 1
e6cc62c6 23345_ACEOF
90dd450c
VZ
23346
23347 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23348else
23349 if test -n "$x_includes"; then
23350 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 23351 fi
3a922bb4 23352
90dd450c
VZ
23353 # It would also be nice to do this for all -L options, not just this one.
23354 if test -n "$x_libraries"; then
23355 X_LIBS="$X_LIBS -L$x_libraries"
23356 # For Solaris; some versions of Sun CC require a space after -R and
23357 # others require no space. Words are not sufficient . . . .
e6cc62c6 23358 case `(uname -sr) 2>/dev/null` in
90dd450c 23359 "SunOS 5"*)
e6cc62c6
VS
23360 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23361echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23362 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23363 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23364/* confdefs.h. */
23365_ACEOF
23366cat confdefs.h >>conftest.$ac_ext
23367cat >>conftest.$ac_ext <<_ACEOF
23368/* end confdefs.h. */
23369
23370int
23371main ()
23372{
90dd450c 23373
e6cc62c6
VS
23374 ;
23375 return 0;
23376}
23377_ACEOF
23378rm -f conftest.$ac_objext conftest$ac_exeext
23379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23380 (eval $ac_link) 2>conftest.er1
e6cc62c6 23381 ac_status=$?
32ddf007
VS
23382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
e6cc62c6
VS
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } &&
e1293dcf 23387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23390 ac_status=$?
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; } &&
23393 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; }; then
90dd450c 23399 ac_R_nospace=yes
3a922bb4 23400else
e6cc62c6
VS
23401 echo "$as_me: failed program was:" >&5
23402sed 's/^/| /' conftest.$ac_ext >&5
23403
23404ac_R_nospace=no
3a922bb4 23405fi
32ddf007
VS
23406rm -f conftest.err conftest.$ac_objext \
23407 conftest$ac_exeext conftest.$ac_ext
90dd450c 23408 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23409 echo "$as_me:$LINENO: result: no" >&5
23410echo "${ECHO_T}no" >&6
90dd450c
VZ
23411 X_LIBS="$X_LIBS -R$x_libraries"
23412 else
23413 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23414 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23415/* confdefs.h. */
23416_ACEOF
23417cat confdefs.h >>conftest.$ac_ext
23418cat >>conftest.$ac_ext <<_ACEOF
23419/* end confdefs.h. */
23420
23421int
23422main ()
23423{
6f754473 23424
e6cc62c6
VS
23425 ;
23426 return 0;
23427}
23428_ACEOF
23429rm -f conftest.$ac_objext conftest$ac_exeext
23430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23431 (eval $ac_link) 2>conftest.er1
e6cc62c6 23432 ac_status=$?
32ddf007
VS
23433 grep -v '^ *+' conftest.er1 >conftest.err
23434 rm -f conftest.er1
23435 cat conftest.err >&5
e6cc62c6
VS
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } &&
e1293dcf 23438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23441 ac_status=$?
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; } &&
23444 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
90dd450c
VZ
23450 ac_R_space=yes
23451else
e6cc62c6
VS
23452 echo "$as_me: failed program was:" >&5
23453sed 's/^/| /' conftest.$ac_ext >&5
23454
23455ac_R_space=no
90dd450c 23456fi
32ddf007
VS
23457rm -f conftest.err conftest.$ac_objext \
23458 conftest$ac_exeext conftest.$ac_ext
90dd450c 23459 if test $ac_R_space = yes; then
e6cc62c6
VS
23460 echo "$as_me:$LINENO: result: yes" >&5
23461echo "${ECHO_T}yes" >&6
90dd450c
VZ
23462 X_LIBS="$X_LIBS -R $x_libraries"
23463 else
e6cc62c6
VS
23464 echo "$as_me:$LINENO: result: neither works" >&5
23465echo "${ECHO_T}neither works" >&6
90dd450c
VZ
23466 fi
23467 fi
e6cc62c6 23468 LIBS=$ac_xsave_LIBS
90dd450c
VZ
23469 esac
23470 fi
23471
23472 # Check for system-dependent libraries X programs must link with.
23473 # Do this before checking for the system-independent R6 libraries
23474 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 23475
90dd450c
VZ
23476 if test "$ISC" = yes; then
23477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23478 else
e6cc62c6
VS
23479 # Martyn Johnson says this is needed for Ultrix, if the X
23480 # libraries were built with DECnet support. And Karl Berry says
90dd450c 23481 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23482 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23483 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23484/* confdefs.h. */
23485_ACEOF
23486cat confdefs.h >>conftest.$ac_ext
23487cat >>conftest.$ac_ext <<_ACEOF
23488/* end confdefs.h. */
23489
247f5006 23490/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23491#ifdef __cplusplus
23492extern "C"
23493#endif
247f5006 23494/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23495 builtin and then its argument prototype would still apply. */
23496char XOpenDisplay ();
23497int
23498main ()
23499{
23500XOpenDisplay ();
23501 ;
23502 return 0;
23503}
23504_ACEOF
23505rm -f conftest.$ac_objext conftest$ac_exeext
23506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23507 (eval $ac_link) 2>conftest.er1
e6cc62c6 23508 ac_status=$?
32ddf007
VS
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
e6cc62c6
VS
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
e1293dcf 23514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; } &&
23520 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 :
23527else
23528 echo "$as_me: failed program was:" >&5
23529sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23530
e6cc62c6
VS
23531echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23532echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23533if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23535else
e6cc62c6
VS
23536 ac_check_lib_save_LIBS=$LIBS
23537LIBS="-ldnet $LIBS"
23538cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23539/* confdefs.h. */
23540_ACEOF
23541cat confdefs.h >>conftest.$ac_ext
23542cat >>conftest.$ac_ext <<_ACEOF
23543/* end confdefs.h. */
a0b9e27f 23544
e6cc62c6
VS
23545/* Override any gcc2 internal prototype to avoid an error. */
23546#ifdef __cplusplus
23547extern "C"
23548#endif
23549/* We use char because int might match the return type of a gcc2
23550 builtin and then its argument prototype would still apply. */
23551char dnet_ntoa ();
23552int
23553main ()
23554{
23555dnet_ntoa ();
23556 ;
23557 return 0;
23558}
23559_ACEOF
23560rm -f conftest.$ac_objext conftest$ac_exeext
23561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23562 (eval $ac_link) 2>conftest.er1
e6cc62c6 23563 ac_status=$?
32ddf007
VS
23564 grep -v '^ *+' conftest.er1 >conftest.err
23565 rm -f conftest.er1
23566 cat conftest.err >&5
e6cc62c6
VS
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } &&
e1293dcf 23569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; } &&
23575 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577 (eval $ac_try) 2>&5
23578 ac_status=$?
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); }; }; then
23581 ac_cv_lib_dnet_dnet_ntoa=yes
23582else
23583 echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
23586ac_cv_lib_dnet_dnet_ntoa=no
23587fi
32ddf007
VS
23588rm -f conftest.err conftest.$ac_objext \
23589 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23590LIBS=$ac_check_lib_save_LIBS
23591fi
23592echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23593echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23594if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 23595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
23596fi
23597
90dd450c 23598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23599 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23600echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23601if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23603else
e6cc62c6 23604 ac_check_lib_save_LIBS=$LIBS
90dd450c 23605LIBS="-ldnet_stub $LIBS"
e6cc62c6 23606cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612
90dd450c 23613/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23614#ifdef __cplusplus
23615extern "C"
23616#endif
90dd450c 23617/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23618 builtin and then its argument prototype would still apply. */
23619char dnet_ntoa ();
23620int
23621main ()
23622{
23623dnet_ntoa ();
23624 ;
23625 return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext conftest$ac_exeext
23629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23630 (eval $ac_link) 2>conftest.er1
e6cc62c6 23631 ac_status=$?
32ddf007
VS
23632 grep -v '^ *+' conftest.er1 >conftest.err
23633 rm -f conftest.er1
23634 cat conftest.err >&5
e6cc62c6
VS
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
e1293dcf 23637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23650else
23651 echo "$as_me: failed program was:" >&5
23652sed 's/^/| /' conftest.$ac_ext >&5
23653
23654ac_cv_lib_dnet_stub_dnet_ntoa=no
23655fi
32ddf007
VS
23656rm -f conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23658LIBS=$ac_check_lib_save_LIBS
23659fi
23660echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23661echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23662if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23663 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23664fi
23665
90dd450c 23666 fi
e6cc62c6 23667fi
32ddf007
VS
23668rm -f conftest.err conftest.$ac_objext \
23669 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23670 LIBS="$ac_xsave_LIBS"
978f1259 23671
90dd450c
VZ
23672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23673 # to get the SysV transport functions.
e6cc62c6 23674 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23675 # needs -lnsl.
23676 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23677 # on Irix 5.2, according to T.E. Dickey.
23678 # The functions gethostbyname, getservbyname, and inet_addr are
23679 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23680 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23681echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23682if test "${ac_cv_func_gethostbyname+set}" = set; then
23683 echo $ECHO_N "(cached) $ECHO_C" >&6
23684else
23685 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
32ddf007
VS
23691/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23693#define gethostbyname innocuous_gethostbyname
23694
90dd450c 23695/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23696 which can conflict with char gethostbyname (); below.
23697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23698 <limits.h> exists even on freestanding compilers. */
32ddf007 23699
e6cc62c6
VS
23700#ifdef __STDC__
23701# include <limits.h>
23702#else
23703# include <assert.h>
23704#endif
32ddf007
VS
23705
23706#undef gethostbyname
23707
90dd450c 23708/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23709#ifdef __cplusplus
23710extern "C"
23711{
23712#endif
90dd450c 23713/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23714 builtin and then its argument prototype would still apply. */
23715char gethostbyname ();
90dd450c
VZ
23716/* The GNU C library defines this for functions which it implements
23717 to always fail with ENOSYS. Some functions are actually named
23718 something starting with __ and the normal name is an alias. */
23719#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23720choke me
23721#else
e6cc62c6
VS
23722char (*f) () = gethostbyname;
23723#endif
23724#ifdef __cplusplus
23725}
90dd450c 23726#endif
978f1259 23727
e6cc62c6
VS
23728int
23729main ()
23730{
23731return f != gethostbyname;
23732 ;
23733 return 0;
23734}
23735_ACEOF
23736rm -f conftest.$ac_objext conftest$ac_exeext
23737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23738 (eval $ac_link) 2>conftest.er1
e6cc62c6 23739 ac_status=$?
32ddf007
VS
23740 grep -v '^ *+' conftest.er1 >conftest.err
23741 rm -f conftest.er1
23742 cat conftest.err >&5
e6cc62c6
VS
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
e1293dcf 23745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23748 ac_status=$?
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; } &&
23751 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23753 (eval $ac_try) 2>&5
23754 ac_status=$?
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); }; }; then
23757 ac_cv_func_gethostbyname=yes
23758else
23759 echo "$as_me: failed program was:" >&5
23760sed 's/^/| /' conftest.$ac_ext >&5
23761
23762ac_cv_func_gethostbyname=no
23763fi
32ddf007
VS
23764rm -f conftest.err conftest.$ac_objext \
23765 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23766fi
23767echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23768echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23769
90dd450c 23770 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23771 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23772echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23773if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23775else
e6cc62c6 23776 ac_check_lib_save_LIBS=$LIBS
90dd450c 23777LIBS="-lnsl $LIBS"
e6cc62c6 23778cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23779/* confdefs.h. */
23780_ACEOF
23781cat confdefs.h >>conftest.$ac_ext
23782cat >>conftest.$ac_ext <<_ACEOF
23783/* end confdefs.h. */
23784
90dd450c 23785/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23786#ifdef __cplusplus
23787extern "C"
23788#endif
90dd450c 23789/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23790 builtin and then its argument prototype would still apply. */
23791char gethostbyname ();
23792int
23793main ()
23794{
23795gethostbyname ();
23796 ;
23797 return 0;
23798}
23799_ACEOF
23800rm -f conftest.$ac_objext conftest$ac_exeext
23801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23802 (eval $ac_link) 2>conftest.er1
e6cc62c6 23803 ac_status=$?
32ddf007
VS
23804 grep -v '^ *+' conftest.er1 >conftest.err
23805 rm -f conftest.er1
23806 cat conftest.err >&5
e6cc62c6
VS
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); } &&
e1293dcf 23809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23812 ac_status=$?
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; } &&
23815 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 ac_cv_lib_nsl_gethostbyname=yes
23822else
23823 echo "$as_me: failed program was:" >&5
23824sed 's/^/| /' conftest.$ac_ext >&5
23825
23826ac_cv_lib_nsl_gethostbyname=no
23827fi
32ddf007
VS
23828rm -f conftest.err conftest.$ac_objext \
23829 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23830LIBS=$ac_check_lib_save_LIBS
23831fi
23832echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23833echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23834if test $ac_cv_lib_nsl_gethostbyname = yes; then
23835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23836fi
247f5006 23837
e6cc62c6 23838 if test $ac_cv_lib_nsl_gethostbyname = no; then
32ddf007 23839 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23840echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23841if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23843else
e6cc62c6
VS
23844 ac_check_lib_save_LIBS=$LIBS
23845LIBS="-lbsd $LIBS"
23846cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23847/* confdefs.h. */
23848_ACEOF
23849cat confdefs.h >>conftest.$ac_ext
23850cat >>conftest.$ac_ext <<_ACEOF
23851/* end confdefs.h. */
23852
23853/* Override any gcc2 internal prototype to avoid an error. */
23854#ifdef __cplusplus
23855extern "C"
23856#endif
23857/* We use char because int might match the return type of a gcc2
23858 builtin and then its argument prototype would still apply. */
23859char gethostbyname ();
23860int
23861main ()
23862{
23863gethostbyname ();
23864 ;
23865 return 0;
23866}
23867_ACEOF
23868rm -f conftest.$ac_objext conftest$ac_exeext
23869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23870 (eval $ac_link) 2>conftest.er1
e6cc62c6 23871 ac_status=$?
32ddf007
VS
23872 grep -v '^ *+' conftest.er1 >conftest.err
23873 rm -f conftest.er1
23874 cat conftest.err >&5
e6cc62c6
VS
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } &&
e1293dcf 23877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); }; } &&
23883 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23885 (eval $ac_try) 2>&5
23886 ac_status=$?
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); }; }; then
23889 ac_cv_lib_bsd_gethostbyname=yes
23890else
23891 echo "$as_me: failed program was:" >&5
23892sed 's/^/| /' conftest.$ac_ext >&5
23893
23894ac_cv_lib_bsd_gethostbyname=no
23895fi
32ddf007
VS
23896rm -f conftest.err conftest.$ac_objext \
23897 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23898LIBS=$ac_check_lib_save_LIBS
23899fi
23900echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23901echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23902if test $ac_cv_lib_bsd_gethostbyname = yes; then
23903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23904fi
b12915c1 23905
e6cc62c6 23906 fi
90dd450c
VZ
23907 fi
23908
23909 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23910 # socket/setsockopt and other routines are undefined under SCO ODT
23911 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23912 # on later versions), says Simon Leinen: it contains gethostby*
23913 # variants that don't use the name server (or something). -lsocket
23914 # must be given before -lnsl if both are needed. We assume that
23915 # if connect needs -lnsl, so does gethostbyname.
23916 echo "$as_me:$LINENO: checking for connect" >&5
23917echo $ECHO_N "checking for connect... $ECHO_C" >&6
23918if test "${ac_cv_func_connect+set}" = set; then
23919 echo $ECHO_N "(cached) $ECHO_C" >&6
23920else
23921 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23922/* confdefs.h. */
23923_ACEOF
23924cat confdefs.h >>conftest.$ac_ext
23925cat >>conftest.$ac_ext <<_ACEOF
23926/* end confdefs.h. */
32ddf007
VS
23927/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23929#define connect innocuous_connect
23930
90dd450c 23931/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23932 which can conflict with char connect (); below.
23933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23934 <limits.h> exists even on freestanding compilers. */
32ddf007 23935
e6cc62c6
VS
23936#ifdef __STDC__
23937# include <limits.h>
23938#else
23939# include <assert.h>
23940#endif
32ddf007
VS
23941
23942#undef connect
23943
90dd450c 23944/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23945#ifdef __cplusplus
23946extern "C"
23947{
23948#endif
90dd450c 23949/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23950 builtin and then its argument prototype would still apply. */
23951char connect ();
90dd450c
VZ
23952/* The GNU C library defines this for functions which it implements
23953 to always fail with ENOSYS. Some functions are actually named
23954 something starting with __ and the normal name is an alias. */
23955#if defined (__stub_connect) || defined (__stub___connect)
23956choke me
23957#else
e6cc62c6
VS
23958char (*f) () = connect;
23959#endif
23960#ifdef __cplusplus
23961}
90dd450c
VZ
23962#endif
23963
e6cc62c6
VS
23964int
23965main ()
23966{
23967return f != connect;
23968 ;
23969 return 0;
23970}
23971_ACEOF
23972rm -f conftest.$ac_objext conftest$ac_exeext
23973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23974 (eval $ac_link) 2>conftest.er1
e6cc62c6 23975 ac_status=$?
32ddf007
VS
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
e6cc62c6
VS
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } &&
e1293dcf 23981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; } &&
23987 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23990 ac_status=$?
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; }; then
23993 ac_cv_func_connect=yes
23994else
23995 echo "$as_me: failed program was:" >&5
23996sed 's/^/| /' conftest.$ac_ext >&5
23997
23998ac_cv_func_connect=no
23999fi
32ddf007
VS
24000rm -f conftest.err conftest.$ac_objext \
24001 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24002fi
24003echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24004echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 24005
90dd450c 24006 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24007 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24008echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24009if test "${ac_cv_lib_socket_connect+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24011else
e6cc62c6 24012 ac_check_lib_save_LIBS=$LIBS
90dd450c 24013LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24014cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24015/* confdefs.h. */
24016_ACEOF
24017cat confdefs.h >>conftest.$ac_ext
24018cat >>conftest.$ac_ext <<_ACEOF
24019/* end confdefs.h. */
24020
90dd450c 24021/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24022#ifdef __cplusplus
24023extern "C"
24024#endif
90dd450c 24025/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24026 builtin and then its argument prototype would still apply. */
24027char connect ();
24028int
24029main ()
24030{
24031connect ();
24032 ;
24033 return 0;
24034}
24035_ACEOF
24036rm -f conftest.$ac_objext conftest$ac_exeext
24037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24038 (eval $ac_link) 2>conftest.er1
e6cc62c6 24039 ac_status=$?
32ddf007
VS
24040 grep -v '^ *+' conftest.er1 >conftest.err
24041 rm -f conftest.er1
24042 cat conftest.err >&5
e6cc62c6
VS
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } &&
e1293dcf 24045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047 (eval $ac_try) 2>&5
24048 ac_status=$?
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; } &&
24051 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053 (eval $ac_try) 2>&5
24054 ac_status=$?
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; }; then
24057 ac_cv_lib_socket_connect=yes
24058else
24059 echo "$as_me: failed program was:" >&5
24060sed 's/^/| /' conftest.$ac_ext >&5
24061
24062ac_cv_lib_socket_connect=no
24063fi
32ddf007
VS
24064rm -f conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24066LIBS=$ac_check_lib_save_LIBS
24067fi
24068echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24069echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24070if test $ac_cv_lib_socket_connect = yes; then
90dd450c 24071 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 24072fi
77e13408 24073
90dd450c 24074 fi
25d0687a 24075
e6cc62c6
VS
24076 # Guillermo Gomez says -lposix is necessary on A/UX.
24077 echo "$as_me:$LINENO: checking for remove" >&5
24078echo $ECHO_N "checking for remove... $ECHO_C" >&6
24079if test "${ac_cv_func_remove+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081else
24082 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24083/* confdefs.h. */
24084_ACEOF
24085cat confdefs.h >>conftest.$ac_ext
24086cat >>conftest.$ac_ext <<_ACEOF
24087/* end confdefs.h. */
32ddf007
VS
24088/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24090#define remove innocuous_remove
24091
90dd450c 24092/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24093 which can conflict with char remove (); below.
24094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24095 <limits.h> exists even on freestanding compilers. */
32ddf007 24096
e6cc62c6
VS
24097#ifdef __STDC__
24098# include <limits.h>
24099#else
24100# include <assert.h>
24101#endif
32ddf007
VS
24102
24103#undef remove
24104
90dd450c 24105/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24106#ifdef __cplusplus
24107extern "C"
24108{
24109#endif
90dd450c 24110/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24111 builtin and then its argument prototype would still apply. */
24112char remove ();
90dd450c
VZ
24113/* The GNU C library defines this for functions which it implements
24114 to always fail with ENOSYS. Some functions are actually named
24115 something starting with __ and the normal name is an alias. */
24116#if defined (__stub_remove) || defined (__stub___remove)
24117choke me
24118#else
e6cc62c6
VS
24119char (*f) () = remove;
24120#endif
24121#ifdef __cplusplus
24122}
90dd450c 24123#endif
55e80573 24124
e6cc62c6
VS
24125int
24126main ()
24127{
24128return f != remove;
24129 ;
24130 return 0;
24131}
24132_ACEOF
24133rm -f conftest.$ac_objext conftest$ac_exeext
24134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24135 (eval $ac_link) 2>conftest.er1
e6cc62c6 24136 ac_status=$?
32ddf007
VS
24137 grep -v '^ *+' conftest.er1 >conftest.err
24138 rm -f conftest.er1
24139 cat conftest.err >&5
e6cc62c6
VS
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } &&
e1293dcf 24142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; } &&
24148 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; }; then
24154 ac_cv_func_remove=yes
24155else
24156 echo "$as_me: failed program was:" >&5
24157sed 's/^/| /' conftest.$ac_ext >&5
24158
24159ac_cv_func_remove=no
24160fi
32ddf007
VS
24161rm -f conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24163fi
24164echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24165echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 24166
90dd450c 24167 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
24168 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24169echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24170if test "${ac_cv_lib_posix_remove+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24172else
e6cc62c6 24173 ac_check_lib_save_LIBS=$LIBS
90dd450c 24174LIBS="-lposix $LIBS"
e6cc62c6 24175cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24176/* confdefs.h. */
24177_ACEOF
24178cat confdefs.h >>conftest.$ac_ext
24179cat >>conftest.$ac_ext <<_ACEOF
24180/* end confdefs.h. */
24181
90dd450c 24182/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24183#ifdef __cplusplus
24184extern "C"
24185#endif
90dd450c 24186/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24187 builtin and then its argument prototype would still apply. */
24188char remove ();
24189int
24190main ()
24191{
24192remove ();
24193 ;
24194 return 0;
24195}
24196_ACEOF
24197rm -f conftest.$ac_objext conftest$ac_exeext
24198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24199 (eval $ac_link) 2>conftest.er1
e6cc62c6 24200 ac_status=$?
32ddf007
VS
24201 grep -v '^ *+' conftest.er1 >conftest.err
24202 rm -f conftest.er1
24203 cat conftest.err >&5
e6cc62c6
VS
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); } &&
e1293dcf 24206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); }; } &&
24212 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); }; }; then
24218 ac_cv_lib_posix_remove=yes
24219else
24220 echo "$as_me: failed program was:" >&5
24221sed 's/^/| /' conftest.$ac_ext >&5
24222
24223ac_cv_lib_posix_remove=no
24224fi
32ddf007
VS
24225rm -f conftest.err conftest.$ac_objext \
24226 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24227LIBS=$ac_check_lib_save_LIBS
24228fi
24229echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24230echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24231if test $ac_cv_lib_posix_remove = yes; then
90dd450c 24232 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 24233fi
f6bcfd97 24234
6fa882bd
RR
24235 fi
24236
90dd450c 24237 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
24238 echo "$as_me:$LINENO: checking for shmat" >&5
24239echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24240if test "${ac_cv_func_shmat+set}" = set; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
24242else
24243 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24244/* confdefs.h. */
24245_ACEOF
24246cat confdefs.h >>conftest.$ac_ext
24247cat >>conftest.$ac_ext <<_ACEOF
24248/* end confdefs.h. */
32ddf007
VS
24249/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24251#define shmat innocuous_shmat
24252
90dd450c 24253/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24254 which can conflict with char shmat (); below.
24255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24256 <limits.h> exists even on freestanding compilers. */
32ddf007 24257
e6cc62c6
VS
24258#ifdef __STDC__
24259# include <limits.h>
24260#else
24261# include <assert.h>
24262#endif
32ddf007
VS
24263
24264#undef shmat
24265
90dd450c 24266/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24267#ifdef __cplusplus
24268extern "C"
24269{
24270#endif
90dd450c 24271/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24272 builtin and then its argument prototype would still apply. */
24273char shmat ();
90dd450c
VZ
24274/* The GNU C library defines this for functions which it implements
24275 to always fail with ENOSYS. Some functions are actually named
24276 something starting with __ and the normal name is an alias. */
24277#if defined (__stub_shmat) || defined (__stub___shmat)
24278choke me
24279#else
e6cc62c6
VS
24280char (*f) () = shmat;
24281#endif
24282#ifdef __cplusplus
24283}
90dd450c 24284#endif
10f2d63a 24285
e6cc62c6
VS
24286int
24287main ()
24288{
24289return f != shmat;
24290 ;
24291 return 0;
24292}
24293_ACEOF
24294rm -f conftest.$ac_objext conftest$ac_exeext
24295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24296 (eval $ac_link) 2>conftest.er1
e6cc62c6 24297 ac_status=$?
32ddf007
VS
24298 grep -v '^ *+' conftest.er1 >conftest.err
24299 rm -f conftest.er1
24300 cat conftest.err >&5
e6cc62c6
VS
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); } &&
e1293dcf 24303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; } &&
24309 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; }; then
24315 ac_cv_func_shmat=yes
24316else
24317 echo "$as_me: failed program was:" >&5
24318sed 's/^/| /' conftest.$ac_ext >&5
24319
24320ac_cv_func_shmat=no
24321fi
32ddf007
VS
24322rm -f conftest.err conftest.$ac_objext \
24323 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24324fi
24325echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24326echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 24327
90dd450c 24328 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
24329 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24330echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24331if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24332 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 24333else
e6cc62c6 24334 ac_check_lib_save_LIBS=$LIBS
90dd450c 24335LIBS="-lipc $LIBS"
e6cc62c6 24336cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24337/* confdefs.h. */
24338_ACEOF
24339cat confdefs.h >>conftest.$ac_ext
24340cat >>conftest.$ac_ext <<_ACEOF
24341/* end confdefs.h. */
24342
8284b0c5 24343/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24344#ifdef __cplusplus
24345extern "C"
24346#endif
90dd450c 24347/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24348 builtin and then its argument prototype would still apply. */
24349char shmat ();
24350int
24351main ()
24352{
24353shmat ();
24354 ;
24355 return 0;
24356}
24357_ACEOF
24358rm -f conftest.$ac_objext conftest$ac_exeext
24359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24360 (eval $ac_link) 2>conftest.er1
e6cc62c6 24361 ac_status=$?
32ddf007
VS
24362 grep -v '^ *+' conftest.er1 >conftest.err
24363 rm -f conftest.er1
24364 cat conftest.err >&5
e6cc62c6
VS
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } &&
e1293dcf 24367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; } &&
24373 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; }; then
24379 ac_cv_lib_ipc_shmat=yes
24380else
24381 echo "$as_me: failed program was:" >&5
24382sed 's/^/| /' conftest.$ac_ext >&5
24383
24384ac_cv_lib_ipc_shmat=no
24385fi
32ddf007
VS
24386rm -f conftest.err conftest.$ac_objext \
24387 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24388LIBS=$ac_check_lib_save_LIBS
24389fi
24390echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24391echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24392if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 24393 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
24394fi
24395
d558c907 24396 fi
90dd450c 24397 fi
3a922bb4 24398
90dd450c 24399 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24400 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
24401 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24402 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24403 # check for ICE first), but we must link in the order -lSM -lICE or
24404 # we get undefined symbols. So assume we have SM if we have ICE.
24405 # These have to be linked with before -lX11, unlike the other
24406 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24407 # John Interrante, Karl Berry
24408 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24409echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24410if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412else
24413 ac_check_lib_save_LIBS=$LIBS
f09359cf 24414LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 24415cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24416/* confdefs.h. */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h. */
24421
90dd450c 24422/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24423#ifdef __cplusplus
24424extern "C"
24425#endif
90dd450c 24426/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24427 builtin and then its argument prototype would still apply. */
24428char IceConnectionNumber ();
24429int
24430main ()
24431{
24432IceConnectionNumber ();
24433 ;
24434 return 0;
24435}
24436_ACEOF
24437rm -f conftest.$ac_objext conftest$ac_exeext
24438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24439 (eval $ac_link) 2>conftest.er1
e6cc62c6 24440 ac_status=$?
32ddf007
VS
24441 grep -v '^ *+' conftest.er1 >conftest.err
24442 rm -f conftest.er1
24443 cat conftest.err >&5
e6cc62c6
VS
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } &&
e1293dcf 24446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); }; } &&
24452 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24454 (eval $ac_try) 2>&5
24455 ac_status=$?
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; }; then
24458 ac_cv_lib_ICE_IceConnectionNumber=yes
24459else
24460 echo "$as_me: failed program was:" >&5
24461sed 's/^/| /' conftest.$ac_ext >&5
24462
24463ac_cv_lib_ICE_IceConnectionNumber=no
24464fi
32ddf007
VS
24465rm -f conftest.err conftest.$ac_objext \
24466 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24467LIBS=$ac_check_lib_save_LIBS
24468fi
24469echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24470echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24471if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 24472 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 24473fi
10f2d63a 24474
e6cc62c6 24475 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
24476
24477fi
24478
8284b0c5 24479
90dd450c 24480 if test "$no_x" = "yes"; then
e6cc62c6
VS
24481 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24482echo "$as_me: error: X11 not found" >&2;}
24483 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
24484 fi
24485
24486 GUI_TK_LIBRARY="$X_LIBS"
24487 TOOLKIT_INCLUDE="$X_CFLAGS"
24488 AFMINSTALL=afminstall
24489 COMPILED_X_PROGRAM=0
24490
21d1c967 24491 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
24492 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24493echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 24494 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
24495 echo "$as_me:$LINENO: result: not found" >&5
24496echo "${ECHO_T}not found" >&6
24497 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24498echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24499 { (exit 1); exit 1; }; }
90dd450c 24500 else
e6cc62c6
VS
24501 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24502echo "${ECHO_T}$MICROWIN" >&6
24503 cat >>confdefs.h <<\_ACEOF
21d1c967 24504#define wxUSE_NANOX 1
e6cc62c6 24505_ACEOF
21d1c967 24506
90dd450c
VZ
24507 fi
24508 fi
24509
2b5f62a0 24510 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 24511
2b5f62a0 24512 succeeded=no
90dd450c 24513
2b5f62a0
VZ
24514 if test -z "$PKG_CONFIG"; then
24515 # Extract the first word of "pkg-config", so it can be a program name with args.
24516set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24517echo "$as_me:$LINENO: checking for $ac_word" >&5
24518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24519if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24520 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24521else
e6cc62c6
VS
24522 case $PKG_CONFIG in
24523 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24525 ;;
2b5f62a0 24526 *)
e6cc62c6
VS
24527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24528for as_dir in $PATH
24529do
24530 IFS=$as_save_IFS
24531 test -z "$as_dir" && as_dir=.
24532 for ac_exec_ext in '' $ac_executable_extensions; do
24533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24536 break 2
24537 fi
24538done
24539done
24540
2b5f62a0
VZ
24541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24542 ;;
24543esac
24544fi
e6cc62c6
VS
24545PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24546
2b5f62a0 24547if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24548 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24549echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24550else
e6cc62c6
VS
24551 echo "$as_me:$LINENO: result: no" >&5
24552echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24553fi
24554
24555 fi
24556
24557 if test "$PKG_CONFIG" = "no" ; then
24558 echo "*** The pkg-config script could not be found. Make sure it is"
24559 echo "*** in your path, or set the PKG_CONFIG environment variable"
24560 echo "*** to the full path to pkg-config."
24561 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24562 else
24563 PKG_CONFIG_MIN_VERSION=0.9.0
24564 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24565 echo "$as_me:$LINENO: checking for pangox" >&5
24566echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
24567
24568 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
24569 echo "$as_me:$LINENO: result: yes" >&5
24570echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24571 succeeded=yes
24572
e6cc62c6
VS
24573 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24574echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 24575 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
24576 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24577echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 24578
e6cc62c6
VS
24579 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24580echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 24581 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
24582 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24583echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
24584 else
24585 PANGOX_CFLAGS=""
24586 PANGOX_LIBS=""
e6cc62c6 24587 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24588 ## do set a variable so people can do so.
24589 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24590
2b5f62a0
VZ
24591 fi
24592
e6cc62c6
VS
24593
24594
2b5f62a0
VZ
24595 else
24596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24598 fi
24599 fi
24600
24601 if test $succeeded = yes; then
e6cc62c6 24602
2b5f62a0 24603 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24604 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24605
2b5f62a0 24606 else
e6cc62c6
VS
24607
24608 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24609echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24610 { (exit 1); exit 1; }; }
24611
24612
2b5f62a0
VZ
24613 fi
24614
e6cc62c6 24615
2b5f62a0
VZ
24616 succeeded=no
24617
24618 if test -z "$PKG_CONFIG"; then
24619 # Extract the first word of "pkg-config", so it can be a program name with args.
24620set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24621echo "$as_me:$LINENO: checking for $ac_word" >&5
24622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24623if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24625else
e6cc62c6
VS
24626 case $PKG_CONFIG in
24627 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24628 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24629 ;;
2b5f62a0 24630 *)
e6cc62c6
VS
24631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24632for as_dir in $PATH
24633do
24634 IFS=$as_save_IFS
24635 test -z "$as_dir" && as_dir=.
24636 for ac_exec_ext in '' $ac_executable_extensions; do
24637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24640 break 2
24641 fi
24642done
24643done
24644
2b5f62a0
VZ
24645 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24646 ;;
24647esac
24648fi
e6cc62c6
VS
24649PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24650
2b5f62a0 24651if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24652 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24653echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24654else
e6cc62c6
VS
24655 echo "$as_me:$LINENO: result: no" >&5
24656echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24657fi
24658
24659 fi
24660
24661 if test "$PKG_CONFIG" = "no" ; then
24662 echo "*** The pkg-config script could not be found. Make sure it is"
24663 echo "*** in your path, or set the PKG_CONFIG environment variable"
24664 echo "*** to the full path to pkg-config."
24665 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24666 else
24667 PKG_CONFIG_MIN_VERSION=0.9.0
24668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24669 echo "$as_me:$LINENO: checking for pangoft2" >&5
24670echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24671
24672 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24673 echo "$as_me:$LINENO: result: yes" >&5
24674echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24675 succeeded=yes
24676
e6cc62c6
VS
24677 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24678echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24679 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24680 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24681echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24682
e6cc62c6
VS
24683 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24684echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24685 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24686 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24687echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24688 else
24689 PANGOFT2_CFLAGS=""
24690 PANGOFT2_LIBS=""
e6cc62c6 24691 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24692 ## do set a variable so people can do so.
24693 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24694
2b5f62a0
VZ
24695 fi
24696
e6cc62c6
VS
24697
24698
2b5f62a0
VZ
24699 else
24700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24702 fi
24703 fi
24704
24705 if test $succeeded = yes; then
e6cc62c6 24706
2b5f62a0 24707 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24708 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24709
2b5f62a0 24710 else
e6cc62c6
VS
24711
24712 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24713echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24714 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24715
24716
2b5f62a0
VZ
24717 fi
24718
e6cc62c6 24719
2b5f62a0
VZ
24720 succeeded=no
24721
24722 if test -z "$PKG_CONFIG"; then
24723 # Extract the first word of "pkg-config", so it can be a program name with args.
24724set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24725echo "$as_me:$LINENO: checking for $ac_word" >&5
24726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24727if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24728 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24729else
e6cc62c6
VS
24730 case $PKG_CONFIG in
24731 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24733 ;;
2b5f62a0 24734 *)
e6cc62c6
VS
24735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24736for as_dir in $PATH
24737do
24738 IFS=$as_save_IFS
24739 test -z "$as_dir" && as_dir=.
24740 for ac_exec_ext in '' $ac_executable_extensions; do
24741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24744 break 2
24745 fi
24746done
24747done
24748
2b5f62a0
VZ
24749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24750 ;;
24751esac
24752fi
e6cc62c6
VS
24753PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24754
2b5f62a0 24755if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24756 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24757echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24758else
e6cc62c6
VS
24759 echo "$as_me:$LINENO: result: no" >&5
24760echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24761fi
24762
24763 fi
24764
24765 if test "$PKG_CONFIG" = "no" ; then
24766 echo "*** The pkg-config script could not be found. Make sure it is"
24767 echo "*** in your path, or set the PKG_CONFIG environment variable"
24768 echo "*** to the full path to pkg-config."
24769 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24770 else
24771 PKG_CONFIG_MIN_VERSION=0.9.0
24772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24773 echo "$as_me:$LINENO: checking for pangoxft" >&5
24774echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24775
24776 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24777 echo "$as_me:$LINENO: result: yes" >&5
24778echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24779 succeeded=yes
24780
e6cc62c6
VS
24781 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24782echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24783 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24784 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24785echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24786
e6cc62c6
VS
24787 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24788echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24789 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24790 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24791echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24792 else
24793 PANGOXFT_CFLAGS=""
24794 PANGOXFT_LIBS=""
e6cc62c6 24795 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24796 ## do set a variable so people can do so.
24797 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24798
2b5f62a0
VZ
24799 fi
24800
e6cc62c6
VS
24801
24802
2b5f62a0
VZ
24803 else
24804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24806 fi
24807 fi
24808
24809 if test $succeeded = yes; then
e6cc62c6 24810
2b5f62a0 24811 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24812 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24813
2b5f62a0 24814 else
e6cc62c6
VS
24815
24816 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24817echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24818
24819
2b5f62a0
VZ
24820 fi
24821
24822 fi
24823
24824 wxUSE_UNIVERSAL="yes"
24825
24826 if test "$wxUSE_NANOX" = "yes"; then
24827 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24828 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
24829 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24830 else
93a543aa 24831 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24832 fi
24833
24834 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24835 TOOLKIT=X11
24836 GUIDIST=X11_DIST
24837 fi
24838
21d1c967
GD
24839 if test "$wxUSE_MOTIF" = 1; then
24840 if test "$no_x" = yes; then
24841 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24842
24843cat >>confdefs.h <<\_ACEOF
21d1c967 24844#define X_DISPLAY_MISSING 1
e6cc62c6 24845_ACEOF
21d1c967
GD
24846
24847 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24848else
24849 if test -n "$x_includes"; then
24850 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24851 fi
24852
21d1c967
GD
24853 # It would also be nice to do this for all -L options, not just this one.
24854 if test -n "$x_libraries"; then
24855 X_LIBS="$X_LIBS -L$x_libraries"
24856 # For Solaris; some versions of Sun CC require a space after -R and
24857 # others require no space. Words are not sufficient . . . .
e6cc62c6 24858 case `(uname -sr) 2>/dev/null` in
21d1c967 24859 "SunOS 5"*)
e6cc62c6
VS
24860 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24861echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24862 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24863 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24864/* confdefs.h. */
24865_ACEOF
24866cat confdefs.h >>conftest.$ac_ext
24867cat >>conftest.$ac_ext <<_ACEOF
24868/* end confdefs.h. */
24869
24870int
24871main ()
24872{
21d1c967 24873
e6cc62c6
VS
24874 ;
24875 return 0;
24876}
24877_ACEOF
24878rm -f conftest.$ac_objext conftest$ac_exeext
24879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24880 (eval $ac_link) 2>conftest.er1
e6cc62c6 24881 ac_status=$?
32ddf007
VS
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
e6cc62c6
VS
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } &&
e1293dcf 24887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
21d1c967 24899 ac_R_nospace=yes
698dcdb6 24900else
e6cc62c6
VS
24901 echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
24904ac_R_nospace=no
10f2d63a 24905fi
32ddf007
VS
24906rm -f conftest.err conftest.$ac_objext \
24907 conftest$ac_exeext conftest.$ac_ext
21d1c967 24908 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24909 echo "$as_me:$LINENO: result: no" >&5
24910echo "${ECHO_T}no" >&6
21d1c967
GD
24911 X_LIBS="$X_LIBS -R$x_libraries"
24912 else
24913 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24914 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24915/* confdefs.h. */
24916_ACEOF
24917cat confdefs.h >>conftest.$ac_ext
24918cat >>conftest.$ac_ext <<_ACEOF
24919/* end confdefs.h. */
24920
24921int
24922main ()
24923{
f0c87536 24924
e6cc62c6
VS
24925 ;
24926 return 0;
24927}
24928_ACEOF
24929rm -f conftest.$ac_objext conftest$ac_exeext
24930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24931 (eval $ac_link) 2>conftest.er1
e6cc62c6 24932 ac_status=$?
32ddf007
VS
24933 grep -v '^ *+' conftest.er1 >conftest.err
24934 rm -f conftest.er1
24935 cat conftest.err >&5
e6cc62c6
VS
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } &&
e1293dcf 24938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24940 (eval $ac_try) 2>&5
24941 ac_status=$?
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); }; } &&
24944 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 (eval $ac_try) 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
21d1c967
GD
24950 ac_R_space=yes
24951else
e6cc62c6
VS
24952 echo "$as_me: failed program was:" >&5
24953sed 's/^/| /' conftest.$ac_ext >&5
24954
24955ac_R_space=no
21d1c967 24956fi
32ddf007
VS
24957rm -f conftest.err conftest.$ac_objext \
24958 conftest$ac_exeext conftest.$ac_ext
21d1c967 24959 if test $ac_R_space = yes; then
e6cc62c6
VS
24960 echo "$as_me:$LINENO: result: yes" >&5
24961echo "${ECHO_T}yes" >&6
21d1c967
GD
24962 X_LIBS="$X_LIBS -R $x_libraries"
24963 else
e6cc62c6
VS
24964 echo "$as_me:$LINENO: result: neither works" >&5
24965echo "${ECHO_T}neither works" >&6
21d1c967
GD
24966 fi
24967 fi
e6cc62c6 24968 LIBS=$ac_xsave_LIBS
21d1c967
GD
24969 esac
24970 fi
90dd450c 24971
21d1c967
GD
24972 # Check for system-dependent libraries X programs must link with.
24973 # Do this before checking for the system-independent R6 libraries
24974 # (-lICE), since we may need -lsocket or whatever for X linking.
24975
24976 if test "$ISC" = yes; then
24977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24978 else
e6cc62c6
VS
24979 # Martyn Johnson says this is needed for Ultrix, if the X
24980 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24981 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24982 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24983 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24984/* confdefs.h. */
24985_ACEOF
24986cat confdefs.h >>conftest.$ac_ext
24987cat >>conftest.$ac_ext <<_ACEOF
24988/* end confdefs.h. */
24989
247f5006 24990/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24991#ifdef __cplusplus
24992extern "C"
24993#endif
247f5006 24994/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24995 builtin and then its argument prototype would still apply. */
24996char XOpenDisplay ();
24997int
24998main ()
24999{
25000XOpenDisplay ();
25001 ;
25002 return 0;
25003}
25004_ACEOF
25005rm -f conftest.$ac_objext conftest$ac_exeext
25006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25007 (eval $ac_link) 2>conftest.er1
e6cc62c6 25008 ac_status=$?
32ddf007
VS
25009 grep -v '^ *+' conftest.er1 >conftest.err
25010 rm -f conftest.er1
25011 cat conftest.err >&5
e6cc62c6
VS
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } &&
e1293dcf 25014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25017 ac_status=$?
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; } &&
25020 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25026 :
25027else
25028 echo "$as_me: failed program was:" >&5
25029sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25030
e6cc62c6
VS
25031echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25032echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25033if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25035else
e6cc62c6
VS
25036 ac_check_lib_save_LIBS=$LIBS
25037LIBS="-ldnet $LIBS"
25038cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25039/* confdefs.h. */
25040_ACEOF
25041cat confdefs.h >>conftest.$ac_ext
25042cat >>conftest.$ac_ext <<_ACEOF
25043/* end confdefs.h. */
a0b9e27f 25044
e6cc62c6
VS
25045/* Override any gcc2 internal prototype to avoid an error. */
25046#ifdef __cplusplus
25047extern "C"
25048#endif
25049/* We use char because int might match the return type of a gcc2
25050 builtin and then its argument prototype would still apply. */
25051char dnet_ntoa ();
25052int
25053main ()
25054{
25055dnet_ntoa ();
25056 ;
25057 return 0;
25058}
25059_ACEOF
25060rm -f conftest.$ac_objext conftest$ac_exeext
25061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25062 (eval $ac_link) 2>conftest.er1
e6cc62c6 25063 ac_status=$?
32ddf007
VS
25064 grep -v '^ *+' conftest.er1 >conftest.err
25065 rm -f conftest.er1
25066 cat conftest.err >&5
e6cc62c6
VS
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } &&
e1293dcf 25069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; } &&
25075 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); }; }; then
25081 ac_cv_lib_dnet_dnet_ntoa=yes
25082else
25083 echo "$as_me: failed program was:" >&5
25084sed 's/^/| /' conftest.$ac_ext >&5
25085
25086ac_cv_lib_dnet_dnet_ntoa=no
25087fi
32ddf007
VS
25088rm -f conftest.err conftest.$ac_objext \
25089 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25090LIBS=$ac_check_lib_save_LIBS
25091fi
25092echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25093echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25094if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 25095 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 25096fi
0fb0dd83 25097
21d1c967 25098 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
25099 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25100echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25101if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25102 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25103else
e6cc62c6 25104 ac_check_lib_save_LIBS=$LIBS
21d1c967 25105LIBS="-ldnet_stub $LIBS"
e6cc62c6 25106cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25107/* confdefs.h. */
25108_ACEOF
25109cat confdefs.h >>conftest.$ac_ext
25110cat >>conftest.$ac_ext <<_ACEOF
25111/* end confdefs.h. */
25112
21d1c967 25113/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25114#ifdef __cplusplus
25115extern "C"
25116#endif
21d1c967 25117/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25118 builtin and then its argument prototype would still apply. */
25119char dnet_ntoa ();
25120int
25121main ()
25122{
25123dnet_ntoa ();
25124 ;
25125 return 0;
25126}
25127_ACEOF
25128rm -f conftest.$ac_objext conftest$ac_exeext
25129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25130 (eval $ac_link) 2>conftest.er1
e6cc62c6 25131 ac_status=$?
32ddf007
VS
25132 grep -v '^ *+' conftest.er1 >conftest.err
25133 rm -f conftest.er1
25134 cat conftest.err >&5
e6cc62c6
VS
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } &&
e1293dcf 25137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
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_dnet_stub_dnet_ntoa=yes
25150else
25151 echo "$as_me: failed program was:" >&5
25152sed 's/^/| /' conftest.$ac_ext >&5
25153
25154ac_cv_lib_dnet_stub_dnet_ntoa=no
25155fi
32ddf007
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_dnet_stub_dnet_ntoa" >&5
25161echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25162if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 25163 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
25164fi
25165
21d1c967 25166 fi
e6cc62c6 25167fi
32ddf007
VS
25168rm -f conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 25170 LIBS="$ac_xsave_LIBS"
90dd450c 25171
21d1c967
GD
25172 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25173 # to get the SysV transport functions.
e6cc62c6 25174 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
25175 # needs -lnsl.
25176 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
25177 # on Irix 5.2, according to T.E. Dickey.
25178 # The functions gethostbyname, getservbyname, and inet_addr are
25179 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25180 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25181echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25182if test "${ac_cv_func_gethostbyname+set}" = set; then
25183 echo $ECHO_N "(cached) $ECHO_C" >&6
25184else
25185 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25186/* confdefs.h. */
25187_ACEOF
25188cat confdefs.h >>conftest.$ac_ext
25189cat >>conftest.$ac_ext <<_ACEOF
25190/* end confdefs.h. */
32ddf007
VS
25191/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25193#define gethostbyname innocuous_gethostbyname
25194
21d1c967 25195/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25196 which can conflict with char gethostbyname (); below.
25197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25198 <limits.h> exists even on freestanding compilers. */
32ddf007 25199
e6cc62c6
VS
25200#ifdef __STDC__
25201# include <limits.h>
25202#else
25203# include <assert.h>
25204#endif
32ddf007
VS
25205
25206#undef gethostbyname
25207
21d1c967 25208/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25209#ifdef __cplusplus
25210extern "C"
25211{
25212#endif
21d1c967 25213/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25214 builtin and then its argument prototype would still apply. */
25215char gethostbyname ();
21d1c967
GD
25216/* The GNU C library defines this for functions which it implements
25217 to always fail with ENOSYS. Some functions are actually named
25218 something starting with __ and the normal name is an alias. */
25219#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25220choke me
25221#else
e6cc62c6
VS
25222char (*f) () = gethostbyname;
25223#endif
25224#ifdef __cplusplus
25225}
21d1c967 25226#endif
90dd450c 25227
e6cc62c6
VS
25228int
25229main ()
25230{
25231return f != gethostbyname;
25232 ;
25233 return 0;
25234}
25235_ACEOF
25236rm -f conftest.$ac_objext conftest$ac_exeext
25237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25238 (eval $ac_link) 2>conftest.er1
e6cc62c6 25239 ac_status=$?
32ddf007
VS
25240 grep -v '^ *+' conftest.er1 >conftest.err
25241 rm -f conftest.er1
25242 cat conftest.err >&5
e6cc62c6
VS
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } &&
e1293dcf 25245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); }; } &&
25251 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25253 (eval $ac_try) 2>&5
25254 ac_status=$?
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }; }; then
25257 ac_cv_func_gethostbyname=yes
25258else
25259 echo "$as_me: failed program was:" >&5
25260sed 's/^/| /' conftest.$ac_ext >&5
25261
25262ac_cv_func_gethostbyname=no
25263fi
32ddf007
VS
25264rm -f conftest.err conftest.$ac_objext \
25265 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25266fi
25267echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25268echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 25269
21d1c967 25270 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
25271 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25272echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25273if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25275else
e6cc62c6 25276 ac_check_lib_save_LIBS=$LIBS
21d1c967 25277LIBS="-lnsl $LIBS"
e6cc62c6 25278cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25279/* confdefs.h. */
25280_ACEOF
25281cat confdefs.h >>conftest.$ac_ext
25282cat >>conftest.$ac_ext <<_ACEOF
25283/* end confdefs.h. */
25284
21d1c967 25285/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25286#ifdef __cplusplus
25287extern "C"
25288#endif
21d1c967 25289/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25290 builtin and then its argument prototype would still apply. */
25291char gethostbyname ();
25292int
25293main ()
25294{
25295gethostbyname ();
25296 ;
25297 return 0;
25298}
25299_ACEOF
25300rm -f conftest.$ac_objext conftest$ac_exeext
25301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25302 (eval $ac_link) 2>conftest.er1
e6cc62c6 25303 ac_status=$?
32ddf007
VS
25304 grep -v '^ *+' conftest.er1 >conftest.err
25305 rm -f conftest.er1
25306 cat conftest.err >&5
e6cc62c6
VS
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); } &&
e1293dcf 25309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); }; } &&
25315 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); }; }; then
25321 ac_cv_lib_nsl_gethostbyname=yes
25322else
25323 echo "$as_me: failed program was:" >&5
25324sed 's/^/| /' conftest.$ac_ext >&5
25325
25326ac_cv_lib_nsl_gethostbyname=no
25327fi
32ddf007
VS
25328rm -f conftest.err conftest.$ac_objext \
25329 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25330LIBS=$ac_check_lib_save_LIBS
25331fi
25332echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25333echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25334if test $ac_cv_lib_nsl_gethostbyname = yes; then
25335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 25336fi
247f5006 25337
e6cc62c6 25338 if test $ac_cv_lib_nsl_gethostbyname = no; then
32ddf007 25339 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
25340echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25341if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25343else
e6cc62c6
VS
25344 ac_check_lib_save_LIBS=$LIBS
25345LIBS="-lbsd $LIBS"
25346cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25347/* confdefs.h. */
25348_ACEOF
25349cat confdefs.h >>conftest.$ac_ext
25350cat >>conftest.$ac_ext <<_ACEOF
25351/* end confdefs.h. */
25352
25353/* Override any gcc2 internal prototype to avoid an error. */
25354#ifdef __cplusplus
25355extern "C"
25356#endif
25357/* We use char because int might match the return type of a gcc2
25358 builtin and then its argument prototype would still apply. */
25359char gethostbyname ();
25360int
25361main ()
25362{
25363gethostbyname ();
25364 ;
25365 return 0;
25366}
25367_ACEOF
25368rm -f conftest.$ac_objext conftest$ac_exeext
25369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25370 (eval $ac_link) 2>conftest.er1
e6cc62c6 25371 ac_status=$?
32ddf007
VS
25372 grep -v '^ *+' conftest.er1 >conftest.err
25373 rm -f conftest.er1
25374 cat conftest.err >&5
e6cc62c6
VS
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } &&
e1293dcf 25377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379 (eval $ac_try) 2>&5
25380 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); }; } &&
25383 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; }; then
25389 ac_cv_lib_bsd_gethostbyname=yes
25390else
25391 echo "$as_me: failed program was:" >&5
25392sed 's/^/| /' conftest.$ac_ext >&5
25393
25394ac_cv_lib_bsd_gethostbyname=no
25395fi
32ddf007
VS
25396rm -f conftest.err conftest.$ac_objext \
25397 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25398LIBS=$ac_check_lib_save_LIBS
25399fi
25400echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25401echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25402if test $ac_cv_lib_bsd_gethostbyname = yes; then
25403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 25404fi
90dd450c 25405
e6cc62c6 25406 fi
90dd450c
VZ
25407 fi
25408
21d1c967
GD
25409 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25410 # socket/setsockopt and other routines are undefined under SCO ODT
25411 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
25412 # on later versions), says Simon Leinen: it contains gethostby*
25413 # variants that don't use the name server (or something). -lsocket
25414 # must be given before -lnsl if both are needed. We assume that
25415 # if connect needs -lnsl, so does gethostbyname.
25416 echo "$as_me:$LINENO: checking for connect" >&5
25417echo $ECHO_N "checking for connect... $ECHO_C" >&6
25418if test "${ac_cv_func_connect+set}" = set; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25420else
25421 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25422/* confdefs.h. */
25423_ACEOF
25424cat confdefs.h >>conftest.$ac_ext
25425cat >>conftest.$ac_ext <<_ACEOF
25426/* end confdefs.h. */
32ddf007
VS
25427/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25429#define connect innocuous_connect
25430
21d1c967 25431/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25432 which can conflict with char connect (); below.
25433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25434 <limits.h> exists even on freestanding compilers. */
32ddf007 25435
e6cc62c6
VS
25436#ifdef __STDC__
25437# include <limits.h>
25438#else
25439# include <assert.h>
25440#endif
32ddf007
VS
25441
25442#undef connect
25443
21d1c967 25444/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25445#ifdef __cplusplus
25446extern "C"
25447{
25448#endif
21d1c967 25449/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25450 builtin and then its argument prototype would still apply. */
25451char connect ();
21d1c967
GD
25452/* The GNU C library defines this for functions which it implements
25453 to always fail with ENOSYS. Some functions are actually named
25454 something starting with __ and the normal name is an alias. */
25455#if defined (__stub_connect) || defined (__stub___connect)
25456choke me
25457#else
e6cc62c6
VS
25458char (*f) () = connect;
25459#endif
25460#ifdef __cplusplus
25461}
21d1c967 25462#endif
90dd450c 25463
e6cc62c6
VS
25464int
25465main ()
25466{
25467return f != connect;
25468 ;
25469 return 0;
25470}
25471_ACEOF
25472rm -f conftest.$ac_objext conftest$ac_exeext
25473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25474 (eval $ac_link) 2>conftest.er1
e6cc62c6 25475 ac_status=$?
32ddf007
VS
25476 grep -v '^ *+' conftest.er1 >conftest.err
25477 rm -f conftest.er1
25478 cat conftest.err >&5
e6cc62c6
VS
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); } &&
e1293dcf 25481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25483 (eval $ac_try) 2>&5
25484 ac_status=$?
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); }; } &&
25487 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; }; then
25493 ac_cv_func_connect=yes
25494else
25495 echo "$as_me: failed program was:" >&5
25496sed 's/^/| /' conftest.$ac_ext >&5
25497
25498ac_cv_func_connect=no
25499fi
32ddf007
VS
25500rm -f conftest.err conftest.$ac_objext \
25501 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25502fi
25503echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25504echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 25505
21d1c967 25506 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
25507 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25508echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25509if test "${ac_cv_lib_socket_connect+set}" = set; then
25510 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 25511else
e6cc62c6 25512 ac_check_lib_save_LIBS=$LIBS
21d1c967 25513LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 25514cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25515/* confdefs.h. */
25516_ACEOF
25517cat confdefs.h >>conftest.$ac_ext
25518cat >>conftest.$ac_ext <<_ACEOF
25519/* end confdefs.h. */
25520
21d1c967 25521/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25522#ifdef __cplusplus
25523extern "C"
25524#endif
21d1c967 25525/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25526 builtin and then its argument prototype would still apply. */
25527char connect ();
25528int
25529main ()
25530{
25531connect ();
25532 ;
25533 return 0;
25534}
25535_ACEOF
25536rm -f conftest.$ac_objext conftest$ac_exeext
25537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25538 (eval $ac_link) 2>conftest.er1
e6cc62c6 25539 ac_status=$?
32ddf007
VS
25540 grep -v '^ *+' conftest.er1 >conftest.err
25541 rm -f conftest.er1
25542 cat conftest.err >&5
e6cc62c6
VS
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); } &&
e1293dcf 25545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); }; } &&
25551 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25553 (eval $ac_try) 2>&5
25554 ac_status=$?
25555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); }; }; then
25557 ac_cv_lib_socket_connect=yes
25558else
25559 echo "$as_me: failed program was:" >&5
25560sed 's/^/| /' conftest.$ac_ext >&5
25561
25562ac_cv_lib_socket_connect=no
25563fi
32ddf007
VS
25564rm -f conftest.err conftest.$ac_objext \
25565 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25566LIBS=$ac_check_lib_save_LIBS
25567fi
25568echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25569echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25570if test $ac_cv_lib_socket_connect = yes; then
21d1c967 25571 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 25572fi
90dd450c 25573
21d1c967 25574 fi
90dd450c 25575
e6cc62c6
VS
25576 # Guillermo Gomez says -lposix is necessary on A/UX.
25577 echo "$as_me:$LINENO: checking for remove" >&5
25578echo $ECHO_N "checking for remove... $ECHO_C" >&6
25579if test "${ac_cv_func_remove+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581else
25582 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25583/* confdefs.h. */
25584_ACEOF
25585cat confdefs.h >>conftest.$ac_ext
25586cat >>conftest.$ac_ext <<_ACEOF
25587/* end confdefs.h. */
32ddf007
VS
25588/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25590#define remove innocuous_remove
25591
21d1c967 25592/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25593 which can conflict with char remove (); below.
25594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25595 <limits.h> exists even on freestanding compilers. */
32ddf007 25596
e6cc62c6
VS
25597#ifdef __STDC__
25598# include <limits.h>
25599#else
25600# include <assert.h>
25601#endif
32ddf007
VS
25602
25603#undef remove
25604
21d1c967 25605/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25606#ifdef __cplusplus
25607extern "C"
25608{
25609#endif
21d1c967 25610/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25611 builtin and then its argument prototype would still apply. */
25612char remove ();
21d1c967
GD
25613/* The GNU C library defines this for functions which it implements
25614 to always fail with ENOSYS. Some functions are actually named
25615 something starting with __ and the normal name is an alias. */
25616#if defined (__stub_remove) || defined (__stub___remove)
25617choke me
25618#else
e6cc62c6
VS
25619char (*f) () = remove;
25620#endif
25621#ifdef __cplusplus
25622}
21d1c967 25623#endif
90dd450c 25624
e6cc62c6
VS
25625int
25626main ()
25627{
25628return f != remove;
25629 ;
25630 return 0;
25631}
25632_ACEOF
25633rm -f conftest.$ac_objext conftest$ac_exeext
25634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25635 (eval $ac_link) 2>conftest.er1
e6cc62c6 25636 ac_status=$?
32ddf007
VS
25637 grep -v '^ *+' conftest.er1 >conftest.err
25638 rm -f conftest.er1
25639 cat conftest.err >&5
e6cc62c6
VS
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } &&
e1293dcf 25642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644 (eval $ac_try) 2>&5
25645 ac_status=$?
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); }; } &&
25648 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); }; }; then
25654 ac_cv_func_remove=yes
25655else
25656 echo "$as_me: failed program was:" >&5
25657sed 's/^/| /' conftest.$ac_ext >&5
25658
25659ac_cv_func_remove=no
25660fi
32ddf007
VS
25661rm -f conftest.err conftest.$ac_objext \
25662 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25663fi
25664echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25665echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25666
21d1c967 25667 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25668 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25669echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25670if test "${ac_cv_lib_posix_remove+set}" = set; then
25671 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25672else
e6cc62c6 25673 ac_check_lib_save_LIBS=$LIBS
21d1c967 25674LIBS="-lposix $LIBS"
e6cc62c6 25675cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25676/* confdefs.h. */
25677_ACEOF
25678cat confdefs.h >>conftest.$ac_ext
25679cat >>conftest.$ac_ext <<_ACEOF
25680/* end confdefs.h. */
25681
21d1c967 25682/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25683#ifdef __cplusplus
25684extern "C"
25685#endif
21d1c967 25686/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25687 builtin and then its argument prototype would still apply. */
25688char remove ();
25689int
25690main ()
25691{
25692remove ();
25693 ;
25694 return 0;
25695}
25696_ACEOF
25697rm -f conftest.$ac_objext conftest$ac_exeext
25698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25699 (eval $ac_link) 2>conftest.er1
e6cc62c6 25700 ac_status=$?
32ddf007
VS
25701 grep -v '^ *+' conftest.er1 >conftest.err
25702 rm -f conftest.er1
25703 cat conftest.err >&5
e6cc62c6
VS
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
e1293dcf 25706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; } &&
25712 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; }; then
25718 ac_cv_lib_posix_remove=yes
25719else
25720 echo "$as_me: failed program was:" >&5
25721sed 's/^/| /' conftest.$ac_ext >&5
25722
25723ac_cv_lib_posix_remove=no
25724fi
32ddf007
VS
25725rm -f conftest.err conftest.$ac_objext \
25726 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25727LIBS=$ac_check_lib_save_LIBS
25728fi
25729echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25730echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25731if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25732 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25733fi
19bc6aad 25734
90dd450c 25735 fi
19bc6aad 25736
21d1c967 25737 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25738 echo "$as_me:$LINENO: checking for shmat" >&5
25739echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25740if test "${ac_cv_func_shmat+set}" = set; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25742else
25743 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25744/* confdefs.h. */
25745_ACEOF
25746cat confdefs.h >>conftest.$ac_ext
25747cat >>conftest.$ac_ext <<_ACEOF
25748/* end confdefs.h. */
32ddf007
VS
25749/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25751#define shmat innocuous_shmat
25752
21d1c967 25753/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25754 which can conflict with char shmat (); below.
25755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25756 <limits.h> exists even on freestanding compilers. */
32ddf007 25757
e6cc62c6
VS
25758#ifdef __STDC__
25759# include <limits.h>
25760#else
25761# include <assert.h>
25762#endif
32ddf007
VS
25763
25764#undef shmat
25765
21d1c967 25766/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25767#ifdef __cplusplus
25768extern "C"
25769{
25770#endif
21d1c967 25771/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25772 builtin and then its argument prototype would still apply. */
25773char shmat ();
21d1c967
GD
25774/* The GNU C library defines this for functions which it implements
25775 to always fail with ENOSYS. Some functions are actually named
25776 something starting with __ and the normal name is an alias. */
25777#if defined (__stub_shmat) || defined (__stub___shmat)
25778choke me
25779#else
e6cc62c6
VS
25780char (*f) () = shmat;
25781#endif
25782#ifdef __cplusplus
25783}
21d1c967 25784#endif
90dd450c 25785
e6cc62c6
VS
25786int
25787main ()
25788{
25789return f != shmat;
25790 ;
25791 return 0;
25792}
25793_ACEOF
25794rm -f conftest.$ac_objext conftest$ac_exeext
25795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25796 (eval $ac_link) 2>conftest.er1
e6cc62c6 25797 ac_status=$?
32ddf007
VS
25798 grep -v '^ *+' conftest.er1 >conftest.err
25799 rm -f conftest.er1
25800 cat conftest.err >&5
e6cc62c6
VS
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } &&
e1293dcf 25803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25805 (eval $ac_try) 2>&5
25806 ac_status=$?
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); }; } &&
25809 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811 (eval $ac_try) 2>&5
25812 ac_status=$?
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); }; }; then
25815 ac_cv_func_shmat=yes
25816else
25817 echo "$as_me: failed program was:" >&5
25818sed 's/^/| /' conftest.$ac_ext >&5
25819
25820ac_cv_func_shmat=no
25821fi
32ddf007
VS
25822rm -f conftest.err conftest.$ac_objext \
25823 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25824fi
25825echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25826echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25827
21d1c967 25828 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25829 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25830echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25831if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25833else
e6cc62c6 25834 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25835LIBS="-lipc $LIBS"
e6cc62c6 25836cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25837/* confdefs.h. */
25838_ACEOF
25839cat confdefs.h >>conftest.$ac_ext
25840cat >>conftest.$ac_ext <<_ACEOF
25841/* end confdefs.h. */
25842
5c6fa7d2 25843/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25844#ifdef __cplusplus
25845extern "C"
25846#endif
5c6fa7d2 25847/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25848 builtin and then its argument prototype would still apply. */
25849char shmat ();
25850int
25851main ()
25852{
25853shmat ();
25854 ;
25855 return 0;
25856}
25857_ACEOF
25858rm -f conftest.$ac_objext conftest$ac_exeext
25859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25860 (eval $ac_link) 2>conftest.er1
e6cc62c6 25861 ac_status=$?
32ddf007
VS
25862 grep -v '^ *+' conftest.er1 >conftest.err
25863 rm -f conftest.er1
25864 cat conftest.err >&5
e6cc62c6
VS
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } &&
e1293dcf 25867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 ac_cv_lib_ipc_shmat=yes
25880else
25881 echo "$as_me: failed program was:" >&5
25882sed 's/^/| /' conftest.$ac_ext >&5
25883
25884ac_cv_lib_ipc_shmat=no
25885fi
32ddf007
VS
25886rm -f conftest.err conftest.$ac_objext \
25887 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25888LIBS=$ac_check_lib_save_LIBS
25889fi
25890echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25891echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25892if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25893 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25894fi
90dd450c 25895
90dd450c 25896 fi
21d1c967 25897 fi
10f2d63a 25898
21d1c967 25899 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25900 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25901 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25902 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25903 # check for ICE first), but we must link in the order -lSM -lICE or
25904 # we get undefined symbols. So assume we have SM if we have ICE.
25905 # These have to be linked with before -lX11, unlike the other
25906 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25907 # John Interrante, Karl Berry
25908 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25909echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25910if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25912else
25913 ac_check_lib_save_LIBS=$LIBS
f09359cf 25914LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25915cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25916/* confdefs.h. */
25917_ACEOF
25918cat confdefs.h >>conftest.$ac_ext
25919cat >>conftest.$ac_ext <<_ACEOF
25920/* end confdefs.h. */
25921
21d1c967 25922/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25923#ifdef __cplusplus
25924extern "C"
25925#endif
21d1c967 25926/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25927 builtin and then its argument prototype would still apply. */
25928char IceConnectionNumber ();
25929int
25930main ()
25931{
25932IceConnectionNumber ();
25933 ;
25934 return 0;
25935}
25936_ACEOF
25937rm -f conftest.$ac_objext conftest$ac_exeext
25938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25939 (eval $ac_link) 2>conftest.er1
e6cc62c6 25940 ac_status=$?
32ddf007
VS
25941 grep -v '^ *+' conftest.er1 >conftest.err
25942 rm -f conftest.er1
25943 cat conftest.err >&5
e6cc62c6
VS
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); } &&
e1293dcf 25946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; } &&
25952 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 ac_cv_lib_ICE_IceConnectionNumber=yes
25959else
25960 echo "$as_me: failed program was:" >&5
25961sed 's/^/| /' conftest.$ac_ext >&5
25962
25963ac_cv_lib_ICE_IceConnectionNumber=no
25964fi
32ddf007
VS
25965rm -f conftest.err conftest.$ac_objext \
25966 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25967LIBS=$ac_check_lib_save_LIBS
25968fi
25969echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25970echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25971if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 25972 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 25973fi
21d1c967 25974
e6cc62c6 25975 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 25976
10f2d63a
VZ
25977fi
25978
8284b0c5 25979
21d1c967 25980 if test "$no_x" = "yes"; then
e6cc62c6
VS
25981 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25982echo "$as_me: error: X11 not found" >&2;}
25983 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
25984 fi
25985
2b5f62a0
VZ
25986 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25987 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
25988 AFMINSTALL=afminstall
25989 COMPILED_X_PROGRAM=0
25990
e6cc62c6
VS
25991 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25992echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25993
21d1c967 25994ac_find_includes=
2b5f62a0 25995for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
25996 do
25997 if test -f "$ac_dir/Xm/Xm.h"; then
25998 ac_find_includes=$ac_dir
25999 break
26000 fi
26001 done
26002
26003 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
26004 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26005echo "${ECHO_T}found in $ac_find_includes" >&6
26006
2b5f62a0 26007 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
26008 ac_path_to_include=""
26009 else
2b5f62a0
VZ
26010 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26011 result=$?
26012 if test $result = 0; then
26013 ac_path_to_include=""
26014 else
26015 ac_path_to_include=" -I$ac_find_includes"
26016 fi
dd0e4a90
VZ
26017 fi
26018
26019 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 26020 else
e6cc62c6 26021 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26022/* confdefs.h. */
26023_ACEOF
26024cat confdefs.h >>conftest.$ac_ext
26025cat >>conftest.$ac_ext <<_ACEOF
26026/* end confdefs.h. */
21d1c967
GD
26027
26028 #include <Xm/Xm.h>
e6cc62c6
VS
26029
26030int
26031main ()
26032{
21d1c967
GD
26033
26034 int version;
26035 version = xmUseVersion;
e6cc62c6
VS
26036
26037 ;
26038 return 0;
26039}
26040_ACEOF
26041rm -f conftest.$ac_objext
26042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26043 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26044 ac_status=$?
32ddf007
VS
26045 grep -v '^ *+' conftest.er1 >conftest.err
26046 rm -f conftest.er1
26047 cat conftest.err >&5
e6cc62c6
VS
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } &&
e1293dcf 26050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052 (eval $ac_try) 2>&5
26053 ac_status=$?
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); }; } &&
26056 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; }; then
26062
26063 echo "$as_me:$LINENO: result: found in default search path" >&5
26064echo "${ECHO_T}found in default search path" >&6
21d1c967 26065 COMPILED_X_PROGRAM=1
e6cc62c6 26066
10f2d63a 26067else
e6cc62c6
VS
26068 echo "$as_me: failed program was:" >&5
26069sed 's/^/| /' conftest.$ac_ext >&5
26070
26071
26072 echo "$as_me:$LINENO: result: no" >&5
26073echo "${ECHO_T}no" >&6
26074 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26075echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26076 { (exit 1); exit 1; }; }
26077
26078
10f2d63a 26079fi
32ddf007 26080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 26081 fi
10f2d63a 26082
21d1c967 26083 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
26084 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26085echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26086
21d1c967 26087ac_find_libraries=
2b5f62a0 26088for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26089 do
26090 for ac_extension in a so sl dylib; do
26091 if test -f "$ac_dir/libXm.$ac_extension"; then
26092 ac_find_libraries=$ac_dir
26093 break 2
26094 fi
26095 done
26096 done
26097
26098 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
26099 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26100echo "${ECHO_T}found at $ac_find_libraries" >&6
26101
21d1c967 26102
21d1c967
GD
26103 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26104 result=$?
26105 if test $result = 0; then
26106 ac_path_to_link=""
26107 else
26108 ac_path_to_link=" -L$ac_find_libraries"
26109 fi
26110
21d1c967 26111 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 26112 else
dd0e4a90
VZ
26113 save_CFLAGS=$CFLAGS
26114 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26115
e6cc62c6 26116 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26117/* confdefs.h. */
26118_ACEOF
26119cat confdefs.h >>conftest.$ac_ext
26120cat >>conftest.$ac_ext <<_ACEOF
26121/* end confdefs.h. */
21d1c967
GD
26122
26123 #include <Xm/Xm.h>
e6cc62c6
VS
26124
26125int
26126main ()
26127{
21d1c967
GD
26128
26129 int version;
26130 version = xmUseVersion;
e6cc62c6
VS
26131
26132 ;
26133 return 0;
26134}
26135_ACEOF
26136rm -f conftest.$ac_objext
26137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26138 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26139 ac_status=$?
32ddf007
VS
26140 grep -v '^ *+' conftest.er1 >conftest.err
26141 rm -f conftest.er1
26142 cat conftest.err >&5
e6cc62c6
VS
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } &&
e1293dcf 26145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; } &&
26151 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26157
26158 echo "$as_me:$LINENO: result: found in default search path" >&5
26159echo "${ECHO_T}found in default search path" >&6
21d1c967 26160 COMPILED_X_PROGRAM=1
e6cc62c6 26161
d836ee96 26162else
e6cc62c6
VS
26163 echo "$as_me: failed program was:" >&5
26164sed 's/^/| /' conftest.$ac_ext >&5
26165
26166
26167 echo "$as_me:$LINENO: result: no" >&5
26168echo "${ECHO_T}no" >&6
26169 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26170echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26171 { (exit 1); exit 1; }; }
26172
26173
d836ee96 26174fi
32ddf007 26175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
26176
26177 CFLAGS=$save_CFLAGS
21d1c967
GD
26178 fi
26179 fi
26180
e6cc62c6
VS
26181 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26182echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
26183 libp_link=""
26184 libsm_ice_link=""
26185 libs_found=0
26186 for libp in "" " -lXp"; do
26187 if test "$libs_found" = "0"; then
7015ef3a 26188 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 26189 if test "$libs_found" = "0"; then
6a30f1c8 26190 save_LIBS="$LIBS"
93a543aa 26191 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
26192 save_CFLAGS=$CFLAGS
26193 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26194
e6cc62c6 26195 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26196/* confdefs.h. */
26197_ACEOF
26198cat confdefs.h >>conftest.$ac_ext
26199cat >>conftest.$ac_ext <<_ACEOF
26200/* end confdefs.h. */
17234b26 26201
6a30f1c8
MB
26202 #include <Xm/Xm.h>
26203 #include <Xm/List.h>
e6cc62c6
VS
26204
26205int
26206main ()
26207{
6a30f1c8
MB
26208
26209 XmString string = NULL;
26210 Widget w = NULL;
26211 int position = 0;
26212 XmListAddItem(w, string, position);
e6cc62c6
VS
26213
26214 ;
26215 return 0;
26216}
26217_ACEOF
26218rm -f conftest.$ac_objext conftest$ac_exeext
26219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26220 (eval $ac_link) 2>conftest.er1
e6cc62c6 26221 ac_status=$?
32ddf007
VS
26222 grep -v '^ *+' conftest.er1 >conftest.err
26223 rm -f conftest.er1
26224 cat conftest.err >&5
e6cc62c6
VS
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } &&
e1293dcf 26227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26230 ac_status=$?
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; } &&
26233 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; }; then
26239
6a30f1c8
MB
26240 libp_link="$libp"
26241 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
26242 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26243echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 26244 libs_found=1
e6cc62c6 26245
6a30f1c8 26246else
e6cc62c6
VS
26247 echo "$as_me: failed program was:" >&5
26248sed 's/^/| /' conftest.$ac_ext >&5
26249
26250
26251
6a30f1c8 26252fi
32ddf007
VS
26253rm -f conftest.err conftest.$ac_objext \
26254 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 26255
6a30f1c8 26256 LIBS="$save_LIBS"
dd0e4a90 26257 CFLAGS=$save_CFLAGS
6a30f1c8
MB
26258 fi
26259 done
26260 fi
26261 done
26262
26263 if test "$libs_found" = "0"; then
e6cc62c6
VS
26264 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26265echo "${ECHO_T}can't find the right libraries" >&6
26266 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26267echo "$as_me: error: can't link a simple motif program" >&2;}
26268 { (exit 1); exit 1; }; }
6a30f1c8
MB
26269 fi
26270
da494b40
MB
26271 save_CFLAGS=$CFLAGS
26272 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
26273 echo "$as_me:$LINENO: checking for Motif 2" >&5
26274echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26276/* confdefs.h. */
26277_ACEOF
26278cat confdefs.h >>conftest.$ac_ext
26279cat >>conftest.$ac_ext <<_ACEOF
26280/* end confdefs.h. */
da494b40
MB
26281
26282 #include <Xm/Xm.h>
e6cc62c6
VS
26283
26284int
26285main ()
26286{
da494b40
MB
26287
26288 #if XmVersion < 2000
26289 #error "Not Motif 2"
26290 #endif
e6cc62c6
VS
26291
26292 ;
26293 return 0;
26294}
26295_ACEOF
26296rm -f conftest.$ac_objext
26297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26298 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26299 ac_status=$?
32ddf007
VS
26300 grep -v '^ *+' conftest.er1 >conftest.err
26301 rm -f conftest.er1
26302 cat conftest.err >&5
e6cc62c6
VS
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); } &&
e1293dcf 26305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; } &&
26311 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; }; then
26317
26318 cat >>confdefs.h <<\_ACEOF
da494b40 26319#define __WXMOTIF20__ 1
e6cc62c6
VS
26320_ACEOF
26321
26322 echo "$as_me:$LINENO: result: found" >&5
26323echo "${ECHO_T}found" >&6
da494b40 26324
da494b40 26325else
e6cc62c6
VS
26326 echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329
26330 cat >>confdefs.h <<\_ACEOF
da494b40 26331#define __WXMOTIF20__ 0
e6cc62c6
VS
26332_ACEOF
26333
26334 echo "$as_me:$LINENO: result: not found" >&5
26335echo "${ECHO_T}not found" >&6
da494b40 26336
da494b40 26337fi
32ddf007 26338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
26339 CFLAGS=$save_CFLAGS
26340
93a543aa 26341 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 26342 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
26343 TOOLKIT=MOTIF
26344 GUIDIST=MOTIF_DIST
f7f78039
MB
26345 fi
26346
89fe663f
VZ
26347 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26348 if test "$wxUSE_LIBXPM" = "sys"; then
26349 echo "$as_me:$LINENO: checking for Xpm library" >&5
26350echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26351
26352ac_find_libraries=
26353for ac_dir in $SEARCH_LIB /usr/lib;
26354 do
26355 for ac_extension in a so sl dylib; do
26356 if test -f "$ac_dir/libXpm.$ac_extension"; then
26357 ac_find_libraries=$ac_dir
26358 break 2
26359 fi
26360 done
26361 done
26362
26363 if test "$ac_find_libraries" != "" ; then
26364
26365 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26366 result=$?
26367 if test $result = 0; then
26368 ac_path_to_link=""
26369 else
26370 ac_path_to_link=" -L$ac_find_libraries"
26371 fi
26372
26373 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26374 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26375echo "${ECHO_T}found at $ac_find_libraries" >&6
26376
26377 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26378echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26379if test "${wx_cv_x11_xpm_h+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26381else
26382
26383 save_CFLAGS=$CFLAGS
26384 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26385
26386 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26387/* confdefs.h. */
26388_ACEOF
26389cat confdefs.h >>conftest.$ac_ext
26390cat >>conftest.$ac_ext <<_ACEOF
26391/* end confdefs.h. */
26392
26393 #include <X11/xpm.h>
26394
26395int
26396main ()
26397{
26398
26399 int version;
26400 version = XpmLibraryVersion();
26401
26402 ;
26403 return 0;
26404}
26405_ACEOF
26406rm -f conftest.$ac_objext
26407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26408 (eval $ac_compile) 2>conftest.er1
89fe663f 26409 ac_status=$?
32ddf007
VS
26410 grep -v '^ *+' conftest.er1 >conftest.err
26411 rm -f conftest.er1
26412 cat conftest.err >&5
89fe663f
VZ
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
e1293dcf 26415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26417 (eval $ac_try) 2>&5
26418 ac_status=$?
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); }; } &&
26421 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
26422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; }; then
26427 wx_cv_x11_xpm_h=yes
26428else
26429 echo "$as_me: failed program was:" >&5
26430sed 's/^/| /' conftest.$ac_ext >&5
26431
26432wx_cv_x11_xpm_h=no
26433
26434fi
32ddf007 26435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26436
26437 CFLAGS=$save_CFLAGS
26438
26439
26440fi
26441echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26442echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26443
26444 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 26445 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
26446 cat >>confdefs.h <<\_ACEOF
26447#define wxHAVE_LIB_XPM 1
26448_ACEOF
26449
26450 else
26451 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26452echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26453 fi
26454 fi
26455
26456 fi
f7f78039 26457
89fe663f
VZ
26458 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26459echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26460if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26462else
26463 ac_check_lib_save_LIBS=$LIBS
26464LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26465cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26466/* confdefs.h. */
26467_ACEOF
26468cat confdefs.h >>conftest.$ac_ext
26469cat >>conftest.$ac_ext <<_ACEOF
26470/* end confdefs.h. */
26471
26472/* Override any gcc2 internal prototype to avoid an error. */
26473#ifdef __cplusplus
26474extern "C"
26475#endif
26476/* We use char because int might match the return type of a gcc2
26477 builtin and then its argument prototype would still apply. */
26478char XShapeQueryExtension ();
26479int
26480main ()
26481{
26482XShapeQueryExtension ();
26483 ;
26484 return 0;
26485}
26486_ACEOF
26487rm -f conftest.$ac_objext conftest$ac_exeext
26488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26489 (eval $ac_link) 2>conftest.er1
89fe663f 26490 ac_status=$?
32ddf007
VS
26491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
89fe663f
VZ
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } &&
e1293dcf 26496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; } &&
26502 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26505 ac_status=$?
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; }; then
26508 ac_cv_lib_Xext_XShapeQueryExtension=yes
26509else
26510 echo "$as_me: failed program was:" >&5
26511sed 's/^/| /' conftest.$ac_ext >&5
26512
26513ac_cv_lib_Xext_XShapeQueryExtension=no
26514fi
32ddf007
VS
26515rm -f conftest.err conftest.$ac_objext \
26516 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
26517LIBS=$ac_check_lib_save_LIBS
26518fi
26519echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26520echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26521if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26522
26523 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26524 wxHAVE_XEXT_LIB=1
26525
26526fi
26527
26528
26529 if test "$wxHAVE_XEXT_LIB" = 1; then
26530 save_CFLAGS="$CFLAGS"
26531 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26532
26533 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 26534echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 26535 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26536/* confdefs.h. */
26537_ACEOF
26538cat confdefs.h >>conftest.$ac_ext
26539cat >>conftest.$ac_ext <<_ACEOF
26540/* end confdefs.h. */
26541
89fe663f
VZ
26542 #include <X11/Xlib.h>
26543 #include <X11/extensions/shape.h>
e6cc62c6
VS
26544
26545int
26546main ()
26547{
f7f78039 26548
89fe663f
VZ
26549 int dummy1, dummy2;
26550 XShapeQueryExtension((Display*)NULL,
26551 (int*)NULL, (int*)NULL);
e6cc62c6
VS
26552
26553 ;
26554 return 0;
26555}
26556_ACEOF
26557rm -f conftest.$ac_objext
26558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26559 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26560 ac_status=$?
32ddf007
VS
26561 grep -v '^ *+' conftest.er1 >conftest.err
26562 rm -f conftest.er1
26563 cat conftest.err >&5
e6cc62c6
VS
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } &&
e1293dcf 26566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); }; } &&
26572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574 (eval $ac_try) 2>&5
26575 ac_status=$?
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578
89fe663f 26579 cat >>confdefs.h <<\_ACEOF
f7f78039 26580#define HAVE_XSHAPE 1
e6cc62c6
VS
26581_ACEOF
26582
89fe663f 26583 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26584echo "${ECHO_T}found" >&6
f7f78039 26585
f7f78039 26586else
e6cc62c6
VS
26587 echo "$as_me: failed program was:" >&5
26588sed 's/^/| /' conftest.$ac_ext >&5
26589
26590
89fe663f 26591 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26592echo "${ECHO_T}not found" >&6
26593
f7f78039 26594fi
32ddf007 26595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26596 CFLAGS="$save_CFLAGS"
26597
26598 fi
21d1c967
GD
26599 fi
26600
26601 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26602 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26603echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26604 if test "$GCC" = yes; then
26605 echo "$as_me:$LINENO: result: gcc" >&5
26606echo "${ECHO_T}gcc" >&6
26607 CPPFLAGS_PASCAL="-fpascal-strings"
26608 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26609 echo "$as_me:$LINENO: result: xlc" >&5
26610echo "${ECHO_T}xlc" >&6
26611 CPPFLAGS_PASCAL="-qmacpstr"
26612 else
26613 echo "$as_me:$LINENO: result: none" >&5
26614echo "${ECHO_T}none" >&6
26615 fi
26616
26617 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26618
0c98a14e 26619 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26620 TOOLKIT=MAC
26621 GUIDIST=MACX_DIST
cf615ebb 26622 WXBASEPORT="_carbon"
21d1c967
GD
26623 fi
26624
ac0c4cc3
DE
26625 if test "$wxUSE_COCOA" = 1; then
26626 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26627 TOOLKIT=COCOA
26628 GUIDIST=COCOA_DIST
26629 fi
26630
21d1c967
GD
26631 if test "$wxUSE_PM" = 1; then
26632 TOOLKIT=PM
26633 GUIDIST=GTK_DIST
26634 fi
26635
26636 if test "$TOOLKIT" = "PM" ; then
26637 TOOLKIT_DIR="os2"
26638 else
26639 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26640 fi
26641
26642 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26643
26644 if test "$wxUSE_UNIVERSAL" = "yes"; then
26645 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26646
26647 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26648 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26649
26650 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26651 if test "$wxUSE_X11" = 1; then
26652 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26653 else
26654 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26655 fi
26656 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26657 WIDGET_SET=univ
26658 else
26659 ALL_OBJECTS="\$(GUIOBJS)"
26660 ALL_SOURCES="\$(ALL_SOURCES)"
26661 ALL_HEADERS="\$(ALL_HEADERS)"
26662 fi
26663
26664 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26665
26666 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26667 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26668 fi
26669
26670 if test "$wxUSE_HTML" = "yes"; then
26671 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26672 fi
26673
26674 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26675 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26676 fi
26677 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26678 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26679 fi
26680 if test "$wxUSE_LIBPNG" = "builtin" ; then
26681 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26682 fi
26683
26684 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26685 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26686else
21d1c967
GD
26687 USE_GUI=0
26688
26689 TOOLKIT_DIR="base"
26690
26691 if test "$USE_WIN32" = 1 ; then
26692 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26693 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26694
26695 TOOLKIT="MSW"
26696 else
26697 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26698 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26699 fi
26700
26701 ALL_SOURCES="\$(ALL_SOURCES)"
26702 ALL_HEADERS="\$(ALL_HEADERS)"
26703
26704 PORT_FILES="\${top_srcdir}/src/files.lst"
26705
26706 GUIDIST="BASE_DIST"
26707 DISTDIR="wxBase"
d836ee96
VZ
26708fi
26709
8284b0c5 26710
8647bec6
RG
26711
26712
26713IODBC_C_SRC=""
26714
26715
26716if test "$TOOLKIT" != "MSW" ; then
26717
bb41dcbe 26718 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26719
bb41dcbe 26720 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26721 echo "$as_me:$LINENO: checking for sql.h" >&5
26722echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26723if test "${ac_cv_header_sql_h+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26725fi
26726echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26727echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26728else
26729 # Is the header compilable?
26730echo "$as_me:$LINENO: checking sql.h usability" >&5
26731echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26732cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26733/* confdefs.h. */
26734_ACEOF
26735cat confdefs.h >>conftest.$ac_ext
26736cat >>conftest.$ac_ext <<_ACEOF
26737/* end confdefs.h. */
26738$ac_includes_default
8647bec6 26739#include <sql.h>
e6cc62c6
VS
26740_ACEOF
26741rm -f conftest.$ac_objext
26742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26743 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26744 ac_status=$?
32ddf007
VS
26745 grep -v '^ *+' conftest.er1 >conftest.err
26746 rm -f conftest.er1
26747 cat conftest.err >&5
e6cc62c6
VS
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } &&
e1293dcf 26750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752 (eval $ac_try) 2>&5
26753 ac_status=$?
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); }; } &&
26756 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758 (eval $ac_try) 2>&5
26759 ac_status=$?
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; }; then
26762 ac_header_compiler=yes
26763else
26764 echo "$as_me: failed program was:" >&5
26765sed 's/^/| /' conftest.$ac_ext >&5
26766
26767ac_header_compiler=no
26768fi
32ddf007 26769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26771echo "${ECHO_T}$ac_header_compiler" >&6
26772
26773# Is the header present?
26774echo "$as_me:$LINENO: checking sql.h presence" >&5
26775echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26776cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26777/* confdefs.h. */
26778_ACEOF
26779cat confdefs.h >>conftest.$ac_ext
26780cat >>conftest.$ac_ext <<_ACEOF
26781/* end confdefs.h. */
26782#include <sql.h>
26783_ACEOF
26784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26786 ac_status=$?
26787 grep -v '^ *+' conftest.er1 >conftest.err
26788 rm -f conftest.er1
26789 cat conftest.err >&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } >/dev/null; then
26792 if test -s conftest.err; then
26793 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 26794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26795 else
26796 ac_cpp_err=
26797 fi
26798else
26799 ac_cpp_err=yes
26800fi
26801if test -z "$ac_cpp_err"; then
26802 ac_header_preproc=yes
26803else
26804 echo "$as_me: failed program was:" >&5
26805sed 's/^/| /' conftest.$ac_ext >&5
26806
26807 ac_header_preproc=no
26808fi
26809rm -f conftest.err conftest.$ac_ext
26810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26811echo "${ECHO_T}$ac_header_preproc" >&6
26812
26813# So? What about this header?
32ddf007
VS
26814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26815 yes:no: )
e6cc62c6
VS
26816 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26817echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
26818 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26819echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26820 ac_header_preproc=yes
e6cc62c6 26821 ;;
32ddf007 26822 no:yes:* )
e6cc62c6
VS
26823 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26824echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32ddf007
VS
26825 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26826echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26828echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26830echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26831 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26832echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
26833 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26834echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26835 (
26836 cat <<\_ASBOX
32ddf007
VS
26837## ----------------------------------------- ##
26838## Report this to wx-dev@lists.wxwindows.org ##
26839## ----------------------------------------- ##
e6cc62c6
VS
26840_ASBOX
26841 ) |
26842 sed "s/^/$as_me: WARNING: /" >&2
26843 ;;
26844esac
26845echo "$as_me:$LINENO: checking for sql.h" >&5
26846echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26847if test "${ac_cv_header_sql_h+set}" = set; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26849else
e6cc62c6
VS
26850 ac_cv_header_sql_h=$ac_header_preproc
26851fi
26852echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26853echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26854
bb41dcbe
VS
26855fi
26856if test $ac_cv_header_sql_h = yes; then
26857 found_sql_h=1
8647bec6
RG
26858fi
26859
e6cc62c6 26860
bb41dcbe 26861 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26862 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26863echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26864if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26865 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26866else
bb41dcbe 26867 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26868LIBS="-liodbc $LIBS"
e6cc62c6 26869cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26870/* confdefs.h. */
26871_ACEOF
26872cat confdefs.h >>conftest.$ac_ext
26873cat >>conftest.$ac_ext <<_ACEOF
26874/* end confdefs.h. */
26875
8647bec6 26876/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26877#ifdef __cplusplus
26878extern "C"
26879#endif
8647bec6 26880/* We use char because int might match the return type of a gcc2
e6cc62c6 26881 builtin and then its argument prototype would still apply. */
e46d2a18 26882char SQLAllocEnv ();
e6cc62c6
VS
26883int
26884main ()
26885{
e46d2a18 26886SQLAllocEnv ();
e6cc62c6
VS
26887 ;
26888 return 0;
26889}
26890_ACEOF
26891rm -f conftest.$ac_objext conftest$ac_exeext
26892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26893 (eval $ac_link) 2>conftest.er1
e6cc62c6 26894 ac_status=$?
32ddf007
VS
26895 grep -v '^ *+' conftest.er1 >conftest.err
26896 rm -f conftest.er1
26897 cat conftest.err >&5
e6cc62c6
VS
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } &&
e1293dcf 26900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; } &&
26906 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; }; then
e46d2a18 26912 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26913else
e6cc62c6
VS
26914 echo "$as_me: failed program was:" >&5
26915sed 's/^/| /' conftest.$ac_ext >&5
26916
e46d2a18 26917ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26918fi
32ddf007
VS
26919rm -f conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26921LIBS=$ac_check_lib_save_LIBS
26922fi
e46d2a18
VS
26923echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26924echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26925if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26926 ODBC_LINK=" -liodbc"
26927else
26928
e46d2a18
VS
26929 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26930echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26931if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26932 echo $ECHO_N "(cached) $ECHO_C" >&6
26933else
26934 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26935LIBS="-lunixodbc $LIBS"
bb41dcbe 26936cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26937/* confdefs.h. */
26938_ACEOF
26939cat confdefs.h >>conftest.$ac_ext
26940cat >>conftest.$ac_ext <<_ACEOF
26941/* end confdefs.h. */
26942
8647bec6 26943/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26944#ifdef __cplusplus
26945extern "C"
26946#endif
8647bec6 26947/* We use char because int might match the return type of a gcc2
e6cc62c6 26948 builtin and then its argument prototype would still apply. */
e46d2a18 26949char SQLAllocEnv ();
e6cc62c6
VS
26950int
26951main ()
26952{
e46d2a18 26953SQLAllocEnv ();
e6cc62c6
VS
26954 ;
26955 return 0;
26956}
26957_ACEOF
26958rm -f conftest.$ac_objext conftest$ac_exeext
26959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26960 (eval $ac_link) 2>conftest.er1
e6cc62c6 26961 ac_status=$?
32ddf007
VS
26962 grep -v '^ *+' conftest.er1 >conftest.err
26963 rm -f conftest.er1
26964 cat conftest.err >&5
e6cc62c6
VS
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } &&
e1293dcf 26967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; } &&
26973 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975 (eval $ac_try) 2>&5
26976 ac_status=$?
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); }; }; then
e46d2a18 26979 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 26980else
e6cc62c6
VS
26981 echo "$as_me: failed program was:" >&5
26982sed 's/^/| /' conftest.$ac_ext >&5
26983
e46d2a18 26984ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 26985fi
32ddf007
VS
26986rm -f conftest.err conftest.$ac_objext \
26987 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 26988LIBS=$ac_check_lib_save_LIBS
e6cc62c6 26989fi
e46d2a18
VS
26990echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26991echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26992if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26993 ODBC_LINK=" -lunixodbc"
26994else
26995
e46d2a18
VS
26996 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26997echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26998if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
27000else
27001 ac_check_lib_save_LIBS=$LIBS
e46d2a18 27002LIBS="-lodbc $LIBS"
bb41dcbe 27003cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
27004/* confdefs.h. */
27005_ACEOF
27006cat confdefs.h >>conftest.$ac_ext
27007cat >>conftest.$ac_ext <<_ACEOF
27008/* end confdefs.h. */
e6cc62c6 27009
bb41dcbe
VS
27010/* Override any gcc2 internal prototype to avoid an error. */
27011#ifdef __cplusplus
27012extern "C"
27013#endif
27014/* We use char because int might match the return type of a gcc2
27015 builtin and then its argument prototype would still apply. */
e46d2a18 27016char SQLAllocEnv ();
bb41dcbe
VS
27017int
27018main ()
27019{
e46d2a18 27020SQLAllocEnv ();
bb41dcbe
VS
27021 ;
27022 return 0;
27023}
27024_ACEOF
27025rm -f conftest.$ac_objext conftest$ac_exeext
27026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27027 (eval $ac_link) 2>conftest.er1
bb41dcbe 27028 ac_status=$?
32ddf007
VS
27029 grep -v '^ *+' conftest.er1 >conftest.err
27030 rm -f conftest.er1
27031 cat conftest.err >&5
bb41dcbe
VS
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
e1293dcf 27034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; } &&
27040 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; }; then
e46d2a18 27046 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 27047else
bb41dcbe
VS
27048 echo "$as_me: failed program was:" >&5
27049sed 's/^/| /' conftest.$ac_ext >&5
27050
e46d2a18 27051ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 27052fi
32ddf007
VS
27053rm -f conftest.err conftest.$ac_objext \
27054 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
27055LIBS=$ac_check_lib_save_LIBS
27056fi
e46d2a18
VS
27057echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27058echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27059if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
27060 ODBC_LINK=" -lodbc"
27061fi
27062
27063
27064fi
e6cc62c6 27065
e6cc62c6 27066
8647bec6 27067fi
e6cc62c6 27068
fd3d7534 27069 fi
bb41dcbe
VS
27070 if test "x$ODBC_LINK" = "x" ; then
27071 if test "$wxUSE_ODBC" = "sys" ; then
27072 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27073echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27074 { (exit 1); exit 1; }; }
27075 else
27076 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27077echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27078 wxUSE_ODBC=builtin
27079 fi
27080 else
27081 wxUSE_ODBC=sys
8647bec6 27082 fi
8647bec6 27083 fi
bb41dcbe
VS
27084 if test "$wxUSE_ODBC" != "no" ; then
27085 cat >>confdefs.h <<\_ACEOF
27086#define wxUSE_ODBC 1
27087_ACEOF
e6cc62c6 27088
0bdb08e7
VS
27089 if test "$wxUSE_ODBC" = "builtin" ; then
27090 cat >>confdefs.h <<\_ACEOF
27091#define wxUSE_BUILTIN_IODBC 1
27092_ACEOF
27093
27094 fi
bb41dcbe
VS
27095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27096
27097 WXODBCFLAG="-D_IODBC_"
27098 fi
6232543b 27099fi
21d1c967
GD
27100
27101if test "$wxUSE_REGEX" = "builtin" ; then
27102 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 27103fi
21d1c967
GD
27104if test "$wxUSE_ZLIB" = "builtin" ; then
27105 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
27106fi
27107
74500461
VS
27108if test "$wxUSE_DISPLAY" = "yes"; then
27109 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27110 echo "$as_me:$LINENO: checking for Xinerama" >&5
27111echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27112
27113ac_find_libraries=
27114for ac_dir in $SEARCH_LIB /usr/lib;
27115 do
27116 for ac_extension in a so sl dylib; do
27117 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27118 ac_find_libraries=$ac_dir
27119 break 2
27120 fi
27121 done
27122 done
27123
27124 if test "$ac_find_libraries" != "" ; then
27125
27126 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27127 result=$?
27128 if test $result = 0; then
27129 ac_path_to_link=""
27130 else
27131 ac_path_to_link=" -L$ac_find_libraries"
27132 fi
27133
27134 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27135 LDFLAGS="$LDFLAGS $ac_path_to_link"
27136 fi
27137 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27138 echo "$as_me:$LINENO: result: yes" >&5
27139echo "${ECHO_T}yes" >&6
505c8ccd
VS
27140
27141 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27142echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27143
27144ac_find_libraries=
27145for ac_dir in $SEARCH_LIB /usr/lib;
27146 do
27147 for ac_extension in a so sl dylib; do
27148 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27149 ac_find_libraries=$ac_dir
27150 break 2
27151 fi
27152 done
27153 done
27154
27155 if test "$ac_find_libraries" != "" ; then
27156 echo "$as_me:$LINENO: result: yes" >&5
27157echo "${ECHO_T}yes" >&6
27158
27159for ac_header in X11/extensions/xf86vmode.h
27160do
27161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27162echo "$as_me:$LINENO: checking for $ac_header" >&5
27163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27164if eval "test \"\${$as_ac_Header+set}\" = set"; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27166else
27167 cat >conftest.$ac_ext <<_ACEOF
27168/* confdefs.h. */
27169_ACEOF
27170cat confdefs.h >>conftest.$ac_ext
27171cat >>conftest.$ac_ext <<_ACEOF
27172/* end confdefs.h. */
27173
27174 #if HAVE_X11_XLIB_H
27175 #include <X11/Xlib.h>
27176 #endif
27177
27178
27179#include <$ac_header>
27180_ACEOF
27181rm -f conftest.$ac_objext
27182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 27183 (eval $ac_compile) 2>conftest.er1
505c8ccd 27184 ac_status=$?
32ddf007
VS
27185 grep -v '^ *+' conftest.er1 >conftest.err
27186 rm -f conftest.er1
27187 cat conftest.err >&5
505c8ccd
VS
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } &&
e1293dcf 27190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27199 ac_status=$?
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; }; then
27202 eval "$as_ac_Header=yes"
27203else
27204 echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207eval "$as_ac_Header=no"
27208fi
32ddf007 27209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
27210fi
27211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27213if test `eval echo '${'$as_ac_Header'}'` = yes; then
27214 cat >>confdefs.h <<_ACEOF
27215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27216_ACEOF
27217
27218 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27219
27220fi
27221
27222done
27223
27224 else
27225 echo "$as_me:$LINENO: result: no" >&5
27226echo "${ECHO_T}no" >&6
27227 fi
27228
74500461
VS
27229 else
27230 echo "$as_me:$LINENO: result: no" >&5
27231echo "${ECHO_T}no" >&6
27232 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27233echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27234 wxUSE_DISPLAY="no"
27235 fi
27236 fi
27237fi
27238
8284b0c5 27239
4d264332 27240USE_OPENGL=0
21d1c967 27241if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 27242 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
27243 OPENGL_LIBS="-framework OpenGL -framework AGL"
27244 elif test "$wxUSE_MSW" = 1; then
27245 OPENGL_LIBS="-lopengl32 -lglu32"
27246 else
01aa5863
VS
27247
27248
27249ac_find_includes=
27250for ac_dir in $SEARCH_INCLUDE /usr/include;
27251 do
27252 if test -f "$ac_dir/GL/gl.h"; then
27253 ac_find_includes=$ac_dir
27254 break
27255 fi
27256 done
27257
27258 if test "$ac_find_includes" != "" ; then
27259 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27260echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
27261
27262 if test "x$ac_find_includes" = "x/usr/include"; then
27263 ac_path_to_include=""
27264 else
27265 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27266 result=$?
27267 if test $result = 0; then
27268 ac_path_to_include=""
27269 else
27270 ac_path_to_include=" -I$ac_find_includes"
27271 fi
27272 fi
27273
27274 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
27275 fi
27276
e6cc62c6
VS
27277 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27278 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27279echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27280if test "${ac_cv_header_GL_gl_h+set}" = set; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27282fi
27283echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27284echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27285else
27286 # Is the header compilable?
27287echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27288echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27289cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27290/* confdefs.h. */
27291_ACEOF
27292cat confdefs.h >>conftest.$ac_ext
27293cat >>conftest.$ac_ext <<_ACEOF
27294/* end confdefs.h. */
27295$ac_includes_default
21d1c967 27296#include <GL/gl.h>
e6cc62c6
VS
27297_ACEOF
27298rm -f conftest.$ac_objext
27299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 27300 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27301 ac_status=$?
32ddf007
VS
27302 grep -v '^ *+' conftest.er1 >conftest.err
27303 rm -f conftest.er1
27304 cat conftest.err >&5
e6cc62c6
VS
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } &&
e1293dcf 27307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 ac_header_compiler=yes
27320else
27321 echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
27324ac_header_compiler=no
27325fi
32ddf007 27326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27328echo "${ECHO_T}$ac_header_compiler" >&6
27329
27330# Is the header present?
27331echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27332echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27333cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27334/* confdefs.h. */
27335_ACEOF
27336cat confdefs.h >>conftest.$ac_ext
27337cat >>conftest.$ac_ext <<_ACEOF
27338/* end confdefs.h. */
27339#include <GL/gl.h>
27340_ACEOF
27341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27343 ac_status=$?
27344 grep -v '^ *+' conftest.er1 >conftest.err
27345 rm -f conftest.er1
27346 cat conftest.err >&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); } >/dev/null; then
27349 if test -s conftest.err; then
27350 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 27351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
27352 else
27353 ac_cpp_err=
27354 fi
27355else
27356 ac_cpp_err=yes
27357fi
27358if test -z "$ac_cpp_err"; then
27359 ac_header_preproc=yes
27360else
27361 echo "$as_me: failed program was:" >&5
27362sed 's/^/| /' conftest.$ac_ext >&5
27363
27364 ac_header_preproc=no
27365fi
27366rm -f conftest.err conftest.$ac_ext
27367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27368echo "${ECHO_T}$ac_header_preproc" >&6
27369
27370# So? What about this header?
32ddf007
VS
27371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27372 yes:no: )
e6cc62c6
VS
27373 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27374echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
27375 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27376echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27377 ac_header_preproc=yes
e6cc62c6 27378 ;;
32ddf007 27379 no:yes:* )
e6cc62c6
VS
27380 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27381echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32ddf007
VS
27382 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27383echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27384 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27385echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27386 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27387echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
27388 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27389echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
27390 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27391echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
27392 (
27393 cat <<\_ASBOX
32ddf007
VS
27394## ----------------------------------------- ##
27395## Report this to wx-dev@lists.wxwindows.org ##
27396## ----------------------------------------- ##
e6cc62c6
VS
27397_ASBOX
27398 ) |
27399 sed "s/^/$as_me: WARNING: /" >&2
27400 ;;
27401esac
27402echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27403echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27404if test "${ac_cv_header_GL_gl_h+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27406else
27407 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 27408fi
e6cc62c6
VS
27409echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27410echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27411
698dcdb6 27412fi
e6cc62c6
VS
27413if test $ac_cv_header_GL_gl_h = yes; then
27414
89e3b3e4
VZ
27415 found_gl=0
27416
e6cc62c6
VS
27417 echo "$as_me:$LINENO: checking for -lGL" >&5
27418echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27419
21d1c967 27420ac_find_libraries=
2b5f62a0 27421for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27422 do
27423 for ac_extension in a so sl dylib; do
27424 if test -f "$ac_dir/libGL.$ac_extension"; then
27425 ac_find_libraries=$ac_dir
27426 break 2
27427 fi
27428 done
27429 done
27430
27431 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27432
21d1c967
GD
27433 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27434 result=$?
27435 if test $result = 0; then
27436 ac_path_to_link=""
27437 else
27438 ac_path_to_link=" -L$ac_find_libraries"
27439 fi
27440
89e3b3e4
VZ
27441 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27442 LDFLAGS_GL="$ac_path_to_link"
21d1c967 27443 fi
89e3b3e4 27444
e6cc62c6 27445
89e3b3e4
VZ
27446ac_find_libraries=
27447for ac_dir in $SEARCH_LIB /usr/lib;
27448 do
27449 for ac_extension in a so sl dylib; do
27450 if test -f "$ac_dir/libGLU.$ac_extension"; then
27451 ac_find_libraries=$ac_dir
27452 break 2
27453 fi
27454 done
27455 done
27456
27457 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27458
89e3b3e4
VZ
27459 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27460 result=$?
27461 if test $result = 0; then
27462 ac_path_to_link=""
27463 else
27464 ac_path_to_link=" -L$ac_find_libraries"
27465 fi
27466
27467 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27468 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27469 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27470 fi
27471
27472 found_gl=1
27473 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
27474 echo "$as_me:$LINENO: result: yes" >&5
27475echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
27476 fi
27477 fi
27478
bb41dcbe 27479 if test "$found_gl" != 1; then
e6cc62c6
VS
27480 echo "$as_me:$LINENO: result: no" >&5
27481echo "${ECHO_T}no" >&6
27482 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27483echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27484
21d1c967 27485ac_find_libraries=
2b5f62a0 27486for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27487 do
27488 for ac_extension in a so sl dylib; do
27489 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27490 ac_find_libraries=$ac_dir
27491 break 2
27492 fi
27493 done
27494 done
27495
27496 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27497
21d1c967
GD
27498 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27499 result=$?
27500 if test $result = 0; then
27501 ac_path_to_link=""
27502 else
27503 ac_path_to_link=" -L$ac_find_libraries"
27504 fi
27505
27506 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27507 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
27508 echo "$as_me:$LINENO: result: yes" >&5
27509echo "${ECHO_T}yes" >&6
21d1c967 27510 else
e6cc62c6
VS
27511 echo "$as_me:$LINENO: result: no" >&5
27512echo "${ECHO_T}no" >&6
21d1c967
GD
27513 fi
27514 fi
e6cc62c6 27515
5c6fa7d2 27516fi
52127426 27517
8284b0c5 27518
e6cc62c6 27519
21d1c967 27520 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
27521 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27522echo "$as_me: error: OpenGL libraries not available" >&2;}
27523 { (exit 1); exit 1; }; }
21d1c967
GD
27524 fi
27525 fi
90dd450c 27526
21d1c967 27527 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 27528 USE_OPENGL=1
e6cc62c6 27529 cat >>confdefs.h <<\_ACEOF
21d1c967 27530#define wxUSE_OPENGL 1
e6cc62c6 27531_ACEOF
21d1c967 27532
e6cc62c6 27533 cat >>confdefs.h <<\_ACEOF
21d1c967 27534#define wxUSE_GLCANVAS 1
e6cc62c6 27535_ACEOF
21d1c967 27536
520755bb 27537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 27538 fi
10f2d63a 27539fi
21d1c967
GD
27540
27541if test -z "$TOOLKIT_VPATH" ; then
27542 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 27543fi
21d1c967
GD
27544
27545if test -n "$TOOLKIT" ; then
27546 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27547fi
27548
fe0895cf 27549UNICODE=0
21d1c967
GD
27550lib_unicode_suffix=
27551if test "$wxUSE_UNICODE" = "yes"; then
27552 lib_unicode_suffix=u
fe0895cf 27553 UNICODE=1
90dd450c 27554fi
698dcdb6 27555
21d1c967 27556lib_debug_suffix=
6c67131a 27557DEBUG_FLAG=0
21d1c967
GD
27558if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27559 lib_debug_suffix=d
6c67131a
VS
27560 DEBUG_FLAG=1
27561fi
27562
27563DEBUG_INFO=0
27564if test "$wxUSE_DEBUG_INFO" = "yes"; then
27565 DEBUG_INFO=1
21d1c967 27566fi
698dcdb6 27567
1cbb95a2 27568WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27569
27570TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27571TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27572
27573if test "$cross_compiling" = "yes"; then
27574 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27575 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27576 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27577fi
27578
27579WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27580WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27581WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27582WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27583
27584WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27585WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27586
27587WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27588WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27589WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27590WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27591
27592case "${host}" in
27593 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27594 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27595 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27596 ;;
27597
27598 *-*-darwin* )
e6cc62c6 27599
05159a27
GD
27600 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27601 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27602
27603 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27604 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27605 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27606 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27607
09d3439c
VZ
27608 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27609 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 27610 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27611 fi
27612 ;;
27613esac
27614
27615WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27616WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27617
27618WXCONFIG_LIBS="-l${WX_LIBRARY}"
27619WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27620
27621if test "$wxUSE_OPENGL" = "yes"; then
27622 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27623 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27624fi
27625
8284b0c5
MB
27626
27627
21d1c967
GD
27628if test "$wxUSE_SHARED" = "yes"; then
27629 case "${host}" in
27630 *-pc-os2_emx | *-pc-os2-emx | \
27631 *-pc-msdosdjgpp )
27632 wxUSE_SHARED=no
e6cc62c6
VS
27633 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27634echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27635 ;;
27636 esac
27637fi
27638
fe0895cf 27639SHARED=0
2b5f62a0 27640if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27641 SHARED=1
2b5f62a0 27642
e6cc62c6 27643
2b5f62a0
VZ
27644 found_versioning=no
27645
e6cc62c6 27646
2b5f62a0 27647 if test $found_versioning = no ; then
e6cc62c6
VS
27648 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27649echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27650if test "${wx_cv_version_script+set}" = set; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27652else
e6cc62c6 27653
2b5f62a0
VZ
27654 echo "VER_1 { *; };" >conftest.sym
27655 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27656
2b5f62a0
VZ
27657 if { ac_try='
27658 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27659 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27662 ac_status=$?
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27665 if test -s conftest.stderr ; then
27666 wx_cv_version_script=no
27667 else
27668 wx_cv_version_script=yes
27669 fi
27670 else
27671 wx_cv_version_script=no
27672 fi
27673 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27674
e6cc62c6
VS
27675fi
27676echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27677echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27678 if test $wx_cv_version_script = yes ; then
e6cc62c6 27679 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27680 fi
27681 fi
21d1c967 27682
21d1c967 27683
21d1c967 27684 case "${host}" in
fe0895cf 27685 *-*-linux* | *-*-gnu* )
e6cc62c6 27686 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27687 ;;
21d1c967
GD
27688
27689 *-*-solaris2* )
27690 if test "$GCC" = yes ; then
27691 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27692
27693 saveLdflags="$LDFLAGS"
27694 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27695 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27696echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27697 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27698/* confdefs.h. */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h. */
27703
27704int
27705main ()
27706{
fe0895cf 27707
e6cc62c6
VS
27708 ;
27709 return 0;
27710}
27711_ACEOF
27712rm -f conftest.$ac_objext conftest$ac_exeext
27713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27714 (eval $ac_link) 2>conftest.er1
e6cc62c6 27715 ac_status=$?
32ddf007
VS
27716 grep -v '^ *+' conftest.er1 >conftest.err
27717 rm -f conftest.er1
27718 cat conftest.err >&5
e6cc62c6
VS
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } &&
e1293dcf 27721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; } &&
27727 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733
27734 echo "$as_me:$LINENO: result: yes" >&5
27735echo "${ECHO_T}yes" >&6
27736 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27737
27738else
27739 echo "$as_me: failed program was:" >&5
27740sed 's/^/| /' conftest.$ac_ext >&5
27741
27742
27743 echo "$as_me:$LINENO: result: no" >&5
27744echo "${ECHO_T}no" >&6
27745 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27746echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27747 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27748 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27749/* confdefs.h. */
27750_ACEOF
27751cat confdefs.h >>conftest.$ac_ext
27752cat >>conftest.$ac_ext <<_ACEOF
27753/* end confdefs.h. */
27754
27755int
27756main ()
27757{
27758
27759 ;
27760 return 0;
27761}
27762_ACEOF
27763rm -f conftest.$ac_objext conftest$ac_exeext
27764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27765 (eval $ac_link) 2>conftest.er1
e6cc62c6 27766 ac_status=$?
32ddf007
VS
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
e6cc62c6
VS
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
e1293dcf 27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774 (eval $ac_try) 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784
27785 echo "$as_me:$LINENO: result: yes" >&5
27786echo "${ECHO_T}yes" >&6
27787 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27788else
27789 echo "$as_me: failed program was:" >&5
27790sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27791
fe0895cf 27792
e6cc62c6
VS
27793 echo "$as_me:$LINENO: result: no" >&5
27794echo "${ECHO_T}no" >&6
27795
fe0895cf 27796fi
32ddf007
VS
27797rm -f conftest.err conftest.$ac_objext \
27798 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27799
27800fi
32ddf007
VS
27801rm -f conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27803 LDFLAGS="$saveLdflags"
21d1c967
GD
27804 else
27805 SHARED_LD="${CXX} -G -o"
27806 PIC_FLAG="-KPIC"
e6cc62c6 27807 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27808 fi
27809 ;;
0f1bc9c2
VS
27810
27811 powerpc-*-darwin* )
ef0add05
VS
27812 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27813 cat <<EOF >change-install-names
27814#!/bin/sh
27815libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27816inst_cmd="install_name_tool "
27817for i in \${libnames} ; do
27818 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27819done
27820\${inst_cmd} \${3}
27821EOF
27822 chmod +x change-install-names
0f1bc9c2
VS
27823 ;;
27824
21d1c967
GD
27825 esac
27826
27827 if test "x$WX_TARGET_LIBRARY" = "x"; then
27828 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27829 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27830 fi
27831
27832 WX_TARGET_LIBRARY_TYPE="so"
27833 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27834fi
10f2d63a 27835
21d1c967
GD
27836if test "$wxUSE_SHARED" = "no"; then
27837
27838 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27839 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27840 fi
27841
ac0c4cc3 27842 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27843 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27844 fi
27845
27846 if test "$wxUSE_OPENGL" = "yes"; then
27847 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27848 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27849 else
27850 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27851 fi
27852
27853 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27854 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27855
27856 WX_TARGET_LIBRARY_TYPE="a"
27857 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27858
27859 STATIC_FLAG="yes"
27860else
27861 STATIC_FLAG="no"
90dd450c 27862fi
1e487827 27863
09d3439c 27864if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 27865 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27866 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27867 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 27868
21d1c967
GD
27869 # Extract the first word of "Rez", so it can be a program name with args.
27870set dummy Rez; ac_word=$2
e6cc62c6
VS
27871echo "$as_me:$LINENO: checking for $ac_word" >&5
27872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27873if test "${ac_cv_prog_RESCOMP+set}" = set; then
27874 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27875else
21d1c967
GD
27876 if test -n "$RESCOMP"; then
27877 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27878else
e6cc62c6
VS
27879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27880for as_dir in $PATH
27881do
27882 IFS=$as_save_IFS
27883 test -z "$as_dir" && as_dir=.
27884 for ac_exec_ext in '' $ac_executable_extensions; do
27885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27886 ac_cv_prog_RESCOMP="Rez"
27887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27888 break 2
27889 fi
27890done
27891done
27892
21d1c967 27893 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27894fi
b93d0d08 27895fi
e6cc62c6 27896RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27897if test -n "$RESCOMP"; then
e6cc62c6
VS
27898 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27899echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27900else
e6cc62c6
VS
27901 echo "$as_me:$LINENO: result: no" >&5
27902echo "${ECHO_T}no" >&6
90dd450c 27903fi
b93d0d08 27904
21d1c967
GD
27905 # Extract the first word of "DeRez", so it can be a program name with args.
27906set dummy DeRez; ac_word=$2
e6cc62c6
VS
27907echo "$as_me:$LINENO: checking for $ac_word" >&5
27908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27909if test "${ac_cv_prog_DEREZ+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27911else
21d1c967
GD
27912 if test -n "$DEREZ"; then
27913 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27914else
e6cc62c6
VS
27915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27916for as_dir in $PATH
27917do
27918 IFS=$as_save_IFS
27919 test -z "$as_dir" && as_dir=.
27920 for ac_exec_ext in '' $ac_executable_extensions; do
27921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27922 ac_cv_prog_DEREZ="DeRez"
27923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27924 break 2
27925 fi
27926done
27927done
27928
21d1c967 27929 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27930fi
90dd450c 27931fi
e6cc62c6 27932DEREZ=$ac_cv_prog_DEREZ
21d1c967 27933if test -n "$DEREZ"; then
e6cc62c6
VS
27934 echo "$as_me:$LINENO: result: $DEREZ" >&5
27935echo "${ECHO_T}$DEREZ" >&6
90dd450c 27936else
e6cc62c6
VS
27937 echo "$as_me:$LINENO: result: no" >&5
27938echo "${ECHO_T}no" >&6
3a922bb4 27939fi
698dcdb6 27940
36825681
GD
27941 # Extract the first word of "SetFile", so it can be a program name with args.
27942set dummy SetFile; ac_word=$2
e6cc62c6
VS
27943echo "$as_me:$LINENO: checking for $ac_word" >&5
27944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27945if test "${ac_cv_prog_SETFILE+set}" = set; then
27946 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27947else
27948 if test -n "$SETFILE"; then
27949 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27950else
e6cc62c6
VS
27951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27952for as_dir in $PATH
27953do
27954 IFS=$as_save_IFS
27955 test -z "$as_dir" && as_dir=.
27956 for ac_exec_ext in '' $ac_executable_extensions; do
27957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27958 ac_cv_prog_SETFILE="SetFile"
27959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27960 break 2
27961 fi
27962done
27963done
27964
36825681
GD
27965 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27966fi
27967fi
e6cc62c6 27968SETFILE=$ac_cv_prog_SETFILE
36825681 27969if test -n "$SETFILE"; then
e6cc62c6
VS
27970 echo "$as_me:$LINENO: result: $SETFILE" >&5
27971echo "${ECHO_T}$SETFILE" >&6
36825681 27972else
e6cc62c6
VS
27973 echo "$as_me:$LINENO: result: no" >&5
27974echo "${ECHO_T}no" >&6
36825681
GD
27975fi
27976
e6cc62c6 27977
09d3439c 27978 MACSETFILE="\$(SETFILE)"
64440d77 27979
09d3439c
VZ
27980 if test "$wxUSE_MAC" = 1; then
27981 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 27982
09d3439c
VZ
27983 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27984 else
27985 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27986 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27987 fi
64440d77 27988else
09d3439c
VZ
27989 MACSETFILE="@#"
27990 MACRESWXCONFIG="#"
64440d77 27991
09d3439c 27992 if test "$wxUSE_PM" = 1; then
36825681 27993 MACRESCOMP="emxbind -ep"
09d3439c
VZ
27994 else
27995 MACRESCOMP="@#"
90dd450c 27996 fi
4f14bcd8 27997fi
10f2d63a 27998
8284b0c5 27999
f93ca9fd 28000
e6cc62c6
VS
28001echo "$as_me:$LINENO: checking for mode_t" >&5
28002echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28003if test "${ac_cv_type_mode_t+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 28005else
e6cc62c6 28006 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28007/* confdefs.h. */
28008_ACEOF
28009cat confdefs.h >>conftest.$ac_ext
28010cat >>conftest.$ac_ext <<_ACEOF
28011/* end confdefs.h. */
28012$ac_includes_default
28013int
28014main ()
28015{
28016if ((mode_t *) 0)
28017 return 0;
28018if (sizeof (mode_t))
28019 return 0;
28020 ;
28021 return 0;
28022}
28023_ACEOF
28024rm -f conftest.$ac_objext
28025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28026 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28027 ac_status=$?
32ddf007
VS
28028 grep -v '^ *+' conftest.er1 >conftest.err
28029 rm -f conftest.er1
28030 cat conftest.err >&5
e6cc62c6
VS
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); } &&
e1293dcf 28033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; } &&
28039 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; }; then
28045 ac_cv_type_mode_t=yes
a0b9e27f 28046else
e6cc62c6
VS
28047 echo "$as_me: failed program was:" >&5
28048sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28049
e6cc62c6 28050ac_cv_type_mode_t=no
a0b9e27f 28051fi
32ddf007 28052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 28053fi
e6cc62c6
VS
28054echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28055echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28056if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
28057 :
28058else
a0b9e27f 28059
e6cc62c6
VS
28060cat >>confdefs.h <<_ACEOF
28061#define mode_t int
28062_ACEOF
8284b0c5
MB
28063
28064fi
28065
e6cc62c6
VS
28066echo "$as_me:$LINENO: checking for off_t" >&5
28067echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28068if test "${ac_cv_type_off_t+set}" = set; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28070else
e6cc62c6 28071 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28072/* confdefs.h. */
28073_ACEOF
28074cat confdefs.h >>conftest.$ac_ext
28075cat >>conftest.$ac_ext <<_ACEOF
28076/* end confdefs.h. */
28077$ac_includes_default
28078int
28079main ()
28080{
28081if ((off_t *) 0)
28082 return 0;
28083if (sizeof (off_t))
28084 return 0;
28085 ;
28086 return 0;
28087}
28088_ACEOF
28089rm -f conftest.$ac_objext
28090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28091 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28092 ac_status=$?
32ddf007
VS
28093 grep -v '^ *+' conftest.er1 >conftest.err
28094 rm -f conftest.er1
28095 cat conftest.err >&5
e6cc62c6
VS
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } &&
e1293dcf 28098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28100 (eval $ac_try) 2>&5
28101 ac_status=$?
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); }; } &&
28104 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106 (eval $ac_try) 2>&5
28107 ac_status=$?
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; }; then
28110 ac_cv_type_off_t=yes
5c6fa7d2 28111else
e6cc62c6
VS
28112 echo "$as_me: failed program was:" >&5
28113sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28114
e6cc62c6 28115ac_cv_type_off_t=no
8284b0c5 28116fi
32ddf007 28117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 28118fi
e6cc62c6
VS
28119echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28120echo "${ECHO_T}$ac_cv_type_off_t" >&6
28121if test $ac_cv_type_off_t = yes; then
28122 :
247f5006
VZ
28123else
28124
e6cc62c6 28125cat >>confdefs.h <<_ACEOF
90dd450c 28126#define off_t long
e6cc62c6 28127_ACEOF
10f2d63a 28128
90dd450c 28129fi
10f2d63a 28130
e6cc62c6
VS
28131echo "$as_me:$LINENO: checking for pid_t" >&5
28132echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28133if test "${ac_cv_type_pid_t+set}" = set; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 28135else
e6cc62c6 28136 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28137/* confdefs.h. */
28138_ACEOF
28139cat confdefs.h >>conftest.$ac_ext
28140cat >>conftest.$ac_ext <<_ACEOF
28141/* end confdefs.h. */
28142$ac_includes_default
28143int
28144main ()
28145{
28146if ((pid_t *) 0)
28147 return 0;
28148if (sizeof (pid_t))
28149 return 0;
28150 ;
28151 return 0;
28152}
28153_ACEOF
28154rm -f conftest.$ac_objext
28155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28156 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28157 ac_status=$?
32ddf007
VS
28158 grep -v '^ *+' conftest.er1 >conftest.err
28159 rm -f conftest.er1
28160 cat conftest.err >&5
e6cc62c6
VS
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } &&
e1293dcf 28163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28166 ac_status=$?
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; } &&
28169 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171 (eval $ac_try) 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
90dd450c 28175 ac_cv_type_pid_t=yes
698dcdb6 28176else
e6cc62c6
VS
28177 echo "$as_me: failed program was:" >&5
28178sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28179
e6cc62c6
VS
28180ac_cv_type_pid_t=no
28181fi
32ddf007 28182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28183fi
e6cc62c6
VS
28184echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28185echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28186if test $ac_cv_type_pid_t = yes; then
28187 :
28188else
28189
28190cat >>confdefs.h <<_ACEOF
90dd450c 28191#define pid_t int
e6cc62c6 28192_ACEOF
10f2d63a 28193
7b4a847f
RR
28194fi
28195
e6cc62c6
VS
28196echo "$as_me:$LINENO: checking for size_t" >&5
28197echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28198if test "${ac_cv_type_size_t+set}" = set; then
28199 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 28200else
e6cc62c6 28201 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28202/* confdefs.h. */
28203_ACEOF
28204cat confdefs.h >>conftest.$ac_ext
28205cat >>conftest.$ac_ext <<_ACEOF
28206/* end confdefs.h. */
28207$ac_includes_default
28208int
28209main ()
28210{
28211if ((size_t *) 0)
28212 return 0;
28213if (sizeof (size_t))
28214 return 0;
28215 ;
28216 return 0;
28217}
28218_ACEOF
28219rm -f conftest.$ac_objext
28220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28221 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28222 ac_status=$?
32ddf007
VS
28223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
e6cc62c6
VS
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
e1293dcf 28228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; } &&
28234 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; }; then
90dd450c 28240 ac_cv_type_size_t=yes
18dbb1f6 28241else
e6cc62c6
VS
28242 echo "$as_me: failed program was:" >&5
28243sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28244
e6cc62c6 28245ac_cv_type_size_t=no
a0b9e27f 28246fi
32ddf007 28247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28248fi
28249echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28250echo "${ECHO_T}$ac_cv_type_size_t" >&6
28251if test $ac_cv_type_size_t = yes; then
28252 :
28253else
28254
28255cat >>confdefs.h <<_ACEOF
90dd450c 28256#define size_t unsigned
e6cc62c6 28257_ACEOF
90dd450c
VZ
28258
28259fi
28260
e6cc62c6
VS
28261echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28262echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28263if test "${ac_cv_type_uid_t+set}" = set; then
28264 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 28265else
e6cc62c6 28266 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28267/* confdefs.h. */
28268_ACEOF
28269cat confdefs.h >>conftest.$ac_ext
28270cat >>conftest.$ac_ext <<_ACEOF
28271/* end confdefs.h. */
90dd450c 28272#include <sys/types.h>
e6cc62c6
VS
28273
28274_ACEOF
90dd450c 28275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 28276 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 28277 ac_cv_type_uid_t=yes
b3e8d00a 28278else
90dd450c 28279 ac_cv_type_uid_t=no
b3e8d00a 28280fi
90dd450c 28281rm -f conftest*
b3e8d00a 28282
4f14bcd8 28283fi
e6cc62c6
VS
28284echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28285echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 28286if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
28287
28288cat >>confdefs.h <<\_ACEOF
90dd450c 28289#define uid_t int
e6cc62c6 28290_ACEOF
247f5006 28291
e6cc62c6
VS
28292
28293cat >>confdefs.h <<\_ACEOF
90dd450c 28294#define gid_t int
e6cc62c6 28295_ACEOF
4f14bcd8 28296
b3e8d00a 28297fi
b3e8d00a 28298
8284b0c5
MB
28299
28300
e6cc62c6
VS
28301
28302ac_ext=cc
4f14bcd8 28303ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28307
28308echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28309echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28310if test "${wx_cv_size_t_is_uint+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28312else
28313
28314 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28315/* confdefs.h. */
28316_ACEOF
28317cat confdefs.h >>conftest.$ac_ext
28318cat >>conftest.$ac_ext <<_ACEOF
28319/* end confdefs.h. */
90dd450c 28320#include <stddef.h>
e6cc62c6
VS
28321int
28322main ()
28323{
90dd450c
VZ
28324
28325 return 0; }
28326
28327 struct Foo { void foo(size_t); void foo(unsigned int); };
28328
28329 int bar() {
e6cc62c6
VS
28330
28331 ;
28332 return 0;
28333}
28334_ACEOF
28335rm -f conftest.$ac_objext
28336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28337 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28338 ac_status=$?
32ddf007
VS
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
e6cc62c6
VS
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } &&
e1293dcf 28344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346 (eval $ac_try) 2>&5
28347 ac_status=$?
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; } &&
28350 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; }; then
90dd450c 28356 wx_cv_size_t_is_uint=no
698dcdb6 28357else
e6cc62c6
VS
28358 echo "$as_me: failed program was:" >&5
28359sed 's/^/| /' conftest.$ac_ext >&5
28360
28361wx_cv_size_t_is_uint=yes
8284b0c5 28362
247f5006 28363fi
32ddf007 28364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28365
a0b9e27f 28366
e6cc62c6
VS
28367fi
28368echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28369echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 28370
90dd450c 28371if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 28372 cat >>confdefs.h <<\_ACEOF
90dd450c 28373#define wxSIZE_T_IS_UINT 1
e6cc62c6 28374_ACEOF
698dcdb6 28375
90dd450c 28376else
e6cc62c6
VS
28377 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28378echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28379if test "${wx_cv_size_t_is_ulong+set}" = set; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28381else
e6cc62c6 28382 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28383/* confdefs.h. */
28384_ACEOF
28385cat confdefs.h >>conftest.$ac_ext
28386cat >>conftest.$ac_ext <<_ACEOF
28387/* end confdefs.h. */
90dd450c 28388#include <stddef.h>
e6cc62c6
VS
28389int
28390main ()
28391{
90dd450c
VZ
28392
28393 return 0; }
28394
28395 struct Foo { void foo(size_t); void foo(unsigned long); };
28396
28397 int bar() {
e6cc62c6
VS
28398
28399 ;
28400 return 0;
28401}
28402_ACEOF
28403rm -f conftest.$ac_objext
28404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28405 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28406 ac_status=$?
32ddf007
VS
28407 grep -v '^ *+' conftest.er1 >conftest.err
28408 rm -f conftest.er1
28409 cat conftest.err >&5
e6cc62c6
VS
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } &&
e1293dcf 28412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414 (eval $ac_try) 2>&5
28415 ac_status=$?
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); }; } &&
28418 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420 (eval $ac_try) 2>&5
28421 ac_status=$?
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; }; then
90dd450c 28424 wx_cv_size_t_is_ulong=no
698dcdb6 28425else
e6cc62c6
VS
28426 echo "$as_me: failed program was:" >&5
28427sed 's/^/| /' conftest.$ac_ext >&5
28428
28429wx_cv_size_t_is_ulong=yes
28430
247f5006 28431fi
32ddf007 28432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28433
e6cc62c6
VS
28434fi
28435echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28436echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 28437
90dd450c 28438 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 28439 cat >>confdefs.h <<\_ACEOF
90dd450c 28440#define wxSIZE_T_IS_ULONG 1
e6cc62c6 28441_ACEOF
4f14bcd8
GD
28442
28443 fi
90dd450c 28444fi
1e487827 28445
90dd450c 28446ac_ext=c
4f14bcd8 28447ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28450ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 28451
5c6fa7d2 28452
8284b0c5 28453
e6cc62c6
VS
28454echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28455echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28456if test "${wx_cv_struct_pw_gecos+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28458else
e6cc62c6
VS
28459
28460 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28461/* confdefs.h. */
28462_ACEOF
28463cat confdefs.h >>conftest.$ac_ext
28464cat >>conftest.$ac_ext <<_ACEOF
28465/* end confdefs.h. */
90dd450c 28466#include <pwd.h>
e6cc62c6
VS
28467int
28468main ()
28469{
f6bcfd97 28470
90dd450c
VZ
28471 char *p;
28472 struct passwd *pw;
28473 p = pw->pw_gecos;
e6cc62c6
VS
28474
28475 ;
28476 return 0;
28477}
28478_ACEOF
28479rm -f conftest.$ac_objext
28480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28481 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28482 ac_status=$?
32ddf007
VS
28483 grep -v '^ *+' conftest.er1 >conftest.err
28484 rm -f conftest.er1
28485 cat conftest.err >&5
e6cc62c6
VS
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); } &&
e1293dcf 28488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28490 (eval $ac_try) 2>&5
28491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; } &&
28494 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28496 (eval $ac_try) 2>&5
28497 ac_status=$?
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); }; }; then
28500
90dd450c 28501 wx_cv_struct_pw_gecos=yes
e6cc62c6 28502
10f2d63a 28503else
e6cc62c6
VS
28504 echo "$as_me: failed program was:" >&5
28505sed 's/^/| /' conftest.$ac_ext >&5
28506
28507
90dd450c 28508 wx_cv_struct_pw_gecos=no
e6cc62c6 28509
247f5006
VZ
28510
28511fi
32ddf007 28512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28513
e6cc62c6
VS
28514
28515fi
28516echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28517echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 28518
90dd450c 28519if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 28520 cat >>confdefs.h <<\_ACEOF
90dd450c 28521#define HAVE_PW_GECOS 1
e6cc62c6 28522_ACEOF
c521c494 28523
90dd450c 28524fi
4f14bcd8 28525
8284b0c5 28526
d29b553b 28527if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 28528 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28529#define wxUSE_WCHAR_T 1
e6cc62c6 28530_ACEOF
d74f4b5a 28531
8284b0c5 28532
d74f4b5a
VZ
28533 WCSLEN_FOUND=0
28534 WCHAR_LINK=
e6cc62c6
VS
28535
28536for ac_func in wcslen
7a30264c 28537do
e6cc62c6
VS
28538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28539echo "$as_me:$LINENO: checking for $ac_func" >&5
28540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28541if eval "test \"\${$as_ac_var+set}\" = set"; then
28542 echo $ECHO_N "(cached) $ECHO_C" >&6
28543else
28544 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28545/* confdefs.h. */
28546_ACEOF
28547cat confdefs.h >>conftest.$ac_ext
28548cat >>conftest.$ac_ext <<_ACEOF
28549/* end confdefs.h. */
32ddf007
VS
28550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28552#define $ac_func innocuous_$ac_func
28553
7a30264c 28554/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28555 which can conflict with char $ac_func (); below.
28556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28557 <limits.h> exists even on freestanding compilers. */
32ddf007 28558
e6cc62c6
VS
28559#ifdef __STDC__
28560# include <limits.h>
28561#else
28562# include <assert.h>
28563#endif
32ddf007
VS
28564
28565#undef $ac_func
28566
4f14bcd8 28567/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28568#ifdef __cplusplus
28569extern "C"
28570{
28571#endif
4f14bcd8 28572/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28573 builtin and then its argument prototype would still apply. */
28574char $ac_func ();
7a30264c
VZ
28575/* The GNU C library defines this for functions which it implements
28576 to always fail with ENOSYS. Some functions are actually named
28577 something starting with __ and the normal name is an alias. */
28578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28579choke me
28580#else
e6cc62c6
VS
28581char (*f) () = $ac_func;
28582#endif
28583#ifdef __cplusplus
28584}
7a30264c
VZ
28585#endif
28586
e6cc62c6
VS
28587int
28588main ()
28589{
28590return f != $ac_func;
28591 ;
28592 return 0;
28593}
28594_ACEOF
28595rm -f conftest.$ac_objext conftest$ac_exeext
28596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28597 (eval $ac_link) 2>conftest.er1
e6cc62c6 28598 ac_status=$?
32ddf007
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); } &&
e1293dcf 28604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28612 (eval $ac_try) 2>&5
28613 ac_status=$?
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; }; then
28616 eval "$as_ac_var=yes"
28617else
28618 echo "$as_me: failed program was:" >&5
28619sed 's/^/| /' conftest.$ac_ext >&5
28620
28621eval "$as_ac_var=no"
28622fi
32ddf007
VS
28623rm -f conftest.err conftest.$ac_objext \
28624 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28625fi
28626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28628if test `eval echo '${'$as_ac_var'}'` = yes; then
28629 cat >>confdefs.h <<_ACEOF
28630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28631_ACEOF
d74f4b5a 28632 WCSLEN_FOUND=1
7a30264c
VZ
28633fi
28634done
9d8deca0 28635
8284b0c5 28636
d74f4b5a 28637 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28638 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28639 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28640echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28641if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28643else
e6cc62c6 28644 ac_check_lib_save_LIBS=$LIBS
7a30264c 28645LIBS="-lmsvcrt $LIBS"
e6cc62c6 28646cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
28652
4f14bcd8 28653/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28654#ifdef __cplusplus
28655extern "C"
28656#endif
4f14bcd8 28657/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28658 builtin and then its argument prototype would still apply. */
28659char wcslen ();
28660int
28661main ()
28662{
28663wcslen ();
28664 ;
28665 return 0;
28666}
28667_ACEOF
28668rm -f conftest.$ac_objext conftest$ac_exeext
28669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28670 (eval $ac_link) 2>conftest.er1
e6cc62c6 28671 ac_status=$?
32ddf007
VS
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
e6cc62c6
VS
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } &&
e1293dcf 28677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28679 (eval $ac_try) 2>&5
28680 ac_status=$?
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; } &&
28683 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; }; then
28689 ac_cv_lib_msvcrt_wcslen=yes
28690else
28691 echo "$as_me: failed program was:" >&5
28692sed 's/^/| /' conftest.$ac_ext >&5
28693
28694ac_cv_lib_msvcrt_wcslen=no
28695fi
32ddf007
VS
28696rm -f conftest.err conftest.$ac_objext \
28697 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28698LIBS=$ac_check_lib_save_LIBS
28699fi
28700echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28701echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28702if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28703 WCHAR_OK=1
d29b553b 28704fi
698dcdb6 28705
7a30264c 28706 else
e6cc62c6
VS
28707 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28708echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28709if test "${ac_cv_lib_w_wcslen+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28711else
e6cc62c6 28712 ac_check_lib_save_LIBS=$LIBS
7a30264c 28713LIBS="-lw $LIBS"
e6cc62c6 28714cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28715/* confdefs.h. */
28716_ACEOF
28717cat confdefs.h >>conftest.$ac_ext
28718cat >>conftest.$ac_ext <<_ACEOF
28719/* end confdefs.h. */
28720
4f14bcd8 28721/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28722#ifdef __cplusplus
28723extern "C"
28724#endif
4f14bcd8 28725/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28726 builtin and then its argument prototype would still apply. */
28727char wcslen ();
28728int
28729main ()
28730{
28731wcslen ();
28732 ;
28733 return 0;
28734}
28735_ACEOF
28736rm -f conftest.$ac_objext conftest$ac_exeext
28737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28738 (eval $ac_link) 2>conftest.er1
e6cc62c6 28739 ac_status=$?
32ddf007
VS
28740 grep -v '^ *+' conftest.er1 >conftest.err
28741 rm -f conftest.er1
28742 cat conftest.err >&5
e6cc62c6
VS
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); } &&
e1293dcf 28745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28748 ac_status=$?
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; } &&
28751 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; }; then
28757 ac_cv_lib_w_wcslen=yes
28758else
28759 echo "$as_me: failed program was:" >&5
28760sed 's/^/| /' conftest.$ac_ext >&5
28761
28762ac_cv_lib_w_wcslen=no
28763fi
32ddf007
VS
28764rm -f conftest.err conftest.$ac_objext \
28765 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28766LIBS=$ac_check_lib_save_LIBS
28767fi
28768echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28769echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28770if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28771
7a30264c 28772 WCHAR_LINK=" -lw"
d74f4b5a 28773 WCSLEN_FOUND=1
e6cc62c6 28774
4f14bcd8 28775fi
10f2d63a 28776
7a30264c 28777 fi
d29b553b 28778 fi
95c8801c 28779
d74f4b5a 28780 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28781 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28782#define HAVE_WCSLEN 1
e6cc62c6 28783_ACEOF
10f2d63a 28784
d74f4b5a 28785 fi
52127426 28786
e6cc62c6
VS
28787
28788for ac_func in wcsrtombs
eb4efbdc 28789do
e6cc62c6
VS
28790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28791echo "$as_me:$LINENO: checking for $ac_func" >&5
28792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28793if eval "test \"\${$as_ac_var+set}\" = set"; then
28794 echo $ECHO_N "(cached) $ECHO_C" >&6
28795else
28796 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28797/* confdefs.h. */
28798_ACEOF
28799cat confdefs.h >>conftest.$ac_ext
28800cat >>conftest.$ac_ext <<_ACEOF
28801/* end confdefs.h. */
32ddf007
VS
28802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28804#define $ac_func innocuous_$ac_func
28805
eb4efbdc 28806/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28807 which can conflict with char $ac_func (); below.
28808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28809 <limits.h> exists even on freestanding compilers. */
32ddf007 28810
e6cc62c6
VS
28811#ifdef __STDC__
28812# include <limits.h>
28813#else
28814# include <assert.h>
28815#endif
32ddf007
VS
28816
28817#undef $ac_func
28818
eb4efbdc 28819/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28820#ifdef __cplusplus
28821extern "C"
28822{
28823#endif
4f14bcd8 28824/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28825 builtin and then its argument prototype would still apply. */
28826char $ac_func ();
10f2d63a
VZ
28827/* The GNU C library defines this for functions which it implements
28828 to always fail with ENOSYS. Some functions are actually named
28829 something starting with __ and the normal name is an alias. */
247f5006 28830#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28831choke me
28832#else
e6cc62c6
VS
28833char (*f) () = $ac_func;
28834#endif
28835#ifdef __cplusplus
28836}
10f2d63a
VZ
28837#endif
28838
e6cc62c6
VS
28839int
28840main ()
28841{
28842return f != $ac_func;
28843 ;
28844 return 0;
28845}
28846_ACEOF
28847rm -f conftest.$ac_objext conftest$ac_exeext
28848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28849 (eval $ac_link) 2>conftest.er1
e6cc62c6 28850 ac_status=$?
32ddf007
VS
28851 grep -v '^ *+' conftest.er1 >conftest.err
28852 rm -f conftest.er1
28853 cat conftest.err >&5
e6cc62c6
VS
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } &&
e1293dcf 28856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28859 ac_status=$?
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28865 ac_status=$?
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; }; then
28868 eval "$as_ac_var=yes"
28869else
28870 echo "$as_me: failed program was:" >&5
28871sed 's/^/| /' conftest.$ac_ext >&5
28872
28873eval "$as_ac_var=no"
28874fi
32ddf007
VS
28875rm -f conftest.err conftest.$ac_objext \
28876 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28877fi
28878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28880if test `eval echo '${'$as_ac_var'}'` = yes; then
28881 cat >>confdefs.h <<_ACEOF
28882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28883_ACEOF
270a909e 28884
4f14bcd8 28885fi
247f5006 28886done
1e487827 28887
af15babd 28888else
e6cc62c6
VS
28889 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28890echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28891fi
52127426 28892
8284b0c5 28893
e6cc62c6
VS
28894
28895ac_ext=cc
247f5006 28896ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28900
af15babd 28901
247f5006
VZ
28902
28903for ac_func in vsnprintf
28904do
e6cc62c6
VS
28905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28906echo "$as_me:$LINENO: checking for $ac_func" >&5
28907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28908if eval "test \"\${$as_ac_var+set}\" = set"; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910else
28911 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
32ddf007
VS
28917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28919#define $ac_func innocuous_$ac_func
28920
247f5006 28921/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28922 which can conflict with char $ac_func (); below.
28923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28924 <limits.h> exists even on freestanding compilers. */
32ddf007 28925
e6cc62c6
VS
28926#ifdef __STDC__
28927# include <limits.h>
28928#else
28929# include <assert.h>
28930#endif
32ddf007
VS
28931
28932#undef $ac_func
28933
247f5006
VZ
28934/* Override any gcc2 internal prototype to avoid an error. */
28935#ifdef __cplusplus
28936extern "C"
e6cc62c6 28937{
247f5006
VZ
28938#endif
28939/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28940 builtin and then its argument prototype would still apply. */
28941char $ac_func ();
247f5006
VZ
28942/* The GNU C library defines this for functions which it implements
28943 to always fail with ENOSYS. Some functions are actually named
28944 something starting with __ and the normal name is an alias. */
28945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28946choke me
28947#else
e6cc62c6
VS
28948char (*f) () = $ac_func;
28949#endif
28950#ifdef __cplusplus
28951}
247f5006 28952#endif
af15babd 28953
e6cc62c6
VS
28954int
28955main ()
28956{
28957return f != $ac_func;
28958 ;
28959 return 0;
28960}
28961_ACEOF
28962rm -f conftest.$ac_objext conftest$ac_exeext
28963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28964 (eval $ac_link) 2>conftest.er1
e6cc62c6 28965 ac_status=$?
32ddf007
VS
28966 grep -v '^ *+' conftest.er1 >conftest.err
28967 rm -f conftest.er1
28968 cat conftest.err >&5
e6cc62c6
VS
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); } &&
e1293dcf 28971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973 (eval $ac_try) 2>&5
28974 ac_status=$?
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; } &&
28977 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979 (eval $ac_try) 2>&5
28980 ac_status=$?
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); }; }; then
28983 eval "$as_ac_var=yes"
28984else
28985 echo "$as_me: failed program was:" >&5
28986sed 's/^/| /' conftest.$ac_ext >&5
28987
28988eval "$as_ac_var=no"
28989fi
32ddf007
VS
28990rm -f conftest.err conftest.$ac_objext \
28991 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28992fi
28993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28995if test `eval echo '${'$as_ac_var'}'` = yes; then
28996 cat >>confdefs.h <<_ACEOF
28997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28998_ACEOF
52127426 28999
5c6fa7d2 29000fi
247f5006 29001done
8284b0c5 29002
4f14bcd8 29003
8d90d2f2 29004if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
29005 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29006echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29007if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 29009else
e6cc62c6
VS
29010
29011 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29012/* confdefs.h. */
29013_ACEOF
29014cat confdefs.h >>conftest.$ac_ext
29015cat >>conftest.$ac_ext <<_ACEOF
29016/* end confdefs.h. */
8d90d2f2
VZ
29017
29018 #include <stdio.h>
29019 #include <stdarg.h>
e6cc62c6
VS
29020
29021int
29022main ()
29023{
8d90d2f2
VZ
29024
29025 char *buf;
29026 va_list ap;
29027 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
29028
29029 ;
29030 return 0;
29031}
29032_ACEOF
29033rm -f conftest.$ac_objext
29034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29035 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29036 ac_status=$?
32ddf007
VS
29037 grep -v '^ *+' conftest.er1 >conftest.err
29038 rm -f conftest.er1
29039 cat conftest.err >&5
e6cc62c6
VS
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } &&
e1293dcf 29042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29044 (eval $ac_try) 2>&5
29045 ac_status=$?
29046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); }; } &&
29048 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29050 (eval $ac_try) 2>&5
29051 ac_status=$?
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; }; then
8d90d2f2
VZ
29054 wx_cv_func_vsnprintf_decl=yes
29055else
e6cc62c6
VS
29056 echo "$as_me: failed program was:" >&5
29057sed 's/^/| /' conftest.$ac_ext >&5
29058
29059wx_cv_func_vsnprintf_decl=no
29060
8d90d2f2 29061fi
32ddf007 29062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 29063
8d90d2f2 29064
e6cc62c6
VS
29065fi
29066echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29067echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
29068
29069 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 29070 cat >>confdefs.h <<\_ACEOF
8d90d2f2 29071#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 29072_ACEOF
8d90d2f2
VZ
29073
29074 fi
29075fi
29076
247f5006 29077if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
29078
29079
29080
29081for ac_func in fputwc wprintf vswprintf
d74f4b5a 29082do
e6cc62c6
VS
29083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29084echo "$as_me:$LINENO: checking for $ac_func" >&5
29085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29086if eval "test \"\${$as_ac_var+set}\" = set"; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29088else
29089 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29090/* confdefs.h. */
29091_ACEOF
29092cat confdefs.h >>conftest.$ac_ext
29093cat >>conftest.$ac_ext <<_ACEOF
29094/* end confdefs.h. */
32ddf007
VS
29095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29097#define $ac_func innocuous_$ac_func
29098
d74f4b5a 29099/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29100 which can conflict with char $ac_func (); below.
29101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29102 <limits.h> exists even on freestanding compilers. */
32ddf007 29103
e6cc62c6
VS
29104#ifdef __STDC__
29105# include <limits.h>
29106#else
29107# include <assert.h>
29108#endif
32ddf007
VS
29109
29110#undef $ac_func
29111
d74f4b5a 29112/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
29113#ifdef __cplusplus
29114extern "C"
e6cc62c6 29115{
247f5006 29116#endif
d74f4b5a 29117/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29118 builtin and then its argument prototype would still apply. */
29119char $ac_func ();
d74f4b5a
VZ
29120/* The GNU C library defines this for functions which it implements
29121 to always fail with ENOSYS. Some functions are actually named
29122 something starting with __ and the normal name is an alias. */
29123#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29124choke me
29125#else
e6cc62c6
VS
29126char (*f) () = $ac_func;
29127#endif
29128#ifdef __cplusplus
29129}
d74f4b5a
VZ
29130#endif
29131
e6cc62c6
VS
29132int
29133main ()
29134{
29135return f != $ac_func;
29136 ;
29137 return 0;
29138}
29139_ACEOF
29140rm -f conftest.$ac_objext conftest$ac_exeext
29141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29142 (eval $ac_link) 2>conftest.er1
e6cc62c6 29143 ac_status=$?
32ddf007
VS
29144 grep -v '^ *+' conftest.er1 >conftest.err
29145 rm -f conftest.er1
29146 cat conftest.err >&5
e6cc62c6
VS
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } &&
e1293dcf 29149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151 (eval $ac_try) 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; } &&
29155 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157 (eval $ac_try) 2>&5
29158 ac_status=$?
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); }; }; then
29161 eval "$as_ac_var=yes"
29162else
29163 echo "$as_me: failed program was:" >&5
29164sed 's/^/| /' conftest.$ac_ext >&5
29165
29166eval "$as_ac_var=no"
29167fi
32ddf007
VS
29168rm -f conftest.err conftest.$ac_objext \
29169 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29170fi
29171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29173if test `eval echo '${'$as_ac_var'}'` = yes; then
29174 cat >>confdefs.h <<_ACEOF
29175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29176_ACEOF
d74f4b5a 29177
d74f4b5a
VZ
29178fi
29179done
29180
8d90d2f2 29181
e6cc62c6
VS
29182 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29183echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29184 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29185/* confdefs.h. */
29186_ACEOF
29187cat confdefs.h >>conftest.$ac_ext
29188cat >>conftest.$ac_ext <<_ACEOF
29189/* end confdefs.h. */
79668cae 29190#include <wchar.h>
e6cc62c6
VS
29191int
29192main ()
29193{
79668cae 29194&_vsnwprintf;
e6cc62c6
VS
29195 ;
29196 return 0;
29197}
29198_ACEOF
29199rm -f conftest.$ac_objext
29200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29201 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29202 ac_status=$?
32ddf007
VS
29203 grep -v '^ *+' conftest.er1 >conftest.err
29204 rm -f conftest.er1
29205 cat conftest.err >&5
e6cc62c6
VS
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } &&
e1293dcf 29208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 echo "$as_me:$LINENO: result: yes" >&5
29221echo "${ECHO_T}yes" >&6
29222 cat >>confdefs.h <<\_ACEOF
79668cae 29223#define HAVE__VSNWPRINTF 1
e6cc62c6 29224_ACEOF
79668cae
MB
29225
29226else
e6cc62c6
VS
29227 echo "$as_me: failed program was:" >&5
29228sed 's/^/| /' conftest.$ac_ext >&5
29229
29230echo "$as_me:$LINENO: result: no" >&5
29231echo "${ECHO_T}no" >&6
79668cae 29232fi
32ddf007 29233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
29234fi
29235
247f5006
VZ
29236ac_ext=c
29237ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29240ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
29241
29242
29243
29244
4f14bcd8 29245if test "$TOOLKIT" != "MSW"; then
af15babd 29246
8284b0c5
MB
29247
29248
e6cc62c6
VS
29249
29250ac_ext=cc
4f14bcd8 29251ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 29255
52127426 29256
e6cc62c6
VS
29257
29258
29259# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
29260if test "${with_libiconv_prefix+set}" = set; then
29261 withval="$with_libiconv_prefix"
e6cc62c6 29262
b040e242
VS
29263 for dir in `echo "$withval" | tr : ' '`; do
29264 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29265 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29266 done
b040e242 29267
e6cc62c6 29268fi;
b040e242 29269
e6cc62c6
VS
29270 echo "$as_me:$LINENO: checking for iconv" >&5
29271echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29272if test "${am_cv_func_iconv+set}" = set; then
29273 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29274else
e6cc62c6 29275
b040e242
VS
29276 am_cv_func_iconv="no, consider installing GNU libiconv"
29277 am_cv_lib_iconv=no
e6cc62c6 29278 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29279/* confdefs.h. */
29280_ACEOF
29281cat confdefs.h >>conftest.$ac_ext
29282cat >>conftest.$ac_ext <<_ACEOF
29283/* end confdefs.h. */
b040e242 29284#include <stdlib.h>
4f14bcd8 29285#include <iconv.h>
e6cc62c6
VS
29286int
29287main ()
29288{
b040e242
VS
29289iconv_t cd = iconv_open("","");
29290 iconv(cd,NULL,NULL,NULL,NULL);
29291 iconv_close(cd);
e6cc62c6
VS
29292 ;
29293 return 0;
29294}
29295_ACEOF
29296rm -f conftest.$ac_objext conftest$ac_exeext
29297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29298 (eval $ac_link) 2>conftest.er1
e6cc62c6 29299 ac_status=$?
32ddf007
VS
29300 grep -v '^ *+' conftest.er1 >conftest.err
29301 rm -f conftest.er1
29302 cat conftest.err >&5
e6cc62c6
VS
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); } &&
e1293dcf 29305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29308 ac_status=$?
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; } &&
29311 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29314 ac_status=$?
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; }; then
b040e242 29317 am_cv_func_iconv=yes
af15babd 29318else
e6cc62c6
VS
29319 echo "$as_me: failed program was:" >&5
29320sed 's/^/| /' conftest.$ac_ext >&5
29321
b040e242 29322fi
32ddf007
VS
29323rm -f conftest.err conftest.$ac_objext \
29324 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29325 if test "$am_cv_func_iconv" != yes; then
29326 am_save_LIBS="$LIBS"
29327 LIBS="$LIBS -liconv"
e6cc62c6 29328 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29329/* confdefs.h. */
29330_ACEOF
29331cat confdefs.h >>conftest.$ac_ext
29332cat >>conftest.$ac_ext <<_ACEOF
29333/* end confdefs.h. */
b040e242
VS
29334#include <stdlib.h>
29335#include <iconv.h>
e6cc62c6
VS
29336int
29337main ()
29338{
b040e242
VS
29339iconv_t cd = iconv_open("","");
29340 iconv(cd,NULL,NULL,NULL,NULL);
29341 iconv_close(cd);
e6cc62c6
VS
29342 ;
29343 return 0;
29344}
29345_ACEOF
29346rm -f conftest.$ac_objext conftest$ac_exeext
29347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29348 (eval $ac_link) 2>conftest.er1
e6cc62c6 29349 ac_status=$?
32ddf007
VS
29350 grep -v '^ *+' conftest.er1 >conftest.err
29351 rm -f conftest.er1
29352 cat conftest.err >&5
e6cc62c6
VS
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
e1293dcf 29355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29357 (eval $ac_try) 2>&5
29358 ac_status=$?
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; } &&
29361 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29363 (eval $ac_try) 2>&5
29364 ac_status=$?
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); }; }; then
b040e242
VS
29367 am_cv_lib_iconv=yes
29368 am_cv_func_iconv=yes
29369else
e6cc62c6
VS
29370 echo "$as_me: failed program was:" >&5
29371sed 's/^/| /' conftest.$ac_ext >&5
29372
af15babd 29373fi
32ddf007
VS
29374rm -f conftest.err conftest.$ac_objext \
29375 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29376 LIBS="$am_save_LIBS"
29377 fi
247f5006 29378
e6cc62c6
VS
29379fi
29380echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29381echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 29382 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
29383
29384cat >>confdefs.h <<\_ACEOF
b040e242 29385#define HAVE_ICONV 1
e6cc62c6 29386_ACEOF
b040e242 29387
e6cc62c6
VS
29388 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29389echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29390if test "${wx_cv_func_iconv_const+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 29392else
e6cc62c6 29393 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29394/* confdefs.h. */
29395_ACEOF
29396cat confdefs.h >>conftest.$ac_ext
29397cat >>conftest.$ac_ext <<_ACEOF
29398/* end confdefs.h. */
b040e242
VS
29399
29400#include <stdlib.h>
29401#include <iconv.h>
29402extern
29403#ifdef __cplusplus
29404"C"
29405#endif
29406#if defined(__STDC__) || defined(__cplusplus)
29407size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29408#else
29409size_t iconv();
29410#endif
af15babd 29411
e6cc62c6
VS
29412int
29413main ()
29414{
29415
29416 ;
29417 return 0;
29418}
29419_ACEOF
29420rm -f conftest.$ac_objext
29421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29422 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29423 ac_status=$?
32ddf007
VS
29424 grep -v '^ *+' conftest.er1 >conftest.err
29425 rm -f conftest.er1
29426 cat conftest.err >&5
e6cc62c6
VS
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } &&
e1293dcf 29429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431 (eval $ac_try) 2>&5
29432 ac_status=$?
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; } &&
29435 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29437 (eval $ac_try) 2>&5
29438 ac_status=$?
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); }; }; then
b7043674 29441 wx_cv_func_iconv_const="no"
b040e242 29442else
e6cc62c6
VS
29443 echo "$as_me: failed program was:" >&5
29444sed 's/^/| /' conftest.$ac_ext >&5
29445
29446wx_cv_func_iconv_const="yes"
29447
247f5006 29448fi
32ddf007 29449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29450
e6cc62c6
VS
29451fi
29452echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29453echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
29454
29455 iconv_const=
1c405bb5 29456 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
29457 iconv_const="const"
29458 fi
29459
e6cc62c6
VS
29460
29461cat >>confdefs.h <<_ACEOF
f09359cf 29462#define ICONV_CONST $iconv_const
e6cc62c6 29463_ACEOF
b040e242
VS
29464
29465 fi
29466 LIBICONV=
29467 if test "$am_cv_lib_iconv" = yes; then
29468 LIBICONV="-liconv"
29469 fi
e6cc62c6 29470
b040e242
VS
29471
29472LIBS="$LIBICONV $LIBS"
4f14bcd8 29473ac_ext=c
4f14bcd8 29474ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29477ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 29478
5c6fa7d2 29479
8284b0c5 29480if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
29481
29482for ac_func in sigaction
af15babd 29483do
e6cc62c6
VS
29484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29485echo "$as_me:$LINENO: checking for $ac_func" >&5
29486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29487if eval "test \"\${$as_ac_var+set}\" = set"; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29489else
29490 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29491/* confdefs.h. */
29492_ACEOF
29493cat confdefs.h >>conftest.$ac_ext
29494cat >>conftest.$ac_ext <<_ACEOF
29495/* end confdefs.h. */
32ddf007
VS
29496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29498#define $ac_func innocuous_$ac_func
29499
af15babd 29500/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29501 which can conflict with char $ac_func (); below.
29502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29503 <limits.h> exists even on freestanding compilers. */
32ddf007 29504
e6cc62c6
VS
29505#ifdef __STDC__
29506# include <limits.h>
29507#else
29508# include <assert.h>
29509#endif
32ddf007
VS
29510
29511#undef $ac_func
29512
af15babd 29513/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29514#ifdef __cplusplus
29515extern "C"
29516{
29517#endif
af15babd 29518/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29519 builtin and then its argument prototype would still apply. */
29520char $ac_func ();
af15babd
VZ
29521/* The GNU C library defines this for functions which it implements
29522 to always fail with ENOSYS. Some functions are actually named
29523 something starting with __ and the normal name is an alias. */
29524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29525choke me
29526#else
e6cc62c6
VS
29527char (*f) () = $ac_func;
29528#endif
29529#ifdef __cplusplus
29530}
af15babd
VZ
29531#endif
29532
e6cc62c6
VS
29533int
29534main ()
29535{
29536return f != $ac_func;
29537 ;
29538 return 0;
29539}
29540_ACEOF
29541rm -f conftest.$ac_objext conftest$ac_exeext
29542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29543 (eval $ac_link) 2>conftest.er1
e6cc62c6 29544 ac_status=$?
32ddf007
VS
29545 grep -v '^ *+' conftest.er1 >conftest.err
29546 rm -f conftest.er1
29547 cat conftest.err >&5
e6cc62c6
VS
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } &&
e1293dcf 29550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29559 ac_status=$?
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; }; then
29562 eval "$as_ac_var=yes"
29563else
29564 echo "$as_me: failed program was:" >&5
29565sed 's/^/| /' conftest.$ac_ext >&5
29566
29567eval "$as_ac_var=no"
29568fi
32ddf007
VS
29569rm -f conftest.err conftest.$ac_objext \
29570 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29571fi
29572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29574if test `eval echo '${'$as_ac_var'}'` = yes; then
29575 cat >>confdefs.h <<_ACEOF
29576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29577_ACEOF
7b4a847f 29578
4f14bcd8
GD
29579fi
29580done
29581
8284b0c5 29582
4f14bcd8 29583 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29584 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29585echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29586 wxUSE_ON_FATAL_EXCEPTION=no
29587 fi
29588
29589 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29590
29591
29592 ac_ext=cc
5c6fa7d2 29593ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29597
5c6fa7d2 29598
e6cc62c6
VS
29599 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29600echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29601if test "${wx_cv_type_sa_handler+set}" = set; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29603else
e6cc62c6
VS
29604
29605 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29606/* confdefs.h. */
29607_ACEOF
29608cat confdefs.h >>conftest.$ac_ext
29609cat >>conftest.$ac_ext <<_ACEOF
29610/* end confdefs.h. */
4f14bcd8 29611#include <signal.h>
e6cc62c6
VS
29612int
29613main ()
29614{
4f14bcd8
GD
29615
29616 extern void testSigHandler(int);
29617
29618 struct sigaction sa;
29619 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29620
29621 ;
29622 return 0;
29623}
29624_ACEOF
29625rm -f conftest.$ac_objext
29626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29627 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29628 ac_status=$?
32ddf007
VS
29629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
e6cc62c6
VS
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
e1293dcf 29634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29636 (eval $ac_try) 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; } &&
29640 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642 (eval $ac_try) 2>&5
29643 ac_status=$?
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
29646
4f14bcd8 29647 wx_cv_type_sa_handler=int
e6cc62c6 29648
af15babd 29649else
e6cc62c6
VS
29650 echo "$as_me: failed program was:" >&5
29651sed 's/^/| /' conftest.$ac_ext >&5
29652
29653
4f14bcd8 29654 wx_cv_type_sa_handler=void
e6cc62c6 29655
247f5006 29656fi
32ddf007 29657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29658
e6cc62c6
VS
29659fi
29660echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29661echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29662
29663 ac_ext=c
4f14bcd8 29664ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29667ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29668
8284b0c5 29669
e6cc62c6 29670 cat >>confdefs.h <<_ACEOF
4f14bcd8 29671#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29672_ACEOF
af15babd 29673
4f14bcd8
GD
29674 fi
29675fi
af15babd 29676
e6cc62c6
VS
29677
29678
a1d22ad7 29679for ac_func in mkstemp mktemp
af15babd 29680do
e6cc62c6
VS
29681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29682echo "$as_me:$LINENO: checking for $ac_func" >&5
29683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29684if eval "test \"\${$as_ac_var+set}\" = set"; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29686else
29687 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29688/* confdefs.h. */
29689_ACEOF
29690cat confdefs.h >>conftest.$ac_ext
29691cat >>conftest.$ac_ext <<_ACEOF
29692/* end confdefs.h. */
32ddf007
VS
29693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29695#define $ac_func innocuous_$ac_func
29696
af15babd 29697/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29698 which can conflict with char $ac_func (); below.
29699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29700 <limits.h> exists even on freestanding compilers. */
32ddf007 29701
e6cc62c6
VS
29702#ifdef __STDC__
29703# include <limits.h>
29704#else
29705# include <assert.h>
29706#endif
32ddf007
VS
29707
29708#undef $ac_func
29709
af15babd 29710/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29711#ifdef __cplusplus
29712extern "C"
29713{
29714#endif
af15babd 29715/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29716 builtin and then its argument prototype would still apply. */
29717char $ac_func ();
af15babd
VZ
29718/* The GNU C library defines this for functions which it implements
29719 to always fail with ENOSYS. Some functions are actually named
29720 something starting with __ and the normal name is an alias. */
29721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29722choke me
29723#else
e6cc62c6
VS
29724char (*f) () = $ac_func;
29725#endif
29726#ifdef __cplusplus
29727}
af15babd
VZ
29728#endif
29729
e6cc62c6
VS
29730int
29731main ()
29732{
29733return f != $ac_func;
29734 ;
29735 return 0;
29736}
29737_ACEOF
29738rm -f conftest.$ac_objext conftest$ac_exeext
29739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29740 (eval $ac_link) 2>conftest.er1
e6cc62c6 29741 ac_status=$?
32ddf007
VS
29742 grep -v '^ *+' conftest.er1 >conftest.err
29743 rm -f conftest.er1
29744 cat conftest.err >&5
e6cc62c6
VS
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); } &&
e1293dcf 29747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749 (eval $ac_try) 2>&5
29750 ac_status=$?
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); }; } &&
29753 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755 (eval $ac_try) 2>&5
29756 ac_status=$?
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); }; }; then
29759 eval "$as_ac_var=yes"
29760else
29761 echo "$as_me: failed program was:" >&5
29762sed 's/^/| /' conftest.$ac_ext >&5
29763
29764eval "$as_ac_var=no"
29765fi
32ddf007
VS
29766rm -f conftest.err conftest.$ac_objext \
29767 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29768fi
29769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29771if test `eval echo '${'$as_ac_var'}'` = yes; then
29772 cat >>confdefs.h <<_ACEOF
29773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29774_ACEOF
ade35f11 29775 break
ade35f11
VZ
29776fi
29777done
29778
8284b0c5 29779
e6cc62c6
VS
29780echo "$as_me:$LINENO: checking for statfs" >&5
29781echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29782if test "${wx_cv_func_statfs+set}" = set; then
29783 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29784else
e6cc62c6 29785 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29786/* confdefs.h. */
29787_ACEOF
29788cat confdefs.h >>conftest.$ac_ext
29789cat >>conftest.$ac_ext <<_ACEOF
29790/* end confdefs.h. */
4f14bcd8
GD
29791
29792 #if defined(__BSD__)
29793 #include <sys/param.h>
29794 #include <sys/mount.h>
29795 #else
29796 #include <sys/vfs.h>
29797 #endif
e6cc62c6
VS
29798
29799int
29800main ()
29801{
4f14bcd8
GD
29802
29803 long l;
29804 struct statfs fs;
29805 statfs("/", &fs);
29806 l = fs.f_bsize;
29807 l += fs.f_blocks;
29808 l += fs.f_bavail;
e6cc62c6
VS
29809
29810 ;
29811 return 0;
29812}
29813_ACEOF
29814rm -f conftest.$ac_objext
29815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29816 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29817 ac_status=$?
32ddf007
VS
29818 grep -v '^ *+' conftest.er1 >conftest.err
29819 rm -f conftest.er1
29820 cat conftest.err >&5
e6cc62c6
VS
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } &&
e1293dcf 29823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29825 (eval $ac_try) 2>&5
29826 ac_status=$?
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; } &&
29829 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831 (eval $ac_try) 2>&5
29832 ac_status=$?
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; }; then
29835
4f14bcd8 29836 wx_cv_func_statfs=yes
e6cc62c6 29837
4f14bcd8 29838else
e6cc62c6
VS
29839 echo "$as_me: failed program was:" >&5
29840sed 's/^/| /' conftest.$ac_ext >&5
29841
29842
4f14bcd8 29843 wx_cv_func_statfs=no
e6cc62c6 29844
8284b0c5 29845
247f5006 29846fi
32ddf007 29847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29848
e6cc62c6
VS
29849fi
29850echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29851echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29852
29853if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29854 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29855 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29856#define HAVE_STATFS 1
e6cc62c6 29857_ACEOF
4f14bcd8
GD
29858
29859else
e6cc62c6
VS
29860 echo "$as_me:$LINENO: checking for statvfs" >&5
29861echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29862if test "${wx_cv_func_statvfs+set}" = set; then
29863 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29864else
e6cc62c6 29865 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29866/* confdefs.h. */
29867_ACEOF
29868cat confdefs.h >>conftest.$ac_ext
29869cat >>conftest.$ac_ext <<_ACEOF
29870/* end confdefs.h. */
af15babd 29871
54ab82b3
VZ
29872 #include <stddef.h>
29873 #include <sys/statvfs.h>
e6cc62c6
VS
29874
29875int
29876main ()
29877{
af15babd 29878
54ab82b3 29879 statvfs("/", NULL);
e6cc62c6
VS
29880
29881 ;
29882 return 0;
29883}
29884_ACEOF
29885rm -f conftest.$ac_objext
29886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29887 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29888 ac_status=$?
32ddf007
VS
29889 grep -v '^ *+' conftest.er1 >conftest.err
29890 rm -f conftest.er1
29891 cat conftest.err >&5
e6cc62c6
VS
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); } &&
e1293dcf 29894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896 (eval $ac_try) 2>&5
29897 ac_status=$?
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); }; } &&
29900 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29902 (eval $ac_try) 2>&5
29903 ac_status=$?
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; }; then
54ab82b3 29906 wx_cv_func_statvfs=yes
af15babd 29907else
e6cc62c6
VS
29908 echo "$as_me: failed program was:" >&5
29909sed 's/^/| /' conftest.$ac_ext >&5
29910
29911wx_cv_func_statvfs=no
29912
247f5006 29913fi
32ddf007 29914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29915
e6cc62c6
VS
29916fi
29917echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29918echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29919
4f14bcd8 29920 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29921
29922
29923 ac_ext=cc
54ab82b3 29924ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29928
29929
e6cc62c6
VS
29930 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29931echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29932if test "${wx_cv_type_statvfs_t+set}" = set; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 29934else
e6cc62c6 29935 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29936/* confdefs.h. */
29937_ACEOF
29938cat confdefs.h >>conftest.$ac_ext
29939cat >>conftest.$ac_ext <<_ACEOF
29940/* end confdefs.h. */
54ab82b3
VZ
29941
29942 #include <sys/statvfs.h>
e6cc62c6
VS
29943
29944int
29945main ()
29946{
54ab82b3
VZ
29947
29948 long l;
29949 statvfs_t fs;
29950 statvfs("/", &fs);
29951 l = fs.f_bsize;
29952 l += fs.f_blocks;
29953 l += fs.f_bavail;
e6cc62c6
VS
29954
29955 ;
29956 return 0;
29957}
29958_ACEOF
29959rm -f conftest.$ac_objext
29960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29961 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29962 ac_status=$?
32ddf007
VS
29963 grep -v '^ *+' conftest.er1 >conftest.err
29964 rm -f conftest.er1
29965 cat conftest.err >&5
e6cc62c6
VS
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } &&
e1293dcf 29968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29970 (eval $ac_try) 2>&5
29971 ac_status=$?
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; } &&
29974 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29976 (eval $ac_try) 2>&5
29977 ac_status=$?
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); }; }; then
54ab82b3
VZ
29980 wx_cv_type_statvfs_t=statvfs_t
29981else
e6cc62c6
VS
29982 echo "$as_me: failed program was:" >&5
29983sed 's/^/| /' conftest.$ac_ext >&5
29984
29985
29986 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29987/* confdefs.h. */
29988_ACEOF
29989cat confdefs.h >>conftest.$ac_ext
29990cat >>conftest.$ac_ext <<_ACEOF
29991/* end confdefs.h. */
54ab82b3
VZ
29992
29993 #include <sys/statvfs.h>
e6cc62c6
VS
29994
29995int
29996main ()
29997{
54ab82b3
VZ
29998
29999 long l;
65d8ef1e 30000 struct statvfs fs;
54ab82b3
VZ
30001 statvfs("/", &fs);
30002 l = fs.f_bsize;
30003 l += fs.f_blocks;
30004 l += fs.f_bavail;
e6cc62c6
VS
30005
30006 ;
30007 return 0;
30008}
30009_ACEOF
30010rm -f conftest.$ac_objext
30011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 30012 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30013 ac_status=$?
32ddf007
VS
30014 grep -v '^ *+' conftest.er1 >conftest.err
30015 rm -f conftest.er1
30016 cat conftest.err >&5
e6cc62c6
VS
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); } &&
e1293dcf 30019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30021 (eval $ac_try) 2>&5
30022 ac_status=$?
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); }; } &&
30025 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30027 (eval $ac_try) 2>&5
30028 ac_status=$?
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); }; }; then
54ab82b3
VZ
30031 wx_cv_type_statvfs_t="struct statvfs"
30032else
e6cc62c6
VS
30033 echo "$as_me: failed program was:" >&5
30034sed 's/^/| /' conftest.$ac_ext >&5
30035
30036wx_cv_type_statvfs_t="unknown"
30037
54ab82b3 30038fi
32ddf007 30039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30040
30041
54ab82b3 30042fi
32ddf007 30043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 30044
e6cc62c6
VS
30045fi
30046echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30047echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
30048
30049 ac_ext=c
54ab82b3 30050ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30053ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
30054
30055
30056 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30057 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30058#define HAVE_STATVFS 1
e6cc62c6 30059_ACEOF
af15babd 30060
54ab82b3 30061 fi
4f14bcd8 30062 else
54ab82b3 30063 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
30064 fi
30065fi
af15babd 30066
54ab82b3 30067if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30068 cat >>confdefs.h <<_ACEOF
54ab82b3 30069#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 30070_ACEOF
54ab82b3
VZ
30071
30072else
e6cc62c6
VS
30073 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30074echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
30075fi
30076
4f14bcd8 30077if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
30078
30079
30080for ac_func in fcntl flock
af15babd 30081do
e6cc62c6
VS
30082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30083echo "$as_me:$LINENO: checking for $ac_func" >&5
30084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30085if eval "test \"\${$as_ac_var+set}\" = set"; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30087else
30088 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30089/* confdefs.h. */
30090_ACEOF
30091cat confdefs.h >>conftest.$ac_ext
30092cat >>conftest.$ac_ext <<_ACEOF
30093/* end confdefs.h. */
32ddf007
VS
30094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30096#define $ac_func innocuous_$ac_func
30097
af15babd 30098/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30099 which can conflict with char $ac_func (); below.
30100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30101 <limits.h> exists even on freestanding compilers. */
32ddf007 30102
e6cc62c6
VS
30103#ifdef __STDC__
30104# include <limits.h>
30105#else
30106# include <assert.h>
30107#endif
32ddf007
VS
30108
30109#undef $ac_func
30110
af15babd 30111/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30112#ifdef __cplusplus
30113extern "C"
30114{
30115#endif
af15babd 30116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30117 builtin and then its argument prototype would still apply. */
30118char $ac_func ();
af15babd
VZ
30119/* The GNU C library defines this for functions which it implements
30120 to always fail with ENOSYS. Some functions are actually named
30121 something starting with __ and the normal name is an alias. */
30122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30123choke me
30124#else
e6cc62c6
VS
30125char (*f) () = $ac_func;
30126#endif
30127#ifdef __cplusplus
30128}
af15babd
VZ
30129#endif
30130
e6cc62c6
VS
30131int
30132main ()
30133{
30134return f != $ac_func;
30135 ;
30136 return 0;
30137}
30138_ACEOF
30139rm -f conftest.$ac_objext conftest$ac_exeext
30140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30141 (eval $ac_link) 2>conftest.er1
e6cc62c6 30142 ac_status=$?
32ddf007
VS
30143 grep -v '^ *+' conftest.er1 >conftest.err
30144 rm -f conftest.er1
30145 cat conftest.err >&5
e6cc62c6
VS
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
e1293dcf 30148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; } &&
30154 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156 (eval $ac_try) 2>&5
30157 ac_status=$?
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); }; }; then
30160 eval "$as_ac_var=yes"
30161else
30162 echo "$as_me: failed program was:" >&5
30163sed 's/^/| /' conftest.$ac_ext >&5
30164
30165eval "$as_ac_var=no"
30166fi
32ddf007
VS
30167rm -f conftest.err conftest.$ac_objext \
30168 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30169fi
30170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30172if test `eval echo '${'$as_ac_var'}'` = yes; then
30173 cat >>confdefs.h <<_ACEOF
30174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30175_ACEOF
4f14bcd8 30176 break
af15babd
VZ
30177fi
30178done
30179
8284b0c5 30180
4f14bcd8 30181 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
30182 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30183echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
30184 wxUSE_SNGLINST_CHECKER=no
30185 fi
30186fi
af15babd 30187
e6cc62c6 30188
4f14bcd8 30189for ac_func in timegm
af15babd 30190do
e6cc62c6
VS
30191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30192echo "$as_me:$LINENO: checking for $ac_func" >&5
30193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30194if eval "test \"\${$as_ac_var+set}\" = set"; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
30196else
30197 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30198/* confdefs.h. */
30199_ACEOF
30200cat confdefs.h >>conftest.$ac_ext
30201cat >>conftest.$ac_ext <<_ACEOF
30202/* end confdefs.h. */
32ddf007
VS
30203/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30205#define $ac_func innocuous_$ac_func
30206
af15babd 30207/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30208 which can conflict with char $ac_func (); below.
30209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30210 <limits.h> exists even on freestanding compilers. */
32ddf007 30211
e6cc62c6
VS
30212#ifdef __STDC__
30213# include <limits.h>
30214#else
30215# include <assert.h>
30216#endif
32ddf007
VS
30217
30218#undef $ac_func
30219
af15babd 30220/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30221#ifdef __cplusplus
30222extern "C"
30223{
30224#endif
af15babd 30225/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30226 builtin and then its argument prototype would still apply. */
30227char $ac_func ();
af15babd
VZ
30228/* The GNU C library defines this for functions which it implements
30229 to always fail with ENOSYS. Some functions are actually named
30230 something starting with __ and the normal name is an alias. */
247f5006
VZ
30231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30232choke me
30233#else
e6cc62c6
VS
30234char (*f) () = $ac_func;
30235#endif
30236#ifdef __cplusplus
30237}
247f5006
VZ
30238#endif
30239
e6cc62c6
VS
30240int
30241main ()
30242{
30243return f != $ac_func;
30244 ;
30245 return 0;
30246}
30247_ACEOF
30248rm -f conftest.$ac_objext conftest$ac_exeext
30249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30250 (eval $ac_link) 2>conftest.er1
e6cc62c6 30251 ac_status=$?
32ddf007
VS
30252 grep -v '^ *+' conftest.er1 >conftest.err
30253 rm -f conftest.er1
30254 cat conftest.err >&5
e6cc62c6
VS
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } &&
e1293dcf 30257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30260 ac_status=$?
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; } &&
30263 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30265 (eval $ac_try) 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; }; then
30269 eval "$as_ac_var=yes"
30270else
30271 echo "$as_me: failed program was:" >&5
30272sed 's/^/| /' conftest.$ac_ext >&5
30273
30274eval "$as_ac_var=no"
30275fi
32ddf007
VS
30276rm -f conftest.err conftest.$ac_objext \
30277 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30278fi
30279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30281if test `eval echo '${'$as_ac_var'}'` = yes; then
30282 cat >>confdefs.h <<_ACEOF
30283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30284_ACEOF
703e0a69 30285
af15babd
VZ
30286fi
30287done
30288
8284b0c5 30289
e6cc62c6
VS
30290
30291
4f14bcd8 30292for ac_func in putenv setenv
10f2d63a 30293do
e6cc62c6
VS
30294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30295echo "$as_me:$LINENO: checking for $ac_func" >&5
30296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30297if eval "test \"\${$as_ac_var+set}\" = set"; then
30298 echo $ECHO_N "(cached) $ECHO_C" >&6
30299else
30300 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30301/* confdefs.h. */
30302_ACEOF
30303cat confdefs.h >>conftest.$ac_ext
30304cat >>conftest.$ac_ext <<_ACEOF
30305/* end confdefs.h. */
32ddf007
VS
30306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30308#define $ac_func innocuous_$ac_func
30309
af15babd 30310/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30311 which can conflict with char $ac_func (); below.
30312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30313 <limits.h> exists even on freestanding compilers. */
32ddf007 30314
e6cc62c6
VS
30315#ifdef __STDC__
30316# include <limits.h>
30317#else
30318# include <assert.h>
30319#endif
32ddf007
VS
30320
30321#undef $ac_func
30322
af15babd 30323/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30324#ifdef __cplusplus
30325extern "C"
30326{
30327#endif
af15babd 30328/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30329 builtin and then its argument prototype would still apply. */
30330char $ac_func ();
af15babd
VZ
30331/* The GNU C library defines this for functions which it implements
30332 to always fail with ENOSYS. Some functions are actually named
30333 something starting with __ and the normal name is an alias. */
30334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30335choke me
30336#else
e6cc62c6
VS
30337char (*f) () = $ac_func;
30338#endif
30339#ifdef __cplusplus
30340}
af15babd
VZ
30341#endif
30342
e6cc62c6
VS
30343int
30344main ()
30345{
30346return f != $ac_func;
30347 ;
30348 return 0;
30349}
30350_ACEOF
30351rm -f conftest.$ac_objext conftest$ac_exeext
30352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30353 (eval $ac_link) 2>conftest.er1
e6cc62c6 30354 ac_status=$?
32ddf007
VS
30355 grep -v '^ *+' conftest.er1 >conftest.err
30356 rm -f conftest.er1
30357 cat conftest.err >&5
e6cc62c6
VS
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } &&
e1293dcf 30360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30362 (eval $ac_try) 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; } &&
30366 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 eval "$as_ac_var=yes"
30373else
30374 echo "$as_me: failed program was:" >&5
30375sed 's/^/| /' conftest.$ac_ext >&5
30376
30377eval "$as_ac_var=no"
30378fi
32ddf007
VS
30379rm -f conftest.err conftest.$ac_objext \
30380 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30381fi
30382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30384if test `eval echo '${'$as_ac_var'}'` = yes; then
30385 cat >>confdefs.h <<_ACEOF
30386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30387_ACEOF
4f14bcd8 30388 break
af15babd 30389fi
af15babd
VZ
30390done
30391
8284b0c5 30392
4f14bcd8
GD
30393HAVE_SOME_SLEEP_FUNC=0
30394if test "$USE_BEOS" = 1; then
e6cc62c6 30395 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30396#define HAVE_SLEEP 1
e6cc62c6 30397_ACEOF
af15babd 30398
4f14bcd8 30399 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30400fi
30401
4f14bcd8 30402if test "$USE_DARWIN" = 1; then
e6cc62c6 30403 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30404#define HAVE_USLEEP 1
e6cc62c6 30405_ACEOF
10f2d63a 30406
4f14bcd8 30407 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30408fi
30409
4f14bcd8
GD
30410if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30411 POSIX4_LINK=
e6cc62c6
VS
30412
30413for ac_func in nanosleep
4f14bcd8 30414do
e6cc62c6
VS
30415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30416echo "$as_me:$LINENO: checking for $ac_func" >&5
30417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30418if eval "test \"\${$as_ac_var+set}\" = set"; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30420else
30421 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30422/* confdefs.h. */
30423_ACEOF
30424cat confdefs.h >>conftest.$ac_ext
30425cat >>conftest.$ac_ext <<_ACEOF
30426/* end confdefs.h. */
32ddf007
VS
30427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30429#define $ac_func innocuous_$ac_func
30430
4f14bcd8 30431/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30432 which can conflict with char $ac_func (); below.
30433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30434 <limits.h> exists even on freestanding compilers. */
32ddf007 30435
e6cc62c6
VS
30436#ifdef __STDC__
30437# include <limits.h>
30438#else
30439# include <assert.h>
30440#endif
32ddf007
VS
30441
30442#undef $ac_func
30443
10f2d63a 30444/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30445#ifdef __cplusplus
30446extern "C"
30447{
30448#endif
10f2d63a 30449/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30450 builtin and then its argument prototype would still apply. */
30451char $ac_func ();
4f14bcd8
GD
30452/* The GNU C library defines this for functions which it implements
30453 to always fail with ENOSYS. Some functions are actually named
30454 something starting with __ and the normal name is an alias. */
30455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30456choke me
30457#else
e6cc62c6
VS
30458char (*f) () = $ac_func;
30459#endif
30460#ifdef __cplusplus
30461}
4f14bcd8
GD
30462#endif
30463
e6cc62c6
VS
30464int
30465main ()
30466{
30467return f != $ac_func;
30468 ;
30469 return 0;
30470}
30471_ACEOF
30472rm -f conftest.$ac_objext conftest$ac_exeext
30473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30474 (eval $ac_link) 2>conftest.er1
e6cc62c6 30475 ac_status=$?
32ddf007
VS
30476 grep -v '^ *+' conftest.er1 >conftest.err
30477 rm -f conftest.er1
30478 cat conftest.err >&5
e6cc62c6
VS
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } &&
e1293dcf 30481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30483 (eval $ac_try) 2>&5
30484 ac_status=$?
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); }; } &&
30487 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30490 ac_status=$?
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; }; then
30493 eval "$as_ac_var=yes"
30494else
30495 echo "$as_me: failed program was:" >&5
30496sed 's/^/| /' conftest.$ac_ext >&5
30497
30498eval "$as_ac_var=no"
30499fi
32ddf007
VS
30500rm -f conftest.err conftest.$ac_objext \
30501 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30502fi
30503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30505if test `eval echo '${'$as_ac_var'}'` = yes; then
30506 cat >>confdefs.h <<_ACEOF
30507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30508_ACEOF
30509 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30510#define HAVE_NANOSLEEP 1
e6cc62c6 30511_ACEOF
4f14bcd8 30512
10f2d63a 30513else
e6cc62c6
VS
30514
30515 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30516echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30517if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30518 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30519else
e6cc62c6 30520 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30521LIBS="-lposix4 $LIBS"
e6cc62c6 30522cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30523/* confdefs.h. */
30524_ACEOF
30525cat confdefs.h >>conftest.$ac_ext
30526cat >>conftest.$ac_ext <<_ACEOF
30527/* end confdefs.h. */
30528
10f2d63a 30529/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30530#ifdef __cplusplus
30531extern "C"
30532#endif
10f2d63a 30533/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30534 builtin and then its argument prototype would still apply. */
30535char nanosleep ();
30536int
30537main ()
30538{
30539nanosleep ();
30540 ;
30541 return 0;
30542}
30543_ACEOF
30544rm -f conftest.$ac_objext conftest$ac_exeext
30545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30546 (eval $ac_link) 2>conftest.er1
e6cc62c6 30547 ac_status=$?
32ddf007
VS
30548 grep -v '^ *+' conftest.er1 >conftest.err
30549 rm -f conftest.er1
30550 cat conftest.err >&5
e6cc62c6
VS
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } &&
e1293dcf 30553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30555 (eval $ac_try) 2>&5
30556 ac_status=$?
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; } &&
30559 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561 (eval $ac_try) 2>&5
30562 ac_status=$?
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); }; }; then
30565 ac_cv_lib_posix4_nanosleep=yes
30566else
30567 echo "$as_me: failed program was:" >&5
30568sed 's/^/| /' conftest.$ac_ext >&5
30569
30570ac_cv_lib_posix4_nanosleep=no
30571fi
32ddf007
VS
30572rm -f conftest.err conftest.$ac_objext \
30573 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30574LIBS=$ac_check_lib_save_LIBS
30575fi
30576echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30577echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30578if test $ac_cv_lib_posix4_nanosleep = yes; then
30579
30580 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30581#define HAVE_NANOSLEEP 1
e6cc62c6 30582_ACEOF
4f14bcd8 30583
3d63bc3a 30584 POSIX4_LINK=" -lposix4"
e6cc62c6 30585
10f2d63a 30586else
10f2d63a 30587
e6cc62c6
VS
30588
30589for ac_func in usleep
4f14bcd8 30590do
e6cc62c6
VS
30591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30592echo "$as_me:$LINENO: checking for $ac_func" >&5
30593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30594if eval "test \"\${$as_ac_var+set}\" = set"; then
30595 echo $ECHO_N "(cached) $ECHO_C" >&6
30596else
30597 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30598/* confdefs.h. */
30599_ACEOF
30600cat confdefs.h >>conftest.$ac_ext
30601cat >>conftest.$ac_ext <<_ACEOF
30602/* end confdefs.h. */
32ddf007
VS
30603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30605#define $ac_func innocuous_$ac_func
30606
4f14bcd8 30607/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30608 which can conflict with char $ac_func (); below.
30609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30610 <limits.h> exists even on freestanding compilers. */
32ddf007 30611
e6cc62c6
VS
30612#ifdef __STDC__
30613# include <limits.h>
30614#else
30615# include <assert.h>
30616#endif
32ddf007
VS
30617
30618#undef $ac_func
30619
4f14bcd8 30620/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30621#ifdef __cplusplus
30622extern "C"
30623{
30624#endif
4f14bcd8 30625/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30626 builtin and then its argument prototype would still apply. */
30627char $ac_func ();
4f14bcd8
GD
30628/* The GNU C library defines this for functions which it implements
30629 to always fail with ENOSYS. Some functions are actually named
30630 something starting with __ and the normal name is an alias. */
30631#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30632choke me
30633#else
e6cc62c6
VS
30634char (*f) () = $ac_func;
30635#endif
30636#ifdef __cplusplus
30637}
4f14bcd8
GD
30638#endif
30639
e6cc62c6
VS
30640int
30641main ()
30642{
30643return f != $ac_func;
30644 ;
30645 return 0;
30646}
30647_ACEOF
30648rm -f conftest.$ac_objext conftest$ac_exeext
30649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30650 (eval $ac_link) 2>conftest.er1
e6cc62c6 30651 ac_status=$?
32ddf007
VS
30652 grep -v '^ *+' conftest.er1 >conftest.err
30653 rm -f conftest.er1
30654 cat conftest.err >&5
e6cc62c6
VS
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); } &&
e1293dcf 30657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659 (eval $ac_try) 2>&5
30660 ac_status=$?
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665 (eval $ac_try) 2>&5
30666 ac_status=$?
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30669 eval "$as_ac_var=yes"
30670else
30671 echo "$as_me: failed program was:" >&5
30672sed 's/^/| /' conftest.$ac_ext >&5
30673
30674eval "$as_ac_var=no"
30675fi
32ddf007
VS
30676rm -f conftest.err conftest.$ac_objext \
30677 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30678fi
30679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30680echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30681if test `eval echo '${'$as_ac_var'}'` = yes; then
30682 cat >>confdefs.h <<_ACEOF
30683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30684_ACEOF
30685 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30686#define HAVE_USLEEP 1
e6cc62c6 30687_ACEOF
4f14bcd8 30688
698dcdb6 30689else
e6cc62c6
VS
30690 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30691echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30692
10f2d63a 30693fi
4f14bcd8 30694done
10f2d63a 30695
e6cc62c6
VS
30696
30697
6232543b 30698fi
10f2d63a 30699
e6cc62c6
VS
30700
30701
1e487827 30702fi
4f14bcd8 30703done
703e0a69 30704
10f2d63a
VZ
30705fi
30706
e6cc62c6
VS
30707
30708
4f14bcd8 30709for ac_func in uname gethostname
70846f0a 30710do
e6cc62c6
VS
30711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30712echo "$as_me:$LINENO: checking for $ac_func" >&5
30713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30714if eval "test \"\${$as_ac_var+set}\" = set"; then
30715 echo $ECHO_N "(cached) $ECHO_C" >&6
30716else
30717 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30718/* confdefs.h. */
30719_ACEOF
30720cat confdefs.h >>conftest.$ac_ext
30721cat >>conftest.$ac_ext <<_ACEOF
30722/* end confdefs.h. */
32ddf007
VS
30723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30725#define $ac_func innocuous_$ac_func
30726
70846f0a 30727/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30728 which can conflict with char $ac_func (); below.
30729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30730 <limits.h> exists even on freestanding compilers. */
32ddf007 30731
e6cc62c6
VS
30732#ifdef __STDC__
30733# include <limits.h>
30734#else
30735# include <assert.h>
30736#endif
32ddf007
VS
30737
30738#undef $ac_func
30739
70846f0a 30740/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30741#ifdef __cplusplus
30742extern "C"
30743{
30744#endif
70846f0a 30745/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30746 builtin and then its argument prototype would still apply. */
30747char $ac_func ();
70846f0a
VZ
30748/* The GNU C library defines this for functions which it implements
30749 to always fail with ENOSYS. Some functions are actually named
30750 something starting with __ and the normal name is an alias. */
30751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30752choke me
30753#else
e6cc62c6
VS
30754char (*f) () = $ac_func;
30755#endif
30756#ifdef __cplusplus
30757}
70846f0a
VZ
30758#endif
30759
e6cc62c6
VS
30760int
30761main ()
30762{
30763return f != $ac_func;
30764 ;
30765 return 0;
30766}
30767_ACEOF
30768rm -f conftest.$ac_objext conftest$ac_exeext
30769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30770 (eval $ac_link) 2>conftest.er1
e6cc62c6 30771 ac_status=$?
32ddf007
VS
30772 grep -v '^ *+' conftest.er1 >conftest.err
30773 rm -f conftest.er1
30774 cat conftest.err >&5
e6cc62c6
VS
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); } &&
e1293dcf 30777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779 (eval $ac_try) 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; } &&
30783 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30785 (eval $ac_try) 2>&5
30786 ac_status=$?
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); }; }; then
30789 eval "$as_ac_var=yes"
30790else
30791 echo "$as_me: failed program was:" >&5
30792sed 's/^/| /' conftest.$ac_ext >&5
30793
30794eval "$as_ac_var=no"
30795fi
32ddf007
VS
30796rm -f conftest.err conftest.$ac_objext \
30797 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30798fi
30799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30801if test `eval echo '${'$as_ac_var'}'` = yes; then
30802 cat >>confdefs.h <<_ACEOF
30803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30804_ACEOF
4f14bcd8 30805 break
70846f0a
VZ
30806fi
30807done
30808
8284b0c5
MB
30809
30810
e6cc62c6
VS
30811
30812ac_ext=cc
4f14bcd8 30813ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30817
8284b0c5 30818
4f14bcd8
GD
30819
30820for ac_func in strtok_r
10f2d63a 30821do
e6cc62c6
VS
30822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823echo "$as_me:$LINENO: checking for $ac_func" >&5
30824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30825if eval "test \"\${$as_ac_var+set}\" = set"; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30827else
30828 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30829/* confdefs.h. */
30830_ACEOF
30831cat confdefs.h >>conftest.$ac_ext
30832cat >>conftest.$ac_ext <<_ACEOF
30833/* end confdefs.h. */
32ddf007
VS
30834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30836#define $ac_func innocuous_$ac_func
30837
4f14bcd8 30838/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30839 which can conflict with char $ac_func (); below.
30840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841 <limits.h> exists even on freestanding compilers. */
32ddf007 30842
e6cc62c6
VS
30843#ifdef __STDC__
30844# include <limits.h>
30845#else
30846# include <assert.h>
30847#endif
32ddf007
VS
30848
30849#undef $ac_func
30850
4f14bcd8
GD
30851/* Override any gcc2 internal prototype to avoid an error. */
30852#ifdef __cplusplus
30853extern "C"
e6cc62c6 30854{
4f14bcd8
GD
30855#endif
30856/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30857 builtin and then its argument prototype would still apply. */
30858char $ac_func ();
4f14bcd8
GD
30859/* The GNU C library defines this for functions which it implements
30860 to always fail with ENOSYS. Some functions are actually named
30861 something starting with __ and the normal name is an alias. */
30862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30863choke me
30864#else
e6cc62c6
VS
30865char (*f) () = $ac_func;
30866#endif
30867#ifdef __cplusplus
30868}
4f14bcd8
GD
30869#endif
30870
e6cc62c6
VS
30871int
30872main ()
30873{
30874return f != $ac_func;
30875 ;
30876 return 0;
30877}
30878_ACEOF
30879rm -f conftest.$ac_objext conftest$ac_exeext
30880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30881 (eval $ac_link) 2>conftest.er1
e6cc62c6 30882 ac_status=$?
32ddf007
VS
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
e6cc62c6
VS
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } &&
e1293dcf 30888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; } &&
30894 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; }; then
30900 eval "$as_ac_var=yes"
30901else
30902 echo "$as_me: failed program was:" >&5
30903sed 's/^/| /' conftest.$ac_ext >&5
30904
30905eval "$as_ac_var=no"
30906fi
32ddf007
VS
30907rm -f conftest.err conftest.$ac_objext \
30908 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30909fi
30910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30912if test `eval echo '${'$as_ac_var'}'` = yes; then
30913 cat >>confdefs.h <<_ACEOF
30914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30915_ACEOF
4f14bcd8 30916
10f2d63a
VZ
30917fi
30918done
30919
8284b0c5 30920
4f14bcd8 30921ac_ext=c
4f14bcd8 30922ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 30926
5c6fa7d2 30927
8284b0c5 30928INET_LINK=
e6cc62c6 30929
4f14bcd8
GD
30930for ac_func in inet_addr
30931do
e6cc62c6
VS
30932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30933echo "$as_me:$LINENO: checking for $ac_func" >&5
30934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30935if eval "test \"\${$as_ac_var+set}\" = set"; then
30936 echo $ECHO_N "(cached) $ECHO_C" >&6
30937else
30938 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30939/* confdefs.h. */
30940_ACEOF
30941cat confdefs.h >>conftest.$ac_ext
30942cat >>conftest.$ac_ext <<_ACEOF
30943/* end confdefs.h. */
32ddf007
VS
30944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30946#define $ac_func innocuous_$ac_func
30947
4f14bcd8 30948/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30949 which can conflict with char $ac_func (); below.
30950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30951 <limits.h> exists even on freestanding compilers. */
32ddf007 30952
e6cc62c6
VS
30953#ifdef __STDC__
30954# include <limits.h>
30955#else
30956# include <assert.h>
30957#endif
32ddf007
VS
30958
30959#undef $ac_func
30960
10f2d63a 30961/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30962#ifdef __cplusplus
30963extern "C"
30964{
30965#endif
10f2d63a 30966/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30967 builtin and then its argument prototype would still apply. */
30968char $ac_func ();
4f14bcd8
GD
30969/* The GNU C library defines this for functions which it implements
30970 to always fail with ENOSYS. Some functions are actually named
30971 something starting with __ and the normal name is an alias. */
30972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30973choke me
30974#else
e6cc62c6
VS
30975char (*f) () = $ac_func;
30976#endif
30977#ifdef __cplusplus
30978}
4f14bcd8
GD
30979#endif
30980
e6cc62c6
VS
30981int
30982main ()
30983{
30984return f != $ac_func;
30985 ;
30986 return 0;
30987}
30988_ACEOF
30989rm -f conftest.$ac_objext conftest$ac_exeext
30990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30991 (eval $ac_link) 2>conftest.er1
e6cc62c6 30992 ac_status=$?
32ddf007
VS
30993 grep -v '^ *+' conftest.er1 >conftest.err
30994 rm -f conftest.er1
30995 cat conftest.err >&5
e6cc62c6
VS
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); } &&
e1293dcf 30998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 (eval $ac_try) 2>&5
31001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; } &&
31004 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006 (eval $ac_try) 2>&5
31007 ac_status=$?
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; }; then
31010 eval "$as_ac_var=yes"
31011else
31012 echo "$as_me: failed program was:" >&5
31013sed 's/^/| /' conftest.$ac_ext >&5
31014
31015eval "$as_ac_var=no"
31016fi
32ddf007
VS
31017rm -f conftest.err conftest.$ac_objext \
31018 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31019fi
31020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31022if test `eval echo '${'$as_ac_var'}'` = yes; then
31023 cat >>confdefs.h <<_ACEOF
31024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31025_ACEOF
31026 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31027#define HAVE_INET_ADDR 1
e6cc62c6 31028_ACEOF
10f2d63a
VZ
31029
31030else
e6cc62c6
VS
31031
31032 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31033echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31034if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31036else
e6cc62c6 31037 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31038LIBS="-lnsl $LIBS"
e6cc62c6 31039cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31040/* confdefs.h. */
31041_ACEOF
31042cat confdefs.h >>conftest.$ac_ext
31043cat >>conftest.$ac_ext <<_ACEOF
31044/* end confdefs.h. */
31045
10f2d63a 31046/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31047#ifdef __cplusplus
31048extern "C"
31049#endif
10f2d63a 31050/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31051 builtin and then its argument prototype would still apply. */
31052char inet_addr ();
31053int
31054main ()
31055{
31056inet_addr ();
31057 ;
31058 return 0;
31059}
31060_ACEOF
31061rm -f conftest.$ac_objext conftest$ac_exeext
31062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31063 (eval $ac_link) 2>conftest.er1
e6cc62c6 31064 ac_status=$?
32ddf007
VS
31065 grep -v '^ *+' conftest.er1 >conftest.err
31066 rm -f conftest.er1
31067 cat conftest.err >&5
e6cc62c6
VS
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); } &&
e1293dcf 31070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31072 (eval $ac_try) 2>&5
31073 ac_status=$?
31074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075 (exit $ac_status); }; } &&
31076 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31078 (eval $ac_try) 2>&5
31079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; }; then
31082 ac_cv_lib_nsl_inet_addr=yes
31083else
31084 echo "$as_me: failed program was:" >&5
31085sed 's/^/| /' conftest.$ac_ext >&5
31086
31087ac_cv_lib_nsl_inet_addr=no
31088fi
32ddf007
VS
31089rm -f conftest.err conftest.$ac_objext \
31090 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31091LIBS=$ac_check_lib_save_LIBS
31092fi
31093echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31094echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31095if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 31096 INET_LINK="nsl"
10f2d63a 31097else
0e012a93
VZ
31098
31099 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
31100echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31101if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31103else
e6cc62c6 31104 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31105LIBS="-lresolv $LIBS"
e6cc62c6 31106cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31107/* confdefs.h. */
31108_ACEOF
31109cat confdefs.h >>conftest.$ac_ext
31110cat >>conftest.$ac_ext <<_ACEOF
31111/* end confdefs.h. */
31112
5c6fa7d2 31113/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31114#ifdef __cplusplus
31115extern "C"
31116#endif
5c6fa7d2 31117/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31118 builtin and then its argument prototype would still apply. */
31119char inet_addr ();
31120int
31121main ()
31122{
31123inet_addr ();
31124 ;
31125 return 0;
31126}
31127_ACEOF
31128rm -f conftest.$ac_objext conftest$ac_exeext
31129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31130 (eval $ac_link) 2>conftest.er1
e6cc62c6 31131 ac_status=$?
32ddf007
VS
31132 grep -v '^ *+' conftest.er1 >conftest.err
31133 rm -f conftest.er1
31134 cat conftest.err >&5
e6cc62c6
VS
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } &&
e1293dcf 31137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139 (eval $ac_try) 2>&5
31140 ac_status=$?
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); }; } &&
31143 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31145 (eval $ac_try) 2>&5
31146 ac_status=$?
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); }; }; then
31149 ac_cv_lib_resolv_inet_addr=yes
31150else
31151 echo "$as_me: failed program was:" >&5
31152sed 's/^/| /' conftest.$ac_ext >&5
31153
31154ac_cv_lib_resolv_inet_addr=no
31155fi
32ddf007
VS
31156rm -f conftest.err conftest.$ac_objext \
31157 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31158LIBS=$ac_check_lib_save_LIBS
31159fi
31160echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31161echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31162if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 31163 INET_LINK="resolv"
698dcdb6 31164else
0e012a93
VZ
31165
31166 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
31167echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31168if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31169 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 31170else
e6cc62c6 31171 ac_check_lib_save_LIBS=$LIBS
3c011993 31172LIBS="-lsocket $LIBS"
e6cc62c6 31173cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31174/* confdefs.h. */
31175_ACEOF
31176cat confdefs.h >>conftest.$ac_ext
31177cat >>conftest.$ac_ext <<_ACEOF
31178/* end confdefs.h. */
31179
3c011993 31180/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31181#ifdef __cplusplus
31182extern "C"
31183#endif
3c011993 31184/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31185 builtin and then its argument prototype would still apply. */
31186char inet_addr ();
31187int
31188main ()
31189{
31190inet_addr ();
31191 ;
31192 return 0;
31193}
31194_ACEOF
31195rm -f conftest.$ac_objext conftest$ac_exeext
31196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31197 (eval $ac_link) 2>conftest.er1
e6cc62c6 31198 ac_status=$?
32ddf007
VS
31199 grep -v '^ *+' conftest.er1 >conftest.err
31200 rm -f conftest.er1
31201 cat conftest.err >&5
e6cc62c6
VS
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); } &&
e1293dcf 31204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31206 (eval $ac_try) 2>&5
31207 ac_status=$?
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; } &&
31210 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31212 (eval $ac_try) 2>&5
31213 ac_status=$?
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); }; }; then
31216 ac_cv_lib_socket_inet_addr=yes
31217else
31218 echo "$as_me: failed program was:" >&5
31219sed 's/^/| /' conftest.$ac_ext >&5
31220
31221ac_cv_lib_socket_inet_addr=no
31222fi
32ddf007
VS
31223rm -f conftest.err conftest.$ac_objext \
31224 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31225LIBS=$ac_check_lib_save_LIBS
31226fi
31227echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31228echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31229if test $ac_cv_lib_socket_inet_addr = yes; then
31230 INET_LINK="socket"
4f14bcd8 31231
8284b0c5 31232fi
e6cc62c6 31233
698dcdb6 31234
0e012a93 31235
7b4a847f 31236fi
e6cc62c6
VS
31237
31238
0e012a93 31239
a0b9e27f 31240fi
579d8138 31241
e6cc62c6
VS
31242
31243
5c6fa7d2 31244fi
e6cc62c6
VS
31245done
31246
31247
31248
31249for ac_func in inet_aton
31250do
31251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31252echo "$as_me:$LINENO: checking for $ac_func" >&5
31253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31254if eval "test \"\${$as_ac_var+set}\" = set"; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31256else
31257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31258/* confdefs.h. */
31259_ACEOF
31260cat confdefs.h >>conftest.$ac_ext
31261cat >>conftest.$ac_ext <<_ACEOF
31262/* end confdefs.h. */
32ddf007
VS
31263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31265#define $ac_func innocuous_$ac_func
31266
e6cc62c6
VS
31267/* System header to define __stub macros and hopefully few prototypes,
31268 which can conflict with char $ac_func (); below.
31269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31270 <limits.h> exists even on freestanding compilers. */
32ddf007 31271
e6cc62c6
VS
31272#ifdef __STDC__
31273# include <limits.h>
31274#else
31275# include <assert.h>
31276#endif
32ddf007
VS
31277
31278#undef $ac_func
31279
e6cc62c6
VS
31280/* Override any gcc2 internal prototype to avoid an error. */
31281#ifdef __cplusplus
31282extern "C"
31283{
31284#endif
31285/* We use char because int might match the return type of a gcc2
31286 builtin and then its argument prototype would still apply. */
31287char $ac_func ();
31288/* The GNU C library defines this for functions which it implements
31289 to always fail with ENOSYS. Some functions are actually named
31290 something starting with __ and the normal name is an alias. */
31291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31292choke me
31293#else
31294char (*f) () = $ac_func;
31295#endif
31296#ifdef __cplusplus
31297}
31298#endif
31299
31300int
31301main ()
31302{
31303return f != $ac_func;
31304 ;
31305 return 0;
31306}
31307_ACEOF
31308rm -f conftest.$ac_objext conftest$ac_exeext
31309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31310 (eval $ac_link) 2>conftest.er1
e6cc62c6 31311 ac_status=$?
32ddf007
VS
31312 grep -v '^ *+' conftest.er1 >conftest.err
31313 rm -f conftest.er1
31314 cat conftest.err >&5
e6cc62c6
VS
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); } &&
e1293dcf 31317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; } &&
31323 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325 (eval $ac_try) 2>&5
31326 ac_status=$?
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31329 eval "$as_ac_var=yes"
31330else
31331 echo "$as_me: failed program was:" >&5
31332sed 's/^/| /' conftest.$ac_ext >&5
31333
31334eval "$as_ac_var=no"
31335fi
32ddf007
VS
31336rm -f conftest.err conftest.$ac_objext \
31337 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31338fi
31339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31341if test `eval echo '${'$as_ac_var'}'` = yes; then
31342 cat >>confdefs.h <<_ACEOF
31343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31344_ACEOF
31345 cat >>confdefs.h <<\_ACEOF
31346#define HAVE_INET_ATON 1
31347_ACEOF
31348
31349else
31350
31351 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31352echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31353echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31354if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31355 echo $ECHO_N "(cached) $ECHO_C" >&6
31356else
31357 ac_check_lib_save_LIBS=$LIBS
31358LIBS="-l$INET_LINK $LIBS"
31359cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31360/* confdefs.h. */
31361_ACEOF
31362cat confdefs.h >>conftest.$ac_ext
31363cat >>conftest.$ac_ext <<_ACEOF
31364/* end confdefs.h. */
31365
31366/* Override any gcc2 internal prototype to avoid an error. */
31367#ifdef __cplusplus
31368extern "C"
31369#endif
31370/* We use char because int might match the return type of a gcc2
31371 builtin and then its argument prototype would still apply. */
31372char inet_aton ();
31373int
31374main ()
31375{
31376inet_aton ();
31377 ;
31378 return 0;
31379}
31380_ACEOF
31381rm -f conftest.$ac_objext conftest$ac_exeext
31382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31383 (eval $ac_link) 2>conftest.er1
e6cc62c6 31384 ac_status=$?
32ddf007
VS
31385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
e6cc62c6
VS
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } &&
e1293dcf 31390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; } &&
31396 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 eval "$as_ac_Lib=yes"
31403else
31404 echo "$as_me: failed program was:" >&5
31405sed 's/^/| /' conftest.$ac_ext >&5
31406
31407eval "$as_ac_Lib=no"
31408fi
32ddf007
VS
31409rm -f conftest.err conftest.$ac_objext \
31410 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31411LIBS=$ac_check_lib_save_LIBS
31412fi
31413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31414echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31415if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31416 cat >>confdefs.h <<\_ACEOF
31417#define HAVE_INET_ATON 1
31418_ACEOF
52127426 31419
a0b9e27f 31420fi
247f5006 31421
8284b0c5 31422
698dcdb6 31423fi
4f14bcd8
GD
31424done
31425
8284b0c5 31426
e6cc62c6
VS
31427if test "x$INET_LINK" != "x"; then
31428 cat >>confdefs.h <<\_ACEOF
31429#define HAVE_INET_ADDR 1
31430_ACEOF
31431
31432 INET_LINK=" -l$INET_LINK"
31433fi
31434
31435fi
a0b9e27f 31436
a0b9e27f 31437
4f14bcd8 31438
edd891e2
VS
31439EXTRALIBS_ESD=
31440echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31441echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31442if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31443 echo $ECHO_N "(cached) $ECHO_C" >&6
31444else
31445 ac_check_lib_save_LIBS=$LIBS
31446LIBS="-lesd $LIBS"
31447cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
31448/* confdefs.h. */
31449_ACEOF
31450cat confdefs.h >>conftest.$ac_ext
31451cat >>conftest.$ac_ext <<_ACEOF
31452/* end confdefs.h. */
31453
31454/* Override any gcc2 internal prototype to avoid an error. */
31455#ifdef __cplusplus
31456extern "C"
31457#endif
31458/* We use char because int might match the return type of a gcc2
31459 builtin and then its argument prototype would still apply. */
31460char esd_close ();
31461int
31462main ()
31463{
31464esd_close ();
31465 ;
31466 return 0;
31467}
31468_ACEOF
31469rm -f conftest.$ac_objext conftest$ac_exeext
31470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31471 (eval $ac_link) 2>conftest.er1
edd891e2 31472 ac_status=$?
32ddf007
VS
31473 grep -v '^ *+' conftest.er1 >conftest.err
31474 rm -f conftest.er1
31475 cat conftest.err >&5
edd891e2
VS
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); } &&
e1293dcf 31478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31480 (eval $ac_try) 2>&5
31481 ac_status=$?
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); }; } &&
31484 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
31490 ac_cv_lib_esd_esd_close=yes
31491else
31492 echo "$as_me: failed program was:" >&5
31493sed 's/^/| /' conftest.$ac_ext >&5
31494
31495ac_cv_lib_esd_esd_close=no
31496fi
32ddf007
VS
31497rm -f conftest.err conftest.$ac_objext \
31498 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
31499LIBS=$ac_check_lib_save_LIBS
31500fi
31501echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31502echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31503if test $ac_cv_lib_esd_esd_close = yes; then
31504
31505
31506for ac_header in esd.h
31507do
31508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31509if eval "test \"\${$as_ac_Header+set}\" = set"; then
31510 echo "$as_me:$LINENO: checking for $ac_header" >&5
31511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31512if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31513 echo $ECHO_N "(cached) $ECHO_C" >&6
31514fi
edd891e2
VS
31515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31517else
31518 # Is the header compilable?
edd891e2
VS
31519echo "$as_me:$LINENO: checking $ac_header usability" >&5
31520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31521cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31522/* confdefs.h. */
31523_ACEOF
31524cat confdefs.h >>conftest.$ac_ext
31525cat >>conftest.$ac_ext <<_ACEOF
31526/* end confdefs.h. */
31527$ac_includes_default
edd891e2 31528#include <$ac_header>
e6cc62c6
VS
31529_ACEOF
31530rm -f conftest.$ac_objext
31531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 31532 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31533 ac_status=$?
32ddf007
VS
31534 grep -v '^ *+' conftest.er1 >conftest.err
31535 rm -f conftest.er1
31536 cat conftest.err >&5
e6cc62c6
VS
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } &&
e1293dcf 31539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; } &&
31545 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
31551 ac_header_compiler=yes
31552else
31553 echo "$as_me: failed program was:" >&5
31554sed 's/^/| /' conftest.$ac_ext >&5
31555
31556ac_header_compiler=no
31557fi
32ddf007 31558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31560echo "${ECHO_T}$ac_header_compiler" >&6
31561
31562# Is the header present?
edd891e2
VS
31563echo "$as_me:$LINENO: checking $ac_header presence" >&5
31564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31565cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31566/* confdefs.h. */
31567_ACEOF
31568cat confdefs.h >>conftest.$ac_ext
31569cat >>conftest.$ac_ext <<_ACEOF
31570/* end confdefs.h. */
edd891e2 31571#include <$ac_header>
e6cc62c6
VS
31572_ACEOF
31573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31575 ac_status=$?
31576 grep -v '^ *+' conftest.er1 >conftest.err
31577 rm -f conftest.er1
31578 cat conftest.err >&5
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } >/dev/null; then
31581 if test -s conftest.err; then
31582 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 31583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31584 else
31585 ac_cpp_err=
31586 fi
a0b9e27f 31587else
e6cc62c6
VS
31588 ac_cpp_err=yes
31589fi
31590if test -z "$ac_cpp_err"; then
31591 ac_header_preproc=yes
31592else
31593 echo "$as_me: failed program was:" >&5
31594sed 's/^/| /' conftest.$ac_ext >&5
31595
31596 ac_header_preproc=no
31597fi
31598rm -f conftest.err conftest.$ac_ext
31599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31600echo "${ECHO_T}$ac_header_preproc" >&6
31601
31602# So? What about this header?
32ddf007
VS
31603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31604 yes:no: )
edd891e2
VS
31605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
31607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31609 ac_header_preproc=yes
e6cc62c6 31610 ;;
32ddf007 31611 no:yes:* )
edd891e2
VS
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
31622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31624 (
31625 cat <<\_ASBOX
32ddf007
VS
31626## ----------------------------------------- ##
31627## Report this to wx-dev@lists.wxwindows.org ##
31628## ----------------------------------------- ##
e6cc62c6
VS
31629_ASBOX
31630 ) |
31631 sed "s/^/$as_me: WARNING: /" >&2
31632 ;;
31633esac
edd891e2
VS
31634echo "$as_me:$LINENO: checking for $ac_header" >&5
31635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31636if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31638else
32ddf007 31639 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31640fi
edd891e2
VS
31641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31643
e6cc62c6 31644fi
edd891e2
VS
31645if test `eval echo '${'$as_ac_Header'}'` = yes; then
31646 cat >>confdefs.h <<_ACEOF
31647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31648_ACEOF
e6cc62c6 31649
edd891e2 31650 EXTRALIBS_ESD="-lesd"
4f14bcd8 31651
a0b9e27f 31652fi
247f5006 31653
edd891e2 31654done
8284b0c5 31655
4f14bcd8 31656
6232543b 31657fi
10f2d63a 31658
703e0a69 31659
8284b0c5 31660
d19d1899
MB
31661echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31662echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31663cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31664/* confdefs.h. */
31665_ACEOF
31666cat confdefs.h >>conftest.$ac_ext
31667cat >>conftest.$ac_ext <<_ACEOF
31668/* end confdefs.h. */
31669#ifdef __linux__
31670 #include <linux/cdrom.h>
31671 #else
31672 /* For Solaris */
31673 #include <sys/cdio.h>
31674 #endif
31675
31676int
31677main ()
31678{
31679struct cdrom_tocentry entry, old_entry;
31680 ;
31681 return 0;
31682}
31683_ACEOF
31684rm -f conftest.$ac_objext
31685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 31686 (eval $ac_compile) 2>conftest.er1
d19d1899 31687 ac_status=$?
32ddf007
VS
31688 grep -v '^ *+' conftest.er1 >conftest.err
31689 rm -f conftest.er1
31690 cat conftest.err >&5
d19d1899
MB
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } &&
e1293dcf 31693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31695 (eval $ac_try) 2>&5
31696 ac_status=$?
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31701 (eval $ac_try) 2>&5
31702 ac_status=$?
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; }; then
31705 echo "$as_me:$LINENO: result: yes" >&5
31706echo "${ECHO_T}yes" >&6
31707 cat >>confdefs.h <<\_ACEOF
31708#define HAVE_KNOWN_CDROM_INTERFACE 1
31709_ACEOF
31710
31711else
31712 echo "$as_me: failed program was:" >&5
31713sed 's/^/| /' conftest.$ac_ext >&5
31714
31715echo "$as_me:$LINENO: result: no" >&5
31716echo "${ECHO_T}no" >&6
31717fi
32ddf007 31718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31719
31720
31721cat >confcache <<\_ACEOF
4f14bcd8
GD
31722# This file is a shell script that caches the results of configure
31723# tests run on this system so they can be shared between configure
e6cc62c6
VS
31724# scripts and configure runs, see configure's option --config-cache.
31725# It is not useful on other systems. If it contains results you don't
31726# want to keep, you may remove or edit it.
4f14bcd8 31727#
e6cc62c6
VS
31728# config.status only pays attention to the cache file if you give it
31729# the --recheck option to rerun configure.
4f14bcd8 31730#
e6cc62c6
VS
31731# `ac_cv_env_foo' variables (set or unset) will be overridden when
31732# loading this file, other *unset* `ac_cv_foo' will be assigned the
31733# following values.
31734
31735_ACEOF
31736
4f14bcd8
GD
31737# The following way of writing the cache mishandles newlines in values,
31738# but we know of no workaround that is simple, portable, and efficient.
31739# So, don't put newlines in cache variables' values.
31740# Ultrix sh set writes to stderr and can't be redirected directly,
31741# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31742{
31743 (set) 2>&1 |
31744 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31745 *ac_space=\ *)
31746 # `set' does not quote correctly, so add quotes (double-quote
31747 # substitution turns \\\\ into \\, and sed turns \\ into \).
31748 sed -n \
32ddf007
VS
31749 "s/'/'\\\\''/g;
31750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31751 ;;
31752 *)
31753 # `set' quotes correctly as required by POSIX, so do not add quotes.
31754 sed -n \
32ddf007 31755 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31756 ;;
31757 esac;
31758} |
31759 sed '
31760 t clear
31761 : clear
31762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31763 t end
31764 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31765 : end' >>confcache
31766if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31767 if test -w $cache_file; then
e6cc62c6
VS
31768 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31769 cat confcache >$cache_file
f6bcfd97 31770 else
4f14bcd8 31771 echo "not updating unwritable cache $cache_file"
f6bcfd97 31772 fi
4f14bcd8
GD
31773fi
31774rm -f confcache
f6bcfd97 31775
8284b0c5 31776
009fead0 31777CPP_MT_FLAG=
73d617c9 31778if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31779
e6cc62c6 31780
7274f1c7 31781 THREADS_LINK=
009fead0 31782 THREADS_CFLAGS=
7274f1c7
RL
31783
31784 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31785 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31786 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31787echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31788 wxUSE_THREADS="no"
31789 fi
4f14bcd8 31790 fi
4f14bcd8 31791
7274f1c7 31792 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31793
31794
009fead0
VZ
31795 THREAD_OPTS="-pthread"
31796 case "${host}" in
31797 *-*-solaris2* | *-*-sunos4* )
31798 if test "x$GCC" = "xyes"; then
126be6b4 31799 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31800 else
31801 THREAD_OPTS="-mt $THREAD_OPTS"
31802 fi
31803 ;;
31804 *-*-freebsd*)
31805 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31806 ;;
17234b26
MB
31807 *-*-darwin* | *-*-cygwin* )
31808 THREAD_OPTS=""
4101db81 31809 ;;
8f4a9a10 31810 *-*-aix*)
009fead0
VZ
31811 THREAD_OPTS="pthreads"
31812 ;;
4f5a7f74
VZ
31813 *-hp-hpux* )
31814 if test "x$GCC" != "xyes"; then
31815 THREAD_OPTS=""
31816 fi
89e3b3e4
VZ
31817 ;;
31818
31819 *-*-irix* )
31820 if test "x$GCC" = "xyes"; then
31821 THREAD_OPTS=""
31822 fi
31823 ;;
31824
31825 *-*-*UnixWare*)
31826 if test "x$GCC" != "xyes"; then
31827 THREAD_OPTS="-Ethread"
31828 fi
31829 ;;
009fead0 31830 esac
4f14bcd8 31831
02a1dfba 31832 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31833
009fead0
VZ
31834 THREADS_OK=no
31835 for flag in $THREAD_OPTS; do
31836 case $flag in
31837 none)
e6cc62c6
VS
31838 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31839echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31840 ;;
698dcdb6 31841
009fead0 31842 -*)
e6cc62c6
VS
31843 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31844echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31845 THREADS_CFLAGS="$flag"
31846 ;;
698dcdb6 31847
009fead0 31848 *)
e6cc62c6
VS
31849 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31850echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31851 THREADS_LINK="-l$flag"
31852 ;;
31853 esac
10f2d63a 31854
009fead0
VZ
31855 save_LIBS="$LIBS"
31856 save_CFLAGS="$CFLAGS"
31857 LIBS="$THREADS_LINK $LIBS"
04727afd 31858 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31859
e6cc62c6 31860 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31861/* confdefs.h. */
31862_ACEOF
31863cat confdefs.h >>conftest.$ac_ext
31864cat >>conftest.$ac_ext <<_ACEOF
31865/* end confdefs.h. */
009fead0 31866#include <pthread.h>
e6cc62c6
VS
31867int
31868main ()
31869{
009fead0 31870pthread_create(0,0,0,0);
e6cc62c6
VS
31871 ;
31872 return 0;
31873}
31874_ACEOF
31875rm -f conftest.$ac_objext conftest$ac_exeext
31876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31877 (eval $ac_link) 2>conftest.er1
e6cc62c6 31878 ac_status=$?
32ddf007
VS
31879 grep -v '^ *+' conftest.er1 >conftest.err
31880 rm -f conftest.er1
31881 cat conftest.err >&5
e6cc62c6
VS
31882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883 (exit $ac_status); } &&
e1293dcf 31884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31886 (eval $ac_try) 2>&5
31887 ac_status=$?
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; } &&
31890 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892 (eval $ac_try) 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; }; then
009fead0 31896 THREADS_OK=yes
10f2d63a 31897else
e6cc62c6
VS
31898 echo "$as_me: failed program was:" >&5
31899sed 's/^/| /' conftest.$ac_ext >&5
31900
6232543b 31901fi
32ddf007
VS
31902rm -f conftest.err conftest.$ac_objext \
31903 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31904
009fead0
VZ
31905 LIBS="$save_LIBS"
31906 CFLAGS="$save_CFLAGS"
d9b9876f 31907
e6cc62c6
VS
31908 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31909echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31910 if test "x$THREADS_OK" = "xyes"; then
31911 break;
31912 fi
d9b9876f 31913
009fead0
VZ
31914 THREADS_LINK=""
31915 THREADS_CFLAGS=""
31916 done
4f14bcd8 31917
009fead0
VZ
31918 if test "x$THREADS_OK" != "xyes"; then
31919 wxUSE_THREADS=no
e6cc62c6
VS
31920 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31921echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 31922 else
db82f09e
VZ
31923 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31924 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 31925
e6cc62c6
VS
31926 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31927echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
31928 flag=no
31929 case "${host}" in
2b5f62a0
VZ
31930 *-aix*)
31931 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31932 flag="-D_THREAD_SAFE"
31933 ;;
31934 *-freebsd*)
009fead0
VZ
31935 flag="-D_THREAD_SAFE"
31936 ;;
06313569
GD
31937 *-hp-hpux* )
31938 flag="-D_REENTRANT"
4f5a7f74
VZ
31939 if test "x$GCC" != "xyes"; then
31940 flag="$flag -D_RWSTD_MULTI_THREAD"
31941 fi
06313569 31942 ;;
009fead0
VZ
31943 *solaris* | alpha*-osf*)
31944 flag="-D_REENTRANT"
31945 ;;
31946 esac
e6cc62c6
VS
31947 echo "$as_me:$LINENO: result: ${flag}" >&5
31948echo "${ECHO_T}${flag}" >&6
009fead0 31949 if test "x$flag" != xno; then
04727afd 31950 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
31951 fi
31952
009fead0 31953 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 31954 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
31955 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31956 fi
31957 fi
4f14bcd8 31958 fi
4f14bcd8 31959
7274f1c7 31960 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31961
31962for ac_func in thr_setconcurrency
4f14bcd8 31963do
e6cc62c6
VS
31964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31965echo "$as_me:$LINENO: checking for $ac_func" >&5
31966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31967if eval "test \"\${$as_ac_var+set}\" = set"; then
31968 echo $ECHO_N "(cached) $ECHO_C" >&6
31969else
31970 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31971/* confdefs.h. */
31972_ACEOF
31973cat confdefs.h >>conftest.$ac_ext
31974cat >>conftest.$ac_ext <<_ACEOF
31975/* end confdefs.h. */
32ddf007
VS
31976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31978#define $ac_func innocuous_$ac_func
31979
4f14bcd8 31980/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31981 which can conflict with char $ac_func (); below.
31982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31983 <limits.h> exists even on freestanding compilers. */
32ddf007 31984
e6cc62c6
VS
31985#ifdef __STDC__
31986# include <limits.h>
31987#else
31988# include <assert.h>
31989#endif
32ddf007
VS
31990
31991#undef $ac_func
31992
4f14bcd8 31993/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31994#ifdef __cplusplus
31995extern "C"
31996{
31997#endif
4f14bcd8 31998/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31999 builtin and then its argument prototype would still apply. */
32000char $ac_func ();
4f14bcd8
GD
32001/* The GNU C library defines this for functions which it implements
32002 to always fail with ENOSYS. Some functions are actually named
32003 something starting with __ and the normal name is an alias. */
32004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32005choke me
32006#else
e6cc62c6
VS
32007char (*f) () = $ac_func;
32008#endif
32009#ifdef __cplusplus
32010}
4f14bcd8
GD
32011#endif
32012
e6cc62c6
VS
32013int
32014main ()
32015{
32016return f != $ac_func;
32017 ;
32018 return 0;
32019}
32020_ACEOF
32021rm -f conftest.$ac_objext conftest$ac_exeext
32022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32023 (eval $ac_link) 2>conftest.er1
e6cc62c6 32024 ac_status=$?
32ddf007
VS
32025 grep -v '^ *+' conftest.er1 >conftest.err
32026 rm -f conftest.er1
32027 cat conftest.err >&5
e6cc62c6
VS
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); } &&
e1293dcf 32030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032 (eval $ac_try) 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; } &&
32036 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32038 (eval $ac_try) 2>&5
32039 ac_status=$?
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); }; }; then
32042 eval "$as_ac_var=yes"
32043else
32044 echo "$as_me: failed program was:" >&5
32045sed 's/^/| /' conftest.$ac_ext >&5
32046
32047eval "$as_ac_var=no"
32048fi
32ddf007
VS
32049rm -f conftest.err conftest.$ac_objext \
32050 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32051fi
32052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32054if test `eval echo '${'$as_ac_var'}'` = yes; then
32055 cat >>confdefs.h <<_ACEOF
32056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32057_ACEOF
698dcdb6 32058
10f2d63a 32059fi
4f14bcd8 32060done
10f2d63a 32061
8284b0c5 32062
e6cc62c6
VS
32063
32064for ac_header in sched.h
4f14bcd8 32065do
e6cc62c6
VS
32066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32067if eval "test \"\${$as_ac_Header+set}\" = set"; then
32068 echo "$as_me:$LINENO: checking for $ac_header" >&5
32069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32070if eval "test \"\${$as_ac_Header+set}\" = set"; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32072fi
32073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32075else
32076 # Is the header compilable?
32077echo "$as_me:$LINENO: checking $ac_header usability" >&5
32078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32079cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32080/* confdefs.h. */
32081_ACEOF
32082cat confdefs.h >>conftest.$ac_ext
32083cat >>conftest.$ac_ext <<_ACEOF
32084/* end confdefs.h. */
32085$ac_includes_default
32086#include <$ac_header>
32087_ACEOF
32088rm -f conftest.$ac_objext
32089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 32090 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32091 ac_status=$?
32ddf007
VS
32092 grep -v '^ *+' conftest.er1 >conftest.err
32093 rm -f conftest.er1
32094 cat conftest.err >&5
e6cc62c6
VS
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); } &&
e1293dcf 32097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; } &&
32103 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
32109 ac_header_compiler=yes
32110else
32111 echo "$as_me: failed program was:" >&5
32112sed 's/^/| /' conftest.$ac_ext >&5
32113
32114ac_header_compiler=no
32115fi
32ddf007 32116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
32117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32118echo "${ECHO_T}$ac_header_compiler" >&6
32119
32120# Is the header present?
32121echo "$as_me:$LINENO: checking $ac_header presence" >&5
32122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32123cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32124/* confdefs.h. */
32125_ACEOF
32126cat confdefs.h >>conftest.$ac_ext
32127cat >>conftest.$ac_ext <<_ACEOF
32128/* end confdefs.h. */
32129#include <$ac_header>
32130_ACEOF
32131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32133 ac_status=$?
32134 grep -v '^ *+' conftest.er1 >conftest.err
32135 rm -f conftest.er1
32136 cat conftest.err >&5
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); } >/dev/null; then
32139 if test -s conftest.err; then
32140 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 32141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
32142 else
32143 ac_cpp_err=
32144 fi
32145else
32146 ac_cpp_err=yes
32147fi
32148if test -z "$ac_cpp_err"; then
32149 ac_header_preproc=yes
32150else
32151 echo "$as_me: failed program was:" >&5
32152sed 's/^/| /' conftest.$ac_ext >&5
32153
32154 ac_header_preproc=no
32155fi
32156rm -f conftest.err conftest.$ac_ext
32157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32158echo "${ECHO_T}$ac_header_preproc" >&6
32159
32160# So? What about this header?
32ddf007
VS
32161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32162 yes:no: )
e6cc62c6
VS
32163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
32165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32167 ac_header_preproc=yes
e6cc62c6 32168 ;;
32ddf007 32169 no:yes:* )
e6cc62c6
VS
32170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
32180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
32182 (
32183 cat <<\_ASBOX
32ddf007
VS
32184## ----------------------------------------- ##
32185## Report this to wx-dev@lists.wxwindows.org ##
32186## ----------------------------------------- ##
e6cc62c6
VS
32187_ASBOX
32188 ) |
32189 sed "s/^/$as_me: WARNING: /" >&2
32190 ;;
32191esac
32192echo "$as_me:$LINENO: checking for $ac_header" >&5
32193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32194if eval "test \"\${$as_ac_Header+set}\" = set"; then
32195 echo $ECHO_N "(cached) $ECHO_C" >&6
32196else
32ddf007 32197 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 32198fi
e6cc62c6
VS
32199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32201
10f2d63a 32202fi
e6cc62c6
VS
32203if test `eval echo '${'$as_ac_Header'}'` = yes; then
32204 cat >>confdefs.h <<_ACEOF
32205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32206_ACEOF
32207
f6bcfd97 32208fi
e6cc62c6 32209
4f14bcd8 32210done
f6bcfd97 32211
009fead0 32212 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
32213 echo "$as_me:$LINENO: checking for sched_yield" >&5
32214echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32215if test "${ac_cv_func_sched_yield+set}" = set; then
32216 echo $ECHO_N "(cached) $ECHO_C" >&6
32217else
32218 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32219/* confdefs.h. */
32220_ACEOF
32221cat confdefs.h >>conftest.$ac_ext
32222cat >>conftest.$ac_ext <<_ACEOF
32223/* end confdefs.h. */
32ddf007
VS
32224/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32226#define sched_yield innocuous_sched_yield
32227
009fead0 32228/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32229 which can conflict with char sched_yield (); below.
32230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32231 <limits.h> exists even on freestanding compilers. */
32ddf007 32232
e6cc62c6
VS
32233#ifdef __STDC__
32234# include <limits.h>
32235#else
32236# include <assert.h>
32237#endif
32ddf007
VS
32238
32239#undef sched_yield
32240
4f14bcd8 32241/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32242#ifdef __cplusplus
32243extern "C"
32244{
32245#endif
4f14bcd8 32246/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32247 builtin and then its argument prototype would still apply. */
32248char sched_yield ();
009fead0
VZ
32249/* The GNU C library defines this for functions which it implements
32250 to always fail with ENOSYS. Some functions are actually named
32251 something starting with __ and the normal name is an alias. */
32252#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32253choke me
32254#else
e6cc62c6
VS
32255char (*f) () = sched_yield;
32256#endif
32257#ifdef __cplusplus
32258}
009fead0
VZ
32259#endif
32260
e6cc62c6
VS
32261int
32262main ()
32263{
32264return f != sched_yield;
32265 ;
32266 return 0;
32267}
32268_ACEOF
32269rm -f conftest.$ac_objext conftest$ac_exeext
32270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32271 (eval $ac_link) 2>conftest.er1
e6cc62c6 32272 ac_status=$?
32ddf007
VS
32273 grep -v '^ *+' conftest.er1 >conftest.err
32274 rm -f conftest.er1
32275 cat conftest.err >&5
e6cc62c6
VS
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); } &&
e1293dcf 32278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32280 (eval $ac_try) 2>&5
32281 ac_status=$?
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); }; } &&
32284 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286 (eval $ac_try) 2>&5
32287 ac_status=$?
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; }; then
32290 ac_cv_func_sched_yield=yes
32291else
32292 echo "$as_me: failed program was:" >&5
32293sed 's/^/| /' conftest.$ac_ext >&5
32294
32295ac_cv_func_sched_yield=no
32296fi
32ddf007
VS
32297rm -f conftest.err conftest.$ac_objext \
32298 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32299fi
32300echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32301echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32302if test $ac_cv_func_sched_yield = yes; then
32303 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32304#define HAVE_SCHED_YIELD 1
e6cc62c6 32305_ACEOF
10f2d63a 32306
4f14bcd8 32307else
009fead0 32308
e6cc62c6
VS
32309 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32310echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32311if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 32313else
e6cc62c6 32314 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32315LIBS="-lposix4 $LIBS"
e6cc62c6 32316cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32317/* confdefs.h. */
32318_ACEOF
32319cat confdefs.h >>conftest.$ac_ext
32320cat >>conftest.$ac_ext <<_ACEOF
32321/* end confdefs.h. */
32322
4f14bcd8 32323/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32324#ifdef __cplusplus
32325extern "C"
32326#endif
4f14bcd8 32327/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32328 builtin and then its argument prototype would still apply. */
32329char sched_yield ();
32330int
32331main ()
32332{
32333sched_yield ();
32334 ;
32335 return 0;
32336}
32337_ACEOF
32338rm -f conftest.$ac_objext conftest$ac_exeext
32339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32340 (eval $ac_link) 2>conftest.er1
e6cc62c6 32341 ac_status=$?
32ddf007
VS
32342 grep -v '^ *+' conftest.er1 >conftest.err
32343 rm -f conftest.er1
32344 cat conftest.err >&5
e6cc62c6
VS
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); } &&
e1293dcf 32347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349 (eval $ac_try) 2>&5
32350 ac_status=$?
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); }; } &&
32353 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32355 (eval $ac_try) 2>&5
32356 ac_status=$?
32357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); }; }; then
32359 ac_cv_lib_posix4_sched_yield=yes
32360else
32361 echo "$as_me: failed program was:" >&5
32362sed 's/^/| /' conftest.$ac_ext >&5
32363
32364ac_cv_lib_posix4_sched_yield=no
32365fi
32ddf007
VS
32366rm -f conftest.err conftest.$ac_objext \
32367 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32368LIBS=$ac_check_lib_save_LIBS
32369fi
32370echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32371echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32372if test $ac_cv_lib_posix4_sched_yield = yes; then
32373 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32374#define HAVE_SCHED_YIELD 1
e6cc62c6 32375_ACEOF
3d63bc3a 32376 POSIX4_LINK=" -lposix4"
4f14bcd8 32377else
e6cc62c6
VS
32378 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32379echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32380
54276ccf
VZ
32381fi
32382
e6cc62c6
VS
32383
32384
4f14bcd8 32385fi
698dcdb6 32386
009fead0 32387 fi
10f2d63a 32388
7274f1c7 32389 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
32390 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32391echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32392if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32393 echo $ECHO_N "(cached) $ECHO_C" >&6
32394else
32395 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32396/* confdefs.h. */
32397_ACEOF
32398cat confdefs.h >>conftest.$ac_ext
32399cat >>conftest.$ac_ext <<_ACEOF
32400/* end confdefs.h. */
32ddf007
VS
32401/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32403#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32404
009fead0 32405/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32406 which can conflict with char pthread_attr_getschedpolicy (); below.
32407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32408 <limits.h> exists even on freestanding compilers. */
32ddf007 32409
e6cc62c6
VS
32410#ifdef __STDC__
32411# include <limits.h>
32412#else
32413# include <assert.h>
32414#endif
32ddf007
VS
32415
32416#undef pthread_attr_getschedpolicy
32417
4f14bcd8 32418/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32419#ifdef __cplusplus
32420extern "C"
32421{
32422#endif
4f14bcd8 32423/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32424 builtin and then its argument prototype would still apply. */
32425char pthread_attr_getschedpolicy ();
009fead0
VZ
32426/* The GNU C library defines this for functions which it implements
32427 to always fail with ENOSYS. Some functions are actually named
32428 something starting with __ and the normal name is an alias. */
32429#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32430choke me
32431#else
e6cc62c6
VS
32432char (*f) () = pthread_attr_getschedpolicy;
32433#endif
32434#ifdef __cplusplus
32435}
009fead0
VZ
32436#endif
32437
e6cc62c6
VS
32438int
32439main ()
32440{
32441return f != pthread_attr_getschedpolicy;
32442 ;
32443 return 0;
32444}
32445_ACEOF
32446rm -f conftest.$ac_objext conftest$ac_exeext
32447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32448 (eval $ac_link) 2>conftest.er1
e6cc62c6 32449 ac_status=$?
32ddf007
VS
32450 grep -v '^ *+' conftest.er1 >conftest.err
32451 rm -f conftest.er1
32452 cat conftest.err >&5
e6cc62c6
VS
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); } &&
e1293dcf 32455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457 (eval $ac_try) 2>&5
32458 ac_status=$?
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; } &&
32461 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32463 (eval $ac_try) 2>&5
32464 ac_status=$?
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); }; }; then
32467 ac_cv_func_pthread_attr_getschedpolicy=yes
32468else
32469 echo "$as_me: failed program was:" >&5
32470sed 's/^/| /' conftest.$ac_ext >&5
32471
32472ac_cv_func_pthread_attr_getschedpolicy=no
32473fi
32ddf007
VS
32474rm -f conftest.err conftest.$ac_objext \
32475 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32476fi
32477echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32478echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32479if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32480 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32481echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32482if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32483 echo $ECHO_N "(cached) $ECHO_C" >&6
32484else
32485 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32486/* confdefs.h. */
32487_ACEOF
32488cat confdefs.h >>conftest.$ac_ext
32489cat >>conftest.$ac_ext <<_ACEOF
32490/* end confdefs.h. */
32ddf007
VS
32491/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32493#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32494
a0b9e27f 32495/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32496 which can conflict with char pthread_attr_setschedparam (); below.
32497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32498 <limits.h> exists even on freestanding compilers. */
32ddf007 32499
e6cc62c6
VS
32500#ifdef __STDC__
32501# include <limits.h>
32502#else
32503# include <assert.h>
32504#endif
32ddf007
VS
32505
32506#undef pthread_attr_setschedparam
32507
422107f9 32508/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32509#ifdef __cplusplus
32510extern "C"
32511{
32512#endif
422107f9 32513/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32514 builtin and then its argument prototype would still apply. */
32515char pthread_attr_setschedparam ();
009fead0
VZ
32516/* The GNU C library defines this for functions which it implements
32517 to always fail with ENOSYS. Some functions are actually named
32518 something starting with __ and the normal name is an alias. */
32519#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32520choke me
32521#else
e6cc62c6
VS
32522char (*f) () = pthread_attr_setschedparam;
32523#endif
32524#ifdef __cplusplus
32525}
009fead0
VZ
32526#endif
32527
e6cc62c6
VS
32528int
32529main ()
32530{
32531return f != pthread_attr_setschedparam;
32532 ;
32533 return 0;
32534}
32535_ACEOF
32536rm -f conftest.$ac_objext conftest$ac_exeext
32537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32538 (eval $ac_link) 2>conftest.er1
e6cc62c6 32539 ac_status=$?
32ddf007
VS
32540 grep -v '^ *+' conftest.er1 >conftest.err
32541 rm -f conftest.er1
32542 cat conftest.err >&5
e6cc62c6
VS
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); } &&
e1293dcf 32545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32547 (eval $ac_try) 2>&5
32548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; } &&
32551 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32553 (eval $ac_try) 2>&5
32554 ac_status=$?
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); }; }; then
32557 ac_cv_func_pthread_attr_setschedparam=yes
32558else
32559 echo "$as_me: failed program was:" >&5
32560sed 's/^/| /' conftest.$ac_ext >&5
32561
32562ac_cv_func_pthread_attr_setschedparam=no
32563fi
32ddf007
VS
32564rm -f conftest.err conftest.$ac_objext \
32565 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32566fi
32567echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32568echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32569if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32570 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32571echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32572if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32573 echo $ECHO_N "(cached) $ECHO_C" >&6
32574else
32575 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32576/* confdefs.h. */
32577_ACEOF
32578cat confdefs.h >>conftest.$ac_ext
32579cat >>conftest.$ac_ext <<_ACEOF
32580/* end confdefs.h. */
32ddf007
VS
32581/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32583#define sched_get_priority_max innocuous_sched_get_priority_max
32584
ef33c576 32585/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32586 which can conflict with char sched_get_priority_max (); below.
32587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32588 <limits.h> exists even on freestanding compilers. */
32ddf007 32589
e6cc62c6
VS
32590#ifdef __STDC__
32591# include <limits.h>
32592#else
32593# include <assert.h>
32594#endif
32ddf007
VS
32595
32596#undef sched_get_priority_max
32597
4f14bcd8 32598/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32599#ifdef __cplusplus
32600extern "C"
32601{
32602#endif
4f14bcd8 32603/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32604 builtin and then its argument prototype would still apply. */
32605char sched_get_priority_max ();
009fead0
VZ
32606/* The GNU C library defines this for functions which it implements
32607 to always fail with ENOSYS. Some functions are actually named
32608 something starting with __ and the normal name is an alias. */
32609#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32610choke me
32611#else
e6cc62c6
VS
32612char (*f) () = sched_get_priority_max;
32613#endif
32614#ifdef __cplusplus
32615}
009fead0
VZ
32616#endif
32617
e6cc62c6
VS
32618int
32619main ()
32620{
32621return f != sched_get_priority_max;
32622 ;
32623 return 0;
32624}
32625_ACEOF
32626rm -f conftest.$ac_objext conftest$ac_exeext
32627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32628 (eval $ac_link) 2>conftest.er1
e6cc62c6 32629 ac_status=$?
32ddf007
VS
32630 grep -v '^ *+' conftest.er1 >conftest.err
32631 rm -f conftest.er1
32632 cat conftest.err >&5
e6cc62c6
VS
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); } &&
e1293dcf 32635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32637 (eval $ac_try) 2>&5
32638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; } &&
32641 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32643 (eval $ac_try) 2>&5
32644 ac_status=$?
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); }; }; then
32647 ac_cv_func_sched_get_priority_max=yes
32648else
32649 echo "$as_me: failed program was:" >&5
32650sed 's/^/| /' conftest.$ac_ext >&5
32651
32652ac_cv_func_sched_get_priority_max=no
32653fi
32ddf007
VS
32654rm -f conftest.err conftest.$ac_objext \
32655 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32656fi
32657echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32658echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32659if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32660 HAVE_PRIOR_FUNCS=1
32661else
e6cc62c6
VS
32662 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32663echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32664if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32666else
e6cc62c6 32667 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32668LIBS="-lposix4 $LIBS"
e6cc62c6 32669cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32670/* confdefs.h. */
32671_ACEOF
32672cat confdefs.h >>conftest.$ac_ext
32673cat >>conftest.$ac_ext <<_ACEOF
32674/* end confdefs.h. */
32675
422107f9 32676/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32677#ifdef __cplusplus
32678extern "C"
32679#endif
422107f9 32680/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32681 builtin and then its argument prototype would still apply. */
32682char sched_get_priority_max ();
32683int
32684main ()
32685{
32686sched_get_priority_max ();
32687 ;
32688 return 0;
32689}
32690_ACEOF
32691rm -f conftest.$ac_objext conftest$ac_exeext
32692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32693 (eval $ac_link) 2>conftest.er1
e6cc62c6 32694 ac_status=$?
32ddf007
VS
32695 grep -v '^ *+' conftest.er1 >conftest.err
32696 rm -f conftest.er1
32697 cat conftest.err >&5
e6cc62c6
VS
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); } &&
e1293dcf 32700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32702 (eval $ac_try) 2>&5
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; } &&
32706 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32708 (eval $ac_try) 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
32712 ac_cv_lib_posix4_sched_get_priority_max=yes
32713else
32714 echo "$as_me: failed program was:" >&5
32715sed 's/^/| /' conftest.$ac_ext >&5
32716
32717ac_cv_lib_posix4_sched_get_priority_max=no
32718fi
32ddf007
VS
32719rm -f conftest.err conftest.$ac_objext \
32720 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32721LIBS=$ac_check_lib_save_LIBS
32722fi
32723echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32724echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32725if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32726
7274f1c7
RL
32727 HAVE_PRIOR_FUNCS=1
32728 POSIX4_LINK=" -lposix4"
e6cc62c6 32729
4f14bcd8 32730fi
463abc64 32731
e6cc62c6 32732
328a083c 32733fi
463abc64 32734
e6cc62c6 32735
7b4a847f 32736fi
579d8138 32737
e6cc62c6 32738
5c6fa7d2 32739fi
52127426 32740
8284b0c5 32741
7274f1c7 32742 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32743 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32744#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32745_ACEOF
463abc64 32746
7274f1c7 32747 else
e6cc62c6
VS
32748 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32749echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32750 fi
463abc64 32751
e6cc62c6
VS
32752 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32753echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32754if test "${ac_cv_func_pthread_cancel+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32756else
32757 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32758/* confdefs.h. */
32759_ACEOF
32760cat confdefs.h >>conftest.$ac_ext
32761cat >>conftest.$ac_ext <<_ACEOF
32762/* end confdefs.h. */
32ddf007
VS
32763/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32765#define pthread_cancel innocuous_pthread_cancel
32766
009fead0 32767/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32768 which can conflict with char pthread_cancel (); below.
32769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32770 <limits.h> exists even on freestanding compilers. */
32ddf007 32771
e6cc62c6
VS
32772#ifdef __STDC__
32773# include <limits.h>
32774#else
32775# include <assert.h>
32776#endif
32ddf007
VS
32777
32778#undef pthread_cancel
32779
422107f9 32780/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32781#ifdef __cplusplus
32782extern "C"
32783{
32784#endif
422107f9 32785/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32786 builtin and then its argument prototype would still apply. */
32787char pthread_cancel ();
009fead0
VZ
32788/* The GNU C library defines this for functions which it implements
32789 to always fail with ENOSYS. Some functions are actually named
32790 something starting with __ and the normal name is an alias. */
32791#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32792choke me
32793#else
e6cc62c6
VS
32794char (*f) () = pthread_cancel;
32795#endif
32796#ifdef __cplusplus
32797}
009fead0
VZ
32798#endif
32799
e6cc62c6
VS
32800int
32801main ()
32802{
32803return f != pthread_cancel;
32804 ;
32805 return 0;
32806}
32807_ACEOF
32808rm -f conftest.$ac_objext conftest$ac_exeext
32809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32810 (eval $ac_link) 2>conftest.er1
e6cc62c6 32811 ac_status=$?
32ddf007
VS
32812 grep -v '^ *+' conftest.er1 >conftest.err
32813 rm -f conftest.er1
32814 cat conftest.err >&5
e6cc62c6
VS
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } &&
e1293dcf 32817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819 (eval $ac_try) 2>&5
32820 ac_status=$?
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); }; } &&
32823 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32825 (eval $ac_try) 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; }; then
32829 ac_cv_func_pthread_cancel=yes
32830else
32831 echo "$as_me: failed program was:" >&5
32832sed 's/^/| /' conftest.$ac_ext >&5
32833
32834ac_cv_func_pthread_cancel=no
32835fi
32ddf007
VS
32836rm -f conftest.err conftest.$ac_objext \
32837 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32838fi
32839echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32840echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32841if test $ac_cv_func_pthread_cancel = yes; then
32842 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32843#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32844_ACEOF
4f14bcd8 32845
698dcdb6 32846else
e6cc62c6
VS
32847 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32848echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32849fi
32850
5c6fa7d2 32851
4f14bcd8 32852
e6cc62c6
VS
32853
32854 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32855echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32856if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32857 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32858else
e6cc62c6
VS
32859
32860 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32861/* confdefs.h. */
32862_ACEOF
32863cat confdefs.h >>conftest.$ac_ext
32864cat >>conftest.$ac_ext <<_ACEOF
32865/* end confdefs.h. */
4f14bcd8 32866#include <pthread.h>
e6cc62c6
VS
32867int
32868main ()
32869{
4f14bcd8 32870
7274f1c7
RL
32871 pthread_mutexattr_t attr;
32872 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32873
32874 ;
32875 return 0;
32876}
32877_ACEOF
32878rm -f conftest.$ac_objext
32879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 32880 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32881 ac_status=$?
32ddf007
VS
32882 grep -v '^ *+' conftest.er1 >conftest.err
32883 rm -f conftest.er1
32884 cat conftest.err >&5
e6cc62c6
VS
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); } &&
e1293dcf 32887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32889 (eval $ac_try) 2>&5
32890 ac_status=$?
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); }; } &&
32893 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32895 (eval $ac_try) 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; }; then
32899
7274f1c7 32900 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32901
3fed1840 32902else
e6cc62c6
VS
32903 echo "$as_me: failed program was:" >&5
32904sed 's/^/| /' conftest.$ac_ext >&5
32905
32906
7274f1c7 32907 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
32908
32909
247f5006 32910fi
32ddf007 32911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32912
e6cc62c6
VS
32913fi
32914echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32915echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 32916
7274f1c7 32917 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 32918 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32919#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 32920_ACEOF
4f14bcd8 32921
7274f1c7 32922 else
e6cc62c6
VS
32923 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32924echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32925if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32927else
32928
32929 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32930/* confdefs.h. */
32931_ACEOF
32932cat confdefs.h >>conftest.$ac_ext
32933cat >>conftest.$ac_ext <<_ACEOF
32934/* end confdefs.h. */
4f14bcd8 32935#include <pthread.h>
e6cc62c6
VS
32936int
32937main ()
32938{
4f14bcd8 32939
7274f1c7 32940 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
32941
32942 ;
32943 return 0;
32944}
32945_ACEOF
32946rm -f conftest.$ac_objext
32947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 32948 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32949 ac_status=$?
32ddf007
VS
32950 grep -v '^ *+' conftest.er1 >conftest.err
32951 rm -f conftest.er1
32952 cat conftest.err >&5
e6cc62c6
VS
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } &&
e1293dcf 32955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32957 (eval $ac_try) 2>&5
32958 ac_status=$?
32959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960 (exit $ac_status); }; } &&
32961 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32963 (eval $ac_try) 2>&5
32964 ac_status=$?
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); }; }; then
32967
7274f1c7 32968 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 32969
698dcdb6 32970else
e6cc62c6
VS
32971 echo "$as_me: failed program was:" >&5
32972sed 's/^/| /' conftest.$ac_ext >&5
32973
32974
7274f1c7 32975 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
32976
32977
247f5006 32978fi
32ddf007 32979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32980
e6cc62c6
VS
32981fi
32982echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32983echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 32984 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 32985 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32986#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 32987_ACEOF
3fed1840 32988
7274f1c7 32989 else
e6cc62c6
VS
32990 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32991echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
32992 fi
32993 fi
7274f1c7 32994 fi
3fed1840 32995
a0b9e27f
MB
32996else
32997 if test "$wxUSE_THREADS" = "yes" ; then
32998 case "${host}" in
32999 *-*-mingw32* )
e6cc62c6
VS
33000 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33001echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33002if test "${wx_cv_cflags_mthread+set}" = set; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 33004else
e6cc62c6 33005
ca8e52b3
VZ
33006 CFLAGS_OLD="$CFLAGS"
33007 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 33008 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33009/* confdefs.h. */
33010_ACEOF
33011cat confdefs.h >>conftest.$ac_ext
33012cat >>conftest.$ac_ext <<_ACEOF
33013/* end confdefs.h. */
33014
33015int
33016main ()
33017{
ca8e52b3 33018
e6cc62c6
VS
33019 ;
33020 return 0;
33021}
33022_ACEOF
33023rm -f conftest.$ac_objext
33024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 33025 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33026 ac_status=$?
32ddf007
VS
33027 grep -v '^ *+' conftest.er1 >conftest.err
33028 rm -f conftest.er1
33029 cat conftest.err >&5
e6cc62c6
VS
33030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031 (exit $ac_status); } &&
e1293dcf 33032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33034 (eval $ac_try) 2>&5
33035 ac_status=$?
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; } &&
33038 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33040 (eval $ac_try) 2>&5
33041 ac_status=$?
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
ca8e52b3
VZ
33044 wx_cv_cflags_mthread=yes
33045else
e6cc62c6
VS
33046 echo "$as_me: failed program was:" >&5
33047sed 's/^/| /' conftest.$ac_ext >&5
33048
33049wx_cv_cflags_mthread=no
33050
ca8e52b3 33051fi
32ddf007 33052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33053
ca8e52b3 33054
e6cc62c6
VS
33055fi
33056echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33057echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
33058
33059 if test "$wx_cv_cflags_mthread" = "yes"; then
33060 CXXFLAGS="$CXXFLAGS -mthreads"
33061 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33062 LDFLAGS="$LDFLAGS -mthreads"
33063 else
33064 CFLAGS="$CFLAGS_OLD"
33065 fi
a0b9e27f 33066 ;;
73d617c9
MB
33067 *-pc-os2*emx )
33068 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33069 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33070 LDFLAGS="$LDFLAGS -Zmt"
33071 ;;
a0b9e27f
MB
33072 esac
33073 fi
4f14bcd8
GD
33074fi
33075
33076if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 33077 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33078#define wxUSE_THREADS 1
e6cc62c6 33079_ACEOF
7b6058cd 33080
8284b0c5 33081
4f14bcd8 33082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 33083else
4f14bcd8 33084 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
33085 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33086echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
33087 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33088 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
33089 echo "$as_me:$LINENO: result: yes" >&5
33090echo "${ECHO_T}yes" >&6
4f14bcd8 33091 else
e6cc62c6
VS
33092 echo "$as_me:$LINENO: result: no" >&5
33093echo "${ECHO_T}no" >&6
4f14bcd8
GD
33094 fi
33095 fi
33096fi
33097
33098if test "$WXGTK20" = 1 ; then
e6cc62c6 33099 cat >>confdefs.h <<_ACEOF
4f14bcd8 33100#define __WXGTK20__ $WXGTK20
e6cc62c6 33101_ACEOF
4f14bcd8
GD
33102
33103 WXGTK12=1
10f2d63a 33104fi
4f14bcd8
GD
33105
33106if test "$WXGTK12" = 1 ; then
e6cc62c6 33107 cat >>confdefs.h <<_ACEOF
4f14bcd8 33108#define __WXGTK12__ $WXGTK12
e6cc62c6 33109_ACEOF
4f14bcd8 33110
10f2d63a 33111fi
698dcdb6 33112
4f14bcd8 33113if test "$WXGTK127" = 1 ; then
e6cc62c6 33114 cat >>confdefs.h <<_ACEOF
4f14bcd8 33115#define __WXGTK127__ $WXGTK127
e6cc62c6 33116_ACEOF
4f14bcd8 33117
698dcdb6 33118fi
10f2d63a 33119
0f87e84c
RR
33120if test "$WXGPE" = 1 ; then
33121 cat >>confdefs.h <<_ACEOF
33122#define __WXGPE__ $WXGPE
33123_ACEOF
33124
33125fi
33126
4f14bcd8
GD
33127WXDEBUG=
33128
33129if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33130 WXDEBUG="-g"
33131 wxUSE_OPTIMISE=no
698dcdb6 33132fi
4f14bcd8
GD
33133
33134if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33135 wxUSE_DEBUG_INFO=yes
33136 WXDEBUG="-ggdb"
10f2d63a
VZ
33137fi
33138
4f14bcd8 33139if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 33140 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33141#define WXDEBUG 1
e6cc62c6 33142_ACEOF
4f14bcd8
GD
33143
33144 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 33145else
4f14bcd8
GD
33146 if test "$wxUSE_GTK" = 1 ; then
33147 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33148 fi
33149fi
33150
33151if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 33152 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33153#define wxUSE_MEMORY_TRACING 1
e6cc62c6 33154_ACEOF
4f14bcd8 33155
e6cc62c6 33156 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33157#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 33158_ACEOF
4f14bcd8 33159
e6cc62c6 33160 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33161#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 33162_ACEOF
4f14bcd8
GD
33163
33164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33165fi
33166
33167if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 33168 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
33169fi
33170
33171PROFILE=
33172if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 33173 PROFILE=" -pg"
10f2d63a
VZ
33174fi
33175
009fead0
VZ
33176CODE_GEN_FLAGS=
33177CODE_GEN_FLAGS_CXX=
88e30f2b 33178if test "$GCC" = "yes" ; then
4f14bcd8
GD
33179 if test "$wxUSE_NO_RTTI" = "yes" ; then
33180 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 33181 fi
4f14bcd8
GD
33182 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33183 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33184 fi
33185 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33186 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33187 fi
1d1b75ac 33188
2b5f62a0 33189 case "${host}" in
1d1b75ac
VZ
33190 powerpc*-*-aix* )
33191 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33192 ;;
2b5f62a0
VZ
33193 *-hppa* )
33194 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33195 ;;
1d1b75ac 33196 esac
4f14bcd8
GD
33197fi
33198
af7b5345 33199OPTIMISE=
4f14bcd8 33200if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
33201 if test "$GCC" = yes ; then
33202 OPTIMISE="-O0"
33203 fi
4f14bcd8
GD
33204else
33205 if test "$GCC" = yes ; then
33206 OPTIMISE="-O2"
af7b5345
VZ
33207
33208 case "${host}" in
4f14bcd8
GD
33209 i586-*-*|i686-*-* )
33210 OPTIMISE="${OPTIMISE} "
33211 ;;
33212 esac
33213 else
33214 OPTIMISE="-O"
33215 fi
33216fi
33217
8d90d2f2 33218
65d8ef1e 33219if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 33220 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33221#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 33222_ACEOF
4f14bcd8 33223
8d90d2f2
VZ
33224
33225 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
33226fi
33227
65d8ef1e 33228if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 33229 cat >>confdefs.h <<\_ACEOF
65d8ef1e 33230#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 33231_ACEOF
65d8ef1e
VS
33232
33233fi
33234
8284b0c5 33235
10f2d63a 33236if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 33237 cat >>confdefs.h <<\_ACEOF
10f2d63a 33238#define wxUSE_GUI 1
e6cc62c6 33239_ACEOF
10f2d63a 33240
8284b0c5 33241
10f2d63a 33242 else
e6cc62c6 33243 cat >>confdefs.h <<\_ACEOF
10f2d63a 33244#define wxUSE_NOGUI 1
e6cc62c6 33245_ACEOF
10f2d63a
VZ
33246
33247fi
33248
8284b0c5 33249
10f2d63a 33250if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 33251 cat >>confdefs.h <<\_ACEOF
10f2d63a 33252#define wxUSE_UNIX 1
e6cc62c6 33253_ACEOF
10f2d63a
VZ
33254
33255fi
33256
8284b0c5 33257
f93ca9fd 33258if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 33259
f93ca9fd
VS
33260 HAVE_DL_FUNCS=0
33261 HAVE_SHL_FUNCS=0
33262 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33263 if test "$USE_DARWIN" = 1; then
33264 HAVE_DL_FUNCS=1
33265 else
e6cc62c6 33266
f93ca9fd 33267for ac_func in dlopen
83307f33 33268do
e6cc62c6
VS
33269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33270echo "$as_me:$LINENO: checking for $ac_func" >&5
33271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33272if eval "test \"\${$as_ac_var+set}\" = set"; then
33273 echo $ECHO_N "(cached) $ECHO_C" >&6
33274else
33275 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33276/* confdefs.h. */
33277_ACEOF
33278cat confdefs.h >>conftest.$ac_ext
33279cat >>conftest.$ac_ext <<_ACEOF
33280/* end confdefs.h. */
32ddf007
VS
33281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33283#define $ac_func innocuous_$ac_func
33284
83307f33 33285/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33286 which can conflict with char $ac_func (); below.
33287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33288 <limits.h> exists even on freestanding compilers. */
32ddf007 33289
e6cc62c6
VS
33290#ifdef __STDC__
33291# include <limits.h>
33292#else
33293# include <assert.h>
33294#endif
32ddf007
VS
33295
33296#undef $ac_func
33297
83307f33 33298/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33299#ifdef __cplusplus
33300extern "C"
33301{
33302#endif
83307f33 33303/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33304 builtin and then its argument prototype would still apply. */
33305char $ac_func ();
83307f33
VZ
33306/* The GNU C library defines this for functions which it implements
33307 to always fail with ENOSYS. Some functions are actually named
33308 something starting with __ and the normal name is an alias. */
33309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33310choke me
33311#else
e6cc62c6
VS
33312char (*f) () = $ac_func;
33313#endif
33314#ifdef __cplusplus
33315}
83307f33
VZ
33316#endif
33317
e6cc62c6
VS
33318int
33319main ()
33320{
33321return f != $ac_func;
33322 ;
33323 return 0;
33324}
33325_ACEOF
33326rm -f conftest.$ac_objext conftest$ac_exeext
33327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33328 (eval $ac_link) 2>conftest.er1
e6cc62c6 33329 ac_status=$?
32ddf007
VS
33330 grep -v '^ *+' conftest.er1 >conftest.err
33331 rm -f conftest.er1
33332 cat conftest.err >&5
e6cc62c6
VS
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); } &&
e1293dcf 33335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337 (eval $ac_try) 2>&5
33338 ac_status=$?
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); }; } &&
33341 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343 (eval $ac_try) 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
33347 eval "$as_ac_var=yes"
33348else
33349 echo "$as_me: failed program was:" >&5
33350sed 's/^/| /' conftest.$ac_ext >&5
33351
33352eval "$as_ac_var=no"
33353fi
32ddf007
VS
33354rm -f conftest.err conftest.$ac_objext \
33355 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33356fi
33357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33359if test `eval echo '${'$as_ac_var'}'` = yes; then
33360 cat >>confdefs.h <<_ACEOF
33361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33362_ACEOF
83307f33 33363
f93ca9fd
VS
33364 cat >>confdefs.h <<\_ACEOF
33365#define HAVE_DLOPEN 1
e6cc62c6 33366_ACEOF
e6cc62c6 33367
f93ca9fd 33368 HAVE_DL_FUNCS=1
e6cc62c6 33369
360d6699 33370else
e6cc62c6 33371
f93ca9fd
VS
33372 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33373echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33374if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33375 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 33376else
f93ca9fd
VS
33377 ac_check_lib_save_LIBS=$LIBS
33378LIBS="-ldl $LIBS"
33379cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33380/* confdefs.h. */
33381_ACEOF
33382cat confdefs.h >>conftest.$ac_ext
33383cat >>conftest.$ac_ext <<_ACEOF
33384/* end confdefs.h. */
5357c8e8 33385
f93ca9fd
VS
33386/* Override any gcc2 internal prototype to avoid an error. */
33387#ifdef __cplusplus
33388extern "C"
33389#endif
33390/* We use char because int might match the return type of a gcc2
33391 builtin and then its argument prototype would still apply. */
33392char dlopen ();
e6cc62c6
VS
33393int
33394main ()
33395{
f93ca9fd 33396dlopen ();
e6cc62c6
VS
33397 ;
33398 return 0;
33399}
33400_ACEOF
f93ca9fd
VS
33401rm -f conftest.$ac_objext conftest$ac_exeext
33402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33403 (eval $ac_link) 2>conftest.er1
e6cc62c6 33404 ac_status=$?
32ddf007
VS
33405 grep -v '^ *+' conftest.er1 >conftest.err
33406 rm -f conftest.er1
33407 cat conftest.err >&5
e6cc62c6
VS
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); } &&
e1293dcf 33410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412 (eval $ac_try) 2>&5
33413 ac_status=$?
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418 (eval $ac_try) 2>&5
33419 ac_status=$?
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; }; then
f93ca9fd 33422 ac_cv_lib_dl_dlopen=yes
360d6699 33423else
e6cc62c6
VS
33424 echo "$as_me: failed program was:" >&5
33425sed 's/^/| /' conftest.$ac_ext >&5
33426
f93ca9fd 33427ac_cv_lib_dl_dlopen=no
247f5006 33428fi
32ddf007
VS
33429rm -f conftest.err conftest.$ac_objext \
33430 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 33431LIBS=$ac_check_lib_save_LIBS
e6cc62c6 33432fi
f93ca9fd
VS
33433echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33434echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33435if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 33436
f93ca9fd
VS
33437 cat >>confdefs.h <<\_ACEOF
33438#define HAVE_DLOPEN 1
e6cc62c6 33439_ACEOF
360d6699 33440
f93ca9fd
VS
33441 HAVE_DL_FUNCS=1
33442 DL_LINK=" -ldl$DL_LINK"
698dcdb6 33443
f93ca9fd 33444else
e6cc62c6 33445
f93ca9fd
VS
33446
33447for ac_func in shl_load
afc31813 33448do
e6cc62c6
VS
33449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33450echo "$as_me:$LINENO: checking for $ac_func" >&5
33451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33452if eval "test \"\${$as_ac_var+set}\" = set"; then
33453 echo $ECHO_N "(cached) $ECHO_C" >&6
33454else
33455 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33456/* confdefs.h. */
33457_ACEOF
33458cat confdefs.h >>conftest.$ac_ext
33459cat >>conftest.$ac_ext <<_ACEOF
33460/* end confdefs.h. */
32ddf007
VS
33461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33463#define $ac_func innocuous_$ac_func
33464
afc31813 33465/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33466 which can conflict with char $ac_func (); below.
33467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33468 <limits.h> exists even on freestanding compilers. */
32ddf007 33469
e6cc62c6
VS
33470#ifdef __STDC__
33471# include <limits.h>
33472#else
33473# include <assert.h>
33474#endif
32ddf007
VS
33475
33476#undef $ac_func
33477
afc31813 33478/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33479#ifdef __cplusplus
33480extern "C"
33481{
33482#endif
afc31813 33483/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33484 builtin and then its argument prototype would still apply. */
33485char $ac_func ();
afc31813
VZ
33486/* The GNU C library defines this for functions which it implements
33487 to always fail with ENOSYS. Some functions are actually named
33488 something starting with __ and the normal name is an alias. */
33489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33490choke me
33491#else
e6cc62c6
VS
33492char (*f) () = $ac_func;
33493#endif
33494#ifdef __cplusplus
33495}
afc31813
VZ
33496#endif
33497
e6cc62c6
VS
33498int
33499main ()
33500{
33501return f != $ac_func;
33502 ;
33503 return 0;
33504}
33505_ACEOF
33506rm -f conftest.$ac_objext conftest$ac_exeext
33507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33508 (eval $ac_link) 2>conftest.er1
e6cc62c6 33509 ac_status=$?
32ddf007
VS
33510 grep -v '^ *+' conftest.er1 >conftest.err
33511 rm -f conftest.er1
33512 cat conftest.err >&5
e6cc62c6
VS
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); } &&
e1293dcf 33515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33517 (eval $ac_try) 2>&5
33518 ac_status=$?
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); }; } &&
33521 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33523 (eval $ac_try) 2>&5
33524 ac_status=$?
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); }; }; then
33527 eval "$as_ac_var=yes"
33528else
33529 echo "$as_me: failed program was:" >&5
33530sed 's/^/| /' conftest.$ac_ext >&5
33531
33532eval "$as_ac_var=no"
33533fi
32ddf007
VS
33534rm -f conftest.err conftest.$ac_objext \
33535 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33536fi
33537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33539if test `eval echo '${'$as_ac_var'}'` = yes; then
33540 cat >>confdefs.h <<_ACEOF
33541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33542_ACEOF
afc31813 33543
f93ca9fd
VS
33544 cat >>confdefs.h <<\_ACEOF
33545#define HAVE_SHL_LOAD 1
33546_ACEOF
afc31813 33547
f93ca9fd 33548 HAVE_SHL_FUNCS=1
5c6fa7d2 33549
a0b9e27f 33550else
e6cc62c6 33551
f93ca9fd
VS
33552 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33553echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33554if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33555 echo $ECHO_N "(cached) $ECHO_C" >&6
33556else
33557 ac_check_lib_save_LIBS=$LIBS
33558LIBS="-lshl_load $LIBS"
33559cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33560/* confdefs.h. */
33561_ACEOF
33562cat confdefs.h >>conftest.$ac_ext
33563cat >>conftest.$ac_ext <<_ACEOF
33564/* end confdefs.h. */
0470b1e6 33565
f93ca9fd
VS
33566/* Override any gcc2 internal prototype to avoid an error. */
33567#ifdef __cplusplus
33568extern "C"
33569#endif
33570/* We use char because int might match the return type of a gcc2
33571 builtin and then its argument prototype would still apply. */
33572char dld ();
e6cc62c6
VS
33573int
33574main ()
33575{
f93ca9fd 33576dld ();
e6cc62c6
VS
33577 ;
33578 return 0;
33579}
33580_ACEOF
f93ca9fd
VS
33581rm -f conftest.$ac_objext conftest$ac_exeext
33582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33583 (eval $ac_link) 2>conftest.er1
e6cc62c6 33584 ac_status=$?
32ddf007
VS
33585 grep -v '^ *+' conftest.er1 >conftest.err
33586 rm -f conftest.er1
33587 cat conftest.err >&5
e6cc62c6
VS
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); } &&
e1293dcf 33590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33592 (eval $ac_try) 2>&5
33593 ac_status=$?
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); }; } &&
33596 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; }; then
f93ca9fd 33602 ac_cv_lib_shl_load_dld=yes
0470b1e6 33603else
e6cc62c6
VS
33604 echo "$as_me: failed program was:" >&5
33605sed 's/^/| /' conftest.$ac_ext >&5
33606
f93ca9fd
VS
33607ac_cv_lib_shl_load_dld=no
33608fi
32ddf007
VS
33609rm -f conftest.err conftest.$ac_objext \
33610 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33611LIBS=$ac_check_lib_save_LIBS
33612fi
33613echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33614echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33615if test $ac_cv_lib_shl_load_dld = yes; then
33616
33617 HAVE_SHL_FUNCS=1
33618 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 33619
247f5006 33620fi
f93ca9fd 33621
a0b9e27f 33622
e6cc62c6 33623fi
f93ca9fd 33624done
6232543b 33625
0470b1e6 33626
f93ca9fd
VS
33627fi
33628
3fcdd07b 33629
f93ca9fd
VS
33630fi
33631done
e6cc62c6
VS
33632
33633
f93ca9fd
VS
33634 if test "$HAVE_DL_FUNCS" = 1; then
33635
33636for ac_func in dlerror
3fcdd07b 33637do
e6cc62c6
VS
33638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33639echo "$as_me:$LINENO: checking for $ac_func" >&5
33640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33641if eval "test \"\${$as_ac_var+set}\" = set"; then
33642 echo $ECHO_N "(cached) $ECHO_C" >&6
33643else
33644 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33645/* confdefs.h. */
33646_ACEOF
33647cat confdefs.h >>conftest.$ac_ext
33648cat >>conftest.$ac_ext <<_ACEOF
33649/* end confdefs.h. */
32ddf007
VS
33650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33652#define $ac_func innocuous_$ac_func
33653
3fcdd07b 33654/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33655 which can conflict with char $ac_func (); below.
33656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33657 <limits.h> exists even on freestanding compilers. */
32ddf007 33658
e6cc62c6
VS
33659#ifdef __STDC__
33660# include <limits.h>
33661#else
33662# include <assert.h>
33663#endif
32ddf007
VS
33664
33665#undef $ac_func
33666
3fcdd07b 33667/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33668#ifdef __cplusplus
33669extern "C"
33670{
33671#endif
3fcdd07b 33672/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33673 builtin and then its argument prototype would still apply. */
33674char $ac_func ();
3fcdd07b
VZ
33675/* The GNU C library defines this for functions which it implements
33676 to always fail with ENOSYS. Some functions are actually named
33677 something starting with __ and the normal name is an alias. */
33678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33679choke me
33680#else
e6cc62c6
VS
33681char (*f) () = $ac_func;
33682#endif
33683#ifdef __cplusplus
33684}
3fcdd07b
VZ
33685#endif
33686
e6cc62c6
VS
33687int
33688main ()
33689{
33690return f != $ac_func;
33691 ;
33692 return 0;
33693}
33694_ACEOF
33695rm -f conftest.$ac_objext conftest$ac_exeext
33696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33697 (eval $ac_link) 2>conftest.er1
e6cc62c6 33698 ac_status=$?
32ddf007
VS
33699 grep -v '^ *+' conftest.er1 >conftest.err
33700 rm -f conftest.er1
33701 cat conftest.err >&5
e6cc62c6
VS
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); } &&
e1293dcf 33704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33706 (eval $ac_try) 2>&5
33707 ac_status=$?
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); }; } &&
33710 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33712 (eval $ac_try) 2>&5
33713 ac_status=$?
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); }; }; then
33716 eval "$as_ac_var=yes"
33717else
33718 echo "$as_me: failed program was:" >&5
33719sed 's/^/| /' conftest.$ac_ext >&5
33720
33721eval "$as_ac_var=no"
33722fi
32ddf007
VS
33723rm -f conftest.err conftest.$ac_objext \
33724 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33725fi
33726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33728if test `eval echo '${'$as_ac_var'}'` = yes; then
33729 cat >>confdefs.h <<_ACEOF
33730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33731_ACEOF
f93ca9fd
VS
33732 cat >>confdefs.h <<\_ACEOF
33733#define HAVE_DLERROR 1
33734_ACEOF
3fcdd07b 33735
f93ca9fd 33736else
698dcdb6 33737
f93ca9fd
VS
33738 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33739echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33740if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
33741 echo $ECHO_N "(cached) $ECHO_C" >&6
33742else
f93ca9fd
VS
33743 ac_check_lib_save_LIBS=$LIBS
33744LIBS="-ldl $LIBS"
33745cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33746/* confdefs.h. */
33747_ACEOF
33748cat confdefs.h >>conftest.$ac_ext
33749cat >>conftest.$ac_ext <<_ACEOF
33750/* end confdefs.h. */
afc31813 33751
f93ca9fd
VS
33752/* Override any gcc2 internal prototype to avoid an error. */
33753#ifdef __cplusplus
33754extern "C"
33755#endif
33756/* We use char because int might match the return type of a gcc2
33757 builtin and then its argument prototype would still apply. */
33758char dlerror ();
e6cc62c6
VS
33759int
33760main ()
33761{
f93ca9fd 33762dlerror ();
e6cc62c6
VS
33763 ;
33764 return 0;
33765}
33766_ACEOF
f93ca9fd
VS
33767rm -f conftest.$ac_objext conftest$ac_exeext
33768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33769 (eval $ac_link) 2>conftest.er1
e6cc62c6 33770 ac_status=$?
32ddf007
VS
33771 grep -v '^ *+' conftest.er1 >conftest.err
33772 rm -f conftest.er1
33773 cat conftest.err >&5
e6cc62c6
VS
33774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775 (exit $ac_status); } &&
e1293dcf 33776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33778 (eval $ac_try) 2>&5
33779 ac_status=$?
33780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781 (exit $ac_status); }; } &&
33782 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33784 (eval $ac_try) 2>&5
33785 ac_status=$?
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); }; }; then
f93ca9fd 33788 ac_cv_lib_dl_dlerror=yes
10f2d63a 33789else
e6cc62c6
VS
33790 echo "$as_me: failed program was:" >&5
33791sed 's/^/| /' conftest.$ac_ext >&5
33792
f93ca9fd
VS
33793ac_cv_lib_dl_dlerror=no
33794fi
32ddf007
VS
33795rm -f conftest.err conftest.$ac_objext \
33796 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33797LIBS=$ac_check_lib_save_LIBS
33798fi
33799echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33800echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33801if test $ac_cv_lib_dl_dlerror = yes; then
33802 cat >>confdefs.h <<\_ACEOF
33803#define HAVE_DLERROR 1
33804_ACEOF
33805
33806fi
33807
33808
33809
33810fi
33811done
33812
33813 fi
33814 fi
33815
33816 if test "$HAVE_DL_FUNCS" = 0; then
33817 if test "$HAVE_SHL_FUNCS" = 0; then
33818 if test "$USE_UNIX" = 1; then
33819 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33820echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33821 wxUSE_DYNAMIC_LOADER=no
33822 wxUSE_DYNLIB_CLASS=no
33823 else
33824 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33825echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33826 fi
33827 fi
33828 fi
33829 fi
33830fi
33831
33832if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33833 cat >>confdefs.h <<\_ACEOF
33834#define wxUSE_DYNAMIC_LOADER 1
33835_ACEOF
33836
33837fi
33838if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33839 cat >>confdefs.h <<\_ACEOF
33840#define wxUSE_DYNLIB_CLASS 1
33841_ACEOF
33842
33843fi
33844
33845
33846
33847if test "$wxUSE_PLUGINS" = "yes" ; then
33848 if test "$wxUSE_SHARED" = "no" ; then
33849 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33850echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33851 wxUSE_PLUGINS=no
33852 fi
33853 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33854 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33855echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33856 wxUSE_PLUGINS=no
33857 fi
33858 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33859 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33860echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33861 wxUSE_PLUGINS=no
33862 fi
33863 if test "$wxUSE_PLUGINS" = "yes" ; then
33864 cat >>confdefs.h <<\_ACEOF
33865#define wxUSE_PLUGINS 1
33866_ACEOF
33867
33868 fi
33869fi
33870
33871
33872if test "$wxUSE_STL" = "yes"; then
33873 cat >>confdefs.h <<\_ACEOF
33874#define wxUSE_STL 1
33875_ACEOF
33876
33877fi
33878
33879if test "$wxUSE_APPLE_IEEE" = "yes"; then
33880 cat >>confdefs.h <<\_ACEOF
33881#define wxUSE_APPLE_IEEE 1
33882_ACEOF
33883
33884fi
33885
33886if test "$wxUSE_TIMER" = "yes"; then
33887 cat >>confdefs.h <<\_ACEOF
33888#define wxUSE_TIMER 1
33889_ACEOF
33890
33891fi
33892
33893WITH_PLUGIN_SDL=0
002ed9af 33894if test "$wxUSE_SOUND" = "yes"; then
f93ca9fd
VS
33895 if test "$USE_UNIX" = "1" ; then
33896
33897for ac_header in sys/soundcard.h
33898do
33899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33900if eval "test \"\${$as_ac_Header+set}\" = set"; then
33901 echo "$as_me:$LINENO: checking for $ac_header" >&5
33902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33903if eval "test \"\${$as_ac_Header+set}\" = set"; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
33905fi
33906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33908else
33909 # Is the header compilable?
33910echo "$as_me:$LINENO: checking $ac_header usability" >&5
33911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 33912cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33913/* confdefs.h. */
33914_ACEOF
33915cat confdefs.h >>conftest.$ac_ext
33916cat >>conftest.$ac_ext <<_ACEOF
33917/* end confdefs.h. */
f93ca9fd
VS
33918$ac_includes_default
33919#include <$ac_header>
e6cc62c6
VS
33920_ACEOF
33921rm -f conftest.$ac_objext
33922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 33923 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33924 ac_status=$?
32ddf007
VS
33925 grep -v '^ *+' conftest.er1 >conftest.err
33926 rm -f conftest.er1
33927 cat conftest.err >&5
e6cc62c6
VS
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); } &&
e1293dcf 33930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33932 (eval $ac_try) 2>&5
33933 ac_status=$?
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; } &&
33936 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; }; then
f93ca9fd 33942 ac_header_compiler=yes
10f2d63a 33943else
e6cc62c6
VS
33944 echo "$as_me: failed program was:" >&5
33945sed 's/^/| /' conftest.$ac_ext >&5
33946
f93ca9fd 33947ac_header_compiler=no
10f2d63a 33948fi
32ddf007 33949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
33950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33951echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 33952
f93ca9fd
VS
33953# Is the header present?
33954echo "$as_me:$LINENO: checking $ac_header presence" >&5
33955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33956cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33957/* confdefs.h. */
33958_ACEOF
33959cat confdefs.h >>conftest.$ac_ext
33960cat >>conftest.$ac_ext <<_ACEOF
33961/* end confdefs.h. */
f93ca9fd 33962#include <$ac_header>
e6cc62c6 33963_ACEOF
f93ca9fd
VS
33964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 33966 ac_status=$?
f95e4495
VS
33967 grep -v '^ *+' conftest.er1 >conftest.err
33968 rm -f conftest.er1
33969 cat conftest.err >&5
e6cc62c6 33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
33971 (exit $ac_status); } >/dev/null; then
33972 if test -s conftest.err; then
33973 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 33974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
33975 else
33976 ac_cpp_err=
33977 fi
33978else
33979 ac_cpp_err=yes
33980fi
33981if test -z "$ac_cpp_err"; then
33982 ac_header_preproc=yes
33983else
33984 echo "$as_me: failed program was:" >&5
33985sed 's/^/| /' conftest.$ac_ext >&5
33986
33987 ac_header_preproc=no
33988fi
33989rm -f conftest.err conftest.$ac_ext
33990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33991echo "${ECHO_T}$ac_header_preproc" >&6
33992
33993# So? What about this header?
32ddf007
VS
33994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33995 yes:no: )
f93ca9fd
VS
33996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
33998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34000 ac_header_preproc=yes
f93ca9fd 34001 ;;
32ddf007 34002 no:yes:* )
f93ca9fd
VS
34003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
34005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
34011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
34013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
34015 (
34016 cat <<\_ASBOX
32ddf007
VS
34017## ----------------------------------------- ##
34018## Report this to wx-dev@lists.wxwindows.org ##
34019## ----------------------------------------- ##
f93ca9fd
VS
34020_ASBOX
34021 ) |
34022 sed "s/^/$as_me: WARNING: /" >&2
34023 ;;
34024esac
34025echo "$as_me:$LINENO: checking for $ac_header" >&5
34026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34027if eval "test \"\${$as_ac_Header+set}\" = set"; then
34028 echo $ECHO_N "(cached) $ECHO_C" >&6
34029else
32ddf007 34030 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
34031fi
34032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34034
34035fi
34036if test `eval echo '${'$as_ac_Header'}'` = yes; then
34037 cat >>confdefs.h <<_ACEOF
34038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34039_ACEOF
34040
34041fi
34042
34043done
34044
34045
34046 if test "$wxUSE_LIBSDL" != "no"; then
34047
34048# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34049if test "${with_sdl_prefix+set}" = set; then
34050 withval="$with_sdl_prefix"
34051 sdl_prefix="$withval"
34052else
34053 sdl_prefix=""
34054fi;
34055
34056# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34057if test "${with_sdl_exec_prefix+set}" = set; then
34058 withval="$with_sdl_exec_prefix"
34059 sdl_exec_prefix="$withval"
34060else
34061 sdl_exec_prefix=""
34062fi;
34063# Check whether --enable-sdltest or --disable-sdltest was given.
34064if test "${enable_sdltest+set}" = set; then
34065 enableval="$enable_sdltest"
34066
34067else
34068 enable_sdltest=yes
34069fi;
34070
34071 if test x$sdl_exec_prefix != x ; then
34072 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34073 if test x${SDL_CONFIG+set} != xset ; then
34074 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34075 fi
34076 fi
34077 if test x$sdl_prefix != x ; then
34078 sdl_args="$sdl_args --prefix=$sdl_prefix"
34079 if test x${SDL_CONFIG+set} != xset ; then
34080 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34081 fi
34082 fi
34083
34084
34085 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34086 # Extract the first word of "sdl-config", so it can be a program name with args.
34087set dummy sdl-config; ac_word=$2
34088echo "$as_me:$LINENO: checking for $ac_word" >&5
34089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34090if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34091 echo $ECHO_N "(cached) $ECHO_C" >&6
34092else
34093 case $SDL_CONFIG in
34094 [\\/]* | ?:[\\/]*)
34095 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34096 ;;
34097 *)
34098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34099for as_dir in $PATH
34100do
34101 IFS=$as_save_IFS
34102 test -z "$as_dir" && as_dir=.
34103 for ac_exec_ext in '' $ac_executable_extensions; do
34104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34105 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34107 break 2
34108 fi
34109done
34110done
34111
34112 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34113 ;;
34114esac
34115fi
34116SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34117
34118if test -n "$SDL_CONFIG"; then
34119 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34120echo "${ECHO_T}$SDL_CONFIG" >&6
34121else
34122 echo "$as_me:$LINENO: result: no" >&5
34123echo "${ECHO_T}no" >&6
34124fi
34125
34126 min_sdl_version=1.2.0
34127 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34128echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34129 no_sdl=""
34130 if test "$SDL_CONFIG" = "no" ; then
34131 no_sdl=yes
34132 else
34133 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34134 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34135
34136 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34137 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34138 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34140 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34141 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34142 if test "x$enable_sdltest" = "xyes" ; then
34143 ac_save_CFLAGS="$CFLAGS"
34144 ac_save_LIBS="$LIBS"
34145 CFLAGS="$CFLAGS $SDL_CFLAGS"
34146 LIBS="$LIBS $SDL_LIBS"
34147 rm -f conf.sdltest
34148 if test "$cross_compiling" = yes; then
34149 echo $ac_n "cross compiling; assumed OK... $ac_c"
34150else
34151 cat >conftest.$ac_ext <<_ACEOF
34152/* confdefs.h. */
34153_ACEOF
34154cat confdefs.h >>conftest.$ac_ext
34155cat >>conftest.$ac_ext <<_ACEOF
34156/* end confdefs.h. */
34157
34158#include <stdio.h>
34159#include <stdlib.h>
34160#include <string.h>
34161#include "SDL.h"
34162
34163char*
34164my_strdup (char *str)
34165{
34166 char *new_str;
34167
34168 if (str)
34169 {
34170 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34171 strcpy (new_str, str);
34172 }
34173 else
34174 new_str = NULL;
34175
34176 return new_str;
34177}
34178
34179int main (int argc, char *argv[])
34180{
34181 int major, minor, micro;
34182 char *tmp_version;
34183
34184 /* This hangs on some systems (?)
34185 system ("touch conf.sdltest");
34186 */
34187 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34188
34189 /* HP/UX 9 (%@#!) writes to sscanf strings */
34190 tmp_version = my_strdup("$min_sdl_version");
34191 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34192 printf("%s, bad version string\n", "$min_sdl_version");
34193 exit(1);
34194 }
34195
34196 if (($sdl_major_version > major) ||
34197 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34198 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34199 {
34200 return 0;
34201 }
34202 else
34203 {
34204 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34205 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34206 printf("*** best to upgrade to the required version.\n");
34207 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34208 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34209 printf("*** config.cache before re-running configure\n");
34210 return 1;
34211 }
34212}
34213
34214
34215_ACEOF
34216rm -f conftest$ac_exeext
34217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34218 (eval $ac_link) 2>&5
f95e4495
VS
34219 ac_status=$?
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 34221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
34222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34223 (eval $ac_try) 2>&5
34224 ac_status=$?
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); }; }; then
f93ca9fd 34227 :
e6cc62c6 34228else
f93ca9fd
VS
34229 echo "$as_me: program exited with status $ac_status" >&5
34230echo "$as_me: failed program was:" >&5
e6cc62c6
VS
34231sed 's/^/| /' conftest.$ac_ext >&5
34232
f93ca9fd
VS
34233( exit $ac_status )
34234no_sdl=yes
e6cc62c6 34235fi
32ddf007 34236rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34237fi
f93ca9fd
VS
34238 CFLAGS="$ac_save_CFLAGS"
34239 LIBS="$ac_save_LIBS"
34240 fi
34241 fi
34242 if test "x$no_sdl" = x ; then
34243 echo "$as_me:$LINENO: result: yes" >&5
34244echo "${ECHO_T}yes" >&6
0e012a93 34245
f93ca9fd
VS
34246 EXTRALIBS_SDL="$SDL_LIBS"
34247 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34248 cat >>confdefs.h <<\_ACEOF
34249#define wxUSE_LIBSDL 1
34250_ACEOF
34251
34252
34253 else
34254 echo "$as_me:$LINENO: result: no" >&5
34255echo "${ECHO_T}no" >&6
34256 if test "$SDL_CONFIG" = "no" ; then
34257 echo "*** The sdl-config script installed by SDL could not be found"
34258 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34259 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34260 echo "*** full path to sdl-config."
34261 else
34262 if test -f conf.sdltest ; then
34263 :
34264 else
34265 echo "*** Could not run SDL test program, checking why..."
34266 CFLAGS="$CFLAGS $SDL_CFLAGS"
34267 LIBS="$LIBS $SDL_LIBS"
34268 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34269/* confdefs.h. */
34270_ACEOF
34271cat confdefs.h >>conftest.$ac_ext
34272cat >>conftest.$ac_ext <<_ACEOF
34273/* end confdefs.h. */
34274
f93ca9fd
VS
34275#include <stdio.h>
34276#include "SDL.h"
34277
34278int main(int argc, char *argv[])
34279{ return 0; }
34280#undef main
34281#define main K_and_R_C_main
34282
e6cc62c6
VS
34283int
34284main ()
34285{
f93ca9fd 34286 return 0;
e6cc62c6
VS
34287 ;
34288 return 0;
34289}
34290_ACEOF
34291rm -f conftest.$ac_objext conftest$ac_exeext
34292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34293 (eval $ac_link) 2>conftest.er1
e6cc62c6 34294 ac_status=$?
32ddf007
VS
34295 grep -v '^ *+' conftest.er1 >conftest.err
34296 rm -f conftest.er1
34297 cat conftest.err >&5
e6cc62c6
VS
34298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299 (exit $ac_status); } &&
e1293dcf 34300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34302 (eval $ac_try) 2>&5
34303 ac_status=$?
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); }; } &&
34306 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34308 (eval $ac_try) 2>&5
34309 ac_status=$?
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); }; }; then
f93ca9fd
VS
34312 echo "*** The test program compiled, but did not run. This usually means"
34313 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34314 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34315 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34316 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34317 echo "*** is required on your system"
34318 echo "***"
34319 echo "*** If you have an old version installed, it is best to remove it, although"
34320 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
34321else
34322 echo "$as_me: failed program was:" >&5
34323sed 's/^/| /' conftest.$ac_ext >&5
34324
f93ca9fd
VS
34325 echo "*** The test program failed to compile or link. See the file config.log for the"
34326 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34327 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34328 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 34329fi
32ddf007
VS
34330rm -f conftest.err conftest.$ac_objext \
34331 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34332 CFLAGS="$ac_save_CFLAGS"
34333 LIBS="$ac_save_LIBS"
34334 fi
34335 fi
34336 SDL_CFLAGS=""
34337 SDL_LIBS=""
34338 wxUSE_LIBSDL="no"
34339 fi
34340
34341
34342 rm -f conf.sdltest
34343
34344 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34345 WITH_PLUGIN_SDL=1
34346 fi
34347 fi
34348 fi
34349
34350 cat >>confdefs.h <<\_ACEOF
002ed9af 34351#define wxUSE_SOUND 1
f93ca9fd
VS
34352_ACEOF
34353
34354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 34355fi
afc31813 34356
f93ca9fd
VS
34357if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34358 cat >>confdefs.h <<\_ACEOF
34359#define wxUSE_CMDLINE_PARSER 1
34360_ACEOF
34361
34362fi
e6cc62c6 34363
f93ca9fd
VS
34364if test "$wxUSE_STOPWATCH" = "yes"; then
34365 cat >>confdefs.h <<\_ACEOF
34366#define wxUSE_STOPWATCH 1
34367_ACEOF
e6cc62c6 34368
6232543b 34369fi
b089607b 34370
f93ca9fd
VS
34371if test "$wxUSE_DATETIME" = "yes"; then
34372 cat >>confdefs.h <<\_ACEOF
34373#define wxUSE_DATETIME 1
34374_ACEOF
e6cc62c6 34375
f93ca9fd
VS
34376fi
34377
34378if test "$wxUSE_FILE" = "yes"; then
34379 cat >>confdefs.h <<\_ACEOF
34380#define wxUSE_FILE 1
34381_ACEOF
0e012a93 34382
1e487827 34383fi
afc31813 34384
f93ca9fd
VS
34385if test "$wxUSE_FFILE" = "yes"; then
34386 cat >>confdefs.h <<\_ACEOF
34387#define wxUSE_FFILE 1
34388_ACEOF
34389
34390fi
34391
34392if test "$wxUSE_FILESYSTEM" = "yes"; then
34393 cat >>confdefs.h <<\_ACEOF
34394#define wxUSE_FILESYSTEM 1
34395_ACEOF
34396
34397fi
34398
34399if test "$wxUSE_FS_ZIP" = "yes"; then
34400 cat >>confdefs.h <<\_ACEOF
34401#define wxUSE_FS_ZIP 1
34402_ACEOF
34403
34404fi
34405
34406if test "$wxUSE_ZIPSTREAM" = "yes"; then
34407 cat >>confdefs.h <<\_ACEOF
34408#define wxUSE_ZIPSTREAM 1
34409_ACEOF
34410
34411fi
34412
34413if test "$wxUSE_GZSTREAM" = "yes"; then
34414 cat >>confdefs.h <<\_ACEOF
34415#define wxUSE_GZSTREAM 1
34416_ACEOF
34417
34418fi
34419
34420if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34421 cat >>confdefs.h <<\_ACEOF
34422#define wxUSE_ON_FATAL_EXCEPTION 1
34423_ACEOF
34424
34425fi
34426
34427if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34428 cat >>confdefs.h <<\_ACEOF
34429#define wxUSE_SNGLINST_CHECKER 1
34430_ACEOF
34431
34432fi
34433
34434if test "$wxUSE_BUSYINFO" = "yes"; then
34435 cat >>confdefs.h <<\_ACEOF
34436#define wxUSE_BUSYINFO 1
34437_ACEOF
34438
34439fi
34440
34441if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34442 cat >>confdefs.h <<\_ACEOF
34443#define wxUSE_STD_IOSTREAM 1
34444_ACEOF
34445
34446fi
34447
34448if test "$wxUSE_TEXTBUFFER" = "yes"; then
34449 cat >>confdefs.h <<\_ACEOF
34450#define wxUSE_TEXTBUFFER 1
34451_ACEOF
34452
34453fi
34454
34455if test "$wxUSE_TEXTFILE" = "yes"; then
34456 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34457 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34458echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34459 else
34460 cat >>confdefs.h <<\_ACEOF
34461#define wxUSE_TEXTFILE 1
34462_ACEOF
34463
34464 fi
34465fi
34466
34467if test "$wxUSE_CONFIG" = "yes" ; then
34468 if test "$wxUSE_TEXTFILE" != "yes"; then
34469 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34470echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34471 else
34472 cat >>confdefs.h <<\_ACEOF
34473#define wxUSE_CONFIG 1
34474_ACEOF
34475
34476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34477 fi
34478fi
34479
34480if test "$wxUSE_INTL" = "yes" ; then
34481 if test "$wxUSE_FILE" != "yes"; then
34482 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34483echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34484 else
34485 cat >>confdefs.h <<\_ACEOF
34486#define wxUSE_INTL 1
34487_ACEOF
34488
34489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34490 GUIDIST="$GUIDIST INTL_DIST"
34491 fi
34492fi
34493
34494if test "$wxUSE_LOG" = "yes"; then
34495 cat >>confdefs.h <<\_ACEOF
34496#define wxUSE_LOG 1
34497_ACEOF
34498
34499
34500 if test "$wxUSE_LOGGUI" = "yes"; then
34501 cat >>confdefs.h <<\_ACEOF
34502#define wxUSE_LOGGUI 1
34503_ACEOF
34504
34505 fi
34506
34507 if test "$wxUSE_LOGWINDOW" = "yes"; then
34508 cat >>confdefs.h <<\_ACEOF
34509#define wxUSE_LOGWINDOW 1
34510_ACEOF
34511
34512 fi
34513
34514 if test "$wxUSE_LOGDIALOG" = "yes"; then
34515 cat >>confdefs.h <<\_ACEOF
34516#define wxUSE_LOG_DIALOG 1
34517_ACEOF
34518
3a922bb4 34519 fi
0feee163 34520fi
51a9faba 34521
f93ca9fd
VS
34522if test "$wxUSE_LONGLONG" = "yes"; then
34523 cat >>confdefs.h <<\_ACEOF
34524#define wxUSE_LONGLONG 1
34525_ACEOF
e6cc62c6 34526
f93ca9fd
VS
34527fi
34528
34529if test "$wxUSE_GEOMETRY" = "yes"; then
34530 cat >>confdefs.h <<\_ACEOF
34531#define wxUSE_GEOMETRY 1
e6cc62c6 34532_ACEOF
51a9faba 34533
f93ca9fd 34534fi
e6cc62c6 34535
f93ca9fd
VS
34536if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34537 cat >>confdefs.h <<\_ACEOF
34538#define wxUSE_DIALUP_MANAGER 1
34539_ACEOF
51a9faba 34540
f93ca9fd
VS
34541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34542fi
e6cc62c6 34543
f93ca9fd
VS
34544if test "$wxUSE_STREAMS" = "yes" ; then
34545 cat >>confdefs.h <<\_ACEOF
34546#define wxUSE_STREAMS 1
e6cc62c6 34547_ACEOF
e6cc62c6 34548
f93ca9fd 34549fi
e6cc62c6 34550
9711d31e 34551
f93ca9fd
VS
34552if test "$wxUSE_DATETIME" = "yes"; then
34553
34554for ac_func in strptime
34555do
34556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34557echo "$as_me:$LINENO: checking for $ac_func" >&5
34558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34559if eval "test \"\${$as_ac_var+set}\" = set"; then
34560 echo $ECHO_N "(cached) $ECHO_C" >&6
34561else
34562 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34563/* confdefs.h. */
34564_ACEOF
34565cat confdefs.h >>conftest.$ac_ext
34566cat >>conftest.$ac_ext <<_ACEOF
34567/* end confdefs.h. */
32ddf007
VS
34568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34570#define $ac_func innocuous_$ac_func
34571
f93ca9fd
VS
34572/* System header to define __stub macros and hopefully few prototypes,
34573 which can conflict with char $ac_func (); below.
34574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34575 <limits.h> exists even on freestanding compilers. */
32ddf007 34576
f93ca9fd
VS
34577#ifdef __STDC__
34578# include <limits.h>
34579#else
34580# include <assert.h>
34581#endif
32ddf007
VS
34582
34583#undef $ac_func
34584
f93ca9fd
VS
34585/* Override any gcc2 internal prototype to avoid an error. */
34586#ifdef __cplusplus
34587extern "C"
34588{
34589#endif
34590/* We use char because int might match the return type of a gcc2
34591 builtin and then its argument prototype would still apply. */
34592char $ac_func ();
34593/* The GNU C library defines this for functions which it implements
34594 to always fail with ENOSYS. Some functions are actually named
34595 something starting with __ and the normal name is an alias. */
34596#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34597choke me
34598#else
34599char (*f) () = $ac_func;
34600#endif
34601#ifdef __cplusplus
34602}
34603#endif
e6cc62c6
VS
34604
34605int
34606main ()
34607{
f93ca9fd 34608return f != $ac_func;
e6cc62c6
VS
34609 ;
34610 return 0;
34611}
34612_ACEOF
f93ca9fd
VS
34613rm -f conftest.$ac_objext conftest$ac_exeext
34614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34615 (eval $ac_link) 2>conftest.er1
e6cc62c6 34616 ac_status=$?
32ddf007
VS
34617 grep -v '^ *+' conftest.er1 >conftest.err
34618 rm -f conftest.er1
34619 cat conftest.err >&5
e6cc62c6
VS
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); } &&
e1293dcf 34622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34624 (eval $ac_try) 2>&5
34625 ac_status=$?
34626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627 (exit $ac_status); }; } &&
34628 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630 (eval $ac_try) 2>&5
34631 ac_status=$?
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); }; }; then
f93ca9fd 34634 eval "$as_ac_var=yes"
afc31813 34635else
e6cc62c6
VS
34636 echo "$as_me: failed program was:" >&5
34637sed 's/^/| /' conftest.$ac_ext >&5
34638
f93ca9fd
VS
34639eval "$as_ac_var=no"
34640fi
32ddf007
VS
34641rm -f conftest.err conftest.$ac_objext \
34642 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34643fi
34644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34646if test `eval echo '${'$as_ac_var'}'` = yes; then
34647 cat >>confdefs.h <<_ACEOF
34648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34649_ACEOF
34650
34651fi
34652done
34653
34654
34655 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34656echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34657if test "${wx_cv_var_timezone+set}" = set; then
34658 echo $ECHO_N "(cached) $ECHO_C" >&6
34659else
34660
34661 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34662/* confdefs.h. */
34663_ACEOF
34664cat confdefs.h >>conftest.$ac_ext
34665cat >>conftest.$ac_ext <<_ACEOF
34666/* end confdefs.h. */
51a9faba 34667
f93ca9fd 34668 #include <time.h>
e6cc62c6
VS
34669
34670int
34671main ()
34672{
51a9faba 34673
f93ca9fd
VS
34674 int tz;
34675 tz = timezone;
e6cc62c6
VS
34676
34677 ;
34678 return 0;
34679}
34680_ACEOF
34681rm -f conftest.$ac_objext
34682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34683 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34684 ac_status=$?
32ddf007
VS
34685 grep -v '^ *+' conftest.er1 >conftest.err
34686 rm -f conftest.er1
34687 cat conftest.err >&5
e6cc62c6
VS
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); } &&
e1293dcf 34690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34693 ac_status=$?
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; } &&
34696 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
34697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34698 (eval $ac_try) 2>&5
34699 ac_status=$?
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); }; }; then
8284b0c5 34702
f93ca9fd 34703 wx_cv_var_timezone=timezone
dc3d889d 34704
f93ca9fd
VS
34705else
34706 echo "$as_me: failed program was:" >&5
34707sed 's/^/| /' conftest.$ac_ext >&5
156b2523 34708
e6cc62c6 34709
f93ca9fd 34710 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34711/* confdefs.h. */
34712_ACEOF
34713cat confdefs.h >>conftest.$ac_ext
34714cat >>conftest.$ac_ext <<_ACEOF
34715/* end confdefs.h. */
f93ca9fd
VS
34716
34717 #include <time.h>
34718
34719int
34720main ()
34721{
34722
34723 int tz;
34724 tz = _timezone;
34725
34726 ;
34727 return 0;
34728}
e6cc62c6
VS
34729_ACEOF
34730rm -f conftest.$ac_objext
34731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34732 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34733 ac_status=$?
32ddf007
VS
34734 grep -v '^ *+' conftest.er1 >conftest.err
34735 rm -f conftest.er1
34736 cat conftest.err >&5
e6cc62c6
VS
34737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); } &&
e1293dcf 34739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741 (eval $ac_try) 2>&5
34742 ac_status=$?
34743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744 (exit $ac_status); }; } &&
34745 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34747 (eval $ac_try) 2>&5
34748 ac_status=$?
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); }; }; then
f93ca9fd
VS
34751
34752 wx_cv_var_timezone=_timezone
34753
e6cc62c6
VS
34754else
34755 echo "$as_me: failed program was:" >&5
34756sed 's/^/| /' conftest.$ac_ext >&5
34757
e6cc62c6 34758
f93ca9fd 34759 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34760/* confdefs.h. */
34761_ACEOF
34762cat confdefs.h >>conftest.$ac_ext
34763cat >>conftest.$ac_ext <<_ACEOF
34764/* end confdefs.h. */
f93ca9fd
VS
34765
34766 #include <time.h>
34767
34768int
34769main ()
34770{
34771
34772 int tz;
34773 tz = __timezone;
34774
34775 ;
34776 return 0;
34777}
e6cc62c6 34778_ACEOF
f93ca9fd
VS
34779rm -f conftest.$ac_objext
34780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34781 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34782 ac_status=$?
32ddf007
VS
34783 grep -v '^ *+' conftest.er1 >conftest.err
34784 rm -f conftest.er1
34785 cat conftest.err >&5
e6cc62c6 34786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 34787 (exit $ac_status); } &&
e1293dcf 34788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34790 (eval $ac_try) 2>&5
34791 ac_status=$?
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); }; } &&
34794 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
34795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796 (eval $ac_try) 2>&5
34797 ac_status=$?
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); }; }; then
34800
34801 wx_cv_var_timezone=__timezone
34802
e6cc62c6
VS
34803else
34804 echo "$as_me: failed program was:" >&5
34805sed 's/^/| /' conftest.$ac_ext >&5
34806
e6cc62c6 34807
f93ca9fd
VS
34808 if test "$USE_DOS" = 0 ; then
34809 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34810echo "$as_me: WARNING: no timezone variable" >&2;}
34811 fi
34812
e6cc62c6 34813
10f2d63a 34814fi
32ddf007 34815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 34816
e6cc62c6 34817
247f5006 34818fi
32ddf007 34819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34820
10f2d63a 34821
f93ca9fd 34822fi
32ddf007 34823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b089607b 34824
10f2d63a 34825
dc3d889d 34826fi
f93ca9fd
VS
34827echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34828echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 34829
f93ca9fd
VS
34830 if test "x$wx_cv_var_timezone" != x ; then
34831 cat >>confdefs.h <<_ACEOF
34832#define WX_TIMEZONE $wx_cv_var_timezone
34833_ACEOF
8284b0c5 34834
f93ca9fd 34835 fi
b089607b 34836
e6cc62c6 34837
f93ca9fd 34838for ac_func in localtime
10f2d63a 34839do
e6cc62c6
VS
34840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34841echo "$as_me:$LINENO: checking for $ac_func" >&5
34842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34843if eval "test \"\${$as_ac_var+set}\" = set"; then
34844 echo $ECHO_N "(cached) $ECHO_C" >&6
34845else
34846 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34847/* confdefs.h. */
34848_ACEOF
34849cat confdefs.h >>conftest.$ac_ext
34850cat >>conftest.$ac_ext <<_ACEOF
34851/* end confdefs.h. */
32ddf007
VS
34852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34854#define $ac_func innocuous_$ac_func
34855
10f2d63a 34856/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34857 which can conflict with char $ac_func (); below.
34858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34859 <limits.h> exists even on freestanding compilers. */
32ddf007 34860
e6cc62c6
VS
34861#ifdef __STDC__
34862# include <limits.h>
34863#else
34864# include <assert.h>
34865#endif
32ddf007
VS
34866
34867#undef $ac_func
34868
10f2d63a 34869/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34870#ifdef __cplusplus
34871extern "C"
34872{
34873#endif
10f2d63a 34874/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34875 builtin and then its argument prototype would still apply. */
34876char $ac_func ();
10f2d63a
VZ
34877/* The GNU C library defines this for functions which it implements
34878 to always fail with ENOSYS. Some functions are actually named
34879 something starting with __ and the normal name is an alias. */
34880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34881choke me
34882#else
e6cc62c6
VS
34883char (*f) () = $ac_func;
34884#endif
34885#ifdef __cplusplus
34886}
10f2d63a
VZ
34887#endif
34888
e6cc62c6
VS
34889int
34890main ()
34891{
34892return f != $ac_func;
34893 ;
34894 return 0;
34895}
34896_ACEOF
34897rm -f conftest.$ac_objext conftest$ac_exeext
34898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34899 (eval $ac_link) 2>conftest.er1
e6cc62c6 34900 ac_status=$?
32ddf007
VS
34901 grep -v '^ *+' conftest.er1 >conftest.err
34902 rm -f conftest.er1
34903 cat conftest.err >&5
e6cc62c6
VS
34904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905 (exit $ac_status); } &&
e1293dcf 34906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34908 (eval $ac_try) 2>&5
34909 ac_status=$?
34910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34911 (exit $ac_status); }; } &&
34912 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34914 (eval $ac_try) 2>&5
34915 ac_status=$?
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); }; }; then
34918 eval "$as_ac_var=yes"
34919else
34920 echo "$as_me: failed program was:" >&5
34921sed 's/^/| /' conftest.$ac_ext >&5
34922
34923eval "$as_ac_var=no"
34924fi
32ddf007
VS
34925rm -f conftest.err conftest.$ac_objext \
34926 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34927fi
34928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34930if test `eval echo '${'$as_ac_var'}'` = yes; then
34931 cat >>confdefs.h <<_ACEOF
34932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34933_ACEOF
34934
f93ca9fd
VS
34935fi
34936done
e6cc62c6 34937
e6cc62c6 34938
f93ca9fd
VS
34939 if test "$ac_cv_func_localtime" = "yes"; then
34940 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34941echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34942if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 34943 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34944else
f93ca9fd
VS
34945
34946 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34947/* confdefs.h. */
34948_ACEOF
34949cat confdefs.h >>conftest.$ac_ext
34950cat >>conftest.$ac_ext <<_ACEOF
34951/* end confdefs.h. */
34952
f93ca9fd
VS
34953 #include <time.h>
34954
e6cc62c6
VS
34955int
34956main ()
34957{
f93ca9fd
VS
34958
34959 struct tm tm;
34960 tm.tm_gmtoff++;
34961
e6cc62c6
VS
34962 ;
34963 return 0;
34964}
34965_ACEOF
f93ca9fd
VS
34966rm -f conftest.$ac_objext
34967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34968 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34969 ac_status=$?
32ddf007
VS
34970 grep -v '^ *+' conftest.er1 >conftest.err
34971 rm -f conftest.er1
34972 cat conftest.err >&5
e6cc62c6
VS
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); } &&
e1293dcf 34975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34977 (eval $ac_try) 2>&5
34978 ac_status=$?
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); }; } &&
34981 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983 (eval $ac_try) 2>&5
34984 ac_status=$?
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; }; then
f93ca9fd
VS
34987
34988 wx_cv_struct_tm_has_gmtoff=yes
34989
e6cc62c6
VS
34990else
34991 echo "$as_me: failed program was:" >&5
34992sed 's/^/| /' conftest.$ac_ext >&5
34993
f93ca9fd
VS
34994wx_cv_struct_tm_has_gmtoff=no
34995
e6cc62c6 34996fi
32ddf007 34997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 34998
e6cc62c6 34999fi
f93ca9fd
VS
35000echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35001echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35002 fi
e6cc62c6 35003
f93ca9fd
VS
35004 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35005 cat >>confdefs.h <<\_ACEOF
35006#define WX_GMTOFF_IN_TM 1
e6cc62c6 35007_ACEOF
10f2d63a 35008
f93ca9fd 35009 fi
e6cc62c6 35010
10f2d63a 35011
e6cc62c6 35012
f93ca9fd 35013for ac_func in gettimeofday ftime
10f2d63a 35014do
e6cc62c6
VS
35015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35016echo "$as_me:$LINENO: checking for $ac_func" >&5
35017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35018if eval "test \"\${$as_ac_var+set}\" = set"; then
35019 echo $ECHO_N "(cached) $ECHO_C" >&6
35020else
35021 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35022/* confdefs.h. */
35023_ACEOF
35024cat confdefs.h >>conftest.$ac_ext
35025cat >>conftest.$ac_ext <<_ACEOF
35026/* end confdefs.h. */
32ddf007
VS
35027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35029#define $ac_func innocuous_$ac_func
35030
10f2d63a 35031/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
35032 which can conflict with char $ac_func (); below.
35033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35034 <limits.h> exists even on freestanding compilers. */
32ddf007 35035
e6cc62c6
VS
35036#ifdef __STDC__
35037# include <limits.h>
35038#else
35039# include <assert.h>
35040#endif
32ddf007
VS
35041
35042#undef $ac_func
35043
10f2d63a 35044/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35045#ifdef __cplusplus
35046extern "C"
35047{
35048#endif
10f2d63a 35049/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
35050 builtin and then its argument prototype would still apply. */
35051char $ac_func ();
10f2d63a
VZ
35052/* The GNU C library defines this for functions which it implements
35053 to always fail with ENOSYS. Some functions are actually named
35054 something starting with __ and the normal name is an alias. */
35055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35056choke me
35057#else
e6cc62c6
VS
35058char (*f) () = $ac_func;
35059#endif
35060#ifdef __cplusplus
35061}
10f2d63a
VZ
35062#endif
35063
e6cc62c6
VS
35064int
35065main ()
35066{
35067return f != $ac_func;
35068 ;
35069 return 0;
35070}
35071_ACEOF
35072rm -f conftest.$ac_objext conftest$ac_exeext
35073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35074 (eval $ac_link) 2>conftest.er1
e6cc62c6 35075 ac_status=$?
32ddf007
VS
35076 grep -v '^ *+' conftest.er1 >conftest.err
35077 rm -f conftest.er1
35078 cat conftest.err >&5
e6cc62c6
VS
35079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080 (exit $ac_status); } &&
e1293dcf 35081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35083 (eval $ac_try) 2>&5
35084 ac_status=$?
35085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086 (exit $ac_status); }; } &&
35087 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35089 (eval $ac_try) 2>&5
35090 ac_status=$?
35091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092 (exit $ac_status); }; }; then
35093 eval "$as_ac_var=yes"
35094else
35095 echo "$as_me: failed program was:" >&5
35096sed 's/^/| /' conftest.$ac_ext >&5
35097
35098eval "$as_ac_var=no"
35099fi
32ddf007
VS
35100rm -f conftest.err conftest.$ac_objext \
35101 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35102fi
35103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35105if test `eval echo '${'$as_ac_var'}'` = yes; then
35106 cat >>confdefs.h <<_ACEOF
35107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35108_ACEOF
f93ca9fd
VS
35109 break
35110fi
35111done
e6cc62c6 35112
f93ca9fd
VS
35113
35114 if test "$ac_cv_func_gettimeofday" = "yes"; then
35115 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35116echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35117if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35118 echo $ECHO_N "(cached) $ECHO_C" >&6
35119else
35120
35121
35122
35123 ac_ext=cc
35124ac_cpp='$CXXCPP $CPPFLAGS'
35125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35128
35129
35130 cat >conftest.$ac_ext <<_ACEOF
35131/* confdefs.h. */
e6cc62c6 35132_ACEOF
f93ca9fd
VS
35133cat confdefs.h >>conftest.$ac_ext
35134cat >>conftest.$ac_ext <<_ACEOF
35135/* end confdefs.h. */
10f2d63a 35136
f93ca9fd
VS
35137 #include <sys/time.h>
35138 #include <unistd.h>
e6cc62c6 35139
f93ca9fd
VS
35140int
35141main ()
35142{
e6cc62c6 35143
f93ca9fd
VS
35144 struct timeval tv;
35145 gettimeofday(&tv, NULL);
35146
35147 ;
35148 return 0;
35149}
35150_ACEOF
35151rm -f conftest.$ac_objext
35152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35153 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35154 ac_status=$?
32ddf007
VS
35155 grep -v '^ *+' conftest.er1 >conftest.err
35156 rm -f conftest.er1
35157 cat conftest.err >&5
f93ca9fd
VS
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } &&
e1293dcf 35160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162 (eval $ac_try) 2>&5
35163 ac_status=$?
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); }; } &&
35166 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35168 (eval $ac_try) 2>&5
35169 ac_status=$?
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); }; }; then
35172 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 35173else
f93ca9fd
VS
35174 echo "$as_me: failed program was:" >&5
35175sed 's/^/| /' conftest.$ac_ext >&5
35176
e6cc62c6 35177cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35178/* confdefs.h. */
35179_ACEOF
35180cat confdefs.h >>conftest.$ac_ext
35181cat >>conftest.$ac_ext <<_ACEOF
35182/* end confdefs.h. */
35183
f93ca9fd
VS
35184 #include <sys/time.h>
35185 #include <unistd.h>
35186
e6cc62c6
VS
35187int
35188main ()
35189{
f93ca9fd
VS
35190
35191 struct timeval tv;
35192 gettimeofday(&tv);
35193
e6cc62c6
VS
35194 ;
35195 return 0;
35196}
35197_ACEOF
f93ca9fd
VS
35198rm -f conftest.$ac_objext
35199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35200 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35201 ac_status=$?
32ddf007
VS
35202 grep -v '^ *+' conftest.er1 >conftest.err
35203 rm -f conftest.er1
35204 cat conftest.err >&5
e6cc62c6
VS
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } &&
e1293dcf 35207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35210 ac_status=$?
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; } &&
35213 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215 (eval $ac_try) 2>&5
35216 ac_status=$?
35217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218 (exit $ac_status); }; }; then
f93ca9fd 35219 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
35220else
35221 echo "$as_me: failed program was:" >&5
35222sed 's/^/| /' conftest.$ac_ext >&5
35223
f6bcfd97 35224
f93ca9fd
VS
35225 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35226echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35227 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 35228
f6bcfd97 35229
f93ca9fd 35230fi
32ddf007 35231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 35232
10f2d63a 35233fi
32ddf007 35234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
35235 ac_ext=c
35236ac_cpp='$CPP $CPPFLAGS'
35237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35239ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 35240
e6cc62c6 35241
10f2d63a 35242fi
f93ca9fd
VS
35243echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35244echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35245
35246 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35247 cat >>confdefs.h <<\_ACEOF
35248#define WX_GETTIMEOFDAY_NO_TZ 1
35249_ACEOF
10f2d63a 35250
f93ca9fd
VS
35251 fi
35252 fi
e6cc62c6 35253
f93ca9fd 35254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 35255fi
10f2d63a 35256
5c6fa7d2 35257
f93ca9fd
VS
35258if test "$wxUSE_SOCKETS" = "yes"; then
35259 if test "$wxUSE_MGL" = "1"; then
35260 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35261echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35262 wxUSE_SOCKETS="no"
35263 fi
35264fi
e6cc62c6 35265
f93ca9fd
VS
35266if test "$wxUSE_SOCKETS" = "yes"; then
35267 if test "$TOOLKIT" != "MSW"; then
35268 echo "$as_me:$LINENO: checking for socket" >&5
35269echo $ECHO_N "checking for socket... $ECHO_C" >&6
35270if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
35271 echo $ECHO_N "(cached) $ECHO_C" >&6
35272else
35273 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35274/* confdefs.h. */
35275_ACEOF
35276cat confdefs.h >>conftest.$ac_ext
35277cat >>conftest.$ac_ext <<_ACEOF
35278/* end confdefs.h. */
32ddf007
VS
35279/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35281#define socket innocuous_socket
35282
f6bcfd97 35283/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 35284 which can conflict with char socket (); below.
e6cc62c6
VS
35285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35286 <limits.h> exists even on freestanding compilers. */
32ddf007 35287
e6cc62c6
VS
35288#ifdef __STDC__
35289# include <limits.h>
35290#else
35291# include <assert.h>
35292#endif
32ddf007
VS
35293
35294#undef socket
35295
f6bcfd97 35296/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35297#ifdef __cplusplus
35298extern "C"
35299{
35300#endif
f6bcfd97 35301/* We use char because int might match the return type of a gcc2
e6cc62c6 35302 builtin and then its argument prototype would still apply. */
f93ca9fd 35303char socket ();
f6bcfd97
BP
35304/* The GNU C library defines this for functions which it implements
35305 to always fail with ENOSYS. Some functions are actually named
35306 something starting with __ and the normal name is an alias. */
f93ca9fd 35307#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
35308choke me
35309#else
f93ca9fd 35310char (*f) () = socket;
e6cc62c6
VS
35311#endif
35312#ifdef __cplusplus
35313}
f6bcfd97
BP
35314#endif
35315
e6cc62c6
VS
35316int
35317main ()
35318{
f93ca9fd
VS
35319return f != socket;
35320 ;
35321 return 0;
35322}
35323_ACEOF
35324rm -f conftest.$ac_objext conftest$ac_exeext
35325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35326 (eval $ac_link) 2>conftest.er1
f93ca9fd 35327 ac_status=$?
32ddf007
VS
35328 grep -v '^ *+' conftest.er1 >conftest.err
35329 rm -f conftest.er1
35330 cat conftest.err >&5
f93ca9fd
VS
35331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332 (exit $ac_status); } &&
e1293dcf 35333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35335 (eval $ac_try) 2>&5
35336 ac_status=$?
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); }; } &&
35339 { ac_try='test -s conftest$ac_exeext'
f93ca9fd
VS
35340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35341 (eval $ac_try) 2>&5
35342 ac_status=$?
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); }; }; then
35345 ac_cv_func_socket=yes
35346else
35347 echo "$as_me: failed program was:" >&5
35348sed 's/^/| /' conftest.$ac_ext >&5
35349
35350ac_cv_func_socket=no
35351fi
32ddf007
VS
35352rm -f conftest.err conftest.$ac_objext \
35353 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
35354fi
35355echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35356echo "${ECHO_T}$ac_cv_func_socket" >&6
35357if test $ac_cv_func_socket = yes; then
35358 :
35359else
35360
35361 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35362echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35363if test "${ac_cv_lib_socket_socket+set}" = set; then
35364 echo $ECHO_N "(cached) $ECHO_C" >&6
35365else
35366 ac_check_lib_save_LIBS=$LIBS
35367LIBS="-lsocket $LIBS"
35368cat >conftest.$ac_ext <<_ACEOF
35369/* confdefs.h. */
35370_ACEOF
35371cat confdefs.h >>conftest.$ac_ext
35372cat >>conftest.$ac_ext <<_ACEOF
35373/* end confdefs.h. */
35374
35375/* Override any gcc2 internal prototype to avoid an error. */
35376#ifdef __cplusplus
35377extern "C"
35378#endif
35379/* We use char because int might match the return type of a gcc2
35380 builtin and then its argument prototype would still apply. */
35381char socket ();
35382int
35383main ()
35384{
35385socket ();
e6cc62c6
VS
35386 ;
35387 return 0;
35388}
35389_ACEOF
35390rm -f conftest.$ac_objext conftest$ac_exeext
35391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35392 (eval $ac_link) 2>conftest.er1
e6cc62c6 35393 ac_status=$?
32ddf007
VS
35394 grep -v '^ *+' conftest.er1 >conftest.err
35395 rm -f conftest.er1
35396 cat conftest.err >&5
e6cc62c6
VS
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); } &&
e1293dcf 35399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35401 (eval $ac_try) 2>&5
35402 ac_status=$?
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); }; } &&
35405 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35407 (eval $ac_try) 2>&5
35408 ac_status=$?
35409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410 (exit $ac_status); }; }; then
f93ca9fd 35411 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
35412else
35413 echo "$as_me: failed program was:" >&5
35414sed 's/^/| /' conftest.$ac_ext >&5
35415
f93ca9fd 35416ac_cv_lib_socket_socket=no
e6cc62c6 35417fi
32ddf007
VS
35418rm -f conftest.err conftest.$ac_objext \
35419 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 35420LIBS=$ac_check_lib_save_LIBS
e6cc62c6 35421fi
f93ca9fd
VS
35422echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35423echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35424if test $ac_cv_lib_socket_socket = yes; then
35425 if test "$INET_LINK" != " -lsocket"; then
35426 INET_LINK="$INET_LINK -lsocket"
35427 fi
35428else
35429
35430 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35431echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35432 wxUSE_SOCKETS=no
35433
35434
35435fi
35436
35437
35438
35439fi
35440
35441 fi
35442fi
35443
35444if test "$wxUSE_SOCKETS" = "yes" ; then
35445 if test "$TOOLKIT" != "MSW"; then
35446 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35447echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35448if test "${wx_cv_type_getsockname3+set}" = set; then
35449 echo $ECHO_N "(cached) $ECHO_C" >&6
35450else
35451
35452 cat >conftest.$ac_ext <<_ACEOF
35453/* confdefs.h. */
e6cc62c6 35454_ACEOF
f93ca9fd
VS
35455cat confdefs.h >>conftest.$ac_ext
35456cat >>conftest.$ac_ext <<_ACEOF
35457/* end confdefs.h. */
35458
35459 #include <sys/types.h>
35460 #include <sys/socket.h>
f6bcfd97 35461
f93ca9fd
VS
35462int
35463main ()
35464{
35465
35466 socklen_t len;
35467 getsockname(0, 0, &len);
35468
35469 ;
35470 return 0;
35471}
35472_ACEOF
35473rm -f conftest.$ac_objext
35474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35475 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35476 ac_status=$?
32ddf007
VS
35477 grep -v '^ *+' conftest.er1 >conftest.err
35478 rm -f conftest.er1
35479 cat conftest.err >&5
f93ca9fd
VS
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); } &&
e1293dcf 35482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35484 (eval $ac_try) 2>&5
35485 ac_status=$?
35486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487 (exit $ac_status); }; } &&
35488 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35490 (eval $ac_try) 2>&5
35491 ac_status=$?
35492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493 (exit $ac_status); }; }; then
35494 wx_cv_type_getsockname3=socklen_t
f6bcfd97 35495else
f93ca9fd
VS
35496 echo "$as_me: failed program was:" >&5
35497sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 35498
f93ca9fd
VS
35499
35500 CFLAGS_OLD="$CFLAGS"
35501 if test "$GCC" = yes ; then
35502 CFLAGS="$CFLAGS -Werror"
35503 fi
35504
35505 cat >conftest.$ac_ext <<_ACEOF
35506/* confdefs.h. */
35507_ACEOF
35508cat confdefs.h >>conftest.$ac_ext
35509cat >>conftest.$ac_ext <<_ACEOF
35510/* end confdefs.h. */
35511
35512 #include <sys/types.h>
35513 #include <sys/socket.h>
35514
35515int
35516main ()
35517{
35518
35519 size_t len;
35520 getsockname(0, 0, &len);
35521
35522 ;
35523 return 0;
35524}
35525_ACEOF
35526rm -f conftest.$ac_objext
35527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35528 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35529 ac_status=$?
32ddf007
VS
35530 grep -v '^ *+' conftest.er1 >conftest.err
35531 rm -f conftest.er1
35532 cat conftest.err >&5
f93ca9fd
VS
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); } &&
e1293dcf 35535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35537 (eval $ac_try) 2>&5
35538 ac_status=$?
35539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540 (exit $ac_status); }; } &&
35541 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35543 (eval $ac_try) 2>&5
35544 ac_status=$?
35545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 (exit $ac_status); }; }; then
35547 wx_cv_type_getsockname3=size_t
f6bcfd97 35548else
f93ca9fd
VS
35549 echo "$as_me: failed program was:" >&5
35550sed 's/^/| /' conftest.$ac_ext >&5
35551
e6cc62c6 35552cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35553/* confdefs.h. */
35554_ACEOF
35555cat confdefs.h >>conftest.$ac_ext
35556cat >>conftest.$ac_ext <<_ACEOF
35557/* end confdefs.h. */
35558
f93ca9fd
VS
35559 #include <sys/types.h>
35560 #include <sys/socket.h>
35561
e6cc62c6
VS
35562int
35563main ()
35564{
f93ca9fd
VS
35565
35566 int len;
35567 getsockname(0, 0, &len);
35568
e6cc62c6
VS
35569 ;
35570 return 0;
35571}
35572_ACEOF
f93ca9fd
VS
35573rm -f conftest.$ac_objext
35574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35575 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35576 ac_status=$?
32ddf007
VS
35577 grep -v '^ *+' conftest.er1 >conftest.err
35578 rm -f conftest.er1
35579 cat conftest.err >&5
e6cc62c6
VS
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); } &&
e1293dcf 35582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35584 (eval $ac_try) 2>&5
35585 ac_status=$?
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); }; } &&
35588 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590 (eval $ac_try) 2>&5
35591 ac_status=$?
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }; }; then
f93ca9fd 35594 wx_cv_type_getsockname3=int
e6cc62c6
VS
35595else
35596 echo "$as_me: failed program was:" >&5
35597sed 's/^/| /' conftest.$ac_ext >&5
35598
f93ca9fd
VS
35599wx_cv_type_getsockname3=unknown
35600
e6cc62c6 35601fi
32ddf007 35602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35603
f6bcfd97 35604fi
32ddf007 35605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35606
f93ca9fd 35607 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
35608
35609
f6bcfd97 35610fi
32ddf007 35611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35612
f93ca9fd
VS
35613fi
35614echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35615echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35616
35617 if test "$wx_cv_type_getsockname3" = "unknown"; then
35618 wxUSE_SOCKETS=no
35619 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35620echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35621 else
35622 cat >>confdefs.h <<_ACEOF
35623#define SOCKLEN_T $wx_cv_type_getsockname3
35624_ACEOF
f6bcfd97 35625
10f2d63a
VZ
35626 fi
35627 fi
35628fi
35629
f93ca9fd 35630if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 35631 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35632#define wxUSE_SOCKETS 1
e6cc62c6 35633_ACEOF
0b9ab0bd 35634
f93ca9fd 35635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 35636fi
f93ca9fd
VS
35637
35638if test "$wxUSE_PROTOCOL" = "yes"; then
35639 if test "$wxUSE_SOCKETS" != "yes"; then
35640 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35641echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35642 wxUSE_PROTOCOL=no
35643 fi
35644fi
35645
35646if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 35647 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35648#define wxUSE_PROTOCOL 1
e6cc62c6 35649_ACEOF
10f2d63a 35650
f93ca9fd
VS
35651
35652 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35653 cat >>confdefs.h <<\_ACEOF
35654#define wxUSE_PROTOCOL_HTTP 1
35655_ACEOF
35656
35657 fi
35658 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35659 cat >>confdefs.h <<\_ACEOF
35660#define wxUSE_PROTOCOL_FTP 1
35661_ACEOF
35662
35663 fi
35664 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35665 cat >>confdefs.h <<\_ACEOF
35666#define wxUSE_PROTOCOL_FILE 1
35667_ACEOF
35668
35669 fi
35670else
35671 if test "$wxUSE_FS_INET" = "yes"; then
35672 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35673echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35674 wxUSE_FS_INET="no"
35675 fi
10f2d63a
VZ
35676fi
35677
f93ca9fd
VS
35678if test "$wxUSE_URL" = "yes"; then
35679 if test "$wxUSE_PROTOCOL" != "yes"; then
35680 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35681echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35682 wxUSE_URL=no
35683 fi
35684 if test "$wxUSE_URL" = "yes"; then
35685 cat >>confdefs.h <<\_ACEOF
35686#define wxUSE_URL 1
35687_ACEOF
35688
35689 fi
35690fi
35691
35692if test "$wxUSE_FS_INET" = "yes"; then
35693 cat >>confdefs.h <<\_ACEOF
35694#define wxUSE_FS_INET 1
35695_ACEOF
35696
35697fi
35698
35699
35700if test "$wxUSE_GUI" = "yes"; then
35701
35702 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35703 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35704echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35705 wxUSE_JOYSTICK=no
35706 fi
35707
35708 if test "$TOOLKIT" != "MSW"; then
35709 if test "$wxUSE_JOYSTICK" = "yes"; then
35710
35711for ac_header in linux/joystick.h
35712do
35713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35714if eval "test \"\${$as_ac_Header+set}\" = set"; then
35715 echo "$as_me:$LINENO: checking for $ac_header" >&5
35716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35717if eval "test \"\${$as_ac_Header+set}\" = set"; then
35718 echo $ECHO_N "(cached) $ECHO_C" >&6
35719fi
35720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35722else
35723 # Is the header compilable?
35724echo "$as_me:$LINENO: checking $ac_header usability" >&5
35725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35726cat >conftest.$ac_ext <<_ACEOF
35727/* confdefs.h. */
35728_ACEOF
35729cat confdefs.h >>conftest.$ac_ext
35730cat >>conftest.$ac_ext <<_ACEOF
35731/* end confdefs.h. */
35732$ac_includes_default
35733#include <$ac_header>
35734_ACEOF
35735rm -f conftest.$ac_objext
35736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35737 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35738 ac_status=$?
32ddf007
VS
35739 grep -v '^ *+' conftest.er1 >conftest.err
35740 rm -f conftest.er1
35741 cat conftest.err >&5
f93ca9fd
VS
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); } &&
e1293dcf 35744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35746 (eval $ac_try) 2>&5
35747 ac_status=$?
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); }; } &&
35750 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752 (eval $ac_try) 2>&5
35753 ac_status=$?
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); }; }; then
35756 ac_header_compiler=yes
35757else
35758 echo "$as_me: failed program was:" >&5
35759sed 's/^/| /' conftest.$ac_ext >&5
35760
35761ac_header_compiler=no
35762fi
32ddf007 35763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
35764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35765echo "${ECHO_T}$ac_header_compiler" >&6
35766
35767# Is the header present?
35768echo "$as_me:$LINENO: checking $ac_header presence" >&5
35769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35770cat >conftest.$ac_ext <<_ACEOF
35771/* confdefs.h. */
35772_ACEOF
35773cat confdefs.h >>conftest.$ac_ext
35774cat >>conftest.$ac_ext <<_ACEOF
35775/* end confdefs.h. */
35776#include <$ac_header>
35777_ACEOF
35778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35780 ac_status=$?
35781 grep -v '^ *+' conftest.er1 >conftest.err
35782 rm -f conftest.er1
35783 cat conftest.err >&5
35784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785 (exit $ac_status); } >/dev/null; then
35786 if test -s conftest.err; then
35787 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 35788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
35789 else
35790 ac_cpp_err=
35791 fi
35792else
35793 ac_cpp_err=yes
35794fi
35795if test -z "$ac_cpp_err"; then
35796 ac_header_preproc=yes
35797else
35798 echo "$as_me: failed program was:" >&5
35799sed 's/^/| /' conftest.$ac_ext >&5
35800
35801 ac_header_preproc=no
35802fi
35803rm -f conftest.err conftest.$ac_ext
35804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35805echo "${ECHO_T}$ac_header_preproc" >&6
35806
35807# So? What about this header?
32ddf007
VS
35808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35809 yes:no: )
f93ca9fd
VS
35810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
35812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35814 ac_header_preproc=yes
f93ca9fd 35815 ;;
32ddf007 35816 no:yes:* )
f93ca9fd
VS
35817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
35819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
35825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
35827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
35829 (
35830 cat <<\_ASBOX
32ddf007
VS
35831## ----------------------------------------- ##
35832## Report this to wx-dev@lists.wxwindows.org ##
35833## ----------------------------------------- ##
f93ca9fd
VS
35834_ASBOX
35835 ) |
35836 sed "s/^/$as_me: WARNING: /" >&2
35837 ;;
35838esac
35839echo "$as_me:$LINENO: checking for $ac_header" >&5
35840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35841if eval "test \"\${$as_ac_Header+set}\" = set"; then
35842 echo $ECHO_N "(cached) $ECHO_C" >&6
35843else
32ddf007 35844 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
35845fi
35846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35848
35849fi
35850if test `eval echo '${'$as_ac_Header'}'` = yes; then
35851 cat >>confdefs.h <<_ACEOF
35852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35853_ACEOF
35854
35855fi
35856
35857done
35858
35859 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35860 wxUSE_JOYSTICK=no
35861 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35862echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35863 fi
35864 fi
35865 fi
35866
35867 if test "$wxUSE_JOYSTICK" = "yes"; then
35868 cat >>confdefs.h <<\_ACEOF
35869#define wxUSE_JOYSTICK 1
35870_ACEOF
35871
35872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35873 fi
35874fi
35875
35876
35877
1e6feb95 35878if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 35879 cat >>confdefs.h <<\_ACEOF
1e6feb95 35880#define wxUSE_FONTMAP 1
e6cc62c6 35881_ACEOF
1e6feb95
VZ
35882
35883fi
35884
10f2d63a 35885if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 35886 cat >>confdefs.h <<\_ACEOF
10f2d63a 35887#define wxUSE_UNICODE 1
e6cc62c6 35888_ACEOF
10f2d63a 35889
8284b0c5 35890
eb854003 35891 if test "$USE_WIN32" != 1; then
bbc3925a
VS
35892 wxUSE_UNICODE_MSLU=no
35893 fi
a72a4bfa 35894
eb854003 35895 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
35896 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35897echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35898if test "${ac_cv_lib_unicows_main+set}" = set; then
35899 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 35900else
e6cc62c6 35901 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 35902LIBS="-lunicows $LIBS"
e6cc62c6 35903cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35904/* confdefs.h. */
35905_ACEOF
35906cat confdefs.h >>conftest.$ac_ext
35907cat >>conftest.$ac_ext <<_ACEOF
35908/* end confdefs.h. */
a72a4bfa 35909
8284b0c5 35910
e6cc62c6
VS
35911int
35912main ()
35913{
35914main ();
35915 ;
35916 return 0;
35917}
35918_ACEOF
35919rm -f conftest.$ac_objext conftest$ac_exeext
35920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35921 (eval $ac_link) 2>conftest.er1
e6cc62c6 35922 ac_status=$?
32ddf007
VS
35923 grep -v '^ *+' conftest.er1 >conftest.err
35924 rm -f conftest.er1
35925 cat conftest.err >&5
e6cc62c6
VS
35926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927 (exit $ac_status); } &&
e1293dcf 35928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35930 (eval $ac_try) 2>&5
35931 ac_status=$?
35932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933 (exit $ac_status); }; } &&
35934 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35936 (eval $ac_try) 2>&5
35937 ac_status=$?
35938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939 (exit $ac_status); }; }; then
35940 ac_cv_lib_unicows_main=yes
35941else
35942 echo "$as_me: failed program was:" >&5
35943sed 's/^/| /' conftest.$ac_ext >&5
35944
35945ac_cv_lib_unicows_main=no
35946fi
32ddf007
VS
35947rm -f conftest.err conftest.$ac_objext \
35948 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35949LIBS=$ac_check_lib_save_LIBS
35950fi
35951echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35952echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35953if test $ac_cv_lib_unicows_main = yes; then
35954
35955 cat >>confdefs.h <<\_ACEOF
a72a4bfa 35956#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
35957_ACEOF
35958
a72a4bfa 35959
a72a4bfa 35960else
a72a4bfa 35961
e6cc62c6
VS
35962 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35963 Applications will only run on Windows NT/2000/XP!" >&5
35964echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35965 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 35966 wxUSE_UNICODE_MSLU=no
e6cc62c6 35967
a72a4bfa
VS
35968fi
35969
35970 fi
10f2d63a
VZ
35971fi
35972
10f2d63a 35973if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 35974 cat >>confdefs.h <<\_ACEOF
10f2d63a 35975#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 35976_ACEOF
10f2d63a
VZ
35977
35978fi
35979
8284b0c5 35980
10f2d63a 35981if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 35982 cat >>confdefs.h <<\_ACEOF
10f2d63a 35983#define wxUSE_POSTSCRIPT 1
e6cc62c6 35984_ACEOF
10f2d63a
VZ
35985
35986fi
35987
e6cc62c6 35988cat >>confdefs.h <<\_ACEOF
10f2d63a 35989#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 35990_ACEOF
10f2d63a 35991
8284b0c5 35992
e6cc62c6 35993cat >>confdefs.h <<\_ACEOF
10f2d63a 35994#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 35995_ACEOF
10f2d63a 35996
8284b0c5
MB
35997
35998
10f2d63a 35999if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 36000 cat >>confdefs.h <<\_ACEOF
10f2d63a 36001#define wxUSE_CONSTRAINTS 1
e6cc62c6 36002_ACEOF
10f2d63a
VZ
36003
36004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36005fi
36006
3879ecda 36007if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 36008 cat >>confdefs.h <<\_ACEOF
10f2d63a 36009#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 36010_ACEOF
10f2d63a 36011
1772d20c 36012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
36013fi
36014
36015if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 36016 cat >>confdefs.h <<\_ACEOF
10f2d63a 36017#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 36018_ACEOF
10f2d63a
VZ
36019
36020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36021 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36023 fi
36024fi
36025
36026if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 36027 cat >>confdefs.h <<\_ACEOF
10f2d63a 36028#define wxUSE_HELP 1
e6cc62c6 36029_ACEOF
10f2d63a
VZ
36030
36031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 36032
77e13408 36033 if test "$wxUSE_MSW" = 1; then
031d8228 36034 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 36035 cat >>confdefs.h <<\_ACEOF
29fd3c0c 36036#define wxUSE_MS_HTML_HELP 1
e6cc62c6 36037_ACEOF
29fd3c0c 36038
3e44f09d 36039 fi
3379ed37 36040 fi
031d8228
VS
36041
36042 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36043 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 36044 cat >>confdefs.h <<\_ACEOF
031d8228 36045#define wxUSE_WXHTML_HELP 1
e6cc62c6 36046_ACEOF
031d8228
VS
36047
36048 else
e6cc62c6
VS
36049 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36050echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
36051 wxUSE_WXHTML_HELP=no
36052 fi
36053 fi
10f2d63a
VZ
36054fi
36055
36056if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36057 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36058 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36059echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 36060 else
e6cc62c6 36061 cat >>confdefs.h <<\_ACEOF
10f2d63a 36062#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 36063_ACEOF
10f2d63a
VZ
36064
36065 fi
36066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36067fi
36068
e6cc62c6
VS
36069if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36070 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36071echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36072 { (exit 1); exit 1; }; }
36073fi
36074
36075
f95e4495 36076if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
36077 -o "$wxUSE_CLIPBOARD" = "yes" \
36078 -o "$wxUSE_OLE" = "yes" \
36079 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36080
36081for ac_header in ole2.h
36082do
36083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36084if eval "test \"\${$as_ac_Header+set}\" = set"; then
36085 echo "$as_me:$LINENO: checking for $ac_header" >&5
36086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36087if eval "test \"\${$as_ac_Header+set}\" = set"; then
36088 echo $ECHO_N "(cached) $ECHO_C" >&6
36089fi
36090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36092else
36093 # Is the header compilable?
36094echo "$as_me:$LINENO: checking $ac_header usability" >&5
36095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36096cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36097/* confdefs.h. */
36098_ACEOF
36099cat confdefs.h >>conftest.$ac_ext
36100cat >>conftest.$ac_ext <<_ACEOF
36101/* end confdefs.h. */
36102$ac_includes_default
36103#include <$ac_header>
36104_ACEOF
36105rm -f conftest.$ac_objext
36106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 36107 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36108 ac_status=$?
32ddf007
VS
36109 grep -v '^ *+' conftest.er1 >conftest.err
36110 rm -f conftest.er1
36111 cat conftest.err >&5
e6cc62c6
VS
36112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113 (exit $ac_status); } &&
e1293dcf 36114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
36115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36116 (eval $ac_try) 2>&5
36117 ac_status=$?
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); }; } &&
36120 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36122 (eval $ac_try) 2>&5
36123 ac_status=$?
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); }; }; then
36126 ac_header_compiler=yes
36127else
36128 echo "$as_me: failed program was:" >&5
36129sed 's/^/| /' conftest.$ac_ext >&5
36130
36131ac_header_compiler=no
36132fi
32ddf007 36133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
36134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36135echo "${ECHO_T}$ac_header_compiler" >&6
36136
36137# Is the header present?
36138echo "$as_me:$LINENO: checking $ac_header presence" >&5
36139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36140cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36141/* confdefs.h. */
36142_ACEOF
36143cat confdefs.h >>conftest.$ac_ext
36144cat >>conftest.$ac_ext <<_ACEOF
36145/* end confdefs.h. */
36146#include <$ac_header>
36147_ACEOF
36148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36150 ac_status=$?
36151 grep -v '^ *+' conftest.er1 >conftest.err
36152 rm -f conftest.er1
36153 cat conftest.err >&5
36154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36155 (exit $ac_status); } >/dev/null; then
36156 if test -s conftest.err; then
36157 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 36158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
36159 else
36160 ac_cpp_err=
36161 fi
36162else
36163 ac_cpp_err=yes
36164fi
36165if test -z "$ac_cpp_err"; then
36166 ac_header_preproc=yes
36167else
36168 echo "$as_me: failed program was:" >&5
36169sed 's/^/| /' conftest.$ac_ext >&5
36170
36171 ac_header_preproc=no
36172fi
36173rm -f conftest.err conftest.$ac_ext
36174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36175echo "${ECHO_T}$ac_header_preproc" >&6
36176
36177# So? What about this header?
32ddf007
VS
36178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36179 yes:no: )
e6cc62c6
VS
36180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
36182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36184 ac_header_preproc=yes
e6cc62c6 36185 ;;
32ddf007 36186 no:yes:* )
e6cc62c6
VS
36187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
36189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36194echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
36195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
36197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
36199 (
36200 cat <<\_ASBOX
32ddf007
VS
36201## ----------------------------------------- ##
36202## Report this to wx-dev@lists.wxwindows.org ##
36203## ----------------------------------------- ##
e6cc62c6
VS
36204_ASBOX
36205 ) |
36206 sed "s/^/$as_me: WARNING: /" >&2
36207 ;;
36208esac
36209echo "$as_me:$LINENO: checking for $ac_header" >&5
36210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36211if eval "test \"\${$as_ac_Header+set}\" = set"; then
36212 echo $ECHO_N "(cached) $ECHO_C" >&6
36213else
32ddf007 36214 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
36215fi
36216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36218
10f2d63a 36219fi
e6cc62c6
VS
36220if test `eval echo '${'$as_ac_Header'}'` = yes; then
36221 cat >>confdefs.h <<_ACEOF
36222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36223_ACEOF
10f2d63a 36224
10f2d63a 36225fi
e6cc62c6 36226
10f2d63a
VZ
36227done
36228
8284b0c5 36229
2b9bdf71
VZ
36230 if test "$ac_cv_header_ole2_h" = "yes" ; then
36231 if test "$GCC" = yes ; then
8284b0c5
MB
36232
36233
e6cc62c6
VS
36234 ac_ext=cc
36235ac_cpp='$CXXCPP $CPPFLAGS'
36236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36239
36240
36241 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36242echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36243 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36244/* confdefs.h. */
36245_ACEOF
36246cat confdefs.h >>conftest.$ac_ext
36247cat >>conftest.$ac_ext <<_ACEOF
36248/* end confdefs.h. */
8284b0c5
MB
36249#include <windows.h>
36250 #include <ole2.h>
e6cc62c6
VS
36251int
36252main ()
36253{
8284b0c5 36254
e6cc62c6
VS
36255 ;
36256 return 0;
36257}
36258_ACEOF
36259rm -f conftest.$ac_objext
36260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 36261 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36262 ac_status=$?
32ddf007
VS
36263 grep -v '^ *+' conftest.er1 >conftest.err
36264 rm -f conftest.er1
36265 cat conftest.err >&5
e6cc62c6
VS
36266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267 (exit $ac_status); } &&
e1293dcf 36268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
36269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36270 (eval $ac_try) 2>&5
36271 ac_status=$?
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); }; } &&
36274 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36276 (eval $ac_try) 2>&5
36277 ac_status=$?
36278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279 (exit $ac_status); }; }; then
36280 echo "$as_me:$LINENO: result: no" >&5
36281echo "${ECHO_T}no" >&6
36282else
36283 echo "$as_me: failed program was:" >&5
36284sed 's/^/| /' conftest.$ac_ext >&5
36285
36286echo "$as_me:$LINENO: result: yes" >&5
36287echo "${ECHO_T}yes" >&6
8284b0c5
MB
36288 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36289fi
32ddf007 36290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 36291 ac_ext=c
8284b0c5 36292ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
36293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 36296
2b9bdf71 36297 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 36298 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
36299 if test "$wxUSE_OLE" = "yes" ; then
36300 cat >>confdefs.h <<\_ACEOF
4f11a343 36301#define wxUSE_OLE 1
e6cc62c6 36302_ACEOF
4f11a343 36303
f95e4495 36304 fi
2b9bdf71
VZ
36305 fi
36306
f95e4495
VS
36307 if test "$wxUSE_DATAOBJ" = "yes" ; then
36308 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36309#define wxUSE_DATAOBJ 1
e6cc62c6 36310_ACEOF
2b9bdf71 36311
f95e4495 36312 fi
2b9bdf71 36313 else
e6cc62c6
VS
36314 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36315echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
36316
36317 wxUSE_CLIPBOARD=no
36318 wxUSE_DRAG_AND_DROP=no
36319 wxUSE_DATAOBJ=no
3bce6687
JS
36320 wxUSE_OLE=no
36321 fi
36322
36323 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36324 cat >>confdefs.h <<\_ACEOF
3bce6687 36325#define wxUSE_METAFILE 1
e6cc62c6 36326_ACEOF
3bce6687
JS
36327
36328
e6cc62c6 36329 cat >>confdefs.h <<\_ACEOF
3bce6687 36330#define wxUSE_ENH_METAFILE 1
e6cc62c6 36331_ACEOF
3bce6687
JS
36332
36333 fi
36334fi
36335
2b9bdf71
VZ
36336if test "$wxUSE_IPC" = "yes"; then
36337 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
36338 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36339echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
36340 fi
36341
e6cc62c6 36342 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36343#define wxUSE_IPC 1
e6cc62c6 36344_ACEOF
2b9bdf71
VZ
36345
36346fi
36347
36348if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 36349 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36350 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36351echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36352 wxUSE_CLIPBOARD=no
36353 fi
36354
36355 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 36356 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36357#define wxUSE_CLIPBOARD 1
e6cc62c6 36358_ACEOF
2b9bdf71 36359
8284b0c5 36360
e6cc62c6 36361 cat >>confdefs.h <<\_ACEOF
673f4220 36362#define wxUSE_DATAOBJ 1
e6cc62c6 36363_ACEOF
673f4220 36364
6c657b52 36365 fi
2b9bdf71
VZ
36366fi
36367
36368if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36369 if test "$wxUSE_GTK" = 1; then
36370 if test "$WXGTK12" != 1; then
e6cc62c6
VS
36371 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36372echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
36373 wxUSE_DRAG_AND_DROP=no
36374 fi
36375 fi
36376
2b9bdf71 36377 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36378 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36379echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
36380 wxUSE_DRAG_AND_DROP=no
36381 fi
36382
f79bd02d 36383 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
36384 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36385echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
36386 wxUSE_DRAG_AND_DROP=no
36387 fi
36388
6c657b52 36389 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36390 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36391echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36392 wxUSE_DRAG_AND_DROP=no
36393 fi
36394
10f2d63a 36395 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 36396 cat >>confdefs.h <<\_ACEOF
10f2d63a 36397#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 36398_ACEOF
10f2d63a 36399
10f2d63a
VZ
36400 fi
36401
36402fi
36403
e1293dcf
RL
36404if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36406fi
36407
10f2d63a 36408if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 36409 cat >>confdefs.h <<\_ACEOF
10f2d63a 36410#define wxUSE_SPLINES 1
e6cc62c6 36411_ACEOF
10f2d63a
VZ
36412
36413fi
36414
8284b0c5 36415
1e6feb95
VZ
36416USES_CONTROLS=0
36417if test "$wxUSE_CONTROLS" = "yes"; then
36418 USES_CONTROLS=1
36419fi
36420
10f2d63a 36421if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 36422 cat >>confdefs.h <<\_ACEOF
10f2d63a 36423#define wxUSE_ACCEL 1
e6cc62c6 36424_ACEOF
10f2d63a 36425
1e6feb95
VZ
36426 USES_CONTROLS=1
36427fi
36428
36429if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 36430 cat >>confdefs.h <<\_ACEOF
1e6feb95 36431#define wxUSE_BUTTON 1
e6cc62c6 36432_ACEOF
1e6feb95
VZ
36433
36434 USES_CONTROLS=1
36435fi
36436
36437if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 36438 cat >>confdefs.h <<\_ACEOF
1e6feb95 36439#define wxUSE_BMPBUTTON 1
e6cc62c6 36440_ACEOF
1e6feb95
VZ
36441
36442 USES_CONTROLS=1
36443fi
36444
36445if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 36446 cat >>confdefs.h <<\_ACEOF
1e6feb95 36447#define wxUSE_CALENDARCTRL 1
e6cc62c6 36448_ACEOF
1e6feb95
VZ
36449
36450 USES_CONTROLS=1
36451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
36452fi
36453
36454if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 36455 cat >>confdefs.h <<\_ACEOF
10f2d63a 36456#define wxUSE_CARET 1
e6cc62c6 36457_ACEOF
10f2d63a 36458
1e6feb95 36459 USES_CONTROLS=1
10f2d63a
VZ
36460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36461fi
36462
36463if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 36464 cat >>confdefs.h <<\_ACEOF
10f2d63a 36465#define wxUSE_COMBOBOX 1
e6cc62c6 36466_ACEOF
10f2d63a 36467
1e6feb95 36468 USES_CONTROLS=1
10f2d63a
VZ
36469fi
36470
36471if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 36472 cat >>confdefs.h <<\_ACEOF
10f2d63a 36473#define wxUSE_CHOICE 1
e6cc62c6 36474_ACEOF
10f2d63a 36475
1e6feb95 36476 USES_CONTROLS=1
10f2d63a
VZ
36477fi
36478
36479if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 36480 cat >>confdefs.h <<\_ACEOF
10f2d63a 36481#define wxUSE_CHECKBOX 1
e6cc62c6 36482_ACEOF
10f2d63a 36483
1e6feb95 36484 USES_CONTROLS=1
10f2d63a
VZ
36485fi
36486
36487if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 36488 cat >>confdefs.h <<\_ACEOF
10f2d63a 36489#define wxUSE_CHECKLISTBOX 1
e6cc62c6 36490_ACEOF
10f2d63a 36491
1e6feb95 36492 USES_CONTROLS=1
10f2d63a
VZ
36493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36494fi
36495
da494b40 36496if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 36497 cat >>confdefs.h <<\_ACEOF
da494b40 36498#define wxUSE_DISPLAY 1
e6cc62c6 36499_ACEOF
da494b40
MB
36500
36501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36502fi
36503
10f2d63a 36504if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 36505 cat >>confdefs.h <<\_ACEOF
10f2d63a 36506#define wxUSE_GAUGE 1
e6cc62c6 36507_ACEOF
10f2d63a 36508
1e6feb95 36509 USES_CONTROLS=1
10f2d63a
VZ
36510fi
36511
d6a55c4b 36512if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 36513 cat >>confdefs.h <<\_ACEOF
d6a55c4b 36514#define wxUSE_GRID 1
e6cc62c6 36515_ACEOF
10f2d63a 36516
1e6feb95 36517 USES_CONTROLS=1
d6a55c4b 36518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
36519fi
36520
36521if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36522 cat >>confdefs.h <<\_ACEOF
10f2d63a 36523#define wxUSE_IMAGLIST 1
e6cc62c6 36524_ACEOF
10f2d63a
VZ
36525
36526fi
36527
0e012a93
VZ
36528if test "$wxUSE_LISTBOOK" = "yes"; then
36529 cat >>confdefs.h <<\_ACEOF
36530#define wxUSE_LISTBOOK 1
36531_ACEOF
36532
36533 USES_CONTROLS=1
36534fi
36535
10f2d63a 36536if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 36537 cat >>confdefs.h <<\_ACEOF
10f2d63a 36538#define wxUSE_LISTBOX 1
e6cc62c6 36539_ACEOF
10f2d63a 36540
1e6feb95 36541 USES_CONTROLS=1
10f2d63a
VZ
36542fi
36543
36544if test "$wxUSE_LISTCTRL" = "yes"; then
36545 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36546 cat >>confdefs.h <<\_ACEOF
10f2d63a 36547#define wxUSE_LISTCTRL 1
e6cc62c6 36548_ACEOF
10f2d63a 36549
1e6feb95 36550 USES_CONTROLS=1
10f2d63a
VZ
36551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36552 else
e6cc62c6
VS
36553 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36554echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36555 fi
36556fi
36557
36558if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 36559 cat >>confdefs.h <<\_ACEOF
10f2d63a 36560#define wxUSE_NOTEBOOK 1
e6cc62c6 36561_ACEOF
10f2d63a 36562
1e6feb95 36563 USES_CONTROLS=1
10f2d63a
VZ
36564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36565fi
36566
24176f2c 36567
10f2d63a 36568if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 36569 cat >>confdefs.h <<\_ACEOF
10f2d63a 36570#define wxUSE_RADIOBOX 1
e6cc62c6 36571_ACEOF
10f2d63a 36572
1e6feb95 36573 USES_CONTROLS=1
10f2d63a
VZ
36574fi
36575
36576if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 36577 cat >>confdefs.h <<\_ACEOF
10f2d63a 36578#define wxUSE_RADIOBTN 1
e6cc62c6 36579_ACEOF
10f2d63a 36580
1e6feb95 36581 USES_CONTROLS=1
10f2d63a
VZ
36582fi
36583
36584if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 36585 cat >>confdefs.h <<\_ACEOF
10f2d63a 36586#define wxUSE_SASH 1
e6cc62c6 36587_ACEOF
10f2d63a
VZ
36588
36589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36590fi
36591
36592if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 36593 cat >>confdefs.h <<\_ACEOF
10f2d63a 36594#define wxUSE_SCROLLBAR 1
e6cc62c6 36595_ACEOF
10f2d63a 36596
1e6feb95 36597 USES_CONTROLS=1
741a9306 36598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
36599fi
36600
36601if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 36602 cat >>confdefs.h <<\_ACEOF
10f2d63a 36603#define wxUSE_SLIDER 1
e6cc62c6 36604_ACEOF
10f2d63a 36605
1e6feb95 36606 USES_CONTROLS=1
10f2d63a
VZ
36607fi
36608
36609if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 36610 cat >>confdefs.h <<\_ACEOF
10f2d63a 36611#define wxUSE_SPINBTN 1
e6cc62c6 36612_ACEOF
10f2d63a 36613
1e6feb95 36614 USES_CONTROLS=1
10f2d63a
VZ
36615fi
36616
56cfaa52 36617if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 36618 cat >>confdefs.h <<\_ACEOF
56cfaa52 36619#define wxUSE_SPINCTRL 1
e6cc62c6 36620_ACEOF
56cfaa52 36621
1e6feb95 36622 USES_CONTROLS=1
56cfaa52
RR
36623fi
36624
10f2d63a 36625if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 36626 cat >>confdefs.h <<\_ACEOF
10f2d63a 36627#define wxUSE_SPLITTER 1
e6cc62c6 36628_ACEOF
10f2d63a
VZ
36629
36630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36631fi
36632
36633if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 36634 cat >>confdefs.h <<\_ACEOF
10f2d63a 36635#define wxUSE_STATBMP 1
e6cc62c6 36636_ACEOF
10f2d63a 36637
1e6feb95 36638 USES_CONTROLS=1
10f2d63a
VZ
36639fi
36640
36641if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 36642 cat >>confdefs.h <<\_ACEOF
10f2d63a 36643#define wxUSE_STATBOX 1
e6cc62c6 36644_ACEOF
10f2d63a 36645
1e6feb95
VZ
36646 USES_CONTROLS=1
36647fi
36648
36649if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 36650 cat >>confdefs.h <<\_ACEOF
1e6feb95 36651#define wxUSE_STATTEXT 1
e6cc62c6 36652_ACEOF
1e6feb95
VZ
36653
36654 USES_CONTROLS=1
10f2d63a
VZ
36655fi
36656
36657if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 36658 cat >>confdefs.h <<\_ACEOF
10f2d63a 36659#define wxUSE_STATLINE 1
e6cc62c6 36660_ACEOF
10f2d63a 36661
89e6bf6d 36662 USES_CONTROLS=1
10f2d63a
VZ
36663fi
36664
36665if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 36666 cat >>confdefs.h <<\_ACEOF
10f2d63a 36667#define wxUSE_STATUSBAR 1
e6cc62c6 36668_ACEOF
10f2d63a 36669
1e6feb95 36670 USES_CONTROLS=1
698dcdb6 36671
2286341c 36672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
36673fi
36674
36675if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 36676 cat >>confdefs.h <<\_ACEOF
10f2d63a 36677#define wxUSE_TAB_DIALOG 1
e6cc62c6 36678_ACEOF
10f2d63a
VZ
36679
36680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36681fi
36682
1e6feb95 36683if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 36684 cat >>confdefs.h <<\_ACEOF
1e6feb95 36685#define wxUSE_TEXTCTRL 1
e6cc62c6 36686_ACEOF
1e6feb95
VZ
36687
36688 USES_CONTROLS=1
36689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36690fi
36691
1db8dc4a 36692if test "$wxUSE_TOGGLEBTN" = "yes"; then
0f87e84c 36693 if test "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36694 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36695echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
36696 wxUSE_TOGGLEBTN=no
36697 fi
36698 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36699 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36700echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
36701 wxUSE_TOGGLEBTN=no
36702 fi
36703
36704 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 36705 cat >>confdefs.h <<\_ACEOF
1db8dc4a 36706#define wxUSE_TOGGLEBTN 1
e6cc62c6 36707_ACEOF
1db8dc4a 36708
1e6feb95 36709 USES_CONTROLS=1
a45d7ab7 36710 fi
1db8dc4a
VZ
36711fi
36712
360d6699 36713if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 36714 cat >>confdefs.h <<\_ACEOF
360d6699 36715#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 36716_ACEOF
360d6699
VZ
36717
36718 wxUSE_TOOLBAR="yes"
1e6feb95 36719 USES_CONTROLS=1
360d6699
VZ
36720fi
36721
10f2d63a 36722if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 36723 cat >>confdefs.h <<\_ACEOF
10f2d63a 36724#define wxUSE_TOOLBAR 1
e6cc62c6 36725_ACEOF
10f2d63a 36726
1e6feb95 36727 USES_CONTROLS=1
698dcdb6 36728
360d6699
VZ
36729 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36730 wxUSE_TOOLBAR_NATIVE="yes"
36731 fi
36732
1e6feb95 36733 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 36734 cat >>confdefs.h <<\_ACEOF
360d6699 36735#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 36736_ACEOF
360d6699 36737
1e6feb95
VZ
36738 USES_CONTROLS=1
36739 fi
36740
36741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
36742fi
36743
10f2d63a
VZ
36744if test "$wxUSE_TOOLTIPS" = "yes"; then
36745 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36746 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36747echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 36748 else
89e6bf6d 36749 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36750 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36751echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 36752 else
e6cc62c6 36753 cat >>confdefs.h <<\_ACEOF
10f2d63a 36754#define wxUSE_TOOLTIPS 1
e6cc62c6 36755_ACEOF
10f2d63a
VZ
36756
36757 fi
36758 fi
36759fi
36760
36761if test "$wxUSE_TREECTRL" = "yes"; then
36762 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36763 cat >>confdefs.h <<\_ACEOF
10f2d63a 36764#define wxUSE_TREECTRL 1
e6cc62c6 36765_ACEOF
10f2d63a 36766
1e6feb95 36767 USES_CONTROLS=1
10f2d63a
VZ
36768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36769 else
e6cc62c6
VS
36770 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36771echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36772 fi
36773fi
36774
9f41d601 36775if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 36776 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36777 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36778echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 36779 else
833a51f6
MB
36780 if test "$wxUSE_PM" = 1; then
36781 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 36782echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
36783 else
36784 cat >>confdefs.h <<\_ACEOF
9f41d601 36785#define wxUSE_POPUPWIN 1
e6cc62c6 36786_ACEOF
9f41d601 36787
8284b0c5 36788
833a51f6 36789 USES_CONTROLS=1
485cf710 36790 fi
6abe4b65 36791 fi
9f41d601
RR
36792fi
36793
dd964dcc 36794if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 36795 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
36796 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36797echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 36798 else
e6cc62c6 36799 cat >>confdefs.h <<\_ACEOF
dd964dcc 36800#define wxUSE_TIPWINDOW 1
e6cc62c6 36801_ACEOF
dd964dcc 36802
3c011993 36803 fi
dd964dcc
VZ
36804fi
36805
1e6feb95 36806if test "$USES_CONTROLS" = 1; then
e6cc62c6 36807 cat >>confdefs.h <<\_ACEOF
1e6feb95 36808#define wxUSE_CONTROLS 1
e6cc62c6 36809_ACEOF
10f2d63a 36810
10f2d63a
VZ
36811fi
36812
8284b0c5 36813
e46d2a18
VS
36814if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36815 cat >>confdefs.h <<\_ACEOF
36816#define wxUSE_ACCESSIBILITY 1
36817_ACEOF
36818
36819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36820fi
1e6feb95 36821
24fd6d87 36822if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 36823 cat >>confdefs.h <<\_ACEOF
24fd6d87 36824#define wxUSE_DRAGIMAGE 1
e6cc62c6 36825_ACEOF
24fd6d87
VZ
36826
36827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36828fi
36829
e46d2a18 36830if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 36831 cat >>confdefs.h <<\_ACEOF
e46d2a18 36832#define wxUSE_EXCEPTIONS 1
e6cc62c6 36833_ACEOF
7bb2947d 36834
e46d2a18
VS
36835fi
36836
36837USE_HTML=0
36838if test "$wxUSE_HTML" = "yes"; then
36839 cat >>confdefs.h <<\_ACEOF
36840#define wxUSE_HTML 1
36841_ACEOF
36842
36843 USE_HTML=1
36844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
36845fi
36846
1e6feb95 36847if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 36848 cat >>confdefs.h <<\_ACEOF
1e6feb95 36849#define wxUSE_MENUS 1
e6cc62c6 36850_ACEOF
10f2d63a 36851
1e6feb95 36852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
36853fi
36854
1e6feb95 36855if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36856 cat >>confdefs.h <<\_ACEOF
1e6feb95 36857#define wxUSE_METAFILE 1
e6cc62c6 36858_ACEOF
10f2d63a 36859
10f2d63a
VZ
36860fi
36861
1e6feb95 36862if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 36863 cat >>confdefs.h <<\_ACEOF
1e6feb95 36864#define wxUSE_MIMETYPE 1
e6cc62c6 36865_ACEOF
10f2d63a 36866
10f2d63a
VZ
36867fi
36868
36869if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 36870 cat >>confdefs.h <<\_ACEOF
10f2d63a 36871#define wxUSE_MINIFRAME 1
e6cc62c6 36872_ACEOF
10f2d63a
VZ
36873
36874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36875fi
36876
e46d2a18 36877if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 36878 cat >>confdefs.h <<\_ACEOF
e46d2a18 36879#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 36880_ACEOF
10f2d63a 36881
e46d2a18
VS
36882 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36883 "$TOOLKIT" = "MOTIF"; then
36884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36885 fi
10f2d63a
VZ
36886fi
36887
e46d2a18 36888
10f2d63a 36889if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 36890 cat >>confdefs.h <<\_ACEOF
1e487827 36891#define wxUSE_VALIDATORS 1
e6cc62c6 36892_ACEOF
703e0a69 36893
698dcdb6
VZ
36894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36895fi
36896
edae8572 36897if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 36898 cat >>confdefs.h <<\_ACEOF
edae8572 36899#define wxUSE_PALETTE 1
e6cc62c6 36900_ACEOF
edae8572
VZ
36901
36902fi
36903
e46d2a18
VS
36904if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36905 LIBS=" -lunicows $LIBS"
36906fi
36907
36908
698dcdb6 36909if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 36910 cat >>confdefs.h <<\_ACEOF
698dcdb6 36911#define wxUSE_IMAGE 1
e6cc62c6 36912_ACEOF
698dcdb6 36913
698dcdb6 36914
e46d2a18
VS
36915 if test "$wxUSE_GIF" = "yes" ; then
36916 cat >>confdefs.h <<\_ACEOF
698dcdb6 36917#define wxUSE_GIF 1
e6cc62c6 36918_ACEOF
698dcdb6 36919
e46d2a18 36920 fi
698dcdb6 36921
e46d2a18
VS
36922 if test "$wxUSE_PCX" = "yes" ; then
36923 cat >>confdefs.h <<\_ACEOF
698dcdb6 36924#define wxUSE_PCX 1
e6cc62c6 36925_ACEOF
698dcdb6 36926
e46d2a18 36927 fi
698dcdb6 36928
e46d2a18
VS
36929 if test "$wxUSE_IFF" = "yes" ; then
36930 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 36931#define wxUSE_IFF 1
e6cc62c6 36932_ACEOF
4b6b4dfc 36933
e46d2a18 36934 fi
4b6b4dfc 36935
e46d2a18
VS
36936 if test "$wxUSE_PNM" = "yes" ; then
36937 cat >>confdefs.h <<\_ACEOF
698dcdb6 36938#define wxUSE_PNM 1
e6cc62c6 36939_ACEOF
698dcdb6 36940
e46d2a18 36941 fi
698dcdb6 36942
e46d2a18
VS
36943 if test "$wxUSE_XPM" = "yes" ; then
36944 cat >>confdefs.h <<\_ACEOF
698dcdb6 36945#define wxUSE_XPM 1
e6cc62c6 36946_ACEOF
698dcdb6 36947
e46d2a18 36948 fi
698dcdb6 36949
e46d2a18
VS
36950 if test "$wxUSE_ICO_CUR" = "yes" ; then
36951 cat >>confdefs.h <<\_ACEOF
658974ae 36952#define wxUSE_ICO_CUR 1
e6cc62c6 36953_ACEOF
658974ae 36954
e46d2a18 36955 fi
a72a4bfa
VS
36956fi
36957
8284b0c5 36958
1e6feb95 36959if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 36960 cat >>confdefs.h <<\_ACEOF
1e6feb95 36961#define wxUSE_CHOICEDLG 1
e6cc62c6 36962_ACEOF
1e6feb95
VZ
36963
36964fi
36965
36966if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 36967 cat >>confdefs.h <<\_ACEOF
1e6feb95 36968#define wxUSE_COLOURDLG 1
e6cc62c6 36969_ACEOF
1e6feb95
VZ
36970
36971fi
36972
36973if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 36974 cat >>confdefs.h <<\_ACEOF
1e6feb95 36975#define wxUSE_FILEDLG 1
e6cc62c6 36976_ACEOF
1e6feb95
VZ
36977
36978fi
36979
8db37e06 36980if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 36981 cat >>confdefs.h <<\_ACEOF
8db37e06 36982#define wxUSE_FINDREPLDLG 1
e6cc62c6 36983_ACEOF
8db37e06
VZ
36984
36985fi
36986
1e6feb95 36987if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 36988 cat >>confdefs.h <<\_ACEOF
1e6feb95 36989#define wxUSE_FONTDLG 1
e6cc62c6 36990_ACEOF
1e6feb95
VZ
36991
36992fi
36993
36994if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 36995 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
36996 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36997echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 36998 else
e6cc62c6 36999 cat >>confdefs.h <<\_ACEOF
1e6feb95 37000#define wxUSE_DIRDLG 1
e6cc62c6 37001_ACEOF
1e6feb95 37002
1e6feb95
VZ
37003 fi
37004fi
37005
37006if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 37007 cat >>confdefs.h <<\_ACEOF
1e6feb95 37008#define wxUSE_MSGDLG 1
e6cc62c6 37009_ACEOF
1e6feb95
VZ
37010
37011fi
37012
37013if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 37014 cat >>confdefs.h <<\_ACEOF
1e6feb95 37015#define wxUSE_NUMBERDLG 1
e6cc62c6 37016_ACEOF
1e6feb95
VZ
37017
37018fi
37019
37020if test "$wxUSE_PROGRESSDLG" = "yes"; then
37021 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37022 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37023echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 37024 else
e6cc62c6 37025 cat >>confdefs.h <<\_ACEOF
1e6feb95 37026#define wxUSE_PROGRESSDLG 1
e6cc62c6 37027_ACEOF
1e6feb95
VZ
37028
37029 fi
37030fi
37031
cbca9943 37032if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 37033 cat >>confdefs.h <<\_ACEOF
cbca9943 37034#define wxUSE_SPLASH 1
e6cc62c6 37035_ACEOF
cbca9943
VZ
37036
37037fi
37038
1e6feb95
VZ
37039if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37040 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37041 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37042echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 37043 else
e6cc62c6 37044 cat >>confdefs.h <<\_ACEOF
1e6feb95 37045#define wxUSE_STARTUP_TIPS 1
e6cc62c6 37046_ACEOF
1e6feb95 37047
7b4a847f
RR
37048 fi
37049fi
579d8138 37050
8284b0c5 37051if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 37052 cat >>confdefs.h <<\_ACEOF
8284b0c5 37053#define wxUSE_TEXTDLG 1
e6cc62c6 37054_ACEOF
8284b0c5
MB
37055
37056fi
37057
37058if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 37059 cat >>confdefs.h <<\_ACEOF
8284b0c5 37060#define wxUSE_WIZARDDLG 1
e6cc62c6 37061_ACEOF
8284b0c5
MB
37062
37063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37064fi
37065
37066
37067if test "$cross_compiling" = "yes"; then
37068 OSINFO="\"$host\""
37069else
37070 OSINFO=`uname -s -r -m`
37071 OSINFO="\"$OSINFO\""
37072fi
37073
e6cc62c6 37074cat >>confdefs.h <<_ACEOF
8284b0c5 37075#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 37076_ACEOF
8284b0c5
MB
37077
37078
37079
37080if test "x$prefix" != "xNONE"; then
37081 wxPREFIX=$prefix
37082else
37083 wxPREFIX=$ac_default_prefix
37084fi
37085
e6cc62c6 37086cat >>confdefs.h <<_ACEOF
8284b0c5 37087#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 37088_ACEOF
8284b0c5
MB
37089
37090
e6cc62c6 37091top_builddir_wxconfig=`pwd`
52c71b80 37092
8284b0c5
MB
37093
37094
edd891e2
VS
37095CORE_BASE_LIBS="net base"
37096CORE_GUI_LIBS="adv core"
37097
37098if test "$wxUSE_XML" = "yes" ; then
37099 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37100fi
45293562
VS
37101if test "$wxUSE_ODBC" != "no" ; then
37102 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37103 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
37104fi
37105if test "$wxUSE_HTML" = "yes" ; then
37106 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37107fi
37108
57e7d4ac
VS
37109if test "$wxUSE_GUI" != "yes"; then
37110 CORE_GUI_LIBS=""
37111fi
37112
edd891e2
VS
37113
37114
37115
37116
37117
37118
8284b0c5
MB
37119
37120if test "$wxUSE_MAC" = 1 ; then
37121 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37122fi
ac0c4cc3
DE
37123if test "$wxUSE_COCOA" = 1 ; then
37124 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37125fi
8284b0c5
MB
37126
37127
2b5f62a0
VZ
37128LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37129
37130have_cos=0
37131have_floor=0
e6cc62c6 37132
2b5f62a0
VZ
37133for ac_func in cos
37134do
e6cc62c6
VS
37135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37136echo "$as_me:$LINENO: checking for $ac_func" >&5
37137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37138if eval "test \"\${$as_ac_var+set}\" = set"; then
37139 echo $ECHO_N "(cached) $ECHO_C" >&6
37140else
37141 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37142/* confdefs.h. */
37143_ACEOF
37144cat confdefs.h >>conftest.$ac_ext
37145cat >>conftest.$ac_ext <<_ACEOF
37146/* end confdefs.h. */
32ddf007
VS
37147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37149#define $ac_func innocuous_$ac_func
37150
2b5f62a0 37151/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37152 which can conflict with char $ac_func (); below.
37153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37154 <limits.h> exists even on freestanding compilers. */
32ddf007 37155
e6cc62c6
VS
37156#ifdef __STDC__
37157# include <limits.h>
37158#else
37159# include <assert.h>
37160#endif
32ddf007
VS
37161
37162#undef $ac_func
37163
2b5f62a0 37164/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37165#ifdef __cplusplus
37166extern "C"
37167{
37168#endif
2b5f62a0 37169/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37170 builtin and then its argument prototype would still apply. */
37171char $ac_func ();
2b5f62a0
VZ
37172/* The GNU C library defines this for functions which it implements
37173 to always fail with ENOSYS. Some functions are actually named
37174 something starting with __ and the normal name is an alias. */
37175#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37176choke me
37177#else
e6cc62c6
VS
37178char (*f) () = $ac_func;
37179#endif
37180#ifdef __cplusplus
37181}
2b5f62a0
VZ
37182#endif
37183
e6cc62c6
VS
37184int
37185main ()
37186{
37187return f != $ac_func;
37188 ;
37189 return 0;
37190}
37191_ACEOF
37192rm -f conftest.$ac_objext conftest$ac_exeext
37193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37194 (eval $ac_link) 2>conftest.er1
e6cc62c6 37195 ac_status=$?
32ddf007
VS
37196 grep -v '^ *+' conftest.er1 >conftest.err
37197 rm -f conftest.er1
37198 cat conftest.err >&5
e6cc62c6
VS
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } &&
e1293dcf 37201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37203 (eval $ac_try) 2>&5
37204 ac_status=$?
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); }; } &&
37207 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; }; then
37213 eval "$as_ac_var=yes"
37214else
37215 echo "$as_me: failed program was:" >&5
37216sed 's/^/| /' conftest.$ac_ext >&5
37217
37218eval "$as_ac_var=no"
37219fi
32ddf007
VS
37220rm -f conftest.err conftest.$ac_objext \
37221 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37222fi
37223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37225if test `eval echo '${'$as_ac_var'}'` = yes; then
37226 cat >>confdefs.h <<_ACEOF
37227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37228_ACEOF
2b5f62a0 37229 have_cos=1
2b5f62a0
VZ
37230fi
37231done
37232
e6cc62c6 37233
2b5f62a0
VZ
37234for ac_func in floor
37235do
e6cc62c6
VS
37236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37237echo "$as_me:$LINENO: checking for $ac_func" >&5
37238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37239if eval "test \"\${$as_ac_var+set}\" = set"; then
37240 echo $ECHO_N "(cached) $ECHO_C" >&6
37241else
37242 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37243/* confdefs.h. */
37244_ACEOF
37245cat confdefs.h >>conftest.$ac_ext
37246cat >>conftest.$ac_ext <<_ACEOF
37247/* end confdefs.h. */
32ddf007
VS
37248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37250#define $ac_func innocuous_$ac_func
37251
2b5f62a0 37252/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37253 which can conflict with char $ac_func (); below.
37254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37255 <limits.h> exists even on freestanding compilers. */
32ddf007 37256
e6cc62c6
VS
37257#ifdef __STDC__
37258# include <limits.h>
37259#else
37260# include <assert.h>
37261#endif
32ddf007
VS
37262
37263#undef $ac_func
37264
2b5f62a0 37265/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37266#ifdef __cplusplus
37267extern "C"
37268{
37269#endif
2b5f62a0 37270/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37271 builtin and then its argument prototype would still apply. */
37272char $ac_func ();
2b5f62a0
VZ
37273/* The GNU C library defines this for functions which it implements
37274 to always fail with ENOSYS. Some functions are actually named
37275 something starting with __ and the normal name is an alias. */
37276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37277choke me
37278#else
e6cc62c6
VS
37279char (*f) () = $ac_func;
37280#endif
37281#ifdef __cplusplus
37282}
2b5f62a0
VZ
37283#endif
37284
e6cc62c6
VS
37285int
37286main ()
37287{
37288return f != $ac_func;
37289 ;
37290 return 0;
37291}
37292_ACEOF
37293rm -f conftest.$ac_objext conftest$ac_exeext
37294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37295 (eval $ac_link) 2>conftest.er1
e6cc62c6 37296 ac_status=$?
32ddf007
VS
37297 grep -v '^ *+' conftest.er1 >conftest.err
37298 rm -f conftest.er1
37299 cat conftest.err >&5
e6cc62c6
VS
37300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301 (exit $ac_status); } &&
e1293dcf 37302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37304 (eval $ac_try) 2>&5
37305 ac_status=$?
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); }; } &&
37308 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37310 (eval $ac_try) 2>&5
37311 ac_status=$?
37312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313 (exit $ac_status); }; }; then
37314 eval "$as_ac_var=yes"
37315else
37316 echo "$as_me: failed program was:" >&5
37317sed 's/^/| /' conftest.$ac_ext >&5
37318
37319eval "$as_ac_var=no"
37320fi
32ddf007
VS
37321rm -f conftest.err conftest.$ac_objext \
37322 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37323fi
37324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37326if test `eval echo '${'$as_ac_var'}'` = yes; then
37327 cat >>confdefs.h <<_ACEOF
37328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37329_ACEOF
2b5f62a0 37330 have_floor=1
2b5f62a0
VZ
37331fi
37332done
37333
e6cc62c6
VS
37334echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37335echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 37336if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
37337 echo "$as_me:$LINENO: result: yes" >&5
37338echo "${ECHO_T}yes" >&6
2b5f62a0 37339else
e6cc62c6
VS
37340 echo "$as_me:$LINENO: result: no" >&5
37341echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37342 LIBS="$LIBS -lm"
37343 # use different functions to avoid configure caching
37344 have_sin=0
37345 have_ceil=0
e6cc62c6
VS
37346
37347for ac_func in sin
2b5f62a0 37348do
e6cc62c6
VS
37349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37350echo "$as_me:$LINENO: checking for $ac_func" >&5
37351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37352if eval "test \"\${$as_ac_var+set}\" = set"; then
37353 echo $ECHO_N "(cached) $ECHO_C" >&6
37354else
37355 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37356/* confdefs.h. */
37357_ACEOF
37358cat confdefs.h >>conftest.$ac_ext
37359cat >>conftest.$ac_ext <<_ACEOF
37360/* end confdefs.h. */
32ddf007
VS
37361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37363#define $ac_func innocuous_$ac_func
37364
2b5f62a0 37365/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37366 which can conflict with char $ac_func (); below.
37367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37368 <limits.h> exists even on freestanding compilers. */
32ddf007 37369
e6cc62c6
VS
37370#ifdef __STDC__
37371# include <limits.h>
37372#else
37373# include <assert.h>
37374#endif
32ddf007
VS
37375
37376#undef $ac_func
37377
2b5f62a0 37378/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37379#ifdef __cplusplus
37380extern "C"
37381{
37382#endif
2b5f62a0 37383/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37384 builtin and then its argument prototype would still apply. */
37385char $ac_func ();
2b5f62a0
VZ
37386/* The GNU C library defines this for functions which it implements
37387 to always fail with ENOSYS. Some functions are actually named
37388 something starting with __ and the normal name is an alias. */
37389#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37390choke me
37391#else
e6cc62c6
VS
37392char (*f) () = $ac_func;
37393#endif
37394#ifdef __cplusplus
37395}
2b5f62a0
VZ
37396#endif
37397
e6cc62c6
VS
37398int
37399main ()
37400{
37401return f != $ac_func;
37402 ;
37403 return 0;
37404}
37405_ACEOF
37406rm -f conftest.$ac_objext conftest$ac_exeext
37407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37408 (eval $ac_link) 2>conftest.er1
e6cc62c6 37409 ac_status=$?
32ddf007
VS
37410 grep -v '^ *+' conftest.er1 >conftest.err
37411 rm -f conftest.er1
37412 cat conftest.err >&5
e6cc62c6
VS
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); } &&
e1293dcf 37415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37417 (eval $ac_try) 2>&5
37418 ac_status=$?
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); }; } &&
37421 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37423 (eval $ac_try) 2>&5
37424 ac_status=$?
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); }; }; then
37427 eval "$as_ac_var=yes"
37428else
37429 echo "$as_me: failed program was:" >&5
37430sed 's/^/| /' conftest.$ac_ext >&5
37431
37432eval "$as_ac_var=no"
37433fi
32ddf007
VS
37434rm -f conftest.err conftest.$ac_objext \
37435 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37436fi
37437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37438echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37439if test `eval echo '${'$as_ac_var'}'` = yes; then
37440 cat >>confdefs.h <<_ACEOF
37441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37442_ACEOF
2b5f62a0 37443 have_sin=1
2b5f62a0
VZ
37444fi
37445done
37446
e6cc62c6
VS
37447
37448for ac_func in ceil
2b5f62a0 37449do
e6cc62c6
VS
37450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37451echo "$as_me:$LINENO: checking for $ac_func" >&5
37452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37453if eval "test \"\${$as_ac_var+set}\" = set"; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455else
37456 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37457/* confdefs.h. */
37458_ACEOF
37459cat confdefs.h >>conftest.$ac_ext
37460cat >>conftest.$ac_ext <<_ACEOF
37461/* end confdefs.h. */
32ddf007
VS
37462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37464#define $ac_func innocuous_$ac_func
37465
2b5f62a0 37466/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37467 which can conflict with char $ac_func (); below.
37468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37469 <limits.h> exists even on freestanding compilers. */
32ddf007 37470
e6cc62c6
VS
37471#ifdef __STDC__
37472# include <limits.h>
37473#else
37474# include <assert.h>
37475#endif
32ddf007
VS
37476
37477#undef $ac_func
37478
2b5f62a0 37479/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37480#ifdef __cplusplus
37481extern "C"
37482{
37483#endif
2b5f62a0 37484/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37485 builtin and then its argument prototype would still apply. */
37486char $ac_func ();
2b5f62a0
VZ
37487/* The GNU C library defines this for functions which it implements
37488 to always fail with ENOSYS. Some functions are actually named
37489 something starting with __ and the normal name is an alias. */
37490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37491choke me
37492#else
e6cc62c6
VS
37493char (*f) () = $ac_func;
37494#endif
37495#ifdef __cplusplus
37496}
2b5f62a0
VZ
37497#endif
37498
e6cc62c6
VS
37499int
37500main ()
37501{
37502return f != $ac_func;
37503 ;
37504 return 0;
37505}
37506_ACEOF
37507rm -f conftest.$ac_objext conftest$ac_exeext
37508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37509 (eval $ac_link) 2>conftest.er1
e6cc62c6 37510 ac_status=$?
32ddf007
VS
37511 grep -v '^ *+' conftest.er1 >conftest.err
37512 rm -f conftest.er1
37513 cat conftest.err >&5
e6cc62c6
VS
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); } &&
e1293dcf 37516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37518 (eval $ac_try) 2>&5
37519 ac_status=$?
37520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521 (exit $ac_status); }; } &&
37522 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37524 (eval $ac_try) 2>&5
37525 ac_status=$?
37526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527 (exit $ac_status); }; }; then
37528 eval "$as_ac_var=yes"
37529else
37530 echo "$as_me: failed program was:" >&5
37531sed 's/^/| /' conftest.$ac_ext >&5
37532
37533eval "$as_ac_var=no"
37534fi
32ddf007
VS
37535rm -f conftest.err conftest.$ac_objext \
37536 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37537fi
37538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37540if test `eval echo '${'$as_ac_var'}'` = yes; then
37541 cat >>confdefs.h <<_ACEOF
37542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37543_ACEOF
2b5f62a0 37544 have_ceil=1
2b5f62a0
VZ
37545fi
37546done
37547
e6cc62c6
VS
37548 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37549echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 37550 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
37551 echo "$as_me:$LINENO: result: yes" >&5
37552echo "${ECHO_T}yes" >&6
2b5f62a0 37553 else
e6cc62c6
VS
37554 echo "$as_me:$LINENO: result: no" >&5
37555echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37556 # not sure we should warn the user, crash, etc.
37557 fi
37558fi
8284b0c5
MB
37559
37560if test "$wxUSE_GUI" = "yes"; then
37561
e6cc62c6 37562
8284b0c5
MB
37563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37564 drawing dynamic erase event exec font image \
1dd02ac0 37565 minimal propsize rotate shaped widgets render"
b625909c
VS
37566
37567 if test "$wxUSE_MONOLITHIC" != "yes"; then
37568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37569 fi
8284b0c5
MB
37570else
37571 SAMPLES_SUBDIRS="console"
37572fi
37573
37574
e6cc62c6 37575INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 37576-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 37577
fddeb06b
VS
37578if test "$GXX" = yes ; then
37579 CXXWARNINGS="-Wall"
37580 fi
37581
37582EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37583
95318f7d 37584CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
37585CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37586CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
37587
37588
fddeb06b 37589LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 37590EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 37591EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 37592EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 37593EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
37594if test "$wxUSE_GUI" = "yes"; then
37595 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37596fi
34b08d2c
VS
37597if test "$wxUSE_OPENGL" = "yes"; then
37598 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37599fi
fddeb06b
VS
37600
37601LDFLAGS="$LDFLAGS $PROFILE"
37602
8284b0c5
MB
37603if test "$wxUSE_GTK" = 1; then
37604 WXCONFIG_INCLUDE=
37605else
37606 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37607fi
37608
67c13b6c
VS
37609WXCONFIG_EXTRALIBS="$LIBS"
37610
37611if test "$wxUSE_REGEX" = "builtin" ; then
4996f261 37612 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
67c13b6c
VS
37613fi
37614if test "$wxUSE_EXPAT" = "builtin" ; then
37615 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37616fi
37617if test "$wxUSE_ODBC" = "builtin" ; then
37618 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37619fi
37620if test "$wxUSE_LIBTIFF" = "builtin" ; then
37621 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37622fi
37623if test "$wxUSE_LIBJPEG" = "builtin" ; then
37624 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37625fi
37626if test "$wxUSE_LIBPNG" = "builtin" ; then
37627 wxconfig_3rdparty="$wxconfig_3rdparty png"
37628fi
37629if test "$wxUSE_ZLIB" = "builtin" ; then
37630 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37631fi
bb41dcbe
VS
37632if test "$wxUSE_ODBC" = "builtin" ; then
37633 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37634fi
67c13b6c
VS
37635
37636for i in $wxconfig_3rdparty ; do
37637 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37638done
37639
37640
fe0895cf
VS
37641if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37642 WXUNIV=1
37643else
37644 WXUNIV=0
8284b0c5
MB
37645fi
37646
8284b0c5
MB
37647
37648
37649
37650
37651
37652
37653
672abd7a 37654
9747f85d
VS
37655if test $wxUSE_MONOLITHIC = "yes" ; then
37656 MONOLITHIC=1
37657else
37658 MONOLITHIC=0
37659fi
8284b0c5 37660
f93ca9fd
VS
37661if test $wxUSE_PLUGINS = "yes" ; then
37662 USE_PLUGINS=1
37663else
37664 USE_PLUGINS=0
37665fi
37666
bb41dcbe
VS
37667if test $wxUSE_ODBC != "no" ; then
37668 USE_ODBC=1
37669else
37670 USE_ODBC=0
37671fi
37672
029b47ad
VS
37673if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37674 OFFICIAL_BUILD=1
37675else
37676 OFFICIAL_BUILD=0
37677fi
37678
8ee2dd05
VS
37679
37680
37681
8284b0c5
MB
37682
37683
37684
37685
37686
37687
c74dc163 37688
34b08d2c 37689
672abd7a 37690
cf615ebb 37691
6c67131a
VS
37692
37693
bb41dcbe 37694
f93ca9fd
VS
37695
37696
37697
3527f29c 37698
89fe663f 37699TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
37700
37701
37702
37703
37704
ea66c762 37705
0f1bc9c2 37706
670ec357
VS
37707
37708
f95e4495
VS
37709 if test "x$BAKEFILE_HOST" = "x"; then
37710 BAKEFILE_HOST="${host}"
37711 fi
37712
fe0895cf 37713 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
37714
37715 if test -n "$ac_tool_prefix"; then
37716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37717set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37718echo "$as_me:$LINENO: checking for $ac_word" >&5
37719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37720if test "${ac_cv_prog_RANLIB+set}" = set; then
37721 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 37722else
fe0895cf
VS
37723 if test -n "$RANLIB"; then
37724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 37725else
e6cc62c6
VS
37726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37727for as_dir in $PATH
37728do
37729 IFS=$as_save_IFS
37730 test -z "$as_dir" && as_dir=.
37731 for ac_exec_ext in '' $ac_executable_extensions; do
37732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37735 break 2
37736 fi
37737done
37738done
37739
10f2d63a 37740fi
10f2d63a 37741fi
e6cc62c6 37742RANLIB=$ac_cv_prog_RANLIB
fe0895cf 37743if test -n "$RANLIB"; then
e6cc62c6
VS
37744 echo "$as_me:$LINENO: result: $RANLIB" >&5
37745echo "${ECHO_T}$RANLIB" >&6
37746else
37747 echo "$as_me:$LINENO: result: no" >&5
37748echo "${ECHO_T}no" >&6
37749fi
37750
37751fi
37752if test -z "$ac_cv_prog_RANLIB"; then
37753 ac_ct_RANLIB=$RANLIB
37754 # Extract the first word of "ranlib", so it can be a program name with args.
37755set dummy ranlib; ac_word=$2
37756echo "$as_me:$LINENO: checking for $ac_word" >&5
37757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37758if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37759 echo $ECHO_N "(cached) $ECHO_C" >&6
37760else
37761 if test -n "$ac_ct_RANLIB"; then
37762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37763else
37764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37765for as_dir in $PATH
37766do
37767 IFS=$as_save_IFS
37768 test -z "$as_dir" && as_dir=.
37769 for ac_exec_ext in '' $ac_executable_extensions; do
37770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37771 ac_cv_prog_ac_ct_RANLIB="ranlib"
37772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37773 break 2
37774 fi
37775done
37776done
37777
37778 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37779fi
37780fi
37781ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37782if test -n "$ac_ct_RANLIB"; then
37783 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37784echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 37785else
e6cc62c6
VS
37786 echo "$as_me:$LINENO: result: no" >&5
37787echo "${ECHO_T}no" >&6
37788fi
37789
37790 RANLIB=$ac_ct_RANLIB
37791else
37792 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 37793fi
665bbe97 37794
fe0895cf
VS
37795 # Find a good install program. We prefer a C program (faster),
37796# so one script is as good as another. But avoid the broken or
37797# incompatible versions:
37798# SysV /etc/install, /usr/sbin/install
37799# SunOS /usr/etc/install
37800# IRIX /sbin/install
37801# AIX /bin/install
e6cc62c6 37802# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
37803# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37804# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37805# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32ddf007 37806# OS/2's system install, which has a completely different semantic
fe0895cf 37807# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
37808echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37809echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 37810if test -z "$INSTALL"; then
e6cc62c6
VS
37811if test "${ac_cv_path_install+set}" = set; then
37812 echo $ECHO_N "(cached) $ECHO_C" >&6
37813else
37814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37815for as_dir in $PATH
37816do
37817 IFS=$as_save_IFS
37818 test -z "$as_dir" && as_dir=.
37819 # Account for people who put trailing slashes in PATH elements.
37820case $as_dir/ in
37821 ./ | .// | /cC/* | \
37822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32ddf007 37823 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
37824 /usr/ucb/* ) ;;
37825 *)
37826 # OSF1 and SCO ODT 3.0 have their own names for install.
37827 # Don't use installbsd from OSF since it installs stuff as root
37828 # by default.
37829 for ac_prog in ginstall scoinst install; do
37830 for ac_exec_ext in '' $ac_executable_extensions; do
32ddf007
VS
37831 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37832 if test $ac_prog = install &&
37833 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37834 # AIX install. It has an incompatible calling convention.
37835 :
37836 elif test $ac_prog = install &&
37837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37838 # program-specific install script used by HP pwplus--don't use.
37839 :
37840 else
37841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37842 break 3
37843 fi
37844 fi
fe0895cf 37845 done
e6cc62c6
VS
37846 done
37847 ;;
37848esac
37849done
37850
fe0895cf
VS
37851
37852fi
37853 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 37854 INSTALL=$ac_cv_path_install
fe0895cf
VS
37855 else
37856 # As a last resort, use the slow shell script. We don't cache a
37857 # path for INSTALL within a source directory, because that will
37858 # break other packages using the cache if that directory is
37859 # removed, or if the path is relative.
e6cc62c6 37860 INSTALL=$ac_install_sh
fe0895cf
VS
37861 fi
37862fi
e6cc62c6
VS
37863echo "$as_me:$LINENO: result: $INSTALL" >&5
37864echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
37865
37866# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37867# It thinks the first close brace ends the variable substitution.
37868test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37869
e6cc62c6 37870test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
37871
37872test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37873
e6cc62c6
VS
37874 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37875echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37876LN_S=$as_ln_s
37877if test "$LN_S" = "ln -s"; then
37878 echo "$as_me:$LINENO: result: yes" >&5
37879echo "${ECHO_T}yes" >&6
fe0895cf 37880else
e6cc62c6
VS
37881 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37882echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
37883fi
37884
37885
e6cc62c6
VS
37886 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37887echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
32ddf007 37888set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
37889if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37890 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37891else
e6cc62c6 37892 cat >conftest.make <<\_ACEOF
fe0895cf 37893all:
e6cc62c6
VS
37894 @echo 'ac_maketemp="$(MAKE)"'
37895_ACEOF
fe0895cf 37896# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 37897eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
37898if test -n "$ac_maketemp"; then
37899 eval ac_cv_prog_make_${ac_make}_set=yes
37900else
37901 eval ac_cv_prog_make_${ac_make}_set=no
37902fi
e6cc62c6 37903rm -f conftest.make
fe0895cf
VS
37904fi
37905if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
37906 echo "$as_me:$LINENO: result: yes" >&5
37907echo "${ECHO_T}yes" >&6
fe0895cf
VS
37908 SET_MAKE=
37909else
e6cc62c6
VS
37910 echo "$as_me:$LINENO: result: no" >&5
37911echo "${ECHO_T}no" >&6
fe0895cf
VS
37912 SET_MAKE="MAKE=${MAKE-make}"
37913fi
37914
e6cc62c6
VS
37915
37916
874d12cf
VS
37917 if test -n "$ac_tool_prefix"; then
37918 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37919set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
37920echo "$as_me:$LINENO: checking for $ac_word" >&5
37921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37922if test "${ac_cv_prog_AR+set}" = set; then
37923 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37924else
37925 if test -n "$AR"; then
37926 ac_cv_prog_AR="$AR" # Let the user override the test.
37927else
e6cc62c6
VS
37928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37929for as_dir in $PATH
37930do
37931 IFS=$as_save_IFS
37932 test -z "$as_dir" && as_dir=.
37933 for ac_exec_ext in '' $ac_executable_extensions; do
37934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37935 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
37936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37937 break 2
37938 fi
37939done
37940done
37941
fe0895cf
VS
37942fi
37943fi
e6cc62c6 37944AR=$ac_cv_prog_AR
fe0895cf 37945if test -n "$AR"; then
e6cc62c6
VS
37946 echo "$as_me:$LINENO: result: $AR" >&5
37947echo "${ECHO_T}$AR" >&6
fe0895cf 37948else
e6cc62c6
VS
37949 echo "$as_me:$LINENO: result: no" >&5
37950echo "${ECHO_T}no" >&6
fe0895cf
VS
37951fi
37952
874d12cf
VS
37953fi
37954if test -z "$ac_cv_prog_AR"; then
37955 ac_ct_AR=$AR
37956 # Extract the first word of "ar", so it can be a program name with args.
37957set dummy ar; ac_word=$2
37958echo "$as_me:$LINENO: checking for $ac_word" >&5
37959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37960if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37961 echo $ECHO_N "(cached) $ECHO_C" >&6
37962else
37963 if test -n "$ac_ct_AR"; then
37964 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37965else
37966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37967for as_dir in $PATH
37968do
37969 IFS=$as_save_IFS
37970 test -z "$as_dir" && as_dir=.
37971 for ac_exec_ext in '' $ac_executable_extensions; do
37972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37973 ac_cv_prog_ac_ct_AR="ar"
37974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37975 break 2
37976 fi
37977done
37978done
37979
37980 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37981fi
37982fi
37983ac_ct_AR=$ac_cv_prog_ac_ct_AR
37984if test -n "$ac_ct_AR"; then
37985 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37986echo "${ECHO_T}$ac_ct_AR" >&6
37987else
37988 echo "$as_me:$LINENO: result: no" >&5
37989echo "${ECHO_T}no" >&6
37990fi
37991
37992 AR=$ac_ct_AR
37993else
37994 AR="$ac_cv_prog_AR"
37995fi
37996
37997 if test -n "$ac_tool_prefix"; then
37998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37999set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
38000echo "$as_me:$LINENO: checking for $ac_word" >&5
38001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38002if test "${ac_cv_prog_STRIP+set}" = set; then
38003 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38004else
38005 if test -n "$STRIP"; then
38006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38007else
e6cc62c6
VS
38008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38009for as_dir in $PATH
38010do
38011 IFS=$as_save_IFS
38012 test -z "$as_dir" && as_dir=.
38013 for ac_exec_ext in '' $ac_executable_extensions; do
38014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 38015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
38016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38017 break 2
38018 fi
38019done
38020done
38021
fe0895cf
VS
38022fi
38023fi
e6cc62c6 38024STRIP=$ac_cv_prog_STRIP
fe0895cf 38025if test -n "$STRIP"; then
e6cc62c6
VS
38026 echo "$as_me:$LINENO: result: $STRIP" >&5
38027echo "${ECHO_T}$STRIP" >&6
fe0895cf 38028else
e6cc62c6
VS
38029 echo "$as_me:$LINENO: result: no" >&5
38030echo "${ECHO_T}no" >&6
fe0895cf
VS
38031fi
38032
874d12cf
VS
38033fi
38034if test -z "$ac_cv_prog_STRIP"; then
38035 ac_ct_STRIP=$STRIP
38036 # Extract the first word of "strip", so it can be a program name with args.
38037set dummy strip; ac_word=$2
38038echo "$as_me:$LINENO: checking for $ac_word" >&5
38039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38040if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38041 echo $ECHO_N "(cached) $ECHO_C" >&6
38042else
38043 if test -n "$ac_ct_STRIP"; then
38044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38045else
38046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38047for as_dir in $PATH
38048do
38049 IFS=$as_save_IFS
38050 test -z "$as_dir" && as_dir=.
38051 for ac_exec_ext in '' $ac_executable_extensions; do
38052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38053 ac_cv_prog_ac_ct_STRIP="strip"
38054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38055 break 2
38056 fi
38057done
38058done
38059
38060 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38061fi
38062fi
38063ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38064if test -n "$ac_ct_STRIP"; then
38065 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38066echo "${ECHO_T}$ac_ct_STRIP" >&6
38067else
38068 echo "$as_me:$LINENO: result: no" >&5
38069echo "${ECHO_T}no" >&6
38070fi
38071
38072 STRIP=$ac_ct_STRIP
38073else
38074 STRIP="$ac_cv_prog_STRIP"
38075fi
38076
38077 if test -n "$ac_tool_prefix"; then
38078 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38079set dummy ${ac_tool_prefix}nm; ac_word=$2
38080echo "$as_me:$LINENO: checking for $ac_word" >&5
38081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38082if test "${ac_cv_prog_NM+set}" = set; then
38083 echo $ECHO_N "(cached) $ECHO_C" >&6
38084else
38085 if test -n "$NM"; then
38086 ac_cv_prog_NM="$NM" # Let the user override the test.
38087else
38088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38089for as_dir in $PATH
38090do
38091 IFS=$as_save_IFS
38092 test -z "$as_dir" && as_dir=.
38093 for ac_exec_ext in '' $ac_executable_extensions; do
38094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38095 ac_cv_prog_NM="${ac_tool_prefix}nm"
38096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38097 break 2
38098 fi
38099done
38100done
38101
38102fi
38103fi
38104NM=$ac_cv_prog_NM
38105if test -n "$NM"; then
38106 echo "$as_me:$LINENO: result: $NM" >&5
38107echo "${ECHO_T}$NM" >&6
38108else
38109 echo "$as_me:$LINENO: result: no" >&5
38110echo "${ECHO_T}no" >&6
38111fi
38112
38113fi
38114if test -z "$ac_cv_prog_NM"; then
38115 ac_ct_NM=$NM
38116 # Extract the first word of "nm", so it can be a program name with args.
38117set dummy nm; ac_word=$2
38118echo "$as_me:$LINENO: checking for $ac_word" >&5
38119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38120if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38121 echo $ECHO_N "(cached) $ECHO_C" >&6
38122else
38123 if test -n "$ac_ct_NM"; then
38124 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38125else
38126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38127for as_dir in $PATH
38128do
38129 IFS=$as_save_IFS
38130 test -z "$as_dir" && as_dir=.
38131 for ac_exec_ext in '' $ac_executable_extensions; do
38132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38133 ac_cv_prog_ac_ct_NM="nm"
38134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38135 break 2
38136 fi
38137done
38138done
38139
38140 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38141fi
38142fi
38143ac_ct_NM=$ac_cv_prog_ac_ct_NM
38144if test -n "$ac_ct_NM"; then
38145 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38146echo "${ECHO_T}$ac_ct_NM" >&6
38147else
38148 echo "$as_me:$LINENO: result: no" >&5
38149echo "${ECHO_T}no" >&6
38150fi
38151
38152 NM=$ac_ct_NM
38153else
38154 NM="$ac_cv_prog_NM"
38155fi
38156
fe0895cf 38157
f95e4495 38158 case ${BAKEFILE_HOST} in
fe0895cf
VS
38159 *-hp-hpux* )
38160 INSTALL_DIR="mkdir"
38161 ;;
38162 *) INSTALL_DIR="$INSTALL -d"
38163 ;;
38164 esac
e6cc62c6 38165
fe0895cf 38166
6b9d41a5 38167 LDFLAGS_GUI=
f95e4495 38168 case ${BAKEFILE_HOST} in
6b9d41a5
VS
38169 *-*-cygwin* | *-*-mingw32* )
38170 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
38171 esac
38172
38173
fe0895cf 38174 fi
e6cc62c6
VS
38175
38176 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38177echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 38178if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 38179 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38180else
e6cc62c6 38181
fe0895cf
VS
38182 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38183 egrep -s GNU > /dev/null); then
38184 bakefile_cv_prog_makeisgnu="yes"
38185 else
38186 bakefile_cv_prog_makeisgnu="no"
38187 fi
fe0895cf 38188
e6cc62c6 38189fi
49b0a3aa
VS
38190echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38191echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
38192
38193 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38194 IF_GNU_MAKE=""
38195 else
38196 IF_GNU_MAKE="#"
38197 fi
fe0895cf 38198
e6cc62c6
VS
38199
38200
fe0895cf
VS
38201 PLATFORM_UNIX=0
38202 PLATFORM_WIN32=0
38203 PLATFORM_MSDOS=0
38204 PLATFORM_MAC=0
38205 PLATFORM_MACOSX=0
96c1699d 38206 PLATFORM_OS2=0
e6cc62c6 38207
f95e4495
VS
38208 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38209 case "${BAKEFILE_HOST}" in
38210 *-*-cygwin* | *-*-mingw32* )
38211 PLATFORM_WIN32=1
38212 ;;
38213 *-pc-msdosdjgpp )
38214 PLATFORM_MSDOS=1
38215 ;;
38216 *-pc-os2_emx | *-pc-os2-emx )
38217 PLATFORM_OS2=1
38218 ;;
38219 powerpc-*-darwin* )
38220 PLATFORM_MAC=1
38221 PLATFORM_MACOSX=1
38222 ;;
38223 * )
38224 PLATFORM_UNIX=1
38225 ;;
38226 esac
38227 else
38228 case "$BAKEFILE_FORCE_PLATFORM" in
38229 win32 )
38230 PLATFORM_WIN32=1
38231 ;;
38232 msdos )
38233 PLATFORM_MSDOS=1
38234 ;;
38235 os2 )
38236 PLATFORM_OS2=1
38237 ;;
38238 darwin )
38239 PLATFORM_MAC=1
38240 PLATFORM_MACOSX=1
38241 ;;
38242 unix )
38243 PLATFORM_UNIX=1
38244 ;;
38245 * )
38246 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38247echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38248 { (exit 1); exit 1; }; }
38249 ;;
38250 esac
38251 fi
fe0895cf 38252
fe0895cf 38253
e6cc62c6
VS
38254
38255
38256
38257
38258
38259
96c1699d 38260
fe0895cf 38261 SO_SUFFIX="so"
131f235d 38262 SO_SUFFIX_MODULE="so"
fe0895cf 38263 EXEEXT=""
4b1f6360 38264 LIBPREFIX=lib
fe0895cf 38265 DLLPREFIX=lib
131f235d 38266 DLLPREFIX_MODULE=
e6cc62c6 38267
f95e4495 38268 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38269 *-hp-hpux* )
38270 SO_SUFFIX="sl"
131f235d 38271 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
38272 ;;
38273 *-*-aix* )
38274 SO_SUFFIX="a"
131f235d 38275 SO_SUFFIX_MODULE="a"
fe0895cf
VS
38276 ;;
38277 *-*-cygwin* | *-*-mingw32* )
38278 SO_SUFFIX="dll"
131f235d 38279 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
38280 EXEEXT=".exe"
38281 DLLPREFIX=""
38282 ;;
4b1f6360
VS
38283 *-pc-msdosdjgpp )
38284 EXEEXT=".exe"
38285 DLLPREFIX=""
38286 ;;
38287 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
38288 EXEEXT=".exe"
38289 DLLPREFIX=""
4b1f6360 38290 LIBPREFIX=""
fe0895cf
VS
38291 ;;
38292 powerpc-*-darwin* )
38293 SO_SUFFIX="dylib"
131f235d 38294 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
38295 ;;
38296 esac
38297
fe0895cf 38298
e6cc62c6
VS
38299
38300
38301
38302
131f235d
VS
38303
38304
4b1f6360 38305
fe0895cf
VS
38306 SHARED_LD_CC="\$(CC) -shared -o"
38307 SHARED_LD_CXX="\$(CXX) -shared -o"
38308
38309 if test "x$GCC" = "xyes"; then
38310 PIC_FLAG="-fPIC"
38311 fi
38312
f95e4495 38313 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38314 *-hp-hpux* )
38315 if test "x$GCC" = "xyes"; then
38316 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38317 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38318 else
38319 LDFLAGS="$LDFLAGS -L/usr/lib"
38320
38321 SHARED_LD_CC="${CC} -b -o"
38322 SHARED_LD_CXX="${CXX} -b -o"
38323 PIC_FLAG="+Z"
38324 fi
38325 ;;
38326
38327 *-*-linux* )
38328 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
38329 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38330echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38331if test "${bakefile_cv_prog_icc+set}" = set; then
38332 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38333else
fe0895cf 38334
e6cc62c6 38335 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
38336/* confdefs.h. */
38337_ACEOF
38338cat confdefs.h >>conftest.$ac_ext
38339cat >>conftest.$ac_ext <<_ACEOF
38340/* end confdefs.h. */
38341
38342int
38343main ()
38344{
fe0895cf
VS
38345
38346 #ifndef __INTEL_COMPILER
38347 #error Not icc
38348 #endif
e6cc62c6
VS
38349
38350 ;
38351 return 0;
38352}
38353_ACEOF
38354rm -f conftest.$ac_objext
38355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38356 (eval $ac_compile) 2>conftest.er1
e6cc62c6 38357 ac_status=$?
32ddf007
VS
38358 grep -v '^ *+' conftest.er1 >conftest.err
38359 rm -f conftest.er1
38360 cat conftest.err >&5
e6cc62c6
VS
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); } &&
e1293dcf 38363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
38364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365 (eval $ac_try) 2>&5
38366 ac_status=$?
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); }; } &&
38369 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
38370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371 (eval $ac_try) 2>&5
38372 ac_status=$?
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); }; }; then
fe0895cf
VS
38375 bakefile_cv_prog_icc=yes
38376else
e6cc62c6
VS
38377 echo "$as_me: failed program was:" >&5
38378sed 's/^/| /' conftest.$ac_ext >&5
38379
38380bakefile_cv_prog_icc=no
38381
fe0895cf 38382fi
32ddf007 38383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 38384
e6cc62c6
VS
38385fi
38386echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38387echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
38388 if test "$bakefile_cv_prog_icc" = "yes"; then
38389 PIC_FLAG="-KPIC"
38390 fi
38391 fi
38392 ;;
38393
38394 *-*-solaris2* )
38395 if test "x$GCC" != xyes ; then
38396 SHARED_LD_CC="${CC} -G -o"
38397 SHARED_LD_CXX="${CXX} -G -o"
38398 PIC_FLAG="-KPIC"
38399 fi
38400 ;;
38401
38402 *-*-darwin* )
38403 CFLAGS="$CFLAGS -fno-common"
38404 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
38405
38406
2a879853 38407 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
38408echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38409if test "${wx_cv_gcc31+set}" = set; then
38410 echo $ECHO_N "(cached) $ECHO_C" >&6
38411else
38412
2a879853 38413 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
38414/* confdefs.h. */
38415_ACEOF
38416cat confdefs.h >>conftest.$ac_ext
38417cat >>conftest.$ac_ext <<_ACEOF
38418/* end confdefs.h. */
38419
38420int
38421main ()
38422{
38423
2a879853
VS
38424 #if (__GNUC__ < 3) || \
38425 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38426 #error old gcc
38427 #endif
43948499
RD
38428
38429 ;
38430 return 0;
38431}
38432_ACEOF
38433rm -f conftest.$ac_objext
38434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38435 (eval $ac_compile) 2>conftest.er1
43948499 38436 ac_status=$?
32ddf007
VS
38437 grep -v '^ *+' conftest.er1 >conftest.err
38438 rm -f conftest.er1
38439 cat conftest.err >&5
43948499
RD
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); } &&
e1293dcf 38442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
38443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444 (eval $ac_try) 2>&5
38445 ac_status=$?
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); }; } &&
38448 { ac_try='test -s conftest.$ac_objext'
43948499
RD
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38451 ac_status=$?
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; }; then
38454
2a879853 38455 wx_cv_gcc31=yes
43948499
RD
38456
38457else
38458 echo "$as_me: failed program was:" >&5
38459sed 's/^/| /' conftest.$ac_ext >&5
38460
38461
2a879853 38462 wx_cv_gcc31=no
43948499
RD
38463
38464
38465fi
32ddf007 38466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
38467
38468fi
38469echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38470echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 38471 if test "$wx_cv_gcc31" = "no"; then
43948499 38472 cat <<EOF >shared-ld-sh
fe0895cf
VS
38473#!/bin/sh
38474#-----------------------------------------------------------------------------
38475#-- Name: distrib/mac/shared-ld-sh
38476#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38477#-- Author: Gilles Depeyrot
38478#-- Copyright: (c) 2002 Gilles Depeyrot
38479#-- Licence: any use permitted
38480#-----------------------------------------------------------------------------
38481
38482verbose=0
38483args=""
38484objects=""
131f235d 38485linking_flag="-dynamiclib"
fe0895cf
VS
38486
38487while test \${#} -gt 0; do
38488 case \${1} in
38489
38490 -v)
38491 verbose=1
38492 ;;
38493
38494 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38495 # collect these options and values
38496 args="\${args} \${1} \${2}"
38497 shift
38498 ;;
38499
74500461 38500 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
38501 # collect these options
38502 args="\${args} \${1}"
38503 ;;
38504
131f235d
VS
38505 -dynamiclib|-bundle)
38506 linking_flag="\${1}"
fe0895cf
VS
38507 ;;
38508
38509 -*)
38510 echo "shared-ld: unhandled option '\${1}'"
38511 exit 1
38512 ;;
38513
4d264332 38514 *.o | *.a | *.dylib)
fe0895cf
VS
38515 # collect object files
38516 objects="\${objects} \${1}"
38517 ;;
38518
38519 *)
38520 echo "shared-ld: unhandled argument '\${1}'"
38521 exit 1
38522 ;;
38523
38524 esac
38525 shift
38526done
38527
38528#
38529# Link one module containing all the others
38530#
38531if test \${verbose} = 1; then
38532 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38533fi
38534c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38535status=\$?
38536if test \${status} != 0; then
38537 exit \${status}
38538fi
38539
38540#
38541# Link the shared library from the single module created
38542#
38543if test \${verbose} = 1; then
2a879853 38544 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 38545fi
131f235d 38546c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
38547status=\$?
38548if test \${status} != 0; then
38549 exit \${status}
38550fi
38551
38552#
38553# Remove intermediate module
38554#
38555rm -f master.\$\$.o
38556
38557exit 0
38558EOF
43948499 38559 chmod +x shared-ld-sh
fe0895cf 38560
7f523214
VS
38561 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38562 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
38563 SHARED_LD_CXX="$SHARED_LD_CC"
38564 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38565 else
7f523214
VS
38566 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38567 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38568 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38569 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
38570 fi
38571
fe0895cf 38572 PIC_FLAG="-dynamic -fPIC"
2a879853 38573 ;;
fe0895cf
VS
38574
38575 *-*-aix* )
38576 if test "x$GCC" != "xyes"; then
38577 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38578set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
38579echo "$as_me:$LINENO: checking for $ac_word" >&5
38580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38581if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38582 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38583else
38584 if test -n "$AIX_CXX_LD"; then
38585 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38586else
e6cc62c6
VS
38587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38588for as_dir in $PATH
38589do
38590 IFS=$as_save_IFS
38591 test -z "$as_dir" && as_dir=.
38592 for ac_exec_ext in '' $ac_executable_extensions; do
38593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38594 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38596 break 2
38597 fi
38598done
38599done
38600
fe0895cf
VS
38601 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38602fi
38603fi
e6cc62c6 38604AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 38605if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
38606 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38607echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 38608else
e6cc62c6
VS
38609 echo "$as_me:$LINENO: result: no" >&5
38610echo "${ECHO_T}no" >&6
fe0895cf
VS
38611fi
38612
38613 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38614 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38615 fi
38616 ;;
38617
38618 *-*-beos* )
38619 SHARED_LD_CC="${LD} -shared -o"
38620 SHARED_LD_CXX="${LD} -shared -o"
38621 ;;
38622
38623 *-*-irix* )
38624 if test "x$GCC" != "xyes"; then
38625 PIC_FLAG="-KPIC"
38626 fi
38627 ;;
e6cc62c6 38628
fe0895cf
VS
38629 *-*-cygwin* | *-*-mingw32* )
38630 PIC_FLAG=""
38631 ;;
e6cc62c6 38632
fe0895cf
VS
38633 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38634 *-*-sunos4* | \
38635 *-*-osf* | \
38636 *-*-dgux5* | \
4b1f6360 38637 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
38638 *-*-sysv5* )
38639 ;;
38640
38641 *)
f95e4495
VS
38642 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38643echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 38644 { (exit 1); exit 1; }; }
fe0895cf
VS
38645 esac
38646
131f235d
VS
38647 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38648 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38649 fi
38650 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 38651 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
38652 fi
38653
38654
38655
fe0895cf 38656
e6cc62c6
VS
38657
38658
38659
38660
fe0895cf
VS
38661 USE_SOVERSION=0
38662 USE_SOVERLINUX=0
38663 USE_SOVERSOLARIS=0
38664 USE_SOSYMLINKS=0
38665 USE_MACVERSION=0
38666 SONAME_FLAG=
38667
f95e4495 38668 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38669 *-*-linux* )
38670 SONAME_FLAG="-Wl,-soname,"
38671 USE_SOVERSION=1
38672 USE_SOVERLINUX=1
38673 USE_SOSYMLINKS=1
38674 ;;
38675
38676 *-*-solaris2* )
38677 SONAME_FLAG="-h "
38678 USE_SOVERSION=1
38679 USE_SOVERSOLARIS=1
38680 USE_SOSYMLINKS=1
38681 ;;
38682
38683 *-*-darwin* )
38684 USE_MACVERSION=1
38685 USE_SOVERSION=1
38686 USE_SOSYMLINKS=1
e6cc62c6 38687 ;;
fe0895cf
VS
38688 esac
38689
fe0895cf 38690
e6cc62c6
VS
38691
38692
38693
38694
38695
38696
38697
49b0a3aa
VS
38698 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
38699echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
38700 DEPS_TRACKING=0
38701
fe0895cf 38702 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
38703 DEPSMODE=gcc
38704 DEPS_TRACKING=1
f95e4495 38705 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
38706 powerpc-*-darwin* )
38707 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
38708 ;;
38709 * )
38710 DEPSFLAG_GCC="-MMD"
38711 ;;
38712 esac
49b0a3aa
VS
38713 echo "$as_me:$LINENO: result: gcc" >&5
38714echo "${ECHO_T}gcc" >&6
38715 else
38716 echo "$as_me:$LINENO: result: none" >&5
38717echo "${ECHO_T}none" >&6
38718 fi
38719
38720 if test $DEPS_TRACKING = 1 ; then
38721 cat <<EOF >bk-deps
38722#!/bin/sh
38723
45842500
VS
38724# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38725# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
38726#
38727# Permission is given to use this file in any way.
38728
38729DEPSMODE=$DEPSMODE
38730DEPSDIR=.deps
3e5c3c83 38731DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
38732
38733mkdir -p \$DEPSDIR
38734
38735if test \$DEPSMODE = gcc ; then
3e5c3c83 38736 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
38737 status=\${?}
38738 if test \${status} != 0 ; then
38739 exit \${status}
38740 fi
38741 # move created file to the location we want it in:
38742 while test \${#} -gt 0; do
38743 case "\${1}" in
38744 -o )
38745 shift
38746 objfile=\${1}
38747 ;;
38748 -* )
38749 ;;
38750 * )
38751 srcfile=\${1}
38752 ;;
38753 esac
38754 shift
38755 done
38756 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
38757 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
38758 if test -f \$depfile ; then
38759 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38760 rm -f \$depfile
38761 else
38762 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
38763 if test -f \$depfile ; then
9d0be83a 38764 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
38765 rm -f \$depfile
38766 fi
38767 fi
49b0a3aa
VS
38768 exit 0
38769else
38770 \${*}
38771 exit \${?}
38772fi
38773EOF
38774 chmod +x bk-deps
fe0895cf 38775 fi
fe0895cf 38776
e6cc62c6
VS
38777
38778
38779
fe0895cf
VS
38780 RESCOMP=
38781 SETFILE=
38782
f95e4495 38783 case ${BAKEFILE_HOST} in
fe0895cf
VS
38784 *-*-cygwin* | *-*-mingw32* )
38785 if test "$build" != "$host" ; then
38786 RESCOMP=$host_alias-windres
38787 else
38788 # Extract the first word of "windres", so it can be a program name with args.
38789set dummy windres; ac_word=$2
e6cc62c6
VS
38790echo "$as_me:$LINENO: checking for $ac_word" >&5
38791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38792if test "${ac_cv_prog_RESCOMP+set}" = set; then
38793 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38794else
38795 if test -n "$RESCOMP"; then
38796 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38797else
e6cc62c6
VS
38798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38799for as_dir in $PATH
38800do
38801 IFS=$as_save_IFS
38802 test -z "$as_dir" && as_dir=.
38803 for ac_exec_ext in '' $ac_executable_extensions; do
38804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38805 ac_cv_prog_RESCOMP="windres"
38806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38807 break 2
38808 fi
38809done
38810done
38811
fe0895cf
VS
38812 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
38813fi
38814fi
e6cc62c6 38815RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38816if test -n "$RESCOMP"; then
e6cc62c6
VS
38817 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38818echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38819else
e6cc62c6
VS
38820 echo "$as_me:$LINENO: result: no" >&5
38821echo "${ECHO_T}no" >&6
fe0895cf
VS
38822fi
38823
38824 fi
38825 ;;
e6cc62c6 38826
fe0895cf
VS
38827 *-*-darwin* )
38828 # Extract the first word of "Rez", so it can be a program name with args.
38829set dummy Rez; ac_word=$2
e6cc62c6
VS
38830echo "$as_me:$LINENO: checking for $ac_word" >&5
38831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38832if test "${ac_cv_prog_RESCOMP+set}" = set; then
38833 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38834else
38835 if test -n "$RESCOMP"; then
38836 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38837else
e6cc62c6
VS
38838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38839for as_dir in $PATH
38840do
38841 IFS=$as_save_IFS
38842 test -z "$as_dir" && as_dir=.
38843 for ac_exec_ext in '' $ac_executable_extensions; do
38844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38845 ac_cv_prog_RESCOMP="Rez"
38846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38847 break 2
38848 fi
38849done
38850done
38851
fe0895cf
VS
38852 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
38853fi
38854fi
e6cc62c6 38855RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38856if test -n "$RESCOMP"; then
e6cc62c6
VS
38857 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38858echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38859else
e6cc62c6
VS
38860 echo "$as_me:$LINENO: result: no" >&5
38861echo "${ECHO_T}no" >&6
fe0895cf
VS
38862fi
38863
38864 # Extract the first word of "SetFile", so it can be a program name with args.
38865set dummy SetFile; ac_word=$2
e6cc62c6
VS
38866echo "$as_me:$LINENO: checking for $ac_word" >&5
38867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38868if test "${ac_cv_prog_SETFILE+set}" = set; then
38869 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38870else
38871 if test -n "$SETFILE"; then
38872 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38873else
e6cc62c6
VS
38874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38875for as_dir in $PATH
38876do
38877 IFS=$as_save_IFS
38878 test -z "$as_dir" && as_dir=.
38879 for ac_exec_ext in '' $ac_executable_extensions; do
38880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38881 ac_cv_prog_SETFILE="SetFile"
38882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38883 break 2
38884 fi
38885done
38886done
38887
fe0895cf
VS
38888 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
38889fi
38890fi
e6cc62c6 38891SETFILE=$ac_cv_prog_SETFILE
fe0895cf 38892if test -n "$SETFILE"; then
e6cc62c6
VS
38893 echo "$as_me:$LINENO: result: $SETFILE" >&5
38894echo "${ECHO_T}$SETFILE" >&6
fe0895cf 38895else
e6cc62c6
VS
38896 echo "$as_me:$LINENO: result: no" >&5
38897echo "${ECHO_T}no" >&6
fe0895cf
VS
38898fi
38899
38900 ;;
38901 esac
38902
fe0895cf
VS
38903
38904
e6cc62c6
VS
38905
38906
38907
38908
45842500 38909
45842500
VS
38910 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
38911if test "${enable_precomp_headers+set}" = set; then
38912 enableval="$enable_precomp_headers"
38913 bk_use_pch="$enableval"
38914fi;
38915
38916 GCC_PCH=0
38917
38918 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
38919 if test "x$GCC" = "xyes"; then
38920 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
38921echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
38922 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
38923/* confdefs.h. */
38924_ACEOF
38925cat confdefs.h >>conftest.$ac_ext
38926cat >>conftest.$ac_ext <<_ACEOF
38927/* end confdefs.h. */
38928
38929int
38930main ()
38931{
38932
8bcf2d20
VS
38933 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
38934 #error "no pch support"
38935 #endif
38936 #if (__GNUC__ < 3)
38937 #error "no pch support"
38938 #endif
38939 #if (__GNUC__ == 3) && \
38940 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
38941 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
38942 #error "no pch support"
45842500
VS
38943 #endif
38944
38945 ;
38946 return 0;
38947}
38948_ACEOF
38949rm -f conftest.$ac_objext
38950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38951 (eval $ac_compile) 2>conftest.er1
45842500 38952 ac_status=$?
32ddf007
VS
38953 grep -v '^ *+' conftest.er1 >conftest.err
38954 rm -f conftest.er1
38955 cat conftest.err >&5
45842500
VS
38956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957 (exit $ac_status); } &&
e1293dcf 38958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
38959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960 (eval $ac_try) 2>&5
38961 ac_status=$?
38962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); }; } &&
38964 { ac_try='test -s conftest.$ac_objext'
45842500
VS
38965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38966 (eval $ac_try) 2>&5
38967 ac_status=$?
38968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969 (exit $ac_status); }; }; then
38970
38971 echo "$as_me:$LINENO: result: yes" >&5
38972echo "${ECHO_T}yes" >&6
38973 CPPFLAGS="-fpch-deps $CPPFLAGS"
38974 GCC_PCH=1
38975
38976else
38977 echo "$as_me: failed program was:" >&5
38978sed 's/^/| /' conftest.$ac_ext >&5
38979
38980
38981 echo "$as_me:$LINENO: result: no" >&5
38982echo "${ECHO_T}no" >&6
38983
38984fi
32ddf007 38985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
38986 if test $GCC_PCH = 1 ; then
38987 cat <<EOF >bk-make-pch
38988#!/bin/sh
38989
38990# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38991# script. It is used to generated precompiled headers.
38992#
38993# Permission is given to use this file in any way.
38994
38995outfile="\${1}"
38996header="\${2}"
38997shift
38998shift
38999
39000compiler=
39001headerfile=
39002while test \${#} -gt 0; do
39003 case "\${1}" in
39004 -I* )
39005 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39006 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39007 headerfile="\${incdir}/\${header}"
39008 fi
39009 ;;
39010 esac
39011 compiler="\${compiler} \${1}"
39012 shift
39013done
39014
39015if test "x\${headerfile}" = "x" ; then
39016 echo "error: can't find header \${header} in include paths" >2
39017else
39018 if test -f \${outfile} ; then
39019 rm -f \${outfile}
39020 else
39021 mkdir -p \`dirname \${outfile}\`
39022 fi
39023 depsfile=".deps/\`basename \${outfile}\`.d"
39024 mkdir -p .deps
39025 # can do this because gcc is >= 3.4:
39026 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39027 exit \${?}
39028fi
39029EOF
39030 chmod +x bk-make-pch
39031 fi
39032 fi
39033 fi
39034
39035
39036
39037
39038
d78c94f2 39039 COND_BUILD_DEBUG="#"
6f628073 39040 if test "x$BUILD" = "xdebug" ; then
d78c94f2 39041 COND_BUILD_DEBUG=""
6f628073
VS
39042 fi
39043
6c67131a
VS
39044 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39045 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39046 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39047 fi
39048
39049 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39050 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39051 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39052 fi
39053
f93ca9fd
VS
39054 COND_BUILD_DEBUG_UNICODE_0="#"
39055 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39056 COND_BUILD_DEBUG_UNICODE_0=""
39057 fi
39058
39059 COND_BUILD_DEBUG_UNICODE_1="#"
39060 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39061 COND_BUILD_DEBUG_UNICODE_1=""
39062 fi
39063
d78c94f2 39064 COND_BUILD_RELEASE="#"
6f628073 39065 if test "x$BUILD" = "xrelease" ; then
d78c94f2 39066 COND_BUILD_RELEASE=""
6b9d41a5
VS
39067 fi
39068
6c67131a
VS
39069 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39070 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39071 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39072 fi
39073
f93ca9fd
VS
39074 COND_BUILD_RELEASE_UNICODE_0="#"
39075 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39076 COND_BUILD_RELEASE_UNICODE_0=""
39077 fi
39078
39079 COND_BUILD_RELEASE_UNICODE_1="#"
39080 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39081 COND_BUILD_RELEASE_UNICODE_1=""
39082 fi
39083
6c67131a
VS
39084 COND_DEBUG_FLAG_1="#"
39085 if test "x$DEBUG_FLAG" = "x1" ; then
39086 COND_DEBUG_FLAG_1=""
39087 fi
39088
39089 COND_DEBUG_INFO_0="#"
39090 if test "x$DEBUG_INFO" = "x0" ; then
39091 COND_DEBUG_INFO_0=""
39092 fi
39093
39094 COND_DEBUG_INFO_1="#"
39095 if test "x$DEBUG_INFO" = "x1" ; then
39096 COND_DEBUG_INFO_1=""
39097 fi
39098
f95cd8fa
VS
39099 COND_DEPS_TRACKING_0="#"
39100 if test "x$DEPS_TRACKING" = "x0" ; then
39101 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
39102 fi
39103
8ee2dd05
VS
39104 COND_DEPS_TRACKING_1="#"
39105 if test "x$DEPS_TRACKING" = "x1" ; then
39106 COND_DEPS_TRACKING_1=""
39107 fi
39108
45842500
VS
39109 COND_GCC_PCH_1="#"
39110 if test "x$GCC_PCH" = "x1" ; then
39111 COND_GCC_PCH_1=""
39112 fi
39113
6f628073
VS
39114 COND_MONOLITHIC_0="#"
39115 if test "x$MONOLITHIC" = "x0" ; then
39116 COND_MONOLITHIC_0=""
6b9d41a5
VS
39117 fi
39118
6f628073
VS
39119 COND_MONOLITHIC_0_SHARED_0="#"
39120 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39121 COND_MONOLITHIC_0_SHARED_0=""
39122 fi
39123
39124 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39125 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39126 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 39127 fi
e6cc62c6 39128
8772a1a7
VS
39129 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39130 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39131 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39132 fi
39133
250700e4
RD
39134 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39135 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39136 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39137 fi
39138
eb69fda5
VS
39139 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39140 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39141 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39142 fi
39143
8ee2dd05
VS
39144 COND_MONOLITHIC_0_SHARED_1="#"
39145 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39146 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 39147 fi
e6cc62c6 39148
6f628073
VS
39149 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39150 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39151 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39152 fi
39153
8772a1a7
VS
39154 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39155 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39156 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39157 fi
39158
250700e4
RD
39159 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39160 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39161 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39162 fi
39163
eb69fda5
VS
39164 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39165 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39166 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39167 fi
39168
f95e4495
VS
39169 COND_MONOLITHIC_0_USE_ODBC_1="#"
39170 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39171 COND_MONOLITHIC_0_USE_ODBC_1=""
39172 fi
39173
3af038c0
VS
39174 COND_MONOLITHIC_1="#"
39175 if test "x$MONOLITHIC" = "x1" ; then
39176 COND_MONOLITHIC_1=""
39177 fi
39178
6f628073
VS
39179 COND_MONOLITHIC_1_SHARED_0="#"
39180 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39181 COND_MONOLITHIC_1_SHARED_0=""
39182 fi
39183
39184 COND_MONOLITHIC_1_SHARED_1="#"
39185 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39186 COND_MONOLITHIC_1_SHARED_1=""
39187 fi
39188
3af038c0
VS
39189 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39190 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39191 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39192 fi
39193
39194 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39195 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39196 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39197 fi
39198
6f628073
VS
39199 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39200 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39201 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39202 fi
39203
3af038c0
VS
39204 COND_PLATFORM_MACOSX_1="#"
39205 if test "x$PLATFORM_MACOSX" = "x1" ; then
39206 COND_PLATFORM_MACOSX_1=""
39207 fi
39208
250700e4
RD
39209 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39210 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39211 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39212 fi
39213
39214 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39215 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39216 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39217 fi
39218
39219 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39220 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39221 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39222 fi
39223
3527f29c
VS
39224 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39225 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39226 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39227 fi
39228
8ee2dd05
VS
39229 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39230 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39231 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39232 fi
39233
45842500
VS
39234 COND_PLATFORM_MAC_1="#"
39235 if test "x$PLATFORM_MAC" = "x1" ; then
39236 COND_PLATFORM_MAC_1=""
39237 fi
39238
3d8c1de0
VS
39239 COND_PLATFORM_OS2_1="#"
39240 if test "x$PLATFORM_OS2" = "x1" ; then
39241 COND_PLATFORM_OS2_1=""
39242 fi
39243
8772a1a7
VS
39244 COND_PLATFORM_UNIX_0="#"
39245 if test "x$PLATFORM_UNIX" = "x0" ; then
39246 COND_PLATFORM_UNIX_0=""
39247 fi
39248
3af038c0
VS
39249 COND_PLATFORM_UNIX_1="#"
39250 if test "x$PLATFORM_UNIX" = "x1" ; then
39251 COND_PLATFORM_UNIX_1=""
39252 fi
39253
3527f29c
VS
39254 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39255 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39256 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39257 fi
39258
f93ca9fd
VS
39259 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39260 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39261 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39262 fi
39263
3af038c0
VS
39264 COND_PLATFORM_WIN32_0="#"
39265 if test "x$PLATFORM_WIN32" = "x0" ; then
39266 COND_PLATFORM_WIN32_0=""
39267 fi
39268
39269 COND_PLATFORM_WIN32_1="#"
39270 if test "x$PLATFORM_WIN32" = "x1" ; then
39271 COND_PLATFORM_WIN32_1=""
39272 fi
39273
45842500
VS
39274 COND_SHARED_0="#"
39275 if test "x$SHARED" = "x0" ; then
39276 COND_SHARED_0=""
39277 fi
39278
250700e4
RD
39279 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39280 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39281 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39282 fi
39283
52a5a009
VS
39284 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39285 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39286 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39287 fi
39288
39289 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39290 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39291 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39292 fi
39293
39294 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39295 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39296 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39297 fi
39298
39299 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39300 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39301 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39302 fi
39303
39304 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39305 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39306 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39307 fi
39308
39309 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39310 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39311 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39312 fi
39313
39314 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39315 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39316 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39317 fi
39318
45842500
VS
39319 COND_SHARED_1="#"
39320 if test "x$SHARED" = "x1" ; then
39321 COND_SHARED_1=""
39322 fi
39323
250700e4
RD
39324 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39325 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39326 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39327 fi
39328
6f628073
VS
39329 COND_TOOLKIT_COCOA="#"
39330 if test "x$TOOLKIT" = "xCOCOA" ; then
39331 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
39332 fi
39333
6f628073
VS
39334 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39335 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39336 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39337 fi
39338
6f628073
VS
39339 COND_TOOLKIT_GTK="#"
39340 if test "x$TOOLKIT" = "xGTK" ; then
39341 COND_TOOLKIT_GTK=""
f95cd8fa
VS
39342 fi
39343
6f628073
VS
39344 COND_TOOLKIT_GTK_USE_GUI_1="#"
39345 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39346 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
39347 fi
39348
6f628073
VS
39349 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39350 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39351 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39352 fi
39353
3af038c0
VS
39354 COND_TOOLKIT_MAC="#"
39355 if test "x$TOOLKIT" = "xMAC" ; then
39356 COND_TOOLKIT_MAC=""
39357 fi
39358
8772a1a7
VS
39359 COND_TOOLKIT_MAC_USE_GUI_1="#"
39360 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39361 COND_TOOLKIT_MAC_USE_GUI_1=""
39362 fi
39363
6f628073
VS
39364 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39365 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39366 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39367 fi
39368
6f628073
VS
39369 COND_TOOLKIT_MGL="#"
39370 if test "x$TOOLKIT" = "xMGL" ; then
39371 COND_TOOLKIT_MGL=""
8ee2dd05
VS
39372 fi
39373
6f628073
VS
39374 COND_TOOLKIT_MGL_USE_GUI_1="#"
39375 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39376 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
39377 fi
39378
6f628073
VS
39379 COND_TOOLKIT_MOTIF="#"
39380 if test "x$TOOLKIT" = "xMOTIF" ; then
39381 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
39382 fi
39383
6f628073
VS
39384 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39385 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39386 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 39387 fi
e6cc62c6 39388
6f628073
VS
39389 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39390 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39391 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39392 fi
39393
6f628073
VS
39394 COND_TOOLKIT_MSW="#"
39395 if test "x$TOOLKIT" = "xMSW" ; then
39396 COND_TOOLKIT_MSW=""
8ee2dd05
VS
39397 fi
39398
6f628073
VS
39399 COND_TOOLKIT_MSW_USE_GUI_1="#"
39400 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39401 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 39402 fi
e6cc62c6 39403
6f628073
VS
39404 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39405 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39406 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 39407 fi
e6cc62c6 39408
96c1699d
VS
39409 COND_TOOLKIT_PM="#"
39410 if test "x$TOOLKIT" = "xPM" ; then
39411 COND_TOOLKIT_PM=""
39412 fi
39413
39414 COND_TOOLKIT_PM_USE_GUI_1="#"
39415 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39416 COND_TOOLKIT_PM_USE_GUI_1=""
39417 fi
39418
39419 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39420 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39421 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39422 fi
39423
6f628073
VS
39424 COND_TOOLKIT_X11="#"
39425 if test "x$TOOLKIT" = "xX11" ; then
39426 COND_TOOLKIT_X11=""
9747f85d
VS
39427 fi
39428
6f628073
VS
39429 COND_TOOLKIT_X11_USE_GUI_1="#"
39430 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39431 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
39432 fi
39433
3af038c0
VS
39434 COND_UNICODE_1="#"
39435 if test "x$UNICODE" = "x1" ; then
39436 COND_UNICODE_1=""
39437 fi
39438
7015ef3a
VZ
39439 COND_USE_EXCEPTIONS_0="#"
39440 if test "x$USE_EXCEPTIONS" = "x0" ; then
39441 COND_USE_EXCEPTIONS_0=""
39442 fi
39443
39444 COND_USE_EXCEPTIONS_1="#"
39445 if test "x$USE_EXCEPTIONS" = "x1" ; then
39446 COND_USE_EXCEPTIONS_1=""
39447 fi
39448
3af038c0
VS
39449 COND_USE_GUI_0="#"
39450 if test "x$USE_GUI" = "x0" ; then
39451 COND_USE_GUI_0=""
39452 fi
39453
39454 COND_USE_GUI_1="#"
39455 if test "x$USE_GUI" = "x1" ; then
39456 COND_USE_GUI_1=""
39457 fi
39458
e6cc62c6 39459 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
39460 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39461 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 39462 fi
e6cc62c6
VS
39463
39464 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
39465 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39466 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
39467 fi
39468
66a96744
VS
39469 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39470 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39471 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39472 fi
39473
39474 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39475 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39476 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39477 fi
39478
39479 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39480 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39481 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39482 fi
39483
57e7d4ac
VS
39484 COND_USE_ODBC_1="#"
39485 if test "x$USE_ODBC" = "x1" ; then
39486 COND_USE_ODBC_1=""
39487 fi
39488
f93ca9fd
VS
39489 COND_USE_PLUGINS_0="#"
39490 if test "x$USE_PLUGINS" = "x0" ; then
39491 COND_USE_PLUGINS_0=""
39492 fi
39493
6f628073
VS
39494 COND_USE_SOSYMLINKS_1="#"
39495 if test "x$USE_SOSYMLINKS" = "x1" ; then
39496 COND_USE_SOSYMLINKS_1=""
b625909c
VS
39497 fi
39498
6f628073
VS
39499 COND_USE_SOVERLINUX_1="#"
39500 if test "x$USE_SOVERLINUX" = "x1" ; then
39501 COND_USE_SOVERLINUX_1=""
b625909c
VS
39502 fi
39503
6f628073
VS
39504 COND_USE_SOVERSION_0="#"
39505 if test "x$USE_SOVERSION" = "x0" ; then
39506 COND_USE_SOVERSION_0=""
fddeb06b 39507 fi
fe0895cf 39508
6f628073
VS
39509 COND_USE_SOVERSOLARIS_1="#"
39510 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39511 COND_USE_SOVERSOLARIS_1=""
fddeb06b 39512 fi
fe0895cf 39513
f93ca9fd
VS
39514 COND_WITH_PLUGIN_SDL_1="#"
39515 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39516 COND_WITH_PLUGIN_SDL_1=""
39517 fi
39518
39519 COND_WITH_SDL_1="#"
39520 if test "x$WITH_SDL" = "x1" ; then
39521 COND_WITH_SDL_1=""
39522 fi
39523
3af038c0
VS
39524 COND_WXUNIV_1="#"
39525 if test "x$WXUNIV" = "x1" ; then
39526 COND_WXUNIV_1=""
39527 fi
39528
66a96744
VS
39529 COND_WXUSE_EXPAT_BUILTIN="#"
39530 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39531 COND_WXUSE_EXPAT_BUILTIN=""
39532 fi
39533
02980527
VS
39534 COND_WXUSE_LIBJPEG_BUILTIN="#"
39535 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39536 COND_WXUSE_LIBJPEG_BUILTIN=""
39537 fi
39538
39539 COND_WXUSE_LIBPNG_BUILTIN="#"
39540 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39541 COND_WXUSE_LIBPNG_BUILTIN=""
39542 fi
39543
39544 COND_WXUSE_LIBTIFF_BUILTIN="#"
39545 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39546 COND_WXUSE_LIBTIFF_BUILTIN=""
39547 fi
39548
39549 COND_WXUSE_ODBC_BUILTIN="#"
39550 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39551 COND_WXUSE_ODBC_BUILTIN=""
39552 fi
39553
39554 COND_WXUSE_REGEX_BUILTIN="#"
39555 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39556 COND_WXUSE_REGEX_BUILTIN=""
39557 fi
39558
39559 COND_WXUSE_ZLIB_BUILTIN="#"
39560 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39561 COND_WXUSE_ZLIB_BUILTIN=""
39562 fi
39563
1772d20c 39564
fe0895cf 39565
fe0895cf 39566
fe0895cf 39567
45842500 39568if test $GCC_PCH = 1 ; then
130711ba 39569 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
39570 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39571else
39572 case "${host}" in
39573 powerpc-*-darwin* )
130711ba
VS
39574 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39575 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 39576 ;;
45842500
VS
39577 esac
39578fi
fe0895cf
VS
39579
39580
fddeb06b 39581SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599
39600
39601
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
fe0895cf 39676
f0290fca
VS
39677
39678
243f8ae5 39679
e6cc62c6
VS
39680
39681
39682echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39683echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
32ddf007 39684set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
39685if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39686 echo $ECHO_N "(cached) $ECHO_C" >&6
39687else
39688 cat >conftest.make <<\_ACEOF
39689all:
39690 @echo 'ac_maketemp="$(MAKE)"'
39691_ACEOF
39692# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39693eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39694if test -n "$ac_maketemp"; then
39695 eval ac_cv_prog_make_${ac_make}_set=yes
39696else
39697 eval ac_cv_prog_make_${ac_make}_set=no
39698fi
39699rm -f conftest.make
39700fi
39701if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39702 echo "$as_me:$LINENO: result: yes" >&5
39703echo "${ECHO_T}yes" >&6
39704 SET_MAKE=
39705else
39706 echo "$as_me:$LINENO: result: no" >&5
39707echo "${ECHO_T}no" >&6
39708 SET_MAKE="MAKE=${MAKE-make}"
39709fi
39710
39711
39712if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39713 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39714fi
39715
39716 ac_config_headers="$ac_config_headers setup.h"
39717
39718
81345eef 39719 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
39720
39721
39722 ac_config_commands="$ac_config_commands default"
39723
39724
9de9b8f0 39725
6c3e36af
VZ
39726if test "$wxUSE_GUI" = "yes"; then
39727 SUBDIRS="samples demos utils contrib"
39728else SUBDIRS="samples utils"
39729fi
e6cc62c6 39730
670ec357
VS
39731
39732
39733# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
39734if test "${with_cppunit_prefix+set}" = set; then
39735 withval="$with_cppunit_prefix"
39736 cppunit_config_prefix="$withval"
39737else
39738 cppunit_config_prefix=""
39739fi;
39740
39741# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
39742if test "${with_cppunit_exec_prefix+set}" = set; then
39743 withval="$with_cppunit_exec_prefix"
39744 cppunit_config_exec_prefix="$withval"
39745else
39746 cppunit_config_exec_prefix=""
39747fi;
39748
39749 if test x$cppunit_config_exec_prefix != x ; then
39750 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
39751 if test x${CPPUNIT_CONFIG+set} != xset ; then
39752 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
39753 fi
39754 fi
39755 if test x$cppunit_config_prefix != x ; then
39756 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
39757 if test x${CPPUNIT_CONFIG+set} != xset ; then
39758 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
39759 fi
39760 fi
39761
39762 # Extract the first word of "cppunit-config", so it can be a program name with args.
39763set dummy cppunit-config; ac_word=$2
39764echo "$as_me:$LINENO: checking for $ac_word" >&5
39765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39766if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
39767 echo $ECHO_N "(cached) $ECHO_C" >&6
39768else
39769 case $CPPUNIT_CONFIG in
39770 [\\/]* | ?:[\\/]*)
39771 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
39772 ;;
39773 *)
39774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39775for as_dir in $PATH
39776do
39777 IFS=$as_save_IFS
39778 test -z "$as_dir" && as_dir=.
39779 for ac_exec_ext in '' $ac_executable_extensions; do
39780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39781 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39783 break 2
39784 fi
39785done
39786done
39787
39788 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
39789 ;;
39790esac
39791fi
39792CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
39793
39794if test -n "$CPPUNIT_CONFIG"; then
39795 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
39796echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
39797else
39798 echo "$as_me:$LINENO: result: no" >&5
39799echo "${ECHO_T}no" >&6
39800fi
39801
39802 cppunit_version_min=1.8.0
39803
39804 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
39805echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
39806 no_cppunit=""
39807 if test "$CPPUNIT_CONFIG" = "no" ; then
39808 no_cppunit=yes
39809 else
39810 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
39811 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
39812 cppunit_version=`$CPPUNIT_CONFIG --version`
39813
39814 cppunit_major_version=`echo $cppunit_version | \
39815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39816 cppunit_minor_version=`echo $cppunit_version | \
39817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39818 cppunit_micro_version=`echo $cppunit_version | \
39819 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39820
39821 cppunit_major_min=`echo $cppunit_version_min | \
39822 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39823 cppunit_minor_min=`echo $cppunit_version_min | \
39824 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39825 cppunit_micro_min=`echo $cppunit_version_min | \
39826 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39827
39828 cppunit_version_proper=`expr \
39829 $cppunit_major_version \> $cppunit_major_min \| \
39830 $cppunit_major_version \= $cppunit_major_min \& \
39831 $cppunit_minor_version \> $cppunit_minor_min \| \
39832 $cppunit_major_version \= $cppunit_major_min \& \
39833 $cppunit_minor_version \= $cppunit_minor_min \& \
39834 $cppunit_micro_version \>= $cppunit_micro_min `
39835
39836 if test "$cppunit_version_proper" = "1" ; then
39837 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
39838echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
39839 else
39840 echo "$as_me:$LINENO: result: no" >&5
39841echo "${ECHO_T}no" >&6
39842 no_cppunit=yes
39843 fi
39844 fi
39845
39846 if test "x$no_cppunit" = x ; then
39847 SUBDIRS="$SUBDIRS tests"
39848 else
39849 CPPUNIT_CFLAGS=""
39850 CPPUNIT_LIBS=""
39851 :
39852 fi
39853
39854
39855
39856
39857
166263e6 39858for subdir in `echo $SUBDIRS`; do
9747f85d 39859 if test -d ${srcdir}/${subdir} ; then
6c3e36af 39860 if test "$wxUSE_GUI" = "yes"; then
166263e6 39861 if test ${subdir} = "samples"; then
8772a1a7
VS
39862 makefiles="samples/Makefile.in $makefiles"
39863 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
39864 if test -d $srcdir/samples/$sample; then
39865 makefiles="samples/$sample/Makefile.in $makefiles"
39866 fi
39867 done
39868 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39869 fi
6c3e36af 39870 else if test ${subdir} = "samples"; then
8772a1a7 39871 makefiles="samples/Makefile.in samples/console/Makefile.in"
670ec357
VS
39872 elif test ${subdir} = "utils"; then
39873 makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
39874 utils/HelpGen/src/Makefile.in \
39875 utils/tex2rtf/Makefile.in \
39876 utils/tex2rtf/src/Makefile.in"
670ec357 39877 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
6c3e36af
VZ
39878 fi
39879 fi
39880
9747f85d
VS
39881 for mkin in $makefiles ; do
39882 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
39883 ac_config_files="$ac_config_files $mk"
e6cc62c6 39884
9747f85d
VS
39885 done
39886 fi
39887done
e6cc62c6 39888
9de9b8f0 39889
e6cc62c6
VS
39890cat >confcache <<\_ACEOF
39891# This file is a shell script that caches the results of configure
39892# tests run on this system so they can be shared between configure
39893# scripts and configure runs, see configure's option --config-cache.
39894# It is not useful on other systems. If it contains results you don't
39895# want to keep, you may remove or edit it.
39896#
39897# config.status only pays attention to the cache file if you give it
39898# the --recheck option to rerun configure.
39899#
39900# `ac_cv_env_foo' variables (set or unset) will be overridden when
39901# loading this file, other *unset* `ac_cv_foo' will be assigned the
39902# following values.
39903
39904_ACEOF
39905
39906# The following way of writing the cache mishandles newlines in values,
39907# but we know of no workaround that is simple, portable, and efficient.
39908# So, don't put newlines in cache variables' values.
39909# Ultrix sh set writes to stderr and can't be redirected directly,
39910# and sets the high bit in the cache file unless we assign to the vars.
39911{
39912 (set) 2>&1 |
39913 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39914 *ac_space=\ *)
39915 # `set' does not quote correctly, so add quotes (double-quote
39916 # substitution turns \\\\ into \\, and sed turns \\ into \).
39917 sed -n \
32ddf007
VS
39918 "s/'/'\\\\''/g;
39919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
39920 ;;
39921 *)
39922 # `set' quotes correctly as required by POSIX, so do not add quotes.
39923 sed -n \
32ddf007 39924 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
39925 ;;
39926 esac;
39927} |
39928 sed '
39929 t clear
39930 : clear
39931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39932 t end
39933 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39934 : end' >>confcache
39935if diff $cache_file confcache >/dev/null 2>&1; then :; else
39936 if test -w $cache_file; then
39937 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39938 cat confcache >$cache_file
39939 else
39940 echo "not updating unwritable cache $cache_file"
39941 fi
39942fi
39943rm -f confcache
39944
39945test "x$prefix" = xNONE && prefix=$ac_default_prefix
39946# Let make expand exec_prefix.
39947test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39948
39949# VPATH may cause trouble with some makes, so we remove $(srcdir),
39950# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39951# trailing colons and then remove the whole line if VPATH becomes empty
39952# (actually we leave an empty line to preserve line numbers).
39953if test "x$srcdir" = x.; then
32ddf007 39954 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
39955s/:*\$(srcdir):*/:/;
39956s/:*\${srcdir}:*/:/;
39957s/:*@srcdir@:*/:/;
32ddf007 39958s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 39959s/:*$//;
32ddf007 39960s/^[^=]*=[ ]*$//;
e6cc62c6
VS
39961}'
39962fi
39963
39964DEFS=-DHAVE_CONFIG_H
39965
39966ac_libobjs=
39967ac_ltlibobjs=
39968for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39969 # 1. Remove the extension, and $U if already installed.
39970 ac_i=`echo "$ac_i" |
32ddf007 39971 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
39972 # 2. Add them.
39973 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39974 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39975done
39976LIBOBJS=$ac_libobjs
39977
39978LTLIBOBJS=$ac_ltlibobjs
39979
39980
39981
39982: ${CONFIG_STATUS=./config.status}
39983ac_clean_files_save=$ac_clean_files
39984ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39985{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39986echo "$as_me: creating $CONFIG_STATUS" >&6;}
39987cat >$CONFIG_STATUS <<_ACEOF
39988#! $SHELL
39989# Generated by $as_me.
39990# Run this file to recreate the current configuration.
39991# Compiler output produced by configure, useful for debugging
39992# configure, is in config.log if it exists.
39993
39994debug=false
39995ac_cs_recheck=false
39996ac_cs_silent=false
39997SHELL=\${CONFIG_SHELL-$SHELL}
39998_ACEOF
39999
40000cat >>$CONFIG_STATUS <<\_ACEOF
40001## --------------------- ##
40002## M4sh Initialization. ##
40003## --------------------- ##
40004
40005# Be Bourne compatible
40006if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40007 emulate sh
40008 NULLCMD=:
40009 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40010 # is contrary to our usage. Disable this feature.
40011 alias -g '${1+"$@"}'='"$@"'
40012elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40013 set -o posix
40014fi
32ddf007 40015DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
40016
40017# Support unset when possible.
32ddf007 40018if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
40019 as_unset=unset
40020else
40021 as_unset=false
40022fi
40023
40024
40025# Work around bugs in pre-3.0 UWIN ksh.
40026$as_unset ENV MAIL MAILPATH
40027PS1='$ '
40028PS2='> '
40029PS4='+ '
40030
40031# NLS nuisances.
40032for as_var in \
40033 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40034 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40035 LC_TELEPHONE LC_TIME
40036do
32ddf007 40037 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
40038 eval $as_var=C; export $as_var
40039 else
40040 $as_unset $as_var
40041 fi
40042done
40043
40044# Required to use basename.
40045if expr a : '\(a\)' >/dev/null 2>&1; then
40046 as_expr=expr
40047else
40048 as_expr=false
40049fi
40050
40051if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40052 as_basename=basename
40053else
40054 as_basename=false
40055fi
40056
40057
40058# Name of the executable.
40059as_me=`$as_basename "$0" ||
40060$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40061 X"$0" : 'X\(//\)$' \| \
40062 X"$0" : 'X\(/\)$' \| \
40063 . : '\(.\)' 2>/dev/null ||
40064echo X/"$0" |
40065 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40066 /^X\/\(\/\/\)$/{ s//\1/; q; }
40067 /^X\/\(\/\).*/{ s//\1/; q; }
40068 s/.*/./; q'`
40069
40070
40071# PATH needs CR, and LINENO needs CR and PATH.
40072# Avoid depending upon Character Ranges.
40073as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40074as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40075as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40076as_cr_digits='0123456789'
40077as_cr_alnum=$as_cr_Letters$as_cr_digits
40078
40079# The user is always right.
40080if test "${PATH_SEPARATOR+set}" != set; then
40081 echo "#! /bin/sh" >conf$$.sh
40082 echo "exit 0" >>conf$$.sh
40083 chmod +x conf$$.sh
40084 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40085 PATH_SEPARATOR=';'
40086 else
40087 PATH_SEPARATOR=:
40088 fi
40089 rm -f conf$$.sh
40090fi
40091
40092
40093 as_lineno_1=$LINENO
40094 as_lineno_2=$LINENO
40095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40096 test "x$as_lineno_1" != "x$as_lineno_2" &&
40097 test "x$as_lineno_3" = "x$as_lineno_2" || {
40098 # Find who we are. Look in the path if we contain no path at all
40099 # relative or not.
40100 case $0 in
40101 *[\\/]* ) as_myself=$0 ;;
40102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40103for as_dir in $PATH
40104do
40105 IFS=$as_save_IFS
40106 test -z "$as_dir" && as_dir=.
40107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40108done
40109
40110 ;;
40111 esac
40112 # We did not find ourselves, most probably we were run as `sh COMMAND'
40113 # in which case we are not to be found in the path.
40114 if test "x$as_myself" = x; then
40115 as_myself=$0
40116 fi
40117 if test ! -f "$as_myself"; then
40118 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40119echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40120 { (exit 1); exit 1; }; }
40121 fi
40122 case $CONFIG_SHELL in
40123 '')
40124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40125for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40126do
40127 IFS=$as_save_IFS
40128 test -z "$as_dir" && as_dir=.
40129 for as_base in sh bash ksh sh5; do
40130 case $as_dir in
40131 /*)
40132 if ("$as_dir/$as_base" -c '
40133 as_lineno_1=$LINENO
40134 as_lineno_2=$LINENO
40135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40136 test "x$as_lineno_1" != "x$as_lineno_2" &&
40137 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40138 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40139 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40140 CONFIG_SHELL=$as_dir/$as_base
40141 export CONFIG_SHELL
40142 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40143 fi;;
40144 esac
40145 done
40146done
40147;;
40148 esac
40149
40150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40151 # uniformly replaced by the line number. The first 'sed' inserts a
40152 # line-number line before each line; the second 'sed' does the real
40153 # work. The second script uses 'N' to pair each line-number line
40154 # with the numbered line, and appends trailing '-' during
40155 # substitution so that $LINENO is not a special case at line end.
40156 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40157 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40158 sed '=' <$as_myself |
40159 sed '
40160 N
40161 s,$,-,
40162 : loop
40163 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40164 t loop
40165 s,-$,,
40166 s,^['$as_cr_digits']*\n,,
40167 ' >$as_me.lineno &&
40168 chmod +x $as_me.lineno ||
40169 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40170echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40171 { (exit 1); exit 1; }; }
40172
40173 # Don't try to exec as it changes $[0], causing all sort of problems
40174 # (the dirname of $[0] is not the place where we might find the
40175 # original and so on. Autoconf is especially sensible to this).
40176 . ./$as_me.lineno
40177 # Exit status is that of the last command.
40178 exit
40179}
40180
40181
40182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40183 *c*,-n*) ECHO_N= ECHO_C='
40184' ECHO_T=' ' ;;
40185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40187esac
40188
40189if expr a : '\(a\)' >/dev/null 2>&1; then
40190 as_expr=expr
40191else
40192 as_expr=false
40193fi
40194
40195rm -f conf$$ conf$$.exe conf$$.file
40196echo >conf$$.file
40197if ln -s conf$$.file conf$$ 2>/dev/null; then
40198 # We could just check for DJGPP; but this test a) works b) is more generic
40199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40200 if test -f conf$$.exe; then
40201 # Don't use ln at all; we don't have any links
40202 as_ln_s='cp -p'
40203 else
40204 as_ln_s='ln -s'
40205 fi
40206elif ln conf$$.file conf$$ 2>/dev/null; then
40207 as_ln_s=ln
40208else
40209 as_ln_s='cp -p'
40210fi
40211rm -f conf$$ conf$$.exe conf$$.file
40212
40213if mkdir -p . 2>/dev/null; then
40214 as_mkdir_p=:
40215else
32ddf007 40216 test -d ./-p && rmdir ./-p
e6cc62c6
VS
40217 as_mkdir_p=false
40218fi
40219
40220as_executable_p="test -f"
40221
40222# Sed expression to map a string onto a valid CPP name.
32ddf007 40223as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40224
40225# Sed expression to map a string onto a valid variable name.
32ddf007 40226as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40227
40228
40229# IFS
40230# We need space, tab and new line, in precisely that order.
40231as_nl='
40232'
40233IFS=" $as_nl"
40234
40235# CDPATH.
40236$as_unset CDPATH
40237
40238exec 6>&1
40239
40240# Open the log real soon, to keep \$[0] and so on meaningful, and to
40241# report actual input values of CONFIG_FILES etc. instead of their
40242# values after options handling. Logging --version etc. is OK.
40243exec 5>>config.log
40244{
40245 echo
40246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40247## Running $as_me. ##
40248_ASBOX
40249} >&5
40250cat >&5 <<_CSEOF
40251
e46d2a18 40252This file was extended by wxWindows $as_me 2.5.1, which was
32ddf007 40253generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
40254
40255 CONFIG_FILES = $CONFIG_FILES
40256 CONFIG_HEADERS = $CONFIG_HEADERS
40257 CONFIG_LINKS = $CONFIG_LINKS
40258 CONFIG_COMMANDS = $CONFIG_COMMANDS
40259 $ $0 $@
40260
40261_CSEOF
40262echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40263echo >&5
40264_ACEOF
40265
40266# Files that config.status was made for.
40267if test -n "$ac_config_files"; then
40268 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40269fi
40270
40271if test -n "$ac_config_headers"; then
40272 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40273fi
40274
40275if test -n "$ac_config_links"; then
40276 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40277fi
40278
40279if test -n "$ac_config_commands"; then
40280 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40281fi
40282
40283cat >>$CONFIG_STATUS <<\_ACEOF
40284
40285ac_cs_usage="\
40286\`$as_me' instantiates files from templates according to the
40287current configuration.
40288
40289Usage: $0 [OPTIONS] [FILE]...
40290
40291 -h, --help print this help, then exit
40292 -V, --version print version number, then exit
40293 -q, --quiet do not print progress messages
40294 -d, --debug don't remove temporary files
40295 --recheck update $as_me by reconfiguring in the same conditions
40296 --file=FILE[:TEMPLATE]
32ddf007 40297 instantiate the configuration file FILE
e6cc62c6 40298 --header=FILE[:TEMPLATE]
32ddf007 40299 instantiate the configuration header FILE
e6cc62c6
VS
40300
40301Configuration files:
40302$config_files
40303
40304Configuration headers:
40305$config_headers
40306
40307Configuration commands:
40308$config_commands
40309
40310Report bugs to <bug-autoconf@gnu.org>."
40311_ACEOF
40312
40313cat >>$CONFIG_STATUS <<_ACEOF
40314ac_cs_version="\\
e46d2a18 40315wxWindows config.status 2.5.1
32ddf007 40316configured by $0, generated by GNU Autoconf 2.59,
e6cc62c6
VS
40317 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40318
32ddf007 40319Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
40320This config.status script is free software; the Free Software Foundation
40321gives unlimited permission to copy, distribute and modify it."
40322srcdir=$srcdir
40323INSTALL="$INSTALL"
40324_ACEOF
40325
40326cat >>$CONFIG_STATUS <<\_ACEOF
40327# If no file are specified by the user, then we need to provide default
40328# value. By we need to know if files were specified by the user.
40329ac_need_defaults=:
40330while test $# != 0
40331do
40332 case $1 in
40333 --*=*)
40334 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40335 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40336 ac_shift=:
40337 ;;
40338 -*)
40339 ac_option=$1
40340 ac_optarg=$2
40341 ac_shift=shift
40342 ;;
40343 *) # This is not an option, so the user has probably given explicit
40344 # arguments.
40345 ac_option=$1
40346 ac_need_defaults=false;;
40347 esac
40348
40349 case $ac_option in
40350 # Handling of the options.
40351_ACEOF
40352cat >>$CONFIG_STATUS <<\_ACEOF
40353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40354 ac_cs_recheck=: ;;
40355 --version | --vers* | -V )
40356 echo "$ac_cs_version"; exit 0 ;;
40357 --he | --h)
40358 # Conflict between --help and --header
40359 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40360Try \`$0 --help' for more information." >&5
40361echo "$as_me: error: ambiguous option: $1
40362Try \`$0 --help' for more information." >&2;}
40363 { (exit 1); exit 1; }; };;
40364 --help | --hel | -h )
40365 echo "$ac_cs_usage"; exit 0 ;;
40366 --debug | --d* | -d )
40367 debug=: ;;
40368 --file | --fil | --fi | --f )
40369 $ac_shift
40370 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40371 ac_need_defaults=false;;
40372 --header | --heade | --head | --hea )
40373 $ac_shift
40374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40375 ac_need_defaults=false;;
40376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40378 ac_cs_silent=: ;;
40379
40380 # This is an error.
40381 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40382Try \`$0 --help' for more information." >&5
40383echo "$as_me: error: unrecognized option: $1
40384Try \`$0 --help' for more information." >&2;}
40385 { (exit 1); exit 1; }; } ;;
40386
40387 *) ac_config_targets="$ac_config_targets $1" ;;
40388
40389 esac
40390 shift
40391done
40392
40393ac_configure_extra_args=
40394
40395if $ac_cs_silent; then
40396 exec 6>/dev/null
40397 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
40398fi
40399
e6cc62c6
VS
40400_ACEOF
40401cat >>$CONFIG_STATUS <<_ACEOF
40402if \$ac_cs_recheck; then
40403 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40404 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
40405fi
40406
e6cc62c6 40407_ACEOF
fe0895cf 40408
e6cc62c6 40409cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 40410#
e6cc62c6 40411# INIT-COMMANDS section.
10f2d63a 40412#
10f2d63a 40413
a0b9e27f 40414
e6cc62c6
VS
40415 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40416 LN_S="${LN_S}"
10f2d63a 40417
10f2d63a 40418
10f2d63a 40419
e6cc62c6 40420_ACEOF
8284b0c5 40421
52127426 40422
247f5006 40423
e6cc62c6
VS
40424cat >>$CONFIG_STATUS <<\_ACEOF
40425for ac_config_target in $ac_config_targets
247f5006 40426do
e6cc62c6
VS
40427 case "$ac_config_target" in
40428 # Handling of arguments.
81345eef
VZ
40429 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40430 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40431 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 40432 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
40433 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40434 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40435 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40436echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40437 { (exit 1); exit 1; }; };;
247f5006
VZ
40438 esac
40439done
40440
e6cc62c6
VS
40441# If the user did not use the arguments to specify the items to instantiate,
40442# then the envvar interface is used. Set only those that are not.
40443# We use the long form for the default assignment because of an extremely
40444# bizarre bug on SunOS 4.1.3.
40445if $ac_need_defaults; then
40446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40449fi
40450
40451# Have a temporary directory for convenience. Make it in the build tree
40452# simply because there is no reason to put it here, and in addition,
40453# creating and moving files from /tmp can sometimes cause problems.
40454# Create a temporary directory, and hook for its removal unless debugging.
40455$debug ||
40456{
40457 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40458 trap '{ (exit 1); exit 1; }' 1 2 13 15
40459}
247f5006 40460
e6cc62c6 40461# Create a (secure) tmp directory for tmp files.
247f5006 40462
e6cc62c6
VS
40463{
40464 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40465 test -n "$tmp" && test -d "$tmp"
40466} ||
40467{
40468 tmp=./confstat$$-$RANDOM
40469 (umask 077 && mkdir $tmp)
40470} ||
40471{
40472 echo "$me: cannot create a temporary directory in ." >&2
40473 { (exit 1); exit 1; }
40474}
40475
40476_ACEOF
40477
40478cat >>$CONFIG_STATUS <<_ACEOF
40479
40480#
40481# CONFIG_FILES section.
40482#
247f5006 40483
e6cc62c6
VS
40484# No need to generate the scripts if there are no CONFIG_FILES.
40485# This happens for instance when ./config.status config.h
40486if test -n "\$CONFIG_FILES"; then
40487 # Protect against being on the right side of a sed subst in config.status.
40488 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40489 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40490s,@SHELL@,$SHELL,;t t
40491s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40492s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40493s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40494s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40495s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40496s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40497s,@exec_prefix@,$exec_prefix,;t t
40498s,@prefix@,$prefix,;t t
40499s,@program_transform_name@,$program_transform_name,;t t
40500s,@bindir@,$bindir,;t t
40501s,@sbindir@,$sbindir,;t t
40502s,@libexecdir@,$libexecdir,;t t
40503s,@datadir@,$datadir,;t t
40504s,@sysconfdir@,$sysconfdir,;t t
40505s,@sharedstatedir@,$sharedstatedir,;t t
40506s,@localstatedir@,$localstatedir,;t t
40507s,@libdir@,$libdir,;t t
40508s,@includedir@,$includedir,;t t
40509s,@oldincludedir@,$oldincludedir,;t t
40510s,@infodir@,$infodir,;t t
40511s,@mandir@,$mandir,;t t
40512s,@build_alias@,$build_alias,;t t
40513s,@host_alias@,$host_alias,;t t
40514s,@target_alias@,$target_alias,;t t
40515s,@DEFS@,$DEFS,;t t
40516s,@ECHO_C@,$ECHO_C,;t t
40517s,@ECHO_N@,$ECHO_N,;t t
40518s,@ECHO_T@,$ECHO_T,;t t
40519s,@LIBS@,$LIBS,;t t
40520s,@build@,$build,;t t
40521s,@build_cpu@,$build_cpu,;t t
40522s,@build_vendor@,$build_vendor,;t t
40523s,@build_os@,$build_os,;t t
40524s,@host@,$host,;t t
40525s,@host_cpu@,$host_cpu,;t t
40526s,@host_vendor@,$host_vendor,;t t
40527s,@host_os@,$host_os,;t t
40528s,@target@,$target,;t t
40529s,@target_cpu@,$target_cpu,;t t
40530s,@target_vendor@,$target_vendor,;t t
40531s,@target_os@,$target_os,;t t
40532s,@CC@,$CC,;t t
40533s,@CFLAGS@,$CFLAGS,;t t
40534s,@LDFLAGS@,$LDFLAGS,;t t
40535s,@CPPFLAGS@,$CPPFLAGS,;t t
40536s,@ac_ct_CC@,$ac_ct_CC,;t t
40537s,@EXEEXT@,$EXEEXT,;t t
40538s,@OBJEXT@,$OBJEXT,;t t
40539s,@CPP@,$CPP,;t t
40540s,@EGREP@,$EGREP,;t t
40541s,@CXX@,$CXX,;t t
40542s,@CXXFLAGS@,$CXXFLAGS,;t t
40543s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40544s,@RANLIB@,$RANLIB,;t t
40545s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40546s,@AR@,$AR,;t t
40547s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40548s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40549s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40550s,@STRIP@,$STRIP,;t t
40551s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
40552s,@LN_S@,$LN_S,;t t
40553s,@CXXCPP@,$CXXCPP,;t t
672abd7a 40554s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
40555s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40556s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40557s,@GTK_LIBS@,$GTK_LIBS,;t t
40558s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40559s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40560s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40561s,@X_CFLAGS@,$X_CFLAGS,;t t
40562s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40563s,@X_LIBS@,$X_LIBS,;t t
40564s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40565s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40566s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40567s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40568s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
40569s,@RESCOMP@,$RESCOMP,;t t
40570s,@DEREZ@,$DEREZ,;t t
40571s,@SETFILE@,$SETFILE,;t t
40572s,@LIBICONV@,$LIBICONV,;t t
edd891e2 40573s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
40574s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40575s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40576s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
40577s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40578s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
40579s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40580s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 40581s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
40582s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40583s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40584s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40585s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
40586s,@VENDOR@,$VENDOR,;t t
40587s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
40588s,@WXUNIV@,$WXUNIV,;t t
40589s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 40590s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 40591s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 40592s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 40593s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 40594s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 40595s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 40596s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
40597s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40598s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
40599s,@UNICODE@,$UNICODE,;t t
40600s,@BUILD@,$BUILD,;t t
6c67131a
VS
40601s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40602s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
40603s,@SHARED@,$SHARED,;t t
40604s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40605s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40606s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 40607s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 40608s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
670ec357
VS
40609s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
40610s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
e6cc62c6
VS
40611s,@SET_MAKE@,$SET_MAKE,;t t
40612s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
40613s,@ac_ct_AR@,$ac_ct_AR,;t t
40614s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40615s,@NM@,$NM,;t t
40616s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 40617s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 40618s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
40619s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40620s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40621s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40622s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40623s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 40624s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 40625s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 40626s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 40627s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 40628s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 40629s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 40630s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
40631s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40632s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
40633s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40634s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
40635s,@PIC_FLAG@,$PIC_FLAG,;t t
40636s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40637s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40638s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40639s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40640s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40641s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 40642s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 40643s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 40644s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
40645s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40646s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40647s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40648s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 40649s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 40650s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40651s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40652s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
40653s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40654s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40655s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 40656s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 40657s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 40658s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 40659s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
40660s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40661s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 40662s,@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 40663s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 40664s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 40665s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 40666s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 40667s,@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 40668s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 40669s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 40670s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 40671s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
40672s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40673s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
40674s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40675s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 40676s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 40677s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
40678s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40679s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40680s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 40681s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 40682s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 40683s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 40684s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 40685s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 40686s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 40687s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 40688s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
40689s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40690s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 40691s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 40692s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
40693s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40694s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40695s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40696s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40697s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40698s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40699s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 40700s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 40701s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
40702s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40703s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40704s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40705s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 40706s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 40707s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 40708s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
40709s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40710s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40711s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
40712s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40713s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40714s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 40715s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
40716s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40717s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
40718s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40719s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40720s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
40721s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40722s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 40723s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
40724s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40725s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
40726s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40727s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
40728s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40729s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
40730s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40731s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40732s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 40733s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 40734s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
40735s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40736s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40737s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40738s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
40739s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40740s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 40741s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 40742s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
40743s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40744s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40745s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40746s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40747s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40748s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
40749s,@PATH_IFS@,$PATH_IFS,;t t
40750s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40751s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40752s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40753s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40754s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
40755s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40756s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
40757s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40758s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40759s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40760s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40761s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40762s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40763s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40764s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40765s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40766s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40767s,@WX_ALL@,$WX_ALL,;t t
40768s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40769s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
40770s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40771s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40772s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40773s,@USE_GUI@,$USE_GUI,;t t
40774s,@AFMINSTALL@,$AFMINSTALL,;t t
40775s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40776s,@TOOLKIT@,$TOOLKIT,;t t
40777s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40778s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40779s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40780s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40781s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40782s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40783s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 40784s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
40785s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40786s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40787s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40788s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40789s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40790s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 40791s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 40792s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
40793s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40794s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
40795s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40796s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40797s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40798s,@GUIDIST@,$GUIDIST,;t t
40799s,@PORT_FILES@,$PORT_FILES,;t t
40800s,@DISTDIR@,$DISTDIR,;t t
40801s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40802s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40803s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40804s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40805s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40806s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40807s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40808s,@RESFLAGS@,$RESFLAGS,;t t
40809s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40810s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40811s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
40812s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40813s,@MACRESCOMP@,$MACRESCOMP,;t t
40814s,@MACSETFILE@,$MACSETFILE,;t t
40815s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40816s,@GCC@,$GCC,;t t
243f8ae5 40817s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
e6cc62c6
VS
40818s,@DLLTOOL@,$DLLTOOL,;t t
40819s,@AS@,$AS,;t t
e6cc62c6
VS
40820s,@LD@,$LD,;t t
40821s,@MAKEINFO@,$MAKEINFO,;t t
40822s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
670ec357 40823s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
e6cc62c6
VS
40824s,@LIBOBJS@,$LIBOBJS,;t t
40825s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
40826CEOF
40827
e6cc62c6
VS
40828_ACEOF
40829
40830 cat >>$CONFIG_STATUS <<\_ACEOF
40831 # Split the substitutions into bite-sized pieces for seds with
40832 # small command number limits, like on Digital OSF/1 and HP-UX.
40833 ac_max_sed_lines=48
40834 ac_sed_frag=1 # Number of current file.
40835 ac_beg=1 # First line for current file.
40836 ac_end=$ac_max_sed_lines # Line after last line for current file.
40837 ac_more_lines=:
40838 ac_sed_cmds=
40839 while $ac_more_lines; do
40840 if test $ac_beg -gt 1; then
40841 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 40842 else
e6cc62c6
VS
40843 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40844 fi
40845 if test ! -s $tmp/subs.frag; then
40846 ac_more_lines=false
40847 else
40848 # The purpose of the label and of the branching condition is to
40849 # speed up the sed processing (if there are no `@' at all, there
40850 # is no need to browse any of the substitutions).
40851 # These are the two extra sed commands mentioned above.
40852 (echo ':t
40853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40854 if test -z "$ac_sed_cmds"; then
32ddf007 40855 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 40856 else
32ddf007 40857 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
40858 fi
40859 ac_sed_frag=`expr $ac_sed_frag + 1`
40860 ac_beg=$ac_end
40861 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 40862 fi
e6cc62c6
VS
40863 done
40864 if test -z "$ac_sed_cmds"; then
40865 ac_sed_cmds=cat
10f2d63a 40866 fi
e6cc62c6 40867fi # test -n "$CONFIG_FILES"
10f2d63a 40868
e6cc62c6
VS
40869_ACEOF
40870cat >>$CONFIG_STATUS <<\_ACEOF
40871for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 40872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
40873 case $ac_file in
40874 - | *:- | *:-:* ) # input from stdin
32ddf007
VS
40875 cat >$tmp/stdin
40876 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40878 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32ddf007 40879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40880 * ) ac_file_in=$ac_file.in ;;
10f2d63a 40881 esac
247f5006 40882
e6cc62c6
VS
40883 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40884 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
40886 X"$ac_file" : 'X\(//\)[^/]' \| \
40887 X"$ac_file" : 'X\(//\)$' \| \
40888 X"$ac_file" : 'X\(/\)' \| \
40889 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40890echo X"$ac_file" |
40891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40893 /^X\(\/\/\)$/{ s//\1/; q; }
40894 /^X\(\/\).*/{ s//\1/; q; }
40895 s/.*/./; q'`
40896 { if $as_mkdir_p; then
40897 mkdir -p "$ac_dir"
a0b9e27f 40898 else
e6cc62c6
VS
40899 as_dir="$ac_dir"
40900 as_dirs=
40901 while test ! -d "$as_dir"; do
40902 as_dirs="$as_dir $as_dirs"
40903 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
40905 X"$as_dir" : 'X\(//\)[^/]' \| \
40906 X"$as_dir" : 'X\(//\)$' \| \
40907 X"$as_dir" : 'X\(/\)' \| \
40908 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40909echo X"$as_dir" |
40910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40912 /^X\(\/\/\)$/{ s//\1/; q; }
40913 /^X\(\/\).*/{ s//\1/; q; }
40914 s/.*/./; q'`
40915 done
40916 test ! -n "$as_dirs" || mkdir $as_dirs
40917 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40918echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40919 { (exit 1); exit 1; }; }; }
40920
40921 ac_builddir=.
40922
40923if test "$ac_dir" != .; then
40924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40925 # A "../" for each directory in $ac_dir_suffix.
40926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40927else
40928 ac_dir_suffix= ac_top_builddir=
40929fi
247f5006 40930
e6cc62c6
VS
40931case $srcdir in
40932 .) # No --srcdir option. We are building in place.
40933 ac_srcdir=.
40934 if test -z "$ac_top_builddir"; then
40935 ac_top_srcdir=.
40936 else
40937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40938 fi ;;
40939 [\\/]* | ?:[\\/]* ) # Absolute path.
40940 ac_srcdir=$srcdir$ac_dir_suffix;
40941 ac_top_srcdir=$srcdir ;;
247f5006 40942 *) # Relative path.
e6cc62c6
VS
40943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40945esac
32ddf007
VS
40946
40947# Do not use `cd foo && pwd` to compute absolute paths, because
40948# the directories may not exist.
40949case `pwd` in
40950.) ac_abs_builddir="$ac_dir";;
40951*)
40952 case "$ac_dir" in
40953 .) ac_abs_builddir=`pwd`;;
40954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40956 esac;;
40957esac
40958case $ac_abs_builddir in
40959.) ac_abs_top_builddir=${ac_top_builddir}.;;
40960*)
40961 case ${ac_top_builddir}. in
40962 .) ac_abs_top_builddir=$ac_abs_builddir;;
40963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40965 esac;;
40966esac
40967case $ac_abs_builddir in
40968.) ac_abs_srcdir=$ac_srcdir;;
40969*)
40970 case $ac_srcdir in
40971 .) ac_abs_srcdir=$ac_abs_builddir;;
40972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40974 esac;;
40975esac
40976case $ac_abs_builddir in
40977.) ac_abs_top_srcdir=$ac_top_srcdir;;
40978*)
40979 case $ac_top_srcdir in
40980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40983 esac;;
40984esac
10f2d63a 40985
247f5006 40986
e6cc62c6
VS
40987 case $INSTALL in
40988 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40989 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 40990 esac
247f5006 40991
e6cc62c6
VS
40992 # Let's still pretend it is `configure' which instantiates (i.e., don't
40993 # use $as_me), people would be surprised to read:
40994 # /* config.h. Generated by config.status. */
40995 if test x"$ac_file" = x-; then
40996 configure_input=
40997 else
40998 configure_input="$ac_file. "
40999 fi
41000 configure_input=$configure_input"Generated from `echo $ac_file_in |
32ddf007 41001 sed 's,.*/,,'` by configure."
e6cc62c6
VS
41002
41003 # First look for the input files in the build tree, otherwise in the
41004 # src tree.
41005 ac_file_inputs=`IFS=:
41006 for f in $ac_file_in; do
41007 case $f in
41008 -) echo $tmp/stdin ;;
41009 [\\/$]*)
32ddf007
VS
41010 # Absolute (can't be DOS-style, as IFS=:)
41011 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41012echo "$as_me: error: cannot find input file: $f" >&2;}
41013 { (exit 1); exit 1; }; }
32ddf007 41014 echo "$f";;
e6cc62c6 41015 *) # Relative
32ddf007
VS
41016 if test -f "$f"; then
41017 # Build tree
41018 echo "$f"
41019 elif test -f "$srcdir/$f"; then
41020 # Source tree
41021 echo "$srcdir/$f"
41022 else
41023 # /dev/null tree
41024 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41025echo "$as_me: error: cannot find input file: $f" >&2;}
41026 { (exit 1); exit 1; }; }
32ddf007 41027 fi;;
e6cc62c6
VS
41028 esac
41029 done` || { (exit 1); exit 1; }
e1293dcf
RL
41030
41031 if test x"$ac_file" != x-; then
41032 { echo "$as_me:$LINENO: creating $ac_file" >&5
41033echo "$as_me: creating $ac_file" >&6;}
41034 rm -f "$ac_file"
41035 fi
e6cc62c6
VS
41036_ACEOF
41037cat >>$CONFIG_STATUS <<_ACEOF
41038 sed "$ac_vpsub
41039$extrasub
41040_ACEOF
41041cat >>$CONFIG_STATUS <<\_ACEOF
41042:t
41043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41044s,@configure_input@,$configure_input,;t t
41045s,@srcdir@,$ac_srcdir,;t t
41046s,@abs_srcdir@,$ac_abs_srcdir,;t t
41047s,@top_srcdir@,$ac_top_srcdir,;t t
41048s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41049s,@builddir@,$ac_builddir,;t t
41050s,@abs_builddir@,$ac_abs_builddir,;t t
41051s,@top_builddir@,$ac_top_builddir,;t t
41052s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41053s,@INSTALL@,$ac_INSTALL,;t t
41054" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41055 rm -f $tmp/stdin
41056 if test x"$ac_file" != x-; then
41057 mv $tmp/out $ac_file
41058 else
41059 cat $tmp/out
41060 rm -f $tmp/out
41061 fi
41062
41063done
41064_ACEOF
41065cat >>$CONFIG_STATUS <<\_ACEOF
41066
41067#
41068# CONFIG_HEADER section.
41069#
10f2d63a
VZ
41070
41071# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41072# NAME is the cpp macro being defined and VALUE is the value it is being given.
41073#
41074# ac_d sets the value in "#define NAME VALUE" lines.
32ddf007
VS
41075ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41076ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
41077ac_dC=' '
41078ac_dD=',;t'
41079# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32ddf007 41080ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 41081ac_uB='$,\1#\2define\3'
10f2d63a 41082ac_uC=' '
e6cc62c6
VS
41083ac_uD=',;t'
41084
41085for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 41086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
41087 case $ac_file in
41088 - | *:- | *:-:* ) # input from stdin
32ddf007
VS
41089 cat >$tmp/stdin
41090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32ddf007 41093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41094 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
41095 esac
41096
e6cc62c6
VS
41097 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41098echo "$as_me: creating $ac_file" >&6;}
41099
41100 # First look for the input files in the build tree, otherwise in the
41101 # src tree.
41102 ac_file_inputs=`IFS=:
41103 for f in $ac_file_in; do
41104 case $f in
41105 -) echo $tmp/stdin ;;
41106 [\\/$]*)
32ddf007
VS
41107 # Absolute (can't be DOS-style, as IFS=:)
41108 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41109echo "$as_me: error: cannot find input file: $f" >&2;}
41110 { (exit 1); exit 1; }; }
32ddf007
VS
41111 # Do quote $f, to prevent DOS paths from being IFS'd.
41112 echo "$f";;
e6cc62c6 41113 *) # Relative
32ddf007
VS
41114 if test -f "$f"; then
41115 # Build tree
41116 echo "$f"
41117 elif test -f "$srcdir/$f"; then
41118 # Source tree
41119 echo "$srcdir/$f"
41120 else
41121 # /dev/null tree
41122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41123echo "$as_me: error: cannot find input file: $f" >&2;}
41124 { (exit 1); exit 1; }; }
32ddf007 41125 fi;;
e6cc62c6
VS
41126 esac
41127 done` || { (exit 1); exit 1; }
41128 # Remove the trailing spaces.
32ddf007 41129 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
41130
41131_ACEOF
41132
41133# Transform confdefs.h into two sed scripts, `conftest.defines' and
41134# `conftest.undefs', that substitutes the proper values into
41135# config.h.in to produce config.h. The first handles `#define'
41136# templates, and the second `#undef' templates.
41137# And first: Protect against being on the right side of a sed subst in
41138# config.status. Protect against being in an unquoted here document
41139# in config.status.
41140rm -f conftest.defines conftest.undefs
41141# Using a here document instead of a string reduces the quoting nightmare.
41142# Putting comments in sed scripts is not portable.
41143#
41144# `end' is used to avoid that the second main sed command (meant for
41145# 0-ary CPP macros) applies to n-ary macro definitions.
41146# See the Autoconf documentation for `clear'.
41147cat >confdef2sed.sed <<\_ACEOF
41148s/[\\&,]/\\&/g
41149s,[\\$`],\\&,g
41150t clear
41151: clear
32ddf007 41152s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 41153t end
32ddf007 41154s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
41155: end
41156_ACEOF
41157# If some macros were called several times there might be several times
41158# the same #defines, which is useless. Nevertheless, we may not want to
41159# sort them, since we want the *last* AC-DEFINE to be honored.
41160uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41161sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41162rm -f confdef2sed.sed
10f2d63a
VZ
41163
41164# This sed command replaces #undef with comments. This is necessary, for
41165# example, in the case of _POSIX_SOURCE, which is predefined and required
41166# on some systems where configure will not decide to define it.
e6cc62c6 41167cat >>conftest.undefs <<\_ACEOF
32ddf007 41168s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
41169_ACEOF
41170
41171# Break up conftest.defines because some shells have a limit on the size
41172# of here documents, and old seds have small limits too (100 cmds).
41173echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32ddf007 41174echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
41175echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41176echo ' :' >>$CONFIG_STATUS
41177rm -f conftest.tail
41178while grep . conftest.defines >/dev/null
41179do
41180 # Write a limited-size here document to $tmp/defines.sed.
41181 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41182 # Speed up: don't consider the non `#define' lines.
32ddf007 41183 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41184 # Work around the forget-to-reset-the-flag bug.
41185 echo 't clr' >>$CONFIG_STATUS
41186 echo ': clr' >>$CONFIG_STATUS
41187 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41188 echo 'CEOF
41189 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41190 rm -f $tmp/in
41191 mv $tmp/out $tmp/in
41192' >>$CONFIG_STATUS
41193 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41194 rm -f conftest.defines
41195 mv conftest.tail conftest.defines
41196done
41197rm -f conftest.defines
41198echo ' fi # grep' >>$CONFIG_STATUS
41199echo >>$CONFIG_STATUS
10f2d63a 41200
e6cc62c6
VS
41201# Break up conftest.undefs because some shells have a limit on the size
41202# of here documents, and old seds have small limits too (100 cmds).
41203echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 41204rm -f conftest.tail
e6cc62c6 41205while grep . conftest.undefs >/dev/null
10f2d63a 41206do
e6cc62c6
VS
41207 # Write a limited-size here document to $tmp/undefs.sed.
41208 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41209 # Speed up: don't consider the non `#undef'
32ddf007 41210 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41211 # Work around the forget-to-reset-the-flag bug.
41212 echo 't clr' >>$CONFIG_STATUS
41213 echo ': clr' >>$CONFIG_STATUS
41214 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 41215 echo 'CEOF
e6cc62c6
VS
41216 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41217 rm -f $tmp/in
41218 mv $tmp/out $tmp/in
41219' >>$CONFIG_STATUS
41220 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41221 rm -f conftest.undefs
41222 mv conftest.tail conftest.undefs
10f2d63a 41223done
e6cc62c6
VS
41224rm -f conftest.undefs
41225
41226cat >>$CONFIG_STATUS <<\_ACEOF
41227 # Let's still pretend it is `configure' which instantiates (i.e., don't
41228 # use $as_me), people would be surprised to read:
41229 # /* config.h. Generated by config.status. */
41230 if test x"$ac_file" = x-; then
41231 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 41232 else
e6cc62c6 41233 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 41234 fi
e6cc62c6
VS
41235 cat $tmp/in >>$tmp/config.h
41236 rm -f $tmp/in
41237 if test x"$ac_file" != x-; then
41238 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41239 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41240echo "$as_me: $ac_file is unchanged" >&6;}
41241 else
41242 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41243$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41244 X"$ac_file" : 'X\(//\)[^/]' \| \
41245 X"$ac_file" : 'X\(//\)$' \| \
41246 X"$ac_file" : 'X\(/\)' \| \
41247 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41248echo X"$ac_file" |
41249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41251 /^X\(\/\/\)$/{ s//\1/; q; }
41252 /^X\(\/\).*/{ s//\1/; q; }
41253 s/.*/./; q'`
41254 { if $as_mkdir_p; then
41255 mkdir -p "$ac_dir"
41256 else
41257 as_dir="$ac_dir"
41258 as_dirs=
41259 while test ! -d "$as_dir"; do
41260 as_dirs="$as_dir $as_dirs"
41261 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41262$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41263 X"$as_dir" : 'X\(//\)[^/]' \| \
41264 X"$as_dir" : 'X\(//\)$' \| \
41265 X"$as_dir" : 'X\(/\)' \| \
41266 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41267echo X"$as_dir" |
41268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41270 /^X\(\/\/\)$/{ s//\1/; q; }
41271 /^X\(\/\).*/{ s//\1/; q; }
41272 s/.*/./; q'`
41273 done
41274 test ! -n "$as_dirs" || mkdir $as_dirs
41275 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41276echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41277 { (exit 1); exit 1; }; }; }
a0b9e27f 41278
e6cc62c6
VS
41279 rm -f $ac_file
41280 mv $tmp/config.h $ac_file
41281 fi
41282 else
41283 cat $tmp/config.h
41284 rm -f $tmp/config.h
41285 fi
41286done
41287_ACEOF
41288cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 41289
e6cc62c6
VS
41290#
41291# CONFIG_COMMANDS section.
41292#
41293for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41294 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41295 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41296 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41297$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41298 X"$ac_dest" : 'X\(//\)[^/]' \| \
41299 X"$ac_dest" : 'X\(//\)$' \| \
41300 X"$ac_dest" : 'X\(/\)' \| \
41301 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41302echo X"$ac_dest" |
41303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41305 /^X\(\/\/\)$/{ s//\1/; q; }
41306 /^X\(\/\).*/{ s//\1/; q; }
41307 s/.*/./; q'`
32ddf007
VS
41308 { if $as_mkdir_p; then
41309 mkdir -p "$ac_dir"
41310 else
41311 as_dir="$ac_dir"
41312 as_dirs=
41313 while test ! -d "$as_dir"; do
41314 as_dirs="$as_dir $as_dirs"
41315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41317 X"$as_dir" : 'X\(//\)[^/]' \| \
41318 X"$as_dir" : 'X\(//\)$' \| \
41319 X"$as_dir" : 'X\(/\)' \| \
41320 . : '\(.\)' 2>/dev/null ||
41321echo X"$as_dir" |
41322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41324 /^X\(\/\/\)$/{ s//\1/; q; }
41325 /^X\(\/\).*/{ s//\1/; q; }
41326 s/.*/./; q'`
41327 done
41328 test ! -n "$as_dirs" || mkdir $as_dirs
41329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41330echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41331 { (exit 1); exit 1; }; }; }
41332
e6cc62c6
VS
41333 ac_builddir=.
41334
41335if test "$ac_dir" != .; then
41336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41337 # A "../" for each directory in $ac_dir_suffix.
41338 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41339else
41340 ac_dir_suffix= ac_top_builddir=
41341fi
41342
41343case $srcdir in
41344 .) # No --srcdir option. We are building in place.
41345 ac_srcdir=.
41346 if test -z "$ac_top_builddir"; then
41347 ac_top_srcdir=.
41348 else
41349 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41350 fi ;;
41351 [\\/]* | ?:[\\/]* ) # Absolute path.
41352 ac_srcdir=$srcdir$ac_dir_suffix;
41353 ac_top_srcdir=$srcdir ;;
41354 *) # Relative path.
41355 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41356 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41357esac
32ddf007
VS
41358
41359# Do not use `cd foo && pwd` to compute absolute paths, because
41360# the directories may not exist.
41361case `pwd` in
41362.) ac_abs_builddir="$ac_dir";;
41363*)
41364 case "$ac_dir" in
41365 .) ac_abs_builddir=`pwd`;;
41366 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41367 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41368 esac;;
41369esac
41370case $ac_abs_builddir in
41371.) ac_abs_top_builddir=${ac_top_builddir}.;;
41372*)
41373 case ${ac_top_builddir}. in
41374 .) ac_abs_top_builddir=$ac_abs_builddir;;
41375 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41376 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41377 esac;;
41378esac
41379case $ac_abs_builddir in
41380.) ac_abs_srcdir=$ac_srcdir;;
41381*)
41382 case $ac_srcdir in
41383 .) ac_abs_srcdir=$ac_abs_builddir;;
41384 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41385 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41386 esac;;
41387esac
41388case $ac_abs_builddir in
41389.) ac_abs_top_srcdir=$ac_top_srcdir;;
41390*)
41391 case $ac_top_srcdir in
41392 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41393 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41394 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41395 esac;;
41396esac
e6cc62c6
VS
41397
41398
41399 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41400echo "$as_me: executing $ac_dest commands" >&6;}
41401 case $ac_dest in
41402 default )
652d930d 41403 if test ! -h wx-config; then
991a5759 41404 chmod +x wx-config
3a922bb4
RL
41405 mv wx-config wx${TOOLCHAIN_NAME}-config
41406 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 41407 fi
665bbe97 41408
00cf1208
RR
41409 if test ! -d lib; then
41410 mkdir lib
41411 fi
41412 if test ! -d lib/wx; then
41413 mkdir lib/wx
41414 fi
41415 if test ! -d lib/wx/include; then
41416 mkdir lib/wx/include
41417 fi
3a922bb4
RL
41418 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41419 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 41420 fi
3a922bb4
RL
41421 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41422 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
41423 fi
41424 if test -f setup.h; then
3a922bb4 41425 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 41426 fi
e6cc62c6
VS
41427 ;;
41428 esac
41429done
41430_ACEOF
2224580a 41431
e6cc62c6 41432cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 41433
e6cc62c6
VS
41434{ (exit 0); exit 0; }
41435_ACEOF
41436chmod +x $CONFIG_STATUS
41437ac_clean_files=$ac_clean_files_save
41438
41439
41440# configure is writing to config.log, and then calls config.status.
41441# config.status does its own redirection, appending to config.log.
41442# Unfortunately, on DOS this fails, as config.log is still kept open
41443# by configure, so config.status won't be able to write to it; its
41444# output is simply discarded. So we exec the FD to /dev/null,
41445# effectively closing config.log, so it can be properly (re)opened and
41446# appended to by config.status. When coming back to configure, we
41447# need to make the FD available again.
41448if test "$no_create" != yes; then
41449 ac_cs_success=:
41450 ac_config_status_args=
41451 test "$silent" = yes &&
41452 ac_config_status_args="$ac_config_status_args --quiet"
41453 exec 5>/dev/null
41454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41455 exec 5>>config.log
41456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41457 # would make configure fail if this is the last instruction.
41458 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
41459fi
41460
672abd7a
VS
41461#
41462# CONFIG_SUBDIRS section.
41463#
41464if test "$no_recursion" != yes; then
41465
41466 # Remove --cache-file and --srcdir arguments so they do not pile up.
41467 ac_sub_configure_args=
41468 ac_prev=
41469 for ac_arg in $ac_configure_args; do
41470 if test -n "$ac_prev"; then
41471 ac_prev=
41472 continue
41473 fi
41474 case $ac_arg in
41475 -cache-file | --cache-file | --cache-fil | --cache-fi \
41476 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41477 ac_prev=cache_file ;;
41478 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41479 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41480 | --c=*)
41481 ;;
41482 --config-cache | -C)
41483 ;;
41484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41485 ac_prev=srcdir ;;
41486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41487 ;;
41488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41489 ac_prev=prefix ;;
41490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41491 ;;
41492 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41493 esac
41494 done
41495
41496 # Always prepend --prefix to ensure using the same prefix
41497 # in subdir configurations.
41498 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41499
41500 ac_popdir=`pwd`
41501 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41502
41503 # Do not complain, so a configure script can configure whichever
41504 # parts of a large source tree are present.
41505 test -d $srcdir/$ac_dir || continue
41506
41507 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41508echo "$as_me: configuring in $ac_dir" >&6;}
41509 { if $as_mkdir_p; then
41510 mkdir -p "$ac_dir"
41511 else
41512 as_dir="$ac_dir"
41513 as_dirs=
41514 while test ! -d "$as_dir"; do
41515 as_dirs="$as_dir $as_dirs"
41516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41518 X"$as_dir" : 'X\(//\)[^/]' \| \
41519 X"$as_dir" : 'X\(//\)$' \| \
41520 X"$as_dir" : 'X\(/\)' \| \
41521 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
41522echo X"$as_dir" |
41523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41525 /^X\(\/\/\)$/{ s//\1/; q; }
41526 /^X\(\/\).*/{ s//\1/; q; }
41527 s/.*/./; q'`
41528 done
41529 test ! -n "$as_dirs" || mkdir $as_dirs
41530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41531echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41532 { (exit 1); exit 1; }; }; }
41533
41534 ac_builddir=.
41535
41536if test "$ac_dir" != .; then
41537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41538 # A "../" for each directory in $ac_dir_suffix.
41539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41540else
41541 ac_dir_suffix= ac_top_builddir=
41542fi
41543
41544case $srcdir in
41545 .) # No --srcdir option. We are building in place.
41546 ac_srcdir=.
41547 if test -z "$ac_top_builddir"; then
41548 ac_top_srcdir=.
41549 else
41550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41551 fi ;;
41552 [\\/]* | ?:[\\/]* ) # Absolute path.
41553 ac_srcdir=$srcdir$ac_dir_suffix;
41554 ac_top_srcdir=$srcdir ;;
41555 *) # Relative path.
41556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41557 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41558esac
32ddf007
VS
41559
41560# Do not use `cd foo && pwd` to compute absolute paths, because
41561# the directories may not exist.
41562case `pwd` in
41563.) ac_abs_builddir="$ac_dir";;
41564*)
41565 case "$ac_dir" in
41566 .) ac_abs_builddir=`pwd`;;
41567 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41568 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41569 esac;;
41570esac
41571case $ac_abs_builddir in
41572.) ac_abs_top_builddir=${ac_top_builddir}.;;
41573*)
41574 case ${ac_top_builddir}. in
41575 .) ac_abs_top_builddir=$ac_abs_builddir;;
41576 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41577 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41578 esac;;
41579esac
41580case $ac_abs_builddir in
41581.) ac_abs_srcdir=$ac_srcdir;;
41582*)
41583 case $ac_srcdir in
41584 .) ac_abs_srcdir=$ac_abs_builddir;;
41585 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41586 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41587 esac;;
41588esac
41589case $ac_abs_builddir in
41590.) ac_abs_top_srcdir=$ac_top_srcdir;;
41591*)
41592 case $ac_top_srcdir in
41593 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41594 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41595 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41596 esac;;
41597esac
672abd7a
VS
41598
41599
41600 cd $ac_dir
41601
41602 # Check for guested configure; otherwise get Cygnus style configure.
41603 if test -f $ac_srcdir/configure.gnu; then
41604 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41605 elif test -f $ac_srcdir/configure; then
41606 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41607 elif test -f $ac_srcdir/configure.in; then
41608 ac_sub_configure=$ac_configure
41609 else
41610 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41611echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41612 ac_sub_configure=
41613 fi
41614
41615 # The recursion is here.
41616 if test -n "$ac_sub_configure"; then
41617 # Make the cache file name correct relative to the subdirectory.
41618 case $cache_file in
41619 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41620 *) # Relative path.
32ddf007 41621 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
41622 esac
41623
41624 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41625echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41626 # The eval makes quoting arguments work.
41627 eval $ac_sub_configure $ac_sub_configure_args \
32ddf007
VS
41628 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41629 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
41630echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41631 { (exit 1); exit 1; }; }
41632 fi
41633
e1293dcf 41634 cd "$ac_popdir"
672abd7a
VS
41635 done
41636fi
41637
8284b0c5 41638
2b5f62a0
VZ
41639echo
41640echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41641echo ""
89fe663f 41642echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 41643echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
41644
41645echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
41646echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
41647echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
41648
0c98a14e 41649echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
41650echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
41651echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 41652
2b5f62a0
VZ
41653echo " Which libraries should wxWindows use?"
41654echo " jpeg ${wxUSE_LIBJPEG-none}"
41655echo " png ${wxUSE_LIBPNG-none}"
41656echo " regex ${wxUSE_REGEX}"
41657echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
41658if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41659echo " xpm ${wxUSE_LIBXPM-none}"
41660fi
2b5f62a0 41661echo " zlib ${wxUSE_ZLIB}"
fd3d7534 41662echo " odbc ${wxUSE_ODBC}"
5f0b6dff 41663echo " expat ${wxUSE_EXPAT}"
3527f29c 41664echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 41665echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
41666
41667echo ""
41668