]> git.saurik.com Git - wxWidgets.git/blame - configure
Don't log errors from GetScrollInfo since it is possible that there
[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.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
66a96744 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_BUILD_DEBUG COND_BUILD_RELEASE COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_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_SOVERSION_1 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0_USE_GUI_1_USE_OPENGL_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_GTK_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_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_MSW_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1 COND_UNICODE_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_PLATFORM_MAC_1 COND_SHARED_1 COND_SHARED_0 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME 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_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY ESD_LINK LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
888 --enable-compat20 enable wxWindows 2.0 compatibility
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-cmdline use wxCmdLineParser class
903 --enable-datetime use wxDateTime class
904 --enable-stopwatch use wxStopWatch class
905 --enable-dialupman use dialup network classes
906 --enable-apple_ieee use the Apple IEEE codec
907 --enable-timer use wxTimer class
908 --enable-wave use wxWave class
909 --enable-fraction use wxFraction class
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-longlong use wxLongLong class
913 --enable-geometry use geometry class
914 --enable-log use logging system
915 --enable-streams use wxStream etc classes
916 --enable-file use wxFile classes
917 --enable-ffile use wxFFile classes
918 --enable-textbuf use wxTextBuffer class
919 --enable-textfile use wxTextFile class
920 --enable-fontmap use font encodings conversion classes
921 --enable-unicode compile wxString with Unicode support
922 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
923 --enable-wxprintfv use wxWindows implementation of vprintf()
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-filesystem use virtual file systems classes
926 --enable-fs_inet use virtual HTTP/FTP filesystems
927 --enable-fs_zip use virtual ZIP filesystems
928 --enable-zipstream use wxZipInputStream
929 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
930 --enable-snglinst use wxSingleInstanceChecker class
931 --enable-mimetype use wxMimeTypesManager
932 --enable-sysoptions use wxSystemOptions
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
970 --enable-listbox use wxListBox class
971 --enable-listctrl use wxListCtrl class
972 --enable-notebook use wxNotebook class
973 --enable-radiobox use wxRadioBox class
974 --enable-radiobtn use wxRadioButton class
975 --enable-sash use wxSashWindow class
976 --enable-scrollbar use wxScrollBar class and scrollable windows
977 --enable-slider use wxSlider class
978 --enable-spinbtn use wxSpinButton class
979 --enable-spinctrl use wxSpinCtrl class
980 --enable-splitter use wxSplitterWindow class
981 --enable-statbmp use wxStaticBitmap class
982 --enable-statbox use wxStaticBox class
983 --enable-statline use wxStaticLine class
984 --enable-stattext use wxStaticText class
985 --enable-statusbar use wxStatusBar class
986 --enable-tabdialog use wxTabControl class
987 --enable-textctrl use wxTextCtrl class
988 --enable-togglebtn use wxToggleButton class
989 --enable-toolbar use wxToolBar class
990 --enable-tbarnative use native wxToolBar class
991 --enable-tbarsmpl use wxToolBarSimple class
992 --enable-treectrl use wxTreeCtrl class
993 --enable-tipwindow use wxTipWindow class
994 --enable-popupwin use wxPopUpWindow class
995 --enable-commondlg use all common dialogs
996 --enable-choicedlg use wxChoiceDialog
997 --enable-coldlg use wxColourDialog
998 --enable-filedlg use wxFileDialog
999 --enable-finddlg use wxFindReplaceDialog
1000 --enable-fontdlg use wxFontDialog
1001 --enable-dirdlg use wxDirDialog
1002 --enable-msgdlg use wxMessageDialog
1003 --enable-numberdlg use wxNumberEntryDialog
1004 --enable-splash use wxSplashScreen
1005 --enable-textdlg use wxTextDialog
1006 --enable-tipdlg use startup tips
1007 --enable-progressdlg use wxProgressDialog
1008 --enable-wizarddlg use wxWizard
1009 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1010 --enable-miniframe use wxMiniFrame class
1011 --enable-tooltips use wxToolTip class
1012 --enable-splines use spline drawing code
1013 --enable-validators use wxValidator and derived classes
1014 --enable-busyinfo use wxBusyInfo
1015 --enable-joystick use wxJoystick (Linux only)
1016 --enable-metafiles use wxMetaFile (Windows only)
1017 --enable-dragimage use wxDragImage
1018 --enable-accessibility enable accessibility support
1019 --enable-palette use wxPalette class
1020 --enable-image use wxImage class
1021 --enable-gif use gif images (GIF file format)
1022 --enable-pcx use pcx images (PCX file format)
1023 --enable-iff use iff images (IFF file format)
1024 --enable-pnm use pnm images (PNM file format)
1025 --enable-xpm use xpm images (XPM file format)
1026 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1027 --enable-official_build official build of wxWindows (win32 DLL only)
1028 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1029 --disable-largefile omit support for large files
1030 --disable-gtktest do not try to compile and run a test GTK+ program
1031 --disable-gtktest Do not try to compile and run a test GTK program
1032
1033Optional Packages:
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1036 --with-gtk use GTK+
1037 --with-motif use Motif/Lesstif
1038 --with-mac use Mac OS X
1039 --with-cocoa use Cocoa
1040 --with-wine use Wine
1041 --with-msw use MS-Windows
1042 --with-pm use OS/2 Presentation Manager
1043 --with-mgl use SciTech MGL
1044 --with-microwin use MicroWindows
1045 --with-x11 use X11
1046 --with-libpng use libpng (PNG image format)
1047 --with-libjpeg use libjpeg (JPEG file format)
1048 --with-libtiff use libtiff (TIFF file format)
1049 --with-opengl use OpenGL (or Mesa)
1050 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1051 --with-regex enable support for wxRegEx class
1052 --with-zlib use zlib for LZW compression
1053 --with-odbc use the IODBC and wxODBC classes
672abd7a 1054 --with-expat enable XML support using expat parser
e6cc62c6
VS
1055 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1056 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1057 --with-x use the X Window System
1058 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1059
1060Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1067 CPP C preprocessor
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071
1072Use these variables to override the choices made by `configure' or to help
1073it to find libraries and programs with nonstandard names/locations.
1074
1075Report bugs to <wx-dev@lists.wxwindows.org>.
1076_ACEOF
1077fi
1078
1079if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1081 ac_popdir=`pwd`
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1084 ac_builddir=.
1085
1086if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090else
1091 ac_dir_suffix= ac_top_builddir=
1092fi
1093
1094case $srcdir in
1095 .) # No --srcdir option. We are building in place.
1096 ac_srcdir=.
1097 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=.
1099 else
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 fi ;;
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1105 *) # Relative path.
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108esac
1109# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1110# absolute.
1111ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1112ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1113ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1114ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1115
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
1131 cd $ac_popdir
1132 done
1133fi
8284b0c5 1134
e6cc62c6
VS
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137 cat <<\_ACEOF
1138wxWindows configure 2.5.0
1139generated by GNU Autoconf 2.57
10f2d63a 1140
e6cc62c6
VS
1141Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1142Free Software Foundation, Inc.
1143This configure script is free software; the Free Software Foundation
1144gives unlimited permission to copy, distribute and modify it.
1145_ACEOF
1146 exit 0
7c66a493 1147fi
e6cc62c6
VS
1148exec 5>config.log
1149cat >&5 <<_ACEOF
1150This file contains any messages produced by compilers while
1151running configure, to aid debugging if configure makes a mistake.
1152
1153It was created by wxWindows $as_me 2.5.0, which was
1154generated by GNU Autoconf 2.57. Invocation command line was
1155
1156 $ $0 $@
1157
1158_ACEOF
1159{
1160cat <<_ASUNAME
1161## --------- ##
1162## Platform. ##
1163## --------- ##
1164
1165hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1166uname -m = `(uname -m) 2>/dev/null || echo unknown`
1167uname -r = `(uname -r) 2>/dev/null || echo unknown`
1168uname -s = `(uname -s) 2>/dev/null || echo unknown`
1169uname -v = `(uname -v) 2>/dev/null || echo unknown`
1170
1171/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1172/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1173
1174/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1175/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1176/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1177hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1178/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1179/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1180/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1181
1182_ASUNAME
1183
1184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1185for as_dir in $PATH
1186do
1187 IFS=$as_save_IFS
1188 test -z "$as_dir" && as_dir=.
1189 echo "PATH: $as_dir"
1190done
1191
1192} >&5
1193
1194cat >&5 <<_ACEOF
1195
1196
1197## ----------- ##
1198## Core tests. ##
1199## ----------- ##
1200
1201_ACEOF
1202
1203
1204# Keep a trace of the command line.
1205# Strip out --no-create and --no-recursion so they do not pile up.
1206# Strip out --silent because we don't want to record it for future runs.
1207# Also quote any args containing shell meta-characters.
1208# Make two passes to allow for proper duplicate-argument suppression.
1209ac_configure_args=
1210ac_configure_args0=
1211ac_configure_args1=
1212ac_sep=
1213ac_must_keep_next=false
1214for ac_pass in 1 2
1215do
1216 for ac_arg
1217 do
1218 case $ac_arg in
1219 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 continue ;;
1223 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1224 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1225 esac
1226 case $ac_pass in
1227 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1228 2)
1229 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1230 if test $ac_must_keep_next = true; then
1231 ac_must_keep_next=false # Got value, back to normal.
1232 else
1233 case $ac_arg in
1234 *=* | --config-cache | -C | -disable-* | --disable-* \
1235 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1236 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1237 | -with-* | --with-* | -without-* | --without-* | --x)
1238 case "$ac_configure_args0 " in
1239 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1240 esac
1241 ;;
1242 -* ) ac_must_keep_next=true ;;
1243 esac
1244 fi
1245 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1246 # Get rid of the leading space.
1247 ac_sep=" "
1248 ;;
1249 esac
1250 done
1251done
1252$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1253$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1254
1255# When interrupted or exit'd, cleanup temporary files, and complete
1256# config.log. We remove comments because anyway the quotes in there
1257# would cause problems or look ugly.
1258# WARNING: Be sure not to use single quotes in there, as some shells,
1259# such as our DU 5.0 friend, will then `close' the trap.
1260trap 'exit_status=$?
1261 # Save into config.log some information that might help in debugging.
1262 {
1263 echo
1264
1265 cat <<\_ASBOX
1266## ---------------- ##
1267## Cache variables. ##
1268## ---------------- ##
1269_ASBOX
1270 echo
1271 # The following way of writing the cache mishandles newlines in values,
1272{
1273 (set) 2>&1 |
1274 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1275 *ac_space=\ *)
1276 sed -n \
1277 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 ;;
1280 *)
1281 sed -n \
1282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ;;
1284 esac;
1285}
1286 echo
1287
1288 cat <<\_ASBOX
1289## ----------------- ##
1290## Output variables. ##
1291## ----------------- ##
1292_ASBOX
1293 echo
1294 for ac_var in $ac_subst_vars
1295 do
1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
1298 done | sort
1299 echo
1300
1301 if test -n "$ac_subst_files"; then
1302 cat <<\_ASBOX
1303## ------------- ##
1304## Output files. ##
1305## ------------- ##
1306_ASBOX
1307 echo
1308 for ac_var in $ac_subst_files
1309 do
1310 eval ac_val=$`echo $ac_var`
1311 echo "$ac_var='"'"'$ac_val'"'"'"
1312 done | sort
1313 echo
1314 fi
1315
1316 if test -s confdefs.h; then
1317 cat <<\_ASBOX
1318## ----------- ##
1319## confdefs.h. ##
1320## ----------- ##
1321_ASBOX
1322 echo
1323 sed "/^$/d" confdefs.h | sort
1324 echo
1325 fi
1326 test "$ac_signal" != 0 &&
1327 echo "$as_me: caught signal $ac_signal"
1328 echo "$as_me: exit $exit_status"
1329 } >&5
1330 rm -f core core.* *.core &&
1331 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1332 exit $exit_status
1333 ' 0
1334for ac_signal in 1 2 13 15; do
1335 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1336done
1337ac_signal=0
1338
1339# confdefs.h avoids OS command line length limits that DEFS can exceed.
1340rm -rf conftest* confdefs.h
1341# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1342echo >confdefs.h
1343
1344# Predefined preprocessor variables.
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_NAME "$PACKAGE_NAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_VERSION "$PACKAGE_VERSION"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_STRING "$PACKAGE_STRING"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1368_ACEOF
1369
1370
1371# Let the site file select an alternate cache file if it wants to.
1372# Prefer explicitly selected file to automatically selected ones.
1373if test -z "$CONFIG_SITE"; then
1374 if test "x$prefix" != xNONE; then
1375 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1376 else
1377 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1378 fi
1379fi
1380for ac_site_file in $CONFIG_SITE; do
1381 if test -r "$ac_site_file"; then
1382 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1383echo "$as_me: loading site script $ac_site_file" >&6;}
1384 sed 's/^/| /' "$ac_site_file" >&5
1385 . "$ac_site_file"
1386 fi
1387done
1388
1389if test -r "$cache_file"; then
1390 # Some versions of bash will fail to source /dev/null (special
1391 # files actually), so we avoid doing that.
1392 if test -f "$cache_file"; then
1393 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1394echo "$as_me: loading cache $cache_file" >&6;}
1395 case $cache_file in
1396 [\\/]* | ?:[\\/]* ) . $cache_file;;
1397 *) . ./$cache_file;;
1398 esac
1399 fi
1400else
1401 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1402echo "$as_me: creating cache $cache_file" >&6;}
1403 >$cache_file
1404fi
1405
1406# Check that the precious variables saved in the cache have kept the same
1407# value.
1408ac_cache_corrupted=false
1409for ac_var in `(set) 2>&1 |
1410 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1411 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1412 eval ac_new_set=\$ac_env_${ac_var}_set
1413 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1414 eval ac_new_val="\$ac_env_${ac_var}_value"
1415 case $ac_old_set,$ac_new_set in
1416 set,)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,set)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,);;
1425 *)
1426 if test "x$ac_old_val" != "x$ac_new_val"; then
1427 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1428echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1429 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1430echo "$as_me: former value: $ac_old_val" >&2;}
1431 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1432echo "$as_me: current value: $ac_new_val" >&2;}
1433 ac_cache_corrupted=:
1434 fi;;
1435 esac
1436 # Pass precious variables to config.status.
1437 if test "$ac_new_set" = set; then
1438 case $ac_new_val in
1439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1440 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1441 *) ac_arg=$ac_var=$ac_new_val ;;
1442 esac
1443 case " $ac_configure_args " in
1444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1445 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 esac
1447 fi
1448done
1449if $ac_cache_corrupted; then
1450 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1451echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1452 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1453echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1454 { (exit 1); exit 1; }; }
1455fi
1456
1457ac_ext=c
1458ac_cpp='$CPP $CPPFLAGS'
1459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
698dcdb6 1479
8284b0c5 1480
7c66a493 1481
a0b9e27f
MB
1482
1483
a0b9e27f 1484
a0b9e27f 1485
a0b9e27f 1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
e6cc62c6
VS
1490
1491
1492ac_aux_dir=
1493for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1494 if test -f $ac_dir/install-sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install-sh -c"
1497 break
1498 elif test -f $ac_dir/install.sh; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/install.sh -c"
1501 break
1502 elif test -f $ac_dir/shtool; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/shtool install -c"
1505 break
1506 fi
1507done
1508if test -z "$ac_aux_dir"; then
1509 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1510echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516
1517# Make sure we can run config.sub.
1518$ac_config_sub sun4 >/dev/null 2>&1 ||
1519 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1520echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523echo "$as_me:$LINENO: checking build system type" >&5
1524echo $ECHO_N "checking build system type... $ECHO_C" >&6
1525if test "${ac_cv_build+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 ac_cv_build_alias=$build_alias
1529test -z "$ac_cv_build_alias" &&
1530 ac_cv_build_alias=`$ac_config_guess`
1531test -z "$ac_cv_build_alias" &&
1532 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1533echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1534 { (exit 1); exit 1; }; }
1535ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1537echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1539
1540fi
1541echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1542echo "${ECHO_T}$ac_cv_build" >&6
1543build=$ac_cv_build
1544build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549echo "$as_me:$LINENO: checking host system type" >&5
1550echo $ECHO_N "checking host system type... $ECHO_C" >&6
1551if test "${ac_cv_host+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_host_alias=$host_alias
1555test -z "$ac_cv_host_alias" &&
1556 ac_cv_host_alias=$ac_cv_build_alias
1557ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1559echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562fi
1563echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1564echo "${ECHO_T}$ac_cv_host" >&6
1565host=$ac_cv_host
1566host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571echo "$as_me:$LINENO: checking target system type" >&5
1572echo $ECHO_N "checking target system type... $ECHO_C" >&6
1573if test "${ac_cv_target+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_target_alias=$target_alias
1577test "x$ac_cv_target_alias" = "x" &&
1578 ac_cv_target_alias=$ac_cv_host_alias
1579ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1581echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584fi
1585echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1586echo "${ECHO_T}$ac_cv_target" >&6
1587target=$ac_cv_target
1588target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593# The aliases save the names the user supplied, while $host etc.
1594# will get canonicalized.
1595test -n "$target_alias" &&
7c66a493
VZ
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1597 NONENONEs,x,x, &&
1598 program_prefix=${target_alias}-
8284b0c5
MB
1599
1600
a0b9e27f 1601
10f2d63a 1602WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1603WX_MINOR_VERSION_NUMBER=5
1604WX_RELEASE_NUMBER=0
10f2d63a 1605
10f2d63a 1606WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1607WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1608
978f1259
RL
1609WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1610
34bed6d9 1611WX_CURRENT=0
6426998c
RL
1612WX_REVISION=0
1613WX_AGE=0
1614
8284b0c5
MB
1615
1616
10f2d63a
VZ
1617USE_UNIX=1
1618USE_WIN32=0
f9bc1684 1619USE_DOS=0
b12915c1 1620USE_BEOS=0
1216f52d 1621USE_MAC=0
b12915c1 1622
10f2d63a 1623USE_AIX=
fe0895cf
VS
1624USE_BSD= USE_DARWIN= USE_FREEBSD=
1625USE_GNU= USE_HPUX=
89e3b3e4 1626USE_LINUX=
f6bcfd97 1627USE_NETBSD=
89e3b3e4 1628USE_OPENBSD=
fe0895cf
VS
1629USE_OSF= USE_SGI=
1630USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1631USE_ULTRIX=
89e3b3e4
VZ
1632USE_UNIXWARE=
1633
1634USE_ALPHA=
10f2d63a 1635
ab9b9eab
VZ
1636NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1637
ac0c4cc3 1638ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1639
ac0c4cc3 1640DEFAULT_wxUSE_COCOA=0
10f2d63a 1641DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1642DEFAULT_wxUSE_MAC=0
1643DEFAULT_wxUSE_MGL=0
1725144d 1644DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1645DEFAULT_wxUSE_MOTIF=0
1646DEFAULT_wxUSE_MSW=0
e07802fc 1647DEFAULT_wxUSE_PM=0
f79bd02d 1648DEFAULT_wxUSE_X11=0
10f2d63a 1649
ac0c4cc3 1650DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1651DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1652DEFAULT_DEFAULT_wxUSE_MAC=0
1653DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1654DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1655DEFAULT_DEFAULT_wxUSE_MOTIF=0
1656DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1657DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1658DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1659
d6a55c4b 1660PROGRAM_EXT=
3a922bb4 1661SO_SUFFIX=so
fe0895cf 1662SAMPLES_RPATH_FLAG=
d6a55c4b 1663
10f2d63a
VZ
1664case "${host}" in
1665 *-hp-hpux* )
1666 USE_HPUX=1
1667 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1668 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1669 SO_SUFFIX=sl
e6cc62c6 1670 cat >>confdefs.h <<\_ACEOF
10f2d63a 1671#define __HPUX__ 1
e6cc62c6 1672_ACEOF
10f2d63a
VZ
1673
1674 ;;
1675 *-*-linux* )
1676 USE_LINUX=1
e6cc62c6 1677 cat >>confdefs.h <<\_ACEOF
10f2d63a 1678#define __LINUX__ 1
e6cc62c6 1679_ACEOF
10f2d63a
VZ
1680
1681 TMP=`uname -m`
1682 if test "x$TMP" = "xalpha"; then
1683 USE_ALPHA=1
e6cc62c6 1684 cat >>confdefs.h <<\_ACEOF
10f2d63a 1685#define __ALPHA__ 1
e6cc62c6 1686_ACEOF
fe0895cf
VS
1687
1688 fi
1689 DEFAULT_DEFAULT_wxUSE_GTK=1
1690 ;;
1691 *-*-gnu* )
1692 USE_GNU=1
e6cc62c6 1693 cat >>confdefs.h <<\_ACEOF
fe0895cf 1694#define __GNU__ 1
e6cc62c6 1695_ACEOF
fe0895cf
VS
1696
1697 TMP=`uname -m`
1698 if test "x$TMP" = "xalpha"; then
1699 USE_ALPHA=1
e6cc62c6 1700 cat >>confdefs.h <<\_ACEOF
fe0895cf 1701#define __ALPHA__ 1
e6cc62c6 1702_ACEOF
10f2d63a
VZ
1703
1704 fi
1705 DEFAULT_DEFAULT_wxUSE_GTK=1
1706 ;;
1707 *-*-irix5* | *-*-irix6* )
1708 USE_SGI=1
1709 USE_SVR4=1
e6cc62c6 1710 cat >>confdefs.h <<\_ACEOF
10f2d63a 1711#define __SGI__ 1
e6cc62c6 1712_ACEOF
10f2d63a 1713
e6cc62c6 1714 cat >>confdefs.h <<\_ACEOF
10f2d63a 1715#define __SVR4__ 1
e6cc62c6 1716_ACEOF
10f2d63a
VZ
1717
1718 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1719 ;;
1720 *-*-solaris2* )
1721 USE_SUN=1
1722 USE_SOLARIS=1
1723 USE_SVR4=1
e6cc62c6 1724 cat >>confdefs.h <<\_ACEOF
10f2d63a 1725#define __SUN__ 1
e6cc62c6 1726_ACEOF
10f2d63a 1727
e6cc62c6 1728 cat >>confdefs.h <<\_ACEOF
10f2d63a 1729#define __SOLARIS__ 1
e6cc62c6 1730_ACEOF
10f2d63a 1731
e6cc62c6 1732 cat >>confdefs.h <<\_ACEOF
10f2d63a 1733#define __SVR4__ 1
e6cc62c6 1734_ACEOF
10f2d63a
VZ
1735
1736 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1737 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1738 ;;
1739 *-*-sunos4* )
1740 USE_SUN=1
1741 USE_SUNOS=1
1742 USE_BSD=1
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
10f2d63a 1744#define __SUN__ 1
e6cc62c6 1745_ACEOF
10f2d63a 1746
e6cc62c6 1747 cat >>confdefs.h <<\_ACEOF
10f2d63a 1748#define __SUNOS__ 1
e6cc62c6 1749_ACEOF
10f2d63a 1750
e6cc62c6 1751 cat >>confdefs.h <<\_ACEOF
10f2d63a 1752#define __BSD__ 1
e6cc62c6 1753_ACEOF
10f2d63a
VZ
1754
1755 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1756 ;;
f6bcfd97 1757 *-*-freebsd*)
10f2d63a
VZ
1758 USE_BSD=1
1759 USE_FREEBSD=1
e6cc62c6 1760 cat >>confdefs.h <<\_ACEOF
10f2d63a 1761#define __FREEBSD__ 1
e6cc62c6 1762_ACEOF
10f2d63a 1763
e6cc62c6 1764 cat >>confdefs.h <<\_ACEOF
10f2d63a 1765#define __BSD__ 1
e6cc62c6 1766_ACEOF
95c8801c
VS
1767
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-openbsd*)
1771 USE_BSD=1
1772 USE_OPENBSD=1
e6cc62c6 1773 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1774#define __OPENBSD__ 1
e6cc62c6 1775_ACEOF
95c8801c 1776
e6cc62c6 1777 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1778#define __BSD__ 1
e6cc62c6 1779_ACEOF
f6bcfd97
BP
1780
1781 DEFAULT_DEFAULT_wxUSE_GTK=1
1782 ;;
1783 *-*-netbsd*)
1784 USE_BSD=1
1785 USE_NETBSD=1
e6cc62c6 1786 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1787#define __NETBSD__ 1
e6cc62c6 1788_ACEOF
f6bcfd97 1789
e6cc62c6 1790 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1791#define __BSD__ 1
e6cc62c6 1792_ACEOF
10f2d63a
VZ
1793
1794 DEFAULT_DEFAULT_wxUSE_GTK=1
1795 ;;
1796 *-*-osf* )
1797 USE_ALPHA=1
1798 USE_OSF=1
e6cc62c6 1799 cat >>confdefs.h <<\_ACEOF
10f2d63a 1800#define __ALPHA__ 1
e6cc62c6 1801_ACEOF
10f2d63a 1802
e6cc62c6 1803 cat >>confdefs.h <<\_ACEOF
10f2d63a 1804#define __OSF__ 1
e6cc62c6 1805_ACEOF
10f2d63a
VZ
1806
1807 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1808 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1809 ;;
1810 *-*-dgux5* )
1811 USE_ALPHA=1
1812 USE_SVR4=1
e6cc62c6 1813 cat >>confdefs.h <<\_ACEOF
10f2d63a 1814#define __ALPHA__ 1
e6cc62c6 1815_ACEOF
10f2d63a 1816
e6cc62c6 1817 cat >>confdefs.h <<\_ACEOF
10f2d63a 1818#define __SVR4__ 1
e6cc62c6 1819_ACEOF
10f2d63a
VZ
1820
1821 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1822 ;;
1823 *-*-sysv5* )
1824 USE_SYSV=1
1825 USE_SVR4=1
e6cc62c6 1826 cat >>confdefs.h <<\_ACEOF
10f2d63a 1827#define __SYSV__ 1
e6cc62c6 1828_ACEOF
10f2d63a 1829
e6cc62c6 1830 cat >>confdefs.h <<\_ACEOF
10f2d63a 1831#define __SVR4__ 1
e6cc62c6 1832_ACEOF
10f2d63a
VZ
1833
1834 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1835 ;;
1836 *-*-aix* )
1837 USE_AIX=1
1838 USE_SYSV=1
1839 USE_SVR4=1
2b5f62a0 1840 SO_SUFFIX=a
e6cc62c6 1841 cat >>confdefs.h <<\_ACEOF
10f2d63a 1842#define __AIX__ 1
e6cc62c6 1843_ACEOF
10f2d63a 1844
e6cc62c6 1845 cat >>confdefs.h <<\_ACEOF
10f2d63a 1846#define __SYSV__ 1
e6cc62c6 1847_ACEOF
10f2d63a 1848
e6cc62c6 1849 cat >>confdefs.h <<\_ACEOF
10f2d63a 1850#define __SVR4__ 1
e6cc62c6 1851_ACEOF
10f2d63a
VZ
1852
1853 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1854 ;;
1855
89e3b3e4
VZ
1856 *-*-*UnixWare*)
1857 USE_SYSV=1
1858 USE_SVR4=1
1859 USE_UNIXWARE=1
e6cc62c6 1860 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1861#define __UNIXWARE__ 1
e6cc62c6 1862_ACEOF
89e3b3e4
VZ
1863
1864 ;;
1865
1c8183e2 1866 *-*-cygwin* | *-*-mingw32* )
17234b26 1867 SO_SUFFIX=dll
cf27ef00 1868 PROGRAM_EXT=".exe"
7b7a7637 1869 RESCOMP=windres
10f2d63a
VZ
1870 DEFAULT_DEFAULT_wxUSE_MSW=1
1871 ;;
1872
f9bc1684
VS
1873 *-pc-msdosdjgpp )
1874 USE_UNIX=0
1875 USE_DOS=1
e6cc62c6 1876 cat >>confdefs.h <<\_ACEOF
f9bc1684 1877#define __DOS__ 1
e6cc62c6 1878_ACEOF
f9bc1684
VS
1879
1880 PROGRAM_EXT=".exe"
1881 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1882 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1883 ;;
1884
6fa882bd 1885 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1886 cat >>confdefs.h <<\_ACEOF
10f2d63a 1887#define __EMX__ 1
e6cc62c6 1888_ACEOF
10f2d63a 1889
cf27ef00 1890 PROGRAM_EXT=".exe"
e07802fc 1891 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1892 ;;
1893
d08b457b
GD
1894 powerpc-*-darwin* )
1895 USE_BSD=1
f11bdd03 1896 USE_DARWIN=1
3a922bb4 1897 SO_SUFFIX=dylib
e6cc62c6 1898 cat >>confdefs.h <<\_ACEOF
f11bdd03 1899#define __BSD__ 1
e6cc62c6 1900_ACEOF
b4085ce6 1901
e6cc62c6 1902 cat >>confdefs.h <<\_ACEOF
f11bdd03 1903#define __DARWIN__ 1
e6cc62c6 1904_ACEOF
d08b457b 1905
e6cc62c6 1906 cat >>confdefs.h <<\_ACEOF
d08b457b 1907#define __POWERPC__ 1
e6cc62c6 1908_ACEOF
82d43113 1909
e6cc62c6 1910 cat >>confdefs.h <<\_ACEOF
82d43113 1911#define TARGET_CARBON 1
e6cc62c6 1912_ACEOF
b4085ce6
GD
1913
1914 DEFAULT_DEFAULT_wxUSE_MAC=1
1915 ;;
1916
b12915c1
VZ
1917 *-*-beos* )
1918 USE_BEOS=1
e6cc62c6 1919 cat >>confdefs.h <<\_ACEOF
b12915c1 1920#define __BEOS__ 1
e6cc62c6 1921_ACEOF
b12915c1
VZ
1922
1923 ;;
1924
10f2d63a 1925 *)
e6cc62c6
VS
1926 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1927echo "$as_me: error: unknown system type ${host}." >&2;}
1928 { (exit 1); exit 1; }; }
10f2d63a
VZ
1929esac
1930
8284b0c5
MB
1931
1932
1933
1934 wx_arg_cache_file="configarg.cache"
1935 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1936 rm -f ${wx_arg_cache_file}.tmp
1937 touch ${wx_arg_cache_file}.tmp
1938 touch ${wx_arg_cache_file}
e6cc62c6 1939
10f2d63a
VZ
1940
1941DEBUG_CONFIGURE=0
1942if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1943 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1944 DEFAULT_wxUSE_STL=no
1e6feb95 1945
d8356fa3
VZ
1946 DEFAULT_wxUSE_NANOX=no
1947
10f2d63a
VZ
1948 DEFAULT_wxUSE_THREADS=yes
1949
1950 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1951 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1952 DEFAULT_wxUSE_PROFILE=no
1953 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1954 DEFAULT_wxUSE_NO_RTTI=no
1955 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1956 DEFAULT_wxUSE_PERMISSIVE=no
1957 DEFAULT_wxUSE_DEBUG_FLAG=yes
1958 DEFAULT_wxUSE_DEBUG_INFO=yes
1959 DEFAULT_wxUSE_DEBUG_GDB=yes
1960 DEFAULT_wxUSE_MEM_TRACING=no
1961 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1962 DEFAULT_wxUSE_DMALLOC=no
1963 DEFAULT_wxUSE_APPLE_IEEE=no
1964
1965 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1966 DEFAULT_wxUSE_LOGWINDOW=no
1967 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1968 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1969
1970 DEFAULT_wxUSE_GUI=yes
1e6feb95 1971 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1972
3e44f09d 1973 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1974 DEFAULT_wxUSE_XML=no
1975 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1976 DEFAULT_wxUSE_ZLIB=no
1977 DEFAULT_wxUSE_LIBPNG=no
1978 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1979 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1980 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1981 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1982
eb4efbdc 1983 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1984 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1985 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1986 DEFAULT_wxUSE_CMDLINE_PARSER=no
1987 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1988 DEFAULT_wxUSE_TIMER=no
1989 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1990 DEFAULT_wxUSE_FILE=no
1e6feb95 1991 DEFAULT_wxUSE_FFILE=no
a3a584a7 1992 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1993 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1994 DEFAULT_wxUSE_WAVE=no
1995 DEFAULT_wxUSE_INTL=no
1996 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1997 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1998 DEFAULT_wxUSE_STREAMS=no
1999 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2000 DEFAULT_wxUSE_OLE=no
2001 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2002 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2003 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2004 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2005 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2006 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2007 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2008
2009 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2010 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2011 DEFAULT_wxUSE_POSTSCRIPT=no
2012
10f2d63a
VZ
2013 DEFAULT_wxUSE_CLIPBOARD=no
2014 DEFAULT_wxUSE_TOOLTIPS=no
2015 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2016 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2017 DEFAULT_wxUSE_SPLINES=no
2018
2019 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2020 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2021 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2022
10f2d63a
VZ
2023 DEFAULT_wxUSE_RESOURCES=no
2024 DEFAULT_wxUSE_CONSTRAINTS=no
2025 DEFAULT_wxUSE_IPC=no
2026 DEFAULT_wxUSE_HELP=no
29fd3c0c 2027 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2028 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2029 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2030 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2031 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2032 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2033 DEFAULT_wxUSE_PROTOCOL=no
2034 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2035 DEFAULT_wxUSE_PROTOCOL_FTP=no
2036 DEFAULT_wxUSE_PROTOCOL_FILE=no
2037 DEFAULT_wxUSE_URL=no
3bd8fb5f 2038
10f2d63a 2039 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2040 DEFAULT_wxUSE_CHOICEDLG=no
2041 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2042 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2043 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2044 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2045 DEFAULT_wxUSE_FONTDLG=no
2046 DEFAULT_wxUSE_MSGDLG=no
2047 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2048 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2049 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2050 DEFAULT_wxUSE_STARTUP_TIPS=no
2051 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2052 DEFAULT_wxUSE_WIZARDDLG=no
2053
1e6feb95 2054 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2055 DEFAULT_wxUSE_MINIFRAME=no
2056 DEFAULT_wxUSE_HTML=no
24528b0c 2057 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2058 DEFAULT_wxUSE_FS_INET=no
2059 DEFAULT_wxUSE_FS_ZIP=no
2060 DEFAULT_wxUSE_BUSYINFO=no
2061 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2062 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2063
2064 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2065 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2066 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2067 DEFAULT_wxUSE_CALCTRL=no
2068 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2069 DEFAULT_wxUSE_CHECKBOX=no
2070 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2071 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2072 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2073 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2074 DEFAULT_wxUSE_GAUGE=no
2075 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2076 DEFAULT_wxUSE_IMAGLIST=no
2077 DEFAULT_wxUSE_LISTBOX=no
2078 DEFAULT_wxUSE_LISTCTRL=no
2079 DEFAULT_wxUSE_NOTEBOOK=no
2080 DEFAULT_wxUSE_RADIOBOX=no
2081 DEFAULT_wxUSE_RADIOBTN=no
2082 DEFAULT_wxUSE_SASH=no
2083 DEFAULT_wxUSE_SCROLLBAR=no
2084 DEFAULT_wxUSE_SLIDER=no
2085 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2086 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2087 DEFAULT_wxUSE_SPLITTER=no
2088 DEFAULT_wxUSE_STATBMP=no
2089 DEFAULT_wxUSE_STATBOX=no
2090 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2091 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2092 DEFAULT_wxUSE_STATUSBAR=yes
2093 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2094 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2095 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2096 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2097 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2098 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2099 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2100 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2101 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2102
2103 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2104 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2105 DEFAULT_wxUSE_WCSRTOMBS=no
2106
edae8572 2107 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2108 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2109 DEFAULT_wxUSE_GIF=no
2110 DEFAULT_wxUSE_PCX=no
2111 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2112 DEFAULT_wxUSE_IFF=no
0046ff7c 2113 DEFAULT_wxUSE_XPM=no
658974ae 2114 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2115 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2116
2117 DEFAULT_wxUSE_MONOLITHIC=yes
029b47ad 2118 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2119else
1e6feb95 2120 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2121 DEFAULT_wxUSE_STL=no
1e6feb95 2122
d8356fa3
VZ
2123 DEFAULT_wxUSE_NANOX=no
2124
10f2d63a
VZ
2125 DEFAULT_wxUSE_THREADS=yes
2126
2127 DEFAULT_wxUSE_SHARED=yes
2128 DEFAULT_wxUSE_OPTIMISE=yes
2129 DEFAULT_wxUSE_PROFILE=no
2130 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2131 DEFAULT_wxUSE_NO_RTTI=no
2132 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2133 DEFAULT_wxUSE_PERMISSIVE=no
2134 DEFAULT_wxUSE_DEBUG_FLAG=no
2135 DEFAULT_wxUSE_DEBUG_INFO=no
2136 DEFAULT_wxUSE_DEBUG_GDB=no
2137 DEFAULT_wxUSE_MEM_TRACING=no
2138 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2139 DEFAULT_wxUSE_DMALLOC=no
2140 DEFAULT_wxUSE_APPLE_IEEE=yes
2141
2142 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2143 DEFAULT_wxUSE_LOGWINDOW=yes
2144 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2145 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2146
2147 DEFAULT_wxUSE_GUI=yes
2148
831b3152 2149 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2150 DEFAULT_wxUSE_XML=yes
2151 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2152 DEFAULT_wxUSE_ZLIB=yes
2153 DEFAULT_wxUSE_LIBPNG=yes
2154 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2155 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2156 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2157 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2158
eb4efbdc 2159 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2160 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2161 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2162 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2163 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2164 DEFAULT_wxUSE_TIMER=yes
2165 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2166 DEFAULT_wxUSE_FILE=yes
1e6feb95 2167 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2168 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2169 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2170 DEFAULT_wxUSE_WAVE=no
2171 DEFAULT_wxUSE_INTL=yes
2172 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2173 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2174 DEFAULT_wxUSE_STREAMS=yes
2175 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2176 DEFAULT_wxUSE_OLE=yes
2177 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2178 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2179 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2180 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2181 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2182 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2183 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2184
2185 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2186 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2187 DEFAULT_wxUSE_POSTSCRIPT=yes
2188
10f2d63a
VZ
2189 DEFAULT_wxUSE_CLIPBOARD=yes
2190 DEFAULT_wxUSE_TOOLTIPS=yes
2191 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2192 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2193 DEFAULT_wxUSE_SPLINES=yes
2194
2195 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2196 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2197 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2198
2b5f62a0 2199 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2200 DEFAULT_wxUSE_CONSTRAINTS=yes
2201 DEFAULT_wxUSE_IPC=yes
2202 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2203 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2204 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2205 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2206 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2207 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2208 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2209 DEFAULT_wxUSE_PROTOCOL=yes
2210 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2211 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2212 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2213 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2214
2215 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2216 DEFAULT_wxUSE_CHOICEDLG=yes
2217 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2218 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2219 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2220 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2221 DEFAULT_wxUSE_FONTDLG=yes
2222 DEFAULT_wxUSE_MSGDLG=yes
2223 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2224 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2225 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2226 DEFAULT_wxUSE_STARTUP_TIPS=yes
2227 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2228 DEFAULT_wxUSE_WIZARDDLG=yes
2229
1e6feb95 2230 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2231 DEFAULT_wxUSE_MINIFRAME=yes
2232 DEFAULT_wxUSE_HTML=yes
24528b0c 2233 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2234 DEFAULT_wxUSE_FS_INET=yes
2235 DEFAULT_wxUSE_FS_ZIP=yes
2236 DEFAULT_wxUSE_BUSYINFO=yes
2237 DEFAULT_wxUSE_ZIPSTREAM=yes
2238 DEFAULT_wxUSE_VALIDATORS=yes
2239
2240 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2241 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2242 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2243 DEFAULT_wxUSE_CALCTRL=yes
2244 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2245 DEFAULT_wxUSE_CHECKBOX=yes
2246 DEFAULT_wxUSE_CHECKLST=yes
2247 DEFAULT_wxUSE_CHOICE=yes
2248 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2249 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2250 DEFAULT_wxUSE_GAUGE=yes
2251 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2252 DEFAULT_wxUSE_IMAGLIST=yes
2253 DEFAULT_wxUSE_LISTBOX=yes
2254 DEFAULT_wxUSE_LISTCTRL=yes
2255 DEFAULT_wxUSE_NOTEBOOK=yes
2256 DEFAULT_wxUSE_RADIOBOX=yes
2257 DEFAULT_wxUSE_RADIOBTN=yes
2258 DEFAULT_wxUSE_SASH=yes
2259 DEFAULT_wxUSE_SCROLLBAR=yes
2260 DEFAULT_wxUSE_SLIDER=yes
2261 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2262 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2263 DEFAULT_wxUSE_SPLITTER=yes
2264 DEFAULT_wxUSE_STATBMP=yes
2265 DEFAULT_wxUSE_STATBOX=yes
2266 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2267 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2268 DEFAULT_wxUSE_STATUSBAR=yes
2269 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2270 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2271 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2272 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2273 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2274 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2275 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2276 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2277 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2278
2279 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2280 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2281 DEFAULT_wxUSE_WCSRTOMBS=no
2282
edae8572 2283 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2284 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2285 DEFAULT_wxUSE_GIF=yes
2286 DEFAULT_wxUSE_PCX=yes
cc0e8480 2287 DEFAULT_wxUSE_IFF=no
10f2d63a 2288 DEFAULT_wxUSE_PNM=yes
0046ff7c 2289 DEFAULT_wxUSE_XPM=yes
658974ae 2290 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2291 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2292
2293 DEFAULT_wxUSE_MONOLITHIC=yes
029b47ad 2294 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2295fi
2296
8284b0c5
MB
2297
2298
10f2d63a 2299for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2300 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2301 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2302 has_toolkit_in_cache=1
2303 eval "DEFAULT_$LINE"
2304 eval "CACHE_$toolkit=1"
2305 fi
2306done
2307
8284b0c5
MB
2308
2309
5005acfe 2310 enablestring=
e6cc62c6
VS
2311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2312echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2313 no_cache=0
2314 # Check whether --enable-gui or --disable-gui was given.
2315if test "${enable_gui+set}" = set; then
2316 enableval="$enable_gui"
e6cc62c6 2317
10f2d63a
VZ
2318 if test "$enableval" = yes; then
2319 ac_cv_use_gui='wxUSE_GUI=yes'
2320 else
2321 ac_cv_use_gui='wxUSE_GUI=no'
2322 fi
e6cc62c6 2323
10f2d63a 2324else
e6cc62c6 2325
10f2d63a
VZ
2326 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2327 if test "x$LINE" != x ; then
2328 eval "DEFAULT_$LINE"
2329 else
2330 no_cache=1
2331 fi
2332
2333 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2334
e6cc62c6 2335fi;
10f2d63a
VZ
2336
2337 eval "$ac_cv_use_gui"
2338 if test "$no_cache" != 1; then
2339 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2340 fi
2341
2342 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2343 echo "$as_me:$LINENO: result: yes" >&5
2344echo "${ECHO_T}yes" >&6
10f2d63a 2345 else
e6cc62c6
VS
2346 echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6
10f2d63a 2348 fi
e6cc62c6 2349
10f2d63a 2350
9747f85d
VS
2351 enablestring=
2352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2353echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2354 no_cache=0
2355 # Check whether --enable-monolithic or --disable-monolithic was given.
2356if test "${enable_monolithic+set}" = set; then
2357 enableval="$enable_monolithic"
2358
2359 if test "$enableval" = yes; then
2360 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2361 else
2362 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2363 fi
2364
2365else
2366
2367 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2368 if test "x$LINE" != x ; then
2369 eval "DEFAULT_$LINE"
2370 else
2371 no_cache=1
2372 fi
2373
2374 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2375
2376fi;
2377
2378 eval "$ac_cv_use_monolithic"
2379 if test "$no_cache" != 1; then
2380 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2381 fi
2382
2383 if test "$wxUSE_MONOLITHIC" = yes; then
2384 echo "$as_me:$LINENO: result: yes" >&5
2385echo "${ECHO_T}yes" >&6
2386 else
2387 echo "$as_me:$LINENO: result: no" >&5
2388echo "${ECHO_T}no" >&6
2389 fi
2390
2391
b12915c1 2392if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2393
8284b0c5 2394
5005acfe 2395 enablestring=
e6cc62c6
VS
2396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2397echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2398 no_cache=0
2399 # Check whether --enable-universal or --disable-universal was given.
2400if test "${enable_universal+set}" = set; then
2401 enableval="$enable_universal"
e6cc62c6 2402
1e6feb95
VZ
2403 if test "$enableval" = yes; then
2404 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2405 else
2406 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2407 fi
e6cc62c6 2408
1e6feb95 2409else
e6cc62c6 2410
1e6feb95
VZ
2411 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2412 if test "x$LINE" != x ; then
2413 eval "DEFAULT_$LINE"
2414 else
2415 no_cache=1
2416 fi
2417
2418 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2419
e6cc62c6 2420fi;
1e6feb95
VZ
2421
2422 eval "$ac_cv_use_universal"
2423 if test "$no_cache" != 1; then
2424 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2425 fi
2426
2427 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2428 echo "$as_me:$LINENO: result: yes" >&5
2429echo "${ECHO_T}yes" >&6
1e6feb95 2430 else
e6cc62c6
VS
2431 echo "$as_me:$LINENO: result: no" >&5
2432echo "${ECHO_T}no" >&6
1e6feb95 2433 fi
e6cc62c6
VS
2434
2435
10f2d63a
VZ
2436# Check whether --with-gtk or --without-gtk was given.
2437if test "${with_gtk+set}" = set; then
2438 withval="$with_gtk"
2439 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2440fi;
10f2d63a
VZ
2441
2442# Check whether --with-motif or --without-motif was given.
2443if test "${with_motif+set}" = set; then
2444 withval="$with_motif"
2445 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2446fi;
10f2d63a 2447
b4085ce6
GD
2448# Check whether --with-mac or --without-mac was given.
2449if test "${with_mac+set}" = set; then
2450 withval="$with_mac"
2451 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2452fi;
b4085ce6 2453
ac0c4cc3
DE
2454# Check whether --with-cocoa or --without-cocoa was given.
2455if test "${with_cocoa+set}" = set; then
2456 withval="$with_cocoa"
2457 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2458fi;
ac0c4cc3 2459
10f2d63a
VZ
2460# Check whether --with-wine or --without-wine was given.
2461if test "${with_wine+set}" = set; then
2462 withval="$with_wine"
89e6bf6d 2463 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2464fi;
10f2d63a 2465
77e13408
RL
2466# Check whether --with-msw or --without-msw was given.
2467if test "${with_msw+set}" = set; then
2468 withval="$with_msw"
b4efce5e 2469 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2470fi;
10f2d63a 2471
e07802fc
VZ
2472# Check whether --with-pm or --without-pm was given.
2473if test "${with_pm+set}" = set; then
2474 withval="$with_pm"
2475 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2476fi;
698dcdb6 2477
1e6feb95
VZ
2478# Check whether --with-mgl or --without-mgl was given.
2479if test "${with_mgl+set}" = set; then
2480 withval="$with_mgl"
6c657b52 2481 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2482fi;
1e6feb95 2483
1725144d
RR
2484# Check whether --with-microwin or --without-microwin was given.
2485if test "${with_microwin+set}" = set; then
2486 withval="$with_microwin"
2487 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2488fi;
1725144d 2489
f79bd02d
JS
2490# Check whether --with-x11 or --without-x11 was given.
2491if test "${with_x11+set}" = set; then
2492 withval="$with_x11"
3c011993 2493 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2494fi;
a0b9e27f 2495
5005acfe 2496 enablestring=
e6cc62c6
VS
2497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2498echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2499 no_cache=0
ba875e66
VZ
2500 # Check whether --enable-nanox or --disable-nanox was given.
2501if test "${enable_nanox+set}" = set; then
2502 enableval="$enable_nanox"
e6cc62c6 2503
d8356fa3 2504 if test "$enableval" = yes; then
ba875e66 2505 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2506 else
ba875e66 2507 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2508 fi
e6cc62c6 2509
d8356fa3 2510else
e6cc62c6 2511
d8356fa3
VZ
2512 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
ba875e66 2519 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2520
e6cc62c6 2521fi;
d8356fa3 2522
ba875e66 2523 eval "$ac_cv_use_nanox"
d8356fa3 2524 if test "$no_cache" != 1; then
ba875e66 2525 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2526 fi
2527
2528 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2529 echo "$as_me:$LINENO: result: yes" >&5
2530echo "${ECHO_T}yes" >&6
d8356fa3 2531 else
e6cc62c6
VS
2532 echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6
d8356fa3 2534 fi
e6cc62c6 2535
8284b0c5 2536
d74f4b5a 2537
5005acfe 2538 enablestring=
e6cc62c6
VS
2539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2540echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2541 no_cache=0
2542 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2543if test "${enable_gtk2+set}" = set; then
2544 enableval="$enable_gtk2"
e6cc62c6 2545
d74f4b5a
VZ
2546 if test "$enableval" = yes; then
2547 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2548 else
2549 ac_cv_use_gtk2='wxUSE_GTK2=no'
2550 fi
e6cc62c6 2551
10f2d63a 2552else
e6cc62c6 2553
d74f4b5a
VZ
2554 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2562
e6cc62c6 2563fi;
328a083c 2564
d74f4b5a
VZ
2565 eval "$ac_cv_use_gtk2"
2566 if test "$no_cache" != 1; then
2567 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2568 fi
2569
2570 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2571 echo "$as_me:$LINENO: result: yes" >&5
2572echo "${ECHO_T}yes" >&6
d74f4b5a 2573 else
e6cc62c6
VS
2574 echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6
d74f4b5a 2576 fi
d74f4b5a 2577
5c6fa7d2 2578
e6cc62c6
VS
2579
2580 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2581echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2582 no_cache=0
e6cc62c6
VS
2583
2584# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2585if test "${with_libpng+set}" = set; then
2586 withval="$with_libpng"
e6cc62c6 2587
10f2d63a 2588 if test "$withval" = yes; then
b12915c1 2589 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2590 elif test "$withval" = no; then
b12915c1 2591 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2592 elif test "$withval" = sys; then
2593 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2594 elif test "$withval" = builtin; then
2595 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2596 else
e6cc62c6
VS
2597 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2598echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2599 { (exit 1); exit 1; }; }
10f2d63a 2600 fi
e6cc62c6 2601
10f2d63a 2602else
e6cc62c6 2603
b12915c1 2604 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2605 if test "x$LINE" != x ; then
2606 eval "DEFAULT_$LINE"
2607 else
2608 no_cache=1
2609 fi
2610
b12915c1 2611 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2612
e6cc62c6 2613fi;
10f2d63a 2614
b12915c1 2615 eval "$ac_cv_use_libpng"
10f2d63a 2616 if test "$no_cache" != 1; then
b12915c1 2617 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2618 fi
2619
b12915c1 2620 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2621 echo "$as_me:$LINENO: result: yes" >&5
2622echo "${ECHO_T}yes" >&6
422107f9 2623 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2624 echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6
422107f9 2626 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2627 echo "$as_me:$LINENO: result: system version" >&5
2628echo "${ECHO_T}system version" >&6
4f14bcd8 2629 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2630 echo "$as_me:$LINENO: result: builtin version" >&5
2631echo "${ECHO_T}builtin version" >&6
422107f9 2632 else
e6cc62c6
VS
2633 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2634echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2635 { (exit 1); exit 1; }; }
10f2d63a 2636 fi
10f2d63a 2637
e6cc62c6
VS
2638
2639 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2640echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2641 no_cache=0
e6cc62c6
VS
2642
2643# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2644if test "${with_libjpeg+set}" = set; then
2645 withval="$with_libjpeg"
e6cc62c6 2646
10f2d63a 2647 if test "$withval" = yes; then
b12915c1 2648 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2649 elif test "$withval" = no; then
b12915c1 2650 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2651 elif test "$withval" = sys; then
2652 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2653 elif test "$withval" = builtin; then
2654 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2655 else
e6cc62c6
VS
2656 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2657echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2658 { (exit 1); exit 1; }; }
10f2d63a 2659 fi
e6cc62c6 2660
10f2d63a 2661else
e6cc62c6 2662
b12915c1 2663 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
b12915c1 2670 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2671
e6cc62c6 2672fi;
10f2d63a 2673
b12915c1 2674 eval "$ac_cv_use_libjpeg"
10f2d63a 2675 if test "$no_cache" != 1; then
b12915c1 2676 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2677 fi
2678
b12915c1 2679 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2680 echo "$as_me:$LINENO: result: yes" >&5
2681echo "${ECHO_T}yes" >&6
422107f9 2682 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2683 echo "$as_me:$LINENO: result: no" >&5
2684echo "${ECHO_T}no" >&6
422107f9 2685 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2686 echo "$as_me:$LINENO: result: system version" >&5
2687echo "${ECHO_T}system version" >&6
4f14bcd8 2688 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2689 echo "$as_me:$LINENO: result: builtin version" >&5
2690echo "${ECHO_T}builtin version" >&6
422107f9 2691 else
e6cc62c6
VS
2692 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2693echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2694 { (exit 1); exit 1; }; }
10f2d63a 2695 fi
10f2d63a 2696
e6cc62c6
VS
2697
2698 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2699echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2700 no_cache=0
e6cc62c6
VS
2701
2702# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2703if test "${with_libtiff+set}" = set; then
2704 withval="$with_libtiff"
e6cc62c6 2705
10f2d63a 2706 if test "$withval" = yes; then
b12915c1 2707 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2708 elif test "$withval" = no; then
b12915c1 2709 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2710 elif test "$withval" = sys; then
2711 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2712 elif test "$withval" = builtin; then
2713 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2714 else
e6cc62c6
VS
2715 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2716echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2717 { (exit 1); exit 1; }; }
10f2d63a 2718 fi
e6cc62c6 2719
10f2d63a 2720else
e6cc62c6 2721
b12915c1 2722 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2723 if test "x$LINE" != x ; then
2724 eval "DEFAULT_$LINE"
2725 else
2726 no_cache=1
2727 fi
2728
b12915c1 2729 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2730
e6cc62c6 2731fi;
10f2d63a 2732
b12915c1 2733 eval "$ac_cv_use_libtiff"
10f2d63a 2734 if test "$no_cache" != 1; then
b12915c1 2735 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2736 fi
2737
b12915c1 2738 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2739 echo "$as_me:$LINENO: result: yes" >&5
2740echo "${ECHO_T}yes" >&6
0dcf9893 2741 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2742 echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6
0dcf9893 2744 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2745 echo "$as_me:$LINENO: result: system version" >&5
2746echo "${ECHO_T}system version" >&6
4f14bcd8 2747 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2748 echo "$as_me:$LINENO: result: builtin version" >&5
2749echo "${ECHO_T}builtin version" >&6
0dcf9893 2750 else
e6cc62c6
VS
2751 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2752echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2753 { (exit 1); exit 1; }; }
10f2d63a 2754 fi
10f2d63a 2755
e6cc62c6
VS
2756
2757 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2758echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2759 no_cache=0
e6cc62c6
VS
2760
2761# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2762if test "${with_opengl+set}" = set; then
2763 withval="$with_opengl"
e6cc62c6 2764
10f2d63a 2765 if test "$withval" = yes; then
b12915c1 2766 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2767 else
b12915c1 2768 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2769 fi
e6cc62c6 2770
10f2d63a 2771else
e6cc62c6 2772
b12915c1 2773 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
b12915c1 2780 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2781
e6cc62c6 2782fi;
10f2d63a 2783
b12915c1 2784 eval "$ac_cv_use_opengl"
10f2d63a 2785 if test "$no_cache" != 1; then
b12915c1 2786 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2787 fi
2788
b12915c1 2789 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2790 echo "$as_me:$LINENO: result: yes" >&5
2791echo "${ECHO_T}yes" >&6
10f2d63a 2792 else
e6cc62c6
VS
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
10f2d63a 2795 fi
e6cc62c6 2796
10f2d63a 2797
b12915c1
VZ
2798fi
2799
5c6fa7d2 2800
e6cc62c6
VS
2801 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2802echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2803 no_cache=0
e6cc62c6
VS
2804
2805# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2806if test "${with_dmalloc+set}" = set; then
2807 withval="$with_dmalloc"
e6cc62c6 2808
c7a2bf27 2809 if test "$withval" = yes; then
b12915c1 2810 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2811 else
b12915c1 2812 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2813 fi
e6cc62c6 2814
c7a2bf27 2815else
e6cc62c6 2816
b12915c1 2817 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
b12915c1 2824 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2825
e6cc62c6 2826fi;
c7a2bf27 2827
b12915c1 2828 eval "$ac_cv_use_dmalloc"
c7a2bf27 2829 if test "$no_cache" != 1; then
b12915c1 2830 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2831 fi
2832
b12915c1 2833 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2834 echo "$as_me:$LINENO: result: yes" >&5
2835echo "${ECHO_T}yes" >&6
c7a2bf27 2836 else
e6cc62c6
VS
2837 echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
c7a2bf27 2839 fi
c7a2bf27 2840
e6cc62c6
VS
2841
2842 echo "$as_me:$LINENO: checking for --with-regex" >&5
2843echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2844 no_cache=0
e6cc62c6
VS
2845
2846# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2847if test "${with_regex+set}" = set; then
2848 withval="$with_regex"
e6cc62c6 2849
3e44f09d
VZ
2850 if test "$withval" = yes; then
2851 ac_cv_use_regex='wxUSE_REGEX=yes'
2852 elif test "$withval" = no; then
2853 ac_cv_use_regex='wxUSE_REGEX=no'
2854 elif test "$withval" = sys; then
2855 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2856 elif test "$withval" = builtin; then
2857 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2858 else
e6cc62c6
VS
2859 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2860echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2861 { (exit 1); exit 1; }; }
3e44f09d 2862 fi
e6cc62c6 2863
3e44f09d 2864else
e6cc62c6 2865
3e44f09d
VZ
2866 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2874
e6cc62c6 2875fi;
3e44f09d
VZ
2876
2877 eval "$ac_cv_use_regex"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2883 echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6
3e44f09d 2885 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2886 echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6
3e44f09d 2888 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2889 echo "$as_me:$LINENO: result: system version" >&5
2890echo "${ECHO_T}system version" >&6
4f14bcd8 2891 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2892 echo "$as_me:$LINENO: result: builtin version" >&5
2893echo "${ECHO_T}builtin version" >&6
3e44f09d 2894 else
e6cc62c6
VS
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
3e44f09d 2898 fi
3e44f09d 2899
e6cc62c6
VS
2900
2901 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2902echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2903 no_cache=0
e6cc62c6
VS
2904
2905# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2906if test "${with_zlib+set}" = set; then
2907 withval="$with_zlib"
e6cc62c6 2908
10f2d63a 2909 if test "$withval" = yes; then
b12915c1 2910 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2911 elif test "$withval" = no; then
b12915c1 2912 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2913 elif test "$withval" = sys; then
2914 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2915 elif test "$withval" = builtin; then
2916 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2917 else
e6cc62c6
VS
2918 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2919echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2920 { (exit 1); exit 1; }; }
10f2d63a 2921 fi
e6cc62c6 2922
10f2d63a 2923else
e6cc62c6 2924
b12915c1 2925 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
b12915c1 2932 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2933
e6cc62c6 2934fi;
10f2d63a 2935
b12915c1 2936 eval "$ac_cv_use_zlib"
10f2d63a 2937 if test "$no_cache" != 1; then
b12915c1 2938 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2939 fi
2940
b12915c1 2941 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2942 echo "$as_me:$LINENO: result: yes" >&5
2943echo "${ECHO_T}yes" >&6
422107f9 2944 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
422107f9 2947 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2948 echo "$as_me:$LINENO: result: system version" >&5
2949echo "${ECHO_T}system version" >&6
4f14bcd8 2950 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2951 echo "$as_me:$LINENO: result: builtin version" >&5
2952echo "${ECHO_T}builtin version" >&6
422107f9 2953 else
e6cc62c6
VS
2954 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2955echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2956 { (exit 1); exit 1; }; }
10f2d63a 2957 fi
10f2d63a 2958
e6cc62c6
VS
2959
2960 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2961echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2962 no_cache=0
e6cc62c6
VS
2963
2964# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2965if test "${with_odbc+set}" = set; then
2966 withval="$with_odbc"
e6cc62c6 2967
10f2d63a
VZ
2968 if test "$withval" = yes; then
2969 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2970 elif test "$withval" = no; then
10f2d63a 2971 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2972 elif test "$withval" = sys; then
2973 ac_cv_use_odbc='wxUSE_ODBC=sys'
2974 elif test "$withval" = builtin; then
2975 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2976 else
e6cc62c6
VS
2977 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2978echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2979 { (exit 1); exit 1; }; }
10f2d63a 2980 fi
e6cc62c6 2981
10f2d63a 2982else
e6cc62c6 2983
10f2d63a
VZ
2984 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2992
e6cc62c6 2993fi;
10f2d63a
VZ
2994
2995 eval "$ac_cv_use_odbc"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
8647bec6 3003 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
8647bec6 3006 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3007 echo "$as_me:$LINENO: result: system version" >&5
3008echo "${ECHO_T}system version" >&6
8647bec6 3009 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3010 echo "$as_me:$LINENO: result: builtin version" >&5
3011echo "${ECHO_T}builtin version" >&6
8647bec6 3012 else
e6cc62c6
VS
3013 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3014echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3015 { (exit 1); exit 1; }; }
10f2d63a 3016 fi
e6cc62c6 3017
52127426 3018
672abd7a
VS
3019 echo "$as_me:$LINENO: checking for --with-expat" >&5
3020echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3021 no_cache=0
3022
3023# Check whether --with-expat or --without-expat was given.
3024if test "${with_expat+set}" = set; then
3025 withval="$with_expat"
3026
3027 if test "$withval" = yes; then
3028 ac_cv_use_expat='wxUSE_EXPAT=yes'
3029 elif test "$withval" = no; then
3030 ac_cv_use_expat='wxUSE_EXPAT=no'
3031 elif test "$withval" = sys; then
3032 ac_cv_use_expat='wxUSE_EXPAT=sys'
3033 elif test "$withval" = builtin; then
3034 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3035 else
3036 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3037echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3038 { (exit 1); exit 1; }; }
3039 fi
3040
3041else
3042
3043 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3044 if test "x$LINE" != x ; then
3045 eval "DEFAULT_$LINE"
3046 else
3047 no_cache=1
3048 fi
3049
3050 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3051
3052fi;
3053
3054 eval "$ac_cv_use_expat"
3055 if test "$no_cache" != 1; then
3056 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3057 fi
3058
3059 if test "$wxUSE_EXPAT" = yes; then
3060 echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6
3062 elif test "$wxUSE_EXPAT" = no; then
3063 echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
3065 elif test "$wxUSE_EXPAT" = sys; then
3066 echo "$as_me:$LINENO: result: system version" >&5
3067echo "${ECHO_T}system version" >&6
3068 elif test "$wxUSE_EXPAT" = builtin; then
3069 echo "$as_me:$LINENO: result: builtin version" >&5
3070echo "${ECHO_T}builtin version" >&6
3071 else
3072 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3073echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3074 { (exit 1); exit 1; }; }
3075 fi
3076
3077
8284b0c5
MB
3078
3079
5005acfe 3080 enablestring=
e6cc62c6
VS
3081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3082echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3083 no_cache=0
3084 # Check whether --enable-shared or --disable-shared was given.
3085if test "${enable_shared+set}" = set; then
3086 enableval="$enable_shared"
e6cc62c6 3087
10f2d63a
VZ
3088 if test "$enableval" = yes; then
3089 ac_cv_use_shared='wxUSE_SHARED=yes'
3090 else
3091 ac_cv_use_shared='wxUSE_SHARED=no'
3092 fi
e6cc62c6 3093
10f2d63a 3094else
e6cc62c6 3095
10f2d63a
VZ
3096 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3104
e6cc62c6 3105fi;
10f2d63a
VZ
3106
3107 eval "$ac_cv_use_shared"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3113 echo "$as_me:$LINENO: result: yes" >&5
3114echo "${ECHO_T}yes" >&6
10f2d63a 3115 else
e6cc62c6
VS
3116 echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
10f2d63a 3118 fi
e6cc62c6 3119
10f2d63a 3120
5005acfe 3121 enablestring=
e6cc62c6
VS
3122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3123echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3124 no_cache=0
3125 # Check whether --enable-optimise or --disable-optimise was given.
3126if test "${enable_optimise+set}" = set; then
3127 enableval="$enable_optimise"
e6cc62c6 3128
10f2d63a
VZ
3129 if test "$enableval" = yes; then
3130 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3131 else
3132 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3133 fi
e6cc62c6 3134
10f2d63a 3135else
e6cc62c6 3136
10f2d63a
VZ
3137 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3145
e6cc62c6 3146fi;
10f2d63a
VZ
3147
3148 eval "$ac_cv_use_optimise"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
10f2d63a 3156 else
e6cc62c6
VS
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
10f2d63a 3159 fi
e6cc62c6 3160
10f2d63a 3161
5005acfe 3162 enablestring=
e6cc62c6
VS
3163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3164echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3165 no_cache=0
3166 # Check whether --enable-debug or --disable-debug was given.
3167if test "${enable_debug+set}" = set; then
3168 enableval="$enable_debug"
e6cc62c6 3169
10f2d63a
VZ
3170 if test "$enableval" = yes; then
3171 ac_cv_use_debug='wxUSE_DEBUG=yes'
3172 else
3173 ac_cv_use_debug='wxUSE_DEBUG=no'
3174 fi
e6cc62c6 3175
10f2d63a 3176else
e6cc62c6 3177
10f2d63a
VZ
3178 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3179 if test "x$LINE" != x ; then
3180 eval "DEFAULT_$LINE"
3181 else
3182 no_cache=1
3183 fi
3184
3185 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3186
e6cc62c6 3187fi;
10f2d63a
VZ
3188
3189 eval "$ac_cv_use_debug"
3190 if test "$no_cache" != 1; then
3191 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3192 fi
3193
3194 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3195 echo "$as_me:$LINENO: result: yes" >&5
3196echo "${ECHO_T}yes" >&6
10f2d63a 3197 else
e6cc62c6
VS
3198 echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
10f2d63a 3200 fi
e6cc62c6 3201
52127426 3202
df5168c4
MB
3203 enablestring=
3204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3205echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3206 no_cache=0
3207 # Check whether --enable-stl or --disable-stl was given.
3208if test "${enable_stl+set}" = set; then
3209 enableval="$enable_stl"
3210
3211 if test "$enableval" = yes; then
3212 ac_cv_use_stl='wxUSE_STL=yes'
3213 else
3214 ac_cv_use_stl='wxUSE_STL=no'
3215 fi
3216
3217else
3218
3219 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3220 if test "x$LINE" != x ; then
3221 eval "DEFAULT_$LINE"
3222 else
3223 no_cache=1
3224 fi
3225
3226 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3227
3228fi;
3229
3230 eval "$ac_cv_use_stl"
3231 if test "$no_cache" != 1; then
3232 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3233 fi
3234
3235 if test "$wxUSE_STL" = yes; then
3236 echo "$as_me:$LINENO: result: yes" >&5
3237echo "${ECHO_T}yes" >&6
3238 else
3239 echo "$as_me:$LINENO: result: no" >&5
3240echo "${ECHO_T}no" >&6
3241 fi
3242
3243
10f2d63a
VZ
3244if test "$wxUSE_DEBUG" = "yes"; then
3245 DEFAULT_wxUSE_DEBUG_FLAG=yes
3246 DEFAULT_wxUSE_DEBUG_INFO=yes
3247elif test "$wxUSE_DEBUG" = "no"; then
3248 DEFAULT_wxUSE_DEBUG_FLAG=no
3249 DEFAULT_wxUSE_DEBUG_INFO=no
3250fi
3251
8284b0c5 3252
5005acfe 3253 enablestring=
e6cc62c6
VS
3254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3255echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3256 no_cache=0
3257 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3258if test "${enable_debug_flag+set}" = set; then
3259 enableval="$enable_debug_flag"
e6cc62c6 3260
10f2d63a
VZ
3261 if test "$enableval" = yes; then
3262 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3263 else
3264 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3265 fi
e6cc62c6 3266
10f2d63a 3267else
e6cc62c6 3268
10f2d63a
VZ
3269 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3277
e6cc62c6 3278fi;
10f2d63a
VZ
3279
3280 eval "$ac_cv_use_debug_flag"
3281 if test "$no_cache" != 1; then
3282 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3283 fi
3284
3285 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3286 echo "$as_me:$LINENO: result: yes" >&5
3287echo "${ECHO_T}yes" >&6
10f2d63a 3288 else
e6cc62c6
VS
3289 echo "$as_me:$LINENO: result: no" >&5
3290echo "${ECHO_T}no" >&6
10f2d63a 3291 fi
e6cc62c6 3292
10f2d63a 3293
5005acfe 3294 enablestring=
e6cc62c6
VS
3295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3296echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3297 no_cache=0
3298 # Check whether --enable-debug_info or --disable-debug_info was given.
3299if test "${enable_debug_info+set}" = set; then
3300 enableval="$enable_debug_info"
e6cc62c6 3301
10f2d63a
VZ
3302 if test "$enableval" = yes; then
3303 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3304 else
3305 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3306 fi
e6cc62c6 3307
10f2d63a 3308else
e6cc62c6 3309
10f2d63a
VZ
3310 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3311 if test "x$LINE" != x ; then
3312 eval "DEFAULT_$LINE"
3313 else
3314 no_cache=1
3315 fi
3316
3317 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3318
e6cc62c6 3319fi;
10f2d63a
VZ
3320
3321 eval "$ac_cv_use_debug_info"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3327 echo "$as_me:$LINENO: result: yes" >&5
3328echo "${ECHO_T}yes" >&6
10f2d63a 3329 else
e6cc62c6
VS
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
10f2d63a 3332 fi
e6cc62c6 3333
10f2d63a 3334
5005acfe 3335 enablestring=
e6cc62c6
VS
3336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3337echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3338 no_cache=0
3339 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3340if test "${enable_debug_gdb+set}" = set; then
3341 enableval="$enable_debug_gdb"
e6cc62c6 3342
10f2d63a
VZ
3343 if test "$enableval" = yes; then
3344 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3345 else
3346 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3347 fi
e6cc62c6 3348
10f2d63a 3349else
e6cc62c6 3350
10f2d63a
VZ
3351 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3352 if test "x$LINE" != x ; then
3353 eval "DEFAULT_$LINE"
3354 else
3355 no_cache=1
3356 fi
3357
3358 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3359
e6cc62c6 3360fi;
10f2d63a
VZ
3361
3362 eval "$ac_cv_use_debug_gdb"
3363 if test "$no_cache" != 1; then
3364 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3365 fi
3366
3367 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3368 echo "$as_me:$LINENO: result: yes" >&5
3369echo "${ECHO_T}yes" >&6
10f2d63a 3370 else
e6cc62c6
VS
3371 echo "$as_me:$LINENO: result: no" >&5
3372echo "${ECHO_T}no" >&6
10f2d63a 3373 fi
e6cc62c6 3374
10f2d63a 3375
5005acfe 3376 enablestring=
e6cc62c6
VS
3377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3378echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3379 no_cache=0
3380 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3381if test "${enable_debug_cntxt+set}" = set; then
3382 enableval="$enable_debug_cntxt"
e6cc62c6 3383
10f2d63a
VZ
3384 if test "$enableval" = yes; then
3385 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3386 else
3387 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3388 fi
e6cc62c6 3389
10f2d63a 3390else
e6cc62c6 3391
10f2d63a
VZ
3392 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3393 if test "x$LINE" != x ; then
3394 eval "DEFAULT_$LINE"
3395 else
3396 no_cache=1
3397 fi
3398
3399 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3400
e6cc62c6 3401fi;
10f2d63a
VZ
3402
3403 eval "$ac_cv_use_debug_cntxt"
3404 if test "$no_cache" != 1; then
3405 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3406 fi
3407
3408 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3409 echo "$as_me:$LINENO: result: yes" >&5
3410echo "${ECHO_T}yes" >&6
10f2d63a 3411 else
e6cc62c6
VS
3412 echo "$as_me:$LINENO: result: no" >&5
3413echo "${ECHO_T}no" >&6
10f2d63a 3414 fi
e6cc62c6 3415
10f2d63a 3416
5005acfe 3417 enablestring=
e6cc62c6
VS
3418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3419echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3420 no_cache=0
3421 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3422if test "${enable_mem_tracing+set}" = set; then
3423 enableval="$enable_mem_tracing"
e6cc62c6 3424
10f2d63a
VZ
3425 if test "$enableval" = yes; then
3426 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3427 else
3428 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3429 fi
e6cc62c6 3430
10f2d63a 3431else
e6cc62c6 3432
10f2d63a
VZ
3433 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3434 if test "x$LINE" != x ; then
3435 eval "DEFAULT_$LINE"
3436 else
3437 no_cache=1
3438 fi
3439
3440 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3441
e6cc62c6 3442fi;
10f2d63a
VZ
3443
3444 eval "$ac_cv_use_mem_tracing"
3445 if test "$no_cache" != 1; then
3446 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3447 fi
3448
3449 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3450 echo "$as_me:$LINENO: result: yes" >&5
3451echo "${ECHO_T}yes" >&6
10f2d63a 3452 else
e6cc62c6
VS
3453 echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
10f2d63a 3455 fi
e6cc62c6 3456
10f2d63a 3457
5005acfe 3458 enablestring=
e6cc62c6
VS
3459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3460echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3461 no_cache=0
3462 # Check whether --enable-profile or --disable-profile was given.
3463if test "${enable_profile+set}" = set; then
3464 enableval="$enable_profile"
e6cc62c6 3465
10f2d63a
VZ
3466 if test "$enableval" = yes; then
3467 ac_cv_use_profile='wxUSE_PROFILE=yes'
3468 else
3469 ac_cv_use_profile='wxUSE_PROFILE=no'
3470 fi
e6cc62c6 3471
10f2d63a 3472else
e6cc62c6 3473
10f2d63a
VZ
3474 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3475 if test "x$LINE" != x ; then
3476 eval "DEFAULT_$LINE"
3477 else
3478 no_cache=1
3479 fi
3480
3481 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3482
e6cc62c6 3483fi;
10f2d63a
VZ
3484
3485 eval "$ac_cv_use_profile"
3486 if test "$no_cache" != 1; then
3487 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3488 fi
3489
3490 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3491 echo "$as_me:$LINENO: result: yes" >&5
3492echo "${ECHO_T}yes" >&6
10f2d63a 3493 else
e6cc62c6
VS
3494 echo "$as_me:$LINENO: result: no" >&5
3495echo "${ECHO_T}no" >&6
10f2d63a 3496 fi
e6cc62c6 3497
10f2d63a 3498
5005acfe 3499 enablestring=
e6cc62c6
VS
3500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3501echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3502 no_cache=0
3503 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3504if test "${enable_no_rtti+set}" = set; then
3505 enableval="$enable_no_rtti"
e6cc62c6 3506
10f2d63a
VZ
3507 if test "$enableval" = yes; then
3508 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3509 else
3510 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3511 fi
e6cc62c6 3512
10f2d63a 3513else
e6cc62c6 3514
10f2d63a
VZ
3515 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3516 if test "x$LINE" != x ; then
3517 eval "DEFAULT_$LINE"
3518 else
3519 no_cache=1
3520 fi
3521
3522 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3523
e6cc62c6 3524fi;
10f2d63a
VZ
3525
3526 eval "$ac_cv_use_no_rtti"
3527 if test "$no_cache" != 1; then
3528 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3529 fi
3530
3531 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3532 echo "$as_me:$LINENO: result: yes" >&5
3533echo "${ECHO_T}yes" >&6
10f2d63a 3534 else
e6cc62c6
VS
3535 echo "$as_me:$LINENO: result: no" >&5
3536echo "${ECHO_T}no" >&6
10f2d63a 3537 fi
e6cc62c6 3538
10f2d63a 3539
5005acfe 3540 enablestring=
e6cc62c6
VS
3541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3542echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3543 no_cache=0
3544 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3545if test "${enable_no_exceptions+set}" = set; then
3546 enableval="$enable_no_exceptions"
e6cc62c6 3547
10f2d63a
VZ
3548 if test "$enableval" = yes; then
3549 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3550 else
3551 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3552 fi
e6cc62c6 3553
10f2d63a 3554else
e6cc62c6 3555
10f2d63a
VZ
3556 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
3563 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3564
e6cc62c6 3565fi;
10f2d63a
VZ
3566
3567 eval "$ac_cv_use_no_exceptions"
3568 if test "$no_cache" != 1; then
3569 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3570 fi
3571
3572 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3573 echo "$as_me:$LINENO: result: yes" >&5
3574echo "${ECHO_T}yes" >&6
10f2d63a 3575 else
e6cc62c6
VS
3576 echo "$as_me:$LINENO: result: no" >&5
3577echo "${ECHO_T}no" >&6
10f2d63a 3578 fi
e6cc62c6 3579
10f2d63a 3580
5005acfe 3581 enablestring=
e6cc62c6
VS
3582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3583echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3584 no_cache=0
3585 # Check whether --enable-permissive or --disable-permissive was given.
3586if test "${enable_permissive+set}" = set; then
3587 enableval="$enable_permissive"
e6cc62c6 3588
10f2d63a
VZ
3589 if test "$enableval" = yes; then
3590 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3591 else
3592 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3593 fi
e6cc62c6 3594
10f2d63a 3595else
e6cc62c6 3596
10f2d63a
VZ
3597 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3598 if test "x$LINE" != x ; then
3599 eval "DEFAULT_$LINE"
3600 else
3601 no_cache=1
3602 fi
3603
3604 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3605
e6cc62c6 3606fi;
10f2d63a
VZ
3607
3608 eval "$ac_cv_use_permissive"
3609 if test "$no_cache" != 1; then
3610 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3611 fi
3612
3613 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3614 echo "$as_me:$LINENO: result: yes" >&5
3615echo "${ECHO_T}yes" >&6
10f2d63a 3616 else
e6cc62c6
VS
3617 echo "$as_me:$LINENO: result: no" >&5
3618echo "${ECHO_T}no" >&6
10f2d63a 3619 fi
e6cc62c6 3620
10f2d63a 3621
5005acfe 3622 enablestring=
e6cc62c6
VS
3623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3624echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3625 no_cache=0
3626 # Check whether --enable-no_deps or --disable-no_deps was given.
3627if test "${enable_no_deps+set}" = set; then
3628 enableval="$enable_no_deps"
e6cc62c6 3629
10f2d63a
VZ
3630 if test "$enableval" = yes; then
3631 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3632 else
3633 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3634 fi
e6cc62c6 3635
10f2d63a 3636else
e6cc62c6 3637
10f2d63a
VZ
3638 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3639 if test "x$LINE" != x ; then
3640 eval "DEFAULT_$LINE"
3641 else
3642 no_cache=1
3643 fi
3644
3645 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3646
e6cc62c6 3647fi;
10f2d63a
VZ
3648
3649 eval "$ac_cv_use_no_deps"
3650 if test "$no_cache" != 1; then
3651 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3652 fi
3653
3654 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3655 echo "$as_me:$LINENO: result: yes" >&5
3656echo "${ECHO_T}yes" >&6
10f2d63a 3657 else
e6cc62c6
VS
3658 echo "$as_me:$LINENO: result: no" >&5
3659echo "${ECHO_T}no" >&6
10f2d63a 3660 fi
e6cc62c6 3661
52127426 3662
8284b0c5 3663
5005acfe 3664 enablestring=
e6cc62c6
VS
3665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3666echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3667 no_cache=0
3668 # Check whether --enable-compat20 or --disable-compat20 was given.
3669if test "${enable_compat20+set}" = set; then
3670 enableval="$enable_compat20"
e6cc62c6 3671
54276ccf
VZ
3672 if test "$enableval" = yes; then
3673 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3674 else
3675 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3676 fi
e6cc62c6 3677
54276ccf 3678else
e6cc62c6 3679
54276ccf
VZ
3680 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3688
e6cc62c6 3689fi;
54276ccf
VZ
3690
3691 eval "$ac_cv_use_compat20"
3692 if test "$no_cache" != 1; then
3693 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3694 fi
3695
3696 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3697 echo "$as_me:$LINENO: result: yes" >&5
3698echo "${ECHO_T}yes" >&6
54276ccf 3699 else
e6cc62c6
VS
3700 echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6
54276ccf 3702 fi
e6cc62c6 3703
54276ccf 3704
65d8ef1e 3705 enablestring=
e6cc62c6
VS
3706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3707echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3708 no_cache=0
3709 # Check whether --enable-compat22 or --disable-compat22 was given.
3710if test "${enable_compat22+set}" = set; then
3711 enableval="$enable_compat22"
e6cc62c6 3712
54276ccf
VZ
3713 if test "$enableval" = yes; then
3714 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3715 else
3716 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3717 fi
e6cc62c6 3718
54276ccf 3719else
e6cc62c6 3720
54276ccf
VZ
3721 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3729
e6cc62c6 3730fi;
54276ccf
VZ
3731
3732 eval "$ac_cv_use_compat22"
3733 if test "$no_cache" != 1; then
3734 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3735 fi
3736
3737 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3738 echo "$as_me:$LINENO: result: yes" >&5
3739echo "${ECHO_T}yes" >&6
54276ccf 3740 else
e6cc62c6
VS
3741 echo "$as_me:$LINENO: result: no" >&5
3742echo "${ECHO_T}no" >&6
54276ccf 3743 fi
e6cc62c6 3744
54276ccf 3745
65d8ef1e 3746 enablestring=disable
e6cc62c6
VS
3747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3748echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3749 no_cache=0
3750 # Check whether --enable-compat24 or --disable-compat24 was given.
3751if test "${enable_compat24+set}" = set; then
3752 enableval="$enable_compat24"
e6cc62c6 3753
65d8ef1e
VS
3754 if test "$enableval" = yes; then
3755 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3756 else
3757 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3758 fi
e6cc62c6 3759
65d8ef1e 3760else
e6cc62c6 3761
65d8ef1e
VS
3762 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3770
e6cc62c6 3771fi;
65d8ef1e
VS
3772
3773 eval "$ac_cv_use_compat24"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3779 echo "$as_me:$LINENO: result: yes" >&5
3780echo "${ECHO_T}yes" >&6
65d8ef1e 3781 else
e6cc62c6
VS
3782 echo "$as_me:$LINENO: result: no" >&5
3783echo "${ECHO_T}no" >&6
65d8ef1e 3784 fi
e6cc62c6 3785
65d8ef1e 3786
3bd8fb5f
RD
3787# Check whether --enable-rpath or --disable-rpath was given.
3788if test "${enable_rpath+set}" = set; then
3789 enableval="$enable_rpath"
3790 wxRPATH_DIR="$enableval"
e6cc62c6 3791fi;
3bd8fb5f
RD
3792
3793if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3794 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3795fi
3796
8284b0c5
MB
3797
3798
3799
5005acfe 3800 enablestring=
e6cc62c6
VS
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3803 no_cache=0
3804 # Check whether --enable-intl or --disable-intl was given.
3805if test "${enable_intl+set}" = set; then
3806 enableval="$enable_intl"
e6cc62c6 3807
10f2d63a
VZ
3808 if test "$enableval" = yes; then
3809 ac_cv_use_intl='wxUSE_INTL=yes'
3810 else
3811 ac_cv_use_intl='wxUSE_INTL=no'
3812 fi
e6cc62c6 3813
10f2d63a 3814else
e6cc62c6 3815
10f2d63a
VZ
3816 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3824
e6cc62c6 3825fi;
10f2d63a
VZ
3826
3827 eval "$ac_cv_use_intl"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
10f2d63a 3835 else
e6cc62c6
VS
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
10f2d63a 3838 fi
e6cc62c6 3839
10f2d63a 3840
5005acfe 3841 enablestring=
e6cc62c6
VS
3842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3844 no_cache=0
3845 # Check whether --enable-config or --disable-config was given.
3846if test "${enable_config+set}" = set; then
3847 enableval="$enable_config"
e6cc62c6 3848
10f2d63a
VZ
3849 if test "$enableval" = yes; then
3850 ac_cv_use_config='wxUSE_CONFIG=yes'
3851 else
3852 ac_cv_use_config='wxUSE_CONFIG=no'
3853 fi
e6cc62c6 3854
10f2d63a 3855else
e6cc62c6 3856
10f2d63a
VZ
3857 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3865
e6cc62c6 3866fi;
10f2d63a
VZ
3867
3868 eval "$ac_cv_use_config"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3874 echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6
10f2d63a 3876 else
e6cc62c6
VS
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
10f2d63a 3879 fi
e6cc62c6 3880
52127426 3881
8284b0c5 3882
5005acfe 3883 enablestring=
e6cc62c6
VS
3884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3885echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3886 no_cache=0
3887 # Check whether --enable-protocols or --disable-protocols was given.
3888if test "${enable_protocols+set}" = set; then
3889 enableval="$enable_protocols"
e6cc62c6 3890
a1622950
VZ
3891 if test "$enableval" = yes; then
3892 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3893 else
3894 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3895 fi
e6cc62c6 3896
a1622950 3897else
e6cc62c6 3898
a1622950
VZ
3899 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3900 if test "x$LINE" != x ; then
3901 eval "DEFAULT_$LINE"
3902 else
3903 no_cache=1
3904 fi
3905
3906 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3907
e6cc62c6 3908fi;
a1622950
VZ
3909
3910 eval "$ac_cv_use_protocols"
3911 if test "$no_cache" != 1; then
3912 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3913 fi
3914
3915 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3916 echo "$as_me:$LINENO: result: yes" >&5
3917echo "${ECHO_T}yes" >&6
a1622950 3918 else
e6cc62c6
VS
3919 echo "$as_me:$LINENO: result: no" >&5
3920echo "${ECHO_T}no" >&6
a1622950 3921 fi
e6cc62c6 3922
a1622950 3923
5005acfe 3924 enablestring=
e6cc62c6
VS
3925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3926echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3927 no_cache=0
3928 # Check whether --enable-ftp or --disable-ftp was given.
3929if test "${enable_ftp+set}" = set; then
3930 enableval="$enable_ftp"
e6cc62c6 3931
a1622950
VZ
3932 if test "$enableval" = yes; then
3933 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3934 else
3935 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3936 fi
e6cc62c6 3937
a1622950 3938else
e6cc62c6 3939
a1622950
VZ
3940 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3941 if test "x$LINE" != x ; then
3942 eval "DEFAULT_$LINE"
3943 else
3944 no_cache=1
3945 fi
3946
3947 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3948
e6cc62c6 3949fi;
a1622950
VZ
3950
3951 eval "$ac_cv_use_ftp"
3952 if test "$no_cache" != 1; then
3953 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3954 fi
3955
3956 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3957 echo "$as_me:$LINENO: result: yes" >&5
3958echo "${ECHO_T}yes" >&6
a1622950 3959 else
e6cc62c6
VS
3960 echo "$as_me:$LINENO: result: no" >&5
3961echo "${ECHO_T}no" >&6
a1622950 3962 fi
e6cc62c6 3963
a1622950 3964
5005acfe 3965 enablestring=
e6cc62c6
VS
3966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3967echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3968 no_cache=0
3969 # Check whether --enable-http or --disable-http was given.
3970if test "${enable_http+set}" = set; then
3971 enableval="$enable_http"
e6cc62c6 3972
a1622950
VZ
3973 if test "$enableval" = yes; then
3974 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3975 else
3976 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3977 fi
e6cc62c6 3978
a1622950 3979else
e6cc62c6 3980
a1622950
VZ
3981 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3982 if test "x$LINE" != x ; then
3983 eval "DEFAULT_$LINE"
3984 else
3985 no_cache=1
3986 fi
3987
3988 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3989
e6cc62c6 3990fi;
a1622950
VZ
3991
3992 eval "$ac_cv_use_http"
3993 if test "$no_cache" != 1; then
3994 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3995 fi
3996
3997 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3998 echo "$as_me:$LINENO: result: yes" >&5
3999echo "${ECHO_T}yes" >&6
a1622950 4000 else
e6cc62c6
VS
4001 echo "$as_me:$LINENO: result: no" >&5
4002echo "${ECHO_T}no" >&6
a1622950 4003 fi
e6cc62c6 4004
a1622950 4005
5005acfe 4006 enablestring=
e6cc62c6
VS
4007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4008echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4009 no_cache=0
4010 # Check whether --enable-fileproto or --disable-fileproto was given.
4011if test "${enable_fileproto+set}" = set; then
4012 enableval="$enable_fileproto"
e6cc62c6 4013
a1622950
VZ
4014 if test "$enableval" = yes; then
4015 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4016 else
4017 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4018 fi
e6cc62c6 4019
a1622950 4020else
e6cc62c6 4021
a1622950
VZ
4022 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4023 if test "x$LINE" != x ; then
4024 eval "DEFAULT_$LINE"
4025 else
4026 no_cache=1
4027 fi
4028
4029 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4030
e6cc62c6 4031fi;
a1622950
VZ
4032
4033 eval "$ac_cv_use_fileproto"
4034 if test "$no_cache" != 1; then
4035 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4036 fi
4037
4038 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4039 echo "$as_me:$LINENO: result: yes" >&5
4040echo "${ECHO_T}yes" >&6
a1622950 4041 else
e6cc62c6
VS
4042 echo "$as_me:$LINENO: result: no" >&5
4043echo "${ECHO_T}no" >&6
a1622950 4044 fi
e6cc62c6 4045
a1622950 4046
5005acfe 4047 enablestring=
e6cc62c6
VS
4048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4049echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4050 no_cache=0
4051 # Check whether --enable-sockets or --disable-sockets was given.
4052if test "${enable_sockets+set}" = set; then
4053 enableval="$enable_sockets"
e6cc62c6 4054
10f2d63a
VZ
4055 if test "$enableval" = yes; then
4056 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4057 else
4058 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4059 fi
e6cc62c6 4060
10f2d63a 4061else
e6cc62c6 4062
10f2d63a
VZ
4063 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4064 if test "x$LINE" != x ; then
4065 eval "DEFAULT_$LINE"
4066 else
4067 no_cache=1
4068 fi
4069
4070 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4071
e6cc62c6 4072fi;
10f2d63a
VZ
4073
4074 eval "$ac_cv_use_sockets"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4080 echo "$as_me:$LINENO: result: yes" >&5
4081echo "${ECHO_T}yes" >&6
10f2d63a 4082 else
e6cc62c6
VS
4083 echo "$as_me:$LINENO: result: no" >&5
4084echo "${ECHO_T}no" >&6
10f2d63a 4085 fi
e6cc62c6 4086
8284b0c5 4087
5005acfe 4088 enablestring=
e6cc62c6
VS
4089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4090echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4091 no_cache=0
4092 # Check whether --enable-ole or --disable-ole was given.
4093if test "${enable_ole+set}" = set; then
4094 enableval="$enable_ole"
e6cc62c6 4095
3bce6687
JS
4096 if test "$enableval" = yes; then
4097 ac_cv_use_ole='wxUSE_OLE=yes'
4098 else
4099 ac_cv_use_ole='wxUSE_OLE=no'
4100 fi
e6cc62c6 4101
3bce6687 4102else
e6cc62c6 4103
3bce6687
JS
4104 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4112
e6cc62c6 4113fi;
3bce6687
JS
4114
4115 eval "$ac_cv_use_ole"
4116 if test "$no_cache" != 1; then
4117 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4118 fi
4119
4120 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4121 echo "$as_me:$LINENO: result: yes" >&5
4122echo "${ECHO_T}yes" >&6
3bce6687 4123 else
e6cc62c6
VS
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
3bce6687 4126 fi
e6cc62c6 4127
3bce6687 4128
5005acfe 4129 enablestring=
e6cc62c6
VS
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4132 no_cache=0
4133 # Check whether --enable-dataobj or --disable-dataobj was given.
4134if test "${enable_dataobj+set}" = set; then
4135 enableval="$enable_dataobj"
e6cc62c6 4136
3bce6687
JS
4137 if test "$enableval" = yes; then
4138 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4139 else
4140 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4141 fi
e6cc62c6 4142
3bce6687 4143else
e6cc62c6 4144
3bce6687
JS
4145 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
4152 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4153
e6cc62c6 4154fi;
3bce6687
JS
4155
4156 eval "$ac_cv_use_dataobj"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
3bce6687 4164 else
e6cc62c6
VS
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
3bce6687 4167 fi
e6cc62c6 4168
3bce6687 4169
52127426 4170
5005acfe 4171 enablestring=
e6cc62c6
VS
4172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4173echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4174 no_cache=0
eb4efbdc
VZ
4175 # Check whether --enable-ipc or --disable-ipc was given.
4176if test "${enable_ipc+set}" = set; then
4177 enableval="$enable_ipc"
e6cc62c6 4178
10f2d63a 4179 if test "$enableval" = yes; then
eb4efbdc 4180 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4181 else
eb4efbdc 4182 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4183 fi
e6cc62c6 4184
10f2d63a 4185else
e6cc62c6 4186
eb4efbdc 4187 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
eb4efbdc 4194 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4195
e6cc62c6 4196fi;
10f2d63a 4197
eb4efbdc 4198 eval "$ac_cv_use_ipc"
10f2d63a 4199 if test "$no_cache" != 1; then
eb4efbdc 4200 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4201 fi
4202
eb4efbdc 4203 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4204 echo "$as_me:$LINENO: result: yes" >&5
4205echo "${ECHO_T}yes" >&6
10f2d63a 4206 else
e6cc62c6
VS
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
10f2d63a 4209 fi
e6cc62c6 4210
52127426 4211
8284b0c5 4212
5005acfe 4213 enablestring=
e6cc62c6
VS
4214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4215echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4216 no_cache=0
4217 # Check whether --enable-cmdline or --disable-cmdline was given.
4218if test "${enable_cmdline+set}" = set; then
4219 enableval="$enable_cmdline"
e6cc62c6 4220
1e6feb95
VZ
4221 if test "$enableval" = yes; then
4222 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4223 else
4224 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4225 fi
e6cc62c6 4226
1e6feb95 4227else
e6cc62c6 4228
1e6feb95
VZ
4229 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4230 if test "x$LINE" != x ; then
4231 eval "DEFAULT_$LINE"
4232 else
4233 no_cache=1
4234 fi
4235
4236 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4237
e6cc62c6 4238fi;
1e6feb95
VZ
4239
4240 eval "$ac_cv_use_cmdline"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4246 echo "$as_me:$LINENO: result: yes" >&5
4247echo "${ECHO_T}yes" >&6
1e6feb95 4248 else
e6cc62c6
VS
4249 echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6
1e6feb95 4251 fi
e6cc62c6 4252
1e6feb95 4253
5005acfe 4254 enablestring=
e6cc62c6
VS
4255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4256echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4257 no_cache=0
4258 # Check whether --enable-datetime or --disable-datetime was given.
4259if test "${enable_datetime+set}" = set; then
4260 enableval="$enable_datetime"
e6cc62c6 4261
1e6feb95
VZ
4262 if test "$enableval" = yes; then
4263 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4264 else
4265 ac_cv_use_datetime='wxUSE_DATETIME=no'
4266 fi
e6cc62c6 4267
1e6feb95 4268else
e6cc62c6 4269
1e6feb95
VZ
4270 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4278
e6cc62c6 4279fi;
1e6feb95
VZ
4280
4281 eval "$ac_cv_use_datetime"
4282 if test "$no_cache" != 1; then
4283 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4284 fi
4285
4286 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4287 echo "$as_me:$LINENO: result: yes" >&5
4288echo "${ECHO_T}yes" >&6
1e6feb95 4289 else
e6cc62c6
VS
4290 echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
1e6feb95 4292 fi
e6cc62c6 4293
1e6feb95 4294
5005acfe 4295 enablestring=
e6cc62c6
VS
4296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4297echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4298 no_cache=0
4299 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4300if test "${enable_stopwatch+set}" = set; then
4301 enableval="$enable_stopwatch"
e6cc62c6 4302
1e6feb95
VZ
4303 if test "$enableval" = yes; then
4304 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4305 else
4306 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4307 fi
e6cc62c6 4308
1e6feb95 4309else
e6cc62c6 4310
1e6feb95
VZ
4311 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4319
e6cc62c6 4320fi;
1e6feb95
VZ
4321
4322 eval "$ac_cv_use_stopwatch"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4328 echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
1e6feb95 4330 else
e6cc62c6
VS
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
1e6feb95 4333 fi
e6cc62c6 4334
1e6feb95 4335
5005acfe 4336 enablestring=
e6cc62c6
VS
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4339 no_cache=0
eb4efbdc
VZ
4340 # Check whether --enable-dialupman or --disable-dialupman was given.
4341if test "${enable_dialupman+set}" = set; then
4342 enableval="$enable_dialupman"
e6cc62c6 4343
10f2d63a 4344 if test "$enableval" = yes; then
eb4efbdc 4345 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4346 else
eb4efbdc 4347 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4348 fi
e6cc62c6 4349
10f2d63a 4350else
e6cc62c6 4351
eb4efbdc 4352 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
eb4efbdc 4359 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4360
e6cc62c6 4361fi;
10f2d63a 4362
eb4efbdc 4363 eval "$ac_cv_use_dialupman"
10f2d63a 4364 if test "$no_cache" != 1; then
eb4efbdc 4365 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4366 fi
4367
eb4efbdc 4368 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
10f2d63a 4371 else
e6cc62c6
VS
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
10f2d63a 4374 fi
e6cc62c6 4375
10f2d63a 4376
5005acfe 4377 enablestring=
e6cc62c6
VS
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4380 no_cache=0
4381 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4382if test "${enable_apple_ieee+set}" = set; then
4383 enableval="$enable_apple_ieee"
e6cc62c6 4384
10f2d63a
VZ
4385 if test "$enableval" = yes; then
4386 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4387 else
4388 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4389 fi
e6cc62c6 4390
10f2d63a 4391else
e6cc62c6 4392
10f2d63a
VZ
4393 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4401
e6cc62c6 4402fi;
10f2d63a
VZ
4403
4404 eval "$ac_cv_use_apple_ieee"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
10f2d63a 4412 else
e6cc62c6
VS
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
10f2d63a 4415 fi
e6cc62c6 4416
10f2d63a 4417
5005acfe 4418 enablestring=
e6cc62c6
VS
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4421 no_cache=0
1e6feb95
VZ
4422 # Check whether --enable-timer or --disable-timer was given.
4423if test "${enable_timer+set}" = set; then
4424 enableval="$enable_timer"
e6cc62c6 4425
10f2d63a 4426 if test "$enableval" = yes; then
1e6feb95 4427 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4428 else
1e6feb95 4429 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4430 fi
e6cc62c6 4431
10f2d63a 4432else
e6cc62c6 4433
1e6feb95 4434 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
1e6feb95 4441 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4442
e6cc62c6 4443fi;
10f2d63a 4444
1e6feb95 4445 eval "$ac_cv_use_timer"
10f2d63a 4446 if test "$no_cache" != 1; then
1e6feb95 4447 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4448 fi
4449
1e6feb95 4450 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4451 echo "$as_me:$LINENO: result: yes" >&5
4452echo "${ECHO_T}yes" >&6
10f2d63a 4453 else
e6cc62c6
VS
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
10f2d63a 4456 fi
e6cc62c6 4457
10f2d63a 4458
5005acfe 4459 enablestring=
e6cc62c6
VS
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4461echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4462 no_cache=0
4463 # Check whether --enable-wave or --disable-wave was given.
4464if test "${enable_wave+set}" = set; then
4465 enableval="$enable_wave"
e6cc62c6 4466
10f2d63a
VZ
4467 if test "$enableval" = yes; then
4468 ac_cv_use_wave='wxUSE_WAVE=yes'
4469 else
4470 ac_cv_use_wave='wxUSE_WAVE=no'
4471 fi
e6cc62c6 4472
10f2d63a 4473else
e6cc62c6 4474
10f2d63a
VZ
4475 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4483
e6cc62c6 4484fi;
10f2d63a
VZ
4485
4486 eval "$ac_cv_use_wave"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4492 echo "$as_me:$LINENO: result: yes" >&5
4493echo "${ECHO_T}yes" >&6
10f2d63a 4494 else
e6cc62c6
VS
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
10f2d63a 4497 fi
e6cc62c6 4498
10f2d63a 4499
5005acfe 4500 enablestring=
e6cc62c6
VS
4501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4502echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4503 no_cache=0
4504 # Check whether --enable-fraction or --disable-fraction was given.
4505if test "${enable_fraction+set}" = set; then
4506 enableval="$enable_fraction"
e6cc62c6 4507
10f2d63a
VZ
4508 if test "$enableval" = yes; then
4509 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4510 else
4511 ac_cv_use_fraction='wxUSE_FRACTION=no'
4512 fi
e6cc62c6 4513
10f2d63a 4514else
e6cc62c6 4515
10f2d63a
VZ
4516 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4524
e6cc62c6 4525fi;
10f2d63a
VZ
4526
4527 eval "$ac_cv_use_fraction"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4533 echo "$as_me:$LINENO: result: yes" >&5
4534echo "${ECHO_T}yes" >&6
10f2d63a 4535 else
e6cc62c6
VS
4536 echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6
10f2d63a 4538 fi
e6cc62c6 4539
10f2d63a 4540
5005acfe 4541 enablestring=
e6cc62c6
VS
4542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4543echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4544 no_cache=0
4545 # Check whether --enable-dynlib or --disable-dynlib was given.
4546if test "${enable_dynlib+set}" = set; then
4547 enableval="$enable_dynlib"
e6cc62c6 4548
10f2d63a
VZ
4549 if test "$enableval" = yes; then
4550 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4551 else
4552 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4553 fi
e6cc62c6 4554
10f2d63a 4555else
e6cc62c6 4556
10f2d63a
VZ
4557 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4565
e6cc62c6 4566fi;
10f2d63a
VZ
4567
4568 eval "$ac_cv_use_dynlib"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4574 echo "$as_me:$LINENO: result: yes" >&5
4575echo "${ECHO_T}yes" >&6
10f2d63a 4576 else
e6cc62c6
VS
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
10f2d63a 4579 fi
e6cc62c6 4580
10f2d63a 4581
5005acfe 4582 enablestring=
e6cc62c6
VS
4583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4584echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4585 no_cache=0
4586 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4587if test "${enable_dynamicloader+set}" = set; then
4588 enableval="$enable_dynamicloader"
e6cc62c6 4589
0b9ab0bd
RL
4590 if test "$enableval" = yes; then
4591 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4592 else
4593 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4594 fi
e6cc62c6 4595
0b9ab0bd 4596else
e6cc62c6 4597
0b9ab0bd
RL
4598 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4599 if test "x$LINE" != x ; then
4600 eval "DEFAULT_$LINE"
4601 else
4602 no_cache=1
4603 fi
4604
4605 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4606
e6cc62c6 4607fi;
0b9ab0bd
RL
4608
4609 eval "$ac_cv_use_dynamicloader"
4610 if test "$no_cache" != 1; then
4611 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4612 fi
4613
4614 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4615 echo "$as_me:$LINENO: result: yes" >&5
4616echo "${ECHO_T}yes" >&6
0b9ab0bd 4617 else
e6cc62c6
VS
4618 echo "$as_me:$LINENO: result: no" >&5
4619echo "${ECHO_T}no" >&6
0b9ab0bd 4620 fi
e6cc62c6 4621
0b9ab0bd 4622
5005acfe 4623 enablestring=
e6cc62c6
VS
4624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4625echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4626 no_cache=0
4627 # Check whether --enable-longlong or --disable-longlong was given.
4628if test "${enable_longlong+set}" = set; then
4629 enableval="$enable_longlong"
e6cc62c6 4630
10f2d63a
VZ
4631 if test "$enableval" = yes; then
4632 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4633 else
4634 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4635 fi
e6cc62c6 4636
10f2d63a 4637else
e6cc62c6 4638
10f2d63a
VZ
4639 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4640 if test "x$LINE" != x ; then
4641 eval "DEFAULT_$LINE"
4642 else
4643 no_cache=1
4644 fi
4645
4646 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4647
e6cc62c6 4648fi;
10f2d63a
VZ
4649
4650 eval "$ac_cv_use_longlong"
4651 if test "$no_cache" != 1; then
4652 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4653 fi
4654
4655 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4656 echo "$as_me:$LINENO: result: yes" >&5
4657echo "${ECHO_T}yes" >&6
10f2d63a 4658 else
e6cc62c6
VS
4659 echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6
10f2d63a 4661 fi
e6cc62c6 4662
10f2d63a 4663
5005acfe 4664 enablestring=
e6cc62c6
VS
4665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4666echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4667 no_cache=0
4668 # Check whether --enable-geometry or --disable-geometry was given.
4669if test "${enable_geometry+set}" = set; then
4670 enableval="$enable_geometry"
e6cc62c6 4671
e8f65ba6
RR
4672 if test "$enableval" = yes; then
4673 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4674 else
4675 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4676 fi
e6cc62c6 4677
e8f65ba6 4678else
e6cc62c6 4679
e8f65ba6
RR
4680 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4681 if test "x$LINE" != x ; then
4682 eval "DEFAULT_$LINE"
4683 else
4684 no_cache=1
4685 fi
4686
4687 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4688
e6cc62c6 4689fi;
e8f65ba6
RR
4690
4691 eval "$ac_cv_use_geometry"
4692 if test "$no_cache" != 1; then
4693 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4694 fi
4695
4696 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4697 echo "$as_me:$LINENO: result: yes" >&5
4698echo "${ECHO_T}yes" >&6
e8f65ba6 4699 else
e6cc62c6
VS
4700 echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6
e8f65ba6 4702 fi
e6cc62c6 4703
e8f65ba6 4704
5005acfe 4705 enablestring=
e6cc62c6
VS
4706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4707echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4708 no_cache=0
4709 # Check whether --enable-log or --disable-log was given.
4710if test "${enable_log+set}" = set; then
4711 enableval="$enable_log"
e6cc62c6 4712
10f2d63a
VZ
4713 if test "$enableval" = yes; then
4714 ac_cv_use_log='wxUSE_LOG=yes'
4715 else
4716 ac_cv_use_log='wxUSE_LOG=no'
4717 fi
e6cc62c6 4718
10f2d63a 4719else
e6cc62c6 4720
10f2d63a
VZ
4721 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4722 if test "x$LINE" != x ; then
4723 eval "DEFAULT_$LINE"
4724 else
4725 no_cache=1
4726 fi
4727
4728 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4729
e6cc62c6 4730fi;
10f2d63a
VZ
4731
4732 eval "$ac_cv_use_log"
4733 if test "$no_cache" != 1; then
4734 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4735 fi
4736
4737 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4738 echo "$as_me:$LINENO: result: yes" >&5
4739echo "${ECHO_T}yes" >&6
10f2d63a 4740 else
e6cc62c6
VS
4741 echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6
10f2d63a 4743 fi
e6cc62c6 4744
10f2d63a 4745
5005acfe 4746 enablestring=
e6cc62c6
VS
4747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4748echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4749 no_cache=0
4750 # Check whether --enable-streams or --disable-streams was given.
4751if test "${enable_streams+set}" = set; then
4752 enableval="$enable_streams"
e6cc62c6 4753
10f2d63a
VZ
4754 if test "$enableval" = yes; then
4755 ac_cv_use_streams='wxUSE_STREAMS=yes'
4756 else
4757 ac_cv_use_streams='wxUSE_STREAMS=no'
4758 fi
e6cc62c6 4759
10f2d63a 4760else
e6cc62c6 4761
10f2d63a
VZ
4762 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4763 if test "x$LINE" != x ; then
4764 eval "DEFAULT_$LINE"
4765 else
4766 no_cache=1
4767 fi
4768
4769 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4770
e6cc62c6 4771fi;
10f2d63a
VZ
4772
4773 eval "$ac_cv_use_streams"
4774 if test "$no_cache" != 1; then
4775 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4776 fi
4777
4778 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4779 echo "$as_me:$LINENO: result: yes" >&5
4780echo "${ECHO_T}yes" >&6
10f2d63a 4781 else
e6cc62c6
VS
4782 echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
10f2d63a 4784 fi
e6cc62c6 4785
10f2d63a 4786
5005acfe 4787 enablestring=
e6cc62c6
VS
4788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4789echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4790 no_cache=0
4791 # Check whether --enable-file or --disable-file was given.
4792if test "${enable_file+set}" = set; then
4793 enableval="$enable_file"
e6cc62c6 4794
10f2d63a
VZ
4795 if test "$enableval" = yes; then
4796 ac_cv_use_file='wxUSE_FILE=yes'
4797 else
4798 ac_cv_use_file='wxUSE_FILE=no'
4799 fi
e6cc62c6 4800
10f2d63a 4801else
e6cc62c6 4802
10f2d63a
VZ
4803 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4811
e6cc62c6 4812fi;
10f2d63a
VZ
4813
4814 eval "$ac_cv_use_file"
4815 if test "$no_cache" != 1; then
4816 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4817 fi
4818
4819 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4820 echo "$as_me:$LINENO: result: yes" >&5
4821echo "${ECHO_T}yes" >&6
10f2d63a 4822 else
e6cc62c6
VS
4823 echo "$as_me:$LINENO: result: no" >&5
4824echo "${ECHO_T}no" >&6
10f2d63a 4825 fi
e6cc62c6 4826
10f2d63a 4827
5005acfe 4828 enablestring=
e6cc62c6
VS
4829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4830echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4831 no_cache=0
1e6feb95
VZ
4832 # Check whether --enable-ffile or --disable-ffile was given.
4833if test "${enable_ffile+set}" = set; then
4834 enableval="$enable_ffile"
e6cc62c6 4835
10f2d63a 4836 if test "$enableval" = yes; then
1e6feb95 4837 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4838 else
1e6feb95 4839 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4840 fi
e6cc62c6 4841
10f2d63a 4842else
e6cc62c6 4843
1e6feb95 4844 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4845 if test "x$LINE" != x ; then
4846 eval "DEFAULT_$LINE"
4847 else
4848 no_cache=1
4849 fi
4850
1e6feb95 4851 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4852
e6cc62c6 4853fi;
10f2d63a 4854
1e6feb95 4855 eval "$ac_cv_use_ffile"
10f2d63a 4856 if test "$no_cache" != 1; then
1e6feb95 4857 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4858 fi
4859
1e6feb95 4860 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4861 echo "$as_me:$LINENO: result: yes" >&5
4862echo "${ECHO_T}yes" >&6
10f2d63a 4863 else
e6cc62c6
VS
4864 echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6
10f2d63a 4866 fi
e6cc62c6 4867
10f2d63a 4868
5005acfe 4869 enablestring=
e6cc62c6
VS
4870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4871echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4872 no_cache=0
4873 # Check whether --enable-textbuf or --disable-textbuf was given.
4874if test "${enable_textbuf+set}" = set; then
4875 enableval="$enable_textbuf"
e6cc62c6 4876
a3a584a7
VZ
4877 if test "$enableval" = yes; then
4878 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4879 else
4880 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4881 fi
e6cc62c6 4882
a3a584a7 4883else
e6cc62c6 4884
a3a584a7
VZ
4885 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4886 if test "x$LINE" != x ; then
4887 eval "DEFAULT_$LINE"
4888 else
4889 no_cache=1
4890 fi
4891
4892 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4893
e6cc62c6 4894fi;
a3a584a7
VZ
4895
4896 eval "$ac_cv_use_textbuf"
4897 if test "$no_cache" != 1; then
4898 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4899 fi
4900
4901 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4902 echo "$as_me:$LINENO: result: yes" >&5
4903echo "${ECHO_T}yes" >&6
a3a584a7 4904 else
e6cc62c6
VS
4905 echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6
a3a584a7 4907 fi
e6cc62c6 4908
a3a584a7 4909
5005acfe 4910 enablestring=
e6cc62c6
VS
4911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4912echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4913 no_cache=0
1e6feb95
VZ
4914 # Check whether --enable-textfile or --disable-textfile was given.
4915if test "${enable_textfile+set}" = set; then
4916 enableval="$enable_textfile"
e6cc62c6 4917
10f2d63a 4918 if test "$enableval" = yes; then
1e6feb95 4919 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4920 else
1e6feb95 4921 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4922 fi
e6cc62c6 4923
10f2d63a 4924else
e6cc62c6 4925
1e6feb95 4926 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
1e6feb95 4933 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4934
e6cc62c6 4935fi;
10f2d63a 4936
1e6feb95 4937 eval "$ac_cv_use_textfile"
10f2d63a 4938 if test "$no_cache" != 1; then
1e6feb95 4939 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4940 fi
4941
1e6feb95 4942 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4943 echo "$as_me:$LINENO: result: yes" >&5
4944echo "${ECHO_T}yes" >&6
10f2d63a 4945 else
e6cc62c6
VS
4946 echo "$as_me:$LINENO: result: no" >&5
4947echo "${ECHO_T}no" >&6
10f2d63a 4948 fi
e6cc62c6 4949
10f2d63a 4950
5005acfe 4951 enablestring=
e6cc62c6
VS
4952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4953echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4954 no_cache=0
1e6feb95
VZ
4955 # Check whether --enable-fontmap or --disable-fontmap was given.
4956if test "${enable_fontmap+set}" = set; then
4957 enableval="$enable_fontmap"
e6cc62c6 4958
10f2d63a 4959 if test "$enableval" = yes; then
1e6feb95 4960 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4961 else
1e6feb95 4962 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4963 fi
e6cc62c6 4964
10f2d63a 4965else
e6cc62c6 4966
1e6feb95 4967 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4968 if test "x$LINE" != x ; then
4969 eval "DEFAULT_$LINE"
4970 else
4971 no_cache=1
4972 fi
4973
1e6feb95 4974 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4975
e6cc62c6 4976fi;
10f2d63a 4977
1e6feb95 4978 eval "$ac_cv_use_fontmap"
10f2d63a 4979 if test "$no_cache" != 1; then
1e6feb95 4980 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4981 fi
4982
1e6feb95 4983 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4984 echo "$as_me:$LINENO: result: yes" >&5
4985echo "${ECHO_T}yes" >&6
10f2d63a 4986 else
e6cc62c6
VS
4987 echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6
10f2d63a 4989 fi
e6cc62c6 4990
10f2d63a 4991
5005acfe 4992 enablestring=
e6cc62c6
VS
4993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4994echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4995 no_cache=0
1e6feb95
VZ
4996 # Check whether --enable-unicode or --disable-unicode was given.
4997if test "${enable_unicode+set}" = set; then
4998 enableval="$enable_unicode"
e6cc62c6 4999
1e6feb95
VZ
5000 if test "$enableval" = yes; then
5001 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5002 else
5003 ac_cv_use_unicode='wxUSE_UNICODE=no'
5004 fi
e6cc62c6 5005
1e6feb95 5006else
e6cc62c6 5007
1e6feb95
VZ
5008 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5009 if test "x$LINE" != x ; then
5010 eval "DEFAULT_$LINE"
5011 else
5012 no_cache=1
5013 fi
5014
5015 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 5016
e6cc62c6 5017fi;
1e6feb95
VZ
5018
5019 eval "$ac_cv_use_unicode"
5020 if test "$no_cache" != 1; then
5021 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5022 fi
5023
5024 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5025 echo "$as_me:$LINENO: result: yes" >&5
5026echo "${ECHO_T}yes" >&6
1e6feb95 5027 else
e6cc62c6
VS
5028 echo "$as_me:$LINENO: result: no" >&5
5029echo "${ECHO_T}no" >&6
1e6feb95 5030 fi
e6cc62c6 5031
1e6feb95 5032
5005acfe 5033 enablestring=
e6cc62c6
VS
5034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5035echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5036 no_cache=0
5037 # Check whether --enable-mslu or --disable-mslu was given.
5038if test "${enable_mslu+set}" = set; then
5039 enableval="$enable_mslu"
e6cc62c6 5040
a72a4bfa
VS
5041 if test "$enableval" = yes; then
5042 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5043 else
5044 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5045 fi
e6cc62c6 5046
a72a4bfa 5047else
e6cc62c6 5048
a72a4bfa
VS
5049 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5050 if test "x$LINE" != x ; then
5051 eval "DEFAULT_$LINE"
5052 else
5053 no_cache=1
5054 fi
5055
5056 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5057
e6cc62c6 5058fi;
a72a4bfa
VS
5059
5060 eval "$ac_cv_use_mslu"
5061 if test "$no_cache" != 1; then
5062 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5063 fi
5064
5065 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5066 echo "$as_me:$LINENO: result: yes" >&5
5067echo "${ECHO_T}yes" >&6
a72a4bfa 5068 else
e6cc62c6
VS
5069 echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6
a72a4bfa 5071 fi
e6cc62c6 5072
a72a4bfa 5073
5005acfe 5074 enablestring=
e6cc62c6
VS
5075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5076echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5077 no_cache=0
5078 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5079if test "${enable_wxprintfv+set}" = set; then
5080 enableval="$enable_wxprintfv"
e6cc62c6 5081
1e6feb95 5082 if test "$enableval" = yes; then
10f2d63a
VZ
5083 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5084 else
5085 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5086 fi
e6cc62c6 5087
10f2d63a 5088else
e6cc62c6 5089
10f2d63a
VZ
5090 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5091 if test "x$LINE" != x ; then
5092 eval "DEFAULT_$LINE"
5093 else
5094 no_cache=1
5095 fi
5096
5097 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5098
e6cc62c6 5099fi;
10f2d63a
VZ
5100
5101 eval "$ac_cv_use_wxprintfv"
5102 if test "$no_cache" != 1; then
5103 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5104 fi
5105
5106 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5107 echo "$as_me:$LINENO: result: yes" >&5
5108echo "${ECHO_T}yes" >&6
10f2d63a 5109 else
e6cc62c6
VS
5110 echo "$as_me:$LINENO: result: no" >&5
5111echo "${ECHO_T}no" >&6
10f2d63a 5112 fi
e6cc62c6 5113
10f2d63a 5114
5005acfe 5115 enablestring=
e6cc62c6
VS
5116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5117echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5118 no_cache=0
5119 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5120if test "${enable_std_iostreams+set}" = set; then
5121 enableval="$enable_std_iostreams"
e6cc62c6 5122
10f2d63a
VZ
5123 if test "$enableval" = yes; then
5124 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5125 else
5126 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5127 fi
e6cc62c6 5128
10f2d63a 5129else
e6cc62c6 5130
10f2d63a
VZ
5131 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5139
e6cc62c6 5140fi;
10f2d63a
VZ
5141
5142 eval "$ac_cv_use_std_iostreams"
5143 if test "$no_cache" != 1; then
5144 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5145 fi
5146
5147 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5148 echo "$as_me:$LINENO: result: yes" >&5
5149echo "${ECHO_T}yes" >&6
10f2d63a 5150 else
e6cc62c6
VS
5151 echo "$as_me:$LINENO: result: no" >&5
5152echo "${ECHO_T}no" >&6
10f2d63a 5153 fi
e6cc62c6 5154
10f2d63a 5155
5005acfe 5156 enablestring=
e6cc62c6
VS
5157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5158echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5159 no_cache=0
5160 # Check whether --enable-filesystem or --disable-filesystem was given.
5161if test "${enable_filesystem+set}" = set; then
5162 enableval="$enable_filesystem"
e6cc62c6 5163
24528b0c
VS
5164 if test "$enableval" = yes; then
5165 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5166 else
5167 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5168 fi
e6cc62c6 5169
24528b0c 5170else
e6cc62c6 5171
24528b0c
VS
5172 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5173 if test "x$LINE" != x ; then
5174 eval "DEFAULT_$LINE"
5175 else
5176 no_cache=1
5177 fi
5178
5179 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5180
e6cc62c6 5181fi;
24528b0c
VS
5182
5183 eval "$ac_cv_use_filesystem"
5184 if test "$no_cache" != 1; then
5185 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5186 fi
5187
5188 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5189 echo "$as_me:$LINENO: result: yes" >&5
5190echo "${ECHO_T}yes" >&6
24528b0c 5191 else
e6cc62c6
VS
5192 echo "$as_me:$LINENO: result: no" >&5
5193echo "${ECHO_T}no" >&6
24528b0c 5194 fi
e6cc62c6 5195
24528b0c 5196
5005acfe 5197 enablestring=
e6cc62c6
VS
5198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5199echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5200 no_cache=0
5201 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5202if test "${enable_fs_inet+set}" = set; then
5203 enableval="$enable_fs_inet"
e6cc62c6 5204
10f2d63a
VZ
5205 if test "$enableval" = yes; then
5206 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5207 else
5208 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5209 fi
e6cc62c6 5210
10f2d63a 5211else
e6cc62c6 5212
10f2d63a
VZ
5213 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5221
e6cc62c6 5222fi;
10f2d63a
VZ
5223
5224 eval "$ac_cv_use_fs_inet"
5225 if test "$no_cache" != 1; then
5226 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5227 fi
5228
5229 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5230 echo "$as_me:$LINENO: result: yes" >&5
5231echo "${ECHO_T}yes" >&6
10f2d63a 5232 else
e6cc62c6
VS
5233 echo "$as_me:$LINENO: result: no" >&5
5234echo "${ECHO_T}no" >&6
10f2d63a 5235 fi
e6cc62c6 5236
10f2d63a 5237
5005acfe 5238 enablestring=
e6cc62c6
VS
5239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5240echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5241 no_cache=0
5242 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5243if test "${enable_fs_zip+set}" = set; then
5244 enableval="$enable_fs_zip"
e6cc62c6 5245
10f2d63a
VZ
5246 if test "$enableval" = yes; then
5247 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5248 else
5249 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5250 fi
e6cc62c6 5251
10f2d63a 5252else
e6cc62c6 5253
10f2d63a
VZ
5254 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 else
5258 no_cache=1
5259 fi
5260
5261 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5262
e6cc62c6 5263fi;
10f2d63a
VZ
5264
5265 eval "$ac_cv_use_fs_zip"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5271 echo "$as_me:$LINENO: result: yes" >&5
5272echo "${ECHO_T}yes" >&6
10f2d63a 5273 else
e6cc62c6
VS
5274 echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6
10f2d63a 5276 fi
e6cc62c6 5277
10f2d63a 5278
5005acfe 5279 enablestring=
e6cc62c6
VS
5280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5281echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5282 no_cache=0
5283 # Check whether --enable-zipstream or --disable-zipstream was given.
5284if test "${enable_zipstream+set}" = set; then
5285 enableval="$enable_zipstream"
e6cc62c6 5286
10f2d63a
VZ
5287 if test "$enableval" = yes; then
5288 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5289 else
5290 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5291 fi
e6cc62c6 5292
10f2d63a 5293else
e6cc62c6 5294
10f2d63a
VZ
5295 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5296 if test "x$LINE" != x ; then
5297 eval "DEFAULT_$LINE"
5298 else
5299 no_cache=1
5300 fi
5301
5302 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5303
e6cc62c6 5304fi;
10f2d63a
VZ
5305
5306 eval "$ac_cv_use_zipstream"
5307 if test "$no_cache" != 1; then
5308 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5309 fi
5310
5311 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5312 echo "$as_me:$LINENO: result: yes" >&5
5313echo "${ECHO_T}yes" >&6
10f2d63a 5314 else
e6cc62c6
VS
5315 echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
10f2d63a 5317 fi
e6cc62c6 5318
8284b0c5 5319
52127426 5320
5005acfe 5321 enablestring=
e6cc62c6
VS
5322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5323echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5324 no_cache=0
5325 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5326if test "${enable_catch_segvs+set}" = set; then
5327 enableval="$enable_catch_segvs"
e6cc62c6 5328
eb4efbdc
VZ
5329 if test "$enableval" = yes; then
5330 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5331 else
5332 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5333 fi
e6cc62c6 5334
eb4efbdc 5335else
e6cc62c6 5336
eb4efbdc
VZ
5337 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5338 if test "x$LINE" != x ; then
5339 eval "DEFAULT_$LINE"
5340 else
5341 no_cache=1
5342 fi
5343
5344 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5345
e6cc62c6 5346fi;
eb4efbdc
VZ
5347
5348 eval "$ac_cv_use_catch_segvs"
5349 if test "$no_cache" != 1; then
5350 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5351 fi
5352
5353 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5354 echo "$as_me:$LINENO: result: yes" >&5
5355echo "${ECHO_T}yes" >&6
eb4efbdc 5356 else
e6cc62c6
VS
5357 echo "$as_me:$LINENO: result: no" >&5
5358echo "${ECHO_T}no" >&6
eb4efbdc 5359 fi
e6cc62c6 5360
eb4efbdc 5361
5005acfe 5362 enablestring=
e6cc62c6
VS
5363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5364echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5365 no_cache=0
5366 # Check whether --enable-snglinst or --disable-snglinst was given.
5367if test "${enable_snglinst+set}" = set; then
5368 enableval="$enable_snglinst"
e6cc62c6 5369
4f3c5f06
VZ
5370 if test "$enableval" = yes; then
5371 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5372 else
5373 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5374 fi
e6cc62c6 5375
4f3c5f06 5376else
e6cc62c6 5377
4f3c5f06
VZ
5378 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5379 if test "x$LINE" != x ; then
5380 eval "DEFAULT_$LINE"
5381 else
5382 no_cache=1
5383 fi
5384
5385 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5386
e6cc62c6 5387fi;
4f3c5f06
VZ
5388
5389 eval "$ac_cv_use_snglinst"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5395 echo "$as_me:$LINENO: result: yes" >&5
5396echo "${ECHO_T}yes" >&6
4f3c5f06 5397 else
e6cc62c6
VS
5398 echo "$as_me:$LINENO: result: no" >&5
5399echo "${ECHO_T}no" >&6
4f3c5f06 5400 fi
e6cc62c6 5401
52127426 5402
8284b0c5 5403
5005acfe 5404 enablestring=
e6cc62c6
VS
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5407 no_cache=0
5408 # Check whether --enable-mimetype or --disable-mimetype was given.
5409if test "${enable_mimetype+set}" = set; then
5410 enableval="$enable_mimetype"
e6cc62c6 5411
1e6feb95
VZ
5412 if test "$enableval" = yes; then
5413 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5414 else
5415 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5416 fi
e6cc62c6 5417
1e6feb95 5418else
e6cc62c6 5419
1e6feb95
VZ
5420 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5428
e6cc62c6 5429fi;
1e6feb95
VZ
5430
5431 eval "$ac_cv_use_mimetype"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
1e6feb95 5439 else
e6cc62c6
VS
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
1e6feb95 5442 fi
e6cc62c6 5443
1e6feb95 5444
5005acfe 5445 enablestring=
e6cc62c6
VS
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5448 no_cache=0
5449 # Check whether --enable-system_options or --disable-system_options was given.
5450if test "${enable_system_options+set}" = set; then
5451 enableval="$enable_system_options"
e6cc62c6 5452
3e44f09d
VZ
5453 if test "$enableval" = yes; then
5454 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5455 else
5456 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5457 fi
e6cc62c6 5458
3e44f09d 5459else
e6cc62c6 5460
3e44f09d
VZ
5461 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5469
e6cc62c6 5470fi;
3e44f09d
VZ
5471
5472 eval "$ac_cv_use_system_options"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
3e44f09d 5480 else
e6cc62c6
VS
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
3e44f09d 5483 fi
e6cc62c6 5484
8284b0c5 5485
52127426 5486
5005acfe 5487 enablestring=
e6cc62c6
VS
5488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5489echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5490 no_cache=0
5491 # Check whether --enable-url or --disable-url was given.
5492if test "${enable_url+set}" = set; then
5493 enableval="$enable_url"
e6cc62c6 5494
4cdb0ab0
VS
5495 if test "$enableval" = yes; then
5496 ac_cv_use_url='wxUSE_URL=yes'
5497 else
5498 ac_cv_use_url='wxUSE_URL=no'
5499 fi
e6cc62c6 5500
4cdb0ab0 5501else
e6cc62c6 5502
4cdb0ab0
VS
5503 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5504 if test "x$LINE" != x ; then
5505 eval "DEFAULT_$LINE"
5506 else
5507 no_cache=1
5508 fi
5509
5510 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5511
e6cc62c6 5512fi;
4cdb0ab0
VS
5513
5514 eval "$ac_cv_use_url"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5520 echo "$as_me:$LINENO: result: yes" >&5
5521echo "${ECHO_T}yes" >&6
4cdb0ab0 5522 else
e6cc62c6
VS
5523 echo "$as_me:$LINENO: result: no" >&5
5524echo "${ECHO_T}no" >&6
4cdb0ab0 5525 fi
e6cc62c6 5526
4cdb0ab0 5527
5005acfe 5528 enablestring=
e6cc62c6
VS
5529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5530echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5531 no_cache=0
5532 # Check whether --enable-protocol or --disable-protocol was given.
5533if test "${enable_protocol+set}" = set; then
5534 enableval="$enable_protocol"
e6cc62c6 5535
4cdb0ab0
VS
5536 if test "$enableval" = yes; then
5537 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5538 else
5539 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5540 fi
e6cc62c6 5541
4cdb0ab0 5542else
e6cc62c6 5543
4cdb0ab0
VS
5544 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
5551 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5552
e6cc62c6 5553fi;
4cdb0ab0
VS
5554
5555 eval "$ac_cv_use_protocol"
5556 if test "$no_cache" != 1; then
5557 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5558 fi
5559
5560 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5561 echo "$as_me:$LINENO: result: yes" >&5
5562echo "${ECHO_T}yes" >&6
4cdb0ab0 5563 else
e6cc62c6
VS
5564 echo "$as_me:$LINENO: result: no" >&5
5565echo "${ECHO_T}no" >&6
4cdb0ab0 5566 fi
e6cc62c6 5567
4cdb0ab0 5568
5005acfe 5569 enablestring=
e6cc62c6
VS
5570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5571echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5572 no_cache=0
5573 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5574if test "${enable_protocol_http+set}" = set; then
5575 enableval="$enable_protocol_http"
e6cc62c6 5576
4cdb0ab0
VS
5577 if test "$enableval" = yes; then
5578 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5579 else
5580 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5581 fi
e6cc62c6 5582
4cdb0ab0 5583else
e6cc62c6 5584
4cdb0ab0
VS
5585 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5593
e6cc62c6 5594fi;
4cdb0ab0
VS
5595
5596 eval "$ac_cv_use_protocol_http"
5597 if test "$no_cache" != 1; then
5598 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5599 fi
5600
5601 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5602 echo "$as_me:$LINENO: result: yes" >&5
5603echo "${ECHO_T}yes" >&6
4cdb0ab0 5604 else
e6cc62c6
VS
5605 echo "$as_me:$LINENO: result: no" >&5
5606echo "${ECHO_T}no" >&6
4cdb0ab0 5607 fi
e6cc62c6 5608
4cdb0ab0 5609
5005acfe 5610 enablestring=
e6cc62c6
VS
5611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5612echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5613 no_cache=0
5614 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5615if test "${enable_protocol_ftp+set}" = set; then
5616 enableval="$enable_protocol_ftp"
e6cc62c6 5617
4cdb0ab0
VS
5618 if test "$enableval" = yes; then
5619 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5620 else
5621 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5622 fi
e6cc62c6 5623
4cdb0ab0 5624else
e6cc62c6 5625
4cdb0ab0
VS
5626 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5627 if test "x$LINE" != x ; then
5628 eval "DEFAULT_$LINE"
5629 else
5630 no_cache=1
5631 fi
5632
5633 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5634
e6cc62c6 5635fi;
4cdb0ab0
VS
5636
5637 eval "$ac_cv_use_protocol_ftp"
5638 if test "$no_cache" != 1; then
5639 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5640 fi
5641
5642 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5643 echo "$as_me:$LINENO: result: yes" >&5
5644echo "${ECHO_T}yes" >&6
4cdb0ab0 5645 else
e6cc62c6
VS
5646 echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6
4cdb0ab0 5648 fi
e6cc62c6 5649
4cdb0ab0 5650
5005acfe 5651 enablestring=
e6cc62c6
VS
5652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5653echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5654 no_cache=0
5655 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5656if test "${enable_protocol_file+set}" = set; then
5657 enableval="$enable_protocol_file"
e6cc62c6 5658
4cdb0ab0
VS
5659 if test "$enableval" = yes; then
5660 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5661 else
5662 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5663 fi
e6cc62c6 5664
4cdb0ab0 5665else
e6cc62c6 5666
4cdb0ab0
VS
5667 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5668 if test "x$LINE" != x ; then
5669 eval "DEFAULT_$LINE"
5670 else
5671 no_cache=1
5672 fi
5673
5674 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5675
e6cc62c6 5676fi;
4cdb0ab0
VS
5677
5678 eval "$ac_cv_use_protocol_file"
5679 if test "$no_cache" != 1; then
5680 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5681 fi
5682
5683 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5684 echo "$as_me:$LINENO: result: yes" >&5
5685echo "${ECHO_T}yes" >&6
4cdb0ab0 5686 else
e6cc62c6
VS
5687 echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
4cdb0ab0 5689 fi
e6cc62c6 5690
52127426 5691
8284b0c5
MB
5692
5693
5694
5005acfe 5695 enablestring=
e6cc62c6
VS
5696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5697echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5698 no_cache=0
5699 # Check whether --enable-threads or --disable-threads was given.
5700if test "${enable_threads+set}" = set; then
5701 enableval="$enable_threads"
e6cc62c6 5702
10f2d63a
VZ
5703 if test "$enableval" = yes; then
5704 ac_cv_use_threads='wxUSE_THREADS=yes'
5705 else
5706 ac_cv_use_threads='wxUSE_THREADS=no'
5707 fi
e6cc62c6 5708
10f2d63a 5709else
e6cc62c6 5710
10f2d63a
VZ
5711 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5712 if test "x$LINE" != x ; then
5713 eval "DEFAULT_$LINE"
5714 else
5715 no_cache=1
5716 fi
5717
5718 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5719
e6cc62c6 5720fi;
10f2d63a
VZ
5721
5722 eval "$ac_cv_use_threads"
5723 if test "$no_cache" != 1; then
5724 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5725 fi
5726
5727 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5728 echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
10f2d63a 5730 else
e6cc62c6
VS
5731 echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6
10f2d63a 5733 fi
e6cc62c6 5734
10f2d63a 5735
b12915c1
VZ
5736if test "$wxUSE_GUI" = "yes"; then
5737
8284b0c5
MB
5738
5739
5005acfe 5740 enablestring=
e6cc62c6
VS
5741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5742echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5743 no_cache=0
5744 # Check whether --enable-docview or --disable-docview was given.
5745if test "${enable_docview+set}" = set; then
5746 enableval="$enable_docview"
e6cc62c6 5747
10f2d63a
VZ
5748 if test "$enableval" = yes; then
5749 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5750 else
5751 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5752 fi
e6cc62c6 5753
10f2d63a 5754else
e6cc62c6 5755
10f2d63a
VZ
5756 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5757 if test "x$LINE" != x ; then
5758 eval "DEFAULT_$LINE"
5759 else
5760 no_cache=1
5761 fi
5762
5763 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5764
e6cc62c6 5765fi;
10f2d63a
VZ
5766
5767 eval "$ac_cv_use_docview"
5768 if test "$no_cache" != 1; then
5769 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5770 fi
5771
5772 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5773 echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6
10f2d63a 5775 else
e6cc62c6
VS
5776 echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
10f2d63a 5778 fi
e6cc62c6 5779
10f2d63a 5780
5005acfe 5781 enablestring=
e6cc62c6
VS
5782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5783echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5784 no_cache=0
5785 # Check whether --enable-help or --disable-help was given.
5786if test "${enable_help+set}" = set; then
5787 enableval="$enable_help"
e6cc62c6 5788
10f2d63a
VZ
5789 if test "$enableval" = yes; then
5790 ac_cv_use_help='wxUSE_HELP=yes'
5791 else
5792 ac_cv_use_help='wxUSE_HELP=no'
5793 fi
e6cc62c6 5794
10f2d63a 5795else
e6cc62c6 5796
10f2d63a
VZ
5797 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 else
5801 no_cache=1
5802 fi
5803
5804 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5805
e6cc62c6 5806fi;
10f2d63a
VZ
5807
5808 eval "$ac_cv_use_help"
5809 if test "$no_cache" != 1; then
5810 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5811 fi
5812
5813 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5814 echo "$as_me:$LINENO: result: yes" >&5
5815echo "${ECHO_T}yes" >&6
10f2d63a 5816 else
e6cc62c6
VS
5817 echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6
10f2d63a 5819 fi
e6cc62c6 5820
10f2d63a 5821
5005acfe 5822 enablestring=
e6cc62c6
VS
5823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5824echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5825 no_cache=0
5826 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5827if test "${enable_mshtmlhelp+set}" = set; then
5828 enableval="$enable_mshtmlhelp"
e6cc62c6 5829
29fd3c0c
VS
5830 if test "$enableval" = yes; then
5831 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5832 else
5833 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5834 fi
e6cc62c6 5835
29fd3c0c 5836else
e6cc62c6 5837
29fd3c0c
VS
5838 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5839 if test "x$LINE" != x ; then
5840 eval "DEFAULT_$LINE"
5841 else
5842 no_cache=1
5843 fi
5844
5845 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5846
e6cc62c6 5847fi;
29fd3c0c
VS
5848
5849 eval "$ac_cv_use_mshtmlhelp"
5850 if test "$no_cache" != 1; then
5851 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5852 fi
5853
5854 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5855 echo "$as_me:$LINENO: result: yes" >&5
5856echo "${ECHO_T}yes" >&6
29fd3c0c 5857 else
e6cc62c6
VS
5858 echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6
29fd3c0c 5860 fi
e6cc62c6 5861
29fd3c0c 5862
5005acfe 5863 enablestring=
e6cc62c6
VS
5864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5865echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5866 no_cache=0
5867 # Check whether --enable-html or --disable-html was given.
5868if test "${enable_html+set}" = set; then
5869 enableval="$enable_html"
e6cc62c6 5870
3379ed37
VZ
5871 if test "$enableval" = yes; then
5872 ac_cv_use_html='wxUSE_HTML=yes'
5873 else
5874 ac_cv_use_html='wxUSE_HTML=no'
5875 fi
e6cc62c6 5876
3379ed37 5877else
e6cc62c6 5878
3379ed37
VZ
5879 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5887
e6cc62c6 5888fi;
3379ed37
VZ
5889
5890 eval "$ac_cv_use_html"
5891 if test "$no_cache" != 1; then
5892 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5893 fi
5894
5895 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5896 echo "$as_me:$LINENO: result: yes" >&5
5897echo "${ECHO_T}yes" >&6
3379ed37 5898 else
e6cc62c6
VS
5899 echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
3379ed37 5901 fi
e6cc62c6 5902
3379ed37 5903
5005acfe 5904 enablestring=
e6cc62c6
VS
5905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5906echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5907 no_cache=0
5908 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5909if test "${enable_htmlhelp+set}" = set; then
5910 enableval="$enable_htmlhelp"
e6cc62c6 5911
3379ed37
VZ
5912 if test "$enableval" = yes; then
5913 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5914 else
5915 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5916 fi
e6cc62c6 5917
3379ed37 5918else
e6cc62c6 5919
3379ed37
VZ
5920 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5928
e6cc62c6 5929fi;
3379ed37
VZ
5930
5931 eval "$ac_cv_use_htmlhelp"
5932 if test "$no_cache" != 1; then
5933 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5934 fi
5935
5936 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5937 echo "$as_me:$LINENO: result: yes" >&5
5938echo "${ECHO_T}yes" >&6
3379ed37 5939 else
e6cc62c6
VS
5940 echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
3379ed37 5942 fi
e6cc62c6 5943
3379ed37 5944
5005acfe 5945 enablestring=
e6cc62c6
VS
5946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5947echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5948 no_cache=0
5949 # Check whether --enable-constraints or --disable-constraints was given.
5950if test "${enable_constraints+set}" = set; then
5951 enableval="$enable_constraints"
e6cc62c6 5952
10f2d63a
VZ
5953 if test "$enableval" = yes; then
5954 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5955 else
5956 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5957 fi
e6cc62c6 5958
10f2d63a 5959else
e6cc62c6 5960
10f2d63a
VZ
5961 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5962 if test "x$LINE" != x ; then
5963 eval "DEFAULT_$LINE"
5964 else
5965 no_cache=1
5966 fi
5967
5968 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5969
e6cc62c6 5970fi;
10f2d63a
VZ
5971
5972 eval "$ac_cv_use_constraints"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5978 echo "$as_me:$LINENO: result: yes" >&5
5979echo "${ECHO_T}yes" >&6
10f2d63a 5980 else
e6cc62c6
VS
5981 echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6
10f2d63a 5983 fi
e6cc62c6 5984
10f2d63a 5985
5005acfe 5986 enablestring=
e6cc62c6
VS
5987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5988echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5989 no_cache=0
5990 # Check whether --enable-printarch or --disable-printarch was given.
5991if test "${enable_printarch+set}" = set; then
5992 enableval="$enable_printarch"
e6cc62c6 5993
10f2d63a
VZ
5994 if test "$enableval" = yes; then
5995 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5996 else
5997 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5998 fi
e6cc62c6 5999
10f2d63a 6000else
e6cc62c6 6001
10f2d63a
VZ
6002 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6010
e6cc62c6 6011fi;
10f2d63a
VZ
6012
6013 eval "$ac_cv_use_printarch"
6014 if test "$no_cache" != 1; then
6015 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6016 fi
6017
6018 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6019 echo "$as_me:$LINENO: result: yes" >&5
6020echo "${ECHO_T}yes" >&6
10f2d63a 6021 else
e6cc62c6
VS
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
10f2d63a 6024 fi
e6cc62c6 6025
10f2d63a 6026
5005acfe 6027 enablestring=
e6cc62c6
VS
6028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6029echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6030 no_cache=0
6031 # Check whether --enable-mdi or --disable-mdi was given.
6032if test "${enable_mdi+set}" = set; then
6033 enableval="$enable_mdi"
e6cc62c6 6034
10f2d63a
VZ
6035 if test "$enableval" = yes; then
6036 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6037 else
6038 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6039 fi
e6cc62c6 6040
10f2d63a 6041else
e6cc62c6 6042
10f2d63a
VZ
6043 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6044 if test "x$LINE" != x ; then
6045 eval "DEFAULT_$LINE"
6046 else
6047 no_cache=1
6048 fi
6049
6050 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6051
e6cc62c6 6052fi;
10f2d63a
VZ
6053
6054 eval "$ac_cv_use_mdi"
6055 if test "$no_cache" != 1; then
6056 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6057 fi
6058
6059 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6060 echo "$as_me:$LINENO: result: yes" >&5
6061echo "${ECHO_T}yes" >&6
10f2d63a 6062 else
e6cc62c6
VS
6063 echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
10f2d63a 6065 fi
e6cc62c6 6066
698dcdb6 6067
5005acfe 6068 enablestring=
e6cc62c6
VS
6069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6070echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6071 no_cache=0
6072 # Check whether --enable-loggui or --disable-loggui was given.
6073if test "${enable_loggui+set}" = set; then
6074 enableval="$enable_loggui"
e6cc62c6 6075
1e6feb95
VZ
6076 if test "$enableval" = yes; then
6077 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6078 else
6079 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6080 fi
e6cc62c6 6081
1e6feb95 6082else
e6cc62c6 6083
1e6feb95
VZ
6084 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6092
e6cc62c6 6093fi;
1e6feb95
VZ
6094
6095 eval "$ac_cv_use_loggui"
6096 if test "$no_cache" != 1; then
6097 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6098 fi
6099
6100 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6101 echo "$as_me:$LINENO: result: yes" >&5
6102echo "${ECHO_T}yes" >&6
1e6feb95 6103 else
e6cc62c6
VS
6104 echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6
1e6feb95 6106 fi
e6cc62c6 6107
1e6feb95 6108
5005acfe 6109 enablestring=
e6cc62c6
VS
6110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6111echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6112 no_cache=0
6113 # Check whether --enable-logwin or --disable-logwin was given.
6114if test "${enable_logwin+set}" = set; then
6115 enableval="$enable_logwin"
e6cc62c6 6116
1e6feb95
VZ
6117 if test "$enableval" = yes; then
6118 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6119 else
6120 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6121 fi
e6cc62c6 6122
1e6feb95 6123else
e6cc62c6 6124
1e6feb95
VZ
6125 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6126 if test "x$LINE" != x ; then
6127 eval "DEFAULT_$LINE"
6128 else
6129 no_cache=1
6130 fi
6131
6132 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6133
e6cc62c6 6134fi;
1e6feb95
VZ
6135
6136 eval "$ac_cv_use_logwin"
6137 if test "$no_cache" != 1; then
6138 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6139 fi
6140
6141 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6142 echo "$as_me:$LINENO: result: yes" >&5
6143echo "${ECHO_T}yes" >&6
1e6feb95 6144 else
e6cc62c6
VS
6145 echo "$as_me:$LINENO: result: no" >&5
6146echo "${ECHO_T}no" >&6
1e6feb95 6147 fi
e6cc62c6 6148
1e6feb95 6149
5005acfe 6150 enablestring=
e6cc62c6
VS
6151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6152echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6153 no_cache=0
6154 # Check whether --enable-logdialog or --disable-logdialog was given.
6155if test "${enable_logdialog+set}" = set; then
6156 enableval="$enable_logdialog"
e6cc62c6 6157
69d27ff7
MB
6158 if test "$enableval" = yes; then
6159 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6160 else
6161 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6162 fi
e6cc62c6 6163
69d27ff7 6164else
e6cc62c6 6165
69d27ff7
MB
6166 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6167 if test "x$LINE" != x ; then
6168 eval "DEFAULT_$LINE"
6169 else
6170 no_cache=1
6171 fi
6172
6173 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6174
e6cc62c6 6175fi;
69d27ff7
MB
6176
6177 eval "$ac_cv_use_logdialog"
6178 if test "$no_cache" != 1; then
6179 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6180 fi
6181
6182 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6183 echo "$as_me:$LINENO: result: yes" >&5
6184echo "${ECHO_T}yes" >&6
69d27ff7 6185 else
e6cc62c6
VS
6186 echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6
69d27ff7 6188 fi
e6cc62c6 6189
8284b0c5 6190
52127426 6191
5005acfe 6192 enablestring=
e6cc62c6
VS
6193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6194echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6195 no_cache=0
6196 # Check whether --enable-postscript or --disable-postscript was given.
6197if test "${enable_postscript+set}" = set; then
6198 enableval="$enable_postscript"
e6cc62c6 6199
10f2d63a
VZ
6200 if test "$enableval" = yes; then
6201 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6202 else
6203 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6204 fi
e6cc62c6 6205
10f2d63a 6206else
e6cc62c6 6207
10f2d63a
VZ
6208 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6209 if test "x$LINE" != x ; then
6210 eval "DEFAULT_$LINE"
6211 else
6212 no_cache=1
6213 fi
6214
6215 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6216
e6cc62c6 6217fi;
10f2d63a
VZ
6218
6219 eval "$ac_cv_use_postscript"
6220 if test "$no_cache" != 1; then
6221 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6222 fi
6223
6224 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6225 echo "$as_me:$LINENO: result: yes" >&5
6226echo "${ECHO_T}yes" >&6
10f2d63a 6227 else
e6cc62c6
VS
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
10f2d63a 6230 fi
e6cc62c6 6231
8284b0c5
MB
6232
6233
52127426 6234
8284b0c5 6235
5005acfe 6236 enablestring=
e6cc62c6
VS
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6239 no_cache=0
3c907f20
VZ
6240 # Check whether --enable-prologio or --disable-prologio was given.
6241if test "${enable_prologio+set}" = set; then
6242 enableval="$enable_prologio"
e6cc62c6 6243
10f2d63a 6244 if test "$enableval" = yes; then
3c907f20 6245 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6246 else
3c907f20 6247 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6248 fi
e6cc62c6 6249
10f2d63a 6250else
e6cc62c6 6251
3c907f20 6252 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
3c907f20 6259 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6260
e6cc62c6 6261fi;
10f2d63a 6262
3c907f20 6263 eval "$ac_cv_use_prologio"
10f2d63a 6264 if test "$no_cache" != 1; then
3c907f20 6265 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6266 fi
6267
3c907f20 6268 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
10f2d63a 6271 else
e6cc62c6
VS
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
10f2d63a 6274 fi
e6cc62c6 6275
8284b0c5 6276
5005acfe 6277 enablestring=
e6cc62c6
VS
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6280 no_cache=0
3c907f20
VZ
6281 # Check whether --enable-resources or --disable-resources was given.
6282if test "${enable_resources+set}" = set; then
6283 enableval="$enable_resources"
e6cc62c6 6284
10f2d63a 6285 if test "$enableval" = yes; then
3c907f20 6286 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6287 else
3c907f20 6288 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6289 fi
e6cc62c6 6290
10f2d63a 6291else
e6cc62c6 6292
3c907f20 6293 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
3c907f20 6300 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6301
e6cc62c6 6302fi;
10f2d63a 6303
3c907f20 6304 eval "$ac_cv_use_resources"
10f2d63a 6305 if test "$no_cache" != 1; then
3c907f20 6306 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6307 fi
6308
3c907f20 6309 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
10f2d63a 6312 else
e6cc62c6
VS
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
10f2d63a 6315 fi
e6cc62c6 6316
8284b0c5
MB
6317
6318
52127426 6319
5005acfe 6320 enablestring=
e6cc62c6
VS
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6322echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6323 no_cache=0
6324 # Check whether --enable-clipboard or --disable-clipboard was given.
6325if test "${enable_clipboard+set}" = set; then
6326 enableval="$enable_clipboard"
e6cc62c6 6327
10f2d63a
VZ
6328 if test "$enableval" = yes; then
6329 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6330 else
6331 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6332 fi
e6cc62c6 6333
10f2d63a 6334else
e6cc62c6 6335
10f2d63a
VZ
6336 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6344
e6cc62c6 6345fi;
10f2d63a
VZ
6346
6347 eval "$ac_cv_use_clipboard"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6353 echo "$as_me:$LINENO: result: yes" >&5
6354echo "${ECHO_T}yes" >&6
10f2d63a 6355 else
e6cc62c6
VS
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
10f2d63a 6358 fi
e6cc62c6 6359
10f2d63a 6360
5005acfe 6361 enablestring=
e6cc62c6
VS
6362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6363echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6364 no_cache=0
6365 # Check whether --enable-dnd or --disable-dnd was given.
6366if test "${enable_dnd+set}" = set; then
6367 enableval="$enable_dnd"
e6cc62c6 6368
10f2d63a
VZ
6369 if test "$enableval" = yes; then
6370 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6371 else
6372 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6373 fi
e6cc62c6 6374
10f2d63a 6375else
e6cc62c6 6376
10f2d63a
VZ
6377 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6385
e6cc62c6 6386fi;
10f2d63a
VZ
6387
6388 eval "$ac_cv_use_dnd"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6394 echo "$as_me:$LINENO: result: yes" >&5
6395echo "${ECHO_T}yes" >&6
10f2d63a 6396 else
e6cc62c6
VS
6397 echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
10f2d63a 6399 fi
e6cc62c6 6400
10f2d63a 6401
5005acfe 6402 enablestring=
e6cc62c6
VS
6403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6404echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6405 no_cache=0
6406 # Check whether --enable-metafile or --disable-metafile was given.
6407if test "${enable_metafile+set}" = set; then
6408 enableval="$enable_metafile"
e6cc62c6 6409
b64f0a5f
RL
6410 if test "$enableval" = yes; then
6411 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6412 else
6413 ac_cv_use_metafile='wxUSE_METAFILE=no'
6414 fi
e6cc62c6 6415
b64f0a5f 6416else
e6cc62c6 6417
b64f0a5f
RL
6418 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6419 if test "x$LINE" != x ; then
6420 eval "DEFAULT_$LINE"
6421 else
6422 no_cache=1
6423 fi
6424
6425 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6426
e6cc62c6 6427fi;
b64f0a5f
RL
6428
6429 eval "$ac_cv_use_metafile"
6430 if test "$no_cache" != 1; then
6431 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6432 fi
6433
6434 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6435 echo "$as_me:$LINENO: result: yes" >&5
6436echo "${ECHO_T}yes" >&6
b64f0a5f 6437 else
e6cc62c6
VS
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
b64f0a5f 6440 fi
e6cc62c6 6441
52127426 6442
8284b0c5 6443
52127426 6444
8284b0c5 6445
5005acfe 6446 enablestring=
e6cc62c6
VS
6447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6448echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6449 no_cache=0
6450 # Check whether --enable-controls or --disable-controls was given.
6451if test "${enable_controls+set}" = set; then
6452 enableval="$enable_controls"
e6cc62c6 6453
10f2d63a
VZ
6454 if test "$enableval" = yes; then
6455 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6456 else
6457 ac_cv_use_controls='wxUSE_CONTROLS=no'
6458 fi
e6cc62c6 6459
10f2d63a 6460else
e6cc62c6 6461
10f2d63a
VZ
6462 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6463 if test "x$LINE" != x ; then
6464 eval "DEFAULT_$LINE"
6465 else
6466 no_cache=1
6467 fi
6468
6469 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6470
e6cc62c6 6471fi;
10f2d63a
VZ
6472
6473 eval "$ac_cv_use_controls"
6474 if test "$no_cache" != 1; then
6475 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6476 fi
6477
6478 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6479 echo "$as_me:$LINENO: result: yes" >&5
6480echo "${ECHO_T}yes" >&6
10f2d63a 6481 else
e6cc62c6
VS
6482 echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6
10f2d63a 6484 fi
e6cc62c6 6485
10f2d63a
VZ
6486
6487if test "$wxUSE_CONTROLS" = "yes"; then
6488 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6489 DEFAULT_wxUSE_BMPBUTTON=yes
6490 DEFAULT_wxUSE_BUTTON=yes
6491 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6492 DEFAULT_wxUSE_CARET=yes
6493 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6494 DEFAULT_wxUSE_CHECKBOX=yes
6495 DEFAULT_wxUSE_CHECKLISTBOX=yes
6496 DEFAULT_wxUSE_CHOICE=yes
6497 DEFAULT_wxUSE_GAUGE=yes
6498 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6499 DEFAULT_wxUSE_IMAGLIST=yes
6500 DEFAULT_wxUSE_LISTBOX=yes
6501 DEFAULT_wxUSE_LISTCTRL=yes
6502 DEFAULT_wxUSE_NOTEBOOK=yes
6503 DEFAULT_wxUSE_RADIOBOX=yes
6504 DEFAULT_wxUSE_RADIOBTN=yes
6505 DEFAULT_wxUSE_SASH=yes
6506 DEFAULT_wxUSE_SCROLLBAR=yes
6507 DEFAULT_wxUSE_SLIDER=yes
6508 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6509 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6510 DEFAULT_wxUSE_SPLITTER=yes
6511 DEFAULT_wxUSE_STATBMP=yes
6512 DEFAULT_wxUSE_STATBOX=yes
6513 DEFAULT_wxUSE_STATLINE=yes
6514 DEFAULT_wxUSE_STATUSBAR=yes
6515 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6516 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6517 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6518 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6519 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6520 DEFAULT_wxUSE_TOOLTIPS=yes
6521 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6522 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6523 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6524elif test "$wxUSE_CONTROLS" = "no"; then
6525 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6526 DEFAULT_wxUSE_BMPBUTTON=no
6527 DEFAULT_wxUSE_BUTTON=no
6528 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6529 DEFAULT_wxUSE_CARET=no
6530 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6531 DEFAULT_wxUSE_CHECKBOX=no
6532 DEFAULT_wxUSE_CHECKLISTBOX=no
6533 DEFAULT_wxUSE_CHOICE=no
6534 DEFAULT_wxUSE_GAUGE=no
6535 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6536 DEFAULT_wxUSE_IMAGLIST=no
6537 DEFAULT_wxUSE_LISTBOX=no
6538 DEFAULT_wxUSE_LISTCTRL=no
6539 DEFAULT_wxUSE_NOTEBOOK=no
6540 DEFAULT_wxUSE_RADIOBOX=no
6541 DEFAULT_wxUSE_RADIOBTN=no
6542 DEFAULT_wxUSE_SASH=no
6543 DEFAULT_wxUSE_SCROLLBAR=no
6544 DEFAULT_wxUSE_SLIDER=no
6545 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6546 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6547 DEFAULT_wxUSE_SPLITTER=no
6548 DEFAULT_wxUSE_STATBMP=no
6549 DEFAULT_wxUSE_STATBOX=no
6550 DEFAULT_wxUSE_STATLINE=no
6551 DEFAULT_wxUSE_STATUSBAR=no
6552 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6553 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6554 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6557 DEFAULT_wxUSE_TOOLTIPS=no
6558 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6559 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6560 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6561fi
6562
ac0c4cc3
DE
6563## FIXME: This is a blatant hack
6564if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6565 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3
DE
6566 wxUSE_CLIPBOARD=no
6567 wxUSE_DRAG_AND_DROP=no
6568 wxUSE_DATAOBJ=no
8b389fab
DE
6569 # Generic notebook requires tab dialog
6570 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6571 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6572 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6573 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6574 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6575fi
6576
8284b0c5 6577
5005acfe 6578 enablestring=
e6cc62c6
VS
6579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6580echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6581 no_cache=0
6582 # Check whether --enable-accel or --disable-accel was given.
6583if test "${enable_accel+set}" = set; then
6584 enableval="$enable_accel"
e6cc62c6 6585
10f2d63a
VZ
6586 if test "$enableval" = yes; then
6587 ac_cv_use_accel='wxUSE_ACCEL=yes'
6588 else
6589 ac_cv_use_accel='wxUSE_ACCEL=no'
6590 fi
e6cc62c6 6591
10f2d63a 6592else
e6cc62c6 6593
10f2d63a
VZ
6594 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6595 if test "x$LINE" != x ; then
6596 eval "DEFAULT_$LINE"
6597 else
6598 no_cache=1
6599 fi
6600
6601 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6602
e6cc62c6 6603fi;
10f2d63a
VZ
6604
6605 eval "$ac_cv_use_accel"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6611 echo "$as_me:$LINENO: result: yes" >&5
6612echo "${ECHO_T}yes" >&6
10f2d63a 6613 else
e6cc62c6
VS
6614 echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6
10f2d63a 6616 fi
e6cc62c6 6617
10f2d63a 6618
5005acfe 6619 enablestring=
e6cc62c6
VS
6620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6621echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6622 no_cache=0
1e6feb95
VZ
6623 # Check whether --enable-button or --disable-button was given.
6624if test "${enable_button+set}" = set; then
6625 enableval="$enable_button"
e6cc62c6 6626
10f2d63a 6627 if test "$enableval" = yes; then
1e6feb95 6628 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6629 else
1e6feb95 6630 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6631 fi
e6cc62c6 6632
10f2d63a 6633else
e6cc62c6 6634
1e6feb95 6635 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6636 if test "x$LINE" != x ; then
6637 eval "DEFAULT_$LINE"
6638 else
6639 no_cache=1
6640 fi
6641
1e6feb95 6642 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6643
e6cc62c6 6644fi;
10f2d63a 6645
1e6feb95 6646 eval "$ac_cv_use_button"
10f2d63a 6647 if test "$no_cache" != 1; then
1e6feb95 6648 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6649 fi
6650
1e6feb95 6651 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6652 echo "$as_me:$LINENO: result: yes" >&5
6653echo "${ECHO_T}yes" >&6
10f2d63a 6654 else
e6cc62c6
VS
6655 echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6
10f2d63a 6657 fi
e6cc62c6 6658
10f2d63a 6659
5005acfe 6660 enablestring=
e6cc62c6
VS
6661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6662echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6663 no_cache=0
6664 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6665if test "${enable_bmpbutton+set}" = set; then
6666 enableval="$enable_bmpbutton"
e6cc62c6 6667
10f2d63a
VZ
6668 if test "$enableval" = yes; then
6669 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6670 else
6671 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6672 fi
e6cc62c6 6673
10f2d63a 6674else
e6cc62c6 6675
10f2d63a
VZ
6676 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6677 if test "x$LINE" != x ; then
6678 eval "DEFAULT_$LINE"
6679 else
6680 no_cache=1
6681 fi
6682
6683 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6684
e6cc62c6 6685fi;
10f2d63a
VZ
6686
6687 eval "$ac_cv_use_bmpbutton"
6688 if test "$no_cache" != 1; then
6689 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6690 fi
6691
6692 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6693 echo "$as_me:$LINENO: result: yes" >&5
6694echo "${ECHO_T}yes" >&6
10f2d63a 6695 else
e6cc62c6
VS
6696 echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6
10f2d63a 6698 fi
e6cc62c6 6699
10f2d63a 6700
5005acfe 6701 enablestring=
e6cc62c6
VS
6702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6703echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6704 no_cache=0
6705 # Check whether --enable-calendar or --disable-calendar was given.
6706if test "${enable_calendar+set}" = set; then
6707 enableval="$enable_calendar"
e6cc62c6 6708
1e6feb95
VZ
6709 if test "$enableval" = yes; then
6710 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6711 else
6712 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6713 fi
e6cc62c6 6714
1e6feb95 6715else
e6cc62c6 6716
1e6feb95
VZ
6717 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6725
e6cc62c6 6726fi;
1e6feb95
VZ
6727
6728 eval "$ac_cv_use_calendar"
6729 if test "$no_cache" != 1; then
6730 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6731 fi
6732
6733 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6734 echo "$as_me:$LINENO: result: yes" >&5
6735echo "${ECHO_T}yes" >&6
1e6feb95 6736 else
e6cc62c6
VS
6737 echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6
1e6feb95 6739 fi
e6cc62c6 6740
1e6feb95 6741
5005acfe 6742 enablestring=
e6cc62c6
VS
6743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6744echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6745 no_cache=0
6746 # Check whether --enable-caret or --disable-caret was given.
6747if test "${enable_caret+set}" = set; then
6748 enableval="$enable_caret"
e6cc62c6 6749
1e6feb95
VZ
6750 if test "$enableval" = yes; then
6751 ac_cv_use_caret='wxUSE_CARET=yes'
6752 else
6753 ac_cv_use_caret='wxUSE_CARET=no'
6754 fi
e6cc62c6 6755
1e6feb95 6756else
e6cc62c6 6757
1e6feb95
VZ
6758 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6759 if test "x$LINE" != x ; then
6760 eval "DEFAULT_$LINE"
6761 else
6762 no_cache=1
6763 fi
6764
6765 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6766
e6cc62c6 6767fi;
1e6feb95
VZ
6768
6769 eval "$ac_cv_use_caret"
6770 if test "$no_cache" != 1; then
6771 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6772 fi
6773
6774 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6775 echo "$as_me:$LINENO: result: yes" >&5
6776echo "${ECHO_T}yes" >&6
1e6feb95 6777 else
e6cc62c6
VS
6778 echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6
1e6feb95 6780 fi
e6cc62c6 6781
1e6feb95 6782
5005acfe 6783 enablestring=
e6cc62c6
VS
6784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6785echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6786 no_cache=0
6787 # Check whether --enable-checkbox or --disable-checkbox was given.
6788if test "${enable_checkbox+set}" = set; then
6789 enableval="$enable_checkbox"
e6cc62c6 6790
10f2d63a
VZ
6791 if test "$enableval" = yes; then
6792 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6793 else
6794 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6795 fi
e6cc62c6 6796
10f2d63a 6797else
e6cc62c6 6798
10f2d63a
VZ
6799 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6800 if test "x$LINE" != x ; then
6801 eval "DEFAULT_$LINE"
6802 else
6803 no_cache=1
6804 fi
6805
6806 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6807
e6cc62c6 6808fi;
10f2d63a
VZ
6809
6810 eval "$ac_cv_use_checkbox"
6811 if test "$no_cache" != 1; then
6812 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6813 fi
6814
6815 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6816 echo "$as_me:$LINENO: result: yes" >&5
6817echo "${ECHO_T}yes" >&6
10f2d63a 6818 else
e6cc62c6
VS
6819 echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6
10f2d63a 6821 fi
e6cc62c6 6822
10f2d63a 6823
5005acfe 6824 enablestring=
e6cc62c6
VS
6825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6826echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6827 no_cache=0
6828 # Check whether --enable-checklst or --disable-checklst was given.
6829if test "${enable_checklst+set}" = set; then
6830 enableval="$enable_checklst"
e6cc62c6 6831
10f2d63a
VZ
6832 if test "$enableval" = yes; then
6833 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6834 else
6835 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6836 fi
e6cc62c6 6837
10f2d63a 6838else
e6cc62c6 6839
10f2d63a
VZ
6840 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6841 if test "x$LINE" != x ; then
6842 eval "DEFAULT_$LINE"
6843 else
6844 no_cache=1
6845 fi
6846
6847 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6848
e6cc62c6 6849fi;
10f2d63a
VZ
6850
6851 eval "$ac_cv_use_checklst"
6852 if test "$no_cache" != 1; then
6853 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6854 fi
6855
6856 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6857 echo "$as_me:$LINENO: result: yes" >&5
6858echo "${ECHO_T}yes" >&6
10f2d63a 6859 else
e6cc62c6
VS
6860 echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6
10f2d63a 6862 fi
e6cc62c6 6863
10f2d63a 6864
5005acfe 6865 enablestring=
e6cc62c6
VS
6866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6867echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6868 no_cache=0
6869 # Check whether --enable-choice or --disable-choice was given.
6870if test "${enable_choice+set}" = set; then
6871 enableval="$enable_choice"
e6cc62c6 6872
10f2d63a
VZ
6873 if test "$enableval" = yes; then
6874 ac_cv_use_choice='wxUSE_CHOICE=yes'
6875 else
6876 ac_cv_use_choice='wxUSE_CHOICE=no'
6877 fi
e6cc62c6 6878
10f2d63a 6879else
e6cc62c6 6880
10f2d63a
VZ
6881 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6882 if test "x$LINE" != x ; then
6883 eval "DEFAULT_$LINE"
6884 else
6885 no_cache=1
6886 fi
6887
6888 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6889
e6cc62c6 6890fi;
10f2d63a
VZ
6891
6892 eval "$ac_cv_use_choice"
6893 if test "$no_cache" != 1; then
6894 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6895 fi
6896
6897 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6898 echo "$as_me:$LINENO: result: yes" >&5
6899echo "${ECHO_T}yes" >&6
10f2d63a 6900 else
e6cc62c6
VS
6901 echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6
10f2d63a 6903 fi
e6cc62c6 6904
10f2d63a 6905
5005acfe 6906 enablestring=
e6cc62c6
VS
6907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6908echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6909 no_cache=0
6910 # Check whether --enable-combobox or --disable-combobox was given.
6911if test "${enable_combobox+set}" = set; then
6912 enableval="$enable_combobox"
e6cc62c6 6913
10f2d63a
VZ
6914 if test "$enableval" = yes; then
6915 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6916 else
6917 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6918 fi
e6cc62c6 6919
10f2d63a 6920else
e6cc62c6 6921
10f2d63a
VZ
6922 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6923 if test "x$LINE" != x ; then
6924 eval "DEFAULT_$LINE"
6925 else
6926 no_cache=1
6927 fi
6928
6929 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6930
e6cc62c6 6931fi;
10f2d63a
VZ
6932
6933 eval "$ac_cv_use_combobox"
6934 if test "$no_cache" != 1; then
6935 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6936 fi
6937
6938 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6939 echo "$as_me:$LINENO: result: yes" >&5
6940echo "${ECHO_T}yes" >&6
10f2d63a 6941 else
e6cc62c6
VS
6942 echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6
10f2d63a 6944 fi
e6cc62c6 6945
10f2d63a 6946
da494b40 6947 enablestring=
e6cc62c6
VS
6948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6949echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6950 no_cache=0
6951 # Check whether --enable-display or --disable-display was given.
6952if test "${enable_display+set}" = set; then
6953 enableval="$enable_display"
e6cc62c6 6954
da494b40
MB
6955 if test "$enableval" = yes; then
6956 ac_cv_use_display='wxUSE_DISPLAY=yes'
6957 else
6958 ac_cv_use_display='wxUSE_DISPLAY=no'
6959 fi
e6cc62c6 6960
da494b40 6961else
e6cc62c6 6962
da494b40
MB
6963 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6964 if test "x$LINE" != x ; then
6965 eval "DEFAULT_$LINE"
6966 else
6967 no_cache=1
6968 fi
6969
6970 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6971
e6cc62c6 6972fi;
da494b40
MB
6973
6974 eval "$ac_cv_use_display"
6975 if test "$no_cache" != 1; then
6976 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6977 fi
6978
6979 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6980 echo "$as_me:$LINENO: result: yes" >&5
6981echo "${ECHO_T}yes" >&6
da494b40 6982 else
e6cc62c6
VS
6983 echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6
da494b40 6985 fi
e6cc62c6 6986
da494b40 6987
5005acfe 6988 enablestring=
e6cc62c6
VS
6989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6990echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6991 no_cache=0
6992 # Check whether --enable-gauge or --disable-gauge was given.
6993if test "${enable_gauge+set}" = set; then
6994 enableval="$enable_gauge"
e6cc62c6 6995
10f2d63a
VZ
6996 if test "$enableval" = yes; then
6997 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6998 else
6999 ac_cv_use_gauge='wxUSE_GAUGE=no'
7000 fi
e6cc62c6 7001
10f2d63a 7002else
e6cc62c6 7003
10f2d63a
VZ
7004 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7005 if test "x$LINE" != x ; then
7006 eval "DEFAULT_$LINE"
7007 else
7008 no_cache=1
7009 fi
7010
7011 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7012
e6cc62c6 7013fi;
10f2d63a
VZ
7014
7015 eval "$ac_cv_use_gauge"
7016 if test "$no_cache" != 1; then
7017 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7018 fi
7019
7020 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7021 echo "$as_me:$LINENO: result: yes" >&5
7022echo "${ECHO_T}yes" >&6
10f2d63a 7023 else
e6cc62c6
VS
7024 echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6
10f2d63a 7026 fi
e6cc62c6 7027
10f2d63a 7028
5005acfe 7029 enablestring=
e6cc62c6
VS
7030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7031echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7032 no_cache=0
7033 # Check whether --enable-grid or --disable-grid was given.
7034if test "${enable_grid+set}" = set; then
7035 enableval="$enable_grid"
e6cc62c6 7036
10f2d63a
VZ
7037 if test "$enableval" = yes; then
7038 ac_cv_use_grid='wxUSE_GRID=yes'
7039 else
7040 ac_cv_use_grid='wxUSE_GRID=no'
7041 fi
e6cc62c6 7042
10f2d63a 7043else
e6cc62c6 7044
10f2d63a
VZ
7045 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7046 if test "x$LINE" != x ; then
7047 eval "DEFAULT_$LINE"
7048 else
7049 no_cache=1
7050 fi
7051
7052 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7053
e6cc62c6 7054fi;
10f2d63a
VZ
7055
7056 eval "$ac_cv_use_grid"
7057 if test "$no_cache" != 1; then
7058 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7059 fi
7060
7061 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7062 echo "$as_me:$LINENO: result: yes" >&5
7063echo "${ECHO_T}yes" >&6
10f2d63a 7064 else
e6cc62c6
VS
7065 echo "$as_me:$LINENO: result: no" >&5
7066echo "${ECHO_T}no" >&6
10f2d63a 7067 fi
e6cc62c6 7068
10f2d63a 7069
5005acfe 7070 enablestring=
e6cc62c6
VS
7071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7072echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7073 no_cache=0
7074 # Check whether --enable-imaglist or --disable-imaglist was given.
7075if test "${enable_imaglist+set}" = set; then
7076 enableval="$enable_imaglist"
e6cc62c6 7077
10f2d63a
VZ
7078 if test "$enableval" = yes; then
7079 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7080 else
7081 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7082 fi
e6cc62c6 7083
10f2d63a 7084else
e6cc62c6 7085
10f2d63a
VZ
7086 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7087 if test "x$LINE" != x ; then
7088 eval "DEFAULT_$LINE"
7089 else
7090 no_cache=1
7091 fi
7092
7093 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7094
e6cc62c6 7095fi;
10f2d63a
VZ
7096
7097 eval "$ac_cv_use_imaglist"
7098 if test "$no_cache" != 1; then
7099 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7100 fi
7101
7102 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7103 echo "$as_me:$LINENO: result: yes" >&5
7104echo "${ECHO_T}yes" >&6
10f2d63a 7105 else
e6cc62c6
VS
7106 echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6
10f2d63a 7108 fi
e6cc62c6 7109
10f2d63a 7110
5005acfe 7111 enablestring=
e6cc62c6
VS
7112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7113echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7114 no_cache=0
7115 # Check whether --enable-listbox or --disable-listbox was given.
7116if test "${enable_listbox+set}" = set; then
7117 enableval="$enable_listbox"
e6cc62c6 7118
10f2d63a
VZ
7119 if test "$enableval" = yes; then
7120 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7121 else
7122 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7123 fi
e6cc62c6 7124
10f2d63a 7125else
e6cc62c6 7126
10f2d63a
VZ
7127 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7128 if test "x$LINE" != x ; then
7129 eval "DEFAULT_$LINE"
7130 else
7131 no_cache=1
7132 fi
7133
7134 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7135
e6cc62c6 7136fi;
10f2d63a
VZ
7137
7138 eval "$ac_cv_use_listbox"
7139 if test "$no_cache" != 1; then
7140 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7141 fi
7142
7143 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7144 echo "$as_me:$LINENO: result: yes" >&5
7145echo "${ECHO_T}yes" >&6
10f2d63a 7146 else
e6cc62c6
VS
7147 echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6
10f2d63a 7149 fi
e6cc62c6 7150
10f2d63a 7151
5005acfe 7152 enablestring=
e6cc62c6
VS
7153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7154echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7155 no_cache=0
7156 # Check whether --enable-listctrl or --disable-listctrl was given.
7157if test "${enable_listctrl+set}" = set; then
7158 enableval="$enable_listctrl"
e6cc62c6 7159
10f2d63a
VZ
7160 if test "$enableval" = yes; then
7161 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7162 else
7163 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7164 fi
e6cc62c6 7165
10f2d63a 7166else
e6cc62c6 7167
10f2d63a
VZ
7168 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7169 if test "x$LINE" != x ; then
7170 eval "DEFAULT_$LINE"
7171 else
7172 no_cache=1
7173 fi
7174
7175 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7176
e6cc62c6 7177fi;
10f2d63a
VZ
7178
7179 eval "$ac_cv_use_listctrl"
7180 if test "$no_cache" != 1; then
7181 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7182 fi
7183
7184 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7185 echo "$as_me:$LINENO: result: yes" >&5
7186echo "${ECHO_T}yes" >&6
10f2d63a 7187 else
e6cc62c6
VS
7188 echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
10f2d63a 7190 fi
e6cc62c6 7191
10f2d63a 7192
5005acfe 7193 enablestring=
e6cc62c6
VS
7194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7195echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7196 no_cache=0
7197 # Check whether --enable-notebook or --disable-notebook was given.
7198if test "${enable_notebook+set}" = set; then
7199 enableval="$enable_notebook"
e6cc62c6 7200
10f2d63a
VZ
7201 if test "$enableval" = yes; then
7202 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7203 else
7204 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7205 fi
e6cc62c6 7206
10f2d63a 7207else
e6cc62c6 7208
10f2d63a
VZ
7209 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7210 if test "x$LINE" != x ; then
7211 eval "DEFAULT_$LINE"
7212 else
7213 no_cache=1
7214 fi
7215
7216 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7217
e6cc62c6 7218fi;
10f2d63a
VZ
7219
7220 eval "$ac_cv_use_notebook"
7221 if test "$no_cache" != 1; then
7222 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7223 fi
7224
7225 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7226 echo "$as_me:$LINENO: result: yes" >&5
7227echo "${ECHO_T}yes" >&6
10f2d63a 7228 else
e6cc62c6
VS
7229 echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6
10f2d63a 7231 fi
e6cc62c6 7232
10f2d63a 7233
5005acfe 7234 enablestring=
e6cc62c6
VS
7235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7236echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7237 no_cache=0
7238 # Check whether --enable-radiobox or --disable-radiobox was given.
7239if test "${enable_radiobox+set}" = set; then
7240 enableval="$enable_radiobox"
e6cc62c6 7241
10f2d63a
VZ
7242 if test "$enableval" = yes; then
7243 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7244 else
7245 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7246 fi
e6cc62c6 7247
10f2d63a 7248else
e6cc62c6 7249
10f2d63a
VZ
7250 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7251 if test "x$LINE" != x ; then
7252 eval "DEFAULT_$LINE"
7253 else
7254 no_cache=1
7255 fi
7256
7257 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7258
e6cc62c6 7259fi;
10f2d63a
VZ
7260
7261 eval "$ac_cv_use_radiobox"
7262 if test "$no_cache" != 1; then
7263 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7264 fi
7265
7266 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7267 echo "$as_me:$LINENO: result: yes" >&5
7268echo "${ECHO_T}yes" >&6
10f2d63a 7269 else
e6cc62c6
VS
7270 echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6
10f2d63a 7272 fi
e6cc62c6 7273
10f2d63a 7274
5005acfe 7275 enablestring=
e6cc62c6
VS
7276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7277echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7278 no_cache=0
7279 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7280if test "${enable_radiobtn+set}" = set; then
7281 enableval="$enable_radiobtn"
e6cc62c6 7282
10f2d63a
VZ
7283 if test "$enableval" = yes; then
7284 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7285 else
7286 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7287 fi
e6cc62c6 7288
10f2d63a 7289else
e6cc62c6 7290
10f2d63a
VZ
7291 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7299
e6cc62c6 7300fi;
10f2d63a
VZ
7301
7302 eval "$ac_cv_use_radiobtn"
7303 if test "$no_cache" != 1; then
7304 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7305 fi
7306
7307 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7308 echo "$as_me:$LINENO: result: yes" >&5
7309echo "${ECHO_T}yes" >&6
10f2d63a 7310 else
e6cc62c6
VS
7311 echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
10f2d63a 7313 fi
e6cc62c6 7314
10f2d63a 7315
5005acfe 7316 enablestring=
e6cc62c6
VS
7317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7318echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7319 no_cache=0
7320 # Check whether --enable-sash or --disable-sash was given.
7321if test "${enable_sash+set}" = set; then
7322 enableval="$enable_sash"
e6cc62c6 7323
10f2d63a
VZ
7324 if test "$enableval" = yes; then
7325 ac_cv_use_sash='wxUSE_SASH=yes'
7326 else
7327 ac_cv_use_sash='wxUSE_SASH=no'
7328 fi
e6cc62c6 7329
10f2d63a 7330else
e6cc62c6 7331
10f2d63a
VZ
7332 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7333 if test "x$LINE" != x ; then
7334 eval "DEFAULT_$LINE"
7335 else
7336 no_cache=1
7337 fi
7338
7339 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7340
e6cc62c6 7341fi;
10f2d63a
VZ
7342
7343 eval "$ac_cv_use_sash"
7344 if test "$no_cache" != 1; then
7345 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7346 fi
7347
7348 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7349 echo "$as_me:$LINENO: result: yes" >&5
7350echo "${ECHO_T}yes" >&6
10f2d63a 7351 else
e6cc62c6
VS
7352 echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6
10f2d63a 7354 fi
e6cc62c6 7355
10f2d63a 7356
5005acfe 7357 enablestring=
e6cc62c6
VS
7358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7359echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7360 no_cache=0
7361 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7362if test "${enable_scrollbar+set}" = set; then
7363 enableval="$enable_scrollbar"
e6cc62c6 7364
10f2d63a
VZ
7365 if test "$enableval" = yes; then
7366 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7367 else
7368 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7369 fi
e6cc62c6 7370
10f2d63a 7371else
e6cc62c6 7372
10f2d63a
VZ
7373 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7381
e6cc62c6 7382fi;
10f2d63a
VZ
7383
7384 eval "$ac_cv_use_scrollbar"
7385 if test "$no_cache" != 1; then
7386 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7387 fi
7388
7389 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7390 echo "$as_me:$LINENO: result: yes" >&5
7391echo "${ECHO_T}yes" >&6
10f2d63a 7392 else
e6cc62c6
VS
7393 echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6
10f2d63a 7395 fi
e6cc62c6 7396
10f2d63a 7397
5005acfe 7398 enablestring=
e6cc62c6
VS
7399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7400echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7401 no_cache=0
7402 # Check whether --enable-slider or --disable-slider was given.
7403if test "${enable_slider+set}" = set; then
7404 enableval="$enable_slider"
e6cc62c6 7405
10f2d63a
VZ
7406 if test "$enableval" = yes; then
7407 ac_cv_use_slider='wxUSE_SLIDER=yes'
7408 else
7409 ac_cv_use_slider='wxUSE_SLIDER=no'
7410 fi
e6cc62c6 7411
10f2d63a 7412else
e6cc62c6 7413
10f2d63a
VZ
7414 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7415 if test "x$LINE" != x ; then
7416 eval "DEFAULT_$LINE"
7417 else
7418 no_cache=1
7419 fi
7420
7421 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7422
e6cc62c6 7423fi;
10f2d63a
VZ
7424
7425 eval "$ac_cv_use_slider"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7431 echo "$as_me:$LINENO: result: yes" >&5
7432echo "${ECHO_T}yes" >&6
10f2d63a 7433 else
e6cc62c6
VS
7434 echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6
10f2d63a 7436 fi
e6cc62c6 7437
10f2d63a 7438
5005acfe 7439 enablestring=
e6cc62c6
VS
7440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7441echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7442 no_cache=0
7443 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7444if test "${enable_spinbtn+set}" = set; then
7445 enableval="$enable_spinbtn"
e6cc62c6 7446
10f2d63a
VZ
7447 if test "$enableval" = yes; then
7448 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7449 else
7450 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7451 fi
e6cc62c6 7452
10f2d63a 7453else
e6cc62c6 7454
10f2d63a
VZ
7455 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7463
e6cc62c6 7464fi;
10f2d63a
VZ
7465
7466 eval "$ac_cv_use_spinbtn"
7467 if test "$no_cache" != 1; then
7468 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7469 fi
7470
7471 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7472 echo "$as_me:$LINENO: result: yes" >&5
7473echo "${ECHO_T}yes" >&6
10f2d63a 7474 else
e6cc62c6
VS
7475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
10f2d63a 7477 fi
e6cc62c6 7478
10f2d63a 7479
5005acfe 7480 enablestring=
e6cc62c6
VS
7481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7482echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7483 no_cache=0
7484 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7485if test "${enable_spinctrl+set}" = set; then
7486 enableval="$enable_spinctrl"
e6cc62c6 7487
56cfaa52
RR
7488 if test "$enableval" = yes; then
7489 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7490 else
7491 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7492 fi
e6cc62c6 7493
56cfaa52 7494else
e6cc62c6 7495
56cfaa52
RR
7496 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7497 if test "x$LINE" != x ; then
7498 eval "DEFAULT_$LINE"
7499 else
7500 no_cache=1
7501 fi
7502
7503 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7504
e6cc62c6 7505fi;
56cfaa52
RR
7506
7507 eval "$ac_cv_use_spinctrl"
7508 if test "$no_cache" != 1; then
7509 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7510 fi
7511
7512 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7513 echo "$as_me:$LINENO: result: yes" >&5
7514echo "${ECHO_T}yes" >&6
56cfaa52 7515 else
e6cc62c6
VS
7516 echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6
56cfaa52 7518 fi
e6cc62c6 7519
56cfaa52 7520
5005acfe 7521 enablestring=
e6cc62c6
VS
7522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7523echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7524 no_cache=0
7525 # Check whether --enable-splitter or --disable-splitter was given.
7526if test "${enable_splitter+set}" = set; then
7527 enableval="$enable_splitter"
e6cc62c6 7528
10f2d63a
VZ
7529 if test "$enableval" = yes; then
7530 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7531 else
7532 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7533 fi
e6cc62c6 7534
10f2d63a 7535else
e6cc62c6 7536
10f2d63a
VZ
7537 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7538 if test "x$LINE" != x ; then
7539 eval "DEFAULT_$LINE"
7540 else
7541 no_cache=1
7542 fi
7543
7544 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7545
e6cc62c6 7546fi;
10f2d63a
VZ
7547
7548 eval "$ac_cv_use_splitter"
7549 if test "$no_cache" != 1; then
7550 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7551 fi
7552
7553 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7554 echo "$as_me:$LINENO: result: yes" >&5
7555echo "${ECHO_T}yes" >&6
10f2d63a 7556 else
e6cc62c6
VS
7557 echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
10f2d63a 7559 fi
e6cc62c6 7560
10f2d63a 7561
5005acfe 7562 enablestring=
e6cc62c6
VS
7563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7564echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7565 no_cache=0
7566 # Check whether --enable-statbmp or --disable-statbmp was given.
7567if test "${enable_statbmp+set}" = set; then
7568 enableval="$enable_statbmp"
e6cc62c6 7569
10f2d63a
VZ
7570 if test "$enableval" = yes; then
7571 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7572 else
7573 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7574 fi
e6cc62c6 7575
10f2d63a 7576else
e6cc62c6 7577
10f2d63a
VZ
7578 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7586
e6cc62c6 7587fi;
10f2d63a
VZ
7588
7589 eval "$ac_cv_use_statbmp"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7595 echo "$as_me:$LINENO: result: yes" >&5
7596echo "${ECHO_T}yes" >&6
10f2d63a 7597 else
e6cc62c6
VS
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
10f2d63a 7600 fi
e6cc62c6 7601
10f2d63a 7602
5005acfe 7603 enablestring=
e6cc62c6
VS
7604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7605echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7606 no_cache=0
7607 # Check whether --enable-statbox or --disable-statbox was given.
7608if test "${enable_statbox+set}" = set; then
7609 enableval="$enable_statbox"
e6cc62c6 7610
10f2d63a
VZ
7611 if test "$enableval" = yes; then
7612 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7613 else
7614 ac_cv_use_statbox='wxUSE_STATBOX=no'
7615 fi
e6cc62c6 7616
10f2d63a 7617else
e6cc62c6 7618
10f2d63a
VZ
7619 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7627
e6cc62c6 7628fi;
10f2d63a
VZ
7629
7630 eval "$ac_cv_use_statbox"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7636 echo "$as_me:$LINENO: result: yes" >&5
7637echo "${ECHO_T}yes" >&6
10f2d63a 7638 else
e6cc62c6
VS
7639 echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
10f2d63a 7641 fi
e6cc62c6 7642
10f2d63a 7643
5005acfe 7644 enablestring=
e6cc62c6
VS
7645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7646echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7647 no_cache=0
7648 # Check whether --enable-statline or --disable-statline was given.
7649if test "${enable_statline+set}" = set; then
7650 enableval="$enable_statline"
e6cc62c6 7651
10f2d63a
VZ
7652 if test "$enableval" = yes; then
7653 ac_cv_use_statline='wxUSE_STATLINE=yes'
7654 else
7655 ac_cv_use_statline='wxUSE_STATLINE=no'
7656 fi
e6cc62c6 7657
10f2d63a 7658else
e6cc62c6 7659
10f2d63a
VZ
7660 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7661 if test "x$LINE" != x ; then
7662 eval "DEFAULT_$LINE"
7663 else
7664 no_cache=1
7665 fi
7666
7667 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7668
e6cc62c6 7669fi;
10f2d63a
VZ
7670
7671 eval "$ac_cv_use_statline"
7672 if test "$no_cache" != 1; then
7673 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7674 fi
7675
7676 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7677 echo "$as_me:$LINENO: result: yes" >&5
7678echo "${ECHO_T}yes" >&6
10f2d63a 7679 else
e6cc62c6
VS
7680 echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
10f2d63a 7682 fi
e6cc62c6 7683
10f2d63a 7684
5005acfe 7685 enablestring=
e6cc62c6
VS
7686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7687echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7688 no_cache=0
7689 # Check whether --enable-stattext or --disable-stattext was given.
7690if test "${enable_stattext+set}" = set; then
7691 enableval="$enable_stattext"
e6cc62c6 7692
1e6feb95
VZ
7693 if test "$enableval" = yes; then
7694 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7695 else
7696 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7697 fi
e6cc62c6 7698
1e6feb95 7699else
e6cc62c6 7700
1e6feb95
VZ
7701 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7702 if test "x$LINE" != x ; then
7703 eval "DEFAULT_$LINE"
7704 else
7705 no_cache=1
7706 fi
7707
7708 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7709
e6cc62c6 7710fi;
1e6feb95
VZ
7711
7712 eval "$ac_cv_use_stattext"
7713 if test "$no_cache" != 1; then
7714 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7715 fi
7716
7717 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7718 echo "$as_me:$LINENO: result: yes" >&5
7719echo "${ECHO_T}yes" >&6
1e6feb95 7720 else
e6cc62c6
VS
7721 echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6
1e6feb95 7723 fi
e6cc62c6 7724
1e6feb95 7725
5005acfe 7726 enablestring=
e6cc62c6
VS
7727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7728echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7729 no_cache=0
7730 # Check whether --enable-statusbar or --disable-statusbar was given.
7731if test "${enable_statusbar+set}" = set; then
7732 enableval="$enable_statusbar"
e6cc62c6 7733
10f2d63a
VZ
7734 if test "$enableval" = yes; then
7735 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7736 else
7737 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7738 fi
e6cc62c6 7739
10f2d63a 7740else
e6cc62c6 7741
10f2d63a
VZ
7742 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7743 if test "x$LINE" != x ; then
7744 eval "DEFAULT_$LINE"
7745 else
7746 no_cache=1
7747 fi
7748
7749 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7750
e6cc62c6 7751fi;
10f2d63a
VZ
7752
7753 eval "$ac_cv_use_statusbar"
7754 if test "$no_cache" != 1; then
7755 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7756 fi
7757
7758 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7759 echo "$as_me:$LINENO: result: yes" >&5
7760echo "${ECHO_T}yes" >&6
10f2d63a 7761 else
e6cc62c6
VS
7762 echo "$as_me:$LINENO: result: no" >&5
7763echo "${ECHO_T}no" >&6
10f2d63a 7764 fi
e6cc62c6 7765
10f2d63a 7766
5005acfe 7767 enablestring=
e6cc62c6
VS
7768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7769echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7770 no_cache=0
7771 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7772if test "${enable_tabdialog+set}" = set; then
7773 enableval="$enable_tabdialog"
e6cc62c6 7774
10f2d63a
VZ
7775 if test "$enableval" = yes; then
7776 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7777 else
7778 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7779 fi
e6cc62c6 7780
10f2d63a 7781else
e6cc62c6 7782
10f2d63a
VZ
7783 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7784 if test "x$LINE" != x ; then
7785 eval "DEFAULT_$LINE"
7786 else
7787 no_cache=1
7788 fi
7789
7790 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7791
e6cc62c6 7792fi;
10f2d63a
VZ
7793
7794 eval "$ac_cv_use_tabdialog"
7795 if test "$no_cache" != 1; then
7796 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7797 fi
7798
7799 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7800 echo "$as_me:$LINENO: result: yes" >&5
7801echo "${ECHO_T}yes" >&6
10f2d63a 7802 else
e6cc62c6
VS
7803 echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6
10f2d63a 7805 fi
e6cc62c6 7806
10f2d63a 7807
5005acfe 7808 enablestring=
e6cc62c6
VS
7809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7810echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7811 no_cache=0
7812 # Check whether --enable-textctrl or --disable-textctrl was given.
7813if test "${enable_textctrl+set}" = set; then
7814 enableval="$enable_textctrl"
e6cc62c6 7815
1e6feb95
VZ
7816 if test "$enableval" = yes; then
7817 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7818 else
7819 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7820 fi
e6cc62c6 7821
1e6feb95 7822else
e6cc62c6 7823
1e6feb95
VZ
7824 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7825 if test "x$LINE" != x ; then
7826 eval "DEFAULT_$LINE"
7827 else
7828 no_cache=1
7829 fi
7830
7831 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7832
e6cc62c6 7833fi;
1e6feb95
VZ
7834
7835 eval "$ac_cv_use_textctrl"
7836 if test "$no_cache" != 1; then
7837 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7838 fi
7839
7840 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7841 echo "$as_me:$LINENO: result: yes" >&5
7842echo "${ECHO_T}yes" >&6
1e6feb95 7843 else
e6cc62c6
VS
7844 echo "$as_me:$LINENO: result: no" >&5
7845echo "${ECHO_T}no" >&6
1e6feb95 7846 fi
e6cc62c6 7847
1e6feb95 7848
5005acfe 7849 enablestring=
e6cc62c6
VS
7850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7851echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7852 no_cache=0
7853 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7854if test "${enable_togglebtn+set}" = set; then
7855 enableval="$enable_togglebtn"
e6cc62c6 7856
1db8dc4a
VZ
7857 if test "$enableval" = yes; then
7858 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7859 else
7860 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7861 fi
e6cc62c6 7862
1db8dc4a 7863else
e6cc62c6 7864
1db8dc4a
VZ
7865 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7866 if test "x$LINE" != x ; then
7867 eval "DEFAULT_$LINE"
7868 else
7869 no_cache=1
7870 fi
7871
7872 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7873
e6cc62c6 7874fi;
1db8dc4a
VZ
7875
7876 eval "$ac_cv_use_togglebtn"
7877 if test "$no_cache" != 1; then
7878 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7879 fi
7880
7881 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7882 echo "$as_me:$LINENO: result: yes" >&5
7883echo "${ECHO_T}yes" >&6
1db8dc4a 7884 else
e6cc62c6
VS
7885 echo "$as_me:$LINENO: result: no" >&5
7886echo "${ECHO_T}no" >&6
1db8dc4a 7887 fi
e6cc62c6 7888
1db8dc4a 7889
5005acfe 7890 enablestring=
e6cc62c6
VS
7891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7892echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7893 no_cache=0
7894 # Check whether --enable-toolbar or --disable-toolbar was given.
7895if test "${enable_toolbar+set}" = set; then
7896 enableval="$enable_toolbar"
e6cc62c6 7897
10f2d63a
VZ
7898 if test "$enableval" = yes; then
7899 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7900 else
7901 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7902 fi
e6cc62c6 7903
10f2d63a 7904else
e6cc62c6 7905
10f2d63a
VZ
7906 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7914
e6cc62c6 7915fi;
10f2d63a
VZ
7916
7917 eval "$ac_cv_use_toolbar"
7918 if test "$no_cache" != 1; then
7919 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7920 fi
7921
7922 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7923 echo "$as_me:$LINENO: result: yes" >&5
7924echo "${ECHO_T}yes" >&6
10f2d63a 7925 else
e6cc62c6
VS
7926 echo "$as_me:$LINENO: result: no" >&5
7927echo "${ECHO_T}no" >&6
10f2d63a 7928 fi
e6cc62c6 7929
10f2d63a 7930
5005acfe 7931 enablestring=
e6cc62c6
VS
7932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7933echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7934 no_cache=0
7935 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7936if test "${enable_tbarnative+set}" = set; then
7937 enableval="$enable_tbarnative"
e6cc62c6 7938
360d6699
VZ
7939 if test "$enableval" = yes; then
7940 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7941 else
7942 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7943 fi
e6cc62c6 7944
360d6699 7945else
e6cc62c6 7946
360d6699
VZ
7947 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7948 if test "x$LINE" != x ; then
7949 eval "DEFAULT_$LINE"
7950 else
7951 no_cache=1
7952 fi
7953
7954 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7955
e6cc62c6 7956fi;
360d6699
VZ
7957
7958 eval "$ac_cv_use_tbarnative"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7964 echo "$as_me:$LINENO: result: yes" >&5
7965echo "${ECHO_T}yes" >&6
360d6699 7966 else
e6cc62c6
VS
7967 echo "$as_me:$LINENO: result: no" >&5
7968echo "${ECHO_T}no" >&6
360d6699 7969 fi
e6cc62c6 7970
360d6699 7971
5005acfe 7972 enablestring=
e6cc62c6
VS
7973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7974echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7975 no_cache=0
7976 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7977if test "${enable_tbarsmpl+set}" = set; then
7978 enableval="$enable_tbarsmpl"
e6cc62c6 7979
360d6699
VZ
7980 if test "$enableval" = yes; then
7981 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7982 else
7983 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7984 fi
e6cc62c6 7985
360d6699 7986else
e6cc62c6 7987
360d6699
VZ
7988 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7989 if test "x$LINE" != x ; then
7990 eval "DEFAULT_$LINE"
7991 else
7992 no_cache=1
7993 fi
7994
7995 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7996
e6cc62c6 7997fi;
360d6699
VZ
7998
7999 eval "$ac_cv_use_tbarsmpl"
8000 if test "$no_cache" != 1; then
8001 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8002 fi
8003
8004 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8005 echo "$as_me:$LINENO: result: yes" >&5
8006echo "${ECHO_T}yes" >&6
360d6699 8007 else
e6cc62c6
VS
8008 echo "$as_me:$LINENO: result: no" >&5
8009echo "${ECHO_T}no" >&6
360d6699 8010 fi
e6cc62c6 8011
360d6699 8012
5005acfe 8013 enablestring=
e6cc62c6
VS
8014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8015echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8016 no_cache=0
8017 # Check whether --enable-treectrl or --disable-treectrl was given.
8018if test "${enable_treectrl+set}" = set; then
8019 enableval="$enable_treectrl"
e6cc62c6 8020
10f2d63a
VZ
8021 if test "$enableval" = yes; then
8022 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8023 else
8024 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8025 fi
e6cc62c6 8026
10f2d63a 8027else
e6cc62c6 8028
10f2d63a
VZ
8029 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8030 if test "x$LINE" != x ; then
8031 eval "DEFAULT_$LINE"
8032 else
8033 no_cache=1
8034 fi
8035
8036 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8037
e6cc62c6 8038fi;
10f2d63a 8039
1e6feb95
VZ
8040 eval "$ac_cv_use_treectrl"
8041 if test "$no_cache" != 1; then
8042 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8043 fi
8044
8045 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8046 echo "$as_me:$LINENO: result: yes" >&5
8047echo "${ECHO_T}yes" >&6
1e6feb95 8048 else
e6cc62c6
VS
8049 echo "$as_me:$LINENO: result: no" >&5
8050echo "${ECHO_T}no" >&6
1e6feb95 8051 fi
e6cc62c6 8052
1e6feb95 8053
5005acfe 8054 enablestring=
e6cc62c6
VS
8055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8056echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8057 no_cache=0
8058 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8059if test "${enable_tipwindow+set}" = set; then
8060 enableval="$enable_tipwindow"
e6cc62c6 8061
9926e4a4
VZ
8062 if test "$enableval" = yes; then
8063 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8064 else
8065 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8066 fi
e6cc62c6 8067
9926e4a4 8068else
e6cc62c6 8069
9926e4a4
VZ
8070 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8071 if test "x$LINE" != x ; then
8072 eval "DEFAULT_$LINE"
8073 else
8074 no_cache=1
8075 fi
8076
8077 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8078
e6cc62c6 8079fi;
9926e4a4
VZ
8080
8081 eval "$ac_cv_use_tipwindow"
8082 if test "$no_cache" != 1; then
8083 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8084 fi
8085
8086 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8087 echo "$as_me:$LINENO: result: yes" >&5
8088echo "${ECHO_T}yes" >&6
9926e4a4 8089 else
e6cc62c6
VS
8090 echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
9926e4a4 8092 fi
e6cc62c6 8093
9926e4a4 8094
5005acfe 8095 enablestring=
e6cc62c6
VS
8096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8097echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8098 no_cache=0
8099 # Check whether --enable-popupwin or --disable-popupwin was given.
8100if test "${enable_popupwin+set}" = set; then
8101 enableval="$enable_popupwin"
e6cc62c6 8102
9f41d601
RR
8103 if test "$enableval" = yes; then
8104 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8105 else
8106 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8107 fi
e6cc62c6 8108
9f41d601 8109else
e6cc62c6 8110
9f41d601
RR
8111 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8112 if test "x$LINE" != x ; then
8113 eval "DEFAULT_$LINE"
8114 else
8115 no_cache=1
8116 fi
8117
8118 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8119
e6cc62c6 8120fi;
9f41d601
RR
8121
8122 eval "$ac_cv_use_popupwin"
8123 if test "$no_cache" != 1; then
8124 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8125 fi
8126
8127 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8128 echo "$as_me:$LINENO: result: yes" >&5
8129echo "${ECHO_T}yes" >&6
9f41d601 8130 else
e6cc62c6
VS
8131 echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
9f41d601 8133 fi
e6cc62c6 8134
52127426 8135
8284b0c5
MB
8136
8137
5005acfe 8138 enablestring=
e6cc62c6
VS
8139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8140echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8141 no_cache=0
8142 # Check whether --enable-commondlg or --disable-commondlg was given.
8143if test "${enable_commondlg+set}" = set; then
8144 enableval="$enable_commondlg"
e6cc62c6 8145
1e6feb95
VZ
8146 if test "$enableval" = yes; then
8147 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8148 else
8149 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8150 fi
e6cc62c6 8151
1e6feb95 8152else
e6cc62c6 8153
1e6feb95
VZ
8154 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8155 if test "x$LINE" != x ; then
8156 eval "DEFAULT_$LINE"
8157 else
8158 no_cache=1
8159 fi
8160
8161 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8162
e6cc62c6 8163fi;
1e6feb95
VZ
8164
8165 eval "$ac_cv_use_commondlg"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8171 echo "$as_me:$LINENO: result: yes" >&5
8172echo "${ECHO_T}yes" >&6
1e6feb95 8173 else
e6cc62c6
VS
8174 echo "$as_me:$LINENO: result: no" >&5
8175echo "${ECHO_T}no" >&6
1e6feb95 8176 fi
e6cc62c6 8177
1e6feb95 8178
5005acfe 8179 enablestring=
e6cc62c6
VS
8180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8181echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8182 no_cache=0
8183 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8184if test "${enable_choicedlg+set}" = set; then
8185 enableval="$enable_choicedlg"
e6cc62c6 8186
1e6feb95
VZ
8187 if test "$enableval" = yes; then
8188 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8189 else
8190 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8191 fi
e6cc62c6 8192
1e6feb95 8193else
e6cc62c6 8194
1e6feb95
VZ
8195 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8196 if test "x$LINE" != x ; then
8197 eval "DEFAULT_$LINE"
8198 else
8199 no_cache=1
8200 fi
8201
8202 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8203
e6cc62c6 8204fi;
1e6feb95
VZ
8205
8206 eval "$ac_cv_use_choicedlg"
8207 if test "$no_cache" != 1; then
8208 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8209 fi
8210
8211 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8212 echo "$as_me:$LINENO: result: yes" >&5
8213echo "${ECHO_T}yes" >&6
1e6feb95 8214 else
e6cc62c6
VS
8215 echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6
1e6feb95 8217 fi
e6cc62c6 8218
1e6feb95 8219
5005acfe 8220 enablestring=
e6cc62c6
VS
8221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8222echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8223 no_cache=0
8224 # Check whether --enable-coldlg or --disable-coldlg was given.
8225if test "${enable_coldlg+set}" = set; then
8226 enableval="$enable_coldlg"
e6cc62c6 8227
1e6feb95
VZ
8228 if test "$enableval" = yes; then
8229 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8230 else
8231 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8232 fi
e6cc62c6 8233
1e6feb95 8234else
e6cc62c6 8235
1e6feb95
VZ
8236 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8237 if test "x$LINE" != x ; then
8238 eval "DEFAULT_$LINE"
8239 else
8240 no_cache=1
8241 fi
8242
8243 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8244
e6cc62c6 8245fi;
1e6feb95
VZ
8246
8247 eval "$ac_cv_use_coldlg"
8248 if test "$no_cache" != 1; then
8249 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8250 fi
8251
8252 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8253 echo "$as_me:$LINENO: result: yes" >&5
8254echo "${ECHO_T}yes" >&6
1e6feb95 8255 else
e6cc62c6
VS
8256 echo "$as_me:$LINENO: result: no" >&5
8257echo "${ECHO_T}no" >&6
1e6feb95 8258 fi
e6cc62c6 8259
1e6feb95 8260
5005acfe 8261 enablestring=
e6cc62c6
VS
8262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8263echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8264 no_cache=0
8265 # Check whether --enable-filedlg or --disable-filedlg was given.
8266if test "${enable_filedlg+set}" = set; then
8267 enableval="$enable_filedlg"
e6cc62c6 8268
1e6feb95
VZ
8269 if test "$enableval" = yes; then
8270 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8271 else
8272 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8273 fi
e6cc62c6 8274
1e6feb95 8275else
e6cc62c6 8276
1e6feb95
VZ
8277 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8278 if test "x$LINE" != x ; then
8279 eval "DEFAULT_$LINE"
8280 else
8281 no_cache=1
8282 fi
8283
8284 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8285
e6cc62c6 8286fi;
1e6feb95
VZ
8287
8288 eval "$ac_cv_use_filedlg"
8289 if test "$no_cache" != 1; then
8290 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8291 fi
8292
8293 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8294 echo "$as_me:$LINENO: result: yes" >&5
8295echo "${ECHO_T}yes" >&6
1e6feb95 8296 else
e6cc62c6
VS
8297 echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6
1e6feb95 8299 fi
e6cc62c6 8300
1e6feb95 8301
5005acfe 8302 enablestring=
e6cc62c6
VS
8303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8304echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8305 no_cache=0
69d27ff7
MB
8306 # Check whether --enable-finddlg or --disable-finddlg was given.
8307if test "${enable_finddlg+set}" = set; then
8308 enableval="$enable_finddlg"
e6cc62c6 8309
8db37e06 8310 if test "$enableval" = yes; then
69d27ff7 8311 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8312 else
69d27ff7 8313 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8314 fi
e6cc62c6 8315
8db37e06 8316else
e6cc62c6 8317
8db37e06
VZ
8318 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8319 if test "x$LINE" != x ; then
8320 eval "DEFAULT_$LINE"
8321 else
8322 no_cache=1
8323 fi
8324
69d27ff7 8325 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8326
e6cc62c6 8327fi;
8db37e06 8328
69d27ff7 8329 eval "$ac_cv_use_finddlg"
8db37e06 8330 if test "$no_cache" != 1; then
69d27ff7 8331 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8332 fi
8333
8334 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8335 echo "$as_me:$LINENO: result: yes" >&5
8336echo "${ECHO_T}yes" >&6
8db37e06 8337 else
e6cc62c6
VS
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
8db37e06 8340 fi
e6cc62c6 8341
8db37e06 8342
5005acfe 8343 enablestring=
e6cc62c6
VS
8344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8345echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8346 no_cache=0
8347 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8348if test "${enable_fontdlg+set}" = set; then
8349 enableval="$enable_fontdlg"
e6cc62c6 8350
1e6feb95
VZ
8351 if test "$enableval" = yes; then
8352 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8353 else
8354 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8355 fi
e6cc62c6 8356
1e6feb95 8357else
e6cc62c6 8358
1e6feb95
VZ
8359 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8360 if test "x$LINE" != x ; then
8361 eval "DEFAULT_$LINE"
8362 else
8363 no_cache=1
8364 fi
8365
8366 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8367
e6cc62c6 8368fi;
1e6feb95
VZ
8369
8370 eval "$ac_cv_use_fontdlg"
8371 if test "$no_cache" != 1; then
8372 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8373 fi
8374
8375 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8376 echo "$as_me:$LINENO: result: yes" >&5
8377echo "${ECHO_T}yes" >&6
1e6feb95 8378 else
e6cc62c6
VS
8379 echo "$as_me:$LINENO: result: no" >&5
8380echo "${ECHO_T}no" >&6
1e6feb95 8381 fi
e6cc62c6 8382
1e6feb95 8383
5005acfe 8384 enablestring=
e6cc62c6
VS
8385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8386echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8387 no_cache=0
8388 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8389if test "${enable_dirdlg+set}" = set; then
8390 enableval="$enable_dirdlg"
e6cc62c6 8391
1e6feb95
VZ
8392 if test "$enableval" = yes; then
8393 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8394 else
8395 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8396 fi
e6cc62c6 8397
1e6feb95 8398else
e6cc62c6 8399
1e6feb95
VZ
8400 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8401 if test "x$LINE" != x ; then
8402 eval "DEFAULT_$LINE"
8403 else
8404 no_cache=1
8405 fi
8406
8407 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8408
e6cc62c6 8409fi;
1e6feb95
VZ
8410
8411 eval "$ac_cv_use_dirdlg"
10f2d63a 8412 if test "$no_cache" != 1; then
1e6feb95 8413 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8414 fi
8415
1e6feb95 8416 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8417 echo "$as_me:$LINENO: result: yes" >&5
8418echo "${ECHO_T}yes" >&6
10f2d63a 8419 else
e6cc62c6
VS
8420 echo "$as_me:$LINENO: result: no" >&5
8421echo "${ECHO_T}no" >&6
10f2d63a 8422 fi
e6cc62c6 8423
698dcdb6 8424
5005acfe 8425 enablestring=
e6cc62c6
VS
8426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8427echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8428 no_cache=0
1e6feb95
VZ
8429 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8430if test "${enable_msgdlg+set}" = set; then
8431 enableval="$enable_msgdlg"
e6cc62c6 8432
10f2d63a 8433 if test "$enableval" = yes; then
1e6feb95 8434 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8435 else
1e6feb95 8436 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8437 fi
e6cc62c6 8438
10f2d63a 8439else
e6cc62c6 8440
1e6feb95 8441 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8442 if test "x$LINE" != x ; then
8443 eval "DEFAULT_$LINE"
8444 else
8445 no_cache=1
8446 fi
8447
1e6feb95 8448 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8449
e6cc62c6 8450fi;
10f2d63a 8451
1e6feb95 8452 eval "$ac_cv_use_msgdlg"
10f2d63a 8453 if test "$no_cache" != 1; then
1e6feb95 8454 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8455 fi
8456
1e6feb95 8457 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8458 echo "$as_me:$LINENO: result: yes" >&5
8459echo "${ECHO_T}yes" >&6
10f2d63a 8460 else
e6cc62c6
VS
8461 echo "$as_me:$LINENO: result: no" >&5
8462echo "${ECHO_T}no" >&6
10f2d63a 8463 fi
e6cc62c6 8464
10f2d63a 8465
5005acfe 8466 enablestring=
e6cc62c6
VS
8467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8468echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8469 no_cache=0
1e6feb95
VZ
8470 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8471if test "${enable_numberdlg+set}" = set; then
8472 enableval="$enable_numberdlg"
e6cc62c6 8473
10f2d63a 8474 if test "$enableval" = yes; then
1e6feb95 8475 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8476 else
1e6feb95 8477 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8478 fi
e6cc62c6 8479
10f2d63a 8480else
e6cc62c6 8481
1e6feb95 8482 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8483 if test "x$LINE" != x ; then
8484 eval "DEFAULT_$LINE"
8485 else
8486 no_cache=1
8487 fi
8488
1e6feb95 8489 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8490
e6cc62c6 8491fi;
10f2d63a 8492
1e6feb95 8493 eval "$ac_cv_use_numberdlg"
10f2d63a 8494 if test "$no_cache" != 1; then
1e6feb95 8495 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8496 fi
8497
1e6feb95 8498 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8499 echo "$as_me:$LINENO: result: yes" >&5
8500echo "${ECHO_T}yes" >&6
10f2d63a 8501 else
e6cc62c6
VS
8502 echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6
10f2d63a 8504 fi
e6cc62c6 8505
10f2d63a 8506
5005acfe 8507 enablestring=
e6cc62c6
VS
8508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8509echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8510 no_cache=0
8511 # Check whether --enable-splash or --disable-splash was given.
8512if test "${enable_splash+set}" = set; then
8513 enableval="$enable_splash"
e6cc62c6 8514
cbca9943
VZ
8515 if test "$enableval" = yes; then
8516 ac_cv_use_splash='wxUSE_SPLASH=yes'
8517 else
8518 ac_cv_use_splash='wxUSE_SPLASH=no'
8519 fi
e6cc62c6 8520
cbca9943 8521else
e6cc62c6 8522
cbca9943
VZ
8523 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8524 if test "x$LINE" != x ; then
8525 eval "DEFAULT_$LINE"
8526 else
8527 no_cache=1
8528 fi
8529
8530 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8531
e6cc62c6 8532fi;
cbca9943
VZ
8533
8534 eval "$ac_cv_use_splash"
8535 if test "$no_cache" != 1; then
8536 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8537 fi
8538
8539 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8540 echo "$as_me:$LINENO: result: yes" >&5
8541echo "${ECHO_T}yes" >&6
cbca9943 8542 else
e6cc62c6
VS
8543 echo "$as_me:$LINENO: result: no" >&5
8544echo "${ECHO_T}no" >&6
cbca9943 8545 fi
e6cc62c6 8546
cbca9943 8547
5005acfe 8548 enablestring=
e6cc62c6
VS
8549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8550echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8551 no_cache=0
8552 # Check whether --enable-textdlg or --disable-textdlg was given.
8553if test "${enable_textdlg+set}" = set; then
8554 enableval="$enable_textdlg"
e6cc62c6 8555
10f2d63a
VZ
8556 if test "$enableval" = yes; then
8557 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8558 else
8559 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8560 fi
e6cc62c6 8561
10f2d63a 8562else
e6cc62c6 8563
10f2d63a
VZ
8564 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8565 if test "x$LINE" != x ; then
8566 eval "DEFAULT_$LINE"
8567 else
8568 no_cache=1
8569 fi
8570
8571 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8572
e6cc62c6 8573fi;
10f2d63a
VZ
8574
8575 eval "$ac_cv_use_textdlg"
8576 if test "$no_cache" != 1; then
8577 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8578 fi
8579
8580 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8581 echo "$as_me:$LINENO: result: yes" >&5
8582echo "${ECHO_T}yes" >&6
10f2d63a 8583 else
e6cc62c6
VS
8584 echo "$as_me:$LINENO: result: no" >&5
8585echo "${ECHO_T}no" >&6
10f2d63a 8586 fi
e6cc62c6 8587
10f2d63a 8588
5005acfe 8589 enablestring=
e6cc62c6
VS
8590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8591echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8592 no_cache=0
8593 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8594if test "${enable_tipdlg+set}" = set; then
8595 enableval="$enable_tipdlg"
e6cc62c6 8596
10f2d63a
VZ
8597 if test "$enableval" = yes; then
8598 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8599 else
8600 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8601 fi
e6cc62c6 8602
10f2d63a 8603else
e6cc62c6 8604
10f2d63a
VZ
8605 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8606 if test "x$LINE" != x ; then
8607 eval "DEFAULT_$LINE"
8608 else
8609 no_cache=1
8610 fi
8611
8612 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8613
e6cc62c6 8614fi;
10f2d63a
VZ
8615
8616 eval "$ac_cv_use_tipdlg"
8617 if test "$no_cache" != 1; then
8618 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8619 fi
8620
8621 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8622 echo "$as_me:$LINENO: result: yes" >&5
8623echo "${ECHO_T}yes" >&6
10f2d63a 8624 else
e6cc62c6
VS
8625 echo "$as_me:$LINENO: result: no" >&5
8626echo "${ECHO_T}no" >&6
10f2d63a 8627 fi
e6cc62c6 8628
10f2d63a 8629
5005acfe 8630 enablestring=
e6cc62c6
VS
8631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8632echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8633 no_cache=0
8634 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8635if test "${enable_progressdlg+set}" = set; then
8636 enableval="$enable_progressdlg"
e6cc62c6 8637
10f2d63a
VZ
8638 if test "$enableval" = yes; then
8639 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8640 else
8641 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8642 fi
e6cc62c6 8643
10f2d63a 8644else
e6cc62c6 8645
10f2d63a
VZ
8646 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8647 if test "x$LINE" != x ; then
8648 eval "DEFAULT_$LINE"
8649 else
8650 no_cache=1
8651 fi
8652
8653 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8654
e6cc62c6 8655fi;
10f2d63a
VZ
8656
8657 eval "$ac_cv_use_progressdlg"
8658 if test "$no_cache" != 1; then
8659 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8660 fi
8661
8662 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8663 echo "$as_me:$LINENO: result: yes" >&5
8664echo "${ECHO_T}yes" >&6
10f2d63a 8665 else
e6cc62c6
VS
8666 echo "$as_me:$LINENO: result: no" >&5
8667echo "${ECHO_T}no" >&6
10f2d63a 8668 fi
e6cc62c6 8669
10f2d63a 8670
5005acfe 8671 enablestring=
e6cc62c6
VS
8672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8673echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8674 no_cache=0
8675 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8676if test "${enable_wizarddlg+set}" = set; then
8677 enableval="$enable_wizarddlg"
e6cc62c6 8678
b1f5d087
VZ
8679 if test "$enableval" = yes; then
8680 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8681 else
8682 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8683 fi
e6cc62c6 8684
b1f5d087 8685else
e6cc62c6 8686
b1f5d087
VZ
8687 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8688 if test "x$LINE" != x ; then
8689 eval "DEFAULT_$LINE"
8690 else
8691 no_cache=1
8692 fi
8693
8694 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8695
e6cc62c6 8696fi;
b1f5d087
VZ
8697
8698 eval "$ac_cv_use_wizarddlg"
8699 if test "$no_cache" != 1; then
8700 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8701 fi
8702
8703 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8704 echo "$as_me:$LINENO: result: yes" >&5
8705echo "${ECHO_T}yes" >&6
b1f5d087 8706 else
e6cc62c6
VS
8707 echo "$as_me:$LINENO: result: no" >&5
8708echo "${ECHO_T}no" >&6
b1f5d087 8709 fi
e6cc62c6 8710
8284b0c5
MB
8711
8712
52127426 8713
5005acfe 8714 enablestring=
e6cc62c6
VS
8715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8716echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8717 no_cache=0
8718 # Check whether --enable-menus or --disable-menus was given.
8719if test "${enable_menus+set}" = set; then
8720 enableval="$enable_menus"
e6cc62c6 8721
1e6feb95
VZ
8722 if test "$enableval" = yes; then
8723 ac_cv_use_menus='wxUSE_MENUS=yes'
8724 else
8725 ac_cv_use_menus='wxUSE_MENUS=no'
8726 fi
e6cc62c6 8727
1e6feb95 8728else
e6cc62c6 8729
1e6feb95
VZ
8730 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8731 if test "x$LINE" != x ; then
8732 eval "DEFAULT_$LINE"
8733 else
8734 no_cache=1
8735 fi
8736
8737 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8738
e6cc62c6 8739fi;
1e6feb95
VZ
8740
8741 eval "$ac_cv_use_menus"
8742 if test "$no_cache" != 1; then
8743 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8744 fi
8745
8746 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8747 echo "$as_me:$LINENO: result: yes" >&5
8748echo "${ECHO_T}yes" >&6
1e6feb95 8749 else
e6cc62c6
VS
8750 echo "$as_me:$LINENO: result: no" >&5
8751echo "${ECHO_T}no" >&6
1e6feb95 8752 fi
e6cc62c6 8753
1e6feb95 8754
5005acfe 8755 enablestring=
e6cc62c6
VS
8756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8757echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8758 no_cache=0
8759 # Check whether --enable-miniframe or --disable-miniframe was given.
8760if test "${enable_miniframe+set}" = set; then
8761 enableval="$enable_miniframe"
e6cc62c6 8762
10f2d63a
VZ
8763 if test "$enableval" = yes; then
8764 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8765 else
8766 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8767 fi
e6cc62c6 8768
10f2d63a 8769else
e6cc62c6 8770
10f2d63a
VZ
8771 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8772 if test "x$LINE" != x ; then
8773 eval "DEFAULT_$LINE"
8774 else
8775 no_cache=1
8776 fi
8777
8778 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8779
e6cc62c6 8780fi;
10f2d63a
VZ
8781
8782 eval "$ac_cv_use_miniframe"
8783 if test "$no_cache" != 1; then
8784 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8785 fi
8786
8787 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8788 echo "$as_me:$LINENO: result: yes" >&5
8789echo "${ECHO_T}yes" >&6
10f2d63a 8790 else
e6cc62c6
VS
8791 echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
10f2d63a 8793 fi
e6cc62c6 8794
10f2d63a 8795
5005acfe 8796 enablestring=
e6cc62c6
VS
8797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8798echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8799 no_cache=0
8800 # Check whether --enable-tooltips or --disable-tooltips was given.
8801if test "${enable_tooltips+set}" = set; then
8802 enableval="$enable_tooltips"
e6cc62c6 8803
10f2d63a
VZ
8804 if test "$enableval" = yes; then
8805 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8806 else
8807 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8808 fi
e6cc62c6 8809
10f2d63a 8810else
e6cc62c6 8811
10f2d63a
VZ
8812 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8813 if test "x$LINE" != x ; then
8814 eval "DEFAULT_$LINE"
8815 else
8816 no_cache=1
8817 fi
8818
8819 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8820
e6cc62c6 8821fi;
10f2d63a
VZ
8822
8823 eval "$ac_cv_use_tooltips"
8824 if test "$no_cache" != 1; then
8825 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8826 fi
8827
8828 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8829 echo "$as_me:$LINENO: result: yes" >&5
8830echo "${ECHO_T}yes" >&6
10f2d63a 8831 else
e6cc62c6
VS
8832 echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
10f2d63a 8834 fi
e6cc62c6 8835
10f2d63a 8836
5005acfe 8837 enablestring=
e6cc62c6
VS
8838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8839echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8840 no_cache=0
8841 # Check whether --enable-splines or --disable-splines was given.
8842if test "${enable_splines+set}" = set; then
8843 enableval="$enable_splines"
e6cc62c6 8844
10f2d63a
VZ
8845 if test "$enableval" = yes; then
8846 ac_cv_use_splines='wxUSE_SPLINES=yes'
8847 else
8848 ac_cv_use_splines='wxUSE_SPLINES=no'
8849 fi
e6cc62c6 8850
10f2d63a 8851else
e6cc62c6 8852
10f2d63a
VZ
8853 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8854 if test "x$LINE" != x ; then
8855 eval "DEFAULT_$LINE"
8856 else
8857 no_cache=1
8858 fi
8859
8860 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8861
e6cc62c6 8862fi;
10f2d63a
VZ
8863
8864 eval "$ac_cv_use_splines"
8865 if test "$no_cache" != 1; then
8866 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8867 fi
8868
8869 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8870 echo "$as_me:$LINENO: result: yes" >&5
8871echo "${ECHO_T}yes" >&6
10f2d63a 8872 else
e6cc62c6
VS
8873 echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6
10f2d63a 8875 fi
e6cc62c6 8876
10f2d63a 8877
5005acfe 8878 enablestring=
e6cc62c6
VS
8879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8880echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8881 no_cache=0
8882 # Check whether --enable-validators or --disable-validators was given.
8883if test "${enable_validators+set}" = set; then
8884 enableval="$enable_validators"
e6cc62c6 8885
10f2d63a
VZ
8886 if test "$enableval" = yes; then
8887 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8888 else
8889 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8890 fi
e6cc62c6 8891
10f2d63a 8892else
e6cc62c6 8893
10f2d63a
VZ
8894 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8895 if test "x$LINE" != x ; then
8896 eval "DEFAULT_$LINE"
8897 else
8898 no_cache=1
8899 fi
8900
8901 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8902
e6cc62c6 8903fi;
10f2d63a
VZ
8904
8905 eval "$ac_cv_use_validators"
8906 if test "$no_cache" != 1; then
8907 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8908 fi
8909
8910 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8911 echo "$as_me:$LINENO: result: yes" >&5
8912echo "${ECHO_T}yes" >&6
10f2d63a 8913 else
e6cc62c6
VS
8914 echo "$as_me:$LINENO: result: no" >&5
8915echo "${ECHO_T}no" >&6
10f2d63a 8916 fi
e6cc62c6 8917
10f2d63a 8918
5005acfe 8919 enablestring=
e6cc62c6
VS
8920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8921echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8922 no_cache=0
8923 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8924if test "${enable_busyinfo+set}" = set; then
8925 enableval="$enable_busyinfo"
e6cc62c6 8926
10f2d63a
VZ
8927 if test "$enableval" = yes; then
8928 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8929 else
8930 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8931 fi
e6cc62c6 8932
10f2d63a 8933else
e6cc62c6 8934
10f2d63a
VZ
8935 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8936 if test "x$LINE" != x ; then
8937 eval "DEFAULT_$LINE"
8938 else
8939 no_cache=1
8940 fi
8941
8942 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8943
e6cc62c6 8944fi;
10f2d63a
VZ
8945
8946 eval "$ac_cv_use_busyinfo"
8947 if test "$no_cache" != 1; then
8948 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8949 fi
8950
8951 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8952 echo "$as_me:$LINENO: result: yes" >&5
8953echo "${ECHO_T}yes" >&6
10f2d63a 8954 else
e6cc62c6
VS
8955 echo "$as_me:$LINENO: result: no" >&5
8956echo "${ECHO_T}no" >&6
10f2d63a 8957 fi
e6cc62c6 8958
10f2d63a 8959
5005acfe 8960 enablestring=
e6cc62c6
VS
8961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8962echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8963 no_cache=0
8964 # Check whether --enable-joystick or --disable-joystick was given.
8965if test "${enable_joystick+set}" = set; then
8966 enableval="$enable_joystick"
e6cc62c6 8967
f6bcfd97
BP
8968 if test "$enableval" = yes; then
8969 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8970 else
8971 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8972 fi
e6cc62c6 8973
f6bcfd97 8974else
e6cc62c6 8975
f6bcfd97
BP
8976 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8977 if test "x$LINE" != x ; then
8978 eval "DEFAULT_$LINE"
8979 else
8980 no_cache=1
8981 fi
8982
8983 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8984
e6cc62c6 8985fi;
f6bcfd97
BP
8986
8987 eval "$ac_cv_use_joystick"
8988 if test "$no_cache" != 1; then
8989 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8990 fi
8991
8992 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8993 echo "$as_me:$LINENO: result: yes" >&5
8994echo "${ECHO_T}yes" >&6
f6bcfd97 8995 else
e6cc62c6
VS
8996 echo "$as_me:$LINENO: result: no" >&5
8997echo "${ECHO_T}no" >&6
f6bcfd97 8998 fi
e6cc62c6 8999
698dcdb6 9000
5005acfe 9001 enablestring=
e6cc62c6
VS
9002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9003echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9004 no_cache=0
9005 # Check whether --enable-metafile or --disable-metafile was given.
9006if test "${enable_metafile+set}" = set; then
9007 enableval="$enable_metafile"
e6cc62c6 9008
1e6feb95
VZ
9009 if test "$enableval" = yes; then
9010 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9011 else
9012 ac_cv_use_metafile='wxUSE_METAFILE=no'
9013 fi
e6cc62c6 9014
1e6feb95 9015else
e6cc62c6 9016
1e6feb95
VZ
9017 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9018 if test "x$LINE" != x ; then
9019 eval "DEFAULT_$LINE"
9020 else
9021 no_cache=1
9022 fi
9023
9024 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9025
e6cc62c6 9026fi;
1e6feb95
VZ
9027
9028 eval "$ac_cv_use_metafile"
9029 if test "$no_cache" != 1; then
9030 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9031 fi
9032
9033 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9034 echo "$as_me:$LINENO: result: yes" >&5
9035echo "${ECHO_T}yes" >&6
1e6feb95 9036 else
e6cc62c6
VS
9037 echo "$as_me:$LINENO: result: no" >&5
9038echo "${ECHO_T}no" >&6
1e6feb95 9039 fi
e6cc62c6 9040
1e6feb95 9041
5005acfe 9042 enablestring=
e6cc62c6
VS
9043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9044echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9045 no_cache=0
9046 # Check whether --enable-dragimage or --disable-dragimage was given.
9047if test "${enable_dragimage+set}" = set; then
9048 enableval="$enable_dragimage"
e6cc62c6 9049
24fd6d87
VZ
9050 if test "$enableval" = yes; then
9051 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9052 else
9053 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9054 fi
e6cc62c6 9055
24fd6d87 9056else
e6cc62c6 9057
24fd6d87
VZ
9058 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9059 if test "x$LINE" != x ; then
9060 eval "DEFAULT_$LINE"
9061 else
9062 no_cache=1
9063 fi
9064
9065 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9066
e6cc62c6 9067fi;
24fd6d87
VZ
9068
9069 eval "$ac_cv_use_dragimage"
9070 if test "$no_cache" != 1; then
9071 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9072 fi
9073
9074 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9075 echo "$as_me:$LINENO: result: yes" >&5
9076echo "${ECHO_T}yes" >&6
24fd6d87 9077 else
e6cc62c6
VS
9078 echo "$as_me:$LINENO: result: no" >&5
9079echo "${ECHO_T}no" >&6
24fd6d87 9080 fi
e6cc62c6 9081
52127426 9082
7bb2947d 9083 enablestring=
e6cc62c6
VS
9084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9085echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9086 no_cache=0
9087 # Check whether --enable-accessibility or --disable-accessibility was given.
9088if test "${enable_accessibility+set}" = set; then
9089 enableval="$enable_accessibility"
e6cc62c6 9090
7bb2947d
MB
9091 if test "$enableval" = yes; then
9092 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9093 else
9094 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9095 fi
e6cc62c6 9096
7bb2947d 9097else
e6cc62c6 9098
7bb2947d
MB
9099 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9100 if test "x$LINE" != x ; then
9101 eval "DEFAULT_$LINE"
9102 else
9103 no_cache=1
9104 fi
9105
9106 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9107
e6cc62c6 9108fi;
7bb2947d
MB
9109
9110 eval "$ac_cv_use_accessibility"
9111 if test "$no_cache" != 1; then
9112 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9113 fi
9114
9115 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9116 echo "$as_me:$LINENO: result: yes" >&5
9117echo "${ECHO_T}yes" >&6
7bb2947d 9118 else
e6cc62c6
VS
9119 echo "$as_me:$LINENO: result: no" >&5
9120echo "${ECHO_T}no" >&6
7bb2947d 9121 fi
e6cc62c6 9122
7bb2947d 9123
8284b0c5
MB
9124
9125
5005acfe 9126 enablestring=
e6cc62c6
VS
9127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9128echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9129 no_cache=0
9130 # Check whether --enable-palette or --disable-palette was given.
9131if test "${enable_palette+set}" = set; then
9132 enableval="$enable_palette"
e6cc62c6 9133
edae8572
VZ
9134 if test "$enableval" = yes; then
9135 ac_cv_use_palette='wxUSE_PALETTE=yes'
9136 else
9137 ac_cv_use_palette='wxUSE_PALETTE=no'
9138 fi
e6cc62c6 9139
edae8572 9140else
e6cc62c6 9141
edae8572
VZ
9142 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9143 if test "x$LINE" != x ; then
9144 eval "DEFAULT_$LINE"
9145 else
9146 no_cache=1
9147 fi
9148
9149 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9150
e6cc62c6 9151fi;
edae8572
VZ
9152
9153 eval "$ac_cv_use_palette"
9154 if test "$no_cache" != 1; then
9155 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9156 fi
9157
9158 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9159 echo "$as_me:$LINENO: result: yes" >&5
9160echo "${ECHO_T}yes" >&6
edae8572 9161 else
e6cc62c6
VS
9162 echo "$as_me:$LINENO: result: no" >&5
9163echo "${ECHO_T}no" >&6
edae8572 9164 fi
e6cc62c6 9165
edae8572 9166
5005acfe 9167 enablestring=
e6cc62c6
VS
9168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9169echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9170 no_cache=0
9171 # Check whether --enable-image or --disable-image was given.
9172if test "${enable_image+set}" = set; then
9173 enableval="$enable_image"
e6cc62c6 9174
0046ff7c
VS
9175 if test "$enableval" = yes; then
9176 ac_cv_use_image='wxUSE_IMAGE=yes'
9177 else
9178 ac_cv_use_image='wxUSE_IMAGE=no'
9179 fi
e6cc62c6 9180
0046ff7c 9181else
e6cc62c6 9182
0046ff7c
VS
9183 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9184 if test "x$LINE" != x ; then
9185 eval "DEFAULT_$LINE"
9186 else
9187 no_cache=1
9188 fi
9189
9190 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9191
e6cc62c6 9192fi;
0046ff7c
VS
9193
9194 eval "$ac_cv_use_image"
9195 if test "$no_cache" != 1; then
9196 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9197 fi
9198
9199 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9200 echo "$as_me:$LINENO: result: yes" >&5
9201echo "${ECHO_T}yes" >&6
0046ff7c 9202 else
e6cc62c6
VS
9203 echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
0046ff7c 9205 fi
e6cc62c6 9206
0046ff7c 9207
5005acfe 9208 enablestring=
e6cc62c6
VS
9209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9210echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9211 no_cache=0
9212 # Check whether --enable-gif or --disable-gif was given.
9213if test "${enable_gif+set}" = set; then
9214 enableval="$enable_gif"
e6cc62c6 9215
10f2d63a
VZ
9216 if test "$enableval" = yes; then
9217 ac_cv_use_gif='wxUSE_GIF=yes'
9218 else
9219 ac_cv_use_gif='wxUSE_GIF=no'
9220 fi
e6cc62c6 9221
10f2d63a 9222else
e6cc62c6 9223
10f2d63a
VZ
9224 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9225 if test "x$LINE" != x ; then
9226 eval "DEFAULT_$LINE"
9227 else
9228 no_cache=1
9229 fi
9230
9231 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9232
e6cc62c6 9233fi;
10f2d63a
VZ
9234
9235 eval "$ac_cv_use_gif"
9236 if test "$no_cache" != 1; then
9237 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9238 fi
9239
9240 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9241 echo "$as_me:$LINENO: result: yes" >&5
9242echo "${ECHO_T}yes" >&6
10f2d63a 9243 else
e6cc62c6
VS
9244 echo "$as_me:$LINENO: result: no" >&5
9245echo "${ECHO_T}no" >&6
10f2d63a 9246 fi
e6cc62c6 9247
10f2d63a 9248
5005acfe 9249 enablestring=
e6cc62c6
VS
9250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9251echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9252 no_cache=0
9253 # Check whether --enable-pcx or --disable-pcx was given.
9254if test "${enable_pcx+set}" = set; then
9255 enableval="$enable_pcx"
e6cc62c6 9256
10f2d63a
VZ
9257 if test "$enableval" = yes; then
9258 ac_cv_use_pcx='wxUSE_PCX=yes'
9259 else
9260 ac_cv_use_pcx='wxUSE_PCX=no'
9261 fi
e6cc62c6 9262
10f2d63a 9263else
e6cc62c6 9264
10f2d63a
VZ
9265 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9266 if test "x$LINE" != x ; then
9267 eval "DEFAULT_$LINE"
9268 else
9269 no_cache=1
9270 fi
9271
9272 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9273
e6cc62c6 9274fi;
10f2d63a
VZ
9275
9276 eval "$ac_cv_use_pcx"
9277 if test "$no_cache" != 1; then
9278 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9279 fi
9280
9281 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9282 echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
10f2d63a 9284 else
e6cc62c6
VS
9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
10f2d63a 9287 fi
e6cc62c6 9288
10f2d63a 9289
5005acfe 9290 enablestring=
e6cc62c6
VS
9291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9292echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9293 no_cache=0
9294 # Check whether --enable-iff or --disable-iff was given.
9295if test "${enable_iff+set}" = set; then
9296 enableval="$enable_iff"
e6cc62c6 9297
4b6b4dfc
RR
9298 if test "$enableval" = yes; then
9299 ac_cv_use_iff='wxUSE_IFF=yes'
9300 else
9301 ac_cv_use_iff='wxUSE_IFF=no'
9302 fi
e6cc62c6 9303
4b6b4dfc 9304else
e6cc62c6 9305
4b6b4dfc
RR
9306 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9307 if test "x$LINE" != x ; then
9308 eval "DEFAULT_$LINE"
9309 else
9310 no_cache=1
9311 fi
9312
9313 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9314
e6cc62c6 9315fi;
4b6b4dfc
RR
9316
9317 eval "$ac_cv_use_iff"
9318 if test "$no_cache" != 1; then
9319 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9320 fi
9321
9322 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9323 echo "$as_me:$LINENO: result: yes" >&5
9324echo "${ECHO_T}yes" >&6
4b6b4dfc 9325 else
e6cc62c6
VS
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
4b6b4dfc 9328 fi
e6cc62c6 9329
4b6b4dfc 9330
5005acfe 9331 enablestring=
e6cc62c6
VS
9332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9333echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9334 no_cache=0
9335 # Check whether --enable-pnm or --disable-pnm was given.
9336if test "${enable_pnm+set}" = set; then
9337 enableval="$enable_pnm"
e6cc62c6 9338
10f2d63a
VZ
9339 if test "$enableval" = yes; then
9340 ac_cv_use_pnm='wxUSE_PNM=yes'
9341 else
9342 ac_cv_use_pnm='wxUSE_PNM=no'
9343 fi
e6cc62c6 9344
10f2d63a 9345else
e6cc62c6 9346
10f2d63a
VZ
9347 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9348 if test "x$LINE" != x ; then
9349 eval "DEFAULT_$LINE"
9350 else
9351 no_cache=1
9352 fi
9353
9354 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9355
e6cc62c6 9356fi;
10f2d63a
VZ
9357
9358 eval "$ac_cv_use_pnm"
9359 if test "$no_cache" != 1; then
9360 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9361 fi
9362
9363 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9364 echo "$as_me:$LINENO: result: yes" >&5
9365echo "${ECHO_T}yes" >&6
10f2d63a 9366 else
e6cc62c6
VS
9367 echo "$as_me:$LINENO: result: no" >&5
9368echo "${ECHO_T}no" >&6
10f2d63a 9369 fi
e6cc62c6 9370
10f2d63a 9371
5005acfe 9372 enablestring=
e6cc62c6
VS
9373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9374echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9375 no_cache=0
69d27ff7
MB
9376 # Check whether --enable-xpm or --disable-xpm was given.
9377if test "${enable_xpm+set}" = set; then
9378 enableval="$enable_xpm"
e6cc62c6 9379
0046ff7c 9380 if test "$enableval" = yes; then
69d27ff7 9381 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9382 else
69d27ff7 9383 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9384 fi
e6cc62c6 9385
0046ff7c 9386else
e6cc62c6 9387
0046ff7c
VS
9388 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9389 if test "x$LINE" != x ; then
9390 eval "DEFAULT_$LINE"
9391 else
9392 no_cache=1
9393 fi
9394
69d27ff7 9395 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9396
e6cc62c6 9397fi;
0046ff7c 9398
69d27ff7 9399 eval "$ac_cv_use_xpm"
0046ff7c 9400 if test "$no_cache" != 1; then
69d27ff7 9401 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9402 fi
9403
9404 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9405 echo "$as_me:$LINENO: result: yes" >&5
9406echo "${ECHO_T}yes" >&6
0046ff7c 9407 else
e6cc62c6
VS
9408 echo "$as_me:$LINENO: result: no" >&5
9409echo "${ECHO_T}no" >&6
0046ff7c 9410 fi
e6cc62c6 9411
0046ff7c 9412
5005acfe 9413 enablestring=
e6cc62c6
VS
9414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9415echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9416 no_cache=0
c7206e64
VS
9417 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9418if test "${enable_ico_cur+set}" = set; then
9419 enableval="$enable_ico_cur"
e6cc62c6 9420
658974ae 9421 if test "$enableval" = yes; then
c7206e64 9422 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9423 else
c7206e64 9424 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9425 fi
e6cc62c6 9426
658974ae 9427else
e6cc62c6 9428
658974ae
VS
9429 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9430 if test "x$LINE" != x ; then
9431 eval "DEFAULT_$LINE"
9432 else
9433 no_cache=1
9434 fi
9435
c7206e64 9436 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9437
e6cc62c6 9438fi;
658974ae 9439
c7206e64 9440 eval "$ac_cv_use_ico_cur"
658974ae 9441 if test "$no_cache" != 1; then
c7206e64 9442 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9443 fi
9444
9445 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9446 echo "$as_me:$LINENO: result: yes" >&5
9447echo "${ECHO_T}yes" >&6
658974ae 9448 else
e6cc62c6
VS
9449 echo "$as_me:$LINENO: result: no" >&5
9450echo "${ECHO_T}no" >&6
658974ae 9451 fi
e6cc62c6 9452
658974ae 9453
b12915c1
VZ
9454fi
9455
029b47ad
VS
9456
9457
9458 enablestring=
9459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9460echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9461 no_cache=0
9462 # Check whether --enable-official_build or --disable-official_build was given.
9463if test "${enable_official_build+set}" = set; then
9464 enableval="$enable_official_build"
9465
9466 if test "$enableval" = yes; then
9467 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9468 else
9469 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9470 fi
9471
9472else
9473
9474 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9475 if test "x$LINE" != x ; then
9476 eval "DEFAULT_$LINE"
9477 else
9478 no_cache=1
9479 fi
9480
9481 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9482
9483fi;
9484
9485 eval "$ac_cv_use_official_build"
9486 if test "$no_cache" != 1; then
9487 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9488 fi
9489
9490 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9491 echo "$as_me:$LINENO: result: yes" >&5
9492echo "${ECHO_T}yes" >&6
9493 else
9494 echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
9496 fi
9497
9498# Check whether --enable-vendor or --disable-vendor was given.
9499if test "${enable_vendor+set}" = set; then
9500 enableval="$enable_vendor"
9501 VENDOR="$enableval"
9502fi;
9503if test "x$VENDOR" = "x"; then
9504 VENDOR="custom"
9505fi
9506
d558c907
VS
9507case "${host}" in
9508 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9509 PATH_IFS=';'
9510 LEX_STEM="lexyy"
d558c907
VS
9511 ;;
9512 *)
9513 PATH_IFS=':'
9514 LEX_STEM="lex.yy"
9515 ;;
9516esac
9517
8284b0c5
MB
9518
9519
10f2d63a
VZ
9520 echo "saving argument cache $wx_arg_cache_file"
9521 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9522
8284b0c5 9523
e6cc62c6
VS
9524
9525echo "$as_me:$LINENO: checking for toolkit" >&5
9526echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9527
9528# In Wine, we need to default to MSW, not GTK or MOTIF
9529if test "$wxUSE_WINE" = "yes"; then
9530 DEFAULT_DEFAULT_wxUSE_GTK=0
9531 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9532 DEFAULT_DEFAULT_wxUSE_MSW=1
9533fi
10f2d63a
VZ
9534
9535if test "$wxUSE_GUI" = "yes"; then
9536
3a922bb4 9537 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9538 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9539echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9540 { (exit 1); exit 1; }; }
3a922bb4 9541 fi
b12915c1 9542
3a922bb4
RL
9543 if test "$TOOLKIT_GIVEN" = 1; then
9544 for toolkit in `echo $ALL_TOOLKITS`; do
9545 var=wxUSE_$toolkit
9546 eval "value=\$${var}"
9547 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9548 done
10f2d63a 9549 else
3a922bb4
RL
9550 for toolkit in `echo $ALL_TOOLKITS`; do
9551 if test "$has_toolkit_in_cache" != 1; then
9552 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9553 else
9554 var=DEFAULT_wxUSE_$toolkit
9555 fi
9556 eval "wxUSE_$toolkit=\$${var}"
9557 done
10f2d63a 9558 fi
10f2d63a 9559
ac0c4cc3
DE
9560 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9561 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9562 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9563
d558c907 9564 case "${host}" in
6fa882bd 9565 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9566 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9567 esac
10f2d63a 9568
3a922bb4
RL
9569 case "$NUM_TOOLKITS" in
9570 1)
9571 ;;
9572 0)
e6cc62c6
VS
9573 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9574echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9575 { (exit 1); exit 1; }; }
3a922bb4
RL
9576 ;;
9577 *)
e6cc62c6
VS
9578 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9579echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9580 { (exit 1); exit 1; }; }
3a922bb4 9581 esac
10f2d63a 9582
3a922bb4
RL
9583 for toolkit in `echo $ALL_TOOLKITS`; do
9584 var=wxUSE_$toolkit
9585 eval "value=\$${var}"
9586 if test "x$value" != x; then
9587 cache_var=CACHE_$toolkit
9588 eval "cache=\$${cache_var}"
9589 if test "$cache" = 1; then
9590 echo "$var=$value" >> ${wx_arg_cache_file}
9591 fi
9592 if test "$value" = 1; then
9593 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9594 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9595echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9596 fi
9597 fi
9598 done
10f2d63a 9599else
9de9b8f0
VZ
9600 if test "x$host_alias" != "x"; then
9601 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9602echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9603 else
9604 echo "$as_me:$LINENO: result: base only" >&5
9605echo "${ECHO_T}base only" >&6
9606 fi
10f2d63a
VZ
9607fi
9608
43d99b6d
VS
9609wants_win32=0
9610doesnt_want_win32=0
17234b26
MB
9611case "${host}" in
9612 *-*-cygwin*)
9613 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9614 wants_win32=1
9615 else
9616 doesnt_want_win32=1
17234b26
MB
9617 fi
9618 ;;
9619 *-*-mingw*)
43d99b6d 9620 wants_win32=1
17234b26
MB
9621 ;;
9622esac
9623
89e6bf6d
VZ
9624if test "$wxUSE_WINE" = "yes"; then
9625 wants_win32=1
9626 CC=winegcc
9627 CXX=wineg++
9628 RESCOMP=wrc
9629fi
9630
43d99b6d 9631if test "$wants_win32" = 1 ; then
17234b26
MB
9632 USE_UNIX=0
9633 USE_WIN32=1
e6cc62c6 9634 cat >>confdefs.h <<\_ACEOF
17234b26 9635#define __WIN32__ 1
e6cc62c6 9636_ACEOF
17234b26 9637
e6cc62c6 9638 cat >>confdefs.h <<\_ACEOF
17234b26 9639#define __WIN95__ 1
e6cc62c6 9640_ACEOF
17234b26 9641
e6cc62c6 9642 cat >>confdefs.h <<\_ACEOF
17234b26 9643#define __WINDOWS__ 1
e6cc62c6 9644_ACEOF
17234b26 9645
e6cc62c6 9646 cat >>confdefs.h <<\_ACEOF
17234b26 9647#define __GNUWIN32__ 1
e6cc62c6 9648_ACEOF
17234b26 9649
e6cc62c6 9650 cat >>confdefs.h <<\_ACEOF
17234b26 9651#define STRICT 1
e6cc62c6 9652_ACEOF
17234b26 9653
e6cc62c6 9654 cat >>confdefs.h <<\_ACEOF
17234b26 9655#define WINVER 0x0400
e6cc62c6 9656_ACEOF
17234b26 9657
43d99b6d
VS
9658fi
9659if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9660 USE_UNIX=1
9661 USE_WIN32=0
9662fi
9663
9664if test "$USE_UNIX" = 1 ; then
9665 wxUSE_UNIX=yes
e6cc62c6 9666 cat >>confdefs.h <<\_ACEOF
17234b26 9667#define __UNIX__ 1
e6cc62c6 9668_ACEOF
17234b26
MB
9669
9670fi
9671
8284b0c5 9672
e6cc62c6 9673cat >confcache <<\_ACEOF
10f2d63a
VZ
9674# This file is a shell script that caches the results of configure
9675# tests run on this system so they can be shared between configure
e6cc62c6
VS
9676# scripts and configure runs, see configure's option --config-cache.
9677# It is not useful on other systems. If it contains results you don't
9678# want to keep, you may remove or edit it.
10f2d63a 9679#
e6cc62c6
VS
9680# config.status only pays attention to the cache file if you give it
9681# the --recheck option to rerun configure.
10f2d63a 9682#
e6cc62c6
VS
9683# `ac_cv_env_foo' variables (set or unset) will be overridden when
9684# loading this file, other *unset* `ac_cv_foo' will be assigned the
9685# following values.
9686
9687_ACEOF
9688
10f2d63a
VZ
9689# The following way of writing the cache mishandles newlines in values,
9690# but we know of no workaround that is simple, portable, and efficient.
9691# So, don't put newlines in cache variables' values.
9692# Ultrix sh set writes to stderr and can't be redirected directly,
9693# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9694{
9695 (set) 2>&1 |
9696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9697 *ac_space=\ *)
9698 # `set' does not quote correctly, so add quotes (double-quote
9699 # substitution turns \\\\ into \\, and sed turns \\ into \).
9700 sed -n \
9701 "s/'/'\\\\''/g;
9702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9703 ;;
9704 *)
9705 # `set' quotes correctly as required by POSIX, so do not add quotes.
9706 sed -n \
9707 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9708 ;;
9709 esac;
9710} |
9711 sed '
9712 t clear
9713 : clear
9714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9715 t end
9716 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9717 : end' >>confcache
9718if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9719 if test -w $cache_file; then
e6cc62c6
VS
9720 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9721 cat confcache >$cache_file
10f2d63a
VZ
9722 else
9723 echo "not updating unwritable cache $cache_file"
9724 fi
9725fi
9726rm -f confcache
9727
e59890c3 9728if test "$build" != "$host" ; then
9d353d4a 9729 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9730 CC=$host_alias-gcc
9731 CXX=$host_alias-c++
9732 AR=$host_alias-ar
9733 RANLIB=$host_alias-ranlib
9734 DLLTOOL=$host_alias-dlltool
9735 RESCOMP=$host_alias-windres
9736 LD=$host_alias-ld
9737 NM=$host_alias-nm
9738 STRIP=$host_alias-strip
9739 else
e6cc62c6
VS
9740 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9741echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9742 { (exit 1); exit 1; }; }
3a922bb4 9743 fi
10f2d63a
VZ
9744fi
9745
ec603395 9746CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9747ac_ext=c
9748ac_cpp='$CPP $CPPFLAGS'
9749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9751ac_compiler_gnu=$ac_cv_c_compiler_gnu
9752if test -n "$ac_tool_prefix"; then
9753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9754set dummy ${ac_tool_prefix}gcc; ac_word=$2
9755echo "$as_me:$LINENO: checking for $ac_word" >&5
9756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9757if test "${ac_cv_prog_CC+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760 if test -n "$CC"; then
9761 ac_cv_prog_CC="$CC" # Let the user override the test.
9762else
9763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764for as_dir in $PATH
9765do
9766 IFS=$as_save_IFS
9767 test -z "$as_dir" && as_dir=.
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9772 break 2
9773 fi
9774done
9775done
9776
9777fi
9778fi
9779CC=$ac_cv_prog_CC
9780if test -n "$CC"; then
9781 echo "$as_me:$LINENO: result: $CC" >&5
9782echo "${ECHO_T}$CC" >&6
9783else
9784 echo "$as_me:$LINENO: result: no" >&5
9785echo "${ECHO_T}no" >&6
9786fi
9787
9788fi
9789if test -z "$ac_cv_prog_CC"; then
9790 ac_ct_CC=$CC
9791 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9792set dummy gcc; ac_word=$2
e6cc62c6
VS
9793echo "$as_me:$LINENO: checking for $ac_word" >&5
9794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9795if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 if test -n "$ac_ct_CC"; then
9799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9800else
9801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802for as_dir in $PATH
9803do
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808 ac_cv_prog_ac_ct_CC="gcc"
9809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9811 fi
9812done
9813done
9814
9815fi
9816fi
9817ac_ct_CC=$ac_cv_prog_ac_ct_CC
9818if test -n "$ac_ct_CC"; then
9819 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9820echo "${ECHO_T}$ac_ct_CC" >&6
9821else
9822 echo "$as_me:$LINENO: result: no" >&5
9823echo "${ECHO_T}no" >&6
9824fi
9825
9826 CC=$ac_ct_CC
9827else
9828 CC="$ac_cv_prog_CC"
9829fi
9830
9831if test -z "$CC"; then
9832 if test -n "$ac_tool_prefix"; then
9833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9834set dummy ${ac_tool_prefix}cc; ac_word=$2
9835echo "$as_me:$LINENO: checking for $ac_word" >&5
9836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9837if test "${ac_cv_prog_CC+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9839else
9840 if test -n "$CC"; then
9841 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9842else
e6cc62c6
VS
9843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844for as_dir in $PATH
9845do
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_prog_CC="${ac_tool_prefix}cc"
9851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9853 fi
9854done
9855done
9856
10f2d63a 9857fi
6232543b 9858fi
e6cc62c6 9859CC=$ac_cv_prog_CC
6232543b 9860if test -n "$CC"; then
e6cc62c6
VS
9861 echo "$as_me:$LINENO: result: $CC" >&5
9862echo "${ECHO_T}$CC" >&6
9863else
9864 echo "$as_me:$LINENO: result: no" >&5
9865echo "${ECHO_T}no" >&6
9866fi
9867
9868fi
9869if test -z "$ac_cv_prog_CC"; then
9870 ac_ct_CC=$CC
9871 # Extract the first word of "cc", so it can be a program name with args.
9872set dummy cc; ac_word=$2
9873echo "$as_me:$LINENO: checking for $ac_word" >&5
9874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9875if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878 if test -n "$ac_ct_CC"; then
9879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9880else
9881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882for as_dir in $PATH
9883do
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_ac_ct_CC="cc"
9889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 break 2
9891 fi
9892done
9893done
9894
9895fi
9896fi
9897ac_ct_CC=$ac_cv_prog_ac_ct_CC
9898if test -n "$ac_ct_CC"; then
9899 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9900echo "${ECHO_T}$ac_ct_CC" >&6
9901else
9902 echo "$as_me:$LINENO: result: no" >&5
9903echo "${ECHO_T}no" >&6
9904fi
9905
9906 CC=$ac_ct_CC
247f5006 9907else
e6cc62c6 9908 CC="$ac_cv_prog_CC"
247f5006
VZ
9909fi
9910
e6cc62c6 9911fi
5c6fa7d2
RR
9912if test -z "$CC"; then
9913 # Extract the first word of "cc", so it can be a program name with args.
9914set dummy cc; ac_word=$2
e6cc62c6
VS
9915echo "$as_me:$LINENO: checking for $ac_word" >&5
9916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9917if test "${ac_cv_prog_CC+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9919else
9920 if test -n "$CC"; then
9921 ac_cv_prog_CC="$CC" # Let the user override the test.
9922else
9923 ac_prog_rejected=no
e6cc62c6
VS
9924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925for as_dir in $PATH
9926do
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9931 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9932 ac_prog_rejected=yes
9933 continue
9934 fi
9935 ac_cv_prog_CC="cc"
9936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9938 fi
9939done
9940done
9941
328a083c
RR
9942if test $ac_prog_rejected = yes; then
9943 # We found a bogon in the path, so make sure we never use it.
9944 set dummy $ac_cv_prog_CC
9945 shift
e6cc62c6 9946 if test $# != 0; then
328a083c 9947 # We chose a different compiler from the bogus one.
1e487827
VS
9948 # However, it has the same basename, so the bogon will be chosen
9949 # first if we set CC to just the basename; use the full file name.
9950 shift
e6cc62c6 9951 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9952 fi
1e487827
VS
9953fi
9954fi
9955fi
e6cc62c6 9956CC=$ac_cv_prog_CC
1e487827 9957if test -n "$CC"; then
e6cc62c6
VS
9958 echo "$as_me:$LINENO: result: $CC" >&5
9959echo "${ECHO_T}$CC" >&6
703e0a69 9960else
e6cc62c6
VS
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
703e0a69 9963fi
1e487827 9964
e6cc62c6
VS
9965fi
9966if test -z "$CC"; then
9967 if test -n "$ac_tool_prefix"; then
9968 for ac_prog in cl
9969 do
9970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9972echo "$as_me:$LINENO: checking for $ac_word" >&5
9973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9974if test "${ac_cv_prog_CC+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9976else
9977 if test -n "$CC"; then
9978 ac_cv_prog_CC="$CC" # Let the user override the test.
9979else
e6cc62c6
VS
9980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981for as_dir in $PATH
9982do
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9990 fi
9991done
9992done
9993
f09359cf
VS
9994fi
9995fi
e6cc62c6 9996CC=$ac_cv_prog_CC
f09359cf 9997if test -n "$CC"; then
e6cc62c6
VS
9998 echo "$as_me:$LINENO: result: $CC" >&5
9999echo "${ECHO_T}$CC" >&6
f09359cf 10000else
e6cc62c6
VS
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
5c6fa7d2 10003fi
1e487827 10004
e6cc62c6
VS
10005 test -n "$CC" && break
10006 done
10007fi
10008if test -z "$CC"; then
10009 ac_ct_CC=$CC
10010 for ac_prog in cl
10011do
10012 # Extract the first word of "$ac_prog", so it can be a program name with args.
10013set dummy $ac_prog; ac_word=$2
10014echo "$as_me:$LINENO: checking for $ac_word" >&5
10015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
10019 if test -n "$ac_ct_CC"; then
10020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10021else
10022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10023for as_dir in $PATH
10024do
10025 IFS=$as_save_IFS
10026 test -z "$as_dir" && as_dir=.
10027 for ac_exec_ext in '' $ac_executable_extensions; do
10028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10029 ac_cv_prog_ac_ct_CC="$ac_prog"
10030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10031 break 2
10032 fi
10033done
10034done
f09359cf 10035
e6cc62c6
VS
10036fi
10037fi
10038ac_ct_CC=$ac_cv_prog_ac_ct_CC
10039if test -n "$ac_ct_CC"; then
10040 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10041echo "${ECHO_T}$ac_ct_CC" >&6
10042else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045fi
f09359cf 10046
e6cc62c6
VS
10047 test -n "$ac_ct_CC" && break
10048done
247f5006 10049
e6cc62c6
VS
10050 CC=$ac_ct_CC
10051fi
10052
10053fi
10054
10055
10056test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10057See \`config.log' for more details." >&5
10058echo "$as_me: error: no acceptable C compiler found in \$PATH
10059See \`config.log' for more details." >&2;}
10060 { (exit 1); exit 1; }; }
10061
10062# Provide some information about the compiler.
10063echo "$as_me:$LINENO:" \
10064 "checking for C compiler version" >&5
10065ac_compiler=`set X $ac_compile; echo $2`
10066{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10067 (eval $ac_compiler --version </dev/null >&5) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }
10071{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10072 (eval $ac_compiler -v </dev/null >&5) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }
10076{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10077 (eval $ac_compiler -V </dev/null >&5) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }
10081
10082cat >conftest.$ac_ext <<_ACEOF
10083#line $LINENO "configure"
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h. */
10089
10090int
10091main ()
10092{
247f5006 10093
e6cc62c6
VS
10094 ;
10095 return 0;
10096}
10097_ACEOF
10098ac_clean_files_save=$ac_clean_files
10099ac_clean_files="$ac_clean_files a.out a.exe b.out"
10100# Try to create an executable without -o first, disregard a.out.
10101# It will help us diagnose broken compilers, and finding out an intuition
10102# of exeext.
10103echo "$as_me:$LINENO: checking for C compiler default output" >&5
10104echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10105ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10106if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10107 (eval $ac_link_default) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; then
10111 # Find the output, starting from the most likely. This scheme is
10112# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10113# resort.
10114
10115# Be careful to initialize this variable, since it used to be cached.
10116# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10117ac_cv_exeext=
10118# b.out is created by i960 compilers.
10119for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10120do
10121 test -f "$ac_file" || continue
10122 case $ac_file in
10123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10124 ;;
10125 conftest.$ac_ext )
10126 # This is the source file.
10127 ;;
10128 [ab].out )
10129 # We found the default executable, but exeext='' is most
10130 # certainly right.
10131 break;;
10132 *.* )
10133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10134 # FIXME: I believe we export ac_cv_exeext for Libtool,
10135 # but it would be cool to find out if it's true. Does anybody
10136 # maintain Libtool? --akim.
10137 export ac_cv_exeext
10138 break;;
10139 * )
10140 break;;
10141 esac
10142done
10143else
10144 echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10148See \`config.log' for more details." >&5
10149echo "$as_me: error: C compiler cannot create executables
10150See \`config.log' for more details." >&2;}
10151 { (exit 77); exit 77; }; }
10152fi
10153
10154ac_exeext=$ac_cv_exeext
10155echo "$as_me:$LINENO: result: $ac_file" >&5
10156echo "${ECHO_T}$ac_file" >&6
10157
10158# Check the compiler produces executables we can run. If not, either
10159# the compiler is broken, or we cross compile.
10160echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10161echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10162# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10163# If not cross compiling, check that we can run a simple program.
10164if test "$cross_compiling" != yes; then
10165 if { ac_try='./$ac_file'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 cross_compiling=no
698dcdb6 10172 else
e6cc62c6
VS
10173 if test "$cross_compiling" = maybe; then
10174 cross_compiling=yes
10175 else
10176 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10177If you meant to cross compile, use \`--host'.
10178See \`config.log' for more details." >&5
10179echo "$as_me: error: cannot run C compiled programs.
10180If you meant to cross compile, use \`--host'.
10181See \`config.log' for more details." >&2;}
10182 { (exit 1); exit 1; }; }
10183 fi
698dcdb6 10184 fi
52127426 10185fi
e6cc62c6
VS
10186echo "$as_me:$LINENO: result: yes" >&5
10187echo "${ECHO_T}yes" >&6
10188
10189rm -f a.out a.exe conftest$ac_cv_exeext b.out
10190ac_clean_files=$ac_clean_files_save
10191# Check the compiler produces executables we can run. If not, either
10192# the compiler is broken, or we cross compile.
10193echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10194echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10195echo "$as_me:$LINENO: result: $cross_compiling" >&5
10196echo "${ECHO_T}$cross_compiling" >&6
10197
10198echo "$as_me:$LINENO: checking for suffix of executables" >&5
10199echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; then
10205 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10206# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10207# work properly (i.e., refer to `conftest.exe'), while it won't with
10208# `rm'.
10209for ac_file in conftest.exe conftest conftest.*; do
10210 test -f "$ac_file" || continue
10211 case $ac_file in
10212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10214 export ac_cv_exeext
10215 break;;
10216 * ) break;;
10217 esac
10218done
5c6fa7d2 10219else
e6cc62c6
VS
10220 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10221See \`config.log' for more details." >&5
10222echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10223See \`config.log' for more details." >&2;}
10224 { (exit 1); exit 1; }; }
10225fi
10226
10227rm -f conftest$ac_cv_exeext
10228echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10229echo "${ECHO_T}$ac_cv_exeext" >&6
10230
10231rm -f conftest.$ac_ext
10232EXEEXT=$ac_cv_exeext
10233ac_exeext=$EXEEXT
10234echo "$as_me:$LINENO: checking for suffix of object files" >&5
10235echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10236if test "${ac_cv_objext+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239 cat >conftest.$ac_ext <<_ACEOF
10240#line $LINENO "configure"
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h. */
10246
10247int
10248main ()
10249{
f09359cf 10250
e6cc62c6
VS
10251 ;
10252 return 0;
10253}
10254_ACEOF
10255rm -f conftest.o conftest.obj
10256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; then
10261 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10262 case $ac_file in
10263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10264 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10265 break;;
10266 esac
10267done
a0b9e27f 10268else
e6cc62c6
VS
10269 echo "$as_me: failed program was:" >&5
10270sed 's/^/| /' conftest.$ac_ext >&5
10271
10272{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10273See \`config.log' for more details." >&5
10274echo "$as_me: error: cannot compute suffix of object files: cannot compile
10275See \`config.log' for more details." >&2;}
10276 { (exit 1); exit 1; }; }
a0b9e27f 10277fi
247f5006 10278
e6cc62c6
VS
10279rm -f conftest.$ac_cv_objext conftest.$ac_ext
10280fi
10281echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10282echo "${ECHO_T}$ac_cv_objext" >&6
10283OBJEXT=$ac_cv_objext
10284ac_objext=$OBJEXT
10285echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10286echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10287if test "${ac_cv_c_compiler_gnu+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10289else
e6cc62c6
VS
10290 cat >conftest.$ac_ext <<_ACEOF
10291#line $LINENO "configure"
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297
10298int
10299main ()
10300{
10301#ifndef __GNUC__
10302 choke me
10303#endif
10304
10305 ;
10306 return 0;
10307}
10308_ACEOF
10309rm -f conftest.$ac_objext
10310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311 (eval $ac_compile) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try='test -s conftest.$ac_objext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 ac_compiler_gnu=yes
10322else
10323 echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326ac_compiler_gnu=no
10327fi
10328rm -f conftest.$ac_objext conftest.$ac_ext
10329ac_cv_c_compiler_gnu=$ac_compiler_gnu
10330
10331fi
10332echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10333echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10334GCC=`test $ac_compiler_gnu = yes && echo yes`
10335ac_test_CFLAGS=${CFLAGS+set}
10336ac_save_CFLAGS=$CFLAGS
10337CFLAGS="-g"
10338echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10339echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10340if test "${ac_cv_prog_cc_g+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342else
10343 cat >conftest.$ac_ext <<_ACEOF
10344#line $LINENO "configure"
10345/* confdefs.h. */
10346_ACEOF
10347cat confdefs.h >>conftest.$ac_ext
10348cat >>conftest.$ac_ext <<_ACEOF
10349/* end confdefs.h. */
10350
10351int
10352main ()
10353{
10354
10355 ;
10356 return 0;
10357}
10358_ACEOF
10359rm -f conftest.$ac_objext
10360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10f2d63a
VZ
10371 ac_cv_prog_cc_g=yes
10372else
e6cc62c6
VS
10373 echo "$as_me: failed program was:" >&5
10374sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10375
e6cc62c6 10376ac_cv_prog_cc_g=no
10f2d63a 10377fi
e6cc62c6
VS
10378rm -f conftest.$ac_objext conftest.$ac_ext
10379fi
10380echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10381echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10382if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10383 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10384elif test $ac_cv_prog_cc_g = yes; then
10385 if test "$GCC" = yes; then
10f2d63a
VZ
10386 CFLAGS="-g -O2"
10387 else
f09359cf 10388 CFLAGS="-g"
10f2d63a 10389 fi
5c0a20c3 10390else
f09359cf
VS
10391 if test "$GCC" = yes; then
10392 CFLAGS="-O2"
10393 else
10394 CFLAGS=
10395 fi
10f2d63a 10396fi
e6cc62c6
VS
10397echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10398echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10399if test "${ac_cv_prog_cc_stdc+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402 ac_cv_prog_cc_stdc=no
10403ac_save_CC=$CC
10404cat >conftest.$ac_ext <<_ACEOF
10405#line $LINENO "configure"
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
10411#include <stdarg.h>
10412#include <stdio.h>
10413#include <sys/types.h>
10414#include <sys/stat.h>
10415/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10416struct buf { int x; };
10417FILE * (*rcsopen) (struct buf *, struct stat *, int);
10418static char *e (p, i)
10419 char **p;
10420 int i;
10421{
10422 return p[i];
10423}
10424static char *f (char * (*g) (char **, int), char **p, ...)
10425{
10426 char *s;
10427 va_list v;
10428 va_start (v,p);
10429 s = g (p, va_arg (v,int));
10430 va_end (v);
10431 return s;
10432}
10433int test (int i, double x);
10434struct s1 {int (*f) (int a);};
10435struct s2 {int (*f) (double a);};
10436int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10437int argc;
10438char **argv;
10439int
10440main ()
10441{
10442return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10443 ;
10444 return 0;
10445}
10446_ACEOF
10447# Don't try gcc -ansi; that turns off useful extensions and
10448# breaks some systems' header files.
10449# AIX -qlanglvl=ansi
10450# Ultrix and OSF/1 -std1
10451# HP-UX 10.20 and later -Ae
10452# HP-UX older versions -Aa -D_HPUX_SOURCE
10453# SVR4 -Xc -D__EXTENSIONS__
10454for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10455do
10456 CC="$ac_save_CC $ac_arg"
10457 rm -f conftest.$ac_objext
10458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10459 (eval $ac_compile) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -s conftest.$ac_objext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_prog_cc_stdc=$ac_arg
10470break
10471else
10472 echo "$as_me: failed program was:" >&5
10473sed 's/^/| /' conftest.$ac_ext >&5
10474
10475fi
10476rm -f conftest.$ac_objext
10477done
10478rm -f conftest.$ac_ext conftest.$ac_objext
10479CC=$ac_save_CC
10480
10481fi
10482
10483case "x$ac_cv_prog_cc_stdc" in
10484 x|xno)
10485 echo "$as_me:$LINENO: result: none needed" >&5
10486echo "${ECHO_T}none needed" >&6 ;;
10487 *)
10488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10489echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10490 CC="$CC $ac_cv_prog_cc_stdc" ;;
10491esac
10492
10493# Some people use a C++ compiler to compile C. Since we use `exit',
10494# in C++ we need to declare it. In case someone uses the same compiler
10495# for both compiling C and C++ we need to have the C++ compiler decide
10496# the declaration of exit, since it's the most demanding environment.
10497cat >conftest.$ac_ext <<_ACEOF
10498#ifndef __cplusplus
10499 choke me
10500#endif
10501_ACEOF
10502rm -f conftest.$ac_objext
10503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -s conftest.$ac_objext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 for ac_declaration in \
6f628073
VS
10515 ''\
10516 '#include <stdlib.h>' \
e6cc62c6
VS
10517 'extern "C" void std::exit (int) throw (); using std::exit;' \
10518 'extern "C" void std::exit (int); using std::exit;' \
10519 'extern "C" void exit (int) throw ();' \
10520 'extern "C" void exit (int);' \
10521 'void exit (int);'
10522do
10523 cat >conftest.$ac_ext <<_ACEOF
10524#line $LINENO "configure"
10525/* confdefs.h. */
10526_ACEOF
10527cat confdefs.h >>conftest.$ac_ext
10528cat >>conftest.$ac_ext <<_ACEOF
10529/* end confdefs.h. */
71e83a03 10530#include <stdlib.h>
6f628073 10531$ac_declaration
e6cc62c6
VS
10532int
10533main ()
10534{
10535exit (42);
10536 ;
10537 return 0;
10538}
10539_ACEOF
10540rm -f conftest.$ac_objext
10541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10542 (eval $ac_compile) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -s conftest.$ac_objext'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 :
10553else
10554 echo "$as_me: failed program was:" >&5
10555sed 's/^/| /' conftest.$ac_ext >&5
10556
10557continue
10558fi
10559rm -f conftest.$ac_objext conftest.$ac_ext
10560 cat >conftest.$ac_ext <<_ACEOF
10561#line $LINENO "configure"
10562/* confdefs.h. */
10563_ACEOF
10564cat confdefs.h >>conftest.$ac_ext
10565cat >>conftest.$ac_ext <<_ACEOF
10566/* end confdefs.h. */
10567$ac_declaration
10568int
10569main ()
10570{
10571exit (42);
10572 ;
10573 return 0;
10574}
10575_ACEOF
10576rm -f conftest.$ac_objext
10577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578 (eval $ac_compile) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 break
10589else
10590 echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
10593fi
10594rm -f conftest.$ac_objext conftest.$ac_ext
10595done
10596rm -f conftest*
10597if test -n "$ac_declaration"; then
10598 echo '#ifdef __cplusplus' >>confdefs.h
10599 echo $ac_declaration >>confdefs.h
10600 echo '#endif' >>confdefs.h
10601fi
10602
10603else
10604 echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607fi
10608rm -f conftest.$ac_objext conftest.$ac_ext
10609ac_ext=c
10610ac_cpp='$CPP $CPPFLAGS'
10611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10613ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10614
10615
e6cc62c6
VS
10616
10617ac_ext=c
10618ac_cpp='$CPP $CPPFLAGS'
10619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10621ac_compiler_gnu=$ac_cv_c_compiler_gnu
10622echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10623echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10624# On Suns, sometimes $CPP names a directory.
10625if test -n "$CPP" && test -d "$CPP"; then
10626 CPP=
10627fi
10628if test -z "$CPP"; then
e6cc62c6
VS
10629 if test "${ac_cv_prog_CPP+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631else
10632 # Double quotes because CPP needs to be expanded
10633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10634 do
10635 ac_preproc_ok=false
10636for ac_c_preproc_warn_flag in '' yes
10637do
10638 # Use a header file that comes with gcc, so configuring glibc
10639 # with a fresh cross-compiler works.
10640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10641 # <limits.h> exists even on freestanding compilers.
10f2d63a 10642 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10643 # not just through cpp. "Syntax error" is here to catch this case.
10644 cat >conftest.$ac_ext <<_ACEOF
10645#line $LINENO "configure"
10646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h. */
10651#ifdef __STDC__
10652# include <limits.h>
10653#else
10654# include <assert.h>
10655#endif
10656 Syntax error
10657_ACEOF
10658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null; then
10666 if test -s conftest.err; then
10667 ac_cpp_err=$ac_c_preproc_warn_flag
10668 else
10669 ac_cpp_err=
10670 fi
10f2d63a 10671else
e6cc62c6
VS
10672 ac_cpp_err=yes
10673fi
10674if test -z "$ac_cpp_err"; then
a0b9e27f 10675 :
247f5006 10676else
e6cc62c6
VS
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680 # Broken: fails on valid input.
10681continue
10682fi
10683rm -f conftest.err conftest.$ac_ext
10684
10685 # OK, works on sane cases. Now check whether non-existent headers
10686 # can be detected and how.
10687 cat >conftest.$ac_ext <<_ACEOF
10688#line $LINENO "configure"
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694#include <ac_nonexistent.h>
10695_ACEOF
10696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null; then
10704 if test -s conftest.err; then
10705 ac_cpp_err=$ac_c_preproc_warn_flag
10706 else
10707 ac_cpp_err=
10708 fi
10f2d63a 10709else
e6cc62c6 10710 ac_cpp_err=yes
579d8138 10711fi
e6cc62c6
VS
10712if test -z "$ac_cpp_err"; then
10713 # Broken: success on invalid input.
10714continue
10715else
10716 echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 # Passes both tests.
10720ac_preproc_ok=:
10721break
52127426 10722fi
e6cc62c6
VS
10723rm -f conftest.err conftest.$ac_ext
10724
10725done
10726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10727rm -f conftest.err conftest.$ac_ext
10728if $ac_preproc_ok; then
10729 break
8284b0c5 10730fi
e6cc62c6
VS
10731
10732 done
10733 ac_cv_prog_CPP=$CPP
10734
10735fi
10736 CPP=$ac_cv_prog_CPP
10737else
10738 ac_cv_prog_CPP=$CPP
10739fi
10740echo "$as_me:$LINENO: result: $CPP" >&5
10741echo "${ECHO_T}$CPP" >&6
10742ac_preproc_ok=false
10743for ac_c_preproc_warn_flag in '' yes
10744do
10745 # Use a header file that comes with gcc, so configuring glibc
10746 # with a fresh cross-compiler works.
10747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10748 # <limits.h> exists even on freestanding compilers.
10749 # On the NeXT, cc -E runs the code through the compiler's parser,
10750 # not just through cpp. "Syntax error" is here to catch this case.
10751 cat >conftest.$ac_ext <<_ACEOF
10752#line $LINENO "configure"
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h. */
10758#ifdef __STDC__
10759# include <limits.h>
10760#else
10761# include <assert.h>
10762#endif
10763 Syntax error
10764_ACEOF
10765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then
10774 ac_cpp_err=$ac_c_preproc_warn_flag
10775 else
10776 ac_cpp_err=
10777 fi
10778else
10779 ac_cpp_err=yes
10780fi
10781if test -z "$ac_cpp_err"; then
10782 :
10783else
10784 echo "$as_me: failed program was:" >&5
10785sed 's/^/| /' conftest.$ac_ext >&5
10786
10787 # Broken: fails on valid input.
10788continue
10789fi
10790rm -f conftest.err conftest.$ac_ext
10791
10792 # OK, works on sane cases. Now check whether non-existent headers
10793 # can be detected and how.
10794 cat >conftest.$ac_ext <<_ACEOF
10795#line $LINENO "configure"
10796/* confdefs.h. */
10797_ACEOF
10798cat confdefs.h >>conftest.$ac_ext
10799cat >>conftest.$ac_ext <<_ACEOF
10800/* end confdefs.h. */
10801#include <ac_nonexistent.h>
10802_ACEOF
10803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } >/dev/null; then
10811 if test -s conftest.err; then
10812 ac_cpp_err=$ac_c_preproc_warn_flag
10813 else
10814 ac_cpp_err=
10815 fi
10816else
10817 ac_cpp_err=yes
10818fi
10819if test -z "$ac_cpp_err"; then
10820 # Broken: success on invalid input.
10821continue
10822else
10823 echo "$as_me: failed program was:" >&5
10824sed 's/^/| /' conftest.$ac_ext >&5
10825
10826 # Passes both tests.
10827ac_preproc_ok=:
10828break
a0b9e27f 10829fi
e6cc62c6
VS
10830rm -f conftest.err conftest.$ac_ext
10831
10832done
10833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10834rm -f conftest.err conftest.$ac_ext
10835if $ac_preproc_ok; then
10836 :
10837else
10838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10839See \`config.log' for more details." >&5
10840echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10841See \`config.log' for more details." >&2;}
10842 { (exit 1); exit 1; }; }
10843fi
10844
10845ac_ext=c
10846ac_cpp='$CPP $CPPFLAGS'
10847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849ac_compiler_gnu=$ac_cv_c_compiler_gnu
10850
10851
10852echo "$as_me:$LINENO: checking for egrep" >&5
10853echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10854if test "${ac_cv_prog_egrep+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10856else
e6cc62c6
VS
10857 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10858 then ac_cv_prog_egrep='grep -E'
10859 else ac_cv_prog_egrep='egrep'
10860 fi
10f2d63a 10861fi
e6cc62c6
VS
10862echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10863echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10864 EGREP=$ac_cv_prog_egrep
10865
10f2d63a 10866
e6cc62c6
VS
10867if test $ac_cv_c_compiler_gnu = yes; then
10868 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10869echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10870if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10872else
10873 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10874 cat >conftest.$ac_ext <<_ACEOF
10875#line $LINENO "configure"
10876/* confdefs.h. */
10877_ACEOF
10878cat confdefs.h >>conftest.$ac_ext
10879cat >>conftest.$ac_ext <<_ACEOF
10880/* end confdefs.h. */
10f2d63a
VZ
10881#include <sgtty.h>
10882Autoconf TIOCGETP
e6cc62c6 10883_ACEOF
10f2d63a 10884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10885 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10886 ac_cv_prog_gcc_traditional=yes
10887else
10f2d63a
VZ
10888 ac_cv_prog_gcc_traditional=no
10889fi
10890rm -f conftest*
10891
8284b0c5 10892
10f2d63a 10893 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10894 cat >conftest.$ac_ext <<_ACEOF
10895#line $LINENO "configure"
10896/* confdefs.h. */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h. */
10f2d63a
VZ
10901#include <termio.h>
10902Autoconf TCGETA
e6cc62c6 10903_ACEOF
10f2d63a 10904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10905 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10906 ac_cv_prog_gcc_traditional=yes
10907fi
10908rm -f conftest*
10909
10910 fi
10911fi
e6cc62c6
VS
10912echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10913echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10914 if test $ac_cv_prog_gcc_traditional = yes; then
10915 CC="$CC -traditional"
10916 fi
10917fi
10918
8284b0c5
MB
10919
10920
e6cc62c6
VS
10921
10922ac_ext=cc
1e487827 10923ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10927
698dcdb6 10928
ec603395 10929CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10930ac_ext=cc
10931ac_cpp='$CXXCPP $CPPFLAGS'
10932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10935if test -n "$ac_tool_prefix"; then
10936 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10937 do
10938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10940echo "$as_me:$LINENO: checking for $ac_word" >&5
10941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10942if test "${ac_cv_prog_CXX+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10944else
10945 if test -n "$CXX"; then
10946 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10947else
e6cc62c6
VS
10948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949for as_dir in $PATH
10950do
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10955 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10958 fi
10959done
10960done
10961
10f2d63a
VZ
10962fi
10963fi
e6cc62c6 10964CXX=$ac_cv_prog_CXX
10f2d63a 10965if test -n "$CXX"; then
e6cc62c6
VS
10966 echo "$as_me:$LINENO: result: $CXX" >&5
10967echo "${ECHO_T}$CXX" >&6
10f2d63a 10968else
e6cc62c6
VS
10969 echo "$as_me:$LINENO: result: no" >&5
10970echo "${ECHO_T}no" >&6
10f2d63a
VZ
10971fi
10972
e6cc62c6
VS
10973 test -n "$CXX" && break
10974 done
10975fi
10976if test -z "$CXX"; then
10977 ac_ct_CXX=$CXX
10978 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10979do
10980 # Extract the first word of "$ac_prog", so it can be a program name with args.
10981set dummy $ac_prog; ac_word=$2
10982echo "$as_me:$LINENO: checking for $ac_word" >&5
10983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10984if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986else
10987 if test -n "$ac_ct_CXX"; then
10988 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10989else
10990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10997 ac_cv_prog_ac_ct_CXX="$ac_prog"
10998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11000 fi
11001done
10f2d63a 11002done
a0b9e27f 11003
8284b0c5 11004fi
a0b9e27f 11005fi
e6cc62c6
VS
11006ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11007if test -n "$ac_ct_CXX"; then
11008 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11009echo "${ECHO_T}$ac_ct_CXX" >&6
11010else
11011 echo "$as_me:$LINENO: result: no" >&5
11012echo "${ECHO_T}no" >&6
a0b9e27f 11013fi
10f2d63a 11014
e6cc62c6
VS
11015 test -n "$ac_ct_CXX" && break
11016done
11017test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11018
11019 CXX=$ac_ct_CXX
11020fi
11021
11022
11023# Provide some information about the compiler.
11024echo "$as_me:$LINENO:" \
11025 "checking for C++ compiler version" >&5
11026ac_compiler=`set X $ac_compile; echo $2`
11027{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11028 (eval $ac_compiler --version </dev/null >&5) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }
11032{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11033 (eval $ac_compiler -v </dev/null >&5) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }
11037{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11038 (eval $ac_compiler -V </dev/null >&5) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }
11042
11043echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11044echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11045if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else
11048 cat >conftest.$ac_ext <<_ACEOF
11049#line $LINENO "configure"
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055
11056int
11057main ()
11058{
11059#ifndef __GNUC__
11060 choke me
11061#endif
10f2d63a 11062
e6cc62c6
VS
11063 ;
11064 return 0;
11065}
11066_ACEOF
11067rm -f conftest.$ac_objext
11068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11069 (eval $ac_compile) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -s conftest.$ac_objext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_compiler_gnu=yes
11080else
11081 echo "$as_me: failed program was:" >&5
11082sed 's/^/| /' conftest.$ac_ext >&5
11083
11084ac_compiler_gnu=no
11085fi
11086rm -f conftest.$ac_objext conftest.$ac_ext
11087ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11088
11089fi
11090echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11091echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11092GXX=`test $ac_compiler_gnu = yes && echo yes`
11093ac_test_CXXFLAGS=${CXXFLAGS+set}
11094ac_save_CXXFLAGS=$CXXFLAGS
11095CXXFLAGS="-g"
11096echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11097echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11098if test "${ac_cv_prog_cxx_g+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 cat >conftest.$ac_ext <<_ACEOF
11102#line $LINENO "configure"
11103/* confdefs.h. */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */
11108
11109int
11110main ()
11111{
f09359cf 11112
e6cc62c6
VS
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.$ac_objext
11118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
10f2d63a
VZ
11129 ac_cv_prog_cxx_g=yes
11130else
e6cc62c6
VS
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11133
e6cc62c6 11134ac_cv_prog_cxx_g=no
10f2d63a 11135fi
e6cc62c6
VS
11136rm -f conftest.$ac_objext conftest.$ac_ext
11137fi
11138echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11139echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11140if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11141 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11142elif test $ac_cv_prog_cxx_g = yes; then
11143 if test "$GXX" = yes; then
10f2d63a
VZ
11144 CXXFLAGS="-g -O2"
11145 else
f09359cf 11146 CXXFLAGS="-g"
10f2d63a 11147 fi
5c0a20c3 11148else
f09359cf
VS
11149 if test "$GXX" = yes; then
11150 CXXFLAGS="-O2"
11151 else
11152 CXXFLAGS=
11153 fi
10f2d63a 11154fi
e6cc62c6 11155for ac_declaration in \
6f628073
VS
11156 ''\
11157 '#include <stdlib.h>' \
e6cc62c6
VS
11158 'extern "C" void std::exit (int) throw (); using std::exit;' \
11159 'extern "C" void std::exit (int); using std::exit;' \
11160 'extern "C" void exit (int) throw ();' \
11161 'extern "C" void exit (int);' \
11162 'void exit (int);'
11163do
11164 cat >conftest.$ac_ext <<_ACEOF
11165#line $LINENO "configure"
11166/* confdefs.h. */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h. */
71e83a03 11171#include <stdlib.h>
6f628073 11172$ac_declaration
e6cc62c6
VS
11173int
11174main ()
11175{
11176exit (42);
11177 ;
11178 return 0;
11179}
11180_ACEOF
11181rm -f conftest.$ac_objext
11182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 :
11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
11198continue
11199fi
11200rm -f conftest.$ac_objext conftest.$ac_ext
11201 cat >conftest.$ac_ext <<_ACEOF
11202#line $LINENO "configure"
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208$ac_declaration
11209int
11210main ()
11211{
11212exit (42);
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>&5
11220 ac_status=$?
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -s conftest.$ac_objext'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 break
11230else
11231 echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
11234fi
11235rm -f conftest.$ac_objext conftest.$ac_ext
11236done
11237rm -f conftest*
11238if test -n "$ac_declaration"; then
11239 echo '#ifdef __cplusplus' >>confdefs.h
11240 echo $ac_declaration >>confdefs.h
11241 echo '#endif' >>confdefs.h
11242fi
11243
11244ac_ext=cc
11245ac_cpp='$CXXCPP $CPPFLAGS'
11246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11249
11250
10f2d63a 11251ac_ext=c
10f2d63a 11252ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11256
11257
e6cc62c6
VS
11258if test -n "$ac_tool_prefix"; then
11259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11260set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11261echo "$as_me:$LINENO: checking for $ac_word" >&5
11262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263if test "${ac_cv_prog_RANLIB+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11265else
11266 if test -n "$RANLIB"; then
11267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11268else
e6cc62c6
VS
11269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280done
11281done
11282
10f2d63a
VZ
11283fi
11284fi
e6cc62c6 11285RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11286if test -n "$RANLIB"; then
e6cc62c6
VS
11287 echo "$as_me:$LINENO: result: $RANLIB" >&5
11288echo "${ECHO_T}$RANLIB" >&6
11289else
11290 echo "$as_me:$LINENO: result: no" >&5
11291echo "${ECHO_T}no" >&6
11292fi
11293
11294fi
11295if test -z "$ac_cv_prog_RANLIB"; then
11296 ac_ct_RANLIB=$RANLIB
11297 # Extract the first word of "ranlib", so it can be a program name with args.
11298set dummy ranlib; ac_word=$2
11299echo "$as_me:$LINENO: checking for $ac_word" >&5
11300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11301if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11303else
e6cc62c6
VS
11304 if test -n "$ac_ct_RANLIB"; then
11305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11306else
11307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308for as_dir in $PATH
11309do
11310 IFS=$as_save_IFS
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314 ac_cv_prog_ac_ct_RANLIB="ranlib"
11315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 break 2
11317 fi
11318done
11319done
11320
11321 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11322fi
11323fi
11324ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11325if test -n "$ac_ct_RANLIB"; then
11326 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11327echo "${ECHO_T}$ac_ct_RANLIB" >&6
11328else
11329 echo "$as_me:$LINENO: result: no" >&5
11330echo "${ECHO_T}no" >&6
11331fi
11332
11333 RANLIB=$ac_ct_RANLIB
11334else
11335 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11336fi
11337
10f2d63a
VZ
11338
11339# Extract the first word of "ar", so it can be a program name with args.
11340set dummy ar; ac_word=$2
e6cc62c6
VS
11341echo "$as_me:$LINENO: checking for $ac_word" >&5
11342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343if test "${ac_cv_prog_AR+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11345else
11346 if test -n "$AR"; then
11347 ac_cv_prog_AR="$AR" # Let the user override the test.
11348else
e6cc62c6
VS
11349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350for as_dir in $PATH
11351do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356 ac_cv_prog_AR="ar"
11357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11359 fi
11360done
11361done
11362
10f2d63a
VZ
11363 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11364fi
11365fi
e6cc62c6 11366AR=$ac_cv_prog_AR
10f2d63a 11367if test -n "$AR"; then
e6cc62c6
VS
11368 echo "$as_me:$LINENO: result: $AR" >&5
11369echo "${ECHO_T}$AR" >&6
10f2d63a 11370else
e6cc62c6
VS
11371 echo "$as_me:$LINENO: result: no" >&5
11372echo "${ECHO_T}no" >&6
10f2d63a
VZ
11373fi
11374
8284b0c5 11375
6054113a 11376# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11377# so one script is as good as another. But avoid the broken or
11378# incompatible versions:
11379# SysV /etc/install, /usr/sbin/install
11380# SunOS /usr/etc/install
11381# IRIX /sbin/install
11382# AIX /bin/install
e6cc62c6 11383# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11387# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11388echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11389echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11390if test -z "$INSTALL"; then
e6cc62c6
VS
11391if test "${ac_cv_path_install+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395for as_dir in $PATH
11396do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 # Account for people who put trailing slashes in PATH elements.
11400case $as_dir/ in
11401 ./ | .// | /cC/* | \
11402 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11403 /usr/ucb/* ) ;;
11404 *)
11405 # OSF1 and SCO ODT 3.0 have their own names for install.
11406 # Don't use installbsd from OSF since it installs stuff as root
11407 # by default.
11408 for ac_prog in ginstall scoinst install; do
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11411 if test $ac_prog = install &&
11412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11413 # AIX install. It has an incompatible calling convention.
11414 :
11415 elif test $ac_prog = install &&
11416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11417 # program-specific install script used by HP pwplus--don't use.
11418 :
11419 else
11420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11421 break 3
11422 fi
11423 fi
10f2d63a 11424 done
e6cc62c6
VS
11425 done
11426 ;;
11427esac
11428done
11429
10f2d63a
VZ
11430
11431fi
11432 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11433 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11434 else
11435 # As a last resort, use the slow shell script. We don't cache a
11436 # path for INSTALL within a source directory, because that will
11437 # break other packages using the cache if that directory is
11438 # removed, or if the path is relative.
e6cc62c6 11439 INSTALL=$ac_install_sh
10f2d63a
VZ
11440 fi
11441fi
e6cc62c6
VS
11442echo "$as_me:$LINENO: result: $INSTALL" >&5
11443echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11444
11445# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11446# It thinks the first close brace ends the variable substitution.
11447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11448
e6cc62c6 11449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11450
10f2d63a
VZ
11451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11452
8284b0c5 11453
1d1b75ac
VZ
11454case ${INSTALL} in
11455 /* ) # Absolute
11456 ;;
4f5a7f74
VZ
11457 ?:* ) # Drive letter, considered as absolute.
11458 ;;
3bd8fb5f 11459 *)
1d1b75ac
VZ
11460 INSTALL=`pwd`/${INSTALL} ;;
11461esac
11462
4f5a7f74
VZ
11463case ${host} in
11464 *-hp-hpux* )
11465 INSTALL_DIR="mkdir"
11466 ;;
11467
11468 *) INSTALL_DIR="$INSTALL -d"
11469 ;;
11470esac
11471
8284b0c5 11472
6054113a
GD
11473case "${host}" in
11474
b5853384 11475 powerpc-*-darwin* )
eb99ae0b
GD
11476 INSTALL_PROGRAM="cp -fp"
11477 INSTALL_DATA="cp -fp"
6054113a
GD
11478 ;;
11479 *)
11480 ;;
d6853540 11481esac
698dcdb6 11482
10f2d63a
VZ
11483# Extract the first word of "strip", so it can be a program name with args.
11484set dummy strip; ac_word=$2
e6cc62c6
VS
11485echo "$as_me:$LINENO: checking for $ac_word" >&5
11486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11487if test "${ac_cv_prog_STRIP+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11489else
11490 if test -n "$STRIP"; then
11491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11492else
e6cc62c6
VS
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_prog_STRIP="strip"
11501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504done
11505done
11506
10f2d63a
VZ
11507 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11508fi
11509fi
e6cc62c6 11510STRIP=$ac_cv_prog_STRIP
10f2d63a 11511if test -n "$STRIP"; then
e6cc62c6
VS
11512 echo "$as_me:$LINENO: result: $STRIP" >&5
11513echo "${ECHO_T}$STRIP" >&6
10f2d63a 11514else
e6cc62c6
VS
11515 echo "$as_me:$LINENO: result: no" >&5
11516echo "${ECHO_T}no" >&6
10f2d63a
VZ
11517fi
11518
5c6fa7d2 11519
e6cc62c6
VS
11520echo "$as_me:$LINENO: checking if make is GNU make" >&5
11521echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11522if test "${wx_cv_prog_makeisgnu+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11524else
e6cc62c6 11525
414eab6d 11526 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11527 egrep -s GNU > /dev/null); then
414eab6d
VZ
11528 wx_cv_prog_makeisgnu="yes"
11529 else
11530 wx_cv_prog_makeisgnu="no"
11531 fi
11532
11533fi
e6cc62c6
VS
11534echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11535echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11536
11537if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11538 IF_GNU_MAKE=""
11539else
11540 IF_GNU_MAKE="#"
11541fi
11542
8284b0c5
MB
11543
11544
414eab6d 11545if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11546echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11547echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11548if test "${wx_cv_prog_makevpath+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11550else
e6cc62c6 11551
10f2d63a
VZ
11552cat - << EOF > confMake
11553check : file
11554 cp \$? \$@
11555 cp \$? final_file
11556EOF
11557
11558if test ! -d sub ; then
11559 mkdir sub
11560fi
11561echo dummy > sub/file
f6bcfd97 11562${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11563RESULT=$?
11564rm -f sub/file check final_file confMake
11565rmdir sub
11566if test "$RESULT" = 0; then
04e7a216 11567 wx_cv_prog_makevpath="yes"
10f2d63a 11568else
04e7a216
VZ
11569 wx_cv_prog_makevpath="no"
11570fi
11571
11572fi
e6cc62c6
VS
11573echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11574echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11575
11576if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11577{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11578You need a make-utility that is able to use the variable
11579VPATH correctly.
11580If your version of make does not support VPATH correctly,
11581please install GNU-make (possibly as gmake), and start
11582configure with the following command:
11583export MAKE=gmake; ./configure for sh-type shells
11584setenv MAKE gmake; ./configure for csh-type shells
11585Also please do remember to use gmake in this case every time
11586you are trying to compile.
e6cc62c6
VS
11587" >&5
11588echo "$as_me: error:
11589You need a make-utility that is able to use the variable
11590VPATH correctly.
11591If your version of make does not support VPATH correctly,
11592please install GNU-make (possibly as gmake), and start
11593configure with the following command:
11594export MAKE=gmake; ./configure for sh-type shells
11595setenv MAKE gmake; ./configure for csh-type shells
11596Also please do remember to use gmake in this case every time
11597you are trying to compile.
11598" >&2;}
11599 { (exit 1); exit 1; }; }
11600fi fi
10f2d63a
VZ
11601for ac_prog in 'bison -y' byacc
11602do
e6cc62c6 11603 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11604set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11605echo "$as_me:$LINENO: checking for $ac_word" >&5
11606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11607if test "${ac_cv_prog_YACC+set}" = set; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11609else
11610 if test -n "$YACC"; then
11611 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11612else
e6cc62c6
VS
11613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614for as_dir in $PATH
11615do
11616 IFS=$as_save_IFS
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11620 ac_cv_prog_YACC="$ac_prog"
11621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11622 break 2
11623 fi
11624done
11625done
11626
10f2d63a
VZ
11627fi
11628fi
e6cc62c6 11629YACC=$ac_cv_prog_YACC
10f2d63a 11630if test -n "$YACC"; then
e6cc62c6
VS
11631 echo "$as_me:$LINENO: result: $YACC" >&5
11632echo "${ECHO_T}$YACC" >&6
10f2d63a 11633else
e6cc62c6
VS
11634 echo "$as_me:$LINENO: result: no" >&5
11635echo "${ECHO_T}no" >&6
10f2d63a
VZ
11636fi
11637
e6cc62c6 11638 test -n "$YACC" && break
10f2d63a
VZ
11639done
11640test -n "$YACC" || YACC="yacc"
11641
8284b0c5 11642
e6cc62c6
VS
11643for ac_prog in flex lex
11644do
11645 # Extract the first word of "$ac_prog", so it can be a program name with args.
11646set dummy $ac_prog; ac_word=$2
11647echo "$as_me:$LINENO: checking for $ac_word" >&5
11648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11649if test "${ac_cv_prog_LEX+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11651else
11652 if test -n "$LEX"; then
11653 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11654else
e6cc62c6
VS
11655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656for as_dir in $PATH
11657do
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_prog_LEX="$ac_prog"
11663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11665 fi
11666done
11667done
11668
10f2d63a
VZ
11669fi
11670fi
e6cc62c6 11671LEX=$ac_cv_prog_LEX
10f2d63a 11672if test -n "$LEX"; then
e6cc62c6
VS
11673 echo "$as_me:$LINENO: result: $LEX" >&5
11674echo "${ECHO_T}$LEX" >&6
10f2d63a 11675else
e6cc62c6
VS
11676 echo "$as_me:$LINENO: result: no" >&5
11677echo "${ECHO_T}no" >&6
10f2d63a
VZ
11678fi
11679
e6cc62c6
VS
11680 test -n "$LEX" && break
11681done
11682test -n "$LEX" || LEX=":"
11683
10f2d63a
VZ
11684if test -z "$LEXLIB"
11685then
e6cc62c6
VS
11686 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11687echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11688if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690else
11691 ac_check_lib_save_LIBS=$LIBS
11692LIBS="-lfl $LIBS"
11693cat >conftest.$ac_ext <<_ACEOF
11694#line $LINENO "configure"
11695/* confdefs.h. */
11696_ACEOF
11697cat confdefs.h >>conftest.$ac_ext
11698cat >>conftest.$ac_ext <<_ACEOF
11699/* end confdefs.h. */
11700
11701/* Override any gcc2 internal prototype to avoid an error. */
11702#ifdef __cplusplus
11703extern "C"
11704#endif
11705/* We use char because int might match the return type of a gcc2
11706 builtin and then its argument prototype would still apply. */
11707char yywrap ();
11708int
11709main ()
11710{
11711yywrap ();
11712 ;
11713 return 0;
11714}
11715_ACEOF
11716rm -f conftest.$ac_objext conftest$ac_exeext
11717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_lib_fl_yywrap=yes
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733ac_cv_lib_fl_yywrap=no
11734fi
11735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11736LIBS=$ac_check_lib_save_LIBS
11737fi
11738echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11739echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11740if test $ac_cv_lib_fl_yywrap = yes; then
11741 LEXLIB="-lfl"
11742else
11743 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11744echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11745if test "${ac_cv_lib_l_yywrap+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 ac_check_lib_save_LIBS=$LIBS
11749LIBS="-ll $LIBS"
11750cat >conftest.$ac_ext <<_ACEOF
11751#line $LINENO "configure"
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757
247f5006 11758/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11759#ifdef __cplusplus
11760extern "C"
11761#endif
247f5006 11762/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11763 builtin and then its argument prototype would still apply. */
11764char yywrap ();
11765int
11766main ()
11767{
11768yywrap ();
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext conftest$ac_exeext
11774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775 (eval $ac_link) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -s conftest$ac_exeext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_lib_l_yywrap=yes
11786else
11787 echo "$as_me: failed program was:" >&5
11788sed 's/^/| /' conftest.$ac_ext >&5
11789
11790ac_cv_lib_l_yywrap=no
11791fi
11792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11793LIBS=$ac_check_lib_save_LIBS
11794fi
11795echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11796echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11797if test $ac_cv_lib_l_yywrap = yes; then
11798 LEXLIB="-ll"
11799fi
10f2d63a 11800
10f2d63a 11801fi
8284b0c5 11802
10f2d63a 11803fi
e6cc62c6
VS
11804
11805if test "x$LEX" != "x:"; then
11806 echo "$as_me:$LINENO: checking lex output file root" >&5
11807echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11808if test "${ac_cv_prog_lex_root+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810else
11811 # The minimal lex program is just a single line: %%. But some broken lexes
11812# (Solaris, I think it was) want two %% lines, so accommodate them.
11813cat >conftest.l <<_ACEOF
11814%%
11815%%
11816_ACEOF
11817{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11818 (eval $LEX conftest.l) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }
11822if test -f lex.yy.c; then
11823 ac_cv_prog_lex_root=lex.yy
11824elif test -f lexyy.c; then
11825 ac_cv_prog_lex_root=lexyy
8284b0c5 11826else
e6cc62c6
VS
11827 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11828echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11829 { (exit 1); exit 1; }; }
10f2d63a 11830fi
a0b9e27f 11831fi
e6cc62c6
VS
11832echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11833echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11834rm -f conftest.l
11835LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11836
e6cc62c6
VS
11837echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11838echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11839if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11841else
e6cc62c6
VS
11842 # POSIX says lex can declare yytext either as a pointer or an array; the
11843# default is implementation-dependent. Figure out which it is, since
11844# not all implementations provide the %pointer and %array declarations.
11845ac_cv_prog_lex_yytext_pointer=no
11846echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11847ac_save_LIBS=$LIBS
11848LIBS="$LIBS $LEXLIB"
11849cat >conftest.$ac_ext <<_ACEOF
11850`cat $LEX_OUTPUT_ROOT.c`
11851_ACEOF
11852rm -f conftest.$ac_objext conftest$ac_exeext
11853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
11858 { ac_try='test -s conftest$ac_exeext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11865else
e6cc62c6
VS
11866 echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
10f2d63a 11869fi
e6cc62c6
VS
11870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871LIBS=$ac_save_LIBS
11872rm -f "${LEX_OUTPUT_ROOT}.c"
11873
11874fi
11875echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11876echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11877if test $ac_cv_prog_lex_yytext_pointer = yes; then
11878
11879cat >>confdefs.h <<\_ACEOF
11880#define YYTEXT_POINTER 1
11881_ACEOF
11882
a0b9e27f 11883fi
e6cc62c6
VS
11884
11885fi
11886
11887echo "$as_me:$LINENO: checking whether ln -s works" >&5
11888echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11889LN_S=$as_ln_s
11890if test "$LN_S" = "ln -s"; then
11891 echo "$as_me:$LINENO: result: yes" >&5
11892echo "${ECHO_T}yes" >&6
10f2d63a 11893else
e6cc62c6
VS
11894 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11895echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11896fi
5c6fa7d2 11897
247f5006 11898
2b5f62a0
VZ
11899case "${host}" in
11900 *-pc-os2_emx | *-pc-os2-emx )
11901 LIBS="$LIBS -lstdcpp"
11902 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11903 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11904echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11905if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11907else
e6cc62c6 11908 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11909LIBS="-lcExt $LIBS"
e6cc62c6
VS
11910cat >conftest.$ac_ext <<_ACEOF
11911#line $LINENO "configure"
11912/* confdefs.h. */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h. */
11917
2b5f62a0 11918/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11919#ifdef __cplusplus
11920extern "C"
11921#endif
2b5f62a0 11922/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11923 builtin and then its argument prototype would still apply. */
11924char drand48 ();
11925int
11926main ()
11927{
11928drand48 ();
11929 ;
11930 return 0;
11931}
11932_ACEOF
11933rm -f conftest.$ac_objext conftest$ac_exeext
11934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_cv_lib_cExt_drand48=yes
11946else
11947 echo "$as_me: failed program was:" >&5
11948sed 's/^/| /' conftest.$ac_ext >&5
11949
11950ac_cv_lib_cExt_drand48=no
11951fi
11952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11953LIBS=$ac_check_lib_save_LIBS
11954fi
11955echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11956echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11957if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11958 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11959fi
11960
11961 else
11962 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11963 fi
11964 ;;
11965esac
11966
a0b9e27f 11967
01aa5863
VS
11968if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11969 echo "$as_me:$LINENO: checking for strings.h" >&5
11970echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11971if test "${ac_cv_header_strings_h+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 ac_cv_header_strings_h=no
11975fi
11976echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11977echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11978 if test "$ac_cv_header_strings_h" = "no"; then
11979 echo "$as_me:$LINENO: result: forced no into cache" >&5
11980echo "${ECHO_T}forced no into cache" >&6
11981 else
11982 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11983echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11984 fi
11985fi
11986echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11987echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11988if test "${ac_cv_header_stdc+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991 cat >conftest.$ac_ext <<_ACEOF
11992#line $LINENO "configure"
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998#include <stdlib.h>
11999#include <stdarg.h>
12000#include <string.h>
12001#include <float.h>
247f5006 12002
e6cc62c6
VS
12003int
12004main ()
12005{
90dd450c 12006
e6cc62c6
VS
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext
12012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12013 (eval $ac_compile) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_cv_header_stdc=yes
8284b0c5 12024else
e6cc62c6
VS
12025 echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028ac_cv_header_stdc=no
21d1c967 12029fi
e6cc62c6 12030rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12031
e6cc62c6
VS
12032if test $ac_cv_header_stdc = yes; then
12033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12034 cat >conftest.$ac_ext <<_ACEOF
12035#line $LINENO "configure"
12036/* confdefs.h. */
12037_ACEOF
12038cat confdefs.h >>conftest.$ac_ext
12039cat >>conftest.$ac_ext <<_ACEOF
12040/* end confdefs.h. */
12041#include <string.h>
12042
12043_ACEOF
12044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12045 $EGREP "memchr" >/dev/null 2>&1; then
12046 :
12047else
12048 ac_cv_header_stdc=no
3a922bb4 12049fi
a0b9e27f 12050rm -f conftest*
e6cc62c6 12051
90dd450c 12052fi
e6cc62c6
VS
12053
12054if test $ac_cv_header_stdc = yes; then
12055 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12056 cat >conftest.$ac_ext <<_ACEOF
12057#line $LINENO "configure"
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063#include <stdlib.h>
12064
12065_ACEOF
12066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12067 $EGREP "free" >/dev/null 2>&1; then
12068 :
a0b9e27f 12069else
e6cc62c6 12070 ac_cv_header_stdc=no
21d1c967 12071fi
e6cc62c6 12072rm -f conftest*
247f5006
VZ
12073
12074fi
e6cc62c6
VS
12075
12076if test $ac_cv_header_stdc = yes; then
12077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12078 if test "$cross_compiling" = yes; then
12079 :
12080else
12081 cat >conftest.$ac_ext <<_ACEOF
12082#line $LINENO "configure"
12083/* confdefs.h. */
12084_ACEOF
12085cat confdefs.h >>conftest.$ac_ext
12086cat >>conftest.$ac_ext <<_ACEOF
12087/* end confdefs.h. */
12088#include <ctype.h>
12089#if ((' ' & 0x0FF) == 0x020)
12090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12092#else
12093# define ISLOWER(c) \
12094 (('a' <= (c) && (c) <= 'i') \
12095 || ('j' <= (c) && (c) <= 'r') \
12096 || ('s' <= (c) && (c) <= 'z'))
12097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12098#endif
12099
12100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12101int
12102main ()
12103{
12104 int i;
12105 for (i = 0; i < 256; i++)
12106 if (XOR (islower (i), ISLOWER (i))
12107 || toupper (i) != TOUPPER (i))
12108 exit(2);
12109 exit (0);
12110}
12111_ACEOF
12112rm -f conftest$ac_exeext
12113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 :
a0b9e27f 12124else
e6cc62c6
VS
12125 echo "$as_me: program exited with status $ac_status" >&5
12126echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129( exit $ac_status )
12130ac_cv_header_stdc=no
12131fi
12132rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12133fi
12134fi
12135fi
12136echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12137echo "${ECHO_T}$ac_cv_header_stdc" >&6
12138if test $ac_cv_header_stdc = yes; then
12139
12140cat >>confdefs.h <<\_ACEOF
12141#define STDC_HEADERS 1
12142_ACEOF
12143
a0b9e27f 12144fi
e6cc62c6
VS
12145
12146# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12157 inttypes.h stdint.h unistd.h
12158do
12159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12160echo "$as_me:$LINENO: checking for $ac_header" >&5
12161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12162if eval "test \"\${$as_ac_Header+set}\" = set"; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164else
12165 cat >conftest.$ac_ext <<_ACEOF
12166#line $LINENO "configure"
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172$ac_includes_default
12173
12174#include <$ac_header>
12175_ACEOF
12176rm -f conftest.$ac_objext
12177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -s conftest.$ac_objext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 eval "$as_ac_Header=yes"
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193eval "$as_ac_Header=no"
12194fi
12195rm -f conftest.$ac_objext conftest.$ac_ext
12196fi
12197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12199if test `eval echo '${'$as_ac_Header'}'` = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12202_ACEOF
12203
12204fi
12205
a0b9e27f 12206done
90dd450c 12207
e6cc62c6
VS
12208
12209
12210for ac_header in strings.h
21d1c967 12211do
e6cc62c6
VS
12212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213if eval "test \"\${$as_ac_Header+set}\" = set"; then
12214 echo "$as_me:$LINENO: checking for $ac_header" >&5
12215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12216if eval "test \"\${$as_ac_Header+set}\" = set"; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12218fi
12219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12221else
12222 # Is the header compilable?
12223echo "$as_me:$LINENO: checking $ac_header usability" >&5
12224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12225cat >conftest.$ac_ext <<_ACEOF
12226#line $LINENO "configure"
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
12232$ac_includes_default
12233#include <$ac_header>
12234_ACEOF
12235rm -f conftest.$ac_objext
12236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_header_compiler=yes
12248else
12249 echo "$as_me: failed program was:" >&5
12250sed 's/^/| /' conftest.$ac_ext >&5
12251
12252ac_header_compiler=no
12253fi
12254rm -f conftest.$ac_objext conftest.$ac_ext
12255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12256echo "${ECHO_T}$ac_header_compiler" >&6
12257
12258# Is the header present?
12259echo "$as_me:$LINENO: checking $ac_header presence" >&5
12260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12261cat >conftest.$ac_ext <<_ACEOF
12262#line $LINENO "configure"
12263/* confdefs.h. */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
12267/* end confdefs.h. */
12268#include <$ac_header>
12269_ACEOF
12270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } >/dev/null; then
12278 if test -s conftest.err; then
12279 ac_cpp_err=$ac_c_preproc_warn_flag
12280 else
12281 ac_cpp_err=
12282 fi
12283else
12284 ac_cpp_err=yes
12285fi
12286if test -z "$ac_cpp_err"; then
12287 ac_header_preproc=yes
12288else
12289 echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_header_preproc=no
12293fi
12294rm -f conftest.err conftest.$ac_ext
12295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12296echo "${ECHO_T}$ac_header_preproc" >&6
12297
12298# So? What about this header?
12299case $ac_header_compiler:$ac_header_preproc in
12300 yes:no )
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12305 (
12306 cat <<\_ASBOX
12307## ------------------------------------ ##
12308## Report this to bug-autoconf@gnu.org. ##
12309## ------------------------------------ ##
12310_ASBOX
12311 ) |
12312 sed "s/^/$as_me: WARNING: /" >&2
12313 ;;
12314 no:yes )
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12321 (
12322 cat <<\_ASBOX
12323## ------------------------------------ ##
12324## Report this to bug-autoconf@gnu.org. ##
12325## ------------------------------------ ##
12326_ASBOX
12327 ) |
12328 sed "s/^/$as_me: WARNING: /" >&2
12329 ;;
12330esac
12331echo "$as_me:$LINENO: checking for $ac_header" >&5
12332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12333if eval "test \"\${$as_ac_Header+set}\" = set"; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12337fi
e6cc62c6
VS
12338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12340
a0b9e27f 12341fi
e6cc62c6
VS
12342if test `eval echo '${'$as_ac_Header'}'` = yes; then
12343 cat >>confdefs.h <<_ACEOF
12344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12345_ACEOF
12346
12347fi
12348
12349done
12350
e6cc62c6
VS
12351
12352
12353for ac_header in stdlib.h
12354do
12355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12356if eval "test \"\${$as_ac_Header+set}\" = set"; then
12357 echo "$as_me:$LINENO: checking for $ac_header" >&5
12358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361fi
12362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364else
12365 # Is the header compilable?
12366echo "$as_me:$LINENO: checking $ac_header usability" >&5
12367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12368cat >conftest.$ac_ext <<_ACEOF
12369#line $LINENO "configure"
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375$ac_includes_default
12376#include <$ac_header>
12377_ACEOF
12378rm -f conftest.$ac_objext
12379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380 (eval $ac_compile) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -s conftest.$ac_objext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_header_compiler=yes
12391else
12392 echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395ac_header_compiler=no
12396fi
12397rm -f conftest.$ac_objext conftest.$ac_ext
12398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399echo "${ECHO_T}$ac_header_compiler" >&6
12400
12401# Is the header present?
12402echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12404cat >conftest.$ac_ext <<_ACEOF
12405#line $LINENO "configure"
12406/* confdefs.h. */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h. */
12411#include <$ac_header>
12412_ACEOF
12413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12415 ac_status=$?
12416 grep -v '^ *+' conftest.er1 >conftest.err
12417 rm -f conftest.er1
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } >/dev/null; then
12421 if test -s conftest.err; then
12422 ac_cpp_err=$ac_c_preproc_warn_flag
12423 else
12424 ac_cpp_err=
12425 fi
12426else
12427 ac_cpp_err=yes
12428fi
12429if test -z "$ac_cpp_err"; then
12430 ac_header_preproc=yes
12431else
12432 echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 ac_header_preproc=no
12436fi
12437rm -f conftest.err conftest.$ac_ext
12438echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12439echo "${ECHO_T}$ac_header_preproc" >&6
12440
12441# So? What about this header?
12442case $ac_header_compiler:$ac_header_preproc in
12443 yes:no )
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12448 (
12449 cat <<\_ASBOX
12450## ------------------------------------ ##
12451## Report this to bug-autoconf@gnu.org. ##
12452## ------------------------------------ ##
12453_ASBOX
12454 ) |
12455 sed "s/^/$as_me: WARNING: /" >&2
12456 ;;
12457 no:yes )
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 (
12465 cat <<\_ASBOX
12466## ------------------------------------ ##
12467## Report this to bug-autoconf@gnu.org. ##
12468## ------------------------------------ ##
12469_ASBOX
12470 ) |
12471 sed "s/^/$as_me: WARNING: /" >&2
12472 ;;
12473esac
12474echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12476if eval "test \"\${$as_ac_Header+set}\" = set"; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12478else
e6cc62c6
VS
12479 eval "$as_ac_Header=$ac_header_preproc"
12480fi
12481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12483
21d1c967 12484fi
e6cc62c6
VS
12485if test `eval echo '${'$as_ac_Header'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12488_ACEOF
12489
12490fi
12491
21d1c967 12492done
4f14bcd8 12493
5c6fa7d2 12494
e6cc62c6 12495for ac_header in malloc.h
21d1c967 12496do
e6cc62c6
VS
12497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12498if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo "$as_me:$LINENO: checking for $ac_header" >&5
12500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12501if eval "test \"\${$as_ac_Header+set}\" = set"; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503fi
12504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12506else
12507 # Is the header compilable?
12508echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12510cat >conftest.$ac_ext <<_ACEOF
12511#line $LINENO "configure"
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517$ac_includes_default
12518#include <$ac_header>
12519_ACEOF
12520rm -f conftest.$ac_objext
12521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -s conftest.$ac_objext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_header_compiler=yes
12533else
12534 echo "$as_me: failed program was:" >&5
12535sed 's/^/| /' conftest.$ac_ext >&5
12536
12537ac_header_compiler=no
12538fi
12539rm -f conftest.$ac_objext conftest.$ac_ext
12540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12541echo "${ECHO_T}$ac_header_compiler" >&6
12542
12543# Is the header present?
12544echo "$as_me:$LINENO: checking $ac_header presence" >&5
12545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12546cat >conftest.$ac_ext <<_ACEOF
12547#line $LINENO "configure"
12548/* confdefs.h. */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h. */
12553#include <$ac_header>
12554_ACEOF
12555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } >/dev/null; then
12563 if test -s conftest.err; then
12564 ac_cpp_err=$ac_c_preproc_warn_flag
12565 else
12566 ac_cpp_err=
12567 fi
12568else
12569 ac_cpp_err=yes
12570fi
12571if test -z "$ac_cpp_err"; then
12572 ac_header_preproc=yes
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 ac_header_preproc=no
12578fi
12579rm -f conftest.err conftest.$ac_ext
12580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12581echo "${ECHO_T}$ac_header_preproc" >&6
12582
12583# So? What about this header?
12584case $ac_header_compiler:$ac_header_preproc in
12585 yes:no )
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12590 (
12591 cat <<\_ASBOX
12592## ------------------------------------ ##
12593## Report this to bug-autoconf@gnu.org. ##
12594## ------------------------------------ ##
12595_ASBOX
12596 ) |
12597 sed "s/^/$as_me: WARNING: /" >&2
12598 ;;
12599 no:yes )
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12606 (
12607 cat <<\_ASBOX
12608## ------------------------------------ ##
12609## Report this to bug-autoconf@gnu.org. ##
12610## ------------------------------------ ##
12611_ASBOX
12612 ) |
12613 sed "s/^/$as_me: WARNING: /" >&2
12614 ;;
12615esac
12616echo "$as_me:$LINENO: checking for $ac_header" >&5
12617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12618if eval "test \"\${$as_ac_Header+set}\" = set"; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12622fi
e6cc62c6
VS
12623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625
21d1c967 12626fi
e6cc62c6
VS
12627if test `eval echo '${'$as_ac_Header'}'` = yes; then
12628 cat >>confdefs.h <<_ACEOF
12629#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12630_ACEOF
12631
12632fi
12633
12634done
12635
12636
12637for ac_header in unistd.h
12638do
12639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo "$as_me:$LINENO: checking for $ac_header" >&5
12642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12643if eval "test \"\${$as_ac_Header+set}\" = set"; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645fi
12646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12648else
12649 # Is the header compilable?
12650echo "$as_me:$LINENO: checking $ac_header usability" >&5
12651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12652cat >conftest.$ac_ext <<_ACEOF
12653#line $LINENO "configure"
12654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
12659$ac_includes_default
12660#include <$ac_header>
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -s conftest.$ac_objext'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 ac_header_compiler=yes
12675else
12676 echo "$as_me: failed program was:" >&5
12677sed 's/^/| /' conftest.$ac_ext >&5
12678
12679ac_header_compiler=no
12680fi
12681rm -f conftest.$ac_objext conftest.$ac_ext
12682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12683echo "${ECHO_T}$ac_header_compiler" >&6
12684
12685# Is the header present?
12686echo "$as_me:$LINENO: checking $ac_header presence" >&5
12687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12688cat >conftest.$ac_ext <<_ACEOF
12689#line $LINENO "configure"
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695#include <$ac_header>
12696_ACEOF
12697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } >/dev/null; then
12705 if test -s conftest.err; then
12706 ac_cpp_err=$ac_c_preproc_warn_flag
12707 else
12708 ac_cpp_err=
12709 fi
a0b9e27f 12710else
e6cc62c6
VS
12711 ac_cpp_err=yes
12712fi
12713if test -z "$ac_cpp_err"; then
12714 ac_header_preproc=yes
12715else
12716 echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719 ac_header_preproc=no
12720fi
12721rm -f conftest.err conftest.$ac_ext
12722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12723echo "${ECHO_T}$ac_header_preproc" >&6
12724
12725# So? What about this header?
12726case $ac_header_compiler:$ac_header_preproc in
12727 yes:no )
12728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12732 (
12733 cat <<\_ASBOX
12734## ------------------------------------ ##
12735## Report this to bug-autoconf@gnu.org. ##
12736## ------------------------------------ ##
12737_ASBOX
12738 ) |
12739 sed "s/^/$as_me: WARNING: /" >&2
12740 ;;
12741 no:yes )
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12748 (
12749 cat <<\_ASBOX
12750## ------------------------------------ ##
12751## Report this to bug-autoconf@gnu.org. ##
12752## ------------------------------------ ##
12753_ASBOX
12754 ) |
12755 sed "s/^/$as_me: WARNING: /" >&2
12756 ;;
12757esac
12758echo "$as_me:$LINENO: checking for $ac_header" >&5
12759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12760if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762else
12763 eval "$as_ac_Header=$ac_header_preproc"
12764fi
12765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12767
12768fi
12769if test `eval echo '${'$as_ac_Header'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12772_ACEOF
12773
d4158b5d 12774fi
e6cc62c6 12775
21d1c967 12776done
f6bcfd97 12777
e6cc62c6
VS
12778
12779for ac_header in wchar.h
12780do
12781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12782if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo "$as_me:$LINENO: checking for $ac_header" >&5
12784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12785if eval "test \"\${$as_ac_Header+set}\" = set"; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787fi
12788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12790else
12791 # Is the header compilable?
12792echo "$as_me:$LINENO: checking $ac_header usability" >&5
12793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12794cat >conftest.$ac_ext <<_ACEOF
12795#line $LINENO "configure"
12796/* confdefs.h. */
12797_ACEOF
12798cat confdefs.h >>conftest.$ac_ext
12799cat >>conftest.$ac_ext <<_ACEOF
12800/* end confdefs.h. */
12801$ac_includes_default
12802#include <$ac_header>
12803_ACEOF
12804rm -f conftest.$ac_objext
12805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12806 (eval $ac_compile) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try='test -s conftest.$ac_objext'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; }; then
12816 ac_header_compiler=yes
12817else
12818 echo "$as_me: failed program was:" >&5
12819sed 's/^/| /' conftest.$ac_ext >&5
12820
12821ac_header_compiler=no
12822fi
12823rm -f conftest.$ac_objext conftest.$ac_ext
12824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12825echo "${ECHO_T}$ac_header_compiler" >&6
12826
12827# Is the header present?
12828echo "$as_me:$LINENO: checking $ac_header presence" >&5
12829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12830cat >conftest.$ac_ext <<_ACEOF
12831#line $LINENO "configure"
12832/* confdefs.h. */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h. */
12837#include <$ac_header>
12838_ACEOF
12839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } >/dev/null; then
12847 if test -s conftest.err; then
12848 ac_cpp_err=$ac_c_preproc_warn_flag
12849 else
12850 ac_cpp_err=
12851 fi
12852else
12853 ac_cpp_err=yes
12854fi
12855if test -z "$ac_cpp_err"; then
12856 ac_header_preproc=yes
12857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 ac_header_preproc=no
12862fi
12863rm -f conftest.err conftest.$ac_ext
12864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12865echo "${ECHO_T}$ac_header_preproc" >&6
12866
12867# So? What about this header?
12868case $ac_header_compiler:$ac_header_preproc in
12869 yes:no )
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12874 (
12875 cat <<\_ASBOX
12876## ------------------------------------ ##
12877## Report this to bug-autoconf@gnu.org. ##
12878## ------------------------------------ ##
12879_ASBOX
12880 ) |
12881 sed "s/^/$as_me: WARNING: /" >&2
12882 ;;
12883 no:yes )
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12890 (
12891 cat <<\_ASBOX
12892## ------------------------------------ ##
12893## Report this to bug-autoconf@gnu.org. ##
12894## ------------------------------------ ##
12895_ASBOX
12896 ) |
12897 sed "s/^/$as_me: WARNING: /" >&2
12898 ;;
12899esac
12900echo "$as_me:$LINENO: checking for $ac_header" >&5
12901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12902if eval "test \"\${$as_ac_Header+set}\" = set"; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904else
12905 eval "$as_ac_Header=$ac_header_preproc"
12906fi
12907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12909
90dd450c 12910fi
e6cc62c6
VS
12911if test `eval echo '${'$as_ac_Header'}'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12914_ACEOF
12915
12916fi
12917
12918done
90dd450c 12919
e6cc62c6
VS
12920
12921if test "$ac_cv_header_wchar_h" != "yes"; then
12922
12923for ac_header in wcstr.h
21d1c967 12924do
e6cc62c6
VS
12925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12926if eval "test \"\${$as_ac_Header+set}\" = set"; then
12927 echo "$as_me:$LINENO: checking for $ac_header" >&5
12928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12929if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931fi
12932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12934else
12935 # Is the header compilable?
12936echo "$as_me:$LINENO: checking $ac_header usability" >&5
12937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12938cat >conftest.$ac_ext <<_ACEOF
12939#line $LINENO "configure"
12940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945$ac_includes_default
12946#include <$ac_header>
12947_ACEOF
12948rm -f conftest.$ac_objext
12949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950 (eval $ac_compile) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -s conftest.$ac_objext'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12960 ac_header_compiler=yes
12961else
12962 echo "$as_me: failed program was:" >&5
12963sed 's/^/| /' conftest.$ac_ext >&5
12964
12965ac_header_compiler=no
12966fi
12967rm -f conftest.$ac_objext conftest.$ac_ext
12968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12969echo "${ECHO_T}$ac_header_compiler" >&6
12970
12971# Is the header present?
12972echo "$as_me:$LINENO: checking $ac_header presence" >&5
12973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12974cat >conftest.$ac_ext <<_ACEOF
12975#line $LINENO "configure"
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
12981#include <$ac_header>
12982_ACEOF
12983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12985 ac_status=$?
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } >/dev/null; then
12991 if test -s conftest.err; then
12992 ac_cpp_err=$ac_c_preproc_warn_flag
12993 else
12994 ac_cpp_err=
12995 fi
12996else
12997 ac_cpp_err=yes
12998fi
12999if test -z "$ac_cpp_err"; then
13000 ac_header_preproc=yes
13001else
13002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005 ac_header_preproc=no
13006fi
13007rm -f conftest.err conftest.$ac_ext
13008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13009echo "${ECHO_T}$ac_header_preproc" >&6
13010
13011# So? What about this header?
13012case $ac_header_compiler:$ac_header_preproc in
13013 yes:no )
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13018 (
13019 cat <<\_ASBOX
13020## ------------------------------------ ##
13021## Report this to bug-autoconf@gnu.org. ##
13022## ------------------------------------ ##
13023_ASBOX
13024 ) |
13025 sed "s/^/$as_me: WARNING: /" >&2
13026 ;;
13027 no:yes )
13028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13033echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13034 (
13035 cat <<\_ASBOX
13036## ------------------------------------ ##
13037## Report this to bug-autoconf@gnu.org. ##
13038## ------------------------------------ ##
13039_ASBOX
13040 ) |
13041 sed "s/^/$as_me: WARNING: /" >&2
13042 ;;
13043esac
13044echo "$as_me:$LINENO: checking for $ac_header" >&5
13045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13046if eval "test \"\${$as_ac_Header+set}\" = set"; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13048else
13049 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13050fi
e6cc62c6
VS
13051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13053
4f14bcd8 13054fi
e6cc62c6
VS
13055if test `eval echo '${'$as_ac_Header'}'` = yes; then
13056 cat >>confdefs.h <<_ACEOF
13057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13058_ACEOF
13059
13060fi
13061
13062done
13063
13064fi
13065
13066
13067for ac_header in fnmatch.h
13068do
13069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13070if eval "test \"\${$as_ac_Header+set}\" = set"; then
13071 echo "$as_me:$LINENO: checking for $ac_header" >&5
13072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13073if eval "test \"\${$as_ac_Header+set}\" = set"; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075fi
13076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13078else
13079 # Is the header compilable?
13080echo "$as_me:$LINENO: checking $ac_header usability" >&5
13081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13082cat >conftest.$ac_ext <<_ACEOF
13083#line $LINENO "configure"
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089$ac_includes_default
13090#include <$ac_header>
13091_ACEOF
13092rm -f conftest.$ac_objext
13093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try='test -s conftest.$ac_objext'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_header_compiler=yes
13105else
13106 echo "$as_me: failed program was:" >&5
13107sed 's/^/| /' conftest.$ac_ext >&5
13108
13109ac_header_compiler=no
13110fi
13111rm -f conftest.$ac_objext conftest.$ac_ext
13112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13113echo "${ECHO_T}$ac_header_compiler" >&6
13114
13115# Is the header present?
13116echo "$as_me:$LINENO: checking $ac_header presence" >&5
13117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13118cat >conftest.$ac_ext <<_ACEOF
13119#line $LINENO "configure"
13120/* confdefs.h. */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h. */
13125#include <$ac_header>
13126_ACEOF
13127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } >/dev/null; then
13135 if test -s conftest.err; then
13136 ac_cpp_err=$ac_c_preproc_warn_flag
13137 else
13138 ac_cpp_err=
13139 fi
13140else
13141 ac_cpp_err=yes
13142fi
13143if test -z "$ac_cpp_err"; then
13144 ac_header_preproc=yes
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
13149 ac_header_preproc=no
13150fi
13151rm -f conftest.err conftest.$ac_ext
13152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13153echo "${ECHO_T}$ac_header_preproc" >&6
13154
13155# So? What about this header?
13156case $ac_header_compiler:$ac_header_preproc in
13157 yes:no )
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13162 (
13163 cat <<\_ASBOX
13164## ------------------------------------ ##
13165## Report this to bug-autoconf@gnu.org. ##
13166## ------------------------------------ ##
13167_ASBOX
13168 ) |
13169 sed "s/^/$as_me: WARNING: /" >&2
13170 ;;
13171 no:yes )
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13178 (
13179 cat <<\_ASBOX
13180## ------------------------------------ ##
13181## Report this to bug-autoconf@gnu.org. ##
13182## ------------------------------------ ##
13183_ASBOX
13184 ) |
13185 sed "s/^/$as_me: WARNING: /" >&2
13186 ;;
13187esac
13188echo "$as_me:$LINENO: checking for $ac_header" >&5
13189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13190if eval "test \"\${$as_ac_Header+set}\" = set"; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13192else
e6cc62c6
VS
13193 eval "$as_ac_Header=$ac_header_preproc"
13194fi
13195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13197
21d1c967 13198fi
e6cc62c6
VS
13199if test `eval echo '${'$as_ac_Header'}'` = yes; then
13200 cat >>confdefs.h <<_ACEOF
13201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13202_ACEOF
13203
13204fi
13205
21d1c967 13206done
90dd450c 13207
5c6fa7d2 13208
a0b9e27f 13209if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13210
13211for ac_func in fnmatch
21d1c967 13212do
e6cc62c6
VS
13213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13214echo "$as_me:$LINENO: checking for $ac_func" >&5
13215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13216if eval "test \"\${$as_ac_var+set}\" = set"; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218else
13219 cat >conftest.$ac_ext <<_ACEOF
13220#line $LINENO "configure"
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
a0b9e27f 13226/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13227 which can conflict with char $ac_func (); below.
13228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 <limits.h> exists even on freestanding compilers. */
13230#ifdef __STDC__
13231# include <limits.h>
13232#else
13233# include <assert.h>
13234#endif
a0b9e27f 13235/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13236#ifdef __cplusplus
13237extern "C"
13238{
13239#endif
a0b9e27f 13240/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13241 builtin and then its argument prototype would still apply. */
13242char $ac_func ();
a0b9e27f
MB
13243/* The GNU C library defines this for functions which it implements
13244 to always fail with ENOSYS. Some functions are actually named
13245 something starting with __ and the normal name is an alias. */
13246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13247choke me
13248#else
e6cc62c6
VS
13249char (*f) () = $ac_func;
13250#endif
13251#ifdef __cplusplus
13252}
a0b9e27f
MB
13253#endif
13254
e6cc62c6
VS
13255int
13256main ()
13257{
13258return f != $ac_func;
13259 ;
13260 return 0;
13261}
13262_ACEOF
13263rm -f conftest.$ac_objext conftest$ac_exeext
13264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265 (eval $ac_link) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -s conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 eval "$as_ac_var=yes"
13276else
13277 echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280eval "$as_ac_var=no"
13281fi
13282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13283fi
13284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13286if test `eval echo '${'$as_ac_var'}'` = yes; then
13287 cat >>confdefs.h <<_ACEOF
13288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13289_ACEOF
32832908 13290
21d1c967
GD
13291fi
13292done
90dd450c 13293
a0b9e27f 13294fi
90dd450c 13295
e6cc62c6
VS
13296
13297for ac_header in langinfo.h
21d1c967 13298do
e6cc62c6
VS
13299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13300if eval "test \"\${$as_ac_Header+set}\" = set"; then
13301 echo "$as_me:$LINENO: checking for $ac_header" >&5
13302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13303if eval "test \"\${$as_ac_Header+set}\" = set"; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305fi
13306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13308else
13309 # Is the header compilable?
13310echo "$as_me:$LINENO: checking $ac_header usability" >&5
13311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13312cat >conftest.$ac_ext <<_ACEOF
13313#line $LINENO "configure"
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
13319$ac_includes_default
13320#include <$ac_header>
13321_ACEOF
13322rm -f conftest.$ac_objext
13323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -s conftest.$ac_objext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_header_compiler=yes
13335else
13336 echo "$as_me: failed program was:" >&5
13337sed 's/^/| /' conftest.$ac_ext >&5
13338
13339ac_header_compiler=no
13340fi
13341rm -f conftest.$ac_objext conftest.$ac_ext
13342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13343echo "${ECHO_T}$ac_header_compiler" >&6
13344
13345# Is the header present?
13346echo "$as_me:$LINENO: checking $ac_header presence" >&5
13347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13348cat >conftest.$ac_ext <<_ACEOF
13349#line $LINENO "configure"
13350/* confdefs.h. */
13351_ACEOF
13352cat confdefs.h >>conftest.$ac_ext
13353cat >>conftest.$ac_ext <<_ACEOF
13354/* end confdefs.h. */
13355#include <$ac_header>
13356_ACEOF
13357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } >/dev/null; then
13365 if test -s conftest.err; then
13366 ac_cpp_err=$ac_c_preproc_warn_flag
13367 else
13368 ac_cpp_err=
13369 fi
13370else
13371 ac_cpp_err=yes
13372fi
13373if test -z "$ac_cpp_err"; then
13374 ac_header_preproc=yes
13375else
13376 echo "$as_me: failed program was:" >&5
13377sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 ac_header_preproc=no
13380fi
13381rm -f conftest.err conftest.$ac_ext
13382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13383echo "${ECHO_T}$ac_header_preproc" >&6
13384
13385# So? What about this header?
13386case $ac_header_compiler:$ac_header_preproc in
13387 yes:no )
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13392 (
13393 cat <<\_ASBOX
13394## ------------------------------------ ##
13395## Report this to bug-autoconf@gnu.org. ##
13396## ------------------------------------ ##
13397_ASBOX
13398 ) |
13399 sed "s/^/$as_me: WARNING: /" >&2
13400 ;;
13401 no:yes )
13402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13408 (
13409 cat <<\_ASBOX
13410## ------------------------------------ ##
13411## Report this to bug-autoconf@gnu.org. ##
13412## ------------------------------------ ##
13413_ASBOX
13414 ) |
13415 sed "s/^/$as_me: WARNING: /" >&2
13416 ;;
13417esac
13418echo "$as_me:$LINENO: checking for $ac_header" >&5
13419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13420if eval "test \"\${$as_ac_Header+set}\" = set"; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422else
13423 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13424fi
e6cc62c6
VS
13425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13427
4f14bcd8 13428fi
e6cc62c6
VS
13429if test `eval echo '${'$as_ac_Header'}'` = yes; then
13430 cat >>confdefs.h <<_ACEOF
13431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13432_ACEOF
13433
21d1c967 13434fi
e6cc62c6 13435
21d1c967 13436done
3a922bb4 13437
8284b0c5 13438
4f5a7f74
VZ
13439case "${host}" in
13440 *-pc-os2_emx | *-pc-os2-emx )
13441 if test $ac_cv_header_langinfo_h = "yes"; then
13442 LIBS="$LIBS -lintl"
13443 fi
13444 ;;
13445esac
1542ea39 13446
a0b9e27f
MB
13447if test "$wxUSE_GUI" = "yes"; then
13448 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13449
13450for ac_header in X11/XKBlib.h
21d1c967 13451do
e6cc62c6
VS
13452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13453if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458fi
13459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13461else
13462 # Is the header compilable?
13463echo "$as_me:$LINENO: checking $ac_header usability" >&5
13464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13465cat >conftest.$ac_ext <<_ACEOF
13466#line $LINENO "configure"
13467/* confdefs.h. */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h. */
13472$ac_includes_default
13473#include <$ac_header>
13474_ACEOF
13475rm -f conftest.$ac_objext
13476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477 (eval $ac_compile) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 ac_header_compiler=yes
13488else
13489 echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
13492ac_header_compiler=no
13493fi
13494rm -f conftest.$ac_objext conftest.$ac_ext
13495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13496echo "${ECHO_T}$ac_header_compiler" >&6
13497
13498# Is the header present?
13499echo "$as_me:$LINENO: checking $ac_header presence" >&5
13500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13501cat >conftest.$ac_ext <<_ACEOF
13502#line $LINENO "configure"
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
13508#include <$ac_header>
13509_ACEOF
13510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } >/dev/null; then
13518 if test -s conftest.err; then
13519 ac_cpp_err=$ac_c_preproc_warn_flag
13520 else
13521 ac_cpp_err=
13522 fi
13523else
13524 ac_cpp_err=yes
13525fi
13526if test -z "$ac_cpp_err"; then
13527 ac_header_preproc=yes
13528else
13529 echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 ac_header_preproc=no
13533fi
13534rm -f conftest.err conftest.$ac_ext
13535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13536echo "${ECHO_T}$ac_header_preproc" >&6
13537
13538# So? What about this header?
13539case $ac_header_compiler:$ac_header_preproc in
13540 yes:no )
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13545 (
13546 cat <<\_ASBOX
13547## ------------------------------------ ##
13548## Report this to bug-autoconf@gnu.org. ##
13549## ------------------------------------ ##
13550_ASBOX
13551 ) |
13552 sed "s/^/$as_me: WARNING: /" >&2
13553 ;;
13554 no:yes )
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13561 (
13562 cat <<\_ASBOX
13563## ------------------------------------ ##
13564## Report this to bug-autoconf@gnu.org. ##
13565## ------------------------------------ ##
13566_ASBOX
13567 ) |
13568 sed "s/^/$as_me: WARNING: /" >&2
13569 ;;
13570esac
13571echo "$as_me:$LINENO: checking for $ac_header" >&5
13572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13573if eval "test \"\${$as_ac_Header+set}\" = set"; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575else
13576 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13577fi
e6cc62c6
VS
13578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13580
90dd450c 13581fi
e6cc62c6
VS
13582if test `eval echo '${'$as_ac_Header'}'` = yes; then
13583 cat >>confdefs.h <<_ACEOF
13584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13585_ACEOF
13586
247f5006 13587fi
e6cc62c6 13588
247f5006
VZ
13589done
13590
a0b9e27f
MB
13591 fi
13592fi
247f5006 13593
247f5006 13594
e6cc62c6
VS
13595echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13596echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13597if test "${ac_cv_c_const+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599else
13600 cat >conftest.$ac_ext <<_ACEOF
13601#line $LINENO "configure"
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607
13608int
13609main ()
13610{
13611/* FIXME: Include the comments suggested by Paul. */
13612#ifndef __cplusplus
13613 /* Ultrix mips cc rejects this. */
13614 typedef int charset[2];
13615 const charset x;
13616 /* SunOS 4.1.1 cc rejects this. */
13617 char const *const *ccp;
13618 char **p;
13619 /* NEC SVR4.0.2 mips cc rejects this. */
13620 struct point {int x, y;};
13621 static struct point const zero = {0,0};
13622 /* AIX XL C 1.02.0.0 rejects this.
13623 It does not let you subtract one const X* pointer from another in
13624 an arm of an if-expression whose if-part is not a constant
13625 expression */
13626 const char *g = "string";
13627 ccp = &g + (g ? g-g : 0);
13628 /* HPUX 7.0 cc rejects these. */
13629 ++ccp;
13630 p = (char**) ccp;
13631 ccp = (char const *const *) p;
13632 { /* SCO 3.2v4 cc rejects this. */
13633 char *t;
13634 char const *s = 0 ? (char *) 0 : (char const *) 0;
13635
13636 *t++ = 0;
13637 }
13638 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13639 int x[] = {25, 17};
13640 const int *foo = &x[0];
13641 ++foo;
13642 }
13643 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13644 typedef const int *iptr;
13645 iptr p = 0;
13646 ++p;
13647 }
13648 { /* AIX XL C 1.02.0.0 rejects this saying
13649 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13650 struct s { int j; const int *ap[3]; };
13651 struct s *b; b->j = 5;
13652 }
13653 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13654 const int foo = 10;
13655 }
13656#endif
13657
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext
13663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664 (eval $ac_compile) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -s conftest.$ac_objext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
a0b9e27f 13674 ac_cv_c_const=yes
247f5006 13675else
e6cc62c6
VS
13676 echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
13679ac_cv_c_const=no
247f5006 13680fi
e6cc62c6 13681rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13682fi
e6cc62c6
VS
13683echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13684echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13685if test $ac_cv_c_const = no; then
e6cc62c6
VS
13686
13687cat >>confdefs.h <<\_ACEOF
13688#define const
13689_ACEOF
10f2d63a 13690
90dd450c 13691fi
81809c07 13692
e6cc62c6
VS
13693echo "$as_me:$LINENO: checking for inline" >&5
13694echo $ECHO_N "checking for inline... $ECHO_C" >&6
13695if test "${ac_cv_c_inline+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13697else
a0b9e27f
MB
13698 ac_cv_c_inline=no
13699for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13700 cat >conftest.$ac_ext <<_ACEOF
13701#line $LINENO "configure"
13702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h. */
13707#ifndef __cplusplus
13708typedef int foo_t;
13709static $ac_kw foo_t static_foo () {return 0; }
13710$ac_kw foo_t foo () {return 0; }
13711#endif
a0b9e27f 13712
e6cc62c6
VS
13713_ACEOF
13714rm -f conftest.$ac_objext
13715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
a0b9e27f 13726 ac_cv_c_inline=$ac_kw; break
247f5006 13727else
e6cc62c6
VS
13728 echo "$as_me: failed program was:" >&5
13729sed 's/^/| /' conftest.$ac_ext >&5
13730
247f5006 13731fi
e6cc62c6 13732rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13733done
247f5006
VZ
13734
13735fi
e6cc62c6
VS
13736echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13737echo "${ECHO_T}$ac_cv_c_inline" >&6
13738case $ac_cv_c_inline in
a0b9e27f 13739 inline | yes) ;;
e6cc62c6
VS
13740 no)
13741cat >>confdefs.h <<\_ACEOF
13742#define inline
13743_ACEOF
a0b9e27f 13744 ;;
e6cc62c6 13745 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13746#define inline $ac_cv_c_inline
e6cc62c6 13747_ACEOF
a0b9e27f
MB
13748 ;;
13749esac
247f5006 13750
247f5006 13751
e6cc62c6
VS
13752echo "$as_me:$LINENO: checking for char" >&5
13753echo $ECHO_N "checking for char... $ECHO_C" >&6
13754if test "${ac_cv_type_char+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756else
13757 cat >conftest.$ac_ext <<_ACEOF
13758#line $LINENO "configure"
13759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
13763/* end confdefs.h. */
13764$ac_includes_default
13765int
13766main ()
13767{
13768if ((char *) 0)
13769 return 0;
13770if (sizeof (char))
13771 return 0;
13772 ;
13773 return 0;
13774}
13775_ACEOF
13776rm -f conftest.$ac_objext
13777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_type_char=yes
13789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793ac_cv_type_char=no
13794fi
13795rm -f conftest.$ac_objext conftest.$ac_ext
13796fi
13797echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13798echo "${ECHO_T}$ac_cv_type_char" >&6
13799
13800echo "$as_me:$LINENO: checking size of char" >&5
13801echo $ECHO_N "checking size of char... $ECHO_C" >&6
13802if test "${ac_cv_sizeof_char+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
13805 if test "$ac_cv_type_char" = yes; then
13806 # The cast to unsigned long works around a bug in the HP C Compiler
13807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13809 # This bug is HP SR number 8606223364.
a0b9e27f 13810 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13811 # Depending upon the size, compute the lo and hi bounds.
13812cat >conftest.$ac_ext <<_ACEOF
13813#line $LINENO "configure"
13814/* confdefs.h. */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h. */
13819$ac_includes_default
13820int
13821main ()
13822{
13823static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13824test_array [0] = 0
13825
13826 ;
13827 return 0;
13828}
13829_ACEOF
13830rm -f conftest.$ac_objext
13831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_lo=0 ac_mid=0
13843 while :; do
13844 cat >conftest.$ac_ext <<_ACEOF
13845#line $LINENO "configure"
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h. */
13851$ac_includes_default
13852int
13853main ()
13854{
13855static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13856test_array [0] = 0
13857
13858 ;
13859 return 0;
13860}
13861_ACEOF
13862rm -f conftest.$ac_objext
13863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864 (eval $ac_compile) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_hi=$ac_mid; break
13875else
13876 echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
13879ac_lo=`expr $ac_mid + 1`
13880 if test $ac_lo -le $ac_mid; then
13881 ac_lo= ac_hi=
13882 break
13883 fi
13884 ac_mid=`expr 2 '*' $ac_mid + 1`
13885fi
13886rm -f conftest.$ac_objext conftest.$ac_ext
13887 done
a0b9e27f 13888else
e6cc62c6
VS
13889 echo "$as_me: failed program was:" >&5
13890sed 's/^/| /' conftest.$ac_ext >&5
13891
13892cat >conftest.$ac_ext <<_ACEOF
13893#line $LINENO "configure"
13894/* confdefs.h. */
13895_ACEOF
13896cat confdefs.h >>conftest.$ac_ext
13897cat >>conftest.$ac_ext <<_ACEOF
13898/* end confdefs.h. */
13899$ac_includes_default
13900int
13901main ()
13902{
13903static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13904test_array [0] = 0
13905
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910rm -f conftest.$ac_objext
13911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912 (eval $ac_compile) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_hi=-1 ac_mid=-1
13923 while :; do
13924 cat >conftest.$ac_ext <<_ACEOF
13925#line $LINENO "configure"
13926/* confdefs.h. */
13927_ACEOF
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h. */
13931$ac_includes_default
13932int
13933main ()
13934{
13935static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13936test_array [0] = 0
13937
13938 ;
13939 return 0;
13940}
13941_ACEOF
13942rm -f conftest.$ac_objext
13943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944 (eval $ac_compile) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_lo=$ac_mid; break
13955else
13956 echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
13959ac_hi=`expr '(' $ac_mid ')' - 1`
13960 if test $ac_mid -le $ac_hi; then
13961 ac_lo= ac_hi=
13962 break
13963 fi
13964 ac_mid=`expr 2 '*' $ac_mid`
13965fi
13966rm -f conftest.$ac_objext conftest.$ac_ext
13967 done
13968else
13969 echo "$as_me: failed program was:" >&5
13970sed 's/^/| /' conftest.$ac_ext >&5
13971
13972ac_lo= ac_hi=
13973fi
13974rm -f conftest.$ac_objext conftest.$ac_ext
13975fi
13976rm -f conftest.$ac_objext conftest.$ac_ext
13977# Binary search between lo and hi bounds.
13978while test "x$ac_lo" != "x$ac_hi"; do
13979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13980 cat >conftest.$ac_ext <<_ACEOF
13981#line $LINENO "configure"
13982/* confdefs.h. */
13983_ACEOF
13984cat confdefs.h >>conftest.$ac_ext
13985cat >>conftest.$ac_ext <<_ACEOF
13986/* end confdefs.h. */
13987$ac_includes_default
13988int
13989main ()
13990{
13991static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13992test_array [0] = 0
13993
13994 ;
13995 return 0;
13996}
13997_ACEOF
13998rm -f conftest.$ac_objext
13999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_hi=$ac_mid
14011else
14012 echo "$as_me: failed program was:" >&5
14013sed 's/^/| /' conftest.$ac_ext >&5
14014
14015ac_lo=`expr '(' $ac_mid ')' + 1`
14016fi
14017rm -f conftest.$ac_objext conftest.$ac_ext
14018done
14019case $ac_lo in
14020?*) ac_cv_sizeof_char=$ac_lo;;
14021'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14022See \`config.log' for more details." >&5
14023echo "$as_me: error: cannot compute sizeof (char), 77
14024See \`config.log' for more details." >&2;}
14025 { (exit 1); exit 1; }; } ;;
14026esac
14027else
14028 if test "$cross_compiling" = yes; then
14029 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14030See \`config.log' for more details." >&5
14031echo "$as_me: error: cannot run test program while cross compiling
14032See \`config.log' for more details." >&2;}
14033 { (exit 1); exit 1; }; }
14034else
14035 cat >conftest.$ac_ext <<_ACEOF
14036#line $LINENO "configure"
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
14042$ac_includes_default
14043long longval () { return (long) (sizeof (char)); }
14044unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14045#include <stdio.h>
e6cc62c6
VS
14046#include <stdlib.h>
14047int
14048main ()
247f5006 14049{
e6cc62c6
VS
14050
14051 FILE *f = fopen ("conftest.val", "w");
14052 if (! f)
14053 exit (1);
14054 if (((long) (sizeof (char))) < 0)
14055 {
14056 long i = longval ();
14057 if (i != ((long) (sizeof (char))))
14058 exit (1);
14059 fprintf (f, "%ld\n", i);
14060 }
14061 else
14062 {
14063 unsigned long i = ulongval ();
14064 if (i != ((long) (sizeof (char))))
14065 exit (1);
14066 fprintf (f, "%lu\n", i);
14067 }
14068 exit (ferror (f) || fclose (f) != 0);
14069
14070 ;
14071 return 0;
52127426 14072}
e6cc62c6
VS
14073_ACEOF
14074rm -f conftest$ac_exeext
14075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14076 (eval $ac_link) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 ac_cv_sizeof_char=`cat conftest.val`
14086else
14087 echo "$as_me: program exited with status $ac_status" >&5
14088echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
14091( exit $ac_status )
14092{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14093See \`config.log' for more details." >&5
14094echo "$as_me: error: cannot compute sizeof (char), 77
14095See \`config.log' for more details." >&2;}
14096 { (exit 1); exit 1; }; }
14097fi
14098rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14099fi
14100fi
14101rm -f conftest.val
247f5006 14102else
a0b9e27f 14103 ac_cv_sizeof_char=0
247f5006 14104fi
247f5006 14105fi
e6cc62c6
VS
14106echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14107echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14108cat >>confdefs.h <<_ACEOF
14109#define SIZEOF_CHAR $ac_cv_sizeof_char
14110_ACEOF
14111
14112
14113echo "$as_me:$LINENO: checking for short" >&5
14114echo $ECHO_N "checking for short... $ECHO_C" >&6
14115if test "${ac_cv_type_short+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117else
14118 cat >conftest.$ac_ext <<_ACEOF
14119#line $LINENO "configure"
14120/* confdefs.h. */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
14124/* end confdefs.h. */
14125$ac_includes_default
14126int
14127main ()
14128{
14129if ((short *) 0)
14130 return 0;
14131if (sizeof (short))
14132 return 0;
14133 ;
14134 return 0;
14135}
14136_ACEOF
14137rm -f conftest.$ac_objext
14138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14139 (eval $ac_compile) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
14143 { ac_try='test -s conftest.$ac_objext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_cv_type_short=yes
14150else
14151 echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154ac_cv_type_short=no
14155fi
14156rm -f conftest.$ac_objext conftest.$ac_ext
14157fi
14158echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14159echo "${ECHO_T}$ac_cv_type_short" >&6
14160
14161echo "$as_me:$LINENO: checking size of short" >&5
14162echo $ECHO_N "checking size of short... $ECHO_C" >&6
14163if test "${ac_cv_sizeof_short+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165else
14166 if test "$ac_cv_type_short" = yes; then
14167 # The cast to unsigned long works around a bug in the HP C Compiler
14168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14170 # This bug is HP SR number 8606223364.
14171 if test "$cross_compiling" = yes; then
14172 # Depending upon the size, compute the lo and hi bounds.
14173cat >conftest.$ac_ext <<_ACEOF
14174#line $LINENO "configure"
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h. */
14180$ac_includes_default
14181int
14182main ()
14183{
14184static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14185test_array [0] = 0
247f5006 14186
e6cc62c6
VS
14187 ;
14188 return 0;
14189}
14190_ACEOF
14191rm -f conftest.$ac_objext
14192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193 (eval $ac_compile) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -s conftest.$ac_objext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_lo=0 ac_mid=0
14204 while :; do
14205 cat >conftest.$ac_ext <<_ACEOF
14206#line $LINENO "configure"
14207/* confdefs.h. */
14208_ACEOF
14209cat confdefs.h >>conftest.$ac_ext
14210cat >>conftest.$ac_ext <<_ACEOF
14211/* end confdefs.h. */
14212$ac_includes_default
14213int
14214main ()
14215{
14216static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14217test_array [0] = 0
14218
14219 ;
14220 return 0;
14221}
14222_ACEOF
14223rm -f conftest.$ac_objext
14224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_hi=$ac_mid; break
14236else
14237 echo "$as_me: failed program was:" >&5
14238sed 's/^/| /' conftest.$ac_ext >&5
14239
14240ac_lo=`expr $ac_mid + 1`
14241 if test $ac_lo -le $ac_mid; then
14242 ac_lo= ac_hi=
14243 break
14244 fi
14245 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14246fi
e6cc62c6
VS
14247rm -f conftest.$ac_objext conftest.$ac_ext
14248 done
14249else
14250 echo "$as_me: failed program was:" >&5
14251sed 's/^/| /' conftest.$ac_ext >&5
14252
14253cat >conftest.$ac_ext <<_ACEOF
14254#line $LINENO "configure"
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
14259/* end confdefs.h. */
14260$ac_includes_default
14261int
14262main ()
14263{
14264static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14265test_array [0] = 0
247f5006 14266
e6cc62c6
VS
14267 ;
14268 return 0;
14269}
14270_ACEOF
14271rm -f conftest.$ac_objext
14272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -s conftest.$ac_objext'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14283 ac_hi=-1 ac_mid=-1
14284 while :; do
14285 cat >conftest.$ac_ext <<_ACEOF
14286#line $LINENO "configure"
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
14292$ac_includes_default
14293int
14294main ()
14295{
14296static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14297test_array [0] = 0
247f5006 14298
e6cc62c6
VS
14299 ;
14300 return 0;
14301}
14302_ACEOF
14303rm -f conftest.$ac_objext
14304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305 (eval $ac_compile) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -s conftest.$ac_objext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14315 ac_lo=$ac_mid; break
14316else
14317 echo "$as_me: failed program was:" >&5
14318sed 's/^/| /' conftest.$ac_ext >&5
14319
14320ac_hi=`expr '(' $ac_mid ')' - 1`
14321 if test $ac_mid -le $ac_hi; then
14322 ac_lo= ac_hi=
14323 break
14324 fi
14325 ac_mid=`expr 2 '*' $ac_mid`
14326fi
14327rm -f conftest.$ac_objext conftest.$ac_ext
14328 done
247f5006 14329else
e6cc62c6
VS
14330 echo "$as_me: failed program was:" >&5
14331sed 's/^/| /' conftest.$ac_ext >&5
14332
14333ac_lo= ac_hi=
14334fi
14335rm -f conftest.$ac_objext conftest.$ac_ext
14336fi
14337rm -f conftest.$ac_objext conftest.$ac_ext
14338# Binary search between lo and hi bounds.
14339while test "x$ac_lo" != "x$ac_hi"; do
14340 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14341 cat >conftest.$ac_ext <<_ACEOF
14342#line $LINENO "configure"
14343/* confdefs.h. */
14344_ACEOF
14345cat confdefs.h >>conftest.$ac_ext
14346cat >>conftest.$ac_ext <<_ACEOF
14347/* end confdefs.h. */
14348$ac_includes_default
14349int
14350main ()
14351{
14352static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14353test_array [0] = 0
14354
14355 ;
14356 return 0;
14357}
14358_ACEOF
14359rm -f conftest.$ac_objext
14360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361 (eval $ac_compile) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -s conftest.$ac_objext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_hi=$ac_mid
14372else
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376ac_lo=`expr '(' $ac_mid ')' + 1`
14377fi
14378rm -f conftest.$ac_objext conftest.$ac_ext
14379done
14380case $ac_lo in
14381?*) ac_cv_sizeof_short=$ac_lo;;
14382'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14383See \`config.log' for more details." >&5
14384echo "$as_me: error: cannot compute sizeof (short), 77
14385See \`config.log' for more details." >&2;}
14386 { (exit 1); exit 1; }; } ;;
14387esac
247f5006 14388else
e6cc62c6
VS
14389 if test "$cross_compiling" = yes; then
14390 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14391See \`config.log' for more details." >&5
14392echo "$as_me: error: cannot run test program while cross compiling
14393See \`config.log' for more details." >&2;}
14394 { (exit 1); exit 1; }; }
14395else
14396 cat >conftest.$ac_ext <<_ACEOF
14397#line $LINENO "configure"
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h. */
14403$ac_includes_default
14404long longval () { return (long) (sizeof (short)); }
14405unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14406#include <stdio.h>
e6cc62c6
VS
14407#include <stdlib.h>
14408int
14409main ()
a0b9e27f 14410{
e6cc62c6
VS
14411
14412 FILE *f = fopen ("conftest.val", "w");
14413 if (! f)
14414 exit (1);
14415 if (((long) (sizeof (short))) < 0)
14416 {
14417 long i = longval ();
14418 if (i != ((long) (sizeof (short))))
14419 exit (1);
14420 fprintf (f, "%ld\n", i);
14421 }
14422 else
14423 {
14424 unsigned long i = ulongval ();
14425 if (i != ((long) (sizeof (short))))
14426 exit (1);
14427 fprintf (f, "%lu\n", i);
14428 }
14429 exit (ferror (f) || fclose (f) != 0);
14430
14431 ;
14432 return 0;
a0b9e27f 14433}
e6cc62c6
VS
14434_ACEOF
14435rm -f conftest$ac_exeext
14436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14437 (eval $ac_link) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 ac_cv_sizeof_short=`cat conftest.val`
14447else
14448 echo "$as_me: program exited with status $ac_status" >&5
14449echo "$as_me: failed program was:" >&5
14450sed 's/^/| /' conftest.$ac_ext >&5
14451
14452( exit $ac_status )
14453{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14454See \`config.log' for more details." >&5
14455echo "$as_me: error: cannot compute sizeof (short), 77
14456See \`config.log' for more details." >&2;}
14457 { (exit 1); exit 1; }; }
14458fi
14459rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14460fi
14461fi
14462rm -f conftest.val
247f5006 14463else
a0b9e27f 14464 ac_cv_sizeof_short=0
247f5006 14465fi
247f5006 14466fi
e6cc62c6
VS
14467echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14468echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14469cat >>confdefs.h <<_ACEOF
14470#define SIZEOF_SHORT $ac_cv_sizeof_short
14471_ACEOF
14472
14473
14474echo "$as_me:$LINENO: checking for void *" >&5
14475echo $ECHO_N "checking for void *... $ECHO_C" >&6
14476if test "${ac_cv_type_void_p+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479 cat >conftest.$ac_ext <<_ACEOF
14480#line $LINENO "configure"
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
14485/* end confdefs.h. */
14486$ac_includes_default
14487int
14488main ()
14489{
14490if ((void * *) 0)
14491 return 0;
14492if (sizeof (void *))
14493 return 0;
14494 ;
14495 return 0;
14496}
14497_ACEOF
14498rm -f conftest.$ac_objext
14499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14500 (eval $ac_compile) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } &&
14504 { ac_try='test -s conftest.$ac_objext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_cv_type_void_p=yes
14511else
14512 echo "$as_me: failed program was:" >&5
14513sed 's/^/| /' conftest.$ac_ext >&5
14514
14515ac_cv_type_void_p=no
14516fi
14517rm -f conftest.$ac_objext conftest.$ac_ext
14518fi
14519echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14520echo "${ECHO_T}$ac_cv_type_void_p" >&6
14521
14522echo "$as_me:$LINENO: checking size of void *" >&5
14523echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14524if test "${ac_cv_sizeof_void_p+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526else
14527 if test "$ac_cv_type_void_p" = yes; then
14528 # The cast to unsigned long works around a bug in the HP C Compiler
14529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14531 # This bug is HP SR number 8606223364.
14532 if test "$cross_compiling" = yes; then
14533 # Depending upon the size, compute the lo and hi bounds.
14534cat >conftest.$ac_ext <<_ACEOF
14535#line $LINENO "configure"
14536/* confdefs.h. */
14537_ACEOF
14538cat confdefs.h >>conftest.$ac_ext
14539cat >>conftest.$ac_ext <<_ACEOF
14540/* end confdefs.h. */
14541$ac_includes_default
14542int
14543main ()
14544{
14545static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14546test_array [0] = 0
14547
14548 ;
14549 return 0;
14550}
14551_ACEOF
14552rm -f conftest.$ac_objext
14553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14554 (eval $ac_compile) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14564 ac_lo=0 ac_mid=0
14565 while :; do
14566 cat >conftest.$ac_ext <<_ACEOF
14567#line $LINENO "configure"
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h. */
14573$ac_includes_default
14574int
14575main ()
14576{
14577static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14578test_array [0] = 0
247f5006 14579
e6cc62c6
VS
14580 ;
14581 return 0;
14582}
14583_ACEOF
14584rm -f conftest.$ac_objext
14585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_hi=$ac_mid; break
14597else
14598 echo "$as_me: failed program was:" >&5
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
14601ac_lo=`expr $ac_mid + 1`
14602 if test $ac_lo -le $ac_mid; then
14603 ac_lo= ac_hi=
14604 break
14605 fi
14606 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14607fi
e6cc62c6
VS
14608rm -f conftest.$ac_objext conftest.$ac_ext
14609 done
14610else
14611 echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
14614cat >conftest.$ac_ext <<_ACEOF
14615#line $LINENO "configure"
14616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
14621$ac_includes_default
14622int
14623main ()
14624{
14625static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14626test_array [0] = 0
247f5006 14627
e6cc62c6
VS
14628 ;
14629 return 0;
14630}
14631_ACEOF
14632rm -f conftest.$ac_objext
14633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634 (eval $ac_compile) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -s conftest.$ac_objext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_hi=-1 ac_mid=-1
14645 while :; do
14646 cat >conftest.$ac_ext <<_ACEOF
14647#line $LINENO "configure"
14648/* confdefs.h. */
14649_ACEOF
14650cat confdefs.h >>conftest.$ac_ext
14651cat >>conftest.$ac_ext <<_ACEOF
14652/* end confdefs.h. */
14653$ac_includes_default
14654int
14655main ()
14656{
14657static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14658test_array [0] = 0
247f5006 14659
e6cc62c6
VS
14660 ;
14661 return 0;
14662}
14663_ACEOF
14664rm -f conftest.$ac_objext
14665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -s conftest.$ac_objext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_lo=$ac_mid; break
14677else
14678 echo "$as_me: failed program was:" >&5
14679sed 's/^/| /' conftest.$ac_ext >&5
14680
14681ac_hi=`expr '(' $ac_mid ')' - 1`
14682 if test $ac_mid -le $ac_hi; then
14683 ac_lo= ac_hi=
14684 break
14685 fi
14686 ac_mid=`expr 2 '*' $ac_mid`
14687fi
14688rm -f conftest.$ac_objext conftest.$ac_ext
14689 done
a0b9e27f 14690else
e6cc62c6
VS
14691 echo "$as_me: failed program was:" >&5
14692sed 's/^/| /' conftest.$ac_ext >&5
14693
14694ac_lo= ac_hi=
14695fi
14696rm -f conftest.$ac_objext conftest.$ac_ext
14697fi
14698rm -f conftest.$ac_objext conftest.$ac_ext
14699# Binary search between lo and hi bounds.
14700while test "x$ac_lo" != "x$ac_hi"; do
14701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14702 cat >conftest.$ac_ext <<_ACEOF
14703#line $LINENO "configure"
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
14708/* end confdefs.h. */
14709$ac_includes_default
14710int
14711main ()
14712{
14713static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14714test_array [0] = 0
14715
14716 ;
14717 return 0;
14718}
14719_ACEOF
14720rm -f conftest.$ac_objext
14721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_hi=$ac_mid
14733else
14734 echo "$as_me: failed program was:" >&5
14735sed 's/^/| /' conftest.$ac_ext >&5
14736
14737ac_lo=`expr '(' $ac_mid ')' + 1`
14738fi
14739rm -f conftest.$ac_objext conftest.$ac_ext
14740done
14741case $ac_lo in
14742?*) ac_cv_sizeof_void_p=$ac_lo;;
14743'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14744See \`config.log' for more details." >&5
14745echo "$as_me: error: cannot compute sizeof (void *), 77
14746See \`config.log' for more details." >&2;}
14747 { (exit 1); exit 1; }; } ;;
14748esac
247f5006 14749else
e6cc62c6
VS
14750 if test "$cross_compiling" = yes; then
14751 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14752See \`config.log' for more details." >&5
14753echo "$as_me: error: cannot run test program while cross compiling
14754See \`config.log' for more details." >&2;}
14755 { (exit 1); exit 1; }; }
14756else
14757 cat >conftest.$ac_ext <<_ACEOF
14758#line $LINENO "configure"
14759/* confdefs.h. */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h. */
14764$ac_includes_default
14765long longval () { return (long) (sizeof (void *)); }
14766unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14767#include <stdio.h>
e6cc62c6
VS
14768#include <stdlib.h>
14769int
14770main ()
247f5006 14771{
e6cc62c6
VS
14772
14773 FILE *f = fopen ("conftest.val", "w");
14774 if (! f)
14775 exit (1);
14776 if (((long) (sizeof (void *))) < 0)
14777 {
14778 long i = longval ();
14779 if (i != ((long) (sizeof (void *))))
14780 exit (1);
14781 fprintf (f, "%ld\n", i);
14782 }
14783 else
14784 {
14785 unsigned long i = ulongval ();
14786 if (i != ((long) (sizeof (void *))))
14787 exit (1);
14788 fprintf (f, "%lu\n", i);
14789 }
14790 exit (ferror (f) || fclose (f) != 0);
14791
14792 ;
14793 return 0;
5c6fa7d2 14794}
e6cc62c6
VS
14795_ACEOF
14796rm -f conftest$ac_exeext
14797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14798 (eval $ac_link) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_sizeof_void_p=`cat conftest.val`
14808else
14809 echo "$as_me: program exited with status $ac_status" >&5
14810echo "$as_me: failed program was:" >&5
14811sed 's/^/| /' conftest.$ac_ext >&5
14812
14813( exit $ac_status )
14814{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14815See \`config.log' for more details." >&5
14816echo "$as_me: error: cannot compute sizeof (void *), 77
14817See \`config.log' for more details." >&2;}
14818 { (exit 1); exit 1; }; }
14819fi
14820rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14821fi
14822fi
14823rm -f conftest.val
a0b9e27f 14824else
a0b9e27f
MB
14825 ac_cv_sizeof_void_p=0
14826fi
a0b9e27f 14827fi
e6cc62c6
VS
14828echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14829echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14830cat >>confdefs.h <<_ACEOF
14831#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14832_ACEOF
14833
14834
14835echo "$as_me:$LINENO: checking for int" >&5
14836echo $ECHO_N "checking for int... $ECHO_C" >&6
14837if test "${ac_cv_type_int+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14839else
14840 cat >conftest.$ac_ext <<_ACEOF
14841#line $LINENO "configure"
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
14847$ac_includes_default
14848int
14849main ()
14850{
14851if ((int *) 0)
14852 return 0;
14853if (sizeof (int))
14854 return 0;
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest.$ac_objext
14860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14861 (eval $ac_compile) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871 ac_cv_type_int=yes
14872else
14873 echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876ac_cv_type_int=no
14877fi
14878rm -f conftest.$ac_objext conftest.$ac_ext
14879fi
14880echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14881echo "${ECHO_T}$ac_cv_type_int" >&6
14882
14883echo "$as_me:$LINENO: checking size of int" >&5
14884echo $ECHO_N "checking size of int... $ECHO_C" >&6
14885if test "${ac_cv_sizeof_int+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887else
14888 if test "$ac_cv_type_int" = yes; then
14889 # The cast to unsigned long works around a bug in the HP C Compiler
14890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14892 # This bug is HP SR number 8606223364.
14893 if test "$cross_compiling" = yes; then
14894 # Depending upon the size, compute the lo and hi bounds.
14895cat >conftest.$ac_ext <<_ACEOF
14896#line $LINENO "configure"
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902$ac_includes_default
14903int
14904main ()
14905{
14906static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14907test_array [0] = 0
8284b0c5 14908
e6cc62c6
VS
14909 ;
14910 return 0;
14911}
14912_ACEOF
14913rm -f conftest.$ac_objext
14914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14915 (eval $ac_compile) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -s conftest.$ac_objext'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 ac_lo=0 ac_mid=0
14926 while :; do
14927 cat >conftest.$ac_ext <<_ACEOF
14928#line $LINENO "configure"
14929/* confdefs.h. */
14930_ACEOF
14931cat confdefs.h >>conftest.$ac_ext
14932cat >>conftest.$ac_ext <<_ACEOF
14933/* end confdefs.h. */
14934$ac_includes_default
14935int
14936main ()
14937{
14938static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14939test_array [0] = 0
14940
14941 ;
14942 return 0;
14943}
14944_ACEOF
14945rm -f conftest.$ac_objext
14946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14947 (eval $ac_compile) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -s conftest.$ac_objext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_hi=$ac_mid; break
14958else
14959 echo "$as_me: failed program was:" >&5
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
14962ac_lo=`expr $ac_mid + 1`
14963 if test $ac_lo -le $ac_mid; then
14964 ac_lo= ac_hi=
14965 break
14966 fi
14967 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14968fi
e6cc62c6
VS
14969rm -f conftest.$ac_objext conftest.$ac_ext
14970 done
14971else
14972 echo "$as_me: failed program was:" >&5
14973sed 's/^/| /' conftest.$ac_ext >&5
14974
14975cat >conftest.$ac_ext <<_ACEOF
14976#line $LINENO "configure"
14977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
14982$ac_includes_default
14983int
14984main ()
14985{
14986static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14987test_array [0] = 0
247f5006 14988
e6cc62c6
VS
14989 ;
14990 return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext
14994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995 (eval $ac_compile) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_hi=-1 ac_mid=-1
15006 while :; do
15007 cat >conftest.$ac_ext <<_ACEOF
15008#line $LINENO "configure"
15009/* confdefs.h. */
15010_ACEOF
15011cat confdefs.h >>conftest.$ac_ext
15012cat >>conftest.$ac_ext <<_ACEOF
15013/* end confdefs.h. */
15014$ac_includes_default
15015int
15016main ()
15017{
15018static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15019test_array [0] = 0
247f5006 15020
e6cc62c6
VS
15021 ;
15022 return 0;
15023}
15024_ACEOF
15025rm -f conftest.$ac_objext
15026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027 (eval $ac_compile) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -s conftest.$ac_objext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 ac_lo=$ac_mid; break
15038else
15039 echo "$as_me: failed program was:" >&5
15040sed 's/^/| /' conftest.$ac_ext >&5
15041
15042ac_hi=`expr '(' $ac_mid ')' - 1`
15043 if test $ac_mid -le $ac_hi; then
15044 ac_lo= ac_hi=
15045 break
15046 fi
15047 ac_mid=`expr 2 '*' $ac_mid`
15048fi
15049rm -f conftest.$ac_objext conftest.$ac_ext
15050 done
247f5006 15051else
e6cc62c6
VS
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055ac_lo= ac_hi=
15056fi
15057rm -f conftest.$ac_objext conftest.$ac_ext
15058fi
15059rm -f conftest.$ac_objext conftest.$ac_ext
15060# Binary search between lo and hi bounds.
15061while test "x$ac_lo" != "x$ac_hi"; do
15062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15063 cat >conftest.$ac_ext <<_ACEOF
15064#line $LINENO "configure"
15065/* confdefs.h. */
15066_ACEOF
15067cat confdefs.h >>conftest.$ac_ext
15068cat >>conftest.$ac_ext <<_ACEOF
15069/* end confdefs.h. */
15070$ac_includes_default
15071int
15072main ()
15073{
15074static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15075test_array [0] = 0
15076
15077 ;
15078 return 0;
15079}
15080_ACEOF
15081rm -f conftest.$ac_objext
15082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083 (eval $ac_compile) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -s conftest.$ac_objext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_hi=$ac_mid
15094else
15095 echo "$as_me: failed program was:" >&5
15096sed 's/^/| /' conftest.$ac_ext >&5
15097
15098ac_lo=`expr '(' $ac_mid ')' + 1`
15099fi
15100rm -f conftest.$ac_objext conftest.$ac_ext
15101done
15102case $ac_lo in
15103?*) ac_cv_sizeof_int=$ac_lo;;
15104'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15105See \`config.log' for more details." >&5
15106echo "$as_me: error: cannot compute sizeof (int), 77
15107See \`config.log' for more details." >&2;}
15108 { (exit 1); exit 1; }; } ;;
15109esac
a0b9e27f 15110else
e6cc62c6
VS
15111 if test "$cross_compiling" = yes; then
15112 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15113See \`config.log' for more details." >&5
15114echo "$as_me: error: cannot run test program while cross compiling
15115See \`config.log' for more details." >&2;}
15116 { (exit 1); exit 1; }; }
15117else
15118 cat >conftest.$ac_ext <<_ACEOF
15119#line $LINENO "configure"
15120/* confdefs.h. */
15121_ACEOF
15122cat confdefs.h >>conftest.$ac_ext
15123cat >>conftest.$ac_ext <<_ACEOF
15124/* end confdefs.h. */
15125$ac_includes_default
15126long longval () { return (long) (sizeof (int)); }
15127unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15128#include <stdio.h>
e6cc62c6
VS
15129#include <stdlib.h>
15130int
15131main ()
247f5006 15132{
e6cc62c6
VS
15133
15134 FILE *f = fopen ("conftest.val", "w");
15135 if (! f)
15136 exit (1);
15137 if (((long) (sizeof (int))) < 0)
15138 {
15139 long i = longval ();
15140 if (i != ((long) (sizeof (int))))
15141 exit (1);
15142 fprintf (f, "%ld\n", i);
15143 }
15144 else
15145 {
15146 unsigned long i = ulongval ();
15147 if (i != ((long) (sizeof (int))))
15148 exit (1);
15149 fprintf (f, "%lu\n", i);
15150 }
15151 exit (ferror (f) || fclose (f) != 0);
15152
15153 ;
15154 return 0;
247f5006 15155}
e6cc62c6
VS
15156_ACEOF
15157rm -f conftest$ac_exeext
15158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_sizeof_int=`cat conftest.val`
15169else
15170 echo "$as_me: program exited with status $ac_status" >&5
15171echo "$as_me: failed program was:" >&5
15172sed 's/^/| /' conftest.$ac_ext >&5
15173
15174( exit $ac_status )
15175{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15176See \`config.log' for more details." >&5
15177echo "$as_me: error: cannot compute sizeof (int), 77
15178See \`config.log' for more details." >&2;}
15179 { (exit 1); exit 1; }; }
15180fi
15181rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15182fi
15183fi
15184rm -f conftest.val
6f72b082 15185else
a0b9e27f 15186 ac_cv_sizeof_int=0
21d1c967 15187fi
698dcdb6 15188fi
e6cc62c6
VS
15189echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15190echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15191cat >>confdefs.h <<_ACEOF
15192#define SIZEOF_INT $ac_cv_sizeof_int
15193_ACEOF
15194
15195
15196echo "$as_me:$LINENO: checking for long" >&5
15197echo $ECHO_N "checking for long... $ECHO_C" >&6
15198if test "${ac_cv_type_long+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200else
15201 cat >conftest.$ac_ext <<_ACEOF
15202#line $LINENO "configure"
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208$ac_includes_default
15209int
15210main ()
15211{
15212if ((long *) 0)
15213 return 0;
15214if (sizeof (long))
15215 return 0;
15216 ;
15217 return 0;
15218}
15219_ACEOF
15220rm -f conftest.$ac_objext
15221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15222 (eval $ac_compile) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -s conftest.$ac_objext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_cv_type_long=yes
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_cv_type_long=no
15238fi
15239rm -f conftest.$ac_objext conftest.$ac_ext
15240fi
15241echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15242echo "${ECHO_T}$ac_cv_type_long" >&6
15243
15244echo "$as_me:$LINENO: checking size of long" >&5
15245echo $ECHO_N "checking size of long... $ECHO_C" >&6
15246if test "${ac_cv_sizeof_long+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248else
15249 if test "$ac_cv_type_long" = yes; then
15250 # The cast to unsigned long works around a bug in the HP C Compiler
15251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15253 # This bug is HP SR number 8606223364.
15254 if test "$cross_compiling" = yes; then
15255 # Depending upon the size, compute the lo and hi bounds.
15256cat >conftest.$ac_ext <<_ACEOF
15257#line $LINENO "configure"
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
15263$ac_includes_default
15264int
15265main ()
15266{
15267static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15268test_array [0] = 0
15269
15270 ;
15271 return 0;
15272}
15273_ACEOF
15274rm -f conftest.$ac_objext
15275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15276 (eval $ac_compile) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try='test -s conftest.$ac_objext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15286 ac_lo=0 ac_mid=0
15287 while :; do
15288 cat >conftest.$ac_ext <<_ACEOF
15289#line $LINENO "configure"
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
15294/* end confdefs.h. */
15295$ac_includes_default
15296int
15297main ()
15298{
15299static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15300test_array [0] = 0
4f14bcd8 15301
e6cc62c6
VS
15302 ;
15303 return 0;
15304}
15305_ACEOF
15306rm -f conftest.$ac_objext
15307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15308 (eval $ac_compile) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -s conftest.$ac_objext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_hi=$ac_mid; break
15319else
15320 echo "$as_me: failed program was:" >&5
15321sed 's/^/| /' conftest.$ac_ext >&5
15322
15323ac_lo=`expr $ac_mid + 1`
15324 if test $ac_lo -le $ac_mid; then
15325 ac_lo= ac_hi=
15326 break
15327 fi
15328 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15329fi
e6cc62c6
VS
15330rm -f conftest.$ac_objext conftest.$ac_ext
15331 done
15332else
15333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336cat >conftest.$ac_ext <<_ACEOF
15337#line $LINENO "configure"
15338/* confdefs.h. */
15339_ACEOF
15340cat confdefs.h >>conftest.$ac_ext
15341cat >>conftest.$ac_ext <<_ACEOF
15342/* end confdefs.h. */
15343$ac_includes_default
15344int
15345main ()
15346{
15347static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15348test_array [0] = 0
4f14bcd8 15349
e6cc62c6
VS
15350 ;
15351 return 0;
15352}
15353_ACEOF
15354rm -f conftest.$ac_objext
15355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15356 (eval $ac_compile) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -s conftest.$ac_objext'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_hi=-1 ac_mid=-1
15367 while :; do
15368 cat >conftest.$ac_ext <<_ACEOF
15369#line $LINENO "configure"
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376int
15377main ()
15378{
15379static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15380test_array [0] = 0
5c6fa7d2 15381
e6cc62c6
VS
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext
15387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_lo=$ac_mid; break
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_hi=`expr '(' $ac_mid ')' - 1`
15404 if test $ac_mid -le $ac_hi; then
15405 ac_lo= ac_hi=
15406 break
15407 fi
15408 ac_mid=`expr 2 '*' $ac_mid`
15409fi
15410rm -f conftest.$ac_objext conftest.$ac_ext
15411 done
247f5006 15412else
e6cc62c6
VS
15413 echo "$as_me: failed program was:" >&5
15414sed 's/^/| /' conftest.$ac_ext >&5
15415
15416ac_lo= ac_hi=
15417fi
15418rm -f conftest.$ac_objext conftest.$ac_ext
15419fi
15420rm -f conftest.$ac_objext conftest.$ac_ext
15421# Binary search between lo and hi bounds.
15422while test "x$ac_lo" != "x$ac_hi"; do
15423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15424 cat >conftest.$ac_ext <<_ACEOF
15425#line $LINENO "configure"
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431$ac_includes_default
15432int
15433main ()
15434{
15435static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15436test_array [0] = 0
15437
15438 ;
15439 return 0;
15440}
15441_ACEOF
15442rm -f conftest.$ac_objext
15443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444 (eval $ac_compile) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } &&
15448 { ac_try='test -s conftest.$ac_objext'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15454 ac_hi=$ac_mid
15455else
15456 echo "$as_me: failed program was:" >&5
15457sed 's/^/| /' conftest.$ac_ext >&5
15458
15459ac_lo=`expr '(' $ac_mid ')' + 1`
15460fi
15461rm -f conftest.$ac_objext conftest.$ac_ext
15462done
15463case $ac_lo in
15464?*) ac_cv_sizeof_long=$ac_lo;;
15465'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15466See \`config.log' for more details." >&5
15467echo "$as_me: error: cannot compute sizeof (long), 77
15468See \`config.log' for more details." >&2;}
15469 { (exit 1); exit 1; }; } ;;
15470esac
247f5006 15471else
e6cc62c6
VS
15472 if test "$cross_compiling" = yes; then
15473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15474See \`config.log' for more details." >&5
15475echo "$as_me: error: cannot run test program while cross compiling
15476See \`config.log' for more details." >&2;}
15477 { (exit 1); exit 1; }; }
15478else
15479 cat >conftest.$ac_ext <<_ACEOF
15480#line $LINENO "configure"
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
15486$ac_includes_default
15487long longval () { return (long) (sizeof (long)); }
15488unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15489#include <stdio.h>
e6cc62c6
VS
15490#include <stdlib.h>
15491int
15492main ()
247f5006 15493{
e6cc62c6
VS
15494
15495 FILE *f = fopen ("conftest.val", "w");
15496 if (! f)
15497 exit (1);
15498 if (((long) (sizeof (long))) < 0)
15499 {
15500 long i = longval ();
15501 if (i != ((long) (sizeof (long))))
15502 exit (1);
15503 fprintf (f, "%ld\n", i);
15504 }
15505 else
15506 {
15507 unsigned long i = ulongval ();
15508 if (i != ((long) (sizeof (long))))
15509 exit (1);
15510 fprintf (f, "%lu\n", i);
15511 }
15512 exit (ferror (f) || fclose (f) != 0);
15513
15514 ;
15515 return 0;
247f5006 15516}
e6cc62c6
VS
15517_ACEOF
15518rm -f conftest$ac_exeext
15519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15520 (eval $ac_link) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_cv_sizeof_long=`cat conftest.val`
15530else
15531 echo "$as_me: program exited with status $ac_status" >&5
15532echo "$as_me: failed program was:" >&5
15533sed 's/^/| /' conftest.$ac_ext >&5
15534
15535( exit $ac_status )
15536{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15537See \`config.log' for more details." >&5
15538echo "$as_me: error: cannot compute sizeof (long), 77
15539See \`config.log' for more details." >&2;}
15540 { (exit 1); exit 1; }; }
15541fi
15542rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15543fi
15544fi
15545rm -f conftest.val
247f5006 15546else
a0b9e27f 15547 ac_cv_sizeof_long=0
247f5006 15548fi
247f5006 15549fi
e6cc62c6
VS
15550echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15551echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15552cat >>confdefs.h <<_ACEOF
a0b9e27f 15553#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15554_ACEOF
247f5006 15555
a0b9e27f
MB
15556
15557
15558case "${host}" in
15559 arm-*-linux* )
e6cc62c6
VS
15560 echo "$as_me:$LINENO: checking for long long" >&5
15561echo $ECHO_N "checking for long long... $ECHO_C" >&6
15562if test "${ac_cv_type_long_long+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564else
15565 cat >conftest.$ac_ext <<_ACEOF
15566#line $LINENO "configure"
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572$ac_includes_default
15573int
15574main ()
15575{
15576if ((long long *) 0)
15577 return 0;
15578if (sizeof (long long))
15579 return 0;
15580 ;
15581 return 0;
15582}
15583_ACEOF
15584rm -f conftest.$ac_objext
15585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15586 (eval $ac_compile) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -s conftest.$ac_objext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 ac_cv_type_long_long=yes
15597else
15598 echo "$as_me: failed program was:" >&5
15599sed 's/^/| /' conftest.$ac_ext >&5
15600
15601ac_cv_type_long_long=no
15602fi
15603rm -f conftest.$ac_objext conftest.$ac_ext
15604fi
15605echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15606echo "${ECHO_T}$ac_cv_type_long_long" >&6
15607
15608echo "$as_me:$LINENO: checking size of long long" >&5
15609echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15610if test "${ac_cv_sizeof_long_long+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15612else
15613 if test "$ac_cv_type_long_long" = yes; then
15614 # The cast to unsigned long works around a bug in the HP C Compiler
15615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15617 # This bug is HP SR number 8606223364.
a0b9e27f 15618 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15619 # Depending upon the size, compute the lo and hi bounds.
15620cat >conftest.$ac_ext <<_ACEOF
15621#line $LINENO "configure"
15622/* confdefs.h. */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
15627$ac_includes_default
15628int
15629main ()
15630{
15631static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15632test_array [0] = 0
15633
15634 ;
15635 return 0;
15636}
15637_ACEOF
15638rm -f conftest.$ac_objext
15639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_lo=0 ac_mid=0
15651 while :; do
15652 cat >conftest.$ac_ext <<_ACEOF
15653#line $LINENO "configure"
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659$ac_includes_default
15660int
15661main ()
15662{
15663static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15664test_array [0] = 0
15665
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext
15671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15672 (eval $ac_compile) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -s conftest.$ac_objext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_hi=$ac_mid; break
15683else
15684 echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687ac_lo=`expr $ac_mid + 1`
15688 if test $ac_lo -le $ac_mid; then
15689 ac_lo= ac_hi=
15690 break
15691 fi
15692 ac_mid=`expr 2 '*' $ac_mid + 1`
15693fi
15694rm -f conftest.$ac_objext conftest.$ac_ext
15695 done
15696else
15697 echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
15700cat >conftest.$ac_ext <<_ACEOF
15701#line $LINENO "configure"
15702/* confdefs.h. */
15703_ACEOF
15704cat confdefs.h >>conftest.$ac_ext
15705cat >>conftest.$ac_ext <<_ACEOF
15706/* end confdefs.h. */
15707$ac_includes_default
15708int
15709main ()
15710{
15711static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15712test_array [0] = 0
15713
15714 ;
15715 return 0;
15716}
15717_ACEOF
15718rm -f conftest.$ac_objext
15719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15720 (eval $ac_compile) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -s conftest.$ac_objext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_hi=-1 ac_mid=-1
15731 while :; do
15732 cat >conftest.$ac_ext <<_ACEOF
15733#line $LINENO "configure"
15734/* confdefs.h. */
15735_ACEOF
15736cat confdefs.h >>conftest.$ac_ext
15737cat >>conftest.$ac_ext <<_ACEOF
15738/* end confdefs.h. */
15739$ac_includes_default
15740int
15741main ()
15742{
15743static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15744test_array [0] = 0
15745
15746 ;
15747 return 0;
15748}
15749_ACEOF
15750rm -f conftest.$ac_objext
15751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_lo=$ac_mid; break
15763else
15764 echo "$as_me: failed program was:" >&5
15765sed 's/^/| /' conftest.$ac_ext >&5
15766
15767ac_hi=`expr '(' $ac_mid ')' - 1`
15768 if test $ac_mid -le $ac_hi; then
15769 ac_lo= ac_hi=
15770 break
15771 fi
15772 ac_mid=`expr 2 '*' $ac_mid`
15773fi
15774rm -f conftest.$ac_objext conftest.$ac_ext
15775 done
15776else
15777 echo "$as_me: failed program was:" >&5
15778sed 's/^/| /' conftest.$ac_ext >&5
15779
15780ac_lo= ac_hi=
15781fi
15782rm -f conftest.$ac_objext conftest.$ac_ext
15783fi
15784rm -f conftest.$ac_objext conftest.$ac_ext
15785# Binary search between lo and hi bounds.
15786while test "x$ac_lo" != "x$ac_hi"; do
15787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15788 cat >conftest.$ac_ext <<_ACEOF
15789#line $LINENO "configure"
15790/* confdefs.h. */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h. */
15795$ac_includes_default
15796int
15797main ()
15798{
15799static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15800test_array [0] = 0
15801
15802 ;
15803 return 0;
15804}
15805_ACEOF
15806rm -f conftest.$ac_objext
15807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15808 (eval $ac_compile) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -s conftest.$ac_objext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15818 ac_hi=$ac_mid
15819else
15820 echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823ac_lo=`expr '(' $ac_mid ')' + 1`
15824fi
15825rm -f conftest.$ac_objext conftest.$ac_ext
15826done
15827case $ac_lo in
15828?*) ac_cv_sizeof_long_long=$ac_lo;;
15829'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15830See \`config.log' for more details." >&5
15831echo "$as_me: error: cannot compute sizeof (long long), 77
15832See \`config.log' for more details." >&2;}
15833 { (exit 1); exit 1; }; } ;;
15834esac
a0b9e27f 15835else
e6cc62c6
VS
15836 if test "$cross_compiling" = yes; then
15837 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15838See \`config.log' for more details." >&5
15839echo "$as_me: error: cannot run test program while cross compiling
15840See \`config.log' for more details." >&2;}
15841 { (exit 1); exit 1; }; }
15842else
15843 cat >conftest.$ac_ext <<_ACEOF
15844#line $LINENO "configure"
15845/* confdefs.h. */
15846_ACEOF
15847cat confdefs.h >>conftest.$ac_ext
15848cat >>conftest.$ac_ext <<_ACEOF
15849/* end confdefs.h. */
15850$ac_includes_default
15851long longval () { return (long) (sizeof (long long)); }
15852unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15853#include <stdio.h>
e6cc62c6
VS
15854#include <stdlib.h>
15855int
15856main ()
247f5006 15857{
e6cc62c6
VS
15858
15859 FILE *f = fopen ("conftest.val", "w");
15860 if (! f)
15861 exit (1);
15862 if (((long) (sizeof (long long))) < 0)
15863 {
15864 long i = longval ();
15865 if (i != ((long) (sizeof (long long))))
15866 exit (1);
15867 fprintf (f, "%ld\n", i);
15868 }
15869 else
15870 {
15871 unsigned long i = ulongval ();
15872 if (i != ((long) (sizeof (long long))))
15873 exit (1);
15874 fprintf (f, "%lu\n", i);
15875 }
15876 exit (ferror (f) || fclose (f) != 0);
15877
15878 ;
15879 return 0;
247f5006 15880}
e6cc62c6
VS
15881_ACEOF
15882rm -f conftest$ac_exeext
15883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15884 (eval $ac_link) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_cv_sizeof_long_long=`cat conftest.val`
15894else
15895 echo "$as_me: program exited with status $ac_status" >&5
15896echo "$as_me: failed program was:" >&5
15897sed 's/^/| /' conftest.$ac_ext >&5
15898
15899( exit $ac_status )
15900{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15901See \`config.log' for more details." >&5
15902echo "$as_me: error: cannot compute sizeof (long long), 77
15903See \`config.log' for more details." >&2;}
15904 { (exit 1); exit 1; }; }
15905fi
15906rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15907fi
15908fi
15909rm -f conftest.val
7b4a847f 15910else
a0b9e27f 15911 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15912fi
15913fi
e6cc62c6
VS
15914echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15915echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15916cat >>confdefs.h <<_ACEOF
15917#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15918_ACEOF
15919
15920
15921 ;;
15922 *-hp-hpux* )
15923 echo "$as_me:$LINENO: checking for long long" >&5
15924echo $ECHO_N "checking for long long... $ECHO_C" >&6
15925if test "${ac_cv_type_long_long+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15927else
15928 cat >conftest.$ac_ext <<_ACEOF
15929#line $LINENO "configure"
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
15935$ac_includes_default
15936int
15937main ()
15938{
15939if ((long long *) 0)
15940 return 0;
15941if (sizeof (long long))
15942 return 0;
15943 ;
15944 return 0;
15945}
15946_ACEOF
15947rm -f conftest.$ac_objext
15948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -s conftest.$ac_objext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_cv_type_long_long=yes
15960else
15961 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5
15963
15964ac_cv_type_long_long=no
15965fi
15966rm -f conftest.$ac_objext conftest.$ac_ext
15967fi
15968echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15969echo "${ECHO_T}$ac_cv_type_long_long" >&6
15970
15971echo "$as_me:$LINENO: checking size of long long" >&5
15972echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15973if test "${ac_cv_sizeof_long_long+set}" = set; then
15974 echo $ECHO_N "(cached) $ECHO_C" >&6
15975else
15976 if test "$ac_cv_type_long_long" = yes; then
15977 # The cast to unsigned long works around a bug in the HP C Compiler
15978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15980 # This bug is HP SR number 8606223364.
15981 if test "$cross_compiling" = yes; then
15982 # Depending upon the size, compute the lo and hi bounds.
15983cat >conftest.$ac_ext <<_ACEOF
15984#line $LINENO "configure"
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990$ac_includes_default
15991int
15992main ()
15993{
15994static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15995test_array [0] = 0
15996
15997 ;
15998 return 0;
15999}
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -s conftest.$ac_objext'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_lo=0 ac_mid=0
16014 while :; do
16015 cat >conftest.$ac_ext <<_ACEOF
16016#line $LINENO "configure"
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022$ac_includes_default
16023int
16024main ()
16025{
16026static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16027test_array [0] = 0
8284b0c5 16028
e6cc62c6
VS
16029 ;
16030 return 0;
16031}
16032_ACEOF
16033rm -f conftest.$ac_objext
16034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16035 (eval $ac_compile) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
16039 { ac_try='test -s conftest.$ac_objext'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_hi=$ac_mid; break
16046else
16047 echo "$as_me: failed program was:" >&5
16048sed 's/^/| /' conftest.$ac_ext >&5
16049
16050ac_lo=`expr $ac_mid + 1`
16051 if test $ac_lo -le $ac_mid; then
16052 ac_lo= ac_hi=
16053 break
16054 fi
16055 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16056fi
e6cc62c6
VS
16057rm -f conftest.$ac_objext conftest.$ac_ext
16058 done
16059else
16060 echo "$as_me: failed program was:" >&5
16061sed 's/^/| /' conftest.$ac_ext >&5
16062
16063cat >conftest.$ac_ext <<_ACEOF
16064#line $LINENO "configure"
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071int
16072main ()
16073{
16074static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16075test_array [0] = 0
a0b9e27f 16076
e6cc62c6
VS
16077 ;
16078 return 0;
16079}
16080_ACEOF
16081rm -f conftest.$ac_objext
16082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -s conftest.$ac_objext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 ac_hi=-1 ac_mid=-1
16094 while :; do
16095 cat >conftest.$ac_ext <<_ACEOF
16096#line $LINENO "configure"
16097/* confdefs.h. */
16098_ACEOF
16099cat confdefs.h >>conftest.$ac_ext
16100cat >>conftest.$ac_ext <<_ACEOF
16101/* end confdefs.h. */
16102$ac_includes_default
16103int
16104main ()
16105{
16106static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16107test_array [0] = 0
a0b9e27f 16108
e6cc62c6
VS
16109 ;
16110 return 0;
16111}
16112_ACEOF
16113rm -f conftest.$ac_objext
16114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115 (eval $ac_compile) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_lo=$ac_mid; break
16126else
16127 echo "$as_me: failed program was:" >&5
16128sed 's/^/| /' conftest.$ac_ext >&5
16129
16130ac_hi=`expr '(' $ac_mid ')' - 1`
16131 if test $ac_mid -le $ac_hi; then
16132 ac_lo= ac_hi=
16133 break
16134 fi
16135 ac_mid=`expr 2 '*' $ac_mid`
16136fi
16137rm -f conftest.$ac_objext conftest.$ac_ext
16138 done
8284b0c5 16139else
e6cc62c6
VS
16140 echo "$as_me: failed program was:" >&5
16141sed 's/^/| /' conftest.$ac_ext >&5
16142
16143ac_lo= ac_hi=
16144fi
16145rm -f conftest.$ac_objext conftest.$ac_ext
16146fi
16147rm -f conftest.$ac_objext conftest.$ac_ext
16148# Binary search between lo and hi bounds.
16149while test "x$ac_lo" != "x$ac_hi"; do
16150 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16151 cat >conftest.$ac_ext <<_ACEOF
16152#line $LINENO "configure"
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
16158$ac_includes_default
16159int
16160main ()
16161{
16162static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16163test_array [0] = 0
16164
16165 ;
16166 return 0;
16167}
16168_ACEOF
16169rm -f conftest.$ac_objext
16170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -s conftest.$ac_objext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_hi=$ac_mid
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186ac_lo=`expr '(' $ac_mid ')' + 1`
16187fi
16188rm -f conftest.$ac_objext conftest.$ac_ext
16189done
16190case $ac_lo in
16191?*) ac_cv_sizeof_long_long=$ac_lo;;
16192'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16193See \`config.log' for more details." >&5
16194echo "$as_me: error: cannot compute sizeof (long long), 77
16195See \`config.log' for more details." >&2;}
16196 { (exit 1); exit 1; }; } ;;
16197esac
8284b0c5 16198else
e6cc62c6
VS
16199 if test "$cross_compiling" = yes; then
16200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16201See \`config.log' for more details." >&5
16202echo "$as_me: error: cannot run test program while cross compiling
16203See \`config.log' for more details." >&2;}
16204 { (exit 1); exit 1; }; }
16205else
16206 cat >conftest.$ac_ext <<_ACEOF
16207#line $LINENO "configure"
16208/* confdefs.h. */
16209_ACEOF
16210cat confdefs.h >>conftest.$ac_ext
16211cat >>conftest.$ac_ext <<_ACEOF
16212/* end confdefs.h. */
16213$ac_includes_default
16214long longval () { return (long) (sizeof (long long)); }
16215unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16216#include <stdio.h>
e6cc62c6
VS
16217#include <stdlib.h>
16218int
16219main ()
8284b0c5 16220{
e6cc62c6
VS
16221
16222 FILE *f = fopen ("conftest.val", "w");
16223 if (! f)
16224 exit (1);
16225 if (((long) (sizeof (long long))) < 0)
16226 {
16227 long i = longval ();
16228 if (i != ((long) (sizeof (long long))))
16229 exit (1);
16230 fprintf (f, "%ld\n", i);
16231 }
16232 else
16233 {
16234 unsigned long i = ulongval ();
16235 if (i != ((long) (sizeof (long long))))
16236 exit (1);
16237 fprintf (f, "%lu\n", i);
16238 }
16239 exit (ferror (f) || fclose (f) != 0);
16240
16241 ;
16242 return 0;
8284b0c5 16243}
e6cc62c6
VS
16244_ACEOF
16245rm -f conftest$ac_exeext
16246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16247 (eval $ac_link) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ac_cv_sizeof_long_long=`cat conftest.val`
16257else
16258 echo "$as_me: program exited with status $ac_status" >&5
16259echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
16261
16262( exit $ac_status )
16263{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16264See \`config.log' for more details." >&5
16265echo "$as_me: error: cannot compute sizeof (long long), 77
16266See \`config.log' for more details." >&2;}
16267 { (exit 1); exit 1; }; }
16268fi
16269rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16270fi
16271fi
16272rm -f conftest.val
5c6fa7d2
RR
16273else
16274 ac_cv_sizeof_long_long=0
52127426 16275fi
4f57cf11 16276fi
e6cc62c6
VS
16277echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16278echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16279cat >>confdefs.h <<_ACEOF
4f57cf11 16280#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16281_ACEOF
4f57cf11
GD
16282
16283
16284 if test "$ac_cv_sizeof_long_long" != "0"; then
16285 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16286 fi
16287 ;;
16288 * )
e6cc62c6
VS
16289 echo "$as_me:$LINENO: checking for long long" >&5
16290echo $ECHO_N "checking for long long... $ECHO_C" >&6
16291if test "${ac_cv_type_long_long+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293else
16294 cat >conftest.$ac_ext <<_ACEOF
16295#line $LINENO "configure"
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305if ((long long *) 0)
16306 return 0;
16307if (sizeof (long long))
16308 return 0;
16309 ;
16310 return 0;
16311}
16312_ACEOF
16313rm -f conftest.$ac_objext
16314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315 (eval $ac_compile) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_cv_type_long_long=yes
16326else
16327 echo "$as_me: failed program was:" >&5
16328sed 's/^/| /' conftest.$ac_ext >&5
16329
16330ac_cv_type_long_long=no
16331fi
16332rm -f conftest.$ac_objext conftest.$ac_ext
16333fi
16334echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16335echo "${ECHO_T}$ac_cv_type_long_long" >&6
16336
16337echo "$as_me:$LINENO: checking size of long long" >&5
16338echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16339if test "${ac_cv_sizeof_long_long+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341else
16342 if test "$ac_cv_type_long_long" = yes; then
16343 # The cast to unsigned long works around a bug in the HP C Compiler
16344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16346 # This bug is HP SR number 8606223364.
4f57cf11 16347 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16348 # Depending upon the size, compute the lo and hi bounds.
16349cat >conftest.$ac_ext <<_ACEOF
16350#line $LINENO "configure"
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356$ac_includes_default
16357int
16358main ()
16359{
16360static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16361test_array [0] = 0
16362
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext
16368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369 (eval $ac_compile) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -s conftest.$ac_objext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_lo=0 ac_mid=0
16380 while :; do
16381 cat >conftest.$ac_ext <<_ACEOF
16382#line $LINENO "configure"
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388$ac_includes_default
16389int
16390main ()
16391{
16392static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16393test_array [0] = 0
16394
16395 ;
16396 return 0;
16397}
16398_ACEOF
16399rm -f conftest.$ac_objext
16400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_hi=$ac_mid; break
16412else
16413 echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
16416ac_lo=`expr $ac_mid + 1`
16417 if test $ac_lo -le $ac_mid; then
16418 ac_lo= ac_hi=
16419 break
16420 fi
16421 ac_mid=`expr 2 '*' $ac_mid + 1`
16422fi
16423rm -f conftest.$ac_objext conftest.$ac_ext
16424 done
16425else
16426 echo "$as_me: failed program was:" >&5
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
16429cat >conftest.$ac_ext <<_ACEOF
16430#line $LINENO "configure"
16431/* confdefs.h. */
16432_ACEOF
16433cat confdefs.h >>conftest.$ac_ext
16434cat >>conftest.$ac_ext <<_ACEOF
16435/* end confdefs.h. */
16436$ac_includes_default
16437int
16438main ()
16439{
16440static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16441test_array [0] = 0
16442
16443 ;
16444 return 0;
16445}
16446_ACEOF
16447rm -f conftest.$ac_objext
16448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449 (eval $ac_compile) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -s conftest.$ac_objext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_hi=-1 ac_mid=-1
16460 while :; do
16461 cat >conftest.$ac_ext <<_ACEOF
16462#line $LINENO "configure"
16463/* confdefs.h. */
16464_ACEOF
16465cat confdefs.h >>conftest.$ac_ext
16466cat >>conftest.$ac_ext <<_ACEOF
16467/* end confdefs.h. */
16468$ac_includes_default
16469int
16470main ()
16471{
16472static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16473test_array [0] = 0
16474
16475 ;
16476 return 0;
16477}
16478_ACEOF
16479rm -f conftest.$ac_objext
16480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -s conftest.$ac_objext'
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 ac_lo=$ac_mid; break
16492else
16493 echo "$as_me: failed program was:" >&5
16494sed 's/^/| /' conftest.$ac_ext >&5
16495
16496ac_hi=`expr '(' $ac_mid ')' - 1`
16497 if test $ac_mid -le $ac_hi; then
16498 ac_lo= ac_hi=
16499 break
16500 fi
16501 ac_mid=`expr 2 '*' $ac_mid`
16502fi
16503rm -f conftest.$ac_objext conftest.$ac_ext
16504 done
4f57cf11 16505else
e6cc62c6
VS
16506 echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509ac_lo= ac_hi=
16510fi
16511rm -f conftest.$ac_objext conftest.$ac_ext
16512fi
16513rm -f conftest.$ac_objext conftest.$ac_ext
16514# Binary search between lo and hi bounds.
16515while test "x$ac_lo" != "x$ac_hi"; do
16516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16517 cat >conftest.$ac_ext <<_ACEOF
16518#line $LINENO "configure"
16519/* confdefs.h. */
16520_ACEOF
16521cat confdefs.h >>conftest.$ac_ext
16522cat >>conftest.$ac_ext <<_ACEOF
16523/* end confdefs.h. */
16524$ac_includes_default
16525int
16526main ()
16527{
16528static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16529test_array [0] = 0
16530
16531 ;
16532 return 0;
16533}
16534_ACEOF
16535rm -f conftest.$ac_objext
16536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16537 (eval $ac_compile) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -s conftest.$ac_objext'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ac_hi=$ac_mid
16548else
16549 echo "$as_me: failed program was:" >&5
16550sed 's/^/| /' conftest.$ac_ext >&5
16551
16552ac_lo=`expr '(' $ac_mid ')' + 1`
16553fi
16554rm -f conftest.$ac_objext conftest.$ac_ext
16555done
16556case $ac_lo in
16557?*) ac_cv_sizeof_long_long=$ac_lo;;
16558'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16559See \`config.log' for more details." >&5
16560echo "$as_me: error: cannot compute sizeof (long long), 77
16561See \`config.log' for more details." >&2;}
16562 { (exit 1); exit 1; }; } ;;
16563esac
16564else
16565 if test "$cross_compiling" = yes; then
16566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16567See \`config.log' for more details." >&5
16568echo "$as_me: error: cannot run test program while cross compiling
16569See \`config.log' for more details." >&2;}
16570 { (exit 1); exit 1; }; }
16571else
16572 cat >conftest.$ac_ext <<_ACEOF
16573#line $LINENO "configure"
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 (long long)); }
16581unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16582#include <stdio.h>
e6cc62c6
VS
16583#include <stdlib.h>
16584int
16585main ()
4f57cf11 16586{
e6cc62c6
VS
16587
16588 FILE *f = fopen ("conftest.val", "w");
16589 if (! f)
16590 exit (1);
16591 if (((long) (sizeof (long long))) < 0)
16592 {
16593 long i = longval ();
16594 if (i != ((long) (sizeof (long long))))
16595 exit (1);
16596 fprintf (f, "%ld\n", i);
16597 }
16598 else
16599 {
16600 unsigned long i = ulongval ();
16601 if (i != ((long) (sizeof (long long))))
16602 exit (1);
16603 fprintf (f, "%lu\n", i);
16604 }
16605 exit (ferror (f) || fclose (f) != 0);
16606
16607 ;
16608 return 0;
4f57cf11 16609}
e6cc62c6
VS
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_long_long=`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 (long long), 77
16630See \`config.log' for more details." >&5
16631echo "$as_me: error: cannot compute sizeof (long long), 77
16632See \`config.log' for more details." >&2;}
16633 { (exit 1); exit 1; }; }
16634fi
16635rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16636fi
16637fi
16638rm -f conftest.val
4f57cf11 16639else
4f57cf11
GD
16640 ac_cv_sizeof_long_long=0
16641fi
7b4a847f 16642fi
e6cc62c6
VS
16643echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16644echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16645cat >>confdefs.h <<_ACEOF
21d1c967 16646#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16647_ACEOF
9e691f46 16648
8284b0c5 16649
21d1c967
GD
16650esac
16651
e6cc62c6
VS
16652echo "$as_me:$LINENO: checking size of wchar_t" >&5
16653echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16654if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16656else
e6cc62c6 16657
21d1c967 16658 if test "$cross_compiling" = yes; then
e6cc62c6 16659
2b5f62a0
VZ
16660 case "${host}" in
16661 *-pc-msdosdjgpp )
16662 wx_cv_sizeof_wchar_t=0
16663 ;;
16664 * )
16665 wx_cv_sizeof_wchar_t=4
16666 ;;
16667 esac
e6cc62c6
VS
16668
16669
6f72b082 16670else
e6cc62c6
VS
16671 cat >conftest.$ac_ext <<_ACEOF
16672#line $LINENO "configure"
16673/* confdefs.h. */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h. */
21d1c967 16678
2b5f62a0
VZ
16679 /* DJGPP only has fake wchar_t: */
16680 #ifdef __DJGPP__
16681 # error "fake wchar_t"
16682 #endif
21d1c967
GD
16683 #ifdef HAVE_WCHAR_H
16684 # ifdef __CYGWIN__
16685 # include <stddef.h>
16686 # endif
16687 # include <wchar.h>
16688 #endif
16689 #ifdef HAVE_STDLIB_H
16690 # include <stdlib.h>
16691 #endif
16692 #include <stdio.h>
16693 int main()
16694 {
16695 FILE *f=fopen("conftestval", "w");
16696 if (!f) exit(1);
16697 fprintf(f, "%i", sizeof(wchar_t));
16698 exit(0);
16699 }
e6cc62c6
VS
16700
16701_ACEOF
16702rm -f conftest$ac_exeext
16703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
21d1c967 16713 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16714else
e6cc62c6
VS
16715 echo "$as_me: program exited with status $ac_status" >&5
16716echo "$as_me: failed program was:" >&5
16717sed 's/^/| /' conftest.$ac_ext >&5
16718
16719( exit $ac_status )
16720wx_cv_sizeof_wchar_t=0
6f72b082 16721fi
e6cc62c6 16722rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16723fi
6f72b082 16724
3f345b47 16725fi
e6cc62c6
VS
16726echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16727echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16728
e6cc62c6 16729cat >>confdefs.h <<_ACEOF
21d1c967 16730#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16731_ACEOF
90dd450c 16732
8284b0c5 16733
21d1c967
GD
16734# Check whether --enable-largefile or --disable-largefile was given.
16735if test "${enable_largefile+set}" = set; then
16736 enableval="$enable_largefile"
3f345b47 16737
e6cc62c6 16738fi;
21d1c967
GD
16739if test "$enable_largefile" != no; then
16740 wx_largefile=no
e6cc62c6
VS
16741
16742 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16743echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16744if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746else
16747
16748 cat >conftest.$ac_ext <<_ACEOF
16749#line $LINENO "configure"
16750/* confdefs.h. */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h. */
21d1c967
GD
16755#define _FILE_OFFSET_BITS 64
16756 #include <sys/types.h>
e6cc62c6
VS
16757int
16758main ()
16759{
21d1c967
GD
16760typedef struct {
16761 unsigned int field: sizeof(off_t) == 8;
16762} wxlf;
16763
e6cc62c6
VS
16764 ;
16765 return 0;
16766}
16767_ACEOF
16768rm -f conftest.$ac_objext
16769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770 (eval $ac_compile) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
21d1c967 16780 ac_cv_sys_file_offset_bits=64
f6bcfd97 16781else
e6cc62c6
VS
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785ac_cv_sys_file_offset_bits=no
247f5006 16786fi
e6cc62c6
VS
16787rm -f conftest.$ac_objext conftest.$ac_ext
16788
a0b9e27f 16789
e6cc62c6
VS
16790fi
16791echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16792echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16793
16794 if test "$ac_cv_sys_file_offset_bits" != no; then
16795 wx_largefile=yes
e6cc62c6 16796 cat >>confdefs.h <<_ACEOF
21d1c967 16797#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16798_ACEOF
21d1c967
GD
16799
16800 fi
16801
16802 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16803
16804 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16805echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16806if test "${ac_cv_sys_large_files+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808else
16809
16810 cat >conftest.$ac_ext <<_ACEOF
16811#line $LINENO "configure"
16812/* confdefs.h. */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h. */
21d1c967
GD
16817#define _LARGE_FILES 1
16818 #include <sys/types.h>
e6cc62c6
VS
16819int
16820main ()
16821{
21d1c967
GD
16822typedef struct {
16823 unsigned int field: sizeof(off_t) == 8;
16824} wxlf;
16825
e6cc62c6
VS
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext
16831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
21d1c967 16842 ac_cv_sys_large_files=1
f6bcfd97 16843else
e6cc62c6
VS
16844 echo "$as_me: failed program was:" >&5
16845sed 's/^/| /' conftest.$ac_ext >&5
16846
16847ac_cv_sys_large_files=no
247f5006 16848fi
e6cc62c6 16849rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16850
e6cc62c6
VS
16851
16852fi
16853echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16854echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16855
21d1c967
GD
16856 if test "$ac_cv_sys_large_files" != no; then
16857 wx_largefile=yes
e6cc62c6 16858 cat >>confdefs.h <<_ACEOF
21d1c967 16859#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16860_ACEOF
90dd450c 16861
90dd450c
VZ
16862 fi
16863
90dd450c 16864 fi
90dd450c 16865
e6cc62c6
VS
16866 echo "$as_me:$LINENO: checking if large file support is available" >&5
16867echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16868 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16869 cat >>confdefs.h <<\_ACEOF
21d1c967 16870#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16871_ACEOF
90dd450c 16872
90dd450c 16873 fi
e6cc62c6
VS
16874 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16875echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16876fi
90dd450c 16877
8284b0c5 16878
f02444d0 16879if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16880 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16881 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16882 else
e26c13cf 16883 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16884 fi
e26c13cf 16885 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16886fi
16887
e6cc62c6
VS
16888echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16889echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16890if test "${ac_cv_c_bigendian+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16892else
21d1c967
GD
16893 ac_cv_c_bigendian=unknown
16894# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16895cat >conftest.$ac_ext <<_ACEOF
16896#line $LINENO "configure"
16897/* confdefs.h. */
16898_ACEOF
16899cat confdefs.h >>conftest.$ac_ext
16900cat >>conftest.$ac_ext <<_ACEOF
16901/* end confdefs.h. */
21d1c967
GD
16902#include <sys/types.h>
16903#include <sys/param.h>
e6cc62c6
VS
16904int
16905main ()
16906{
21d1c967
GD
16907
16908#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16909 bogus endian macros
16910#endif
e6cc62c6
VS
16911 ;
16912 return 0;
16913}
16914_ACEOF
16915rm -f conftest.$ac_objext
16916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16917 (eval $ac_compile) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
21d1c967 16927 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16928cat >conftest.$ac_ext <<_ACEOF
16929#line $LINENO "configure"
16930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
21d1c967
GD
16935#include <sys/types.h>
16936#include <sys/param.h>
e6cc62c6
VS
16937int
16938main ()
16939{
21d1c967
GD
16940
16941#if BYTE_ORDER != BIG_ENDIAN
16942 not big endian
16943#endif
e6cc62c6
VS
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948rm -f conftest.$ac_objext
16949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -s conftest.$ac_objext'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
21d1c967 16960 ac_cv_c_bigendian=yes
3f345b47 16961else
e6cc62c6
VS
16962 echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965ac_cv_c_bigendian=no
3f345b47 16966fi
e6cc62c6 16967rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16968else
e6cc62c6
VS
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
3f345b47 16972fi
e6cc62c6 16973rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16974if test $ac_cv_c_bigendian = unknown; then
16975if test "$cross_compiling" = yes; then
16976 ac_cv_c_bigendian=unknown
10f2d63a 16977else
e6cc62c6
VS
16978 cat >conftest.$ac_ext <<_ACEOF
16979#line $LINENO "configure"
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
21d1c967
GD
16985main () {
16986 /* Are we little or big endian? From Harbison&Steele. */
16987 union
16988 {
16989 long l;
16990 char c[sizeof (long)];
16991 } u;
16992 u.l = 1;
16993 exit (u.c[sizeof (long) - 1] == 1);
16994}
e6cc62c6
VS
16995_ACEOF
16996rm -f conftest$ac_exeext
16997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16998 (eval $ac_link) 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
21d1c967 17007 ac_cv_c_bigendian=no
3f345b47 17008else
e6cc62c6
VS
17009 echo "$as_me: program exited with status $ac_status" >&5
17010echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013( exit $ac_status )
17014ac_cv_c_bigendian=yes
247f5006 17015fi
e6cc62c6 17016rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17017fi
3f345b47 17018fi
8168de4c 17019fi
e6cc62c6
VS
17020echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17021echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17022if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17023 { 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
17024echo "$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
17025fi
17026if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17027 cat >>confdefs.h <<\_ACEOF
247f5006 17028#define WORDS_BIGENDIAN 1
e6cc62c6 17029_ACEOF
247f5006
VZ
17030
17031fi
17032
17033
e6cc62c6
VS
17034
17035ac_ext=cc
17036ac_cpp='$CXXCPP $CPPFLAGS'
17037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17040echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17041echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17042if test -z "$CXXCPP"; then
e6cc62c6
VS
17043 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045else
17046 # Double quotes because CXXCPP needs to be expanded
17047 for CXXCPP in "$CXX -E" "/lib/cpp"
17048 do
17049 ac_preproc_ok=false
17050for ac_cxx_preproc_warn_flag in '' yes
17051do
17052 # Use a header file that comes with gcc, so configuring glibc
17053 # with a fresh cross-compiler works.
17054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17055 # <limits.h> exists even on freestanding compilers.
17056 # On the NeXT, cc -E runs the code through the compiler's parser,
17057 # not just through cpp. "Syntax error" is here to catch this case.
17058 cat >conftest.$ac_ext <<_ACEOF
17059#line $LINENO "configure"
17060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
17065#ifdef __STDC__
17066# include <limits.h>
17067#else
17068# include <assert.h>
17069#endif
17070 Syntax error
17071_ACEOF
17072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } >/dev/null; then
17080 if test -s conftest.err; then
17081 ac_cpp_err=$ac_cxx_preproc_warn_flag
17082 else
17083 ac_cpp_err=
17084 fi
247f5006 17085else
e6cc62c6
VS
17086 ac_cpp_err=yes
17087fi
17088if test -z "$ac_cpp_err"; then
17089 :
17090else
17091 echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
17094 # Broken: fails on valid input.
17095continue
17096fi
17097rm -f conftest.err conftest.$ac_ext
17098
17099 # OK, works on sane cases. Now check whether non-existent headers
17100 # can be detected and how.
17101 cat >conftest.$ac_ext <<_ACEOF
17102#line $LINENO "configure"
17103/* confdefs.h. */
17104_ACEOF
17105cat confdefs.h >>conftest.$ac_ext
17106cat >>conftest.$ac_ext <<_ACEOF
17107/* end confdefs.h. */
17108#include <ac_nonexistent.h>
17109_ACEOF
17110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } >/dev/null; then
17118 if test -s conftest.err; then
17119 ac_cpp_err=$ac_cxx_preproc_warn_flag
17120 else
17121 ac_cpp_err=
17122 fi
17123else
17124 ac_cpp_err=yes
17125fi
17126if test -z "$ac_cpp_err"; then
17127 # Broken: success on invalid input.
17128continue
17129else
17130 echo "$as_me: failed program was:" >&5
17131sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 # Passes both tests.
17134ac_preproc_ok=:
17135break
17136fi
17137rm -f conftest.err conftest.$ac_ext
17138
17139done
17140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17141rm -f conftest.err conftest.$ac_ext
17142if $ac_preproc_ok; then
17143 break
17144fi
17145
17146 done
17147 ac_cv_prog_CXXCPP=$CXXCPP
17148
17149fi
17150 CXXCPP=$ac_cv_prog_CXXCPP
17151else
17152 ac_cv_prog_CXXCPP=$CXXCPP
17153fi
17154echo "$as_me:$LINENO: result: $CXXCPP" >&5
17155echo "${ECHO_T}$CXXCPP" >&6
17156ac_preproc_ok=false
17157for ac_cxx_preproc_warn_flag in '' yes
17158do
17159 # Use a header file that comes with gcc, so configuring glibc
17160 # with a fresh cross-compiler works.
17161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17162 # <limits.h> exists even on freestanding compilers.
17163 # On the NeXT, cc -E runs the code through the compiler's parser,
17164 # not just through cpp. "Syntax error" is here to catch this case.
17165 cat >conftest.$ac_ext <<_ACEOF
17166#line $LINENO "configure"
17167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
17172#ifdef __STDC__
17173# include <limits.h>
17174#else
17175# include <assert.h>
17176#endif
17177 Syntax error
17178_ACEOF
17179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17181 ac_status=$?
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } >/dev/null; then
17187 if test -s conftest.err; then
17188 ac_cpp_err=$ac_cxx_preproc_warn_flag
17189 else
17190 ac_cpp_err=
17191 fi
17192else
17193 ac_cpp_err=yes
17194fi
17195if test -z "$ac_cpp_err"; then
21d1c967 17196 :
698dcdb6 17197else
e6cc62c6
VS
17198 echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 # Broken: fails on valid input.
17202continue
17203fi
17204rm -f conftest.err conftest.$ac_ext
17205
17206 # OK, works on sane cases. Now check whether non-existent headers
17207 # can be detected and how.
17208 cat >conftest.$ac_ext <<_ACEOF
17209#line $LINENO "configure"
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
17215#include <ac_nonexistent.h>
17216_ACEOF
17217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } >/dev/null; then
17225 if test -s conftest.err; then
17226 ac_cpp_err=$ac_cxx_preproc_warn_flag
17227 else
17228 ac_cpp_err=
17229 fi
17230else
17231 ac_cpp_err=yes
247f5006 17232fi
e6cc62c6
VS
17233if test -z "$ac_cpp_err"; then
17234 # Broken: success on invalid input.
17235continue
17236else
17237 echo "$as_me: failed program was:" >&5
17238sed 's/^/| /' conftest.$ac_ext >&5
17239
17240 # Passes both tests.
17241ac_preproc_ok=:
17242break
328a083c 17243fi
e6cc62c6
VS
17244rm -f conftest.err conftest.$ac_ext
17245
17246done
17247# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17248rm -f conftest.err conftest.$ac_ext
17249if $ac_preproc_ok; then
17250 :
17251else
17252 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17253See \`config.log' for more details." >&5
17254echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17255See \`config.log' for more details." >&2;}
17256 { (exit 1); exit 1; }; }
90dd450c 17257fi
e6cc62c6
VS
17258
17259ac_ext=cc
17260ac_cpp='$CXXCPP $CPPFLAGS'
17261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17264
1e6feb95 17265
1725144d 17266
21d1c967 17267 if test "$cross_compiling" = "yes"; then
e6cc62c6 17268 cat >>confdefs.h <<\_ACEOF
21d1c967 17269#define wxUSE_IOSTREAMH 1
e6cc62c6 17270_ACEOF
ab9b9eab 17271
21d1c967 17272 else
e6cc62c6
VS
17273
17274
17275 ac_ext=cc
5c6fa7d2 17276ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17280
52127426 17281
247f5006 17282
e6cc62c6 17283for ac_header in iostream
21d1c967 17284do
e6cc62c6
VS
17285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17286if eval "test \"\${$as_ac_Header+set}\" = set"; then
17287 echo "$as_me:$LINENO: checking for $ac_header" >&5
17288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17289if eval "test \"\${$as_ac_Header+set}\" = set"; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17291fi
17292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17294else
17295 # Is the header compilable?
17296echo "$as_me:$LINENO: checking $ac_header usability" >&5
17297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17298cat >conftest.$ac_ext <<_ACEOF
17299#line $LINENO "configure"
17300/* confdefs.h. */
17301_ACEOF
17302cat confdefs.h >>conftest.$ac_ext
17303cat >>conftest.$ac_ext <<_ACEOF
17304/* end confdefs.h. */
17305$ac_includes_default
17306#include <$ac_header>
17307_ACEOF
17308rm -f conftest.$ac_objext
17309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17310 (eval $ac_compile) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
17314 { ac_try='test -s conftest.$ac_objext'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_header_compiler=yes
17321else
17322 echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
17324
17325ac_header_compiler=no
17326fi
17327rm -f conftest.$ac_objext conftest.$ac_ext
17328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17329echo "${ECHO_T}$ac_header_compiler" >&6
17330
17331# Is the header present?
17332echo "$as_me:$LINENO: checking $ac_header presence" >&5
17333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17334cat >conftest.$ac_ext <<_ACEOF
17335#line $LINENO "configure"
17336/* confdefs.h. */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h. */
17341#include <$ac_header>
17342_ACEOF
17343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17345 ac_status=$?
17346 grep -v '^ *+' conftest.er1 >conftest.err
17347 rm -f conftest.er1
17348 cat conftest.err >&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } >/dev/null; then
17351 if test -s conftest.err; then
17352 ac_cpp_err=$ac_cxx_preproc_warn_flag
17353 else
17354 ac_cpp_err=
17355 fi
17356else
17357 ac_cpp_err=yes
17358fi
17359if test -z "$ac_cpp_err"; then
17360 ac_header_preproc=yes
17361else
17362 echo "$as_me: failed program was:" >&5
17363sed 's/^/| /' conftest.$ac_ext >&5
17364
17365 ac_header_preproc=no
17366fi
17367rm -f conftest.err conftest.$ac_ext
17368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17369echo "${ECHO_T}$ac_header_preproc" >&6
17370
17371# So? What about this header?
17372case $ac_header_compiler:$ac_header_preproc in
17373 yes:no )
17374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17378 (
17379 cat <<\_ASBOX
17380## ------------------------------------ ##
17381## Report this to bug-autoconf@gnu.org. ##
17382## ------------------------------------ ##
17383_ASBOX
17384 ) |
17385 sed "s/^/$as_me: WARNING: /" >&2
17386 ;;
17387 no:yes )
17388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17394 (
17395 cat <<\_ASBOX
17396## ------------------------------------ ##
17397## Report this to bug-autoconf@gnu.org. ##
17398## ------------------------------------ ##
17399_ASBOX
17400 ) |
17401 sed "s/^/$as_me: WARNING: /" >&2
17402 ;;
17403esac
17404echo "$as_me:$LINENO: checking for $ac_header" >&5
17405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17406if eval "test \"\${$as_ac_Header+set}\" = set"; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17408else
17409 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17410fi
e6cc62c6
VS
17411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17413
90dd450c 17414fi
e6cc62c6
VS
17415if test `eval echo '${'$as_ac_Header'}'` = yes; then
17416 cat >>confdefs.h <<_ACEOF
17417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17418_ACEOF
17419
90dd450c 17420fi
e6cc62c6 17421
21d1c967 17422done
10f2d63a 17423
8284b0c5 17424
21d1c967
GD
17425 if test "$ac_cv_header_iostream" = "yes" ; then
17426 :
17427 else
e6cc62c6 17428 cat >>confdefs.h <<\_ACEOF
21d1c967 17429#define wxUSE_IOSTREAMH 1
e6cc62c6 17430_ACEOF
788deba1 17431
90dd450c 17432 fi
ab9b9eab 17433
21d1c967 17434 ac_ext=c
21d1c967 17435ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17438ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17439
21d1c967 17440 fi
ab9b9eab 17441
52127426 17442
8284b0c5 17443
e6cc62c6
VS
17444 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17445echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17446if test "${wx_cv_cpp_bool+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17448else
e6cc62c6
VS
17449
17450
17451
17452 ac_ext=cc
5c6fa7d2 17453ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17457
8284b0c5 17458
e6cc62c6
VS
17459 cat >conftest.$ac_ext <<_ACEOF
17460#line $LINENO "configure"
17461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
21d1c967 17466
e6cc62c6
VS
17467
17468int
17469main ()
17470{
21d1c967
GD
17471
17472 bool b = true;
17473
17474 return 0;
e6cc62c6
VS
17475
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest.$ac_objext
17481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482 (eval $ac_compile) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -s conftest.$ac_objext'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492
21d1c967 17493 wx_cv_cpp_bool=yes
e6cc62c6 17494
698dcdb6 17495else
e6cc62c6
VS
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
17499
21d1c967 17500 wx_cv_cpp_bool=no
e6cc62c6
VS
17501
17502
698dcdb6 17503fi
e6cc62c6 17504rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17505
17506 ac_ext=c
21d1c967 17507ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17510ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17511
a0b9e27f 17512
e6cc62c6
VS
17513fi
17514echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17515echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17516
17517 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17518 cat >>confdefs.h <<\_ACEOF
21d1c967 17519#define HAVE_BOOL 1
e6cc62c6 17520_ACEOF
ab9b9eab 17521
21d1c967
GD
17522 fi
17523
52127426 17524
8284b0c5 17525
e6cc62c6
VS
17526 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17527echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17528if test "${wx_cv_explicit+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17530else
e6cc62c6
VS
17531
17532
17533
17534 ac_ext=cc
5c6fa7d2 17535ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17539
8284b0c5 17540
e6cc62c6
VS
17541 cat >conftest.$ac_ext <<_ACEOF
17542#line $LINENO "configure"
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
986ecc86
VZ
17548
17549 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17550
17551int
17552main ()
17553{
986ecc86
VZ
17554
17555 return 0;
e6cc62c6
VS
17556
17557 ;
17558 return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext
17562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17563 (eval $ac_compile) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
17567 { ac_try='test -s conftest.$ac_objext'
17568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; }; then
17573
17574 cat >conftest.$ac_ext <<_ACEOF
17575#line $LINENO "configure"
17576/* confdefs.h. */
17577_ACEOF
17578cat confdefs.h >>conftest.$ac_ext
17579cat >>conftest.$ac_ext <<_ACEOF
17580/* end confdefs.h. */
986ecc86
VZ
17581
17582 class Foo { public: explicit Foo(int) {} };
17583 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17584
17585int
17586main ()
17587{
986ecc86
VZ
17588
17589 TakeFoo(17);
17590 return 0;
e6cc62c6
VS
17591
17592 ;
17593 return 0;
17594}
17595_ACEOF
17596rm -f conftest.$ac_objext
17597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17598 (eval $ac_compile) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
986ecc86
VZ
17608 wx_cv_explicit=no
17609else
e6cc62c6
VS
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
17613wx_cv_explicit=yes
17614
986ecc86 17615fi
e6cc62c6
VS
17616rm -f conftest.$ac_objext conftest.$ac_ext
17617
986ecc86 17618else
e6cc62c6
VS
17619 echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622wx_cv_explicit=no
17623
986ecc86 17624fi
e6cc62c6 17625rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17626
17627 ac_ext=c
986ecc86 17628ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17631ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17632
a0b9e27f 17633
e6cc62c6
VS
17634fi
17635echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17636echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17637
17638 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17639 cat >>confdefs.h <<\_ACEOF
986ecc86 17640#define HAVE_EXPLICIT 1
e6cc62c6 17641_ACEOF
986ecc86
VZ
17642
17643 fi
17644
8284b0c5 17645
e6cc62c6
VS
17646echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17647echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17648if test "${ac_cv_cxx_const_cast+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17650else
521196a2 17651
521196a2 17652
e6cc62c6
VS
17653 ac_ext=cc
17654ac_cpp='$CXXCPP $CPPFLAGS'
17655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17658
17659 cat >conftest.$ac_ext <<_ACEOF
17660#line $LINENO "configure"
17661/* confdefs.h. */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h. */
17666
17667int
17668main ()
17669{
521196a2 17670int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17671 ;
17672 return 0;
17673}
17674_ACEOF
17675rm -f conftest.$ac_objext
17676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
521196a2
MB
17687 ac_cv_cxx_const_cast=yes
17688else
e6cc62c6
VS
17689 echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
17692ac_cv_cxx_const_cast=no
521196a2 17693fi
e6cc62c6 17694rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17695 ac_ext=c
521196a2 17696ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17699ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17700
17701
17702fi
e6cc62c6
VS
17703echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17704echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17705if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17706
17707cat >>confdefs.h <<\_ACEOF
17708#define HAVE_CONST_CAST
17709_ACEOF
521196a2
MB
17710
17711fi
17712
17713
e87b7833
MB
17714if test "$wxUSE_STL" = "yes"; then
17715 ac_ext=cc
17716ac_cpp='$CXXCPP $CPPFLAGS'
17717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17720
17721
17722 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17723echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17724 cat >conftest.$ac_ext <<_ACEOF
17725#line $LINENO "configure"
17726/* confdefs.h. */
17727_ACEOF
17728cat confdefs.h >>conftest.$ac_ext
17729cat >>conftest.$ac_ext <<_ACEOF
17730/* end confdefs.h. */
17731#include <string>
17732 #include <functional>
17733 #include <algorithm>
17734 #include <vector>
17735 #include <list>
17736int
17737main ()
17738{
17739std::vector<int> moo;
17740 std::list<int> foo;
17741 std::vector<int>::iterator it =
17742 std::find_if(moo.begin(), moo.end(),
17743 std::bind2nd(std::less<int>(), 3));
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest.$ac_objext
17749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750 (eval $ac_compile) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try='test -s conftest.$ac_objext'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 echo "$as_me:$LINENO: result: yes" >&5
17761echo "${ECHO_T}yes" >&6
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
17766echo "$as_me:$LINENO: result: no" >&5
17767echo "${ECHO_T}no" >&6
17768 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17769echo "$as_me: error: Basic STL functionality missing" >&2;}
17770 { (exit 1); exit 1; }; }
17771fi
17772rm -f conftest.$ac_objext conftest.$ac_ext
17773
17774 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17775echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17776 cat >conftest.$ac_ext <<_ACEOF
17777#line $LINENO "configure"
17778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
17783#include <string>
17784int
17785main ()
17786{
17787std::wstring foo;
17788 ;
17789 return 0;
17790}
17791_ACEOF
17792rm -f conftest.$ac_objext
17793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17794 (eval $ac_compile) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -s conftest.$ac_objext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 echo "$as_me:$LINENO: result: yes" >&5
17805echo "${ECHO_T}yes" >&6
17806 cat >>confdefs.h <<\_ACEOF
17807#define HAVE_STD_WSTRING 1
17808_ACEOF
17809
17810else
17811 echo "$as_me: failed program was:" >&5
17812sed 's/^/| /' conftest.$ac_ext >&5
17813
17814echo "$as_me:$LINENO: result: no" >&5
17815echo "${ECHO_T}no" >&6
17816fi
17817rm -f conftest.$ac_objext conftest.$ac_ext
17818
17819 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17820echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17822#line $LINENO "configure"
17823/* confdefs.h. */
17824_ACEOF
17825cat confdefs.h >>conftest.$ac_ext
17826cat >>conftest.$ac_ext <<_ACEOF
17827/* end confdefs.h. */
17828#include <string>
17829int
17830main ()
17831{
17832std::string foo, bar;
17833 foo.compare(bar);
17834 foo.compare(1, 1, bar);
17835 foo.compare(1, 1, bar, 1, 1);
17836 foo.compare("");
17837 foo.compare(1, 1, "");
17838 foo.compare(1, 1, "", 2);
17839 ;
17840 return 0;
17841}
17842_ACEOF
17843rm -f conftest.$ac_objext
17844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -s conftest.$ac_objext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 echo "$as_me:$LINENO: result: yes" >&5
17856echo "${ECHO_T}yes" >&6
17857 cat >>confdefs.h <<\_ACEOF
17858#define HAVE_STD_STRING_COMPARE 1
17859_ACEOF
17860
17861else
17862 echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865echo "$as_me:$LINENO: result: no" >&5
17866echo "${ECHO_T}no" >&6
17867fi
17868rm -f conftest.$ac_objext conftest.$ac_ext
17869
17870 ac_ext=c
17871ac_cpp='$CPP $CPPFLAGS'
17872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17874ac_compiler_gnu=$ac_cv_c_compiler_gnu
17875
17876fi
17877
8284b0c5 17878
21d1c967
GD
17879SEARCH_INCLUDE="\
17880 /usr/local/include \
17881 \
17882 /usr/Motif-1.2/include \
17883 /usr/Motif-2.1/include \
17884 \
17885 /usr/include/Motif1.2 \
17886 /opt/xpm/include/X11 \
17887 /opt/GBxpm/include/ \
17888 /opt/GBxpm/X11/include/ \
17889 \
17890 /usr/Motif1.2/include \
17891 /usr/dt/include \
17892 /usr/openwin/include \
17893 \
17894 /usr/include/Xm \
17895 \
17896 /usr/X11R6/include \
17897 /usr/X11R6.4/include \
17898 /usr/X11R5/include \
17899 /usr/X11R4/include \
17900 \
17901 /usr/include/X11R6 \
17902 /usr/include/X11R5 \
17903 /usr/include/X11R4 \
17904 \
17905 /usr/local/X11R6/include \
17906 /usr/local/X11R5/include \
17907 /usr/local/X11R4/include \
17908 \
17909 /usr/local/include/X11R6 \
17910 /usr/local/include/X11R5 \
17911 /usr/local/include/X11R4 \
17912 \
17913 /usr/X11/include \
17914 /usr/include/X11 \
17915 /usr/local/X11/include \
17916 /usr/local/include/X11 \
17917 \
17918 /usr/X386/include \
17919 /usr/x386/include \
17920 /usr/XFree86/include/X11 \
17921 \
17922 X:/XFree86/include \
17923 X:/XFree86/include/X11 \
17924 \
17925 /usr/include/gtk \
17926 /usr/local/include/gtk \
17927 /usr/include/glib \
17928 /usr/local/include/glib \
17929 \
17930 /usr/include/qt \
17931 /usr/local/include/qt \
17932 \
17933 /usr/include/windows \
17934 /usr/include/wine \
17935 /usr/local/include/wine \
17936 \
17937 /usr/unsupported/include \
17938 /usr/athena/include \
17939 /usr/local/x11r5/include \
17940 /usr/lpp/Xamples/include \
17941 \
2b5f62a0 17942 /usr/openwin/share/include"
21d1c967
GD
17943
17944SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17945
8284b0c5 17946
e6cc62c6 17947cat >confcache <<\_ACEOF
21d1c967
GD
17948# This file is a shell script that caches the results of configure
17949# tests run on this system so they can be shared between configure
e6cc62c6
VS
17950# scripts and configure runs, see configure's option --config-cache.
17951# It is not useful on other systems. If it contains results you don't
17952# want to keep, you may remove or edit it.
21d1c967 17953#
e6cc62c6
VS
17954# config.status only pays attention to the cache file if you give it
17955# the --recheck option to rerun configure.
21d1c967 17956#
e6cc62c6
VS
17957# `ac_cv_env_foo' variables (set or unset) will be overridden when
17958# loading this file, other *unset* `ac_cv_foo' will be assigned the
17959# following values.
17960
17961_ACEOF
17962
21d1c967
GD
17963# The following way of writing the cache mishandles newlines in values,
17964# but we know of no workaround that is simple, portable, and efficient.
17965# So, don't put newlines in cache variables' values.
17966# Ultrix sh set writes to stderr and can't be redirected directly,
17967# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17968{
17969 (set) 2>&1 |
17970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17971 *ac_space=\ *)
17972 # `set' does not quote correctly, so add quotes (double-quote
17973 # substitution turns \\\\ into \\, and sed turns \\ into \).
17974 sed -n \
17975 "s/'/'\\\\''/g;
17976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17977 ;;
17978 *)
17979 # `set' quotes correctly as required by POSIX, so do not add quotes.
17980 sed -n \
17981 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17982 ;;
17983 esac;
17984} |
17985 sed '
17986 t clear
17987 : clear
17988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17989 t end
17990 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17991 : end' >>confcache
17992if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17993 if test -w $cache_file; then
e6cc62c6
VS
17994 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17995 cat confcache >$cache_file
21d1c967
GD
17996 else
17997 echo "not updating unwritable cache $cache_file"
17998 fi
ab9b9eab 17999fi
21d1c967 18000rm -f confcache
ab9b9eab 18001
fe0895cf 18002if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18003 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18004echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18005if test "${wx_cv_lib_glibc21+set}" = set; then
18006 echo $ECHO_N "(cached) $ECHO_C" >&6
18007else
18008
18009 cat >conftest.$ac_ext <<_ACEOF
18010#line $LINENO "configure"
18011/* confdefs.h. */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
18015/* end confdefs.h. */
21d1c967 18016#include <features.h>
e6cc62c6
VS
18017int
18018main ()
18019{
ab9b9eab 18020
21d1c967
GD
18021 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18022 #error not glibc2.1
18023 #endif
e6cc62c6
VS
18024
18025 ;
18026 return 0;
18027}
18028_ACEOF
18029rm -f conftest.$ac_objext
18030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18031 (eval $ac_compile) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -s conftest.$ac_objext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041
21d1c967 18042 wx_cv_lib_glibc21=yes
e6cc62c6 18043
698dcdb6 18044else
e6cc62c6
VS
18045 echo "$as_me: failed program was:" >&5
18046sed 's/^/| /' conftest.$ac_ext >&5
18047
18048
21d1c967 18049 wx_cv_lib_glibc21=no
e6cc62c6
VS
18050
18051
247f5006 18052fi
e6cc62c6 18053rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18054
e6cc62c6
VS
18055fi
18056echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18057echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18058 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18059 cat >>confdefs.h <<\_ACEOF
21d1c967 18060#define wxHAVE_GLIBC2 1
e6cc62c6 18061_ACEOF
1e487827 18062
90dd450c 18063 fi
ab9b9eab
VZ
18064fi
18065
5c0a20c3
VZ
18066if test "x$wx_cv_lib_glibc21" = "xyes"; then
18067 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18068 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18069#define _GNU_SOURCE 1
e6cc62c6 18070_ACEOF
5c0a20c3
VZ
18071
18072 fi
18073fi
18074
8284b0c5
MB
18075
18076
21d1c967
GD
18077REGEX_INCLUDE=
18078if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18079 cat >>confdefs.h <<\_ACEOF
21d1c967 18080#define wxUSE_REGEX 1
e6cc62c6 18081_ACEOF
698dcdb6 18082
8284b0c5 18083
21d1c967 18084 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18085 if test "${ac_cv_header_regex_h+set}" = set; then
18086 echo "$as_me:$LINENO: checking for regex.h" >&5
18087echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18088if test "${ac_cv_header_regex_h+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090fi
18091echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18092echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18093else
18094 # Is the header compilable?
18095echo "$as_me:$LINENO: checking regex.h usability" >&5
18096echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18097cat >conftest.$ac_ext <<_ACEOF
18098#line $LINENO "configure"
18099/* confdefs.h. */
18100_ACEOF
18101cat confdefs.h >>conftest.$ac_ext
18102cat >>conftest.$ac_ext <<_ACEOF
18103/* end confdefs.h. */
18104$ac_includes_default
247f5006 18105#include <regex.h>
e6cc62c6
VS
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18109 (eval $ac_compile) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -s conftest.$ac_objext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 ac_header_compiler=yes
18120else
18121 echo "$as_me: failed program was:" >&5
18122sed 's/^/| /' conftest.$ac_ext >&5
18123
18124ac_header_compiler=no
18125fi
18126rm -f conftest.$ac_objext conftest.$ac_ext
18127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18128echo "${ECHO_T}$ac_header_compiler" >&6
18129
18130# Is the header present?
18131echo "$as_me:$LINENO: checking regex.h presence" >&5
18132echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18133cat >conftest.$ac_ext <<_ACEOF
18134#line $LINENO "configure"
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140#include <regex.h>
18141_ACEOF
18142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } >/dev/null; then
18150 if test -s conftest.err; then
18151 ac_cpp_err=$ac_c_preproc_warn_flag
18152 else
18153 ac_cpp_err=
18154 fi
18155else
18156 ac_cpp_err=yes
18157fi
18158if test -z "$ac_cpp_err"; then
18159 ac_header_preproc=yes
18160else
18161 echo "$as_me: failed program was:" >&5
18162sed 's/^/| /' conftest.$ac_ext >&5
18163
18164 ac_header_preproc=no
18165fi
18166rm -f conftest.err conftest.$ac_ext
18167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18168echo "${ECHO_T}$ac_header_preproc" >&6
18169
18170# So? What about this header?
18171case $ac_header_compiler:$ac_header_preproc in
18172 yes:no )
18173 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18174echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18176echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18177 (
18178 cat <<\_ASBOX
18179## ------------------------------------ ##
18180## Report this to bug-autoconf@gnu.org. ##
18181## ------------------------------------ ##
18182_ASBOX
18183 ) |
18184 sed "s/^/$as_me: WARNING: /" >&2
18185 ;;
18186 no:yes )
18187 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18188echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18189 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18190echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18192echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18193 (
18194 cat <<\_ASBOX
18195## ------------------------------------ ##
18196## Report this to bug-autoconf@gnu.org. ##
18197## ------------------------------------ ##
18198_ASBOX
18199 ) |
18200 sed "s/^/$as_me: WARNING: /" >&2
18201 ;;
18202esac
18203echo "$as_me:$LINENO: checking for regex.h" >&5
18204echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18205if test "${ac_cv_header_regex_h+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207else
18208 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18209fi
e6cc62c6
VS
18210echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18211echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18212
698dcdb6 18213fi
e6cc62c6
VS
18214if test $ac_cv_header_regex_h = yes; then
18215
18216for ac_func in regcomp
21d1c967 18217do
e6cc62c6
VS
18218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18219echo "$as_me:$LINENO: checking for $ac_func" >&5
18220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18221if eval "test \"\${$as_ac_var+set}\" = set"; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223else
18224 cat >conftest.$ac_ext <<_ACEOF
18225#line $LINENO "configure"
18226/* confdefs.h. */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
18230/* end confdefs.h. */
a0b9e27f 18231/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18232 which can conflict with char $ac_func (); below.
18233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234 <limits.h> exists even on freestanding compilers. */
18235#ifdef __STDC__
18236# include <limits.h>
18237#else
18238# include <assert.h>
18239#endif
21d1c967 18240/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18241#ifdef __cplusplus
18242extern "C"
18243{
18244#endif
21d1c967 18245/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18246 builtin and then its argument prototype would still apply. */
18247char $ac_func ();
21d1c967
GD
18248/* The GNU C library defines this for functions which it implements
18249 to always fail with ENOSYS. Some functions are actually named
18250 something starting with __ and the normal name is an alias. */
18251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18252choke me
18253#else
e6cc62c6
VS
18254char (*f) () = $ac_func;
18255#endif
18256#ifdef __cplusplus
18257}
21d1c967 18258#endif
90dd450c 18259
e6cc62c6
VS
18260int
18261main ()
18262{
18263return f != $ac_func;
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext conftest$ac_exeext
18269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18270 (eval $ac_link) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 eval "$as_ac_var=yes"
18281else
18282 echo "$as_me: failed program was:" >&5
18283sed 's/^/| /' conftest.$ac_ext >&5
18284
18285eval "$as_ac_var=no"
18286fi
18287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18288fi
18289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18291if test `eval echo '${'$as_ac_var'}'` = yes; then
18292 cat >>confdefs.h <<_ACEOF
18293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294_ACEOF
5c6fa7d2 18295
698dcdb6 18296fi
21d1c967
GD
18297done
18298
ab9b9eab
VZ
18299fi
18300
8284b0c5 18301
e6cc62c6 18302
21d1c967
GD
18303 if test "x$ac_cv_func_regcomp" != "xyes"; then
18304 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18305 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18306echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18307 { (exit 1); exit 1; }; }
21d1c967 18308 else
e6cc62c6
VS
18309 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18310echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18311 wxUSE_REGEX=builtin
18312 fi
18313 else
18314 wxUSE_REGEX=sys
18315 fi
ab9b9eab 18316 fi
90dd450c 18317
21d1c967
GD
18318 if test "$wxUSE_REGEX" = "builtin" ; then
18319 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18320 fi
21d1c967 18321fi
90dd450c 18322
8284b0c5 18323
21d1c967
GD
18324ZLIB_INCLUDE=
18325ZLIB_LINK=
18326if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18327 cat >>confdefs.h <<\_ACEOF
21d1c967 18328#define wxUSE_ZLIB 1
e6cc62c6 18329_ACEOF
21d1c967 18330
8284b0c5 18331
21d1c967 18332 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18333 if test "$USE_DARWIN" = 1; then
18334 system_zlib_h_ok="yes"
18335 else
e6cc62c6
VS
18336 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18337echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18338if test "${ac_cv_header_zlib_h+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18340else
18341 if test "$cross_compiling" = yes; then
89e6bf6d 18342 unset ac_cv_header_zlib_h
e6cc62c6 18343
d643b80e 18344else
e6cc62c6
VS
18345 cat >conftest.$ac_ext <<_ACEOF
18346#line $LINENO "configure"
18347/* confdefs.h. */
18348_ACEOF
18349cat confdefs.h >>conftest.$ac_ext
18350cat >>conftest.$ac_ext <<_ACEOF
18351/* end confdefs.h. */
18352
ef33c576 18353 #include <zlib.h>
d775acfa 18354 #include <stdio.h>
d643b80e 18355
d775acfa
VZ
18356 int main()
18357 {
18358 FILE *f=fopen("conftestval", "w");
18359 if (!f) exit(1);
18360 fprintf(f, "%s",
18361 ZLIB_VERSION[0] == '1' &&
18362 (ZLIB_VERSION[2] > '1' ||
18363 (ZLIB_VERSION[2] == '1' &&
18364 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18365 exit(0);
18366 }
e6cc62c6
VS
18367
18368_ACEOF
18369rm -f conftest$ac_exeext
18370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18371 (eval $ac_link) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
d643b80e
VZ
18380 ac_cv_header_zlib_h=`cat conftestval`
18381else
e6cc62c6
VS
18382 echo "$as_me: program exited with status $ac_status" >&5
18383echo "$as_me: failed program was:" >&5
18384sed 's/^/| /' conftest.$ac_ext >&5
18385
18386( exit $ac_status )
18387ac_cv_header_zlib_h=no
d643b80e 18388fi
e6cc62c6 18389rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18390fi
18391
d643b80e 18392fi
e6cc62c6
VS
18393echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18394echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18395 if test "${ac_cv_header_zlib_h+set}" = set; then
18396 echo "$as_me:$LINENO: checking for zlib.h" >&5
18397echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18398if test "${ac_cv_header_zlib_h+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18400fi
18401echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18402echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18403else
e6cc62c6
VS
18404 # Is the header compilable?
18405echo "$as_me:$LINENO: checking zlib.h usability" >&5
18406echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18407cat >conftest.$ac_ext <<_ACEOF
18408#line $LINENO "configure"
18409/* confdefs.h. */
18410_ACEOF
18411cat confdefs.h >>conftest.$ac_ext
18412cat >>conftest.$ac_ext <<_ACEOF
18413/* end confdefs.h. */
18414$ac_includes_default
89e6bf6d 18415#include <zlib.h>
e6cc62c6
VS
18416_ACEOF
18417rm -f conftest.$ac_objext
18418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419 (eval $ac_compile) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -s conftest.$ac_objext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_header_compiler=yes
18430else
18431 echo "$as_me: failed program was:" >&5
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
18434ac_header_compiler=no
18435fi
18436rm -f conftest.$ac_objext conftest.$ac_ext
18437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18438echo "${ECHO_T}$ac_header_compiler" >&6
18439
18440# Is the header present?
18441echo "$as_me:$LINENO: checking zlib.h presence" >&5
18442echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18443cat >conftest.$ac_ext <<_ACEOF
18444#line $LINENO "configure"
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450#include <zlib.h>
18451_ACEOF
18452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } >/dev/null; then
18460 if test -s conftest.err; then
18461 ac_cpp_err=$ac_c_preproc_warn_flag
18462 else
18463 ac_cpp_err=
18464 fi
18465else
18466 ac_cpp_err=yes
18467fi
18468if test -z "$ac_cpp_err"; then
18469 ac_header_preproc=yes
18470else
18471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 ac_header_preproc=no
18475fi
18476rm -f conftest.err conftest.$ac_ext
18477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18478echo "${ECHO_T}$ac_header_preproc" >&6
18479
18480# So? What about this header?
18481case $ac_header_compiler:$ac_header_preproc in
18482 yes:no )
18483 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18484echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18485 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18486echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18487 (
18488 cat <<\_ASBOX
18489## ------------------------------------ ##
18490## Report this to bug-autoconf@gnu.org. ##
18491## ------------------------------------ ##
18492_ASBOX
18493 ) |
18494 sed "s/^/$as_me: WARNING: /" >&2
18495 ;;
18496 no:yes )
18497 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18498echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18499 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18500echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18501 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18502echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18503 (
18504 cat <<\_ASBOX
18505## ------------------------------------ ##
18506## Report this to bug-autoconf@gnu.org. ##
18507## ------------------------------------ ##
18508_ASBOX
18509 ) |
18510 sed "s/^/$as_me: WARNING: /" >&2
18511 ;;
18512esac
18513echo "$as_me:$LINENO: checking for zlib.h" >&5
18514echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18515if test "${ac_cv_header_zlib_h+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18517else
e6cc62c6
VS
18518 ac_cv_header_zlib_h=$ac_header_preproc
18519fi
18520echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18521echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18522
89e6bf6d
VZ
18523fi
18524
d643b80e 18525
e6cc62c6 18526
d775acfa
VZ
18527 system_zlib_h_ok=$ac_cv_header_zlib_h
18528 fi
18529
18530 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18531 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18532echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18533if test "${ac_cv_lib_z_deflate+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18535else
e6cc62c6 18536 ac_check_lib_save_LIBS=$LIBS
21d1c967 18537LIBS="-lz $LIBS"
e6cc62c6
VS
18538cat >conftest.$ac_ext <<_ACEOF
18539#line $LINENO "configure"
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
18544/* end confdefs.h. */
18545
21d1c967 18546/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18547#ifdef __cplusplus
18548extern "C"
18549#endif
21d1c967 18550/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18551 builtin and then its argument prototype would still apply. */
18552char deflate ();
18553int
18554main ()
18555{
18556deflate ();
18557 ;
18558 return 0;
18559}
18560_ACEOF
18561rm -f conftest.$ac_objext conftest$ac_exeext
18562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18563 (eval $ac_link) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -s conftest$ac_exeext'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_cv_lib_z_deflate=yes
18574else
18575 echo "$as_me: failed program was:" >&5
18576sed 's/^/| /' conftest.$ac_ext >&5
18577
18578ac_cv_lib_z_deflate=no
18579fi
18580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18581LIBS=$ac_check_lib_save_LIBS
18582fi
18583echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18584echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18585if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18586 ZLIB_LINK=" -lz"
a0b9e27f 18587fi
698dcdb6 18588
d643b80e 18589 fi
247f5006 18590
21d1c967
GD
18591 if test "x$ZLIB_LINK" = "x" ; then
18592 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18593 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18594echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18595 { (exit 1); exit 1; }; }
21d1c967 18596 else
e6cc62c6
VS
18597 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18598echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18599 wxUSE_ZLIB=builtin
18600 fi
18601 else
18602 wxUSE_ZLIB=sys
18603 fi
18604 fi
18605
18606 if test "$wxUSE_ZLIB" = "builtin" ; then
18607 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18608 fi
ab9b9eab
VZ
18609fi
18610
8284b0c5 18611
21d1c967
GD
18612PNG_INCLUDE=
18613PNG_LINK=
18614if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18615 cat >>confdefs.h <<\_ACEOF
21d1c967 18616#define wxUSE_LIBPNG 1
e6cc62c6 18617_ACEOF
90dd450c 18618
8284b0c5 18619
21d1c967 18620 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18621 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18622echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18623 wxUSE_LIBPNG=sys
18624 fi
90dd450c 18625
21d1c967 18626 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18627 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18628echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18629 wxUSE_LIBPNG=builtin
18630 fi
18631
18632 if test "$wxUSE_MGL" != 1 ; then
18633 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18634 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18635echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18636if test "${ac_cv_header_png_h+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18638else
18639 if test "$cross_compiling" = yes; then
89e6bf6d 18640 unset ac_cv_header_png_h
e6cc62c6 18641
5d3f766d 18642else
e6cc62c6
VS
18643 cat >conftest.$ac_ext <<_ACEOF
18644#line $LINENO "configure"
18645/* confdefs.h. */
18646_ACEOF
18647cat confdefs.h >>conftest.$ac_ext
18648cat >>conftest.$ac_ext <<_ACEOF
18649/* end confdefs.h. */
18650
ef33c576 18651 #include <png.h>
5d3f766d
VZ
18652 #include <stdio.h>
18653
18654 int main()
18655 {
18656 FILE *f=fopen("conftestval", "w");
18657 if (!f) exit(1);
18658 fprintf(f, "%s",
18659 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18660 exit(0);
18661 }
e6cc62c6
VS
18662
18663_ACEOF
18664rm -f conftest$ac_exeext
18665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18666 (eval $ac_link) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
5d3f766d
VZ
18675 ac_cv_header_png_h=`cat conftestval`
18676else
e6cc62c6
VS
18677 echo "$as_me: program exited with status $ac_status" >&5
18678echo "$as_me: failed program was:" >&5
18679sed 's/^/| /' conftest.$ac_ext >&5
18680
18681( exit $ac_status )
18682ac_cv_header_png_h=no
5d3f766d 18683fi
e6cc62c6 18684rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18685fi
18686
5d3f766d 18687fi
e6cc62c6
VS
18688echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18689echo "${ECHO_T}$ac_cv_header_png_h" >&6
18690 if test "${ac_cv_header_png_h+set}" = set; then
18691 echo "$as_me:$LINENO: checking for png.h" >&5
18692echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18693if test "${ac_cv_header_png_h+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695fi
18696echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18697echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18698else
e6cc62c6
VS
18699 # Is the header compilable?
18700echo "$as_me:$LINENO: checking png.h usability" >&5
18701echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18702cat >conftest.$ac_ext <<_ACEOF
18703#line $LINENO "configure"
18704/* confdefs.h. */
18705_ACEOF
18706cat confdefs.h >>conftest.$ac_ext
18707cat >>conftest.$ac_ext <<_ACEOF
18708/* end confdefs.h. */
18709$ac_includes_default
89e6bf6d 18710#include <png.h>
e6cc62c6
VS
18711_ACEOF
18712rm -f conftest.$ac_objext
18713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714 (eval $ac_compile) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -s conftest.$ac_objext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_header_compiler=yes
18725else
18726 echo "$as_me: failed program was:" >&5
18727sed 's/^/| /' conftest.$ac_ext >&5
18728
18729ac_header_compiler=no
18730fi
18731rm -f conftest.$ac_objext conftest.$ac_ext
18732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18733echo "${ECHO_T}$ac_header_compiler" >&6
18734
18735# Is the header present?
18736echo "$as_me:$LINENO: checking png.h presence" >&5
18737echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18738cat >conftest.$ac_ext <<_ACEOF
18739#line $LINENO "configure"
18740/* confdefs.h. */
18741_ACEOF
18742cat confdefs.h >>conftest.$ac_ext
18743cat >>conftest.$ac_ext <<_ACEOF
18744/* end confdefs.h. */
18745#include <png.h>
18746_ACEOF
18747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } >/dev/null; then
18755 if test -s conftest.err; then
18756 ac_cpp_err=$ac_c_preproc_warn_flag
18757 else
18758 ac_cpp_err=
18759 fi
18760else
18761 ac_cpp_err=yes
18762fi
18763if test -z "$ac_cpp_err"; then
18764 ac_header_preproc=yes
18765else
18766 echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
18769 ac_header_preproc=no
18770fi
18771rm -f conftest.err conftest.$ac_ext
18772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18773echo "${ECHO_T}$ac_header_preproc" >&6
18774
18775# So? What about this header?
18776case $ac_header_compiler:$ac_header_preproc in
18777 yes:no )
18778 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18779echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18780 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18781echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18782 (
18783 cat <<\_ASBOX
18784## ------------------------------------ ##
18785## Report this to bug-autoconf@gnu.org. ##
18786## ------------------------------------ ##
18787_ASBOX
18788 ) |
18789 sed "s/^/$as_me: WARNING: /" >&2
18790 ;;
18791 no:yes )
18792 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18793echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18794 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18795echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18797echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18798 (
18799 cat <<\_ASBOX
18800## ------------------------------------ ##
18801## Report this to bug-autoconf@gnu.org. ##
18802## ------------------------------------ ##
18803_ASBOX
18804 ) |
18805 sed "s/^/$as_me: WARNING: /" >&2
18806 ;;
18807esac
18808echo "$as_me:$LINENO: checking for png.h" >&5
18809echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18810if test "${ac_cv_header_png_h+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18812else
e6cc62c6
VS
18813 ac_cv_header_png_h=$ac_header_preproc
18814fi
18815echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18816echo "${ECHO_T}$ac_cv_header_png_h" >&6
18817
89e6bf6d
VZ
18818fi
18819
5d3f766d 18820
e6cc62c6 18821
5d3f766d 18822 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18823 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18824echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18825if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18827else
e6cc62c6 18828 ac_check_lib_save_LIBS=$LIBS
21d1c967 18829LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18830cat >conftest.$ac_ext <<_ACEOF
18831#line $LINENO "configure"
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
18837
21d1c967 18838/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18839#ifdef __cplusplus
18840extern "C"
18841#endif
21d1c967 18842/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18843 builtin and then its argument prototype would still apply. */
18844char png_check_sig ();
18845int
18846main ()
18847{
18848png_check_sig ();
18849 ;
18850 return 0;
18851}
18852_ACEOF
18853rm -f conftest.$ac_objext conftest$ac_exeext
18854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855 (eval $ac_link) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } &&
18859 { ac_try='test -s conftest$ac_exeext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_cv_lib_png_png_check_sig=yes
18866else
18867 echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
18869
18870ac_cv_lib_png_png_check_sig=no
18871fi
18872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18873LIBS=$ac_check_lib_save_LIBS
18874fi
18875echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18876echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18877if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18878 PNG_LINK=" -lpng"
a0b9e27f 18879fi
90dd450c 18880
5d3f766d 18881 fi
247f5006 18882
21d1c967
GD
18883 if test "x$PNG_LINK" = "x" ; then
18884 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18885 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18886echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18887 { (exit 1); exit 1; }; }
21d1c967 18888 else
e6cc62c6
VS
18889 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18890echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18891 wxUSE_LIBPNG=builtin
18892 fi
18893 else
2b5f62a0 18894 wxUSE_LIBPNG=sys
21d1c967
GD
18895 fi
18896 fi
18897 fi
90dd450c 18898
21d1c967
GD
18899 if test "$wxUSE_LIBPNG" = "builtin" ; then
18900 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18901 fi
90dd450c 18902
21d1c967 18903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18904fi
18905
8284b0c5 18906
21d1c967
GD
18907JPEG_INCLUDE=
18908JPEG_LINK=
18909if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18910 cat >>confdefs.h <<\_ACEOF
21d1c967 18911#define wxUSE_LIBJPEG 1
e6cc62c6 18912_ACEOF
90dd450c 18913
8284b0c5 18914
21d1c967 18915 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18916 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18917echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18918 wxUSE_LIBJPEG=sys
18919 fi
90dd450c 18920
21d1c967
GD
18921 if test "$wxUSE_MGL" != 1 ; then
18922 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18923 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18924echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18925 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928 cat >conftest.$ac_ext <<_ACEOF
18929#line $LINENO "configure"
18930/* confdefs.h. */
18931_ACEOF
18932cat confdefs.h >>conftest.$ac_ext
18933cat >>conftest.$ac_ext <<_ACEOF
18934/* end confdefs.h. */
90dd450c 18935
21d1c967
GD
18936 #undef HAVE_STDLIB_H
18937 #include <stdio.h>
18938 #include <jpeglib.h>
90dd450c 18939
e6cc62c6
VS
18940int
18941main ()
18942{
18943
18944
18945 ;
18946 return 0;
18947}
18948_ACEOF
18949rm -f conftest.$ac_objext
18950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -s conftest.$ac_objext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
21d1c967 18961 ac_cv_header_jpeglib_h=yes
90dd450c 18962else
e6cc62c6
VS
18963 echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966ac_cv_header_jpeglib_h=no
18967
90dd450c 18968fi
e6cc62c6
VS
18969rm -f conftest.$ac_objext conftest.$ac_ext
18970
90dd450c
VZ
18971fi
18972
e6cc62c6
VS
18973 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18974echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18975
21d1c967 18976 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18977 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18978echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18979if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18981else
e6cc62c6 18982 ac_check_lib_save_LIBS=$LIBS
21d1c967 18983LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18984cat >conftest.$ac_ext <<_ACEOF
18985#line $LINENO "configure"
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991
21d1c967 18992/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18993#ifdef __cplusplus
18994extern "C"
18995#endif
21d1c967 18996/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18997 builtin and then its argument prototype would still apply. */
18998char jpeg_read_header ();
18999int
19000main ()
19001{
19002jpeg_read_header ();
19003 ;
19004 return 0;
19005}
19006_ACEOF
19007rm -f conftest.$ac_objext conftest$ac_exeext
19008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19009 (eval $ac_link) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -s conftest$ac_exeext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_cv_lib_jpeg_jpeg_read_header=yes
19020else
19021 echo "$as_me: failed program was:" >&5
19022sed 's/^/| /' conftest.$ac_ext >&5
19023
19024ac_cv_lib_jpeg_jpeg_read_header=no
19025fi
19026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19027LIBS=$ac_check_lib_save_LIBS
19028fi
19029echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19030echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19031if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19032 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19033fi
19034
21d1c967 19035 fi
90dd450c 19036
21d1c967
GD
19037 if test "x$JPEG_LINK" = "x" ; then
19038 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19039 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19040echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19041 { (exit 1); exit 1; }; }
21d1c967 19042 else
e6cc62c6
VS
19043 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19044echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19045 wxUSE_LIBJPEG=builtin
19046 fi
19047 else
19048 wxUSE_LIBJPEG=sys
19049 fi
19050 fi
19051 fi
90dd450c 19052
21d1c967
GD
19053 if test "$wxUSE_LIBJPEG" = "builtin" ; then
19054 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19055 fi
19056fi
90dd450c 19057
8284b0c5 19058
21d1c967
GD
19059TIFF_INCLUDE=
19060TIFF_LINK=
2b5f62a0 19061TIFF_PREREQ_LINKS=-lm
21d1c967 19062if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19063 cat >>confdefs.h <<\_ACEOF
21d1c967 19064#define wxUSE_LIBTIFF 1
e6cc62c6 19065_ACEOF
21d1c967 19066
8284b0c5 19067
21d1c967 19068 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19069 if test "$wxUSE_LIBJPEG" = "sys"; then
19070 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19071 fi
19072 if test "$wxUSE_ZLIB" = "sys"; then
19073 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19074 fi
e6cc62c6
VS
19075 if test "${ac_cv_header_tiffio_h+set}" = set; then
19076 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19077echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19078if test "${ac_cv_header_tiffio_h+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080fi
19081echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19082echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19083else
19084 # Is the header compilable?
19085echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19086echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19087cat >conftest.$ac_ext <<_ACEOF
19088#line $LINENO "configure"
19089/* confdefs.h. */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
19093/* end confdefs.h. */
19094$ac_includes_default
247f5006 19095#include <tiffio.h>
e6cc62c6
VS
19096_ACEOF
19097rm -f conftest.$ac_objext
19098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_header_compiler=yes
19110else
19111 echo "$as_me: failed program was:" >&5
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
19114ac_header_compiler=no
19115fi
19116rm -f conftest.$ac_objext conftest.$ac_ext
19117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19118echo "${ECHO_T}$ac_header_compiler" >&6
19119
19120# Is the header present?
19121echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19122echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19123cat >conftest.$ac_ext <<_ACEOF
19124#line $LINENO "configure"
19125/* confdefs.h. */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h. */
19130#include <tiffio.h>
19131_ACEOF
19132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } >/dev/null; then
19140 if test -s conftest.err; then
19141 ac_cpp_err=$ac_c_preproc_warn_flag
19142 else
19143 ac_cpp_err=
19144 fi
19145else
19146 ac_cpp_err=yes
19147fi
19148if test -z "$ac_cpp_err"; then
19149 ac_header_preproc=yes
19150else
19151 echo "$as_me: failed program was:" >&5
19152sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 ac_header_preproc=no
19155fi
19156rm -f conftest.err conftest.$ac_ext
19157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19158echo "${ECHO_T}$ac_header_preproc" >&6
19159
19160# So? What about this header?
19161case $ac_header_compiler:$ac_header_preproc in
19162 yes:no )
19163 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19164echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19166echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19167 (
19168 cat <<\_ASBOX
19169## ------------------------------------ ##
19170## Report this to bug-autoconf@gnu.org. ##
19171## ------------------------------------ ##
19172_ASBOX
19173 ) |
19174 sed "s/^/$as_me: WARNING: /" >&2
19175 ;;
19176 no:yes )
19177 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19178echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19180echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19181 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19182echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19183 (
19184 cat <<\_ASBOX
19185## ------------------------------------ ##
19186## Report this to bug-autoconf@gnu.org. ##
19187## ------------------------------------ ##
19188_ASBOX
19189 ) |
19190 sed "s/^/$as_me: WARNING: /" >&2
19191 ;;
19192esac
19193echo "$as_me:$LINENO: checking for tiffio.h" >&5
19194echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19195if test "${ac_cv_header_tiffio_h+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197else
19198 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19199fi
e6cc62c6
VS
19200echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19201echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19202
21d1c967 19203fi
e6cc62c6
VS
19204if test $ac_cv_header_tiffio_h = yes; then
19205 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19206echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19207if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19209else
e6cc62c6 19210 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19211LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19212cat >conftest.$ac_ext <<_ACEOF
19213#line $LINENO "configure"
19214/* confdefs.h. */
19215_ACEOF
19216cat confdefs.h >>conftest.$ac_ext
19217cat >>conftest.$ac_ext <<_ACEOF
19218/* end confdefs.h. */
19219
ab9b9eab 19220/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19221#ifdef __cplusplus
19222extern "C"
19223#endif
ab9b9eab 19224/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19225 builtin and then its argument prototype would still apply. */
19226char TIFFError ();
19227int
19228main ()
19229{
19230TIFFError ();
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext conftest$ac_exeext
19236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19237 (eval $ac_link) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -s conftest$ac_exeext'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 ac_cv_lib_tiff_TIFFError=yes
19248else
19249 echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252ac_cv_lib_tiff_TIFFError=no
19253fi
19254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19255LIBS=$ac_check_lib_save_LIBS
19256fi
19257echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19258echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19259if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19260 TIFF_LINK=" -ltiff"
a0b9e27f 19261fi
cd6d6d5b 19262
e6cc62c6 19263
a0b9e27f 19264fi
8284b0c5 19265
247f5006 19266
e6cc62c6 19267
21d1c967
GD
19268 if test "x$TIFF_LINK" = "x" ; then
19269 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19270 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19271echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19272 { (exit 1); exit 1; }; }
90dd450c 19273 else
e6cc62c6
VS
19274 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19275echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19276 wxUSE_LIBTIFF=builtin
d8356fa3 19277 fi
d8356fa3 19278 else
21d1c967 19279 wxUSE_LIBTIFF=sys
d8356fa3 19280 fi
21d1c967 19281 fi
d8356fa3 19282
21d1c967
GD
19283 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19284 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19285 fi
21d1c967 19286fi
10f2d63a 19287
8284b0c5 19288
672abd7a
VS
19289if test "$wxUSE_EXPAT" != "no"; then
19290 wxUSE_XML=1
19291 cat >>confdefs.h <<\_ACEOF
19292#define wxUSE_EXPAT 1
19293_ACEOF
19294
19295 cat >>confdefs.h <<\_ACEOF
19296#define wxUSE_XML 1
19297_ACEOF
19298
19299
19300 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19301 if test "${ac_cv_header_expat_h+set}" = set; then
19302 echo "$as_me:$LINENO: checking for expat.h" >&5
19303echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19304if test "${ac_cv_header_expat_h+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19306fi
19307echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19308echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19309else
19310 # Is the header compilable?
19311echo "$as_me:$LINENO: checking expat.h usability" >&5
19312echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19313cat >conftest.$ac_ext <<_ACEOF
19314#line $LINENO "configure"
19315/* confdefs.h. */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h. */
19320$ac_includes_default
19321#include <expat.h>
19322_ACEOF
19323rm -f conftest.$ac_objext
19324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -s conftest.$ac_objext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_header_compiler=yes
19336else
19337 echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340ac_header_compiler=no
19341fi
19342rm -f conftest.$ac_objext conftest.$ac_ext
19343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19344echo "${ECHO_T}$ac_header_compiler" >&6
19345
19346# Is the header present?
19347echo "$as_me:$LINENO: checking expat.h presence" >&5
19348echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19349cat >conftest.$ac_ext <<_ACEOF
19350#line $LINENO "configure"
19351/* confdefs.h. */
19352_ACEOF
19353cat confdefs.h >>conftest.$ac_ext
19354cat >>conftest.$ac_ext <<_ACEOF
19355/* end confdefs.h. */
19356#include <expat.h>
19357_ACEOF
19358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } >/dev/null; then
19366 if test -s conftest.err; then
19367 ac_cpp_err=$ac_c_preproc_warn_flag
19368 else
19369 ac_cpp_err=
19370 fi
19371else
19372 ac_cpp_err=yes
19373fi
19374if test -z "$ac_cpp_err"; then
19375 ac_header_preproc=yes
19376else
19377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 ac_header_preproc=no
19381fi
19382rm -f conftest.err conftest.$ac_ext
19383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19384echo "${ECHO_T}$ac_header_preproc" >&6
19385
19386# So? What about this header?
19387case $ac_header_compiler:$ac_header_preproc in
19388 yes:no )
19389 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19390echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19391 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19392echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19393 (
19394 cat <<\_ASBOX
19395## ------------------------------------ ##
19396## Report this to bug-autoconf@gnu.org. ##
19397## ------------------------------------ ##
19398_ASBOX
19399 ) |
19400 sed "s/^/$as_me: WARNING: /" >&2
19401 ;;
19402 no:yes )
19403 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19404echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19405 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19406echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19408echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19409 (
19410 cat <<\_ASBOX
19411## ------------------------------------ ##
19412## Report this to bug-autoconf@gnu.org. ##
19413## ------------------------------------ ##
19414_ASBOX
19415 ) |
19416 sed "s/^/$as_me: WARNING: /" >&2
19417 ;;
19418esac
19419echo "$as_me:$LINENO: checking for expat.h" >&5
19420echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19421if test "${ac_cv_header_expat_h+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423else
19424 ac_cv_header_expat_h=$ac_header_preproc
19425fi
19426echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19427echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19428
19429fi
5f0b6dff
VS
19430if test $ac_cv_header_expat_h = yes; then
19431 found_expat_h=1
19432fi
19433
19434
19435 if test "x$found_expat_h" = "x1"; then
19436 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19437echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19438if test "${wx_cv_expat_is_not_broken+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19440else
19441
19442
672abd7a 19443
5f0b6dff
VS
19444 ac_ext=cc
19445ac_cpp='$CXXCPP $CPPFLAGS'
19446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19449
19450 cat >conftest.$ac_ext <<_ACEOF
19451#line $LINENO "configure"
19452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
19456/* end confdefs.h. */
19457#include <expat.h>
19458int
19459main ()
19460{
672abd7a 19461
5f0b6dff
VS
19462 ;
19463 return 0;
19464}
19465_ACEOF
19466rm -f conftest.$ac_objext
19467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19468 (eval $ac_compile) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 wx_cv_expat_is_not_broken=yes
19479else
19480 echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483wx_cv_expat_is_not_broken=no
19484
19485fi
19486rm -f conftest.$ac_objext conftest.$ac_ext
19487 ac_ext=c
19488ac_cpp='$CPP $CPPFLAGS'
19489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491ac_compiler_gnu=$ac_cv_c_compiler_gnu
19492
19493
19494
19495fi
19496echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19497echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19498 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19499 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19500echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19501if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503else
19504 ac_check_lib_save_LIBS=$LIBS
19505LIBS="-lexpat $LIBS"
19506cat >conftest.$ac_ext <<_ACEOF
19507#line $LINENO "configure"
19508/* confdefs.h. */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h. */
19513
19514/* Override any gcc2 internal prototype to avoid an error. */
19515#ifdef __cplusplus
19516extern "C"
19517#endif
19518/* We use char because int might match the return type of a gcc2
19519 builtin and then its argument prototype would still apply. */
19520char XML_ParserCreate ();
19521int
19522main ()
19523{
19524XML_ParserCreate ();
19525 ;
19526 return 0;
19527}
19528_ACEOF
19529rm -f conftest.$ac_objext conftest$ac_exeext
19530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19531 (eval $ac_link) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -s conftest$ac_exeext'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 ac_cv_lib_expat_XML_ParserCreate=yes
19542else
19543 echo "$as_me: failed program was:" >&5
19544sed 's/^/| /' conftest.$ac_ext >&5
19545
19546ac_cv_lib_expat_XML_ParserCreate=no
19547fi
19548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19549LIBS=$ac_check_lib_save_LIBS
19550fi
19551echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19552echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19553if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19554 EXPAT_LINK=" -lexpat"
19555fi
19556
5f0b6dff 19557 fi
672abd7a
VS
19558 fi
19559 if test "x$EXPAT_LINK" = "x" ; then
19560 if test "$wxUSE_EXPAT" = "sys" ; then
19561 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19562echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19563 { (exit 1); exit 1; }; }
19564 else
19565 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19566echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19567 wxUSE_EXPAT=builtin
19568 fi
19569 else
19570 wxUSE_EXPAT=sys
19571 fi
19572 fi
19573 if test "$wxUSE_EXPAT" = "builtin" ; then
19574
19575
19576subdirs="$subdirs src/expat"
19577
19578 fi
19579fi
19580
19581
19582
21d1c967 19583AFMINSTALL=
2b5f62a0 19584WIN32INSTALL=
90dd450c 19585
21d1c967
GD
19586TOOLKIT=
19587TOOLKIT_INCLUDE=
19588WIDGET_SET=
19589
19590if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19591
19592for ac_header in w32api.h
21d1c967 19593do
e6cc62c6
VS
19594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19595if eval "test \"\${$as_ac_Header+set}\" = set"; then
19596 echo "$as_me:$LINENO: checking for $ac_header" >&5
19597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19598if eval "test \"\${$as_ac_Header+set}\" = set"; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600fi
19601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19603else
19604 # Is the header compilable?
19605echo "$as_me:$LINENO: checking $ac_header usability" >&5
19606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19607cat >conftest.$ac_ext <<_ACEOF
19608#line $LINENO "configure"
19609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
19614$ac_includes_default
19615#include <$ac_header>
19616_ACEOF
19617rm -f conftest.$ac_objext
19618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19619 (eval $ac_compile) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -s conftest.$ac_objext'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
19629 ac_header_compiler=yes
19630else
19631 echo "$as_me: failed program was:" >&5
19632sed 's/^/| /' conftest.$ac_ext >&5
19633
19634ac_header_compiler=no
19635fi
19636rm -f conftest.$ac_objext conftest.$ac_ext
19637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19638echo "${ECHO_T}$ac_header_compiler" >&6
19639
19640# Is the header present?
19641echo "$as_me:$LINENO: checking $ac_header presence" >&5
19642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19643cat >conftest.$ac_ext <<_ACEOF
19644#line $LINENO "configure"
19645/* confdefs.h. */
19646_ACEOF
19647cat confdefs.h >>conftest.$ac_ext
19648cat >>conftest.$ac_ext <<_ACEOF
19649/* end confdefs.h. */
19650#include <$ac_header>
19651_ACEOF
19652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } >/dev/null; then
19660 if test -s conftest.err; then
19661 ac_cpp_err=$ac_c_preproc_warn_flag
19662 else
19663 ac_cpp_err=
19664 fi
19665else
19666 ac_cpp_err=yes
19667fi
19668if test -z "$ac_cpp_err"; then
19669 ac_header_preproc=yes
19670else
19671 echo "$as_me: failed program was:" >&5
19672sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 ac_header_preproc=no
19675fi
19676rm -f conftest.err conftest.$ac_ext
19677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19678echo "${ECHO_T}$ac_header_preproc" >&6
19679
19680# So? What about this header?
19681case $ac_header_compiler:$ac_header_preproc in
19682 yes:no )
19683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19687 (
19688 cat <<\_ASBOX
19689## ------------------------------------ ##
19690## Report this to bug-autoconf@gnu.org. ##
19691## ------------------------------------ ##
19692_ASBOX
19693 ) |
19694 sed "s/^/$as_me: WARNING: /" >&2
19695 ;;
19696 no:yes )
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19703 (
19704 cat <<\_ASBOX
19705## ------------------------------------ ##
19706## Report this to bug-autoconf@gnu.org. ##
19707## ------------------------------------ ##
19708_ASBOX
19709 ) |
19710 sed "s/^/$as_me: WARNING: /" >&2
19711 ;;
19712esac
19713echo "$as_me:$LINENO: checking for $ac_header" >&5
19714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19715if eval "test \"\${$as_ac_Header+set}\" = set"; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717else
19718 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19719fi
e6cc62c6
VS
19720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19722
21d1c967 19723fi
e6cc62c6
VS
19724if test `eval echo '${'$as_ac_Header'}'` = yes; then
19725 cat >>confdefs.h <<_ACEOF
19726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19727_ACEOF
19728
21d1c967 19729fi
e6cc62c6 19730
21d1c967 19731done
f79bd02d 19732
e6cc62c6
VS
19733 if test "${ac_cv_header_windows_h+set}" = set; then
19734 echo "$as_me:$LINENO: checking for windows.h" >&5
19735echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19736if test "${ac_cv_header_windows_h+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738fi
19739echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19740echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19741else
19742 # Is the header compilable?
19743echo "$as_me:$LINENO: checking windows.h usability" >&5
19744echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19745cat >conftest.$ac_ext <<_ACEOF
19746#line $LINENO "configure"
19747/* confdefs.h. */
19748_ACEOF
19749cat confdefs.h >>conftest.$ac_ext
19750cat >>conftest.$ac_ext <<_ACEOF
19751/* end confdefs.h. */
19752$ac_includes_default
247f5006 19753#include <windows.h>
e6cc62c6
VS
19754_ACEOF
19755rm -f conftest.$ac_objext
19756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19757 (eval $ac_compile) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } &&
19761 { ac_try='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 ac_header_compiler=yes
19768else
19769 echo "$as_me: failed program was:" >&5
19770sed 's/^/| /' conftest.$ac_ext >&5
19771
19772ac_header_compiler=no
19773fi
19774rm -f conftest.$ac_objext conftest.$ac_ext
19775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19776echo "${ECHO_T}$ac_header_compiler" >&6
19777
19778# Is the header present?
19779echo "$as_me:$LINENO: checking windows.h presence" >&5
19780echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19781cat >conftest.$ac_ext <<_ACEOF
19782#line $LINENO "configure"
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788#include <windows.h>
19789_ACEOF
19790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } >/dev/null; then
19798 if test -s conftest.err; then
19799 ac_cpp_err=$ac_c_preproc_warn_flag
19800 else
19801 ac_cpp_err=
19802 fi
19803else
19804 ac_cpp_err=yes
19805fi
19806if test -z "$ac_cpp_err"; then
19807 ac_header_preproc=yes
19808else
19809 echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812 ac_header_preproc=no
19813fi
19814rm -f conftest.err conftest.$ac_ext
19815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19816echo "${ECHO_T}$ac_header_preproc" >&6
19817
19818# So? What about this header?
19819case $ac_header_compiler:$ac_header_preproc in
19820 yes:no )
19821 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19822echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19824echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19825 (
19826 cat <<\_ASBOX
19827## ------------------------------------ ##
19828## Report this to bug-autoconf@gnu.org. ##
19829## ------------------------------------ ##
19830_ASBOX
19831 ) |
19832 sed "s/^/$as_me: WARNING: /" >&2
19833 ;;
19834 no:yes )
19835 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19836echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19838echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19840echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19841 (
19842 cat <<\_ASBOX
19843## ------------------------------------ ##
19844## Report this to bug-autoconf@gnu.org. ##
19845## ------------------------------------ ##
19846_ASBOX
19847 ) |
19848 sed "s/^/$as_me: WARNING: /" >&2
19849 ;;
19850esac
19851echo "$as_me:$LINENO: checking for windows.h" >&5
19852echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19853if test "${ac_cv_header_windows_h+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855else
19856 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19857fi
e6cc62c6
VS
19858echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19859echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19860
90dd450c 19861fi
e6cc62c6 19862if test $ac_cv_header_windows_h = yes; then
21d1c967 19863 :
90dd450c 19864else
21d1c967 19865
e6cc62c6
VS
19866 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19867echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19868 { (exit 1); exit 1; }; }
19869
5c6fa7d2 19870fi
7b4a847f 19871
5c6fa7d2 19872
e6cc62c6 19873
b3dfbbc9 19874 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19875
7bb2947d
MB
19876 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19877 LIBS="$LIBS -loleacc"
19878 fi
19879
21d1c967
GD
19880 case "${host}" in
19881 *-*-cygwin* )
b3dfbbc9 19882 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19883 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19884 esac
f79bd02d 19885
8647bec6
RG
19886 if test "$wxUSE_ODBC" = "sys" ; then
19887 wxUSE_ODBC = "yes"
21d1c967 19888 fi
8647bec6
RG
19889 if test "$wxUSE_ODBC" = "yes" ; then
19890 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19891 cat >>confdefs.h <<\_ACEOF
8647bec6 19892#define wxUSE_ODBC 1
e6cc62c6 19893_ACEOF
f79bd02d 19894
8647bec6 19895 fi
e6cc62c6 19896
21d1c967
GD
19897 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19898 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19899
19900 WIN32INSTALL=win32install
f79bd02d 19901fi
f79bd02d 19902
21d1c967
GD
19903if test "$wxUSE_GUI" = "yes"; then
19904 USE_GUI=1
f79bd02d 19905
21d1c967 19906 GUI_TK_LIBRARY=
f79bd02d 19907
21d1c967
GD
19908 WXGTK12=
19909 WXGTK127=
19910 WXGTK20=
f79bd02d 19911
21d1c967
GD
19912 if test "$wxUSE_MSW" = 1 ; then
19913 TOOLKIT=MSW
19914 GUIDIST=MSW_DIST
f79bd02d
JS
19915 fi
19916
21d1c967 19917 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19918 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19919echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19920
19921 gtk_version_cached=1
e6cc62c6
VS
19922 if test "${wx_cv_lib_gtk+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19924else
e6cc62c6 19925
21d1c967 19926 gtk_version_cached=0
e6cc62c6
VS
19927 echo "$as_me:$LINENO: result: " >&5
19928echo "${ECHO_T}" >&6
f79bd02d 19929
21d1c967
GD
19930 GTK_MODULES=
19931 if test "$wxUSE_THREADS" = "yes"; then
19932 GTK_MODULES=gthread
19933 fi
f79bd02d 19934
2b5f62a0 19935 wx_cv_lib_gtk=
21d1c967
GD
19936 if test "x$wxUSE_GTK2" = "xyes"; then
19937 # Check whether --enable-gtktest or --disable-gtktest was given.
19938if test "${enable_gtktest+set}" = set; then
19939 enableval="$enable_gtktest"
e6cc62c6 19940
f79bd02d 19941else
21d1c967 19942 enable_gtktest=yes
e6cc62c6 19943fi;
f79bd02d 19944
21d1c967
GD
19945 pkg_config_args=gtk+-2.0
19946 for module in . $GTK_MODULES
19947 do
19948 case "$module" in
e6cc62c6 19949 gthread)
21d1c967
GD
19950 pkg_config_args="$pkg_config_args gthread-2.0"
19951 ;;
19952 esac
19953 done
19954
19955 no_gtk=""
f79bd02d 19956
21d1c967
GD
19957 # Extract the first word of "pkg-config", so it can be a program name with args.
19958set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19959echo "$as_me:$LINENO: checking for $ac_word" >&5
19960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19961if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19963else
e6cc62c6
VS
19964 case $PKG_CONFIG in
19965 [\\/]* | ?:[\\/]*)
21d1c967
GD
19966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19967 ;;
21d1c967 19968 *)
e6cc62c6
VS
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970for as_dir in $PATH
19971do
19972 IFS=$as_save_IFS
19973 test -z "$as_dir" && as_dir=.
19974 for ac_exec_ext in '' $ac_executable_extensions; do
19975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19978 break 2
19979 fi
19980done
19981done
19982
21d1c967
GD
19983 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19984 ;;
19985esac
f79bd02d 19986fi
e6cc62c6
VS
19987PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19988
21d1c967 19989if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19990 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19991echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19992else
e6cc62c6
VS
19993 echo "$as_me:$LINENO: result: no" >&5
19994echo "${ECHO_T}no" >&6
f79bd02d
JS
19995fi
19996
8284b0c5 19997
21d1c967
GD
19998 if test x$PKG_CONFIG != xno ; then
19999 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20000 :
20001 else
20002 echo *** pkg-config too old; version 0.7 or better required.
20003 no_gtk=yes
20004 PKG_CONFIG=no
20005 fi
20006 else
20007 no_gtk=yes
20008 fi
f79bd02d 20009
21d1c967 20010 min_gtk_version=2.0.0
e6cc62c6
VS
20011 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20012echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20013
21d1c967
GD
20014 if test x$PKG_CONFIG != xno ; then
20015 ## don't try to run the test against uninstalled libtool libs
20016 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20017 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20018 enable_gtktest=no
20019 fi
f79bd02d 20020
21d1c967
GD
20021 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20022 :
20023 else
20024 no_gtk=yes
20025 fi
20026 fi
f79bd02d 20027
21d1c967
GD
20028 if test x"$no_gtk" = x ; then
20029 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20030 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20031 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20033 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20035 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20037 if test "x$enable_gtktest" = "xyes" ; then
20038 ac_save_CFLAGS="$CFLAGS"
20039 ac_save_LIBS="$LIBS"
20040 CFLAGS="$CFLAGS $GTK_CFLAGS"
20041 LIBS="$GTK_LIBS $LIBS"
20042 rm -f conf.gtktest
20043 if test "$cross_compiling" = yes; then
20044 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20045else
e6cc62c6
VS
20046 cat >conftest.$ac_ext <<_ACEOF
20047#line $LINENO "configure"
20048/* confdefs.h. */
20049_ACEOF
20050cat confdefs.h >>conftest.$ac_ext
20051cat >>conftest.$ac_ext <<_ACEOF
20052/* end confdefs.h. */
f79bd02d 20053
21d1c967
GD
20054#include <gtk/gtk.h>
20055#include <stdio.h>
20056#include <stdlib.h>
f79bd02d 20057
e6cc62c6 20058int
21d1c967
GD
20059main ()
20060{
20061 int major, minor, micro;
20062 char *tmp_version;
f79bd02d 20063
21d1c967 20064 system ("touch conf.gtktest");
f79bd02d 20065
21d1c967
GD
20066 /* HP/UX 9 (%@#!) writes to sscanf strings */
20067 tmp_version = g_strdup("$min_gtk_version");
20068 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20069 printf("%s, bad version string\n", "$min_gtk_version");
20070 exit(1);
20071 }
f79bd02d 20072
21d1c967
GD
20073 if ((gtk_major_version != $gtk_config_major_version) ||
20074 (gtk_minor_version != $gtk_config_minor_version) ||
20075 (gtk_micro_version != $gtk_config_micro_version))
20076 {
e6cc62c6 20077 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20078 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20079 gtk_major_version, gtk_minor_version, gtk_micro_version);
20080 printf ("*** was found! If pkg-config was correct, then it is best\n");
20081 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20082 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20083 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20084 printf("*** required on your system.\n");
20085 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20086 printf("*** to point to the correct configuration files\n");
e6cc62c6 20087 }
21d1c967
GD
20088 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20089 (gtk_minor_version != GTK_MINOR_VERSION) ||
20090 (gtk_micro_version != GTK_MICRO_VERSION))
20091 {
20092 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20093 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20094 printf("*** library (version %d.%d.%d)\n",
20095 gtk_major_version, gtk_minor_version, gtk_micro_version);
20096 }
20097 else
20098 {
20099 if ((gtk_major_version > major) ||
20100 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20101 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20102 {
20103 return 0;
20104 }
20105 else
20106 {
20107 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20108 gtk_major_version, gtk_minor_version, gtk_micro_version);
20109 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20110 major, minor, micro);
20111 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20112 printf("***\n");
20113 printf("*** If you have already installed a sufficiently new version, this error\n");
20114 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20115 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20116 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20117 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20118 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20119 printf("*** so that the correct libraries are found at run-time))\n");
20120 }
20121 }
20122 return 1;
20123}
f79bd02d 20124
e6cc62c6
VS
20125_ACEOF
20126rm -f conftest$ac_exeext
20127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20128 (eval $ac_link) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
21d1c967 20137 :
f79bd02d 20138else
e6cc62c6
VS
20139 echo "$as_me: program exited with status $ac_status" >&5
20140echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143( exit $ac_status )
20144no_gtk=yes
f79bd02d 20145fi
e6cc62c6 20146rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20147fi
21d1c967
GD
20148 CFLAGS="$ac_save_CFLAGS"
20149 LIBS="$ac_save_LIBS"
20150 fi
20151 fi
20152 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20153 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20154echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20155 wx_cv_lib_gtk=2.0
21d1c967 20156 else
e6cc62c6
VS
20157 echo "$as_me:$LINENO: result: no" >&5
20158echo "${ECHO_T}no" >&6
21d1c967
GD
20159 if test "$PKG_CONFIG" = "no" ; then
20160 echo "*** A new enough version of pkg-config was not found."
20161 echo "*** See http://pkgconfig.sourceforge.net"
20162 else
20163 if test -f conf.gtktest ; then
20164 :
20165 else
20166 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20167 ac_save_CFLAGS="$CFLAGS"
20168 ac_save_LIBS="$LIBS"
21d1c967
GD
20169 CFLAGS="$CFLAGS $GTK_CFLAGS"
20170 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20171 cat >conftest.$ac_ext <<_ACEOF
20172#line $LINENO "configure"
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
21d1c967
GD
20178
20179#include <gtk/gtk.h>
20180#include <stdio.h>
f79bd02d 20181
e6cc62c6
VS
20182int
20183main ()
20184{
20185 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20186 ;
20187 return 0;
20188}
20189_ACEOF
20190rm -f conftest.$ac_objext conftest$ac_exeext
20191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20192 (eval $ac_link) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
20196 { ac_try='test -s conftest$ac_exeext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
21d1c967
GD
20202 echo "*** The test program compiled, but did not run. This usually means"
20203 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20204 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20205 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20206 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20207 echo "*** is required on your system"
20208 echo "***"
20209 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20210 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20211else
e6cc62c6
VS
20212 echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20216 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20217fi
e6cc62c6 20218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20219 CFLAGS="$ac_save_CFLAGS"
20220 LIBS="$ac_save_LIBS"
20221 fi
20222 fi
20223 GTK_CFLAGS=""
20224 GTK_LIBS=""
20225 :
20226 fi
e6cc62c6
VS
20227
20228
21d1c967 20229 rm -f conf.gtktest
f79bd02d 20230
2b5f62a0 20231 else
e6cc62c6
VS
20232
20233# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20234if test "${with_gtk_prefix+set}" = set; then
20235 withval="$with_gtk_prefix"
20236 gtk_config_prefix="$withval"
20237else
20238 gtk_config_prefix=""
e6cc62c6 20239fi;
f79bd02d 20240
21d1c967
GD
20241# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20242if test "${with_gtk_exec_prefix+set}" = set; then
20243 withval="$with_gtk_exec_prefix"
20244 gtk_config_exec_prefix="$withval"
20245else
20246 gtk_config_exec_prefix=""
e6cc62c6 20247fi;
21d1c967
GD
20248# Check whether --enable-gtktest or --disable-gtktest was given.
20249if test "${enable_gtktest+set}" = set; then
20250 enableval="$enable_gtktest"
e6cc62c6 20251
21d1c967
GD
20252else
20253 enable_gtktest=yes
e6cc62c6 20254fi;
21d1c967
GD
20255
20256 for module in . $GTK_MODULES
20257 do
20258 case "$module" in
e6cc62c6 20259 gthread)
21d1c967
GD
20260 gtk_config_args="$gtk_config_args gthread"
20261 ;;
20262 esac
20263 done
20264
20265 if test x$gtk_config_exec_prefix != x ; then
20266 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20267 if test x${GTK_CONFIG+set} != xset ; then
20268 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20269 fi
20270 fi
20271 if test x$gtk_config_prefix != x ; then
20272 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20273 if test x${GTK_CONFIG+set} != xset ; then
20274 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20275 fi
20276 fi
20277
20278 # Extract the first word of "gtk-config", so it can be a program name with args.
20279set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20280echo "$as_me:$LINENO: checking for $ac_word" >&5
20281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20282if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20284else
e6cc62c6
VS
20285 case $GTK_CONFIG in
20286 [\\/]* | ?:[\\/]*)
21d1c967
GD
20287 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20288 ;;
21d1c967 20289 *)
e6cc62c6
VS
20290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20291for as_dir in $PATH
20292do
20293 IFS=$as_save_IFS
20294 test -z "$as_dir" && as_dir=.
20295 for ac_exec_ext in '' $ac_executable_extensions; do
20296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20297 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20299 break 2
20300 fi
20301done
20302done
20303
21d1c967
GD
20304 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20305 ;;
20306esac
20307fi
e6cc62c6
VS
20308GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20309
21d1c967 20310if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20311 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20312echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20313else
e6cc62c6
VS
20314 echo "$as_me:$LINENO: result: no" >&5
20315echo "${ECHO_T}no" >&6
21d1c967
GD
20316fi
20317
20318 min_gtk_version=1.2.7
e6cc62c6
VS
20319 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20320echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20321 no_gtk=""
20322 if test "$GTK_CONFIG" = "no" ; then
20323 no_gtk=yes
20324 else
20325 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20326 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20327 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20328 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20329 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20330 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20331 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20332 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20333 if test "x$enable_gtktest" = "xyes" ; then
20334 ac_save_CFLAGS="$CFLAGS"
20335 ac_save_LIBS="$LIBS"
20336 CFLAGS="$CFLAGS $GTK_CFLAGS"
20337 LIBS="$GTK_LIBS $LIBS"
20338 rm -f conf.gtktest
20339 if test "$cross_compiling" = yes; then
20340 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20341else
e6cc62c6
VS
20342 cat >conftest.$ac_ext <<_ACEOF
20343#line $LINENO "configure"
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
f79bd02d 20349
21d1c967
GD
20350#include <gtk/gtk.h>
20351#include <stdio.h>
20352#include <stdlib.h>
f79bd02d 20353
e6cc62c6 20354int
21d1c967
GD
20355main ()
20356{
20357 int major, minor, micro;
20358 char *tmp_version;
20359
20360 system ("touch conf.gtktest");
20361
20362 /* HP/UX 9 (%@#!) writes to sscanf strings */
20363 tmp_version = g_strdup("$min_gtk_version");
20364 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20365 printf("%s, bad version string\n", "$min_gtk_version");
20366 exit(1);
20367 }
90dd450c 20368
21d1c967
GD
20369 if ((gtk_major_version != $gtk_config_major_version) ||
20370 (gtk_minor_version != $gtk_config_minor_version) ||
20371 (gtk_micro_version != $gtk_config_micro_version))
20372 {
e6cc62c6 20373 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20374 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20375 gtk_major_version, gtk_minor_version, gtk_micro_version);
20376 printf ("*** was found! If gtk-config was correct, then it is best\n");
20377 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20378 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20379 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20380 printf("*** required on your system.\n");
20381 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20382 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20383 printf("*** before re-running configure\n");
e6cc62c6 20384 }
21d1c967
GD
20385#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20386 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20387 (gtk_minor_version != GTK_MINOR_VERSION) ||
20388 (gtk_micro_version != GTK_MICRO_VERSION))
20389 {
20390 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20391 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20392 printf("*** library (version %d.%d.%d)\n",
20393 gtk_major_version, gtk_minor_version, gtk_micro_version);
20394 }
20395#endif /* defined (GTK_MAJOR_VERSION) ... */
20396 else
20397 {
20398 if ((gtk_major_version > major) ||
20399 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20400 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20401 {
20402 return 0;
20403 }
20404 else
20405 {
20406 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20407 gtk_major_version, gtk_minor_version, gtk_micro_version);
20408 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20409 major, minor, micro);
20410 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20411 printf("***\n");
20412 printf("*** If you have already installed a sufficiently new version, this error\n");
20413 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20414 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20415 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20416 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20417 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20418 printf("*** so that the correct libraries are found at run-time))\n");
20419 }
20420 }
20421 return 1;
20422}
20423
e6cc62c6
VS
20424_ACEOF
20425rm -f conftest$ac_exeext
20426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20427 (eval $ac_link) 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
21d1c967
GD
20436 :
20437else
e6cc62c6
VS
20438 echo "$as_me: program exited with status $ac_status" >&5
20439echo "$as_me: failed program was:" >&5
20440sed 's/^/| /' conftest.$ac_ext >&5
20441
20442( exit $ac_status )
20443no_gtk=yes
21d1c967 20444fi
e6cc62c6 20445rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20446fi
21d1c967
GD
20447 CFLAGS="$ac_save_CFLAGS"
20448 LIBS="$ac_save_LIBS"
20449 fi
20450 fi
20451 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20452 echo "$as_me:$LINENO: result: yes" >&5
20453echo "${ECHO_T}yes" >&6
20454 wx_cv_lib_gtk=1.2.7
21d1c967 20455 else
e6cc62c6
VS
20456 echo "$as_me:$LINENO: result: no" >&5
20457echo "${ECHO_T}no" >&6
21d1c967
GD
20458 if test "$GTK_CONFIG" = "no" ; then
20459 echo "*** The gtk-config script installed by GTK could not be found"
20460 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20461 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20462 echo "*** full path to gtk-config."
20463 else
20464 if test -f conf.gtktest ; then
20465 :
20466 else
20467 echo "*** Could not run GTK test program, checking why..."
20468 CFLAGS="$CFLAGS $GTK_CFLAGS"
20469 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20470 cat >conftest.$ac_ext <<_ACEOF
20471#line $LINENO "configure"
20472/* confdefs.h. */
20473_ACEOF
20474cat confdefs.h >>conftest.$ac_ext
20475cat >>conftest.$ac_ext <<_ACEOF
20476/* end confdefs.h. */
21d1c967
GD
20477
20478#include <gtk/gtk.h>
20479#include <stdio.h>
20480
e6cc62c6
VS
20481int
20482main ()
20483{
20484 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20485 ;
20486 return 0;
20487}
20488_ACEOF
20489rm -f conftest.$ac_objext conftest$ac_exeext
20490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20491 (eval $ac_link) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -s conftest$ac_exeext'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
21d1c967
GD
20501 echo "*** The test program compiled, but did not run. This usually means"
20502 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20503 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20504 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20505 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20506 echo "*** is required on your system"
20507 echo "***"
20508 echo "*** If you have an old version installed, it is best to remove it, although"
20509 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20510 echo "***"
20511 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20512 echo "*** came with the system with the command"
20513 echo "***"
e6cc62c6 20514 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20515else
e6cc62c6
VS
20516 echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20520 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20521 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20522 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20523fi
e6cc62c6 20524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20525 CFLAGS="$ac_save_CFLAGS"
20526 LIBS="$ac_save_LIBS"
20527 fi
20528 fi
20529 GTK_CFLAGS=""
20530 GTK_LIBS=""
20531 :
20532 fi
e6cc62c6
VS
20533
20534
21d1c967
GD
20535 rm -f conf.gtktest
20536
21d1c967 20537
2b5f62a0 20538 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20539
20540# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20541if test "${with_gtk_prefix+set}" = set; then
20542 withval="$with_gtk_prefix"
20543 gtk_config_prefix="$withval"
20544else
20545 gtk_config_prefix=""
e6cc62c6 20546fi;
f79bd02d 20547
21d1c967
GD
20548# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20549if test "${with_gtk_exec_prefix+set}" = set; then
20550 withval="$with_gtk_exec_prefix"
20551 gtk_config_exec_prefix="$withval"
20552else
20553 gtk_config_exec_prefix=""
e6cc62c6 20554fi;
21d1c967
GD
20555# Check whether --enable-gtktest or --disable-gtktest was given.
20556if test "${enable_gtktest+set}" = set; then
20557 enableval="$enable_gtktest"
e6cc62c6 20558
90dd450c 20559else
21d1c967 20560 enable_gtktest=yes
e6cc62c6 20561fi;
21d1c967
GD
20562
20563 for module in . $GTK_MODULES
20564 do
20565 case "$module" in
e6cc62c6 20566 gthread)
21d1c967
GD
20567 gtk_config_args="$gtk_config_args gthread"
20568 ;;
20569 esac
20570 done
20571
20572 if test x$gtk_config_exec_prefix != x ; then
20573 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20574 if test x${GTK_CONFIG+set} != xset ; then
20575 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20576 fi
20577 fi
20578 if test x$gtk_config_prefix != x ; then
20579 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20580 if test x${GTK_CONFIG+set} != xset ; then
20581 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20582 fi
20583 fi
20584
20585 # Extract the first word of "gtk-config", so it can be a program name with args.
20586set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20587echo "$as_me:$LINENO: checking for $ac_word" >&5
20588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20589if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20591else
e6cc62c6
VS
20592 case $GTK_CONFIG in
20593 [\\/]* | ?:[\\/]*)
21d1c967
GD
20594 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20595 ;;
21d1c967 20596 *)
e6cc62c6
VS
20597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20598for as_dir in $PATH
20599do
20600 IFS=$as_save_IFS
20601 test -z "$as_dir" && as_dir=.
20602 for ac_exec_ext in '' $ac_executable_extensions; do
20603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20604 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20606 break 2
20607 fi
20608done
20609done
20610
21d1c967
GD
20611 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20612 ;;
20613esac
20614fi
e6cc62c6
VS
20615GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20616
21d1c967 20617if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20618 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20619echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20620else
e6cc62c6
VS
20621 echo "$as_me:$LINENO: result: no" >&5
20622echo "${ECHO_T}no" >&6
21d1c967
GD
20623fi
20624
20625 min_gtk_version=1.2.3
e6cc62c6
VS
20626 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20627echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20628 no_gtk=""
20629 if test "$GTK_CONFIG" = "no" ; then
20630 no_gtk=yes
20631 else
20632 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20633 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20634 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20635 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20636 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20637 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20638 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20639 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20640 if test "x$enable_gtktest" = "xyes" ; then
20641 ac_save_CFLAGS="$CFLAGS"
20642 ac_save_LIBS="$LIBS"
20643 CFLAGS="$CFLAGS $GTK_CFLAGS"
20644 LIBS="$GTK_LIBS $LIBS"
20645 rm -f conf.gtktest
20646 if test "$cross_compiling" = yes; then
20647 echo $ac_n "cross compiling; assumed OK... $ac_c"
20648else
e6cc62c6
VS
20649 cat >conftest.$ac_ext <<_ACEOF
20650#line $LINENO "configure"
20651/* confdefs.h. */
20652_ACEOF
20653cat confdefs.h >>conftest.$ac_ext
20654cat >>conftest.$ac_ext <<_ACEOF
20655/* end confdefs.h. */
21d1c967
GD
20656
20657#include <gtk/gtk.h>
20658#include <stdio.h>
20659#include <stdlib.h>
20660
e6cc62c6 20661int
21d1c967
GD
20662main ()
20663{
20664 int major, minor, micro;
20665 char *tmp_version;
20666
20667 system ("touch conf.gtktest");
20668
20669 /* HP/UX 9 (%@#!) writes to sscanf strings */
20670 tmp_version = g_strdup("$min_gtk_version");
20671 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20672 printf("%s, bad version string\n", "$min_gtk_version");
20673 exit(1);
20674 }
20675
20676 if ((gtk_major_version != $gtk_config_major_version) ||
20677 (gtk_minor_version != $gtk_config_minor_version) ||
20678 (gtk_micro_version != $gtk_config_micro_version))
20679 {
e6cc62c6 20680 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20681 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20682 gtk_major_version, gtk_minor_version, gtk_micro_version);
20683 printf ("*** was found! If gtk-config was correct, then it is best\n");
20684 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20685 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20686 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20687 printf("*** required on your system.\n");
20688 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20689 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20690 printf("*** before re-running configure\n");
e6cc62c6 20691 }
21d1c967
GD
20692#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20693 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20694 (gtk_minor_version != GTK_MINOR_VERSION) ||
20695 (gtk_micro_version != GTK_MICRO_VERSION))
20696 {
20697 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20698 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20699 printf("*** library (version %d.%d.%d)\n",
20700 gtk_major_version, gtk_minor_version, gtk_micro_version);
20701 }
20702#endif /* defined (GTK_MAJOR_VERSION) ... */
20703 else
20704 {
20705 if ((gtk_major_version > major) ||
20706 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20707 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20708 {
20709 return 0;
20710 }
20711 else
20712 {
20713 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20714 gtk_major_version, gtk_minor_version, gtk_micro_version);
20715 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20716 major, minor, micro);
20717 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20718 printf("***\n");
20719 printf("*** If you have already installed a sufficiently new version, this error\n");
20720 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20721 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20722 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20723 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20724 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20725 printf("*** so that the correct libraries are found at run-time))\n");
20726 }
20727 }
20728 return 1;
20729}
20730
e6cc62c6
VS
20731_ACEOF
20732rm -f conftest$ac_exeext
20733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20734 (eval $ac_link) 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; }; then
21d1c967
GD
20743 :
20744else
e6cc62c6
VS
20745 echo "$as_me: program exited with status $ac_status" >&5
20746echo "$as_me: failed program was:" >&5
20747sed 's/^/| /' conftest.$ac_ext >&5
20748
20749( exit $ac_status )
20750no_gtk=yes
21d1c967 20751fi
e6cc62c6 20752rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20753fi
21d1c967
GD
20754 CFLAGS="$ac_save_CFLAGS"
20755 LIBS="$ac_save_LIBS"
20756 fi
20757 fi
20758 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20759 echo "$as_me:$LINENO: result: yes" >&5
20760echo "${ECHO_T}yes" >&6
20761 wx_cv_lib_gtk=1.2.3
21d1c967 20762 else
e6cc62c6
VS
20763 echo "$as_me:$LINENO: result: no" >&5
20764echo "${ECHO_T}no" >&6
21d1c967
GD
20765 if test "$GTK_CONFIG" = "no" ; then
20766 echo "*** The gtk-config script installed by GTK could not be found"
20767 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20768 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20769 echo "*** full path to gtk-config."
20770 else
20771 if test -f conf.gtktest ; then
20772 :
20773 else
20774 echo "*** Could not run GTK test program, checking why..."
20775 CFLAGS="$CFLAGS $GTK_CFLAGS"
20776 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20777 cat >conftest.$ac_ext <<_ACEOF
20778#line $LINENO "configure"
20779/* confdefs.h. */
20780_ACEOF
20781cat confdefs.h >>conftest.$ac_ext
20782cat >>conftest.$ac_ext <<_ACEOF
20783/* end confdefs.h. */
21d1c967
GD
20784
20785#include <gtk/gtk.h>
20786#include <stdio.h>
f79bd02d 20787
e6cc62c6
VS
20788int
20789main ()
20790{
20791 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20792 ;
20793 return 0;
20794}
20795_ACEOF
20796rm -f conftest.$ac_objext conftest$ac_exeext
20797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20798 (eval $ac_link) 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } &&
20802 { ac_try='test -s conftest$ac_exeext'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
21d1c967
GD
20808 echo "*** The test program compiled, but did not run. This usually means"
20809 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20810 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20811 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20812 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20813 echo "*** is required on your system"
20814 echo "***"
20815 echo "*** If you have an old version installed, it is best to remove it, although"
20816 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20817 echo "***"
20818 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20819 echo "*** came with the system with the command"
20820 echo "***"
e6cc62c6 20821 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20822else
e6cc62c6
VS
20823 echo "$as_me: failed program was:" >&5
20824sed 's/^/| /' conftest.$ac_ext >&5
20825
20826 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20827 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20828 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20829 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20830fi
e6cc62c6 20831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20832 CFLAGS="$ac_save_CFLAGS"
20833 LIBS="$ac_save_LIBS"
20834 fi
20835 fi
20836 GTK_CFLAGS=""
20837 GTK_LIBS=""
20838 :
20839 fi
e6cc62c6
VS
20840
20841
21d1c967 20842 rm -f conf.gtktest
f79bd02d 20843
2b5f62a0 20844 fi
21d1c967
GD
20845 fi
20846
20847 if test -z "$wx_cv_lib_gtk"; then
20848 wx_cv_lib_gtk=none
20849 else
20850 wx_cv_cflags_gtk=$GTK_CFLAGS
20851 wx_cv_libs_gtk=$GTK_LIBS
20852 fi
e6cc62c6
VS
20853
20854
5c6fa7d2 20855fi
52127426 20856
8284b0c5 20857
21d1c967 20858 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20859 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20860echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20861 fi
20862
20863 case "$wx_cv_lib_gtk" in
20864 2.0) WXGTK20=1
2b5f62a0 20865 TOOLKIT_VERSION=2
21d1c967
GD
20866 ;;
20867 1.2.7) WXGTK127=1
20868 WXGTK12=1
20869 ;;
20870 1.2.3) WXGTK12=1
20871 ;;
e6cc62c6
VS
20872 *) { { echo "$as_me:$LINENO: error:
20873Please check that gtk-config is in path, the directory
20874where GTK+ libraries are installed (returned by
20875'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20876equivalent variable and GTK+ is version 1.2.3 or above.
20877 " >&5
20878echo "$as_me: error:
247f5006
VZ
20879Please check that gtk-config is in path, the directory
20880where GTK+ libraries are installed (returned by
20881'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20882equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20883 " >&2;}
20884 { (exit 1); exit 1; }; }
21d1c967
GD
20885 ;;
20886 esac
20887
b13cd66e
VZ
20888 if test "$WXGTK20" = 1; then
20889 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20890
f09359cf
VS
20891 succeeded=no
20892
20893 if test -z "$PKG_CONFIG"; then
20894 # Extract the first word of "pkg-config", so it can be a program name with args.
20895set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20896echo "$as_me:$LINENO: checking for $ac_word" >&5
20897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20898if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20900else
e6cc62c6
VS
20901 case $PKG_CONFIG in
20902 [\\/]* | ?:[\\/]*)
f09359cf
VS
20903 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20904 ;;
f09359cf 20905 *)
e6cc62c6
VS
20906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20907for as_dir in $PATH
20908do
20909 IFS=$as_save_IFS
20910 test -z "$as_dir" && as_dir=.
20911 for ac_exec_ext in '' $ac_executable_extensions; do
20912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20913 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20915 break 2
20916 fi
20917done
20918done
20919
f09359cf
VS
20920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20921 ;;
20922esac
20923fi
e6cc62c6
VS
20924PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20925
f09359cf 20926if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20927 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20928echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20929else
e6cc62c6
VS
20930 echo "$as_me:$LINENO: result: no" >&5
20931echo "${ECHO_T}no" >&6
f09359cf
VS
20932fi
20933
20934 fi
20935
20936 if test "$PKG_CONFIG" = "no" ; then
20937 echo "*** The pkg-config script could not be found. Make sure it is"
20938 echo "*** in your path, or set the PKG_CONFIG environment variable"
20939 echo "*** to the full path to pkg-config."
20940 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20941 else
20942 PKG_CONFIG_MIN_VERSION=0.9.0
20943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20944 echo "$as_me:$LINENO: checking for pangoft2" >&5
20945echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20946
20947 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20948 echo "$as_me:$LINENO: result: yes" >&5
20949echo "${ECHO_T}yes" >&6
f09359cf
VS
20950 succeeded=yes
20951
e6cc62c6
VS
20952 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20953echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20954 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20955 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20956echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20957
e6cc62c6
VS
20958 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20959echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20960 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20961 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20962echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20963 else
20964 PANGOFT2_CFLAGS=""
20965 PANGOFT2_LIBS=""
e6cc62c6 20966 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20967 ## do set a variable so people can do so.
20968 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20969
f09359cf
VS
20970 fi
20971
e6cc62c6
VS
20972
20973
f09359cf
VS
20974 else
20975 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20976 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20977 fi
20978 fi
20979
20980 if test $succeeded = yes; then
e6cc62c6 20981
b13cd66e 20982 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20983 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20984
f09359cf 20985 else
e6cc62c6
VS
20986
20987 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20988echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20989 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20990
20991
f09359cf
VS
20992 fi
20993
b13cd66e 20994 fi
2b5f62a0
VZ
20995 else
20996 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20997 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20998echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20999 wxUSE_UNICODE=no
21000 fi
21001 fi
21002
21003 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21004
21005for ac_func in poll
2b5f62a0 21006do
e6cc62c6
VS
21007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008echo "$as_me:$LINENO: checking for $ac_func" >&5
21009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21010if eval "test \"\${$as_ac_var+set}\" = set"; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012else
21013 cat >conftest.$ac_ext <<_ACEOF
21014#line $LINENO "configure"
21015/* confdefs.h. */
21016_ACEOF
21017cat confdefs.h >>conftest.$ac_ext
21018cat >>conftest.$ac_ext <<_ACEOF
21019/* end confdefs.h. */
2b5f62a0 21020/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21021 which can conflict with char $ac_func (); below.
21022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21023 <limits.h> exists even on freestanding compilers. */
21024#ifdef __STDC__
21025# include <limits.h>
21026#else
21027# include <assert.h>
21028#endif
2b5f62a0 21029/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21030#ifdef __cplusplus
21031extern "C"
21032{
21033#endif
2b5f62a0 21034/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21035 builtin and then its argument prototype would still apply. */
21036char $ac_func ();
2b5f62a0
VZ
21037/* The GNU C library defines this for functions which it implements
21038 to always fail with ENOSYS. Some functions are actually named
21039 something starting with __ and the normal name is an alias. */
21040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21041choke me
21042#else
e6cc62c6
VS
21043char (*f) () = $ac_func;
21044#endif
21045#ifdef __cplusplus
21046}
2b5f62a0
VZ
21047#endif
21048
e6cc62c6
VS
21049int
21050main ()
21051{
21052return f != $ac_func;
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext conftest$ac_exeext
21058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21059 (eval $ac_link) 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try='test -s conftest$ac_exeext'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; }; then
21069 eval "$as_ac_var=yes"
21070else
21071 echo "$as_me: failed program was:" >&5
21072sed 's/^/| /' conftest.$ac_ext >&5
21073
21074eval "$as_ac_var=no"
21075fi
21076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21077fi
21078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21080if test `eval echo '${'$as_ac_var'}'` = yes; then
21081 cat >>confdefs.h <<_ACEOF
21082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21083_ACEOF
2b5f62a0 21084
2b5f62a0
VZ
21085fi
21086done
21087
f09359cf
VS
21088 fi
21089
21d1c967 21090 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21091 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21092
21093 AFMINSTALL=afminstall
21094 TOOLKIT=GTK
21095 GUIDIST=GTK_DIST
21096
e6cc62c6
VS
21097 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21098echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21099if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21101else
e6cc62c6 21102 ac_check_lib_save_LIBS=$LIBS
21d1c967 21103LIBS="-lgdk $LIBS"
e6cc62c6
VS
21104cat >conftest.$ac_ext <<_ACEOF
21105#line $LINENO "configure"
21106/* confdefs.h. */
21107_ACEOF
21108cat confdefs.h >>conftest.$ac_ext
21109cat >>conftest.$ac_ext <<_ACEOF
21110/* end confdefs.h. */
21111
5c6fa7d2 21112/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21113#ifdef __cplusplus
21114extern "C"
21115#endif
5c6fa7d2 21116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21117 builtin and then its argument prototype would still apply. */
21118char gdk_im_open ();
21119int
21120main ()
21121{
21122gdk_im_open ();
21123 ;
21124 return 0;
21125}
21126_ACEOF
21127rm -f conftest.$ac_objext conftest$ac_exeext
21128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21129 (eval $ac_link) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } &&
21133 { ac_try='test -s conftest$ac_exeext'
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 ac_cv_lib_gdk_gdk_im_open=yes
21140else
21141 echo "$as_me: failed program was:" >&5
21142sed 's/^/| /' conftest.$ac_ext >&5
21143
21144ac_cv_lib_gdk_gdk_im_open=no
21145fi
21146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21147LIBS=$ac_check_lib_save_LIBS
21148fi
21149echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21150echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21151if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21152 cat >>confdefs.h <<\_ACEOF
21d1c967 21153#define HAVE_XIM 1
e6cc62c6 21154_ACEOF
21d1c967 21155
90dd450c 21156fi
1e6feb95 21157
21d1c967 21158 fi
1e6feb95 21159
21d1c967 21160 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21161 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21162echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21163 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21164 echo "$as_me:$LINENO: result: not found" >&5
21165echo "${ECHO_T}not found" >&6
21166 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21167echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21168 { (exit 1); exit 1; }; }
21d1c967 21169 else
e6cc62c6
VS
21170 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21171echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21172 fi
21173
e6cc62c6
VS
21174 echo "$as_me:$LINENO: checking for libmgl location" >&5
21175echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
21176 case "${host}" in
21177 *-*-linux* )
63a76696
VS
21178 if test "x$wxUSE_SHARED" = xyes ; then
21179 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
21180 else
21181 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
21182 fi
21d1c967
GD
21183 ;;
21184 *-pc-msdosdjgpp )
63a76696 21185 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21186 ;;
21187 *)
e6cc62c6
VS
21188 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21189echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21190 { (exit 1); exit 1; }; }
21d1c967 21191 esac
1e6feb95 21192
21d1c967 21193 mgl_lib_type=""
63a76696
VS
21194 mgl_os=""
21195
21196 for mgl_os_i in $mgl_os_candidates ; do
21197 if test "x$mgl_os" = x ; then
21198 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21199 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21200 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21201 mgl_lib_type=debug
21202 mgl_os=$mgl_os_i
21203 fi
21204 fi
21205 if test "x$mgl_lib_type" = x ; then
21206 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21207 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21208 mgl_lib_type=release
21209 mgl_os=$mgl_os_i
21210 fi
21211 fi
21d1c967 21212 fi
63a76696 21213 done
2224580a 21214
63a76696 21215 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21216 echo "$as_me:$LINENO: result: not found" >&5
21217echo "${ECHO_T}not found" >&6
21218 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21219echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21220 { (exit 1); exit 1; }; }
63a76696 21221 fi
e6cc62c6
VS
21222 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21223echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21224
1d1b75ac
VZ
21225 wxUSE_UNIVERSAL="yes"
21226
21d1c967
GD
21227 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21228 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21229
90dd450c 21230 AFMINSTALL=afminstall
21d1c967
GD
21231 TOOLKIT=MGL
21232 GUIDIST=MGL_DIST
21233 fi
dad6c0ea 21234
21d1c967 21235 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21236 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21237echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21238 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21239 echo "$as_me:$LINENO: result: not found" >&5
21240echo "${ECHO_T}not found" >&6
21241 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21242echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21243 { (exit 1); exit 1; }; }
21d1c967 21244 else
e6cc62c6
VS
21245 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21246echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21247 fi
f6bcfd97 21248
21d1c967 21249 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21250 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21251echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21252 else
e6cc62c6
VS
21253 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21254echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21255 { (exit 1); exit 1; }; }
90dd450c 21256 fi
0b2effe9 21257
21d1c967
GD
21258 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21259 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21260
1d1b75ac
VZ
21261 wxUSE_UNIVERSAL="yes"
21262
21d1c967
GD
21263 AFMINSTALL=afminstall
21264 TOOLKIT=MICROWIN
21265 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21266
21267 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21268 fi
f6bcfd97 21269
21d1c967 21270 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21271 echo "$as_me:$LINENO: checking for X" >&5
21272echo $ECHO_N "checking for X... $ECHO_C" >&6
21273
d8356fa3 21274
21d1c967
GD
21275# Check whether --with-x or --without-x was given.
21276if test "${with_x+set}" = set; then
21277 withval="$with_x"
2224580a 21278
e6cc62c6 21279fi;
21d1c967
GD
21280# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21281if test "x$with_x" = xno; then
21282 # The user explicitly disabled X.
21283 have_x=disabled
21284else
21285 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21286 # Both variables are already set.
21287 have_x=yes
21288 else
e6cc62c6
VS
21289 if test "${ac_cv_have_x+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21291else
21292 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21293ac_x_includes=no ac_x_libraries=no
21294rm -fr conftest.dir
21295if mkdir conftest.dir; then
21296 cd conftest.dir
21d1c967 21297 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21298 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21299acfindx:
21300 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21301_ACEOF
21d1c967
GD
21302 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21303 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21304 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21305 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21306 for ac_extension in a so sl; do
21307 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21308 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21309 ac_im_usrlibdir=$ac_im_libdir; break
21310 fi
21311 done
21312 # Screen out bogus values from the imake configuration. They are
21313 # bogus both because they are the default anyway, and because
21314 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21315 case $ac_im_incroot in
21d1c967 21316 /usr/include) ;;
e6cc62c6 21317 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21318 esac
e6cc62c6 21319 case $ac_im_usrlibdir in
21d1c967 21320 /usr/lib | /lib) ;;
e6cc62c6 21321 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21322 esac
21323 fi
21324 cd ..
e6cc62c6 21325 rm -fr conftest.dir
21d1c967 21326fi
10f2d63a 21327
e6cc62c6
VS
21328# Standard set of common directories for X headers.
21329# Check X11 before X11Rn because it is often a symlink to the current release.
21330ac_x_header_dirs='
21331/usr/X11/include
21332/usr/X11R6/include
21333/usr/X11R5/include
21334/usr/X11R4/include
21335
21336/usr/include/X11
21337/usr/include/X11R6
21338/usr/include/X11R5
21339/usr/include/X11R4
21340
21341/usr/local/X11/include
21342/usr/local/X11R6/include
21343/usr/local/X11R5/include
21344/usr/local/X11R4/include
21345
21346/usr/local/include/X11
21347/usr/local/include/X11R6
21348/usr/local/include/X11R5
21349/usr/local/include/X11R4
21350
21351/usr/X386/include
21352/usr/x386/include
21353/usr/XFree86/include/X11
21354
21355/usr/include
21356/usr/local/include
21357/usr/unsupported/include
21358/usr/athena/include
21359/usr/local/x11r5/include
21360/usr/lpp/Xamples/include
21361
21362/usr/openwin/include
21363/usr/openwin/share/include'
21364
21365if test "$ac_x_includes" = no; then
21366 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21367 # First, try using that file with no special directory specified.
e6cc62c6
VS
21368 cat >conftest.$ac_ext <<_ACEOF
21369#line $LINENO "configure"
21370/* confdefs.h. */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h. */
21375#include <X11/Intrinsic.h>
21376_ACEOF
21377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21379 ac_status=$?
21380 grep -v '^ *+' conftest.er1 >conftest.err
21381 rm -f conftest.er1
21382 cat conftest.err >&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } >/dev/null; then
21385 if test -s conftest.err; then
21386 ac_cpp_err=$ac_c_preproc_warn_flag
21387 else
21388 ac_cpp_err=
21389 fi
21390else
21391 ac_cpp_err=yes
21392fi
21393if test -z "$ac_cpp_err"; then
21d1c967
GD
21394 # We can compile using X headers with no special include directory.
21395ac_x_includes=
90dd450c 21396else
e6cc62c6
VS
21397 echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 for ac_dir in $ac_x_header_dirs; do
21401 if test -r "$ac_dir/X11/Intrinsic.h"; then
21402 ac_x_includes=$ac_dir
21403 break
21404 fi
21405done
3a922bb4 21406fi
e6cc62c6
VS
21407rm -f conftest.err conftest.$ac_ext
21408fi # $ac_x_includes = no
10f2d63a 21409
e6cc62c6 21410if test "$ac_x_libraries" = no; then
21d1c967 21411 # Check for the libraries.
21d1c967
GD
21412 # See if we find them without any special options.
21413 # Don't add to $LIBS permanently.
e6cc62c6
VS
21414 ac_save_LIBS=$LIBS
21415 LIBS="-lXt $LIBS"
21416 cat >conftest.$ac_ext <<_ACEOF
21417#line $LINENO "configure"
21418/* confdefs.h. */
21419_ACEOF
21420cat confdefs.h >>conftest.$ac_ext
21421cat >>conftest.$ac_ext <<_ACEOF
21422/* end confdefs.h. */
21423#include <X11/Intrinsic.h>
21424int
21425main ()
21426{
21427XtMalloc (0)
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext conftest$ac_exeext
21433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21434 (eval $ac_link) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
21438 { ac_try='test -s conftest$ac_exeext'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; }; then
21444 LIBS=$ac_save_LIBS
21d1c967
GD
21445# We can link X programs with no special library path.
21446ac_x_libraries=
3a922bb4 21447else
e6cc62c6
VS
21448 echo "$as_me: failed program was:" >&5
21449sed 's/^/| /' conftest.$ac_ext >&5
21450
21451LIBS=$ac_save_LIBS
21452for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21453do
e6cc62c6 21454 # Don't even attempt the hair of trying to link an X program!
21d1c967 21455 for ac_extension in a so sl; do
e6cc62c6 21456 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21457 ac_x_libraries=$ac_dir
21458 break 2
21459 fi
21460 done
21461done
3a922bb4 21462fi
e6cc62c6
VS
21463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21464fi # $ac_x_libraries = no
90dd450c 21465
e6cc62c6 21466if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21467 # Didn't find X anywhere. Cache the known absence of X.
21468 ac_cv_have_x="have_x=no"
21469else
21470 # Record where we found X for the cache.
21471 ac_cv_have_x="have_x=yes \
21472 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21473fi
21d1c967 21474fi
e6cc62c6 21475
21d1c967
GD
21476 fi
21477 eval "$ac_cv_have_x"
21478fi # $with_x != no
90dd450c 21479
21d1c967 21480if test "$have_x" != yes; then
e6cc62c6
VS
21481 echo "$as_me:$LINENO: result: $have_x" >&5
21482echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21483 no_x=yes
21484else
21485 # If each of the values was on the command line, it overrides each guess.
21486 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21487 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21488 # Update the cache value to reflect the command line values.
21489 ac_cv_have_x="have_x=yes \
21490 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21491 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21492echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21493fi
90dd450c 21494
21d1c967 21495if test "$no_x" = yes; then
90dd450c 21496 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21497
21498cat >>confdefs.h <<\_ACEOF
90dd450c 21499#define X_DISPLAY_MISSING 1
e6cc62c6 21500_ACEOF
90dd450c
VZ
21501
21502 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21503else
21504 if test -n "$x_includes"; then
21505 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21506 fi
3a922bb4 21507
90dd450c
VZ
21508 # It would also be nice to do this for all -L options, not just this one.
21509 if test -n "$x_libraries"; then
21510 X_LIBS="$X_LIBS -L$x_libraries"
21511 # For Solaris; some versions of Sun CC require a space after -R and
21512 # others require no space. Words are not sufficient . . . .
e6cc62c6 21513 case `(uname -sr) 2>/dev/null` in
90dd450c 21514 "SunOS 5"*)
e6cc62c6
VS
21515 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21516echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21517 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21518 cat >conftest.$ac_ext <<_ACEOF
21519#line $LINENO "configure"
21520/* confdefs.h. */
21521_ACEOF
21522cat confdefs.h >>conftest.$ac_ext
21523cat >>conftest.$ac_ext <<_ACEOF
21524/* end confdefs.h. */
21525
21526int
21527main ()
21528{
90dd450c 21529
e6cc62c6
VS
21530 ;
21531 return 0;
21532}
21533_ACEOF
21534rm -f conftest.$ac_objext conftest$ac_exeext
21535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21536 (eval $ac_link) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try='test -s conftest$ac_exeext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
90dd450c 21546 ac_R_nospace=yes
3a922bb4 21547else
e6cc62c6
VS
21548 echo "$as_me: failed program was:" >&5
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
21551ac_R_nospace=no
3a922bb4 21552fi
e6cc62c6 21553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21554 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21555 echo "$as_me:$LINENO: result: no" >&5
21556echo "${ECHO_T}no" >&6
90dd450c
VZ
21557 X_LIBS="$X_LIBS -R$x_libraries"
21558 else
21559 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21560 cat >conftest.$ac_ext <<_ACEOF
21561#line $LINENO "configure"
21562/* confdefs.h. */
21563_ACEOF
21564cat confdefs.h >>conftest.$ac_ext
21565cat >>conftest.$ac_ext <<_ACEOF
21566/* end confdefs.h. */
21567
21568int
21569main ()
21570{
6f754473 21571
e6cc62c6
VS
21572 ;
21573 return 0;
21574}
21575_ACEOF
21576rm -f conftest.$ac_objext conftest$ac_exeext
21577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } &&
21582 { ac_try='test -s conftest$ac_exeext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
90dd450c
VZ
21588 ac_R_space=yes
21589else
e6cc62c6
VS
21590 echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593ac_R_space=no
90dd450c 21594fi
e6cc62c6 21595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21596 if test $ac_R_space = yes; then
e6cc62c6
VS
21597 echo "$as_me:$LINENO: result: yes" >&5
21598echo "${ECHO_T}yes" >&6
90dd450c
VZ
21599 X_LIBS="$X_LIBS -R $x_libraries"
21600 else
e6cc62c6
VS
21601 echo "$as_me:$LINENO: result: neither works" >&5
21602echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21603 fi
21604 fi
e6cc62c6 21605 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21606 esac
21607 fi
21608
21609 # Check for system-dependent libraries X programs must link with.
21610 # Do this before checking for the system-independent R6 libraries
21611 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21612
90dd450c
VZ
21613 if test "$ISC" = yes; then
21614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21615 else
e6cc62c6
VS
21616 # Martyn Johnson says this is needed for Ultrix, if the X
21617 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21618 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21619 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21620 cat >conftest.$ac_ext <<_ACEOF
21621#line $LINENO "configure"
21622/* confdefs.h. */
21623_ACEOF
21624cat confdefs.h >>conftest.$ac_ext
21625cat >>conftest.$ac_ext <<_ACEOF
21626/* end confdefs.h. */
21627
247f5006 21628/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21629#ifdef __cplusplus
21630extern "C"
21631#endif
247f5006 21632/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21633 builtin and then its argument prototype would still apply. */
21634char XOpenDisplay ();
21635int
21636main ()
21637{
21638XOpenDisplay ();
21639 ;
21640 return 0;
21641}
21642_ACEOF
21643rm -f conftest.$ac_objext conftest$ac_exeext
21644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21645 (eval $ac_link) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } &&
21649 { ac_try='test -s conftest$ac_exeext'
21650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21651 (eval $ac_try) 2>&5
21652 ac_status=$?
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 :
21656else
21657 echo "$as_me: failed program was:" >&5
21658sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21659
e6cc62c6
VS
21660echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21661echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21662if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21664else
e6cc62c6
VS
21665 ac_check_lib_save_LIBS=$LIBS
21666LIBS="-ldnet $LIBS"
21667cat >conftest.$ac_ext <<_ACEOF
21668#line $LINENO "configure"
21669/* confdefs.h. */
21670_ACEOF
21671cat confdefs.h >>conftest.$ac_ext
21672cat >>conftest.$ac_ext <<_ACEOF
21673/* end confdefs.h. */
a0b9e27f 21674
e6cc62c6
VS
21675/* Override any gcc2 internal prototype to avoid an error. */
21676#ifdef __cplusplus
21677extern "C"
21678#endif
21679/* We use char because int might match the return type of a gcc2
21680 builtin and then its argument prototype would still apply. */
21681char dnet_ntoa ();
21682int
21683main ()
21684{
21685dnet_ntoa ();
21686 ;
21687 return 0;
21688}
21689_ACEOF
21690rm -f conftest.$ac_objext conftest$ac_exeext
21691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21692 (eval $ac_link) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } &&
21696 { ac_try='test -s conftest$ac_exeext'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21702 ac_cv_lib_dnet_dnet_ntoa=yes
21703else
21704 echo "$as_me: failed program was:" >&5
21705sed 's/^/| /' conftest.$ac_ext >&5
21706
21707ac_cv_lib_dnet_dnet_ntoa=no
21708fi
21709rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21710LIBS=$ac_check_lib_save_LIBS
21711fi
21712echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21713echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21714if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21715 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21716fi
21717
90dd450c 21718 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21719 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21720echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21721if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21723else
e6cc62c6 21724 ac_check_lib_save_LIBS=$LIBS
90dd450c 21725LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21726cat >conftest.$ac_ext <<_ACEOF
21727#line $LINENO "configure"
21728/* confdefs.h. */
21729_ACEOF
21730cat confdefs.h >>conftest.$ac_ext
21731cat >>conftest.$ac_ext <<_ACEOF
21732/* end confdefs.h. */
21733
90dd450c 21734/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21735#ifdef __cplusplus
21736extern "C"
21737#endif
90dd450c 21738/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21739 builtin and then its argument prototype would still apply. */
21740char dnet_ntoa ();
21741int
21742main ()
21743{
21744dnet_ntoa ();
21745 ;
21746 return 0;
21747}
21748_ACEOF
21749rm -f conftest.$ac_objext conftest$ac_exeext
21750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21751 (eval $ac_link) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } &&
21755 { ac_try='test -s conftest$ac_exeext'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21762else
21763 echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
21766ac_cv_lib_dnet_stub_dnet_ntoa=no
21767fi
21768rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21769LIBS=$ac_check_lib_save_LIBS
21770fi
21771echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21772echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21773if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21774 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21775fi
21776
90dd450c 21777 fi
e6cc62c6
VS
21778fi
21779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21780 LIBS="$ac_xsave_LIBS"
978f1259 21781
90dd450c
VZ
21782 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21783 # to get the SysV transport functions.
e6cc62c6 21784 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21785 # needs -lnsl.
21786 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21787 # on Irix 5.2, according to T.E. Dickey.
21788 # The functions gethostbyname, getservbyname, and inet_addr are
21789 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21790 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21791echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21792if test "${ac_cv_func_gethostbyname+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21794else
21795 cat >conftest.$ac_ext <<_ACEOF
21796#line $LINENO "configure"
21797/* confdefs.h. */
21798_ACEOF
21799cat confdefs.h >>conftest.$ac_ext
21800cat >>conftest.$ac_ext <<_ACEOF
21801/* end confdefs.h. */
90dd450c 21802/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21803 which can conflict with char gethostbyname (); below.
21804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21805 <limits.h> exists even on freestanding compilers. */
21806#ifdef __STDC__
21807# include <limits.h>
21808#else
21809# include <assert.h>
21810#endif
90dd450c 21811/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21812#ifdef __cplusplus
21813extern "C"
21814{
21815#endif
90dd450c 21816/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21817 builtin and then its argument prototype would still apply. */
21818char gethostbyname ();
90dd450c
VZ
21819/* The GNU C library defines this for functions which it implements
21820 to always fail with ENOSYS. Some functions are actually named
21821 something starting with __ and the normal name is an alias. */
21822#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21823choke me
21824#else
e6cc62c6
VS
21825char (*f) () = gethostbyname;
21826#endif
21827#ifdef __cplusplus
21828}
90dd450c 21829#endif
978f1259 21830
e6cc62c6
VS
21831int
21832main ()
21833{
21834return f != gethostbyname;
21835 ;
21836 return 0;
21837}
21838_ACEOF
21839rm -f conftest.$ac_objext conftest$ac_exeext
21840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841 (eval $ac_link) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } &&
21845 { ac_try='test -s conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_func_gethostbyname=yes
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
21856ac_cv_func_gethostbyname=no
21857fi
21858rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21859fi
21860echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21861echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21862
90dd450c 21863 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21864 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21865echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21866if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21868else
e6cc62c6 21869 ac_check_lib_save_LIBS=$LIBS
90dd450c 21870LIBS="-lnsl $LIBS"
e6cc62c6
VS
21871cat >conftest.$ac_ext <<_ACEOF
21872#line $LINENO "configure"
21873/* confdefs.h. */
21874_ACEOF
21875cat confdefs.h >>conftest.$ac_ext
21876cat >>conftest.$ac_ext <<_ACEOF
21877/* end confdefs.h. */
21878
90dd450c 21879/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21880#ifdef __cplusplus
21881extern "C"
21882#endif
90dd450c 21883/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21884 builtin and then its argument prototype would still apply. */
21885char gethostbyname ();
21886int
21887main ()
21888{
21889gethostbyname ();
21890 ;
21891 return 0;
21892}
21893_ACEOF
21894rm -f conftest.$ac_objext conftest$ac_exeext
21895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21896 (eval $ac_link) 2>&5
21897 ac_status=$?
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
21900 { ac_try='test -s conftest$ac_exeext'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; }; then
21906 ac_cv_lib_nsl_gethostbyname=yes
21907else
21908 echo "$as_me: failed program was:" >&5
21909sed 's/^/| /' conftest.$ac_ext >&5
21910
21911ac_cv_lib_nsl_gethostbyname=no
21912fi
21913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21914LIBS=$ac_check_lib_save_LIBS
21915fi
21916echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21917echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21918if test $ac_cv_lib_nsl_gethostbyname = yes; then
21919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21920fi
247f5006 21921
e6cc62c6
VS
21922 if test $ac_cv_lib_nsl_gethostbyname = no; then
21923 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21924echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21925if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21927else
e6cc62c6
VS
21928 ac_check_lib_save_LIBS=$LIBS
21929LIBS="-lbsd $LIBS"
21930cat >conftest.$ac_ext <<_ACEOF
21931#line $LINENO "configure"
21932/* confdefs.h. */
21933_ACEOF
21934cat confdefs.h >>conftest.$ac_ext
21935cat >>conftest.$ac_ext <<_ACEOF
21936/* end confdefs.h. */
21937
21938/* Override any gcc2 internal prototype to avoid an error. */
21939#ifdef __cplusplus
21940extern "C"
21941#endif
21942/* We use char because int might match the return type of a gcc2
21943 builtin and then its argument prototype would still apply. */
21944char gethostbyname ();
21945int
21946main ()
21947{
21948gethostbyname ();
21949 ;
21950 return 0;
21951}
21952_ACEOF
21953rm -f conftest.$ac_objext conftest$ac_exeext
21954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } &&
21959 { ac_try='test -s conftest$ac_exeext'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 ac_cv_lib_bsd_gethostbyname=yes
21966else
21967 echo "$as_me: failed program was:" >&5
21968sed 's/^/| /' conftest.$ac_ext >&5
21969
21970ac_cv_lib_bsd_gethostbyname=no
21971fi
21972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21973LIBS=$ac_check_lib_save_LIBS
21974fi
21975echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21976echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21977if test $ac_cv_lib_bsd_gethostbyname = yes; then
21978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21979fi
b12915c1 21980
e6cc62c6 21981 fi
90dd450c
VZ
21982 fi
21983
21984 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21985 # socket/setsockopt and other routines are undefined under SCO ODT
21986 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21987 # on later versions), says Simon Leinen: it contains gethostby*
21988 # variants that don't use the name server (or something). -lsocket
21989 # must be given before -lnsl if both are needed. We assume that
21990 # if connect needs -lnsl, so does gethostbyname.
21991 echo "$as_me:$LINENO: checking for connect" >&5
21992echo $ECHO_N "checking for connect... $ECHO_C" >&6
21993if test "${ac_cv_func_connect+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21995else
21996 cat >conftest.$ac_ext <<_ACEOF
21997#line $LINENO "configure"
21998/* confdefs.h. */
21999_ACEOF
22000cat confdefs.h >>conftest.$ac_ext
22001cat >>conftest.$ac_ext <<_ACEOF
22002/* end confdefs.h. */
90dd450c 22003/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22004 which can conflict with char connect (); below.
22005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22006 <limits.h> exists even on freestanding compilers. */
22007#ifdef __STDC__
22008# include <limits.h>
22009#else
22010# include <assert.h>
22011#endif
90dd450c 22012/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22013#ifdef __cplusplus
22014extern "C"
22015{
22016#endif
90dd450c 22017/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22018 builtin and then its argument prototype would still apply. */
22019char connect ();
90dd450c
VZ
22020/* The GNU C library defines this for functions which it implements
22021 to always fail with ENOSYS. Some functions are actually named
22022 something starting with __ and the normal name is an alias. */
22023#if defined (__stub_connect) || defined (__stub___connect)
22024choke me
22025#else
e6cc62c6
VS
22026char (*f) () = connect;
22027#endif
22028#ifdef __cplusplus
22029}
90dd450c
VZ
22030#endif
22031
e6cc62c6
VS
22032int
22033main ()
22034{
22035return f != connect;
22036 ;
22037 return 0;
22038}
22039_ACEOF
22040rm -f conftest.$ac_objext conftest$ac_exeext
22041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22042 (eval $ac_link) 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try='test -s conftest$ac_exeext'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_cv_func_connect=yes
22053else
22054 echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057ac_cv_func_connect=no
22058fi
22059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22060fi
22061echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22062echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22063
90dd450c 22064 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22065 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22066echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22067if test "${ac_cv_lib_socket_connect+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22069else
e6cc62c6 22070 ac_check_lib_save_LIBS=$LIBS
90dd450c 22071LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22072cat >conftest.$ac_ext <<_ACEOF
22073#line $LINENO "configure"
22074/* confdefs.h. */
22075_ACEOF
22076cat confdefs.h >>conftest.$ac_ext
22077cat >>conftest.$ac_ext <<_ACEOF
22078/* end confdefs.h. */
22079
90dd450c 22080/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22081#ifdef __cplusplus
22082extern "C"
22083#endif
90dd450c 22084/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22085 builtin and then its argument prototype would still apply. */
22086char connect ();
22087int
22088main ()
22089{
22090connect ();
22091 ;
22092 return 0;
22093}
22094_ACEOF
22095rm -f conftest.$ac_objext conftest$ac_exeext
22096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22097 (eval $ac_link) 2>&5
22098 ac_status=$?
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -s conftest$ac_exeext'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 ac_cv_lib_socket_connect=yes
22108else
22109 echo "$as_me: failed program was:" >&5
22110sed 's/^/| /' conftest.$ac_ext >&5
22111
22112ac_cv_lib_socket_connect=no
22113fi
22114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22115LIBS=$ac_check_lib_save_LIBS
22116fi
22117echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22118echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22119if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22120 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22121fi
77e13408 22122
90dd450c 22123 fi
25d0687a 22124
e6cc62c6
VS
22125 # Guillermo Gomez says -lposix is necessary on A/UX.
22126 echo "$as_me:$LINENO: checking for remove" >&5
22127echo $ECHO_N "checking for remove... $ECHO_C" >&6
22128if test "${ac_cv_func_remove+set}" = set; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22130else
22131 cat >conftest.$ac_ext <<_ACEOF
22132#line $LINENO "configure"
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
90dd450c 22138/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22139 which can conflict with char remove (); below.
22140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141 <limits.h> exists even on freestanding compilers. */
22142#ifdef __STDC__
22143# include <limits.h>
22144#else
22145# include <assert.h>
22146#endif
90dd450c 22147/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22148#ifdef __cplusplus
22149extern "C"
22150{
22151#endif
90dd450c 22152/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22153 builtin and then its argument prototype would still apply. */
22154char remove ();
90dd450c
VZ
22155/* The GNU C library defines this for functions which it implements
22156 to always fail with ENOSYS. Some functions are actually named
22157 something starting with __ and the normal name is an alias. */
22158#if defined (__stub_remove) || defined (__stub___remove)
22159choke me
22160#else
e6cc62c6
VS
22161char (*f) () = remove;
22162#endif
22163#ifdef __cplusplus
22164}
90dd450c 22165#endif
55e80573 22166
e6cc62c6
VS
22167int
22168main ()
22169{
22170return f != remove;
22171 ;
22172 return 0;
22173}
22174_ACEOF
22175rm -f conftest.$ac_objext conftest$ac_exeext
22176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22177 (eval $ac_link) 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } &&
22181 { ac_try='test -s conftest$ac_exeext'
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; }; then
22187 ac_cv_func_remove=yes
22188else
22189 echo "$as_me: failed program was:" >&5
22190sed 's/^/| /' conftest.$ac_ext >&5
22191
22192ac_cv_func_remove=no
22193fi
22194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22195fi
22196echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22197echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22198
90dd450c 22199 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22200 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22201echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22202if test "${ac_cv_lib_posix_remove+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22204else
e6cc62c6 22205 ac_check_lib_save_LIBS=$LIBS
90dd450c 22206LIBS="-lposix $LIBS"
e6cc62c6
VS
22207cat >conftest.$ac_ext <<_ACEOF
22208#line $LINENO "configure"
22209/* confdefs.h. */
22210_ACEOF
22211cat confdefs.h >>conftest.$ac_ext
22212cat >>conftest.$ac_ext <<_ACEOF
22213/* end confdefs.h. */
22214
90dd450c 22215/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22216#ifdef __cplusplus
22217extern "C"
22218#endif
90dd450c 22219/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22220 builtin and then its argument prototype would still apply. */
22221char remove ();
22222int
22223main ()
22224{
22225remove ();
22226 ;
22227 return 0;
22228}
22229_ACEOF
22230rm -f conftest.$ac_objext conftest$ac_exeext
22231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22232 (eval $ac_link) 2>&5
22233 ac_status=$?
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } &&
22236 { ac_try='test -s conftest$ac_exeext'
22237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22238 (eval $ac_try) 2>&5
22239 ac_status=$?
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }; }; then
22242 ac_cv_lib_posix_remove=yes
22243else
22244 echo "$as_me: failed program was:" >&5
22245sed 's/^/| /' conftest.$ac_ext >&5
22246
22247ac_cv_lib_posix_remove=no
22248fi
22249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22250LIBS=$ac_check_lib_save_LIBS
22251fi
22252echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22253echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22254if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22256fi
f6bcfd97 22257
6fa882bd
RR
22258 fi
22259
90dd450c 22260 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22261 echo "$as_me:$LINENO: checking for shmat" >&5
22262echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22263if test "${ac_cv_func_shmat+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22265else
22266 cat >conftest.$ac_ext <<_ACEOF
22267#line $LINENO "configure"
22268/* confdefs.h. */
22269_ACEOF
22270cat confdefs.h >>conftest.$ac_ext
22271cat >>conftest.$ac_ext <<_ACEOF
22272/* end confdefs.h. */
90dd450c 22273/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22274 which can conflict with char shmat (); below.
22275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22276 <limits.h> exists even on freestanding compilers. */
22277#ifdef __STDC__
22278# include <limits.h>
22279#else
22280# include <assert.h>
22281#endif
90dd450c 22282/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22283#ifdef __cplusplus
22284extern "C"
22285{
22286#endif
90dd450c 22287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22288 builtin and then its argument prototype would still apply. */
22289char shmat ();
90dd450c
VZ
22290/* The GNU C library defines this for functions which it implements
22291 to always fail with ENOSYS. Some functions are actually named
22292 something starting with __ and the normal name is an alias. */
22293#if defined (__stub_shmat) || defined (__stub___shmat)
22294choke me
22295#else
e6cc62c6
VS
22296char (*f) () = shmat;
22297#endif
22298#ifdef __cplusplus
22299}
90dd450c 22300#endif
10f2d63a 22301
e6cc62c6
VS
22302int
22303main ()
22304{
22305return f != shmat;
22306 ;
22307 return 0;
22308}
22309_ACEOF
22310rm -f conftest.$ac_objext conftest$ac_exeext
22311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22312 (eval $ac_link) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } &&
22316 { ac_try='test -s conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_func_shmat=yes
22323else
22324 echo "$as_me: failed program was:" >&5
22325sed 's/^/| /' conftest.$ac_ext >&5
22326
22327ac_cv_func_shmat=no
22328fi
22329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22330fi
22331echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22332echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22333
90dd450c 22334 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22335 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22336echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22337if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22339else
e6cc62c6 22340 ac_check_lib_save_LIBS=$LIBS
90dd450c 22341LIBS="-lipc $LIBS"
e6cc62c6
VS
22342cat >conftest.$ac_ext <<_ACEOF
22343#line $LINENO "configure"
22344/* confdefs.h. */
22345_ACEOF
22346cat confdefs.h >>conftest.$ac_ext
22347cat >>conftest.$ac_ext <<_ACEOF
22348/* end confdefs.h. */
22349
8284b0c5 22350/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22351#ifdef __cplusplus
22352extern "C"
22353#endif
90dd450c 22354/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22355 builtin and then its argument prototype would still apply. */
22356char shmat ();
22357int
22358main ()
22359{
22360shmat ();
22361 ;
22362 return 0;
22363}
22364_ACEOF
22365rm -f conftest.$ac_objext conftest$ac_exeext
22366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22367 (eval $ac_link) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } &&
22371 { ac_try='test -s conftest$ac_exeext'
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; }; then
22377 ac_cv_lib_ipc_shmat=yes
22378else
22379 echo "$as_me: failed program was:" >&5
22380sed 's/^/| /' conftest.$ac_ext >&5
22381
22382ac_cv_lib_ipc_shmat=no
22383fi
22384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22385LIBS=$ac_check_lib_save_LIBS
22386fi
22387echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22388echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22389if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22390 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22391fi
22392
d558c907 22393 fi
90dd450c 22394 fi
3a922bb4 22395
90dd450c 22396 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22397 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22398 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22399 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22400 # check for ICE first), but we must link in the order -lSM -lICE or
22401 # we get undefined symbols. So assume we have SM if we have ICE.
22402 # These have to be linked with before -lX11, unlike the other
22403 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22404 # John Interrante, Karl Berry
22405 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22406echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22407if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409else
22410 ac_check_lib_save_LIBS=$LIBS
f09359cf 22411LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22412cat >conftest.$ac_ext <<_ACEOF
22413#line $LINENO "configure"
22414/* confdefs.h. */
22415_ACEOF
22416cat confdefs.h >>conftest.$ac_ext
22417cat >>conftest.$ac_ext <<_ACEOF
22418/* end confdefs.h. */
22419
90dd450c 22420/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22421#ifdef __cplusplus
22422extern "C"
22423#endif
90dd450c 22424/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22425 builtin and then its argument prototype would still apply. */
22426char IceConnectionNumber ();
22427int
22428main ()
22429{
22430IceConnectionNumber ();
22431 ;
22432 return 0;
22433}
22434_ACEOF
22435rm -f conftest.$ac_objext conftest$ac_exeext
22436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22437 (eval $ac_link) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -s conftest$ac_exeext'
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }; then
22447 ac_cv_lib_ICE_IceConnectionNumber=yes
22448else
22449 echo "$as_me: failed program was:" >&5
22450sed 's/^/| /' conftest.$ac_ext >&5
22451
22452ac_cv_lib_ICE_IceConnectionNumber=no
22453fi
22454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22455LIBS=$ac_check_lib_save_LIBS
22456fi
22457echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22458echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22459if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22460 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22461fi
10f2d63a 22462
e6cc62c6 22463 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22464
22465fi
22466
8284b0c5 22467
90dd450c 22468 if test "$no_x" = "yes"; then
e6cc62c6
VS
22469 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22470echo "$as_me: error: X11 not found" >&2;}
22471 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22472 fi
22473
22474 GUI_TK_LIBRARY="$X_LIBS"
22475 TOOLKIT_INCLUDE="$X_CFLAGS"
22476 AFMINSTALL=afminstall
22477 COMPILED_X_PROGRAM=0
22478
21d1c967 22479 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22480 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22481echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22482 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22483 echo "$as_me:$LINENO: result: not found" >&5
22484echo "${ECHO_T}not found" >&6
22485 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22486echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22487 { (exit 1); exit 1; }; }
90dd450c 22488 else
e6cc62c6
VS
22489 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22490echo "${ECHO_T}$MICROWIN" >&6
22491 cat >>confdefs.h <<\_ACEOF
21d1c967 22492#define wxUSE_NANOX 1
e6cc62c6 22493_ACEOF
21d1c967 22494
90dd450c
VZ
22495 fi
22496 fi
22497
22498 xpm_link=
e6cc62c6
VS
22499 echo "$as_me:$LINENO: checking for Xpm library" >&5
22500echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22501
90dd450c 22502ac_find_libraries=
2b5f62a0 22503for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22504 do
22505 for ac_extension in a so sl dylib; do
22506 if test -f "$ac_dir/libXpm.$ac_extension"; then
22507 ac_find_libraries=$ac_dir
22508 break 2
22509 fi
22510 done
22511 done
22512
22513 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22514
90dd450c
VZ
22515 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22516 result=$?
22517 if test $result = 0; then
22518 ac_path_to_link=""
22519 else
22520 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22521 fi
90dd450c 22522
21d1c967
GD
22523 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22524 xpm_link=" -lXpm"
e6cc62c6 22525 cat >>confdefs.h <<\_ACEOF
21d1c967 22526#define wxHAVE_LIB_XPM 1
e6cc62c6 22527_ACEOF
90dd450c 22528
e6cc62c6
VS
22529 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22530echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22531 else
e6cc62c6
VS
22532 cat >conftest.$ac_ext <<_ACEOF
22533#line $LINENO "configure"
22534/* confdefs.h. */
22535_ACEOF
22536cat confdefs.h >>conftest.$ac_ext
22537cat >>conftest.$ac_ext <<_ACEOF
22538/* end confdefs.h. */
90dd450c 22539
21d1c967 22540 #include <X11/xpm.h>
e6cc62c6
VS
22541
22542int
22543main ()
22544{
6f72b082 22545
21d1c967
GD
22546 int version;
22547 version = XpmLibraryVersion();
e6cc62c6
VS
22548
22549 ;
22550 return 0;
22551}
22552_ACEOF
22553rm -f conftest.$ac_objext
22554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22555 (eval $ac_compile) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } &&
22559 { ac_try='test -s conftest.$ac_objext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22562 ac_status=$?
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565
21d1c967 22566 xpm_link=" -lXpm"
e6cc62c6 22567 cat >>confdefs.h <<\_ACEOF
21d1c967 22568#define wxHAVE_LIB_XPM 1
e6cc62c6 22569_ACEOF
90dd450c 22570
e6cc62c6
VS
22571 echo "$as_me:$LINENO: result: found in default search path" >&5
22572echo "${ECHO_T}found in default search path" >&6
21d1c967 22573 COMPILED_X_PROGRAM=0
e6cc62c6 22574
21d1c967 22575else
e6cc62c6
VS
22576 echo "$as_me: failed program was:" >&5
22577sed 's/^/| /' conftest.$ac_ext >&5
22578
22579
22580 echo "$as_me:$LINENO: result: no" >&5
22581echo "${ECHO_T}no" >&6
22582 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22583echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22584
22585
6f72b082 22586fi
e6cc62c6 22587rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22588 fi
90dd450c 22589
e6cc62c6
VS
22590 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22591echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22592if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22594else
e6cc62c6 22595 ac_check_lib_save_LIBS=$LIBS
f7f78039 22596LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22597cat >conftest.$ac_ext <<_ACEOF
22598#line $LINENO "configure"
22599/* confdefs.h. */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h. */
22604
f7f78039 22605/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22606#ifdef __cplusplus
22607extern "C"
22608#endif
f7f78039 22609/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22610 builtin and then its argument prototype would still apply. */
22611char XShapeQueryExtension ();
22612int
22613main ()
22614{
22615XShapeQueryExtension ();
22616 ;
22617 return 0;
22618}
22619_ACEOF
22620rm -f conftest.$ac_objext conftest$ac_exeext
22621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22622 (eval $ac_link) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } &&
22626 { ac_try='test -s conftest$ac_exeext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 ac_cv_lib_Xext_XShapeQueryExtension=yes
22633else
22634 echo "$as_me: failed program was:" >&5
22635sed 's/^/| /' conftest.$ac_ext >&5
22636
22637ac_cv_lib_Xext_XShapeQueryExtension=no
22638fi
22639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22640LIBS=$ac_check_lib_save_LIBS
22641fi
22642echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22643echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22644if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22645
f7f78039
MB
22646 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22647 wxHAVE_XEXT_LIB=1
e6cc62c6 22648
f7f78039
MB
22649fi
22650
22651
2b5f62a0 22652 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22653
2b5f62a0 22654 succeeded=no
90dd450c 22655
2b5f62a0
VZ
22656 if test -z "$PKG_CONFIG"; then
22657 # Extract the first word of "pkg-config", so it can be a program name with args.
22658set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22659echo "$as_me:$LINENO: checking for $ac_word" >&5
22660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22661if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22663else
e6cc62c6
VS
22664 case $PKG_CONFIG in
22665 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22666 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22667 ;;
2b5f62a0 22668 *)
e6cc62c6
VS
22669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22670for as_dir in $PATH
22671do
22672 IFS=$as_save_IFS
22673 test -z "$as_dir" && as_dir=.
22674 for ac_exec_ext in '' $ac_executable_extensions; do
22675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22676 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22678 break 2
22679 fi
22680done
22681done
22682
2b5f62a0
VZ
22683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22684 ;;
22685esac
22686fi
e6cc62c6
VS
22687PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22688
2b5f62a0 22689if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22690 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22691echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22692else
e6cc62c6
VS
22693 echo "$as_me:$LINENO: result: no" >&5
22694echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22695fi
22696
22697 fi
22698
22699 if test "$PKG_CONFIG" = "no" ; then
22700 echo "*** The pkg-config script could not be found. Make sure it is"
22701 echo "*** in your path, or set the PKG_CONFIG environment variable"
22702 echo "*** to the full path to pkg-config."
22703 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22704 else
22705 PKG_CONFIG_MIN_VERSION=0.9.0
22706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22707 echo "$as_me:$LINENO: checking for pangox" >&5
22708echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22709
22710 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22711 echo "$as_me:$LINENO: result: yes" >&5
22712echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22713 succeeded=yes
22714
e6cc62c6
VS
22715 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22716echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22717 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22718 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22719echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22720
e6cc62c6
VS
22721 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22722echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22723 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22724 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22725echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22726 else
22727 PANGOX_CFLAGS=""
22728 PANGOX_LIBS=""
e6cc62c6 22729 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22730 ## do set a variable so people can do so.
22731 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22732
2b5f62a0
VZ
22733 fi
22734
e6cc62c6
VS
22735
22736
2b5f62a0
VZ
22737 else
22738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22740 fi
22741 fi
22742
22743 if test $succeeded = yes; then
e6cc62c6 22744
2b5f62a0 22745 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22746 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22747
2b5f62a0 22748 else
e6cc62c6
VS
22749
22750 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22751echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22752 { (exit 1); exit 1; }; }
22753
22754
2b5f62a0
VZ
22755 fi
22756
e6cc62c6 22757
2b5f62a0
VZ
22758 succeeded=no
22759
22760 if test -z "$PKG_CONFIG"; then
22761 # Extract the first word of "pkg-config", so it can be a program name with args.
22762set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22763echo "$as_me:$LINENO: checking for $ac_word" >&5
22764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22765if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22767else
e6cc62c6
VS
22768 case $PKG_CONFIG in
22769 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22770 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22771 ;;
2b5f62a0 22772 *)
e6cc62c6
VS
22773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22774for as_dir in $PATH
22775do
22776 IFS=$as_save_IFS
22777 test -z "$as_dir" && as_dir=.
22778 for ac_exec_ext in '' $ac_executable_extensions; do
22779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22780 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22782 break 2
22783 fi
22784done
22785done
22786
2b5f62a0
VZ
22787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22788 ;;
22789esac
22790fi
e6cc62c6
VS
22791PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22792
2b5f62a0 22793if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22794 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22795echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22796else
e6cc62c6
VS
22797 echo "$as_me:$LINENO: result: no" >&5
22798echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22799fi
22800
22801 fi
22802
22803 if test "$PKG_CONFIG" = "no" ; then
22804 echo "*** The pkg-config script could not be found. Make sure it is"
22805 echo "*** in your path, or set the PKG_CONFIG environment variable"
22806 echo "*** to the full path to pkg-config."
22807 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22808 else
22809 PKG_CONFIG_MIN_VERSION=0.9.0
22810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22811 echo "$as_me:$LINENO: checking for pangoft2" >&5
22812echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22813
22814 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22815 echo "$as_me:$LINENO: result: yes" >&5
22816echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22817 succeeded=yes
22818
e6cc62c6
VS
22819 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22820echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22821 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22822 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22823echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22824
e6cc62c6
VS
22825 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22826echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22827 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22828 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22829echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22830 else
22831 PANGOFT2_CFLAGS=""
22832 PANGOFT2_LIBS=""
e6cc62c6 22833 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22834 ## do set a variable so people can do so.
22835 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22836
2b5f62a0
VZ
22837 fi
22838
e6cc62c6
VS
22839
22840
2b5f62a0
VZ
22841 else
22842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22844 fi
22845 fi
22846
22847 if test $succeeded = yes; then
e6cc62c6 22848
2b5f62a0 22849 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22850 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22851
2b5f62a0 22852 else
e6cc62c6
VS
22853
22854 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22855echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22856 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22857
22858
2b5f62a0
VZ
22859 fi
22860
e6cc62c6 22861
2b5f62a0
VZ
22862 succeeded=no
22863
22864 if test -z "$PKG_CONFIG"; then
22865 # Extract the first word of "pkg-config", so it can be a program name with args.
22866set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22867echo "$as_me:$LINENO: checking for $ac_word" >&5
22868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22869if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22871else
e6cc62c6
VS
22872 case $PKG_CONFIG in
22873 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22875 ;;
2b5f62a0 22876 *)
e6cc62c6
VS
22877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22878for as_dir in $PATH
22879do
22880 IFS=$as_save_IFS
22881 test -z "$as_dir" && as_dir=.
22882 for ac_exec_ext in '' $ac_executable_extensions; do
22883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22886 break 2
22887 fi
22888done
22889done
22890
2b5f62a0
VZ
22891 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22892 ;;
22893esac
22894fi
e6cc62c6
VS
22895PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22896
2b5f62a0 22897if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22898 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22899echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22900else
e6cc62c6
VS
22901 echo "$as_me:$LINENO: result: no" >&5
22902echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22903fi
22904
22905 fi
22906
22907 if test "$PKG_CONFIG" = "no" ; then
22908 echo "*** The pkg-config script could not be found. Make sure it is"
22909 echo "*** in your path, or set the PKG_CONFIG environment variable"
22910 echo "*** to the full path to pkg-config."
22911 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22912 else
22913 PKG_CONFIG_MIN_VERSION=0.9.0
22914 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22915 echo "$as_me:$LINENO: checking for pangoxft" >&5
22916echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22917
22918 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22919 echo "$as_me:$LINENO: result: yes" >&5
22920echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22921 succeeded=yes
22922
e6cc62c6
VS
22923 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22924echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22925 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22926 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22927echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22928
e6cc62c6
VS
22929 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22930echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22931 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22932 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22933echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22934 else
22935 PANGOXFT_CFLAGS=""
22936 PANGOXFT_LIBS=""
e6cc62c6 22937 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22938 ## do set a variable so people can do so.
22939 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22940
2b5f62a0
VZ
22941 fi
22942
e6cc62c6
VS
22943
22944
2b5f62a0
VZ
22945 else
22946 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22947 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22948 fi
22949 fi
22950
22951 if test $succeeded = yes; then
e6cc62c6 22952
2b5f62a0 22953 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22954 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22955
2b5f62a0 22956 else
e6cc62c6
VS
22957
22958 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22959echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22960
22961
2b5f62a0
VZ
22962 fi
22963
22964 fi
22965
22966 wxUSE_UNIVERSAL="yes"
22967
22968 if test "$wxUSE_NANOX" = "yes"; then
22969 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22970 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
22971 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22972 else
22973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22974 fi
22975
22976 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22977 TOOLKIT=X11
22978 GUIDIST=X11_DIST
22979 fi
22980
21d1c967
GD
22981 if test "$wxUSE_MOTIF" = 1; then
22982 if test "$no_x" = yes; then
22983 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22984
22985cat >>confdefs.h <<\_ACEOF
21d1c967 22986#define X_DISPLAY_MISSING 1
e6cc62c6 22987_ACEOF
21d1c967
GD
22988
22989 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22990else
22991 if test -n "$x_includes"; then
22992 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22993 fi
22994
21d1c967
GD
22995 # It would also be nice to do this for all -L options, not just this one.
22996 if test -n "$x_libraries"; then
22997 X_LIBS="$X_LIBS -L$x_libraries"
22998 # For Solaris; some versions of Sun CC require a space after -R and
22999 # others require no space. Words are not sufficient . . . .
e6cc62c6 23000 case `(uname -sr) 2>/dev/null` in
21d1c967 23001 "SunOS 5"*)
e6cc62c6
VS
23002 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23003echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23004 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23005 cat >conftest.$ac_ext <<_ACEOF
23006#line $LINENO "configure"
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
23012
23013int
23014main ()
23015{
21d1c967 23016
e6cc62c6
VS
23017 ;
23018 return 0;
23019}
23020_ACEOF
23021rm -f conftest.$ac_objext conftest$ac_exeext
23022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23023 (eval $ac_link) 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try='test -s conftest$ac_exeext'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
21d1c967 23033 ac_R_nospace=yes
698dcdb6 23034else
e6cc62c6
VS
23035 echo "$as_me: failed program was:" >&5
23036sed 's/^/| /' conftest.$ac_ext >&5
23037
23038ac_R_nospace=no
10f2d63a 23039fi
e6cc62c6 23040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23041 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23042 echo "$as_me:$LINENO: result: no" >&5
23043echo "${ECHO_T}no" >&6
21d1c967
GD
23044 X_LIBS="$X_LIBS -R$x_libraries"
23045 else
23046 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
23047 cat >conftest.$ac_ext <<_ACEOF
23048#line $LINENO "configure"
23049/* confdefs.h. */
23050_ACEOF
23051cat confdefs.h >>conftest.$ac_ext
23052cat >>conftest.$ac_ext <<_ACEOF
23053/* end confdefs.h. */
23054
23055int
23056main ()
23057{
f0c87536 23058
e6cc62c6
VS
23059 ;
23060 return 0;
23061}
23062_ACEOF
23063rm -f conftest.$ac_objext conftest$ac_exeext
23064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23065 (eval $ac_link) 2>&5
23066 ac_status=$?
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } &&
23069 { ac_try='test -s conftest$ac_exeext'
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; }; then
21d1c967
GD
23075 ac_R_space=yes
23076else
e6cc62c6
VS
23077 echo "$as_me: failed program was:" >&5
23078sed 's/^/| /' conftest.$ac_ext >&5
23079
23080ac_R_space=no
21d1c967 23081fi
e6cc62c6 23082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23083 if test $ac_R_space = yes; then
e6cc62c6
VS
23084 echo "$as_me:$LINENO: result: yes" >&5
23085echo "${ECHO_T}yes" >&6
21d1c967
GD
23086 X_LIBS="$X_LIBS -R $x_libraries"
23087 else
e6cc62c6
VS
23088 echo "$as_me:$LINENO: result: neither works" >&5
23089echo "${ECHO_T}neither works" >&6
21d1c967
GD
23090 fi
23091 fi
e6cc62c6 23092 LIBS=$ac_xsave_LIBS
21d1c967
GD
23093 esac
23094 fi
90dd450c 23095
21d1c967
GD
23096 # Check for system-dependent libraries X programs must link with.
23097 # Do this before checking for the system-independent R6 libraries
23098 # (-lICE), since we may need -lsocket or whatever for X linking.
23099
23100 if test "$ISC" = yes; then
23101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23102 else
e6cc62c6
VS
23103 # Martyn Johnson says this is needed for Ultrix, if the X
23104 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23105 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23106 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23107 cat >conftest.$ac_ext <<_ACEOF
23108#line $LINENO "configure"
23109/* confdefs.h. */
23110_ACEOF
23111cat confdefs.h >>conftest.$ac_ext
23112cat >>conftest.$ac_ext <<_ACEOF
23113/* end confdefs.h. */
23114
247f5006 23115/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23116#ifdef __cplusplus
23117extern "C"
23118#endif
247f5006 23119/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23120 builtin and then its argument prototype would still apply. */
23121char XOpenDisplay ();
23122int
23123main ()
23124{
23125XOpenDisplay ();
23126 ;
23127 return 0;
23128}
23129_ACEOF
23130rm -f conftest.$ac_objext conftest$ac_exeext
23131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23132 (eval $ac_link) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } &&
23136 { ac_try='test -s conftest$ac_exeext'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 :
23143else
23144 echo "$as_me: failed program was:" >&5
23145sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23146
e6cc62c6
VS
23147echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23148echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23149if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23151else
e6cc62c6
VS
23152 ac_check_lib_save_LIBS=$LIBS
23153LIBS="-ldnet $LIBS"
23154cat >conftest.$ac_ext <<_ACEOF
23155#line $LINENO "configure"
23156/* confdefs.h. */
23157_ACEOF
23158cat confdefs.h >>conftest.$ac_ext
23159cat >>conftest.$ac_ext <<_ACEOF
23160/* end confdefs.h. */
a0b9e27f 23161
e6cc62c6
VS
23162/* Override any gcc2 internal prototype to avoid an error. */
23163#ifdef __cplusplus
23164extern "C"
23165#endif
23166/* We use char because int might match the return type of a gcc2
23167 builtin and then its argument prototype would still apply. */
23168char dnet_ntoa ();
23169int
23170main ()
23171{
23172dnet_ntoa ();
23173 ;
23174 return 0;
23175}
23176_ACEOF
23177rm -f conftest.$ac_objext conftest$ac_exeext
23178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23179 (eval $ac_link) 2>&5
23180 ac_status=$?
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } &&
23183 { ac_try='test -s conftest$ac_exeext'
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23186 ac_status=$?
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; }; then
23189 ac_cv_lib_dnet_dnet_ntoa=yes
23190else
23191 echo "$as_me: failed program was:" >&5
23192sed 's/^/| /' conftest.$ac_ext >&5
23193
23194ac_cv_lib_dnet_dnet_ntoa=no
23195fi
23196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23197LIBS=$ac_check_lib_save_LIBS
23198fi
23199echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23200echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23201if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23202 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23203fi
0fb0dd83 23204
21d1c967 23205 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23206 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23207echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23208if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23210else
e6cc62c6 23211 ac_check_lib_save_LIBS=$LIBS
21d1c967 23212LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23213cat >conftest.$ac_ext <<_ACEOF
23214#line $LINENO "configure"
23215/* confdefs.h. */
23216_ACEOF
23217cat confdefs.h >>conftest.$ac_ext
23218cat >>conftest.$ac_ext <<_ACEOF
23219/* end confdefs.h. */
23220
21d1c967 23221/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23222#ifdef __cplusplus
23223extern "C"
23224#endif
21d1c967 23225/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23226 builtin and then its argument prototype would still apply. */
23227char dnet_ntoa ();
23228int
23229main ()
23230{
23231dnet_ntoa ();
23232 ;
23233 return 0;
23234}
23235_ACEOF
23236rm -f conftest.$ac_objext conftest$ac_exeext
23237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23238 (eval $ac_link) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -s conftest$ac_exeext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23249else
23250 echo "$as_me: failed program was:" >&5
23251sed 's/^/| /' conftest.$ac_ext >&5
23252
23253ac_cv_lib_dnet_stub_dnet_ntoa=no
23254fi
23255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23256LIBS=$ac_check_lib_save_LIBS
23257fi
23258echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23259echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23260if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23261 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23262fi
23263
21d1c967 23264 fi
e6cc62c6
VS
23265fi
23266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23267 LIBS="$ac_xsave_LIBS"
90dd450c 23268
21d1c967
GD
23269 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23270 # to get the SysV transport functions.
e6cc62c6 23271 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23272 # needs -lnsl.
23273 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23274 # on Irix 5.2, according to T.E. Dickey.
23275 # The functions gethostbyname, getservbyname, and inet_addr are
23276 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23277 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23278echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23279if test "${ac_cv_func_gethostbyname+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23281else
23282 cat >conftest.$ac_ext <<_ACEOF
23283#line $LINENO "configure"
23284/* confdefs.h. */
23285_ACEOF
23286cat confdefs.h >>conftest.$ac_ext
23287cat >>conftest.$ac_ext <<_ACEOF
23288/* end confdefs.h. */
21d1c967 23289/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23290 which can conflict with char gethostbyname (); below.
23291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23292 <limits.h> exists even on freestanding compilers. */
23293#ifdef __STDC__
23294# include <limits.h>
23295#else
23296# include <assert.h>
23297#endif
21d1c967 23298/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23299#ifdef __cplusplus
23300extern "C"
23301{
23302#endif
21d1c967 23303/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23304 builtin and then its argument prototype would still apply. */
23305char gethostbyname ();
21d1c967
GD
23306/* The GNU C library defines this for functions which it implements
23307 to always fail with ENOSYS. Some functions are actually named
23308 something starting with __ and the normal name is an alias. */
23309#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23310choke me
23311#else
e6cc62c6
VS
23312char (*f) () = gethostbyname;
23313#endif
23314#ifdef __cplusplus
23315}
21d1c967 23316#endif
90dd450c 23317
e6cc62c6
VS
23318int
23319main ()
23320{
23321return f != gethostbyname;
23322 ;
23323 return 0;
23324}
23325_ACEOF
23326rm -f conftest.$ac_objext conftest$ac_exeext
23327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23328 (eval $ac_link) 2>&5
23329 ac_status=$?
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
23332 { ac_try='test -s conftest$ac_exeext'
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; }; then
23338 ac_cv_func_gethostbyname=yes
23339else
23340 echo "$as_me: failed program was:" >&5
23341sed 's/^/| /' conftest.$ac_ext >&5
23342
23343ac_cv_func_gethostbyname=no
23344fi
23345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23346fi
23347echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23348echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23349
21d1c967 23350 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23351 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23352echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23353if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23355else
e6cc62c6 23356 ac_check_lib_save_LIBS=$LIBS
21d1c967 23357LIBS="-lnsl $LIBS"
e6cc62c6
VS
23358cat >conftest.$ac_ext <<_ACEOF
23359#line $LINENO "configure"
23360/* confdefs.h. */
23361_ACEOF
23362cat confdefs.h >>conftest.$ac_ext
23363cat >>conftest.$ac_ext <<_ACEOF
23364/* end confdefs.h. */
23365
21d1c967 23366/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23367#ifdef __cplusplus
23368extern "C"
23369#endif
21d1c967 23370/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23371 builtin and then its argument prototype would still apply. */
23372char gethostbyname ();
23373int
23374main ()
23375{
23376gethostbyname ();
23377 ;
23378 return 0;
23379}
23380_ACEOF
23381rm -f conftest.$ac_objext conftest$ac_exeext
23382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23383 (eval $ac_link) 2>&5
23384 ac_status=$?
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } &&
23387 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23393 ac_cv_lib_nsl_gethostbyname=yes
23394else
23395 echo "$as_me: failed program was:" >&5
23396sed 's/^/| /' conftest.$ac_ext >&5
23397
23398ac_cv_lib_nsl_gethostbyname=no
23399fi
23400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23401LIBS=$ac_check_lib_save_LIBS
23402fi
23403echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23404echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23405if test $ac_cv_lib_nsl_gethostbyname = yes; then
23406 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23407fi
247f5006 23408
e6cc62c6
VS
23409 if test $ac_cv_lib_nsl_gethostbyname = no; then
23410 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23411echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23412if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23414else
e6cc62c6
VS
23415 ac_check_lib_save_LIBS=$LIBS
23416LIBS="-lbsd $LIBS"
23417cat >conftest.$ac_ext <<_ACEOF
23418#line $LINENO "configure"
23419/* confdefs.h. */
23420_ACEOF
23421cat confdefs.h >>conftest.$ac_ext
23422cat >>conftest.$ac_ext <<_ACEOF
23423/* end confdefs.h. */
23424
23425/* Override any gcc2 internal prototype to avoid an error. */
23426#ifdef __cplusplus
23427extern "C"
23428#endif
23429/* We use char because int might match the return type of a gcc2
23430 builtin and then its argument prototype would still apply. */
23431char gethostbyname ();
23432int
23433main ()
23434{
23435gethostbyname ();
23436 ;
23437 return 0;
23438}
23439_ACEOF
23440rm -f conftest.$ac_objext conftest$ac_exeext
23441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23442 (eval $ac_link) 2>&5
23443 ac_status=$?
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } &&
23446 { ac_try='test -s conftest$ac_exeext'
23447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448 (eval $ac_try) 2>&5
23449 ac_status=$?
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; }; then
23452 ac_cv_lib_bsd_gethostbyname=yes
23453else
23454 echo "$as_me: failed program was:" >&5
23455sed 's/^/| /' conftest.$ac_ext >&5
23456
23457ac_cv_lib_bsd_gethostbyname=no
23458fi
23459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23460LIBS=$ac_check_lib_save_LIBS
23461fi
23462echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23463echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23464if test $ac_cv_lib_bsd_gethostbyname = yes; then
23465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23466fi
90dd450c 23467
e6cc62c6 23468 fi
90dd450c
VZ
23469 fi
23470
21d1c967
GD
23471 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23472 # socket/setsockopt and other routines are undefined under SCO ODT
23473 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23474 # on later versions), says Simon Leinen: it contains gethostby*
23475 # variants that don't use the name server (or something). -lsocket
23476 # must be given before -lnsl if both are needed. We assume that
23477 # if connect needs -lnsl, so does gethostbyname.
23478 echo "$as_me:$LINENO: checking for connect" >&5
23479echo $ECHO_N "checking for connect... $ECHO_C" >&6
23480if test "${ac_cv_func_connect+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23482else
23483 cat >conftest.$ac_ext <<_ACEOF
23484#line $LINENO "configure"
23485/* confdefs.h. */
23486_ACEOF
23487cat confdefs.h >>conftest.$ac_ext
23488cat >>conftest.$ac_ext <<_ACEOF
23489/* end confdefs.h. */
21d1c967 23490/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23491 which can conflict with char connect (); below.
23492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23493 <limits.h> exists even on freestanding compilers. */
23494#ifdef __STDC__
23495# include <limits.h>
23496#else
23497# include <assert.h>
23498#endif
21d1c967 23499/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23500#ifdef __cplusplus
23501extern "C"
23502{
23503#endif
21d1c967 23504/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23505 builtin and then its argument prototype would still apply. */
23506char connect ();
21d1c967
GD
23507/* The GNU C library defines this for functions which it implements
23508 to always fail with ENOSYS. Some functions are actually named
23509 something starting with __ and the normal name is an alias. */
23510#if defined (__stub_connect) || defined (__stub___connect)
23511choke me
23512#else
e6cc62c6
VS
23513char (*f) () = connect;
23514#endif
23515#ifdef __cplusplus
23516}
21d1c967 23517#endif
90dd450c 23518
e6cc62c6
VS
23519int
23520main ()
23521{
23522return f != connect;
23523 ;
23524 return 0;
23525}
23526_ACEOF
23527rm -f conftest.$ac_objext conftest$ac_exeext
23528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23529 (eval $ac_link) 2>&5
23530 ac_status=$?
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } &&
23533 { ac_try='test -s conftest$ac_exeext'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_cv_func_connect=yes
23540else
23541 echo "$as_me: failed program was:" >&5
23542sed 's/^/| /' conftest.$ac_ext >&5
23543
23544ac_cv_func_connect=no
23545fi
23546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23547fi
23548echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23549echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23550
21d1c967 23551 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23552 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23553echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23554if test "${ac_cv_lib_socket_connect+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23556else
e6cc62c6 23557 ac_check_lib_save_LIBS=$LIBS
21d1c967 23558LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23559cat >conftest.$ac_ext <<_ACEOF
23560#line $LINENO "configure"
23561/* confdefs.h. */
23562_ACEOF
23563cat confdefs.h >>conftest.$ac_ext
23564cat >>conftest.$ac_ext <<_ACEOF
23565/* end confdefs.h. */
23566
21d1c967 23567/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23568#ifdef __cplusplus
23569extern "C"
23570#endif
21d1c967 23571/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23572 builtin and then its argument prototype would still apply. */
23573char connect ();
23574int
23575main ()
23576{
23577connect ();
23578 ;
23579 return 0;
23580}
23581_ACEOF
23582rm -f conftest.$ac_objext conftest$ac_exeext
23583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23584 (eval $ac_link) 2>&5
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } &&
23588 { ac_try='test -s conftest$ac_exeext'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; }; then
23594 ac_cv_lib_socket_connect=yes
23595else
23596 echo "$as_me: failed program was:" >&5
23597sed 's/^/| /' conftest.$ac_ext >&5
23598
23599ac_cv_lib_socket_connect=no
23600fi
23601rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23602LIBS=$ac_check_lib_save_LIBS
23603fi
23604echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23605echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23606if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23607 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23608fi
90dd450c 23609
21d1c967 23610 fi
90dd450c 23611
e6cc62c6
VS
23612 # Guillermo Gomez says -lposix is necessary on A/UX.
23613 echo "$as_me:$LINENO: checking for remove" >&5
23614echo $ECHO_N "checking for remove... $ECHO_C" >&6
23615if test "${ac_cv_func_remove+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23617else
23618 cat >conftest.$ac_ext <<_ACEOF
23619#line $LINENO "configure"
23620/* confdefs.h. */
23621_ACEOF
23622cat confdefs.h >>conftest.$ac_ext
23623cat >>conftest.$ac_ext <<_ACEOF
23624/* end confdefs.h. */
21d1c967 23625/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23626 which can conflict with char remove (); below.
23627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23628 <limits.h> exists even on freestanding compilers. */
23629#ifdef __STDC__
23630# include <limits.h>
23631#else
23632# include <assert.h>
23633#endif
21d1c967 23634/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23635#ifdef __cplusplus
23636extern "C"
23637{
23638#endif
21d1c967 23639/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23640 builtin and then its argument prototype would still apply. */
23641char remove ();
21d1c967
GD
23642/* The GNU C library defines this for functions which it implements
23643 to always fail with ENOSYS. Some functions are actually named
23644 something starting with __ and the normal name is an alias. */
23645#if defined (__stub_remove) || defined (__stub___remove)
23646choke me
23647#else
e6cc62c6
VS
23648char (*f) () = remove;
23649#endif
23650#ifdef __cplusplus
23651}
21d1c967 23652#endif
90dd450c 23653
e6cc62c6
VS
23654int
23655main ()
23656{
23657return f != remove;
23658 ;
23659 return 0;
23660}
23661_ACEOF
23662rm -f conftest.$ac_objext conftest$ac_exeext
23663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23664 (eval $ac_link) 2>&5
23665 ac_status=$?
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -s conftest$ac_exeext'
23669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23670 (eval $ac_try) 2>&5
23671 ac_status=$?
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); }; }; then
23674 ac_cv_func_remove=yes
23675else
23676 echo "$as_me: failed program was:" >&5
23677sed 's/^/| /' conftest.$ac_ext >&5
23678
23679ac_cv_func_remove=no
23680fi
23681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23682fi
23683echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23684echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23685
21d1c967 23686 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23687 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23688echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23689if test "${ac_cv_lib_posix_remove+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23691else
e6cc62c6 23692 ac_check_lib_save_LIBS=$LIBS
21d1c967 23693LIBS="-lposix $LIBS"
e6cc62c6
VS
23694cat >conftest.$ac_ext <<_ACEOF
23695#line $LINENO "configure"
23696/* confdefs.h. */
23697_ACEOF
23698cat confdefs.h >>conftest.$ac_ext
23699cat >>conftest.$ac_ext <<_ACEOF
23700/* end confdefs.h. */
23701
21d1c967 23702/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23703#ifdef __cplusplus
23704extern "C"
23705#endif
21d1c967 23706/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23707 builtin and then its argument prototype would still apply. */
23708char remove ();
23709int
23710main ()
23711{
23712remove ();
23713 ;
23714 return 0;
23715}
23716_ACEOF
23717rm -f conftest.$ac_objext conftest$ac_exeext
23718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23719 (eval $ac_link) 2>&5
23720 ac_status=$?
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } &&
23723 { ac_try='test -s conftest$ac_exeext'
23724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725 (eval $ac_try) 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); }; }; then
23729 ac_cv_lib_posix_remove=yes
23730else
23731 echo "$as_me: failed program was:" >&5
23732sed 's/^/| /' conftest.$ac_ext >&5
23733
23734ac_cv_lib_posix_remove=no
23735fi
23736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23737LIBS=$ac_check_lib_save_LIBS
23738fi
23739echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23740echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23741if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23743fi
19bc6aad 23744
90dd450c 23745 fi
19bc6aad 23746
21d1c967 23747 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23748 echo "$as_me:$LINENO: checking for shmat" >&5
23749echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23750if test "${ac_cv_func_shmat+set}" = set; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23752else
23753 cat >conftest.$ac_ext <<_ACEOF
23754#line $LINENO "configure"
23755/* confdefs.h. */
23756_ACEOF
23757cat confdefs.h >>conftest.$ac_ext
23758cat >>conftest.$ac_ext <<_ACEOF
23759/* end confdefs.h. */
21d1c967 23760/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23761 which can conflict with char shmat (); below.
23762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23763 <limits.h> exists even on freestanding compilers. */
23764#ifdef __STDC__
23765# include <limits.h>
23766#else
23767# include <assert.h>
23768#endif
21d1c967 23769/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23770#ifdef __cplusplus
23771extern "C"
23772{
23773#endif
21d1c967 23774/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23775 builtin and then its argument prototype would still apply. */
23776char shmat ();
21d1c967
GD
23777/* The GNU C library defines this for functions which it implements
23778 to always fail with ENOSYS. Some functions are actually named
23779 something starting with __ and the normal name is an alias. */
23780#if defined (__stub_shmat) || defined (__stub___shmat)
23781choke me
23782#else
e6cc62c6
VS
23783char (*f) () = shmat;
23784#endif
23785#ifdef __cplusplus
23786}
21d1c967 23787#endif
90dd450c 23788
e6cc62c6
VS
23789int
23790main ()
23791{
23792return f != shmat;
23793 ;
23794 return 0;
23795}
23796_ACEOF
23797rm -f conftest.$ac_objext conftest$ac_exeext
23798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23799 (eval $ac_link) 2>&5
23800 ac_status=$?
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } &&
23803 { ac_try='test -s conftest$ac_exeext'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23806 ac_status=$?
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; }; then
23809 ac_cv_func_shmat=yes
23810else
23811 echo "$as_me: failed program was:" >&5
23812sed 's/^/| /' conftest.$ac_ext >&5
23813
23814ac_cv_func_shmat=no
23815fi
23816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23817fi
23818echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23819echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23820
21d1c967 23821 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23822 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23823echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23824if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23825 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23826else
e6cc62c6 23827 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23828LIBS="-lipc $LIBS"
e6cc62c6
VS
23829cat >conftest.$ac_ext <<_ACEOF
23830#line $LINENO "configure"
23831/* confdefs.h. */
23832_ACEOF
23833cat confdefs.h >>conftest.$ac_ext
23834cat >>conftest.$ac_ext <<_ACEOF
23835/* end confdefs.h. */
23836
5c6fa7d2 23837/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23838#ifdef __cplusplus
23839extern "C"
23840#endif
5c6fa7d2 23841/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23842 builtin and then its argument prototype would still apply. */
23843char shmat ();
23844int
23845main ()
23846{
23847shmat ();
23848 ;
23849 return 0;
23850}
23851_ACEOF
23852rm -f conftest.$ac_objext conftest$ac_exeext
23853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23854 (eval $ac_link) 2>&5
23855 ac_status=$?
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } &&
23858 { ac_try='test -s conftest$ac_exeext'
23859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860 (eval $ac_try) 2>&5
23861 ac_status=$?
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); }; }; then
23864 ac_cv_lib_ipc_shmat=yes
23865else
23866 echo "$as_me: failed program was:" >&5
23867sed 's/^/| /' conftest.$ac_ext >&5
23868
23869ac_cv_lib_ipc_shmat=no
23870fi
23871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23872LIBS=$ac_check_lib_save_LIBS
23873fi
23874echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23875echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23876if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23878fi
90dd450c 23879
90dd450c 23880 fi
21d1c967 23881 fi
10f2d63a 23882
21d1c967 23883 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23884 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23885 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23886 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23887 # check for ICE first), but we must link in the order -lSM -lICE or
23888 # we get undefined symbols. So assume we have SM if we have ICE.
23889 # These have to be linked with before -lX11, unlike the other
23890 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23891 # John Interrante, Karl Berry
23892 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23893echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23894if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896else
23897 ac_check_lib_save_LIBS=$LIBS
f09359cf 23898LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23899cat >conftest.$ac_ext <<_ACEOF
23900#line $LINENO "configure"
23901/* confdefs.h. */
23902_ACEOF
23903cat confdefs.h >>conftest.$ac_ext
23904cat >>conftest.$ac_ext <<_ACEOF
23905/* end confdefs.h. */
23906
21d1c967 23907/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23908#ifdef __cplusplus
23909extern "C"
23910#endif
21d1c967 23911/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23912 builtin and then its argument prototype would still apply. */
23913char IceConnectionNumber ();
23914int
23915main ()
23916{
23917IceConnectionNumber ();
23918 ;
23919 return 0;
23920}
23921_ACEOF
23922rm -f conftest.$ac_objext conftest$ac_exeext
23923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924 (eval $ac_link) 2>&5
23925 ac_status=$?
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } &&
23928 { ac_try='test -s conftest$ac_exeext'
23929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23930 (eval $ac_try) 2>&5
23931 ac_status=$?
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); }; }; then
23934 ac_cv_lib_ICE_IceConnectionNumber=yes
23935else
23936 echo "$as_me: failed program was:" >&5
23937sed 's/^/| /' conftest.$ac_ext >&5
23938
23939ac_cv_lib_ICE_IceConnectionNumber=no
23940fi
23941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23942LIBS=$ac_check_lib_save_LIBS
23943fi
23944echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23945echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23946if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23947 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23948fi
21d1c967 23949
e6cc62c6 23950 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23951
10f2d63a
VZ
23952fi
23953
8284b0c5 23954
21d1c967 23955 if test "$no_x" = "yes"; then
e6cc62c6
VS
23956 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23957echo "$as_me: error: X11 not found" >&2;}
23958 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23959 fi
23960
2b5f62a0
VZ
23961 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23962 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23963 AFMINSTALL=afminstall
23964 COMPILED_X_PROGRAM=0
23965
e6cc62c6
VS
23966 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23967echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23968
21d1c967 23969ac_find_includes=
2b5f62a0 23970for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23971 do
23972 if test -f "$ac_dir/Xm/Xm.h"; then
23973 ac_find_includes=$ac_dir
23974 break
23975 fi
23976 done
23977
23978 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23979 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23980echo "${ECHO_T}found in $ac_find_includes" >&6
23981
2b5f62a0 23982 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23983 ac_path_to_include=""
23984 else
2b5f62a0
VZ
23985 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23986 result=$?
23987 if test $result = 0; then
23988 ac_path_to_include=""
23989 else
23990 ac_path_to_include=" -I$ac_find_includes"
23991 fi
dd0e4a90
VZ
23992 fi
23993
23994 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23995 else
e6cc62c6
VS
23996 cat >conftest.$ac_ext <<_ACEOF
23997#line $LINENO "configure"
23998/* confdefs.h. */
23999_ACEOF
24000cat confdefs.h >>conftest.$ac_ext
24001cat >>conftest.$ac_ext <<_ACEOF
24002/* end confdefs.h. */
21d1c967
GD
24003
24004 #include <Xm/Xm.h>
e6cc62c6
VS
24005
24006int
24007main ()
24008{
21d1c967
GD
24009
24010 int version;
24011 version = xmUseVersion;
e6cc62c6
VS
24012
24013 ;
24014 return 0;
24015}
24016_ACEOF
24017rm -f conftest.$ac_objext
24018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24019 (eval $ac_compile) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); } &&
24023 { ac_try='test -s conftest.$ac_objext'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24026 ac_status=$?
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; }; then
24029
24030 echo "$as_me:$LINENO: result: found in default search path" >&5
24031echo "${ECHO_T}found in default search path" >&6
21d1c967 24032 COMPILED_X_PROGRAM=1
e6cc62c6 24033
10f2d63a 24034else
e6cc62c6
VS
24035 echo "$as_me: failed program was:" >&5
24036sed 's/^/| /' conftest.$ac_ext >&5
24037
24038
24039 echo "$as_me:$LINENO: result: no" >&5
24040echo "${ECHO_T}no" >&6
24041 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24042echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24043 { (exit 1); exit 1; }; }
24044
24045
10f2d63a 24046fi
e6cc62c6 24047rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24048 fi
10f2d63a 24049
21d1c967 24050 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24051 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24052echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24053
21d1c967 24054ac_find_libraries=
2b5f62a0 24055for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24056 do
24057 for ac_extension in a so sl dylib; do
24058 if test -f "$ac_dir/libXm.$ac_extension"; then
24059 ac_find_libraries=$ac_dir
24060 break 2
24061 fi
24062 done
24063 done
24064
24065 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24066 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24067echo "${ECHO_T}found at $ac_find_libraries" >&6
24068
21d1c967 24069
21d1c967
GD
24070 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24071 result=$?
24072 if test $result = 0; then
24073 ac_path_to_link=""
24074 else
24075 ac_path_to_link=" -L$ac_find_libraries"
24076 fi
24077
21d1c967 24078 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24079 else
dd0e4a90
VZ
24080 save_CFLAGS=$CFLAGS
24081 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24082
e6cc62c6
VS
24083 cat >conftest.$ac_ext <<_ACEOF
24084#line $LINENO "configure"
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
21d1c967
GD
24090
24091 #include <Xm/Xm.h>
e6cc62c6
VS
24092
24093int
24094main ()
24095{
21d1c967
GD
24096
24097 int version;
24098 version = xmUseVersion;
e6cc62c6
VS
24099
24100 ;
24101 return 0;
24102}
24103_ACEOF
24104rm -f conftest.$ac_objext
24105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24106 (eval $ac_compile) 2>&5
24107 ac_status=$?
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } &&
24110 { ac_try='test -s conftest.$ac_objext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24113 ac_status=$?
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116
24117 echo "$as_me:$LINENO: result: found in default search path" >&5
24118echo "${ECHO_T}found in default search path" >&6
21d1c967 24119 COMPILED_X_PROGRAM=1
e6cc62c6 24120
d836ee96 24121else
e6cc62c6
VS
24122 echo "$as_me: failed program was:" >&5
24123sed 's/^/| /' conftest.$ac_ext >&5
24124
24125
24126 echo "$as_me:$LINENO: result: no" >&5
24127echo "${ECHO_T}no" >&6
24128 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24129echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24130 { (exit 1); exit 1; }; }
24131
24132
d836ee96 24133fi
e6cc62c6 24134rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24135
24136 CFLAGS=$save_CFLAGS
21d1c967
GD
24137 fi
24138 fi
24139
24140 xpm_link=
e6cc62c6
VS
24141 echo "$as_me:$LINENO: checking for Xpm library" >&5
24142echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24143
21d1c967 24144ac_find_libraries=
2b5f62a0 24145for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24146 do
24147 for ac_extension in a so sl dylib; do
24148 if test -f "$ac_dir/libXpm.$ac_extension"; then
24149 ac_find_libraries=$ac_dir
24150 break 2
24151 fi
24152 done
24153 done
24154
24155 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24156
21d1c967
GD
24157 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24158 result=$?
24159 if test $result = 0; then
24160 ac_path_to_link=""
24161 else
24162 ac_path_to_link=" -L$ac_find_libraries"
24163 fi
24164
24165 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24166
21d1c967 24167 xpm_link=" -lXpm"
e6cc62c6 24168 cat >>confdefs.h <<\_ACEOF
21d1c967 24169#define wxHAVE_LIB_XPM 1
e6cc62c6 24170_ACEOF
90dd450c 24171
e6cc62c6
VS
24172 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24173echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24174 else
dd0e4a90
VZ
24175 save_CFLAGS=$CFLAGS
24176 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24177
e6cc62c6
VS
24178 cat >conftest.$ac_ext <<_ACEOF
24179#line $LINENO "configure"
24180/* confdefs.h. */
24181_ACEOF
24182cat confdefs.h >>conftest.$ac_ext
24183cat >>conftest.$ac_ext <<_ACEOF
24184/* end confdefs.h. */
21d1c967
GD
24185
24186 #include <X11/xpm.h>
e6cc62c6
VS
24187
24188int
24189main ()
24190{
21d1c967
GD
24191
24192 int version;
24193 version = XpmLibraryVersion();
e6cc62c6
VS
24194
24195 ;
24196 return 0;
24197}
24198_ACEOF
24199rm -f conftest.$ac_objext
24200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24201 (eval $ac_compile) 2>&5
24202 ac_status=$?
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
24205 { ac_try='test -s conftest.$ac_objext'
24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; }; then
24211
21d1c967 24212 xpm_link=" -lXpm"
e6cc62c6 24213 cat >>confdefs.h <<\_ACEOF
21d1c967 24214#define wxHAVE_LIB_XPM 1
e6cc62c6 24215_ACEOF
21d1c967 24216
e6cc62c6
VS
24217 echo "$as_me:$LINENO: result: found in default search path" >&5
24218echo "${ECHO_T}found in default search path" >&6
21d1c967 24219 COMPILED_X_PROGRAM=0
e6cc62c6 24220
d836ee96 24221else
e6cc62c6
VS
24222 echo "$as_me: failed program was:" >&5
24223sed 's/^/| /' conftest.$ac_ext >&5
24224
24225
24226 echo "$as_me:$LINENO: result: no" >&5
24227echo "${ECHO_T}no" >&6
24228 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24229echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24230
24231
d836ee96 24232fi
e6cc62c6 24233rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24234
24235 CFLAGS=$save_CFLAGS
21d1c967
GD
24236 fi
24237
e6cc62c6
VS
24238 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24239echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24240 libp_link=""
24241 libsm_ice_link=""
24242 libs_found=0
24243 for libp in "" " -lXp"; do
24244 if test "$libs_found" = "0"; then
24245 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24246 if test "$libs_found" = "0"; then
6a30f1c8
MB
24247 save_LIBS="$LIBS"
24248 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24249 save_CFLAGS=$CFLAGS
24250 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24251
e6cc62c6
VS
24252 cat >conftest.$ac_ext <<_ACEOF
24253#line $LINENO "configure"
24254/* confdefs.h. */
24255_ACEOF
24256cat confdefs.h >>conftest.$ac_ext
24257cat >>conftest.$ac_ext <<_ACEOF
24258/* end confdefs.h. */
17234b26 24259
6a30f1c8
MB
24260 #include <Xm/Xm.h>
24261 #include <Xm/List.h>
e6cc62c6
VS
24262
24263int
24264main ()
24265{
6a30f1c8
MB
24266
24267 XmString string = NULL;
24268 Widget w = NULL;
24269 int position = 0;
24270 XmListAddItem(w, string, position);
e6cc62c6
VS
24271
24272 ;
24273 return 0;
24274}
24275_ACEOF
24276rm -f conftest.$ac_objext conftest$ac_exeext
24277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24278 (eval $ac_link) 2>&5
24279 ac_status=$?
24280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); } &&
24282 { ac_try='test -s conftest$ac_exeext'
24283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24284 (eval $ac_try) 2>&5
24285 ac_status=$?
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); }; }; then
24288
6a30f1c8
MB
24289 libp_link="$libp"
24290 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24291 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24292echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24293 libs_found=1
e6cc62c6 24294
6a30f1c8 24295else
e6cc62c6
VS
24296 echo "$as_me: failed program was:" >&5
24297sed 's/^/| /' conftest.$ac_ext >&5
24298
24299
24300
6a30f1c8 24301fi
e6cc62c6 24302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24303
6a30f1c8 24304 LIBS="$save_LIBS"
dd0e4a90 24305 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24306 fi
24307 done
24308 fi
24309 done
24310
24311 if test "$libs_found" = "0"; then
e6cc62c6
VS
24312 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24313echo "${ECHO_T}can't find the right libraries" >&6
24314 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24315echo "$as_me: error: can't link a simple motif program" >&2;}
24316 { (exit 1); exit 1; }; }
6a30f1c8
MB
24317 fi
24318
da494b40
MB
24319 save_CFLAGS=$CFLAGS
24320 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24321 echo "$as_me:$LINENO: checking for Motif 2" >&5
24322echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24323 cat >conftest.$ac_ext <<_ACEOF
24324#line $LINENO "configure"
24325/* confdefs.h. */
24326_ACEOF
24327cat confdefs.h >>conftest.$ac_ext
24328cat >>conftest.$ac_ext <<_ACEOF
24329/* end confdefs.h. */
da494b40
MB
24330
24331 #include <Xm/Xm.h>
e6cc62c6
VS
24332
24333int
24334main ()
24335{
da494b40
MB
24336
24337 #if XmVersion < 2000
24338 #error "Not Motif 2"
24339 #endif
e6cc62c6
VS
24340
24341 ;
24342 return 0;
24343}
24344_ACEOF
24345rm -f conftest.$ac_objext
24346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24347 (eval $ac_compile) 2>&5
24348 ac_status=$?
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } &&
24351 { ac_try='test -s conftest.$ac_objext'
24352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24353 (eval $ac_try) 2>&5
24354 ac_status=$?
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); }; }; then
24357
24358 cat >>confdefs.h <<\_ACEOF
da494b40 24359#define __WXMOTIF20__ 1
e6cc62c6
VS
24360_ACEOF
24361
24362 echo "$as_me:$LINENO: result: found" >&5
24363echo "${ECHO_T}found" >&6
da494b40 24364
da494b40 24365else
e6cc62c6
VS
24366 echo "$as_me: failed program was:" >&5
24367sed 's/^/| /' conftest.$ac_ext >&5
24368
24369
24370 cat >>confdefs.h <<\_ACEOF
da494b40 24371#define __WXMOTIF20__ 0
e6cc62c6
VS
24372_ACEOF
24373
24374 echo "$as_me:$LINENO: result: not found" >&5
24375echo "${ECHO_T}not found" >&6
da494b40 24376
da494b40 24377fi
e6cc62c6 24378rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24379 CFLAGS=$save_CFLAGS
24380
6a30f1c8 24381 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24382 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24383 TOOLKIT=MOTIF
24384 GUIDIST=MOTIF_DIST
f7f78039
MB
24385 wxHAVE_XEXT_LIB=1
24386 fi
24387
24388 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24389 test "$wxHAVE_XEXT_LIB" = 1; then
24390 save_CFLAGS="$CFLAGS"
24391 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24392
e6cc62c6
VS
24393 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24394echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24395 cat >conftest.$ac_ext <<_ACEOF
24396#line $LINENO "configure"
24397/* confdefs.h. */
24398_ACEOF
24399cat confdefs.h >>conftest.$ac_ext
24400cat >>conftest.$ac_ext <<_ACEOF
24401/* end confdefs.h. */
24402
24403 #include <X11/Xlib.h>
f7f78039 24404 #include <X11/extensions/shape.h>
e6cc62c6
VS
24405
24406int
24407main ()
24408{
f7f78039
MB
24409
24410 int dummy1, dummy2;
24411 XShapeQueryExtension((Display*)NULL,
24412 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24413
24414 ;
24415 return 0;
24416}
24417_ACEOF
24418rm -f conftest.$ac_objext
24419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24420 (eval $ac_compile) 2>&5
24421 ac_status=$?
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
24424 { ac_try='test -s conftest.$ac_objext'
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430
24431 cat >>confdefs.h <<\_ACEOF
f7f78039 24432#define HAVE_XSHAPE 1
e6cc62c6
VS
24433_ACEOF
24434
24435 echo "$as_me:$LINENO: result: found" >&5
24436echo "${ECHO_T}found" >&6
f7f78039 24437
f7f78039 24438else
e6cc62c6
VS
24439 echo "$as_me: failed program was:" >&5
24440sed 's/^/| /' conftest.$ac_ext >&5
24441
24442
24443 echo "$as_me:$LINENO: result: not found" >&5
24444echo "${ECHO_T}not found" >&6
24445
f7f78039 24446fi
e6cc62c6 24447rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24448 CFLAGS="$save_CFLAGS"
21d1c967
GD
24449 fi
24450
24451 if test "$wxUSE_MAC" = 1; then
0c98a14e 24452 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24453
0c98a14e 24454 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24455 TOOLKIT=MAC
24456 GUIDIST=MACX_DIST
24457 fi
24458
ac0c4cc3
DE
24459 if test "$wxUSE_COCOA" = 1; then
24460 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24461 TOOLKIT=COCOA
24462 GUIDIST=COCOA_DIST
24463 fi
24464
21d1c967
GD
24465 if test "$wxUSE_PM" = 1; then
24466 TOOLKIT=PM
24467 GUIDIST=GTK_DIST
e6cc62c6
VS
24468 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24469echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24470 wxUSE_THREADS="no"
21d1c967
GD
24471 fi
24472
24473 if test "$TOOLKIT" = "PM" ; then
24474 TOOLKIT_DIR="os2"
24475 else
24476 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24477 fi
24478
24479 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24480
24481 if test "$wxUSE_UNIVERSAL" = "yes"; then
24482 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24483
24484 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24485 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24486
24487 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24488 if test "$wxUSE_X11" = 1; then
24489 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24490 else
24491 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24492 fi
24493 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24494 WIDGET_SET=univ
24495 else
24496 ALL_OBJECTS="\$(GUIOBJS)"
24497 ALL_SOURCES="\$(ALL_SOURCES)"
24498 ALL_HEADERS="\$(ALL_HEADERS)"
24499 fi
24500
24501 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24502
24503 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24504 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24505 fi
24506
24507 if test "$wxUSE_HTML" = "yes"; then
24508 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24509 fi
24510
24511 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24512 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24513 fi
24514 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24515 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24516 fi
24517 if test "$wxUSE_LIBPNG" = "builtin" ; then
24518 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24519 fi
24520
24521 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24522 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24523else
21d1c967
GD
24524 USE_GUI=0
24525
24526 TOOLKIT_DIR="base"
24527
24528 if test "$USE_WIN32" = 1 ; then
24529 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24530 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24531
24532 TOOLKIT="MSW"
24533 else
24534 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24535 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24536 fi
24537
24538 ALL_SOURCES="\$(ALL_SOURCES)"
24539 ALL_HEADERS="\$(ALL_HEADERS)"
24540
24541 PORT_FILES="\${top_srcdir}/src/files.lst"
24542
24543 GUIDIST="BASE_DIST"
24544 DISTDIR="wxBase"
d836ee96
VZ
24545fi
24546
8284b0c5 24547
8647bec6
RG
24548
24549
24550IODBC_C_SRC=""
24551
24552
24553if test "$TOOLKIT" != "MSW" ; then
24554
24555 if test "$wxUSE_ODBC" != "no" ; then
e6cc62c6 24556 cat >>confdefs.h <<\_ACEOF
8647bec6 24557#define wxUSE_ODBC 1
e6cc62c6 24558_ACEOF
8647bec6
RG
24559
24560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
e6cc62c6 24561
8647bec6
RG
24562 WXODBCFLAG="-D_IODBC_"
24563
24564
24565 if test "$wxUSE_ODBC" = "sys" ; then
e6cc62c6
VS
24566
24567 if test "${ac_cv_header_sql_h+set}" = set; then
24568 echo "$as_me:$LINENO: checking for sql.h" >&5
24569echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24570if test "${ac_cv_header_sql_h+set}" = set; then
24571 echo $ECHO_N "(cached) $ECHO_C" >&6
24572fi
24573echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24574echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24575else
24576 # Is the header compilable?
24577echo "$as_me:$LINENO: checking sql.h usability" >&5
24578echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24579cat >conftest.$ac_ext <<_ACEOF
24580#line $LINENO "configure"
24581/* confdefs.h. */
24582_ACEOF
24583cat confdefs.h >>conftest.$ac_ext
24584cat >>conftest.$ac_ext <<_ACEOF
24585/* end confdefs.h. */
24586$ac_includes_default
8647bec6 24587#include <sql.h>
e6cc62c6
VS
24588_ACEOF
24589rm -f conftest.$ac_objext
24590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24591 (eval $ac_compile) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } &&
24595 { ac_try='test -s conftest.$ac_objext'
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 ac_header_compiler=yes
24602else
24603 echo "$as_me: failed program was:" >&5
24604sed 's/^/| /' conftest.$ac_ext >&5
24605
24606ac_header_compiler=no
24607fi
24608rm -f conftest.$ac_objext conftest.$ac_ext
24609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24610echo "${ECHO_T}$ac_header_compiler" >&6
24611
24612# Is the header present?
24613echo "$as_me:$LINENO: checking sql.h presence" >&5
24614echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24615cat >conftest.$ac_ext <<_ACEOF
24616#line $LINENO "configure"
24617/* confdefs.h. */
24618_ACEOF
24619cat confdefs.h >>conftest.$ac_ext
24620cat >>conftest.$ac_ext <<_ACEOF
24621/* end confdefs.h. */
24622#include <sql.h>
24623_ACEOF
24624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24626 ac_status=$?
24627 grep -v '^ *+' conftest.er1 >conftest.err
24628 rm -f conftest.er1
24629 cat conftest.err >&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } >/dev/null; then
24632 if test -s conftest.err; then
24633 ac_cpp_err=$ac_c_preproc_warn_flag
24634 else
24635 ac_cpp_err=
24636 fi
24637else
24638 ac_cpp_err=yes
24639fi
24640if test -z "$ac_cpp_err"; then
24641 ac_header_preproc=yes
24642else
24643 echo "$as_me: failed program was:" >&5
24644sed 's/^/| /' conftest.$ac_ext >&5
24645
24646 ac_header_preproc=no
24647fi
24648rm -f conftest.err conftest.$ac_ext
24649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24650echo "${ECHO_T}$ac_header_preproc" >&6
24651
24652# So? What about this header?
24653case $ac_header_compiler:$ac_header_preproc in
24654 yes:no )
24655 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24656echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24657 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24658echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24659 (
24660 cat <<\_ASBOX
24661## ------------------------------------ ##
24662## Report this to bug-autoconf@gnu.org. ##
24663## ------------------------------------ ##
24664_ASBOX
24665 ) |
24666 sed "s/^/$as_me: WARNING: /" >&2
24667 ;;
24668 no:yes )
24669 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24670echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24671 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24672echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24673 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24674echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24675 (
24676 cat <<\_ASBOX
24677## ------------------------------------ ##
24678## Report this to bug-autoconf@gnu.org. ##
24679## ------------------------------------ ##
24680_ASBOX
24681 ) |
24682 sed "s/^/$as_me: WARNING: /" >&2
24683 ;;
24684esac
24685echo "$as_me:$LINENO: checking for sql.h" >&5
24686echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24687if test "${ac_cv_header_sql_h+set}" = set; then
24688 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24689else
e6cc62c6
VS
24690 ac_cv_header_sql_h=$ac_header_preproc
24691fi
24692echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24693echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24694
8647bec6
RG
24695fi
24696
e6cc62c6
VS
24697
24698 echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24699echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24700if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24702else
e6cc62c6
VS
24703 ac_func_search_save_LIBS=$LIBS
24704ac_cv_search_SQLAllocEnv=no
24705cat >conftest.$ac_ext <<_ACEOF
24706#line $LINENO "configure"
24707/* confdefs.h. */
24708_ACEOF
24709cat confdefs.h >>conftest.$ac_ext
24710cat >>conftest.$ac_ext <<_ACEOF
24711/* end confdefs.h. */
24712
8647bec6 24713/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24714#ifdef __cplusplus
24715extern "C"
24716#endif
8647bec6 24717/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24718 builtin and then its argument prototype would still apply. */
24719char SQLAllocEnv ();
24720int
24721main ()
24722{
24723SQLAllocEnv ();
24724 ;
24725 return 0;
24726}
24727_ACEOF
24728rm -f conftest.$ac_objext conftest$ac_exeext
24729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24730 (eval $ac_link) 2>&5
24731 ac_status=$?
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } &&
24734 { ac_try='test -s conftest$ac_exeext'
24735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736 (eval $ac_try) 2>&5
24737 ac_status=$?
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); }; }; then
8647bec6
RG
24740 ac_cv_search_SQLAllocEnv="none required"
24741else
e6cc62c6
VS
24742 echo "$as_me: failed program was:" >&5
24743sed 's/^/| /' conftest.$ac_ext >&5
24744
8647bec6 24745fi
e6cc62c6
VS
24746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24747if test "$ac_cv_search_SQLAllocEnv" = no; then
24748 for ac_lib in iodbc unixodbc odbc ; do
24749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24750 cat >conftest.$ac_ext <<_ACEOF
24751#line $LINENO "configure"
24752/* confdefs.h. */
24753_ACEOF
24754cat confdefs.h >>conftest.$ac_ext
24755cat >>conftest.$ac_ext <<_ACEOF
24756/* end confdefs.h. */
24757
8647bec6 24758/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24759#ifdef __cplusplus
24760extern "C"
24761#endif
8647bec6 24762/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24763 builtin and then its argument prototype would still apply. */
24764char SQLAllocEnv ();
24765int
24766main ()
24767{
24768SQLAllocEnv ();
24769 ;
24770 return 0;
24771}
24772_ACEOF
24773rm -f conftest.$ac_objext conftest$ac_exeext
24774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24775 (eval $ac_link) 2>&5
24776 ac_status=$?
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
24779 { ac_try='test -s conftest$ac_exeext'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 ac_cv_search_SQLAllocEnv="-l$ac_lib"
8647bec6
RG
24786break
24787else
e6cc62c6
VS
24788 echo "$as_me: failed program was:" >&5
24789sed 's/^/| /' conftest.$ac_ext >&5
24790
8647bec6 24791fi
e6cc62c6
VS
24792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24793 done
8647bec6 24794fi
e6cc62c6
VS
24795LIBS=$ac_func_search_save_LIBS
24796fi
24797echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24798echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24799if test "$ac_cv_search_SQLAllocEnv" != no; then
8647bec6 24800 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
e6cc62c6
VS
24801
24802else
24803
24804 wxUSE_ODBC=builtin;
24805 { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5
24806echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;}
24807
8647bec6 24808fi
e6cc62c6 24809
fd3d7534
RG
24810 fi
24811 if test "$wxUSE_ODBC" != "sys" ; then
24812 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
24813 fi
24814
24815 fi
e6cc62c6 24816
6232543b 24817fi
21d1c967
GD
24818
24819if test "$wxUSE_REGEX" = "builtin" ; then
24820 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24821fi
21d1c967
GD
24822if test "$wxUSE_ZLIB" = "builtin" ; then
24823 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24824fi
24825
8284b0c5 24826
4d264332 24827USE_OPENGL=0
21d1c967 24828if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24829 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24830 OPENGL_LIBS="-framework OpenGL -framework AGL"
24831 elif test "$wxUSE_MSW" = 1; then
24832 OPENGL_LIBS="-lopengl32 -lglu32"
24833 else
01aa5863
VS
24834
24835
24836ac_find_includes=
24837for ac_dir in $SEARCH_INCLUDE /usr/include;
24838 do
24839 if test -f "$ac_dir/GL/gl.h"; then
24840 ac_find_includes=$ac_dir
24841 break
24842 fi
24843 done
24844
24845 if test "$ac_find_includes" != "" ; then
24846 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24847echo "${ECHO_T}found in $ac_find_includes" >&6
24848 set -x
24849
24850 if test "x$ac_find_includes" = "x/usr/include"; then
24851 ac_path_to_include=""
24852 else
24853 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24854 result=$?
24855 if test $result = 0; then
24856 ac_path_to_include=""
24857 else
24858 ac_path_to_include=" -I$ac_find_includes"
24859 fi
24860 fi
24861
24862 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24863 set +x
24864 fi
24865
e6cc62c6
VS
24866 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24867 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24868echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24869if test "${ac_cv_header_GL_gl_h+set}" = set; then
24870 echo $ECHO_N "(cached) $ECHO_C" >&6
24871fi
24872echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24873echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24874else
24875 # Is the header compilable?
24876echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24877echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24878cat >conftest.$ac_ext <<_ACEOF
24879#line $LINENO "configure"
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
24885$ac_includes_default
21d1c967 24886#include <GL/gl.h>
e6cc62c6
VS
24887_ACEOF
24888rm -f conftest.$ac_objext
24889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24890 (eval $ac_compile) 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } &&
24894 { ac_try='test -s conftest.$ac_objext'
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; }; then
24900 ac_header_compiler=yes
24901else
24902 echo "$as_me: failed program was:" >&5
24903sed 's/^/| /' conftest.$ac_ext >&5
24904
24905ac_header_compiler=no
24906fi
24907rm -f conftest.$ac_objext conftest.$ac_ext
24908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24909echo "${ECHO_T}$ac_header_compiler" >&6
24910
24911# Is the header present?
24912echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24913echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24914cat >conftest.$ac_ext <<_ACEOF
24915#line $LINENO "configure"
24916/* confdefs.h. */
24917_ACEOF
24918cat confdefs.h >>conftest.$ac_ext
24919cat >>conftest.$ac_ext <<_ACEOF
24920/* end confdefs.h. */
24921#include <GL/gl.h>
24922_ACEOF
24923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24925 ac_status=$?
24926 grep -v '^ *+' conftest.er1 >conftest.err
24927 rm -f conftest.er1
24928 cat conftest.err >&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } >/dev/null; then
24931 if test -s conftest.err; then
24932 ac_cpp_err=$ac_c_preproc_warn_flag
24933 else
24934 ac_cpp_err=
24935 fi
24936else
24937 ac_cpp_err=yes
24938fi
24939if test -z "$ac_cpp_err"; then
24940 ac_header_preproc=yes
24941else
24942 echo "$as_me: failed program was:" >&5
24943sed 's/^/| /' conftest.$ac_ext >&5
24944
24945 ac_header_preproc=no
24946fi
24947rm -f conftest.err conftest.$ac_ext
24948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24949echo "${ECHO_T}$ac_header_preproc" >&6
24950
24951# So? What about this header?
24952case $ac_header_compiler:$ac_header_preproc in
24953 yes:no )
24954 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24955echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24956 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24957echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24958 (
24959 cat <<\_ASBOX
24960## ------------------------------------ ##
24961## Report this to bug-autoconf@gnu.org. ##
24962## ------------------------------------ ##
24963_ASBOX
24964 ) |
24965 sed "s/^/$as_me: WARNING: /" >&2
24966 ;;
24967 no:yes )
24968 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24969echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24970 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24971echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24972 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24973echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24974 (
24975 cat <<\_ASBOX
24976## ------------------------------------ ##
24977## Report this to bug-autoconf@gnu.org. ##
24978## ------------------------------------ ##
24979_ASBOX
24980 ) |
24981 sed "s/^/$as_me: WARNING: /" >&2
24982 ;;
24983esac
24984echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24985echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24986if test "${ac_cv_header_GL_gl_h+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24988else
24989 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24990fi
e6cc62c6
VS
24991echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24992echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24993
698dcdb6 24994fi
e6cc62c6
VS
24995if test $ac_cv_header_GL_gl_h = yes; then
24996
89e3b3e4
VZ
24997 found_gl=0
24998
e6cc62c6
VS
24999 echo "$as_me:$LINENO: checking for -lGL" >&5
25000echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25001
21d1c967 25002ac_find_libraries=
2b5f62a0 25003for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25004 do
25005 for ac_extension in a so sl dylib; do
25006 if test -f "$ac_dir/libGL.$ac_extension"; then
25007 ac_find_libraries=$ac_dir
25008 break 2
25009 fi
25010 done
25011 done
25012
25013 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25014
21d1c967
GD
25015 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25016 result=$?
25017 if test $result = 0; then
25018 ac_path_to_link=""
25019 else
25020 ac_path_to_link=" -L$ac_find_libraries"
25021 fi
25022
89e3b3e4
VZ
25023 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25024 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25025 fi
89e3b3e4 25026
e6cc62c6 25027
89e3b3e4
VZ
25028ac_find_libraries=
25029for ac_dir in $SEARCH_LIB /usr/lib;
25030 do
25031 for ac_extension in a so sl dylib; do
25032 if test -f "$ac_dir/libGLU.$ac_extension"; then
25033 ac_find_libraries=$ac_dir
25034 break 2
25035 fi
25036 done
25037 done
25038
25039 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25040
89e3b3e4
VZ
25041 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25042 result=$?
25043 if test $result = 0; then
25044 ac_path_to_link=""
25045 else
25046 ac_path_to_link=" -L$ac_find_libraries"
25047 fi
25048
25049 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25050 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25051 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25052 fi
25053
25054 found_gl=1
25055 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25056 echo "$as_me:$LINENO: result: yes" >&5
25057echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25058 fi
25059 fi
25060
25061 if "$found_gl" != 1; then
e6cc62c6
VS
25062 echo "$as_me:$LINENO: result: no" >&5
25063echo "${ECHO_T}no" >&6
25064 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25065echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25066
21d1c967 25067ac_find_libraries=
2b5f62a0 25068for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25069 do
25070 for ac_extension in a so sl dylib; do
25071 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25072 ac_find_libraries=$ac_dir
25073 break 2
25074 fi
25075 done
25076 done
25077
25078 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25079
21d1c967
GD
25080 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25081 result=$?
25082 if test $result = 0; then
25083 ac_path_to_link=""
25084 else
25085 ac_path_to_link=" -L$ac_find_libraries"
25086 fi
25087
25088 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25089 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25090 echo "$as_me:$LINENO: result: yes" >&5
25091echo "${ECHO_T}yes" >&6
21d1c967 25092 else
e6cc62c6
VS
25093 echo "$as_me:$LINENO: result: no" >&5
25094echo "${ECHO_T}no" >&6
21d1c967
GD
25095 fi
25096 fi
e6cc62c6 25097
5c6fa7d2 25098fi
52127426 25099
8284b0c5 25100
e6cc62c6 25101
21d1c967 25102 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25103 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25104echo "$as_me: error: OpenGL libraries not available" >&2;}
25105 { (exit 1); exit 1; }; }
21d1c967
GD
25106 fi
25107 fi
90dd450c 25108
21d1c967 25109 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25110 USE_OPENGL=1
e6cc62c6 25111 cat >>confdefs.h <<\_ACEOF
21d1c967 25112#define wxUSE_OPENGL 1
e6cc62c6 25113_ACEOF
21d1c967 25114
e6cc62c6 25115 cat >>confdefs.h <<\_ACEOF
21d1c967 25116#define wxUSE_GLCANVAS 1
e6cc62c6 25117_ACEOF
21d1c967
GD
25118
25119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
25120 fi
10f2d63a 25121fi
21d1c967
GD
25122
25123if test -z "$TOOLKIT_VPATH" ; then
25124 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25125fi
21d1c967
GD
25126
25127if test -n "$TOOLKIT" ; then
25128 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25129fi
25130
fe0895cf 25131UNICODE=0
21d1c967
GD
25132lib_unicode_suffix=
25133if test "$wxUSE_UNICODE" = "yes"; then
25134 lib_unicode_suffix=u
fe0895cf 25135 UNICODE=1
90dd450c 25136fi
698dcdb6 25137
21d1c967 25138lib_debug_suffix=
fe0895cf 25139BUILD=release
21d1c967
GD
25140if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25141 lib_debug_suffix=d
fe0895cf 25142 BUILD=debug
21d1c967 25143fi
698dcdb6 25144
2b5f62a0
VZ
25145WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
25146
25147TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25148TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25149
25150if test "$cross_compiling" = "yes"; then
25151 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25152 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25153 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25154fi
25155
25156WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25157WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 25158WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25159
25160WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25161WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25162
25163WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25164WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25165WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25166WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25167
25168case "${host}" in
25169 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25170 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25171 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25172 ;;
25173
25174 *-*-darwin* )
e6cc62c6 25175
05159a27
GD
25176 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25177 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25178
25179 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25180 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25181 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25182 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25183
21d1c967 25184 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25185 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25186 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25187 fi
25188 ;;
25189esac
25190
25191WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25192WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25193
25194WXCONFIG_LIBS="-l${WX_LIBRARY}"
25195WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25196
25197if test "$wxUSE_OPENGL" = "yes"; then
25198 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25199 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25200fi
25201
8284b0c5
MB
25202
25203
21d1c967
GD
25204if test "$wxUSE_SHARED" = "yes"; then
25205 case "${host}" in
25206 *-pc-os2_emx | *-pc-os2-emx | \
25207 *-pc-msdosdjgpp )
25208 wxUSE_SHARED=no
e6cc62c6
VS
25209 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25210echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25211 ;;
25212 esac
25213fi
25214
fe0895cf 25215SHARED=0
2b5f62a0 25216if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25217 SHARED=1
2b5f62a0 25218
e6cc62c6 25219
2b5f62a0
VZ
25220 found_versioning=no
25221
e6cc62c6 25222
2b5f62a0 25223 if test $found_versioning = no ; then
e6cc62c6
VS
25224 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25225echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25226if test "${wx_cv_version_script+set}" = set; then
25227 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25228else
e6cc62c6 25229
2b5f62a0
VZ
25230 echo "VER_1 { *; };" >conftest.sym
25231 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25232
2b5f62a0
VZ
25233 if { ac_try='
25234 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25235 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25241 if test -s conftest.stderr ; then
25242 wx_cv_version_script=no
25243 else
25244 wx_cv_version_script=yes
25245 fi
25246 else
25247 wx_cv_version_script=no
25248 fi
25249 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25250
e6cc62c6
VS
25251fi
25252echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25253echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25254 if test $wx_cv_version_script = yes ; then
e6cc62c6 25255 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25256 fi
25257 fi
21d1c967 25258
21d1c967 25259
21d1c967 25260 case "${host}" in
fe0895cf 25261 *-*-linux* | *-*-gnu* )
e6cc62c6 25262 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
25263 ;;
25264
25265 *-*-solaris2* )
25266 if test "$GCC" = yes ; then
25267 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25268
25269 saveLdflags="$LDFLAGS"
25270 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25271 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25272echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25273 cat >conftest.$ac_ext <<_ACEOF
25274#line $LINENO "configure"
25275/* confdefs.h. */
25276_ACEOF
25277cat confdefs.h >>conftest.$ac_ext
25278cat >>conftest.$ac_ext <<_ACEOF
25279/* end confdefs.h. */
25280
25281int
25282main ()
25283{
fe0895cf 25284
e6cc62c6
VS
25285 ;
25286 return 0;
25287}
25288_ACEOF
25289rm -f conftest.$ac_objext conftest$ac_exeext
25290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291 (eval $ac_link) 2>&5
25292 ac_status=$?
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } &&
25295 { ac_try='test -s conftest$ac_exeext'
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
25301
25302 echo "$as_me:$LINENO: result: yes" >&5
25303echo "${ECHO_T}yes" >&6
25304 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25305
25306else
25307 echo "$as_me: failed program was:" >&5
25308sed 's/^/| /' conftest.$ac_ext >&5
25309
25310
25311 echo "$as_me:$LINENO: result: no" >&5
25312echo "${ECHO_T}no" >&6
25313 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25314echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25315 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25316 cat >conftest.$ac_ext <<_ACEOF
25317#line $LINENO "configure"
25318/* confdefs.h. */
25319_ACEOF
25320cat confdefs.h >>conftest.$ac_ext
25321cat >>conftest.$ac_ext <<_ACEOF
25322/* end confdefs.h. */
25323
25324int
25325main ()
25326{
25327
25328 ;
25329 return 0;
25330}
25331_ACEOF
25332rm -f conftest.$ac_objext conftest$ac_exeext
25333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25334 (eval $ac_link) 2>&5
25335 ac_status=$?
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } &&
25338 { ac_try='test -s conftest$ac_exeext'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; }; then
25344
25345 echo "$as_me:$LINENO: result: yes" >&5
25346echo "${ECHO_T}yes" >&6
25347 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25348else
25349 echo "$as_me: failed program was:" >&5
25350sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25351
fe0895cf 25352
e6cc62c6
VS
25353 echo "$as_me:$LINENO: result: no" >&5
25354echo "${ECHO_T}no" >&6
25355
fe0895cf 25356fi
e6cc62c6
VS
25357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25358
25359fi
25360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25361 LDFLAGS="$saveLdflags"
21d1c967
GD
25362 else
25363 SHARED_LD="${CXX} -G -o"
25364 PIC_FLAG="-KPIC"
e6cc62c6 25365 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25366 fi
25367 ;;
21d1c967
GD
25368 esac
25369
25370 if test "x$WX_TARGET_LIBRARY" = "x"; then
25371 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25372 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25373 fi
25374
25375 WX_TARGET_LIBRARY_TYPE="so"
25376 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25377fi
10f2d63a 25378
21d1c967
GD
25379if test "$wxUSE_SHARED" = "no"; then
25380
25381 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25382 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25383 fi
25384
ac0c4cc3 25385 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25386 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25387 fi
25388
25389 if test "$wxUSE_OPENGL" = "yes"; then
25390 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25391 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25392 else
25393 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25394 fi
25395
25396 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25397 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25398
25399 WX_TARGET_LIBRARY_TYPE="a"
25400 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25401
25402 STATIC_FLAG="yes"
25403else
25404 STATIC_FLAG="no"
90dd450c 25405fi
1e487827 25406
93fac604
VZ
25407MACRESCOMP="@#"
25408MACSETFILE="@#"
36825681 25409MACRESWXCONFIG="#"
21d1c967 25410if test "$wxUSE_MAC" = 1; then
e6cc62c6 25411 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25412 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25413 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25414 # Extract the first word of "Rez", so it can be a program name with args.
25415set dummy Rez; ac_word=$2
e6cc62c6
VS
25416echo "$as_me:$LINENO: checking for $ac_word" >&5
25417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25418if test "${ac_cv_prog_RESCOMP+set}" = set; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25420else
21d1c967
GD
25421 if test -n "$RESCOMP"; then
25422 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25423else
e6cc62c6
VS
25424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25425for as_dir in $PATH
25426do
25427 IFS=$as_save_IFS
25428 test -z "$as_dir" && as_dir=.
25429 for ac_exec_ext in '' $ac_executable_extensions; do
25430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25431 ac_cv_prog_RESCOMP="Rez"
25432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25433 break 2
25434 fi
25435done
25436done
25437
21d1c967 25438 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25439fi
b93d0d08 25440fi
e6cc62c6 25441RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25442if test -n "$RESCOMP"; then
e6cc62c6
VS
25443 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25444echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25445else
e6cc62c6
VS
25446 echo "$as_me:$LINENO: result: no" >&5
25447echo "${ECHO_T}no" >&6
90dd450c 25448fi
b93d0d08 25449
21d1c967
GD
25450 # Extract the first word of "DeRez", so it can be a program name with args.
25451set dummy DeRez; ac_word=$2
e6cc62c6
VS
25452echo "$as_me:$LINENO: checking for $ac_word" >&5
25453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25454if test "${ac_cv_prog_DEREZ+set}" = set; then
25455 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25456else
21d1c967
GD
25457 if test -n "$DEREZ"; then
25458 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25459else
e6cc62c6
VS
25460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25461for as_dir in $PATH
25462do
25463 IFS=$as_save_IFS
25464 test -z "$as_dir" && as_dir=.
25465 for ac_exec_ext in '' $ac_executable_extensions; do
25466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25467 ac_cv_prog_DEREZ="DeRez"
25468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25469 break 2
25470 fi
25471done
25472done
25473
21d1c967 25474 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25475fi
90dd450c 25476fi
e6cc62c6 25477DEREZ=$ac_cv_prog_DEREZ
21d1c967 25478if test -n "$DEREZ"; then
e6cc62c6
VS
25479 echo "$as_me:$LINENO: result: $DEREZ" >&5
25480echo "${ECHO_T}$DEREZ" >&6
90dd450c 25481else
e6cc62c6
VS
25482 echo "$as_me:$LINENO: result: no" >&5
25483echo "${ECHO_T}no" >&6
3a922bb4 25484fi
698dcdb6 25485
36825681
GD
25486 # Extract the first word of "SetFile", so it can be a program name with args.
25487set dummy SetFile; ac_word=$2
e6cc62c6
VS
25488echo "$as_me:$LINENO: checking for $ac_word" >&5
25489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25490if test "${ac_cv_prog_SETFILE+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25492else
25493 if test -n "$SETFILE"; then
25494 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25495else
e6cc62c6
VS
25496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25497for as_dir in $PATH
25498do
25499 IFS=$as_save_IFS
25500 test -z "$as_dir" && as_dir=.
25501 for ac_exec_ext in '' $ac_executable_extensions; do
25502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25503 ac_cv_prog_SETFILE="SetFile"
25504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25505 break 2
25506 fi
25507done
25508done
25509
36825681
GD
25510 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25511fi
25512fi
e6cc62c6 25513SETFILE=$ac_cv_prog_SETFILE
36825681 25514if test -n "$SETFILE"; then
e6cc62c6
VS
25515 echo "$as_me:$LINENO: result: $SETFILE" >&5
25516echo "${ECHO_T}$SETFILE" >&6
36825681 25517else
e6cc62c6
VS
25518 echo "$as_me:$LINENO: result: no" >&5
25519echo "${ECHO_T}no" >&6
36825681
GD
25520fi
25521
21d1c967 25522 MACOSX_BUNDLE="bundle"
36825681
GD
25523 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25524 MACSETFILE="\$(SETFILE)"
9711d31e 25525 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25526elif test "$wxUSE_COCOA" = 1; then
25527 # Extract the first word of "Rez", so it can be a program name with args.
25528set dummy Rez; ac_word=$2
e6cc62c6
VS
25529echo "$as_me:$LINENO: checking for $ac_word" >&5
25530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25531if test "${ac_cv_prog_RESCOMP+set}" = set; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25533else
25534 if test -n "$RESCOMP"; then
25535 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25536else
e6cc62c6
VS
25537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25538for as_dir in $PATH
25539do
25540 IFS=$as_save_IFS
25541 test -z "$as_dir" && as_dir=.
25542 for ac_exec_ext in '' $ac_executable_extensions; do
25543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25544 ac_cv_prog_RESCOMP="Rez"
25545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25546 break 2
25547 fi
25548done
25549done
25550
64440d77
DE
25551 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25552fi
25553fi
e6cc62c6 25554RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25555if test -n "$RESCOMP"; then
e6cc62c6
VS
25556 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25557echo "${ECHO_T}$RESCOMP" >&6
64440d77 25558else
e6cc62c6
VS
25559 echo "$as_me:$LINENO: result: no" >&5
25560echo "${ECHO_T}no" >&6
64440d77
DE
25561fi
25562
25563 # Extract the first word of "DeRez", so it can be a program name with args.
25564set dummy DeRez; ac_word=$2
e6cc62c6
VS
25565echo "$as_me:$LINENO: checking for $ac_word" >&5
25566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25567if test "${ac_cv_prog_DEREZ+set}" = set; then
25568 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25569else
25570 if test -n "$DEREZ"; then
25571 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25572else
e6cc62c6
VS
25573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25574for as_dir in $PATH
25575do
25576 IFS=$as_save_IFS
25577 test -z "$as_dir" && as_dir=.
25578 for ac_exec_ext in '' $ac_executable_extensions; do
25579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25580 ac_cv_prog_DEREZ="DeRez"
25581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25582 break 2
25583 fi
25584done
25585done
25586
64440d77
DE
25587 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25588fi
25589fi
e6cc62c6 25590DEREZ=$ac_cv_prog_DEREZ
64440d77 25591if test -n "$DEREZ"; then
e6cc62c6
VS
25592 echo "$as_me:$LINENO: result: $DEREZ" >&5
25593echo "${ECHO_T}$DEREZ" >&6
64440d77 25594else
e6cc62c6
VS
25595 echo "$as_me:$LINENO: result: no" >&5
25596echo "${ECHO_T}no" >&6
64440d77
DE
25597fi
25598
25599 # Extract the first word of "SetFile", so it can be a program name with args.
25600set dummy SetFile; ac_word=$2
e6cc62c6
VS
25601echo "$as_me:$LINENO: checking for $ac_word" >&5
25602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25603if test "${ac_cv_prog_SETFILE+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25605else
25606 if test -n "$SETFILE"; then
25607 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25608else
e6cc62c6
VS
25609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610for as_dir in $PATH
25611do
25612 IFS=$as_save_IFS
25613 test -z "$as_dir" && as_dir=.
25614 for ac_exec_ext in '' $ac_executable_extensions; do
25615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25616 ac_cv_prog_SETFILE="SetFile"
25617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25618 break 2
25619 fi
25620done
25621done
25622
64440d77
DE
25623 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25624fi
25625fi
e6cc62c6 25626SETFILE=$ac_cv_prog_SETFILE
64440d77 25627if test -n "$SETFILE"; then
e6cc62c6
VS
25628 echo "$as_me:$LINENO: result: $SETFILE" >&5
25629echo "${ECHO_T}$SETFILE" >&6
64440d77 25630else
e6cc62c6
VS
25631 echo "$as_me:$LINENO: result: no" >&5
25632echo "${ECHO_T}no" >&6
64440d77
DE
25633fi
25634
25635 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25636 MACSETFILE="\$(SETFILE)"
9711d31e 25637 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25638else
25639 if test "$wxUSE_PM" = 1; then
36825681 25640 MACRESCOMP="emxbind -ep"
90dd450c 25641 fi
4f14bcd8 25642fi
10f2d63a 25643
8284b0c5 25644
e6cc62c6
VS
25645echo "$as_me:$LINENO: checking for mode_t" >&5
25646echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25647if test "${ac_cv_type_mode_t+set}" = set; then
25648 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25649else
e6cc62c6
VS
25650 cat >conftest.$ac_ext <<_ACEOF
25651#line $LINENO "configure"
25652/* confdefs.h. */
25653_ACEOF
25654cat confdefs.h >>conftest.$ac_ext
25655cat >>conftest.$ac_ext <<_ACEOF
25656/* end confdefs.h. */
25657$ac_includes_default
25658int
25659main ()
25660{
25661if ((mode_t *) 0)
25662 return 0;
25663if (sizeof (mode_t))
25664 return 0;
25665 ;
25666 return 0;
25667}
25668_ACEOF
25669rm -f conftest.$ac_objext
25670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25671 (eval $ac_compile) 2>&5
25672 ac_status=$?
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } &&
25675 { ac_try='test -s conftest.$ac_objext'
25676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677 (eval $ac_try) 2>&5
25678 ac_status=$?
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }; }; then
25681 ac_cv_type_mode_t=yes
a0b9e27f 25682else
e6cc62c6
VS
25683 echo "$as_me: failed program was:" >&5
25684sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25685
e6cc62c6 25686ac_cv_type_mode_t=no
a0b9e27f 25687fi
e6cc62c6 25688rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25689fi
e6cc62c6
VS
25690echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25691echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25692if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25693 :
25694else
a0b9e27f 25695
e6cc62c6
VS
25696cat >>confdefs.h <<_ACEOF
25697#define mode_t int
25698_ACEOF
8284b0c5
MB
25699
25700fi
25701
e6cc62c6
VS
25702echo "$as_me:$LINENO: checking for off_t" >&5
25703echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25704if test "${ac_cv_type_off_t+set}" = set; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25706else
e6cc62c6
VS
25707 cat >conftest.$ac_ext <<_ACEOF
25708#line $LINENO "configure"
25709/* confdefs.h. */
25710_ACEOF
25711cat confdefs.h >>conftest.$ac_ext
25712cat >>conftest.$ac_ext <<_ACEOF
25713/* end confdefs.h. */
25714$ac_includes_default
25715int
25716main ()
25717{
25718if ((off_t *) 0)
25719 return 0;
25720if (sizeof (off_t))
25721 return 0;
25722 ;
25723 return 0;
25724}
25725_ACEOF
25726rm -f conftest.$ac_objext
25727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25728 (eval $ac_compile) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
25732 { ac_try='test -s conftest.$ac_objext'
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; }; then
25738 ac_cv_type_off_t=yes
5c6fa7d2 25739else
e6cc62c6
VS
25740 echo "$as_me: failed program was:" >&5
25741sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25742
e6cc62c6 25743ac_cv_type_off_t=no
8284b0c5 25744fi
e6cc62c6 25745rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25746fi
e6cc62c6
VS
25747echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25748echo "${ECHO_T}$ac_cv_type_off_t" >&6
25749if test $ac_cv_type_off_t = yes; then
25750 :
247f5006
VZ
25751else
25752
e6cc62c6 25753cat >>confdefs.h <<_ACEOF
90dd450c 25754#define off_t long
e6cc62c6 25755_ACEOF
10f2d63a 25756
90dd450c 25757fi
10f2d63a 25758
e6cc62c6
VS
25759echo "$as_me:$LINENO: checking for pid_t" >&5
25760echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25761if test "${ac_cv_type_pid_t+set}" = set; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25763else
e6cc62c6
VS
25764 cat >conftest.$ac_ext <<_ACEOF
25765#line $LINENO "configure"
25766/* confdefs.h. */
25767_ACEOF
25768cat confdefs.h >>conftest.$ac_ext
25769cat >>conftest.$ac_ext <<_ACEOF
25770/* end confdefs.h. */
25771$ac_includes_default
25772int
25773main ()
25774{
25775if ((pid_t *) 0)
25776 return 0;
25777if (sizeof (pid_t))
25778 return 0;
25779 ;
25780 return 0;
25781}
25782_ACEOF
25783rm -f conftest.$ac_objext
25784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25785 (eval $ac_compile) 2>&5
25786 ac_status=$?
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } &&
25789 { ac_try='test -s conftest.$ac_objext'
25790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791 (eval $ac_try) 2>&5
25792 ac_status=$?
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; }; then
90dd450c 25795 ac_cv_type_pid_t=yes
698dcdb6 25796else
e6cc62c6
VS
25797 echo "$as_me: failed program was:" >&5
25798sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25799
e6cc62c6
VS
25800ac_cv_type_pid_t=no
25801fi
25802rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25803fi
e6cc62c6
VS
25804echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25805echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25806if test $ac_cv_type_pid_t = yes; then
25807 :
25808else
25809
25810cat >>confdefs.h <<_ACEOF
90dd450c 25811#define pid_t int
e6cc62c6 25812_ACEOF
10f2d63a 25813
7b4a847f
RR
25814fi
25815
e6cc62c6
VS
25816echo "$as_me:$LINENO: checking for size_t" >&5
25817echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25818if test "${ac_cv_type_size_t+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25820else
e6cc62c6
VS
25821 cat >conftest.$ac_ext <<_ACEOF
25822#line $LINENO "configure"
25823/* confdefs.h. */
25824_ACEOF
25825cat confdefs.h >>conftest.$ac_ext
25826cat >>conftest.$ac_ext <<_ACEOF
25827/* end confdefs.h. */
25828$ac_includes_default
25829int
25830main ()
25831{
25832if ((size_t *) 0)
25833 return 0;
25834if (sizeof (size_t))
25835 return 0;
25836 ;
25837 return 0;
25838}
25839_ACEOF
25840rm -f conftest.$ac_objext
25841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25842 (eval $ac_compile) 2>&5
25843 ac_status=$?
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
25846 { ac_try='test -s conftest.$ac_objext'
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
90dd450c 25852 ac_cv_type_size_t=yes
18dbb1f6 25853else
e6cc62c6
VS
25854 echo "$as_me: failed program was:" >&5
25855sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25856
e6cc62c6 25857ac_cv_type_size_t=no
a0b9e27f 25858fi
e6cc62c6
VS
25859rm -f conftest.$ac_objext conftest.$ac_ext
25860fi
25861echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25862echo "${ECHO_T}$ac_cv_type_size_t" >&6
25863if test $ac_cv_type_size_t = yes; then
25864 :
25865else
25866
25867cat >>confdefs.h <<_ACEOF
90dd450c 25868#define size_t unsigned
e6cc62c6 25869_ACEOF
90dd450c
VZ
25870
25871fi
25872
e6cc62c6
VS
25873echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25874echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25875if test "${ac_cv_type_uid_t+set}" = set; then
25876 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25877else
e6cc62c6
VS
25878 cat >conftest.$ac_ext <<_ACEOF
25879#line $LINENO "configure"
25880/* confdefs.h. */
25881_ACEOF
25882cat confdefs.h >>conftest.$ac_ext
25883cat >>conftest.$ac_ext <<_ACEOF
25884/* end confdefs.h. */
90dd450c 25885#include <sys/types.h>
e6cc62c6
VS
25886
25887_ACEOF
90dd450c 25888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25889 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25890 ac_cv_type_uid_t=yes
b3e8d00a 25891else
90dd450c 25892 ac_cv_type_uid_t=no
b3e8d00a 25893fi
90dd450c 25894rm -f conftest*
b3e8d00a 25895
4f14bcd8 25896fi
e6cc62c6
VS
25897echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25898echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25899if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25900
25901cat >>confdefs.h <<\_ACEOF
90dd450c 25902#define uid_t int
e6cc62c6 25903_ACEOF
247f5006 25904
e6cc62c6
VS
25905
25906cat >>confdefs.h <<\_ACEOF
90dd450c 25907#define gid_t int
e6cc62c6 25908_ACEOF
4f14bcd8 25909
b3e8d00a 25910fi
b3e8d00a 25911
8284b0c5
MB
25912
25913
e6cc62c6
VS
25914
25915ac_ext=cc
4f14bcd8 25916ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25920
25921echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25922echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25923if test "${wx_cv_size_t_is_uint+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25925else
25926
25927 cat >conftest.$ac_ext <<_ACEOF
25928#line $LINENO "configure"
25929/* confdefs.h. */
25930_ACEOF
25931cat confdefs.h >>conftest.$ac_ext
25932cat >>conftest.$ac_ext <<_ACEOF
25933/* end confdefs.h. */
90dd450c 25934#include <stddef.h>
e6cc62c6
VS
25935int
25936main ()
25937{
90dd450c
VZ
25938
25939 return 0; }
25940
25941 struct Foo { void foo(size_t); void foo(unsigned int); };
25942
25943 int bar() {
e6cc62c6
VS
25944
25945 ;
25946 return 0;
25947}
25948_ACEOF
25949rm -f conftest.$ac_objext
25950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25951 (eval $ac_compile) 2>&5
25952 ac_status=$?
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } &&
25955 { ac_try='test -s conftest.$ac_objext'
25956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); }; }; then
90dd450c 25961 wx_cv_size_t_is_uint=no
698dcdb6 25962else
e6cc62c6
VS
25963 echo "$as_me: failed program was:" >&5
25964sed 's/^/| /' conftest.$ac_ext >&5
25965
25966wx_cv_size_t_is_uint=yes
8284b0c5 25967
247f5006 25968fi
e6cc62c6
VS
25969rm -f conftest.$ac_objext conftest.$ac_ext
25970
a0b9e27f 25971
e6cc62c6
VS
25972fi
25973echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25974echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25975
90dd450c 25976if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25977 cat >>confdefs.h <<\_ACEOF
90dd450c 25978#define wxSIZE_T_IS_UINT 1
e6cc62c6 25979_ACEOF
698dcdb6 25980
90dd450c 25981else
e6cc62c6
VS
25982 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25983echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25984if test "${wx_cv_size_t_is_ulong+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25986else
e6cc62c6
VS
25987 cat >conftest.$ac_ext <<_ACEOF
25988#line $LINENO "configure"
25989/* confdefs.h. */
25990_ACEOF
25991cat confdefs.h >>conftest.$ac_ext
25992cat >>conftest.$ac_ext <<_ACEOF
25993/* end confdefs.h. */
90dd450c 25994#include <stddef.h>
e6cc62c6
VS
25995int
25996main ()
25997{
90dd450c
VZ
25998
25999 return 0; }
26000
26001 struct Foo { void foo(size_t); void foo(unsigned long); };
26002
26003 int bar() {
e6cc62c6
VS
26004
26005 ;
26006 return 0;
26007}
26008_ACEOF
26009rm -f conftest.$ac_objext
26010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26011 (eval $ac_compile) 2>&5
26012 ac_status=$?
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } &&
26015 { ac_try='test -s conftest.$ac_objext'
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
90dd450c 26021 wx_cv_size_t_is_ulong=no
698dcdb6 26022else
e6cc62c6
VS
26023 echo "$as_me: failed program was:" >&5
26024sed 's/^/| /' conftest.$ac_ext >&5
26025
26026wx_cv_size_t_is_ulong=yes
26027
247f5006 26028fi
e6cc62c6 26029rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26030
e6cc62c6
VS
26031fi
26032echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26033echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26034
90dd450c 26035 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26036 cat >>confdefs.h <<\_ACEOF
90dd450c 26037#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26038_ACEOF
4f14bcd8
GD
26039
26040 fi
90dd450c 26041fi
1e487827 26042
90dd450c 26043ac_ext=c
4f14bcd8 26044ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26047ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26048
5c6fa7d2 26049
8284b0c5 26050
e6cc62c6
VS
26051echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26052echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26053if test "${wx_cv_struct_pw_gecos+set}" = set; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26055else
e6cc62c6
VS
26056
26057 cat >conftest.$ac_ext <<_ACEOF
26058#line $LINENO "configure"
26059/* confdefs.h. */
26060_ACEOF
26061cat confdefs.h >>conftest.$ac_ext
26062cat >>conftest.$ac_ext <<_ACEOF
26063/* end confdefs.h. */
90dd450c 26064#include <pwd.h>
e6cc62c6
VS
26065int
26066main ()
26067{
f6bcfd97 26068
90dd450c
VZ
26069 char *p;
26070 struct passwd *pw;
26071 p = pw->pw_gecos;
e6cc62c6
VS
26072
26073 ;
26074 return 0;
26075}
26076_ACEOF
26077rm -f conftest.$ac_objext
26078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079 (eval $ac_compile) 2>&5
26080 ac_status=$?
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); } &&
26083 { ac_try='test -s conftest.$ac_objext'
26084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26085 (eval $ac_try) 2>&5
26086 ac_status=$?
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); }; }; then
26089
90dd450c 26090 wx_cv_struct_pw_gecos=yes
e6cc62c6 26091
10f2d63a 26092else
e6cc62c6
VS
26093 echo "$as_me: failed program was:" >&5
26094sed 's/^/| /' conftest.$ac_ext >&5
26095
26096
90dd450c 26097 wx_cv_struct_pw_gecos=no
e6cc62c6 26098
247f5006
VZ
26099
26100fi
e6cc62c6 26101rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26102
e6cc62c6
VS
26103
26104fi
26105echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26106echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26107
90dd450c 26108if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26109 cat >>confdefs.h <<\_ACEOF
90dd450c 26110#define HAVE_PW_GECOS 1
e6cc62c6 26111_ACEOF
c521c494 26112
90dd450c 26113fi
4f14bcd8 26114
8284b0c5 26115
d29b553b 26116if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26117 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26118#define wxUSE_WCHAR_T 1
e6cc62c6 26119_ACEOF
d74f4b5a 26120
8284b0c5 26121
d74f4b5a
VZ
26122 WCSLEN_FOUND=0
26123 WCHAR_LINK=
e6cc62c6
VS
26124
26125for ac_func in wcslen
7a30264c 26126do
e6cc62c6
VS
26127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26128echo "$as_me:$LINENO: checking for $ac_func" >&5
26129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26130if eval "test \"\${$as_ac_var+set}\" = set"; then
26131 echo $ECHO_N "(cached) $ECHO_C" >&6
26132else
26133 cat >conftest.$ac_ext <<_ACEOF
26134#line $LINENO "configure"
26135/* confdefs.h. */
26136_ACEOF
26137cat confdefs.h >>conftest.$ac_ext
26138cat >>conftest.$ac_ext <<_ACEOF
26139/* end confdefs.h. */
7a30264c 26140/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26141 which can conflict with char $ac_func (); below.
26142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26143 <limits.h> exists even on freestanding compilers. */
26144#ifdef __STDC__
26145# include <limits.h>
26146#else
26147# include <assert.h>
26148#endif
4f14bcd8 26149/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26150#ifdef __cplusplus
26151extern "C"
26152{
26153#endif
4f14bcd8 26154/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26155 builtin and then its argument prototype would still apply. */
26156char $ac_func ();
7a30264c
VZ
26157/* The GNU C library defines this for functions which it implements
26158 to always fail with ENOSYS. Some functions are actually named
26159 something starting with __ and the normal name is an alias. */
26160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26161choke me
26162#else
e6cc62c6
VS
26163char (*f) () = $ac_func;
26164#endif
26165#ifdef __cplusplus
26166}
7a30264c
VZ
26167#endif
26168
e6cc62c6
VS
26169int
26170main ()
26171{
26172return f != $ac_func;
26173 ;
26174 return 0;
26175}
26176_ACEOF
26177rm -f conftest.$ac_objext conftest$ac_exeext
26178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179 (eval $ac_link) 2>&5
26180 ac_status=$?
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } &&
26183 { ac_try='test -s conftest$ac_exeext'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
26189 eval "$as_ac_var=yes"
26190else
26191 echo "$as_me: failed program was:" >&5
26192sed 's/^/| /' conftest.$ac_ext >&5
26193
26194eval "$as_ac_var=no"
26195fi
26196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26197fi
26198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26200if test `eval echo '${'$as_ac_var'}'` = yes; then
26201 cat >>confdefs.h <<_ACEOF
26202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26203_ACEOF
d74f4b5a 26204 WCSLEN_FOUND=1
7a30264c
VZ
26205fi
26206done
9d8deca0 26207
8284b0c5 26208
d74f4b5a 26209 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26210 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26211 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26212echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26213if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26215else
e6cc62c6 26216 ac_check_lib_save_LIBS=$LIBS
7a30264c 26217LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26218cat >conftest.$ac_ext <<_ACEOF
26219#line $LINENO "configure"
26220/* confdefs.h. */
26221_ACEOF
26222cat confdefs.h >>conftest.$ac_ext
26223cat >>conftest.$ac_ext <<_ACEOF
26224/* end confdefs.h. */
26225
4f14bcd8 26226/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26227#ifdef __cplusplus
26228extern "C"
26229#endif
4f14bcd8 26230/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26231 builtin and then its argument prototype would still apply. */
26232char wcslen ();
26233int
26234main ()
26235{
26236wcslen ();
26237 ;
26238 return 0;
26239}
26240_ACEOF
26241rm -f conftest.$ac_objext conftest$ac_exeext
26242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26243 (eval $ac_link) 2>&5
26244 ac_status=$?
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); } &&
26247 { ac_try='test -s conftest$ac_exeext'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26250 ac_status=$?
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; }; then
26253 ac_cv_lib_msvcrt_wcslen=yes
26254else
26255 echo "$as_me: failed program was:" >&5
26256sed 's/^/| /' conftest.$ac_ext >&5
26257
26258ac_cv_lib_msvcrt_wcslen=no
26259fi
26260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26261LIBS=$ac_check_lib_save_LIBS
26262fi
26263echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26264echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26265if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26266 WCHAR_OK=1
d29b553b 26267fi
698dcdb6 26268
7a30264c 26269 else
e6cc62c6
VS
26270 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26271echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26272if test "${ac_cv_lib_w_wcslen+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26274else
e6cc62c6 26275 ac_check_lib_save_LIBS=$LIBS
7a30264c 26276LIBS="-lw $LIBS"
e6cc62c6
VS
26277cat >conftest.$ac_ext <<_ACEOF
26278#line $LINENO "configure"
26279/* confdefs.h. */
26280_ACEOF
26281cat confdefs.h >>conftest.$ac_ext
26282cat >>conftest.$ac_ext <<_ACEOF
26283/* end confdefs.h. */
26284
4f14bcd8 26285/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26286#ifdef __cplusplus
26287extern "C"
26288#endif
4f14bcd8 26289/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26290 builtin and then its argument prototype would still apply. */
26291char wcslen ();
26292int
26293main ()
26294{
26295wcslen ();
26296 ;
26297 return 0;
26298}
26299_ACEOF
26300rm -f conftest.$ac_objext conftest$ac_exeext
26301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26302 (eval $ac_link) 2>&5
26303 ac_status=$?
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
26306 { ac_try='test -s conftest$ac_exeext'
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 ac_cv_lib_w_wcslen=yes
26313else
26314 echo "$as_me: failed program was:" >&5
26315sed 's/^/| /' conftest.$ac_ext >&5
26316
26317ac_cv_lib_w_wcslen=no
26318fi
26319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26320LIBS=$ac_check_lib_save_LIBS
26321fi
26322echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26323echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26324if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26325
7a30264c 26326 WCHAR_LINK=" -lw"
d74f4b5a 26327 WCSLEN_FOUND=1
e6cc62c6 26328
4f14bcd8 26329fi
10f2d63a 26330
7a30264c 26331 fi
d29b553b 26332 fi
95c8801c 26333
d74f4b5a 26334 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26335 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26336#define HAVE_WCSLEN 1
e6cc62c6 26337_ACEOF
10f2d63a 26338
d74f4b5a 26339 fi
52127426 26340
e6cc62c6
VS
26341
26342for ac_func in wcsrtombs
eb4efbdc 26343do
e6cc62c6
VS
26344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26345echo "$as_me:$LINENO: checking for $ac_func" >&5
26346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26347if eval "test \"\${$as_ac_var+set}\" = set"; then
26348 echo $ECHO_N "(cached) $ECHO_C" >&6
26349else
26350 cat >conftest.$ac_ext <<_ACEOF
26351#line $LINENO "configure"
26352/* confdefs.h. */
26353_ACEOF
26354cat confdefs.h >>conftest.$ac_ext
26355cat >>conftest.$ac_ext <<_ACEOF
26356/* end confdefs.h. */
eb4efbdc 26357/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26358 which can conflict with char $ac_func (); below.
26359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26360 <limits.h> exists even on freestanding compilers. */
26361#ifdef __STDC__
26362# include <limits.h>
26363#else
26364# include <assert.h>
26365#endif
eb4efbdc 26366/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26367#ifdef __cplusplus
26368extern "C"
26369{
26370#endif
4f14bcd8 26371/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26372 builtin and then its argument prototype would still apply. */
26373char $ac_func ();
10f2d63a
VZ
26374/* The GNU C library defines this for functions which it implements
26375 to always fail with ENOSYS. Some functions are actually named
26376 something starting with __ and the normal name is an alias. */
247f5006 26377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26378choke me
26379#else
e6cc62c6
VS
26380char (*f) () = $ac_func;
26381#endif
26382#ifdef __cplusplus
26383}
10f2d63a
VZ
26384#endif
26385
e6cc62c6
VS
26386int
26387main ()
26388{
26389return f != $ac_func;
26390 ;
26391 return 0;
26392}
26393_ACEOF
26394rm -f conftest.$ac_objext conftest$ac_exeext
26395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26396 (eval $ac_link) 2>&5
26397 ac_status=$?
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } &&
26400 { ac_try='test -s conftest$ac_exeext'
26401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; }; then
26406 eval "$as_ac_var=yes"
26407else
26408 echo "$as_me: failed program was:" >&5
26409sed 's/^/| /' conftest.$ac_ext >&5
26410
26411eval "$as_ac_var=no"
26412fi
26413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26414fi
26415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26417if test `eval echo '${'$as_ac_var'}'` = yes; then
26418 cat >>confdefs.h <<_ACEOF
26419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26420_ACEOF
270a909e 26421
4f14bcd8 26422fi
247f5006 26423done
1e487827 26424
af15babd 26425else
e6cc62c6
VS
26426 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26427echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26428fi
52127426 26429
8284b0c5 26430
e6cc62c6
VS
26431
26432ac_ext=cc
247f5006 26433ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26437
af15babd 26438
247f5006
VZ
26439
26440for ac_func in vsnprintf
26441do
e6cc62c6
VS
26442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26443echo "$as_me:$LINENO: checking for $ac_func" >&5
26444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26445if eval "test \"\${$as_ac_var+set}\" = set"; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447else
26448 cat >conftest.$ac_ext <<_ACEOF
26449#line $LINENO "configure"
26450/* confdefs.h. */
26451_ACEOF
26452cat confdefs.h >>conftest.$ac_ext
26453cat >>conftest.$ac_ext <<_ACEOF
26454/* end confdefs.h. */
247f5006 26455/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26456 which can conflict with char $ac_func (); below.
26457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26458 <limits.h> exists even on freestanding compilers. */
26459#ifdef __STDC__
26460# include <limits.h>
26461#else
26462# include <assert.h>
26463#endif
247f5006
VZ
26464/* Override any gcc2 internal prototype to avoid an error. */
26465#ifdef __cplusplus
26466extern "C"
e6cc62c6 26467{
247f5006
VZ
26468#endif
26469/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26470 builtin and then its argument prototype would still apply. */
26471char $ac_func ();
247f5006
VZ
26472/* The GNU C library defines this for functions which it implements
26473 to always fail with ENOSYS. Some functions are actually named
26474 something starting with __ and the normal name is an alias. */
26475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26476choke me
26477#else
e6cc62c6
VS
26478char (*f) () = $ac_func;
26479#endif
26480#ifdef __cplusplus
26481}
247f5006 26482#endif
af15babd 26483
e6cc62c6
VS
26484int
26485main ()
26486{
26487return f != $ac_func;
26488 ;
26489 return 0;
26490}
26491_ACEOF
26492rm -f conftest.$ac_objext conftest$ac_exeext
26493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26494 (eval $ac_link) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } &&
26498 { ac_try='test -s conftest$ac_exeext'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26501 ac_status=$?
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; }; then
26504 eval "$as_ac_var=yes"
26505else
26506 echo "$as_me: failed program was:" >&5
26507sed 's/^/| /' conftest.$ac_ext >&5
26508
26509eval "$as_ac_var=no"
26510fi
26511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26512fi
26513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26515if test `eval echo '${'$as_ac_var'}'` = yes; then
26516 cat >>confdefs.h <<_ACEOF
26517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26518_ACEOF
52127426 26519
5c6fa7d2 26520fi
247f5006 26521done
8284b0c5 26522
4f14bcd8 26523
8d90d2f2 26524if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26525 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26526echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26527if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26528 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26529else
e6cc62c6
VS
26530
26531 cat >conftest.$ac_ext <<_ACEOF
26532#line $LINENO "configure"
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
8d90d2f2
VZ
26538
26539 #include <stdio.h>
26540 #include <stdarg.h>
e6cc62c6
VS
26541
26542int
26543main ()
26544{
8d90d2f2
VZ
26545
26546 char *buf;
26547 va_list ap;
26548 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26549
26550 ;
26551 return 0;
26552}
26553_ACEOF
26554rm -f conftest.$ac_objext
26555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556 (eval $ac_compile) 2>&5
26557 ac_status=$?
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } &&
26560 { ac_try='test -s conftest.$ac_objext'
26561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26562 (eval $ac_try) 2>&5
26563 ac_status=$?
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); }; }; then
8d90d2f2
VZ
26566 wx_cv_func_vsnprintf_decl=yes
26567else
e6cc62c6
VS
26568 echo "$as_me: failed program was:" >&5
26569sed 's/^/| /' conftest.$ac_ext >&5
26570
26571wx_cv_func_vsnprintf_decl=no
26572
8d90d2f2 26573fi
e6cc62c6
VS
26574rm -f conftest.$ac_objext conftest.$ac_ext
26575
8d90d2f2 26576
e6cc62c6
VS
26577fi
26578echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26579echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26580
26581 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26582 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26583#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26584_ACEOF
8d90d2f2
VZ
26585
26586 fi
26587fi
26588
247f5006 26589if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26590
26591
26592
26593for ac_func in fputwc wprintf vswprintf
d74f4b5a 26594do
e6cc62c6
VS
26595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26596echo "$as_me:$LINENO: checking for $ac_func" >&5
26597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26598if eval "test \"\${$as_ac_var+set}\" = set"; then
26599 echo $ECHO_N "(cached) $ECHO_C" >&6
26600else
26601 cat >conftest.$ac_ext <<_ACEOF
26602#line $LINENO "configure"
26603/* confdefs.h. */
26604_ACEOF
26605cat confdefs.h >>conftest.$ac_ext
26606cat >>conftest.$ac_ext <<_ACEOF
26607/* end confdefs.h. */
d74f4b5a 26608/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26609 which can conflict with char $ac_func (); below.
26610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26611 <limits.h> exists even on freestanding compilers. */
26612#ifdef __STDC__
26613# include <limits.h>
26614#else
26615# include <assert.h>
26616#endif
d74f4b5a 26617/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26618#ifdef __cplusplus
26619extern "C"
e6cc62c6 26620{
247f5006 26621#endif
d74f4b5a 26622/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26623 builtin and then its argument prototype would still apply. */
26624char $ac_func ();
d74f4b5a
VZ
26625/* The GNU C library defines this for functions which it implements
26626 to always fail with ENOSYS. Some functions are actually named
26627 something starting with __ and the normal name is an alias. */
26628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26629choke me
26630#else
e6cc62c6
VS
26631char (*f) () = $ac_func;
26632#endif
26633#ifdef __cplusplus
26634}
d74f4b5a
VZ
26635#endif
26636
e6cc62c6
VS
26637int
26638main ()
26639{
26640return f != $ac_func;
26641 ;
26642 return 0;
26643}
26644_ACEOF
26645rm -f conftest.$ac_objext conftest$ac_exeext
26646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26647 (eval $ac_link) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } &&
26651 { ac_try='test -s conftest$ac_exeext'
26652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653 (eval $ac_try) 2>&5
26654 ac_status=$?
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; }; then
26657 eval "$as_ac_var=yes"
26658else
26659 echo "$as_me: failed program was:" >&5
26660sed 's/^/| /' conftest.$ac_ext >&5
26661
26662eval "$as_ac_var=no"
26663fi
26664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26665fi
26666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26668if test `eval echo '${'$as_ac_var'}'` = yes; then
26669 cat >>confdefs.h <<_ACEOF
26670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26671_ACEOF
d74f4b5a 26672
d74f4b5a
VZ
26673fi
26674done
26675
8d90d2f2 26676
e6cc62c6
VS
26677 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26678echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26679 cat >conftest.$ac_ext <<_ACEOF
26680#line $LINENO "configure"
26681/* confdefs.h. */
26682_ACEOF
26683cat confdefs.h >>conftest.$ac_ext
26684cat >>conftest.$ac_ext <<_ACEOF
26685/* end confdefs.h. */
79668cae 26686#include <wchar.h>
e6cc62c6
VS
26687int
26688main ()
26689{
79668cae 26690&_vsnwprintf;
e6cc62c6
VS
26691 ;
26692 return 0;
26693}
26694_ACEOF
26695rm -f conftest.$ac_objext
26696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26697 (eval $ac_compile) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } &&
26701 { ac_try='test -s conftest.$ac_objext'
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; }; then
26707 echo "$as_me:$LINENO: result: yes" >&5
26708echo "${ECHO_T}yes" >&6
26709 cat >>confdefs.h <<\_ACEOF
79668cae 26710#define HAVE__VSNWPRINTF 1
e6cc62c6 26711_ACEOF
79668cae
MB
26712
26713else
e6cc62c6
VS
26714 echo "$as_me: failed program was:" >&5
26715sed 's/^/| /' conftest.$ac_ext >&5
26716
26717echo "$as_me:$LINENO: result: no" >&5
26718echo "${ECHO_T}no" >&6
79668cae 26719fi
e6cc62c6 26720rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26721fi
26722
247f5006
VZ
26723ac_ext=c
26724ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26727ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26728
26729
26730
26731
4f14bcd8 26732if test "$TOOLKIT" != "MSW"; then
af15babd 26733
8284b0c5
MB
26734
26735
e6cc62c6
VS
26736
26737ac_ext=cc
4f14bcd8 26738ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26742
52127426 26743
e6cc62c6
VS
26744
26745
26746# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26747if test "${with_libiconv_prefix+set}" = set; then
26748 withval="$with_libiconv_prefix"
e6cc62c6 26749
b040e242
VS
26750 for dir in `echo "$withval" | tr : ' '`; do
26751 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26752 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26753 done
b040e242 26754
e6cc62c6 26755fi;
b040e242 26756
e6cc62c6
VS
26757 echo "$as_me:$LINENO: checking for iconv" >&5
26758echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26759if test "${am_cv_func_iconv+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26761else
e6cc62c6 26762
b040e242
VS
26763 am_cv_func_iconv="no, consider installing GNU libiconv"
26764 am_cv_lib_iconv=no
e6cc62c6
VS
26765 cat >conftest.$ac_ext <<_ACEOF
26766#line $LINENO "configure"
26767/* confdefs.h. */
26768_ACEOF
26769cat confdefs.h >>conftest.$ac_ext
26770cat >>conftest.$ac_ext <<_ACEOF
26771/* end confdefs.h. */
b040e242 26772#include <stdlib.h>
4f14bcd8 26773#include <iconv.h>
e6cc62c6
VS
26774int
26775main ()
26776{
b040e242
VS
26777iconv_t cd = iconv_open("","");
26778 iconv(cd,NULL,NULL,NULL,NULL);
26779 iconv_close(cd);
e6cc62c6
VS
26780 ;
26781 return 0;
26782}
26783_ACEOF
26784rm -f conftest.$ac_objext conftest$ac_exeext
26785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26786 (eval $ac_link) 2>&5
26787 ac_status=$?
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } &&
26790 { ac_try='test -s conftest$ac_exeext'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26793 ac_status=$?
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; }; then
b040e242 26796 am_cv_func_iconv=yes
af15babd 26797else
e6cc62c6
VS
26798 echo "$as_me: failed program was:" >&5
26799sed 's/^/| /' conftest.$ac_ext >&5
26800
b040e242 26801fi
e6cc62c6 26802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26803 if test "$am_cv_func_iconv" != yes; then
26804 am_save_LIBS="$LIBS"
26805 LIBS="$LIBS -liconv"
e6cc62c6
VS
26806 cat >conftest.$ac_ext <<_ACEOF
26807#line $LINENO "configure"
26808/* confdefs.h. */
26809_ACEOF
26810cat confdefs.h >>conftest.$ac_ext
26811cat >>conftest.$ac_ext <<_ACEOF
26812/* end confdefs.h. */
b040e242
VS
26813#include <stdlib.h>
26814#include <iconv.h>
e6cc62c6
VS
26815int
26816main ()
26817{
b040e242
VS
26818iconv_t cd = iconv_open("","");
26819 iconv(cd,NULL,NULL,NULL,NULL);
26820 iconv_close(cd);
e6cc62c6
VS
26821 ;
26822 return 0;
26823}
26824_ACEOF
26825rm -f conftest.$ac_objext conftest$ac_exeext
26826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26827 (eval $ac_link) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
26831 { ac_try='test -s conftest$ac_exeext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
b040e242
VS
26837 am_cv_lib_iconv=yes
26838 am_cv_func_iconv=yes
26839else
e6cc62c6
VS
26840 echo "$as_me: failed program was:" >&5
26841sed 's/^/| /' conftest.$ac_ext >&5
26842
af15babd 26843fi
e6cc62c6 26844rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26845 LIBS="$am_save_LIBS"
26846 fi
247f5006 26847
e6cc62c6
VS
26848fi
26849echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26850echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26851 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26852
26853cat >>confdefs.h <<\_ACEOF
b040e242 26854#define HAVE_ICONV 1
e6cc62c6 26855_ACEOF
b040e242 26856
e6cc62c6
VS
26857 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26858echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26859if test "${wx_cv_func_iconv_const+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26861else
e6cc62c6
VS
26862 cat >conftest.$ac_ext <<_ACEOF
26863#line $LINENO "configure"
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
b040e242
VS
26869
26870#include <stdlib.h>
26871#include <iconv.h>
26872extern
26873#ifdef __cplusplus
26874"C"
26875#endif
26876#if defined(__STDC__) || defined(__cplusplus)
26877size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26878#else
26879size_t iconv();
26880#endif
af15babd 26881
e6cc62c6
VS
26882int
26883main ()
26884{
26885
26886 ;
26887 return 0;
26888}
26889_ACEOF
26890rm -f conftest.$ac_objext
26891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26892 (eval $ac_compile) 2>&5
26893 ac_status=$?
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); } &&
26896 { ac_try='test -s conftest.$ac_objext'
26897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26898 (eval $ac_try) 2>&5
26899 ac_status=$?
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); }; }; then
b7043674 26902 wx_cv_func_iconv_const="no"
b040e242 26903else
e6cc62c6
VS
26904 echo "$as_me: failed program was:" >&5
26905sed 's/^/| /' conftest.$ac_ext >&5
26906
26907wx_cv_func_iconv_const="yes"
26908
247f5006 26909fi
e6cc62c6 26910rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26911
e6cc62c6
VS
26912fi
26913echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26914echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26915
26916 iconv_const=
1c405bb5 26917 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26918 iconv_const="const"
26919 fi
26920
e6cc62c6
VS
26921
26922cat >>confdefs.h <<_ACEOF
f09359cf 26923#define ICONV_CONST $iconv_const
e6cc62c6 26924_ACEOF
b040e242
VS
26925
26926 fi
26927 LIBICONV=
26928 if test "$am_cv_lib_iconv" = yes; then
26929 LIBICONV="-liconv"
26930 fi
e6cc62c6 26931
b040e242
VS
26932
26933LIBS="$LIBICONV $LIBS"
4f14bcd8 26934ac_ext=c
4f14bcd8 26935ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26939
5c6fa7d2 26940
8284b0c5 26941if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26942
26943for ac_func in sigaction
af15babd 26944do
e6cc62c6
VS
26945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26946echo "$as_me:$LINENO: checking for $ac_func" >&5
26947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26948if eval "test \"\${$as_ac_var+set}\" = set"; then
26949 echo $ECHO_N "(cached) $ECHO_C" >&6
26950else
26951 cat >conftest.$ac_ext <<_ACEOF
26952#line $LINENO "configure"
26953/* confdefs.h. */
26954_ACEOF
26955cat confdefs.h >>conftest.$ac_ext
26956cat >>conftest.$ac_ext <<_ACEOF
26957/* end confdefs.h. */
af15babd 26958/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26959 which can conflict with char $ac_func (); below.
26960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26961 <limits.h> exists even on freestanding compilers. */
26962#ifdef __STDC__
26963# include <limits.h>
26964#else
26965# include <assert.h>
26966#endif
af15babd 26967/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26968#ifdef __cplusplus
26969extern "C"
26970{
26971#endif
af15babd 26972/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26973 builtin and then its argument prototype would still apply. */
26974char $ac_func ();
af15babd
VZ
26975/* The GNU C library defines this for functions which it implements
26976 to always fail with ENOSYS. Some functions are actually named
26977 something starting with __ and the normal name is an alias. */
26978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26979choke me
26980#else
e6cc62c6
VS
26981char (*f) () = $ac_func;
26982#endif
26983#ifdef __cplusplus
26984}
af15babd
VZ
26985#endif
26986
e6cc62c6
VS
26987int
26988main ()
26989{
26990return f != $ac_func;
26991 ;
26992 return 0;
26993}
26994_ACEOF
26995rm -f conftest.$ac_objext conftest$ac_exeext
26996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26997 (eval $ac_link) 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } &&
27001 { ac_try='test -s conftest$ac_exeext'
27002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003 (eval $ac_try) 2>&5
27004 ac_status=$?
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); }; }; then
27007 eval "$as_ac_var=yes"
27008else
27009 echo "$as_me: failed program was:" >&5
27010sed 's/^/| /' conftest.$ac_ext >&5
27011
27012eval "$as_ac_var=no"
27013fi
27014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27015fi
27016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27018if test `eval echo '${'$as_ac_var'}'` = yes; then
27019 cat >>confdefs.h <<_ACEOF
27020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27021_ACEOF
7b4a847f 27022
4f14bcd8
GD
27023fi
27024done
27025
8284b0c5 27026
4f14bcd8 27027 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27028 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27029echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27030 wxUSE_ON_FATAL_EXCEPTION=no
27031 fi
27032
27033 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27034
27035
27036 ac_ext=cc
5c6fa7d2 27037ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27041
5c6fa7d2 27042
e6cc62c6
VS
27043 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27044echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27045if test "${wx_cv_type_sa_handler+set}" = set; then
27046 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27047else
e6cc62c6
VS
27048
27049 cat >conftest.$ac_ext <<_ACEOF
27050#line $LINENO "configure"
27051/* confdefs.h. */
27052_ACEOF
27053cat confdefs.h >>conftest.$ac_ext
27054cat >>conftest.$ac_ext <<_ACEOF
27055/* end confdefs.h. */
4f14bcd8 27056#include <signal.h>
e6cc62c6
VS
27057int
27058main ()
27059{
4f14bcd8
GD
27060
27061 extern void testSigHandler(int);
27062
27063 struct sigaction sa;
27064 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27065
27066 ;
27067 return 0;
27068}
27069_ACEOF
27070rm -f conftest.$ac_objext
27071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27072 (eval $ac_compile) 2>&5
27073 ac_status=$?
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } &&
27076 { ac_try='test -s conftest.$ac_objext'
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; }; then
27082
4f14bcd8 27083 wx_cv_type_sa_handler=int
e6cc62c6 27084
af15babd 27085else
e6cc62c6
VS
27086 echo "$as_me: failed program was:" >&5
27087sed 's/^/| /' conftest.$ac_ext >&5
27088
27089
4f14bcd8 27090 wx_cv_type_sa_handler=void
e6cc62c6 27091
247f5006 27092fi
e6cc62c6 27093rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27094
e6cc62c6
VS
27095fi
27096echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27097echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27098
27099 ac_ext=c
4f14bcd8 27100ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27103ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27104
8284b0c5 27105
e6cc62c6 27106 cat >>confdefs.h <<_ACEOF
4f14bcd8 27107#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27108_ACEOF
af15babd 27109
4f14bcd8
GD
27110 fi
27111fi
af15babd 27112
e6cc62c6
VS
27113
27114
a1d22ad7 27115for ac_func in mkstemp mktemp
af15babd 27116do
e6cc62c6
VS
27117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27118echo "$as_me:$LINENO: checking for $ac_func" >&5
27119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27120if eval "test \"\${$as_ac_var+set}\" = set"; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 cat >conftest.$ac_ext <<_ACEOF
27124#line $LINENO "configure"
27125/* confdefs.h. */
27126_ACEOF
27127cat confdefs.h >>conftest.$ac_ext
27128cat >>conftest.$ac_ext <<_ACEOF
27129/* end confdefs.h. */
af15babd 27130/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27131 which can conflict with char $ac_func (); below.
27132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27133 <limits.h> exists even on freestanding compilers. */
27134#ifdef __STDC__
27135# include <limits.h>
27136#else
27137# include <assert.h>
27138#endif
af15babd 27139/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27140#ifdef __cplusplus
27141extern "C"
27142{
27143#endif
af15babd 27144/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27145 builtin and then its argument prototype would still apply. */
27146char $ac_func ();
af15babd
VZ
27147/* The GNU C library defines this for functions which it implements
27148 to always fail with ENOSYS. Some functions are actually named
27149 something starting with __ and the normal name is an alias. */
27150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27151choke me
27152#else
e6cc62c6
VS
27153char (*f) () = $ac_func;
27154#endif
27155#ifdef __cplusplus
27156}
af15babd
VZ
27157#endif
27158
e6cc62c6
VS
27159int
27160main ()
27161{
27162return f != $ac_func;
27163 ;
27164 return 0;
27165}
27166_ACEOF
27167rm -f conftest.$ac_objext conftest$ac_exeext
27168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27169 (eval $ac_link) 2>&5
27170 ac_status=$?
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } &&
27173 { ac_try='test -s conftest$ac_exeext'
27174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175 (eval $ac_try) 2>&5
27176 ac_status=$?
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); }; }; then
27179 eval "$as_ac_var=yes"
27180else
27181 echo "$as_me: failed program was:" >&5
27182sed 's/^/| /' conftest.$ac_ext >&5
27183
27184eval "$as_ac_var=no"
27185fi
27186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27187fi
27188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27190if test `eval echo '${'$as_ac_var'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27193_ACEOF
ade35f11 27194 break
ade35f11
VZ
27195fi
27196done
27197
8284b0c5 27198
e6cc62c6
VS
27199echo "$as_me:$LINENO: checking for statfs" >&5
27200echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27201if test "${wx_cv_func_statfs+set}" = set; then
27202 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27203else
e6cc62c6
VS
27204 cat >conftest.$ac_ext <<_ACEOF
27205#line $LINENO "configure"
27206/* confdefs.h. */
27207_ACEOF
27208cat confdefs.h >>conftest.$ac_ext
27209cat >>conftest.$ac_ext <<_ACEOF
27210/* end confdefs.h. */
4f14bcd8
GD
27211
27212 #if defined(__BSD__)
27213 #include <sys/param.h>
27214 #include <sys/mount.h>
27215 #else
27216 #include <sys/vfs.h>
27217 #endif
e6cc62c6
VS
27218
27219int
27220main ()
27221{
4f14bcd8
GD
27222
27223 long l;
27224 struct statfs fs;
27225 statfs("/", &fs);
27226 l = fs.f_bsize;
27227 l += fs.f_blocks;
27228 l += fs.f_bavail;
e6cc62c6
VS
27229
27230 ;
27231 return 0;
27232}
27233_ACEOF
27234rm -f conftest.$ac_objext
27235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27236 (eval $ac_compile) 2>&5
27237 ac_status=$?
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } &&
27240 { ac_try='test -s conftest.$ac_objext'
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
27246
4f14bcd8 27247 wx_cv_func_statfs=yes
e6cc62c6 27248
4f14bcd8 27249else
e6cc62c6
VS
27250 echo "$as_me: failed program was:" >&5
27251sed 's/^/| /' conftest.$ac_ext >&5
27252
27253
4f14bcd8 27254 wx_cv_func_statfs=no
e6cc62c6 27255
8284b0c5 27256
247f5006 27257fi
e6cc62c6 27258rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27259
e6cc62c6
VS
27260fi
27261echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27262echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27263
27264if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27265 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27266 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27267#define HAVE_STATFS 1
e6cc62c6 27268_ACEOF
4f14bcd8
GD
27269
27270else
e6cc62c6
VS
27271 echo "$as_me:$LINENO: checking for statvfs" >&5
27272echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27273if test "${wx_cv_func_statvfs+set}" = set; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27275else
e6cc62c6
VS
27276 cat >conftest.$ac_ext <<_ACEOF
27277#line $LINENO "configure"
27278/* confdefs.h. */
27279_ACEOF
27280cat confdefs.h >>conftest.$ac_ext
27281cat >>conftest.$ac_ext <<_ACEOF
27282/* end confdefs.h. */
af15babd 27283
54ab82b3
VZ
27284 #include <stddef.h>
27285 #include <sys/statvfs.h>
e6cc62c6
VS
27286
27287int
27288main ()
27289{
af15babd 27290
54ab82b3 27291 statvfs("/", NULL);
e6cc62c6
VS
27292
27293 ;
27294 return 0;
27295}
27296_ACEOF
27297rm -f conftest.$ac_objext
27298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27299 (eval $ac_compile) 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } &&
27303 { ac_try='test -s conftest.$ac_objext'
27304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27306 ac_status=$?
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
54ab82b3 27309 wx_cv_func_statvfs=yes
af15babd 27310else
e6cc62c6
VS
27311 echo "$as_me: failed program was:" >&5
27312sed 's/^/| /' conftest.$ac_ext >&5
27313
27314wx_cv_func_statvfs=no
27315
247f5006 27316fi
e6cc62c6 27317rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27318
e6cc62c6
VS
27319fi
27320echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27321echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27322
4f14bcd8 27323 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27324
27325
27326 ac_ext=cc
54ab82b3 27327ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27331
27332
e6cc62c6
VS
27333 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27334echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27335if test "${wx_cv_type_statvfs_t+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27337else
e6cc62c6
VS
27338 cat >conftest.$ac_ext <<_ACEOF
27339#line $LINENO "configure"
27340/* confdefs.h. */
27341_ACEOF
27342cat confdefs.h >>conftest.$ac_ext
27343cat >>conftest.$ac_ext <<_ACEOF
27344/* end confdefs.h. */
54ab82b3
VZ
27345
27346 #include <sys/statvfs.h>
e6cc62c6
VS
27347
27348int
27349main ()
27350{
54ab82b3
VZ
27351
27352 long l;
27353 statvfs_t fs;
27354 statvfs("/", &fs);
27355 l = fs.f_bsize;
27356 l += fs.f_blocks;
27357 l += fs.f_bavail;
e6cc62c6
VS
27358
27359 ;
27360 return 0;
27361}
27362_ACEOF
27363rm -f conftest.$ac_objext
27364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27365 (eval $ac_compile) 2>&5
27366 ac_status=$?
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); } &&
27369 { ac_try='test -s conftest.$ac_objext'
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
54ab82b3
VZ
27375 wx_cv_type_statvfs_t=statvfs_t
27376else
e6cc62c6
VS
27377 echo "$as_me: failed program was:" >&5
27378sed 's/^/| /' conftest.$ac_ext >&5
27379
27380
27381 cat >conftest.$ac_ext <<_ACEOF
27382#line $LINENO "configure"
27383/* confdefs.h. */
27384_ACEOF
27385cat confdefs.h >>conftest.$ac_ext
27386cat >>conftest.$ac_ext <<_ACEOF
27387/* end confdefs.h. */
54ab82b3
VZ
27388
27389 #include <sys/statvfs.h>
e6cc62c6
VS
27390
27391int
27392main ()
27393{
54ab82b3
VZ
27394
27395 long l;
65d8ef1e 27396 struct statvfs fs;
54ab82b3
VZ
27397 statvfs("/", &fs);
27398 l = fs.f_bsize;
27399 l += fs.f_blocks;
27400 l += fs.f_bavail;
e6cc62c6
VS
27401
27402 ;
27403 return 0;
27404}
27405_ACEOF
27406rm -f conftest.$ac_objext
27407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27408 (eval $ac_compile) 2>&5
27409 ac_status=$?
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); } &&
27412 { ac_try='test -s conftest.$ac_objext'
27413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414 (eval $ac_try) 2>&5
27415 ac_status=$?
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
54ab82b3
VZ
27418 wx_cv_type_statvfs_t="struct statvfs"
27419else
e6cc62c6
VS
27420 echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
27423wx_cv_type_statvfs_t="unknown"
27424
54ab82b3 27425fi
e6cc62c6
VS
27426rm -f conftest.$ac_objext conftest.$ac_ext
27427
27428
54ab82b3 27429fi
e6cc62c6 27430rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27431
e6cc62c6
VS
27432fi
27433echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27434echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27435
27436 ac_ext=c
54ab82b3 27437ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27440ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27441
27442
27443 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27444 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27445#define HAVE_STATVFS 1
e6cc62c6 27446_ACEOF
af15babd 27447
54ab82b3 27448 fi
4f14bcd8 27449 else
54ab82b3 27450 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27451 fi
27452fi
af15babd 27453
54ab82b3 27454if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27455 cat >>confdefs.h <<_ACEOF
54ab82b3 27456#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27457_ACEOF
54ab82b3
VZ
27458
27459else
e6cc62c6
VS
27460 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27461echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27462fi
27463
4f14bcd8 27464if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27465
27466
27467for ac_func in fcntl flock
af15babd 27468do
e6cc62c6
VS
27469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27470echo "$as_me:$LINENO: checking for $ac_func" >&5
27471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27472if eval "test \"\${$as_ac_var+set}\" = set"; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27474else
27475 cat >conftest.$ac_ext <<_ACEOF
27476#line $LINENO "configure"
27477/* confdefs.h. */
27478_ACEOF
27479cat confdefs.h >>conftest.$ac_ext
27480cat >>conftest.$ac_ext <<_ACEOF
27481/* end confdefs.h. */
af15babd 27482/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27483 which can conflict with char $ac_func (); below.
27484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27485 <limits.h> exists even on freestanding compilers. */
27486#ifdef __STDC__
27487# include <limits.h>
27488#else
27489# include <assert.h>
27490#endif
af15babd 27491/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27492#ifdef __cplusplus
27493extern "C"
27494{
27495#endif
af15babd 27496/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27497 builtin and then its argument prototype would still apply. */
27498char $ac_func ();
af15babd
VZ
27499/* The GNU C library defines this for functions which it implements
27500 to always fail with ENOSYS. Some functions are actually named
27501 something starting with __ and the normal name is an alias. */
27502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27503choke me
27504#else
e6cc62c6
VS
27505char (*f) () = $ac_func;
27506#endif
27507#ifdef __cplusplus
27508}
af15babd
VZ
27509#endif
27510
e6cc62c6
VS
27511int
27512main ()
27513{
27514return f != $ac_func;
27515 ;
27516 return 0;
27517}
27518_ACEOF
27519rm -f conftest.$ac_objext conftest$ac_exeext
27520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27521 (eval $ac_link) 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -s conftest$ac_exeext'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27528 ac_status=$?
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
27531 eval "$as_ac_var=yes"
27532else
27533 echo "$as_me: failed program was:" >&5
27534sed 's/^/| /' conftest.$ac_ext >&5
27535
27536eval "$as_ac_var=no"
27537fi
27538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27539fi
27540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27542if test `eval echo '${'$as_ac_var'}'` = yes; then
27543 cat >>confdefs.h <<_ACEOF
27544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27545_ACEOF
4f14bcd8 27546 break
af15babd
VZ
27547fi
27548done
27549
8284b0c5 27550
4f14bcd8 27551 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27552 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27553echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27554 wxUSE_SNGLINST_CHECKER=no
27555 fi
27556fi
af15babd 27557
e6cc62c6 27558
4f14bcd8 27559for ac_func in timegm
af15babd 27560do
e6cc62c6
VS
27561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27562echo "$as_me:$LINENO: checking for $ac_func" >&5
27563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27564if eval "test \"\${$as_ac_var+set}\" = set"; then
27565 echo $ECHO_N "(cached) $ECHO_C" >&6
27566else
27567 cat >conftest.$ac_ext <<_ACEOF
27568#line $LINENO "configure"
27569/* confdefs.h. */
27570_ACEOF
27571cat confdefs.h >>conftest.$ac_ext
27572cat >>conftest.$ac_ext <<_ACEOF
27573/* end confdefs.h. */
af15babd 27574/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27575 which can conflict with char $ac_func (); below.
27576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27577 <limits.h> exists even on freestanding compilers. */
27578#ifdef __STDC__
27579# include <limits.h>
27580#else
27581# include <assert.h>
27582#endif
af15babd 27583/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27584#ifdef __cplusplus
27585extern "C"
27586{
27587#endif
af15babd 27588/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27589 builtin and then its argument prototype would still apply. */
27590char $ac_func ();
af15babd
VZ
27591/* The GNU C library defines this for functions which it implements
27592 to always fail with ENOSYS. Some functions are actually named
27593 something starting with __ and the normal name is an alias. */
247f5006
VZ
27594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27595choke me
27596#else
e6cc62c6
VS
27597char (*f) () = $ac_func;
27598#endif
27599#ifdef __cplusplus
27600}
247f5006
VZ
27601#endif
27602
e6cc62c6
VS
27603int
27604main ()
27605{
27606return f != $ac_func;
27607 ;
27608 return 0;
27609}
27610_ACEOF
27611rm -f conftest.$ac_objext conftest$ac_exeext
27612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27613 (eval $ac_link) 2>&5
27614 ac_status=$?
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
27617 { ac_try='test -s conftest$ac_exeext'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; }; then
27623 eval "$as_ac_var=yes"
27624else
27625 echo "$as_me: failed program was:" >&5
27626sed 's/^/| /' conftest.$ac_ext >&5
27627
27628eval "$as_ac_var=no"
27629fi
27630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27631fi
27632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27634if test `eval echo '${'$as_ac_var'}'` = yes; then
27635 cat >>confdefs.h <<_ACEOF
27636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27637_ACEOF
703e0a69 27638
af15babd
VZ
27639fi
27640done
27641
8284b0c5 27642
e6cc62c6
VS
27643
27644
4f14bcd8 27645for ac_func in putenv setenv
10f2d63a 27646do
e6cc62c6
VS
27647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27648echo "$as_me:$LINENO: checking for $ac_func" >&5
27649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27650if eval "test \"\${$as_ac_var+set}\" = set"; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
27652else
27653 cat >conftest.$ac_ext <<_ACEOF
27654#line $LINENO "configure"
27655/* confdefs.h. */
27656_ACEOF
27657cat confdefs.h >>conftest.$ac_ext
27658cat >>conftest.$ac_ext <<_ACEOF
27659/* end confdefs.h. */
af15babd 27660/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27661 which can conflict with char $ac_func (); below.
27662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27663 <limits.h> exists even on freestanding compilers. */
27664#ifdef __STDC__
27665# include <limits.h>
27666#else
27667# include <assert.h>
27668#endif
af15babd 27669/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27670#ifdef __cplusplus
27671extern "C"
27672{
27673#endif
af15babd 27674/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27675 builtin and then its argument prototype would still apply. */
27676char $ac_func ();
af15babd
VZ
27677/* The GNU C library defines this for functions which it implements
27678 to always fail with ENOSYS. Some functions are actually named
27679 something starting with __ and the normal name is an alias. */
27680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27681choke me
27682#else
e6cc62c6
VS
27683char (*f) () = $ac_func;
27684#endif
27685#ifdef __cplusplus
27686}
af15babd
VZ
27687#endif
27688
e6cc62c6
VS
27689int
27690main ()
27691{
27692return f != $ac_func;
27693 ;
27694 return 0;
27695}
27696_ACEOF
27697rm -f conftest.$ac_objext conftest$ac_exeext
27698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27699 (eval $ac_link) 2>&5
27700 ac_status=$?
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); } &&
27703 { ac_try='test -s conftest$ac_exeext'
27704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705 (eval $ac_try) 2>&5
27706 ac_status=$?
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; }; then
27709 eval "$as_ac_var=yes"
27710else
27711 echo "$as_me: failed program was:" >&5
27712sed 's/^/| /' conftest.$ac_ext >&5
27713
27714eval "$as_ac_var=no"
27715fi
27716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27717fi
27718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27719echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27720if test `eval echo '${'$as_ac_var'}'` = yes; then
27721 cat >>confdefs.h <<_ACEOF
27722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27723_ACEOF
4f14bcd8 27724 break
af15babd 27725fi
af15babd
VZ
27726done
27727
8284b0c5 27728
4f14bcd8
GD
27729HAVE_SOME_SLEEP_FUNC=0
27730if test "$USE_BEOS" = 1; then
e6cc62c6 27731 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27732#define HAVE_SLEEP 1
e6cc62c6 27733_ACEOF
af15babd 27734
4f14bcd8 27735 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27736fi
27737
4f14bcd8 27738if test "$USE_DARWIN" = 1; then
e6cc62c6 27739 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27740#define HAVE_USLEEP 1
e6cc62c6 27741_ACEOF
10f2d63a 27742
4f14bcd8 27743 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27744fi
27745
4f14bcd8
GD
27746if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27747 POSIX4_LINK=
e6cc62c6
VS
27748
27749for ac_func in nanosleep
4f14bcd8 27750do
e6cc62c6
VS
27751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27752echo "$as_me:$LINENO: checking for $ac_func" >&5
27753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27754if eval "test \"\${$as_ac_var+set}\" = set"; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27756else
27757 cat >conftest.$ac_ext <<_ACEOF
27758#line $LINENO "configure"
27759/* confdefs.h. */
27760_ACEOF
27761cat confdefs.h >>conftest.$ac_ext
27762cat >>conftest.$ac_ext <<_ACEOF
27763/* end confdefs.h. */
4f14bcd8 27764/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27765 which can conflict with char $ac_func (); below.
27766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27767 <limits.h> exists even on freestanding compilers. */
27768#ifdef __STDC__
27769# include <limits.h>
27770#else
27771# include <assert.h>
27772#endif
10f2d63a 27773/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27774#ifdef __cplusplus
27775extern "C"
27776{
27777#endif
10f2d63a 27778/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27779 builtin and then its argument prototype would still apply. */
27780char $ac_func ();
4f14bcd8
GD
27781/* The GNU C library defines this for functions which it implements
27782 to always fail with ENOSYS. Some functions are actually named
27783 something starting with __ and the normal name is an alias. */
27784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27785choke me
27786#else
e6cc62c6
VS
27787char (*f) () = $ac_func;
27788#endif
27789#ifdef __cplusplus
27790}
4f14bcd8
GD
27791#endif
27792
e6cc62c6
VS
27793int
27794main ()
27795{
27796return f != $ac_func;
27797 ;
27798 return 0;
27799}
27800_ACEOF
27801rm -f conftest.$ac_objext conftest$ac_exeext
27802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27803 (eval $ac_link) 2>&5
27804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
27807 { ac_try='test -s conftest$ac_exeext'
27808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809 (eval $ac_try) 2>&5
27810 ac_status=$?
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 eval "$as_ac_var=yes"
27814else
27815 echo "$as_me: failed program was:" >&5
27816sed 's/^/| /' conftest.$ac_ext >&5
27817
27818eval "$as_ac_var=no"
27819fi
27820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27821fi
27822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27824if test `eval echo '${'$as_ac_var'}'` = yes; then
27825 cat >>confdefs.h <<_ACEOF
27826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27827_ACEOF
27828 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27829#define HAVE_NANOSLEEP 1
e6cc62c6 27830_ACEOF
4f14bcd8 27831
10f2d63a 27832else
e6cc62c6
VS
27833
27834 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27835echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27836if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27838else
e6cc62c6 27839 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27840LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27841cat >conftest.$ac_ext <<_ACEOF
27842#line $LINENO "configure"
27843/* confdefs.h. */
27844_ACEOF
27845cat confdefs.h >>conftest.$ac_ext
27846cat >>conftest.$ac_ext <<_ACEOF
27847/* end confdefs.h. */
27848
10f2d63a 27849/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27850#ifdef __cplusplus
27851extern "C"
27852#endif
10f2d63a 27853/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27854 builtin and then its argument prototype would still apply. */
27855char nanosleep ();
27856int
27857main ()
27858{
27859nanosleep ();
27860 ;
27861 return 0;
27862}
27863_ACEOF
27864rm -f conftest.$ac_objext conftest$ac_exeext
27865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27866 (eval $ac_link) 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); } &&
27870 { ac_try='test -s conftest$ac_exeext'
27871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27873 ac_status=$?
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27876 ac_cv_lib_posix4_nanosleep=yes
27877else
27878 echo "$as_me: failed program was:" >&5
27879sed 's/^/| /' conftest.$ac_ext >&5
27880
27881ac_cv_lib_posix4_nanosleep=no
27882fi
27883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27884LIBS=$ac_check_lib_save_LIBS
27885fi
27886echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27887echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27888if test $ac_cv_lib_posix4_nanosleep = yes; then
27889
27890 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27891#define HAVE_NANOSLEEP 1
e6cc62c6 27892_ACEOF
4f14bcd8 27893
3d63bc3a 27894 POSIX4_LINK=" -lposix4"
e6cc62c6 27895
10f2d63a 27896else
10f2d63a 27897
e6cc62c6
VS
27898
27899for ac_func in usleep
4f14bcd8 27900do
e6cc62c6
VS
27901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27902echo "$as_me:$LINENO: checking for $ac_func" >&5
27903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27904if eval "test \"\${$as_ac_var+set}\" = set"; then
27905 echo $ECHO_N "(cached) $ECHO_C" >&6
27906else
27907 cat >conftest.$ac_ext <<_ACEOF
27908#line $LINENO "configure"
27909/* confdefs.h. */
27910_ACEOF
27911cat confdefs.h >>conftest.$ac_ext
27912cat >>conftest.$ac_ext <<_ACEOF
27913/* end confdefs.h. */
4f14bcd8 27914/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27915 which can conflict with char $ac_func (); below.
27916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27917 <limits.h> exists even on freestanding compilers. */
27918#ifdef __STDC__
27919# include <limits.h>
27920#else
27921# include <assert.h>
27922#endif
4f14bcd8 27923/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27924#ifdef __cplusplus
27925extern "C"
27926{
27927#endif
4f14bcd8 27928/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27929 builtin and then its argument prototype would still apply. */
27930char $ac_func ();
4f14bcd8
GD
27931/* The GNU C library defines this for functions which it implements
27932 to always fail with ENOSYS. Some functions are actually named
27933 something starting with __ and the normal name is an alias. */
27934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27935choke me
27936#else
e6cc62c6
VS
27937char (*f) () = $ac_func;
27938#endif
27939#ifdef __cplusplus
27940}
4f14bcd8
GD
27941#endif
27942
e6cc62c6
VS
27943int
27944main ()
27945{
27946return f != $ac_func;
27947 ;
27948 return 0;
27949}
27950_ACEOF
27951rm -f conftest.$ac_objext conftest$ac_exeext
27952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27953 (eval $ac_link) 2>&5
27954 ac_status=$?
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } &&
27957 { ac_try='test -s conftest$ac_exeext'
27958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959 (eval $ac_try) 2>&5
27960 ac_status=$?
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); }; }; then
27963 eval "$as_ac_var=yes"
27964else
27965 echo "$as_me: failed program was:" >&5
27966sed 's/^/| /' conftest.$ac_ext >&5
27967
27968eval "$as_ac_var=no"
27969fi
27970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27971fi
27972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27973echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27974if test `eval echo '${'$as_ac_var'}'` = yes; then
27975 cat >>confdefs.h <<_ACEOF
27976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27977_ACEOF
27978 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27979#define HAVE_USLEEP 1
e6cc62c6 27980_ACEOF
4f14bcd8 27981
698dcdb6 27982else
e6cc62c6
VS
27983 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27984echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27985
10f2d63a 27986fi
4f14bcd8 27987done
10f2d63a 27988
e6cc62c6
VS
27989
27990
6232543b 27991fi
10f2d63a 27992
e6cc62c6
VS
27993
27994
1e487827 27995fi
4f14bcd8 27996done
703e0a69 27997
10f2d63a
VZ
27998fi
27999
e6cc62c6
VS
28000
28001
4f14bcd8 28002for ac_func in uname gethostname
70846f0a 28003do
e6cc62c6
VS
28004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28005echo "$as_me:$LINENO: checking for $ac_func" >&5
28006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28007if eval "test \"\${$as_ac_var+set}\" = set"; then
28008 echo $ECHO_N "(cached) $ECHO_C" >&6
28009else
28010 cat >conftest.$ac_ext <<_ACEOF
28011#line $LINENO "configure"
28012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
70846f0a 28017/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28018 which can conflict with char $ac_func (); below.
28019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28020 <limits.h> exists even on freestanding compilers. */
28021#ifdef __STDC__
28022# include <limits.h>
28023#else
28024# include <assert.h>
28025#endif
70846f0a 28026/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28027#ifdef __cplusplus
28028extern "C"
28029{
28030#endif
70846f0a 28031/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28032 builtin and then its argument prototype would still apply. */
28033char $ac_func ();
70846f0a
VZ
28034/* The GNU C library defines this for functions which it implements
28035 to always fail with ENOSYS. Some functions are actually named
28036 something starting with __ and the normal name is an alias. */
28037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28038choke me
28039#else
e6cc62c6
VS
28040char (*f) () = $ac_func;
28041#endif
28042#ifdef __cplusplus
28043}
70846f0a
VZ
28044#endif
28045
e6cc62c6
VS
28046int
28047main ()
28048{
28049return f != $ac_func;
28050 ;
28051 return 0;
28052}
28053_ACEOF
28054rm -f conftest.$ac_objext conftest$ac_exeext
28055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28056 (eval $ac_link) 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } &&
28060 { ac_try='test -s conftest$ac_exeext'
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
28066 eval "$as_ac_var=yes"
28067else
28068 echo "$as_me: failed program was:" >&5
28069sed 's/^/| /' conftest.$ac_ext >&5
28070
28071eval "$as_ac_var=no"
28072fi
28073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28074fi
28075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28077if test `eval echo '${'$as_ac_var'}'` = yes; then
28078 cat >>confdefs.h <<_ACEOF
28079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28080_ACEOF
4f14bcd8 28081 break
70846f0a
VZ
28082fi
28083done
28084
8284b0c5
MB
28085
28086
e6cc62c6
VS
28087
28088ac_ext=cc
4f14bcd8 28089ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28093
8284b0c5 28094
4f14bcd8
GD
28095
28096for ac_func in strtok_r
10f2d63a 28097do
e6cc62c6
VS
28098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28099echo "$as_me:$LINENO: checking for $ac_func" >&5
28100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28101if eval "test \"\${$as_ac_var+set}\" = set"; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28103else
28104 cat >conftest.$ac_ext <<_ACEOF
28105#line $LINENO "configure"
28106/* confdefs.h. */
28107_ACEOF
28108cat confdefs.h >>conftest.$ac_ext
28109cat >>conftest.$ac_ext <<_ACEOF
28110/* end confdefs.h. */
4f14bcd8 28111/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28112 which can conflict with char $ac_func (); below.
28113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28114 <limits.h> exists even on freestanding compilers. */
28115#ifdef __STDC__
28116# include <limits.h>
28117#else
28118# include <assert.h>
28119#endif
4f14bcd8
GD
28120/* Override any gcc2 internal prototype to avoid an error. */
28121#ifdef __cplusplus
28122extern "C"
e6cc62c6 28123{
4f14bcd8
GD
28124#endif
28125/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28126 builtin and then its argument prototype would still apply. */
28127char $ac_func ();
4f14bcd8
GD
28128/* The GNU C library defines this for functions which it implements
28129 to always fail with ENOSYS. Some functions are actually named
28130 something starting with __ and the normal name is an alias. */
28131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28132choke me
28133#else
e6cc62c6
VS
28134char (*f) () = $ac_func;
28135#endif
28136#ifdef __cplusplus
28137}
4f14bcd8
GD
28138#endif
28139
e6cc62c6
VS
28140int
28141main ()
28142{
28143return f != $ac_func;
28144 ;
28145 return 0;
28146}
28147_ACEOF
28148rm -f conftest.$ac_objext conftest$ac_exeext
28149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28150 (eval $ac_link) 2>&5
28151 ac_status=$?
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); } &&
28154 { ac_try='test -s conftest$ac_exeext'
28155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28156 (eval $ac_try) 2>&5
28157 ac_status=$?
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; }; then
28160 eval "$as_ac_var=yes"
28161else
28162 echo "$as_me: failed program was:" >&5
28163sed 's/^/| /' conftest.$ac_ext >&5
28164
28165eval "$as_ac_var=no"
28166fi
28167rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28168fi
28169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28171if test `eval echo '${'$as_ac_var'}'` = yes; then
28172 cat >>confdefs.h <<_ACEOF
28173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28174_ACEOF
4f14bcd8 28175
10f2d63a
VZ
28176fi
28177done
28178
8284b0c5 28179
4f14bcd8 28180ac_ext=c
4f14bcd8 28181ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28184ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28185
5c6fa7d2 28186
8284b0c5 28187INET_LINK=
e6cc62c6 28188
4f14bcd8
GD
28189for ac_func in inet_addr
28190do
e6cc62c6
VS
28191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28192echo "$as_me:$LINENO: checking for $ac_func" >&5
28193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28194if eval "test \"\${$as_ac_var+set}\" = set"; then
28195 echo $ECHO_N "(cached) $ECHO_C" >&6
28196else
28197 cat >conftest.$ac_ext <<_ACEOF
28198#line $LINENO "configure"
28199/* confdefs.h. */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h. */
4f14bcd8 28204/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28205 which can conflict with char $ac_func (); below.
28206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28207 <limits.h> exists even on freestanding compilers. */
28208#ifdef __STDC__
28209# include <limits.h>
28210#else
28211# include <assert.h>
28212#endif
10f2d63a 28213/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28214#ifdef __cplusplus
28215extern "C"
28216{
28217#endif
10f2d63a 28218/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28219 builtin and then its argument prototype would still apply. */
28220char $ac_func ();
4f14bcd8
GD
28221/* The GNU C library defines this for functions which it implements
28222 to always fail with ENOSYS. Some functions are actually named
28223 something starting with __ and the normal name is an alias. */
28224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28225choke me
28226#else
e6cc62c6
VS
28227char (*f) () = $ac_func;
28228#endif
28229#ifdef __cplusplus
28230}
4f14bcd8
GD
28231#endif
28232
e6cc62c6
VS
28233int
28234main ()
28235{
28236return f != $ac_func;
28237 ;
28238 return 0;
28239}
28240_ACEOF
28241rm -f conftest.$ac_objext conftest$ac_exeext
28242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28243 (eval $ac_link) 2>&5
28244 ac_status=$?
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } &&
28247 { ac_try='test -s conftest$ac_exeext'
28248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249 (eval $ac_try) 2>&5
28250 ac_status=$?
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; }; then
28253 eval "$as_ac_var=yes"
28254else
28255 echo "$as_me: failed program was:" >&5
28256sed 's/^/| /' conftest.$ac_ext >&5
28257
28258eval "$as_ac_var=no"
28259fi
28260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28261fi
28262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28264if test `eval echo '${'$as_ac_var'}'` = yes; then
28265 cat >>confdefs.h <<_ACEOF
28266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28267_ACEOF
28268 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28269#define HAVE_INET_ADDR 1
e6cc62c6 28270_ACEOF
10f2d63a
VZ
28271
28272else
e6cc62c6
VS
28273
28274 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28275echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28276if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28277 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28278else
e6cc62c6 28279 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28280LIBS="-lnsl $LIBS"
e6cc62c6
VS
28281cat >conftest.$ac_ext <<_ACEOF
28282#line $LINENO "configure"
28283/* confdefs.h. */
28284_ACEOF
28285cat confdefs.h >>conftest.$ac_ext
28286cat >>conftest.$ac_ext <<_ACEOF
28287/* end confdefs.h. */
28288
10f2d63a 28289/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28290#ifdef __cplusplus
28291extern "C"
28292#endif
10f2d63a 28293/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28294 builtin and then its argument prototype would still apply. */
28295char inet_addr ();
28296int
28297main ()
28298{
28299inet_addr ();
28300 ;
28301 return 0;
28302}
28303_ACEOF
28304rm -f conftest.$ac_objext conftest$ac_exeext
28305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28306 (eval $ac_link) 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); } &&
28310 { ac_try='test -s conftest$ac_exeext'
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28313 ac_status=$?
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; }; then
28316 ac_cv_lib_nsl_inet_addr=yes
28317else
28318 echo "$as_me: failed program was:" >&5
28319sed 's/^/| /' conftest.$ac_ext >&5
28320
28321ac_cv_lib_nsl_inet_addr=no
28322fi
28323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28324LIBS=$ac_check_lib_save_LIBS
28325fi
28326echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28327echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28328if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28329 INET_LINK="nsl"
10f2d63a 28330else
e6cc62c6
VS
28331 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28332echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28333if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28335else
e6cc62c6 28336 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28337LIBS="-lresolv $LIBS"
e6cc62c6
VS
28338cat >conftest.$ac_ext <<_ACEOF
28339#line $LINENO "configure"
28340/* confdefs.h. */
28341_ACEOF
28342cat confdefs.h >>conftest.$ac_ext
28343cat >>conftest.$ac_ext <<_ACEOF
28344/* end confdefs.h. */
28345
5c6fa7d2 28346/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28347#ifdef __cplusplus
28348extern "C"
28349#endif
5c6fa7d2 28350/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28351 builtin and then its argument prototype would still apply. */
28352char inet_addr ();
28353int
28354main ()
28355{
28356inet_addr ();
28357 ;
28358 return 0;
28359}
28360_ACEOF
28361rm -f conftest.$ac_objext conftest$ac_exeext
28362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28363 (eval $ac_link) 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } &&
28367 { ac_try='test -s conftest$ac_exeext'
28368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369 (eval $ac_try) 2>&5
28370 ac_status=$?
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; }; then
28373 ac_cv_lib_resolv_inet_addr=yes
28374else
28375 echo "$as_me: failed program was:" >&5
28376sed 's/^/| /' conftest.$ac_ext >&5
28377
28378ac_cv_lib_resolv_inet_addr=no
28379fi
28380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28381LIBS=$ac_check_lib_save_LIBS
28382fi
28383echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28384echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28385if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28386 INET_LINK="resolv"
698dcdb6 28387else
e6cc62c6
VS
28388 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28389echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28390if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28392else
e6cc62c6 28393 ac_check_lib_save_LIBS=$LIBS
3c011993 28394LIBS="-lsocket $LIBS"
e6cc62c6
VS
28395cat >conftest.$ac_ext <<_ACEOF
28396#line $LINENO "configure"
28397/* confdefs.h. */
28398_ACEOF
28399cat confdefs.h >>conftest.$ac_ext
28400cat >>conftest.$ac_ext <<_ACEOF
28401/* end confdefs.h. */
28402
3c011993 28403/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28404#ifdef __cplusplus
28405extern "C"
28406#endif
3c011993 28407/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28408 builtin and then its argument prototype would still apply. */
28409char inet_addr ();
28410int
28411main ()
28412{
28413inet_addr ();
28414 ;
28415 return 0;
28416}
28417_ACEOF
28418rm -f conftest.$ac_objext conftest$ac_exeext
28419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28420 (eval $ac_link) 2>&5
28421 ac_status=$?
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); } &&
28424 { ac_try='test -s conftest$ac_exeext'
28425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28426 (eval $ac_try) 2>&5
28427 ac_status=$?
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); }; }; then
28430 ac_cv_lib_socket_inet_addr=yes
28431else
28432 echo "$as_me: failed program was:" >&5
28433sed 's/^/| /' conftest.$ac_ext >&5
28434
28435ac_cv_lib_socket_inet_addr=no
28436fi
28437rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28438LIBS=$ac_check_lib_save_LIBS
28439fi
28440echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28441echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28442if test $ac_cv_lib_socket_inet_addr = yes; then
28443 INET_LINK="socket"
4f14bcd8 28444
8284b0c5 28445fi
e6cc62c6 28446
698dcdb6 28447
7b4a847f 28448fi
e6cc62c6
VS
28449
28450
a0b9e27f 28451fi
579d8138 28452
e6cc62c6
VS
28453
28454
5c6fa7d2 28455fi
e6cc62c6
VS
28456done
28457
28458
28459
28460for ac_func in inet_aton
28461do
28462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28463echo "$as_me:$LINENO: checking for $ac_func" >&5
28464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28465if eval "test \"\${$as_ac_var+set}\" = set"; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28467else
28468 cat >conftest.$ac_ext <<_ACEOF
28469#line $LINENO "configure"
28470/* confdefs.h. */
28471_ACEOF
28472cat confdefs.h >>conftest.$ac_ext
28473cat >>conftest.$ac_ext <<_ACEOF
28474/* end confdefs.h. */
28475/* System header to define __stub macros and hopefully few prototypes,
28476 which can conflict with char $ac_func (); below.
28477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28478 <limits.h> exists even on freestanding compilers. */
28479#ifdef __STDC__
28480# include <limits.h>
28481#else
28482# include <assert.h>
28483#endif
28484/* Override any gcc2 internal prototype to avoid an error. */
28485#ifdef __cplusplus
28486extern "C"
28487{
28488#endif
28489/* We use char because int might match the return type of a gcc2
28490 builtin and then its argument prototype would still apply. */
28491char $ac_func ();
28492/* The GNU C library defines this for functions which it implements
28493 to always fail with ENOSYS. Some functions are actually named
28494 something starting with __ and the normal name is an alias. */
28495#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28496choke me
28497#else
28498char (*f) () = $ac_func;
28499#endif
28500#ifdef __cplusplus
28501}
28502#endif
28503
28504int
28505main ()
28506{
28507return f != $ac_func;
28508 ;
28509 return 0;
28510}
28511_ACEOF
28512rm -f conftest.$ac_objext conftest$ac_exeext
28513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28514 (eval $ac_link) 2>&5
28515 ac_status=$?
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); } &&
28518 { ac_try='test -s conftest$ac_exeext'
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28521 ac_status=$?
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; }; then
28524 eval "$as_ac_var=yes"
28525else
28526 echo "$as_me: failed program was:" >&5
28527sed 's/^/| /' conftest.$ac_ext >&5
28528
28529eval "$as_ac_var=no"
28530fi
28531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28532fi
28533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28534echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28535if test `eval echo '${'$as_ac_var'}'` = yes; then
28536 cat >>confdefs.h <<_ACEOF
28537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28538_ACEOF
28539 cat >>confdefs.h <<\_ACEOF
28540#define HAVE_INET_ATON 1
28541_ACEOF
28542
28543else
28544
28545 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28546echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28547echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28548if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28550else
28551 ac_check_lib_save_LIBS=$LIBS
28552LIBS="-l$INET_LINK $LIBS"
28553cat >conftest.$ac_ext <<_ACEOF
28554#line $LINENO "configure"
28555/* confdefs.h. */
28556_ACEOF
28557cat confdefs.h >>conftest.$ac_ext
28558cat >>conftest.$ac_ext <<_ACEOF
28559/* end confdefs.h. */
28560
28561/* Override any gcc2 internal prototype to avoid an error. */
28562#ifdef __cplusplus
28563extern "C"
28564#endif
28565/* We use char because int might match the return type of a gcc2
28566 builtin and then its argument prototype would still apply. */
28567char inet_aton ();
28568int
28569main ()
28570{
28571inet_aton ();
28572 ;
28573 return 0;
28574}
28575_ACEOF
28576rm -f conftest.$ac_objext conftest$ac_exeext
28577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28578 (eval $ac_link) 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } &&
28582 { ac_try='test -s conftest$ac_exeext'
28583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584 (eval $ac_try) 2>&5
28585 ac_status=$?
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; }; then
28588 eval "$as_ac_Lib=yes"
28589else
28590 echo "$as_me: failed program was:" >&5
28591sed 's/^/| /' conftest.$ac_ext >&5
28592
28593eval "$as_ac_Lib=no"
28594fi
28595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28596LIBS=$ac_check_lib_save_LIBS
28597fi
28598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28599echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28600if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28601 cat >>confdefs.h <<\_ACEOF
28602#define HAVE_INET_ATON 1
28603_ACEOF
52127426 28604
a0b9e27f 28605fi
247f5006 28606
8284b0c5 28607
698dcdb6 28608fi
4f14bcd8
GD
28609done
28610
8284b0c5 28611
e6cc62c6
VS
28612if test "x$INET_LINK" != "x"; then
28613 cat >>confdefs.h <<\_ACEOF
28614#define HAVE_INET_ADDR 1
28615_ACEOF
28616
28617 INET_LINK=" -l$INET_LINK"
28618fi
28619
28620fi
a0b9e27f 28621
a0b9e27f 28622
4f14bcd8 28623
e6cc62c6
VS
28624ESD_LINK=
28625if test "${ac_cv_header_esd_h+set}" = set; then
28626 echo "$as_me:$LINENO: checking for esd.h" >&5
28627echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28628if test "${ac_cv_header_esd_h+set}" = set; then
28629 echo $ECHO_N "(cached) $ECHO_C" >&6
28630fi
28631echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28632echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28633else
28634 # Is the header compilable?
28635echo "$as_me:$LINENO: checking esd.h usability" >&5
28636echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28637cat >conftest.$ac_ext <<_ACEOF
28638#line $LINENO "configure"
28639/* confdefs.h. */
28640_ACEOF
28641cat confdefs.h >>conftest.$ac_ext
28642cat >>conftest.$ac_ext <<_ACEOF
28643/* end confdefs.h. */
28644$ac_includes_default
28645#include <esd.h>
28646_ACEOF
28647rm -f conftest.$ac_objext
28648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28649 (eval $ac_compile) 2>&5
28650 ac_status=$?
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } &&
28653 { ac_try='test -s conftest.$ac_objext'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; }; then
28659 ac_header_compiler=yes
28660else
28661 echo "$as_me: failed program was:" >&5
28662sed 's/^/| /' conftest.$ac_ext >&5
28663
28664ac_header_compiler=no
28665fi
28666rm -f conftest.$ac_objext conftest.$ac_ext
28667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28668echo "${ECHO_T}$ac_header_compiler" >&6
28669
28670# Is the header present?
28671echo "$as_me:$LINENO: checking esd.h presence" >&5
28672echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28673cat >conftest.$ac_ext <<_ACEOF
28674#line $LINENO "configure"
28675/* confdefs.h. */
28676_ACEOF
28677cat confdefs.h >>conftest.$ac_ext
28678cat >>conftest.$ac_ext <<_ACEOF
28679/* end confdefs.h. */
28680#include <esd.h>
28681_ACEOF
28682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28684 ac_status=$?
28685 grep -v '^ *+' conftest.er1 >conftest.err
28686 rm -f conftest.er1
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } >/dev/null; then
28690 if test -s conftest.err; then
28691 ac_cpp_err=$ac_c_preproc_warn_flag
28692 else
28693 ac_cpp_err=
28694 fi
a0b9e27f 28695else
e6cc62c6
VS
28696 ac_cpp_err=yes
28697fi
28698if test -z "$ac_cpp_err"; then
28699 ac_header_preproc=yes
28700else
28701 echo "$as_me: failed program was:" >&5
28702sed 's/^/| /' conftest.$ac_ext >&5
28703
28704 ac_header_preproc=no
28705fi
28706rm -f conftest.err conftest.$ac_ext
28707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28708echo "${ECHO_T}$ac_header_preproc" >&6
28709
28710# So? What about this header?
28711case $ac_header_compiler:$ac_header_preproc in
28712 yes:no )
28713 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28714echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28715 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28716echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28717 (
28718 cat <<\_ASBOX
28719## ------------------------------------ ##
28720## Report this to bug-autoconf@gnu.org. ##
28721## ------------------------------------ ##
28722_ASBOX
28723 ) |
28724 sed "s/^/$as_me: WARNING: /" >&2
28725 ;;
28726 no:yes )
28727 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28728echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28729 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28730echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28731 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28732echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28733 (
28734 cat <<\_ASBOX
28735## ------------------------------------ ##
28736## Report this to bug-autoconf@gnu.org. ##
28737## ------------------------------------ ##
28738_ASBOX
28739 ) |
28740 sed "s/^/$as_me: WARNING: /" >&2
28741 ;;
28742esac
28743echo "$as_me:$LINENO: checking for esd.h" >&5
28744echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28745if test "${ac_cv_header_esd_h+set}" = set; then
28746 echo $ECHO_N "(cached) $ECHO_C" >&6
28747else
28748 ac_cv_header_esd_h=$ac_header_preproc
a0b9e27f 28749fi
e6cc62c6
VS
28750echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28751echo "${ECHO_T}$ac_cv_header_esd_h" >&6
a0b9e27f 28752
e6cc62c6
VS
28753fi
28754if test $ac_cv_header_esd_h = yes; then
4f14bcd8 28755
e6cc62c6
VS
28756 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28757echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28758if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28759 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28760else
e6cc62c6
VS
28761 ac_check_lib_save_LIBS=$LIBS
28762LIBS="-lesd $LIBS"
28763cat >conftest.$ac_ext <<_ACEOF
28764#line $LINENO "configure"
28765/* confdefs.h. */
28766_ACEOF
28767cat confdefs.h >>conftest.$ac_ext
28768cat >>conftest.$ac_ext <<_ACEOF
28769/* end confdefs.h. */
28770
6232543b 28771/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28772#ifdef __cplusplus
28773extern "C"
28774#endif
6232543b 28775/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28776 builtin and then its argument prototype would still apply. */
28777char esd_close ();
28778int
28779main ()
28780{
28781esd_close ();
28782 ;
28783 return 0;
28784}
28785_ACEOF
28786rm -f conftest.$ac_objext conftest$ac_exeext
28787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28788 (eval $ac_link) 2>&5
28789 ac_status=$?
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } &&
28792 { ac_try='test -s conftest$ac_exeext'
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; }; then
28798 ac_cv_lib_esd_esd_close=yes
a0b9e27f 28799else
e6cc62c6
VS
28800 echo "$as_me: failed program was:" >&5
28801sed 's/^/| /' conftest.$ac_ext >&5
4f14bcd8 28802
e6cc62c6 28803ac_cv_lib_esd_esd_close=no
10f2d63a 28804fi
e6cc62c6
VS
28805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28806LIBS=$ac_check_lib_save_LIBS
a0b9e27f 28807fi
e6cc62c6
VS
28808echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28809echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28810if test $ac_cv_lib_esd_esd_close = yes; then
247f5006 28811
e6cc62c6 28812 ESD_LINK="-lesd"
10f2d63a 28813
e6cc62c6 28814fi
8284b0c5 28815
4f14bcd8 28816
6232543b 28817fi
10f2d63a 28818
703e0a69 28819
8284b0c5 28820
e6cc62c6
VS
28821
28822
28823cat >confcache <<\_ACEOF
4f14bcd8
GD
28824# This file is a shell script that caches the results of configure
28825# tests run on this system so they can be shared between configure
e6cc62c6
VS
28826# scripts and configure runs, see configure's option --config-cache.
28827# It is not useful on other systems. If it contains results you don't
28828# want to keep, you may remove or edit it.
4f14bcd8 28829#
e6cc62c6
VS
28830# config.status only pays attention to the cache file if you give it
28831# the --recheck option to rerun configure.
4f14bcd8 28832#
e6cc62c6
VS
28833# `ac_cv_env_foo' variables (set or unset) will be overridden when
28834# loading this file, other *unset* `ac_cv_foo' will be assigned the
28835# following values.
28836
28837_ACEOF
28838
4f14bcd8
GD
28839# The following way of writing the cache mishandles newlines in values,
28840# but we know of no workaround that is simple, portable, and efficient.
28841# So, don't put newlines in cache variables' values.
28842# Ultrix sh set writes to stderr and can't be redirected directly,
28843# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28844{
28845 (set) 2>&1 |
28846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28847 *ac_space=\ *)
28848 # `set' does not quote correctly, so add quotes (double-quote
28849 # substitution turns \\\\ into \\, and sed turns \\ into \).
28850 sed -n \
28851 "s/'/'\\\\''/g;
28852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28853 ;;
28854 *)
28855 # `set' quotes correctly as required by POSIX, so do not add quotes.
28856 sed -n \
28857 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28858 ;;
28859 esac;
28860} |
28861 sed '
28862 t clear
28863 : clear
28864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28865 t end
28866 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28867 : end' >>confcache
28868if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28869 if test -w $cache_file; then
e6cc62c6
VS
28870 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28871 cat confcache >$cache_file
f6bcfd97 28872 else
4f14bcd8 28873 echo "not updating unwritable cache $cache_file"
f6bcfd97 28874 fi
4f14bcd8
GD
28875fi
28876rm -f confcache
f6bcfd97 28877
8284b0c5 28878
009fead0 28879CPP_MT_FLAG=
4f14bcd8
GD
28880if test "$TOOLKIT" != "MSW"; then
28881
e6cc62c6 28882
7274f1c7 28883 THREADS_LINK=
009fead0 28884 THREADS_CFLAGS=
7274f1c7
RL
28885
28886 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28887 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28888 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28889echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28890 wxUSE_THREADS="no"
28891 fi
4f14bcd8 28892 fi
4f14bcd8 28893
7274f1c7 28894 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28895
28896
009fead0
VZ
28897 THREAD_OPTS="-pthread"
28898 case "${host}" in
28899 *-*-solaris2* | *-*-sunos4* )
28900 if test "x$GCC" = "xyes"; then
126be6b4 28901 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28902 else
28903 THREAD_OPTS="-mt $THREAD_OPTS"
28904 fi
28905 ;;
28906 *-*-freebsd*)
28907 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28908 ;;
17234b26
MB
28909 *-*-darwin* | *-*-cygwin* )
28910 THREAD_OPTS=""
4101db81 28911 ;;
8f4a9a10 28912 *-*-aix*)
009fead0
VZ
28913 THREAD_OPTS="pthreads"
28914 ;;
4f5a7f74
VZ
28915 *-hp-hpux* )
28916 if test "x$GCC" != "xyes"; then
28917 THREAD_OPTS=""
28918 fi
89e3b3e4
VZ
28919 ;;
28920
28921 *-*-irix* )
28922 if test "x$GCC" = "xyes"; then
28923 THREAD_OPTS=""
28924 fi
28925 ;;
28926
28927 *-*-*UnixWare*)
28928 if test "x$GCC" != "xyes"; then
28929 THREAD_OPTS="-Ethread"
28930 fi
28931 ;;
009fead0 28932 esac
4f14bcd8 28933
02a1dfba 28934 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28935
009fead0
VZ
28936 THREADS_OK=no
28937 for flag in $THREAD_OPTS; do
28938 case $flag in
28939 none)
e6cc62c6
VS
28940 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28941echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28942 ;;
698dcdb6 28943
009fead0 28944 -*)
e6cc62c6
VS
28945 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28946echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28947 THREADS_CFLAGS="$flag"
28948 ;;
698dcdb6 28949
009fead0 28950 *)
e6cc62c6
VS
28951 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28952echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28953 THREADS_LINK="-l$flag"
28954 ;;
28955 esac
10f2d63a 28956
009fead0
VZ
28957 save_LIBS="$LIBS"
28958 save_CFLAGS="$CFLAGS"
28959 LIBS="$THREADS_LINK $LIBS"
04727afd 28960 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28961
e6cc62c6
VS
28962 cat >conftest.$ac_ext <<_ACEOF
28963#line $LINENO "configure"
28964/* confdefs.h. */
28965_ACEOF
28966cat confdefs.h >>conftest.$ac_ext
28967cat >>conftest.$ac_ext <<_ACEOF
28968/* end confdefs.h. */
009fead0 28969#include <pthread.h>
e6cc62c6
VS
28970int
28971main ()
28972{
009fead0 28973pthread_create(0,0,0,0);
e6cc62c6
VS
28974 ;
28975 return 0;
28976}
28977_ACEOF
28978rm -f conftest.$ac_objext conftest$ac_exeext
28979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28980 (eval $ac_link) 2>&5
28981 ac_status=$?
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } &&
28984 { ac_try='test -s conftest$ac_exeext'
28985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28986 (eval $ac_try) 2>&5
28987 ac_status=$?
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; }; then
009fead0 28990 THREADS_OK=yes
10f2d63a 28991else
e6cc62c6
VS
28992 echo "$as_me: failed program was:" >&5
28993sed 's/^/| /' conftest.$ac_ext >&5
28994
6232543b 28995fi
e6cc62c6 28996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28997
009fead0
VZ
28998 LIBS="$save_LIBS"
28999 CFLAGS="$save_CFLAGS"
d9b9876f 29000
e6cc62c6
VS
29001 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29002echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29003 if test "x$THREADS_OK" = "xyes"; then
29004 break;
29005 fi
d9b9876f 29006
009fead0
VZ
29007 THREADS_LINK=""
29008 THREADS_CFLAGS=""
29009 done
4f14bcd8 29010
009fead0
VZ
29011 if test "x$THREADS_OK" != "xyes"; then
29012 wxUSE_THREADS=no
e6cc62c6
VS
29013 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29014echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29015 else
db82f09e
VZ
29016 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29017 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29018
e6cc62c6
VS
29019 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29020echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29021 flag=no
29022 case "${host}" in
2b5f62a0
VZ
29023 *-aix*)
29024 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29025 flag="-D_THREAD_SAFE"
29026 ;;
29027 *-freebsd*)
009fead0
VZ
29028 flag="-D_THREAD_SAFE"
29029 ;;
06313569
GD
29030 *-hp-hpux* )
29031 flag="-D_REENTRANT"
4f5a7f74
VZ
29032 if test "x$GCC" != "xyes"; then
29033 flag="$flag -D_RWSTD_MULTI_THREAD"
29034 fi
06313569 29035 ;;
009fead0
VZ
29036 *solaris* | alpha*-osf*)
29037 flag="-D_REENTRANT"
29038 ;;
29039 esac
e6cc62c6
VS
29040 echo "$as_me:$LINENO: result: ${flag}" >&5
29041echo "${ECHO_T}${flag}" >&6
009fead0 29042 if test "x$flag" != xno; then
04727afd 29043 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29044 fi
29045
009fead0 29046 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29047 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29048 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29049 fi
29050 fi
4f14bcd8 29051 fi
4f14bcd8 29052
7274f1c7 29053 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29054
29055for ac_func in thr_setconcurrency
4f14bcd8 29056do
e6cc62c6
VS
29057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29058echo "$as_me:$LINENO: checking for $ac_func" >&5
29059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29060if eval "test \"\${$as_ac_var+set}\" = set"; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062else
29063 cat >conftest.$ac_ext <<_ACEOF
29064#line $LINENO "configure"
29065/* confdefs.h. */
29066_ACEOF
29067cat confdefs.h >>conftest.$ac_ext
29068cat >>conftest.$ac_ext <<_ACEOF
29069/* end confdefs.h. */
4f14bcd8 29070/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29071 which can conflict with char $ac_func (); below.
29072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29073 <limits.h> exists even on freestanding compilers. */
29074#ifdef __STDC__
29075# include <limits.h>
29076#else
29077# include <assert.h>
29078#endif
4f14bcd8 29079/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29080#ifdef __cplusplus
29081extern "C"
29082{
29083#endif
4f14bcd8 29084/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29085 builtin and then its argument prototype would still apply. */
29086char $ac_func ();
4f14bcd8
GD
29087/* The GNU C library defines this for functions which it implements
29088 to always fail with ENOSYS. Some functions are actually named
29089 something starting with __ and the normal name is an alias. */
29090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29091choke me
29092#else
e6cc62c6
VS
29093char (*f) () = $ac_func;
29094#endif
29095#ifdef __cplusplus
29096}
4f14bcd8
GD
29097#endif
29098
e6cc62c6
VS
29099int
29100main ()
29101{
29102return f != $ac_func;
29103 ;
29104 return 0;
29105}
29106_ACEOF
29107rm -f conftest.$ac_objext conftest$ac_exeext
29108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29109 (eval $ac_link) 2>&5
29110 ac_status=$?
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -s conftest$ac_exeext'
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29116 ac_status=$?
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; }; then
29119 eval "$as_ac_var=yes"
29120else
29121 echo "$as_me: failed program was:" >&5
29122sed 's/^/| /' conftest.$ac_ext >&5
29123
29124eval "$as_ac_var=no"
29125fi
29126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29127fi
29128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29129echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29130if test `eval echo '${'$as_ac_var'}'` = yes; then
29131 cat >>confdefs.h <<_ACEOF
29132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29133_ACEOF
698dcdb6 29134
10f2d63a 29135fi
4f14bcd8 29136done
10f2d63a 29137
8284b0c5 29138
e6cc62c6
VS
29139
29140for ac_header in sched.h
4f14bcd8 29141do
e6cc62c6
VS
29142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29143if eval "test \"\${$as_ac_Header+set}\" = set"; then
29144 echo "$as_me:$LINENO: checking for $ac_header" >&5
29145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29146if eval "test \"\${$as_ac_Header+set}\" = set"; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29148fi
29149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29151else
29152 # Is the header compilable?
29153echo "$as_me:$LINENO: checking $ac_header usability" >&5
29154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29155cat >conftest.$ac_ext <<_ACEOF
29156#line $LINENO "configure"
29157/* confdefs.h. */
29158_ACEOF
29159cat confdefs.h >>conftest.$ac_ext
29160cat >>conftest.$ac_ext <<_ACEOF
29161/* end confdefs.h. */
29162$ac_includes_default
29163#include <$ac_header>
29164_ACEOF
29165rm -f conftest.$ac_objext
29166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29167 (eval $ac_compile) 2>&5
29168 ac_status=$?
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } &&
29171 { ac_try='test -s conftest.$ac_objext'
29172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173 (eval $ac_try) 2>&5
29174 ac_status=$?
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); }; }; then
29177 ac_header_compiler=yes
29178else
29179 echo "$as_me: failed program was:" >&5
29180sed 's/^/| /' conftest.$ac_ext >&5
29181
29182ac_header_compiler=no
29183fi
29184rm -f conftest.$ac_objext conftest.$ac_ext
29185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29186echo "${ECHO_T}$ac_header_compiler" >&6
29187
29188# Is the header present?
29189echo "$as_me:$LINENO: checking $ac_header presence" >&5
29190echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29191cat >conftest.$ac_ext <<_ACEOF
29192#line $LINENO "configure"
29193/* confdefs.h. */
29194_ACEOF
29195cat confdefs.h >>conftest.$ac_ext
29196cat >>conftest.$ac_ext <<_ACEOF
29197/* end confdefs.h. */
29198#include <$ac_header>
29199_ACEOF
29200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29202 ac_status=$?
29203 grep -v '^ *+' conftest.er1 >conftest.err
29204 rm -f conftest.er1
29205 cat conftest.err >&5
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } >/dev/null; then
29208 if test -s conftest.err; then
29209 ac_cpp_err=$ac_c_preproc_warn_flag
29210 else
29211 ac_cpp_err=
29212 fi
29213else
29214 ac_cpp_err=yes
29215fi
29216if test -z "$ac_cpp_err"; then
29217 ac_header_preproc=yes
29218else
29219 echo "$as_me: failed program was:" >&5
29220sed 's/^/| /' conftest.$ac_ext >&5
29221
29222 ac_header_preproc=no
29223fi
29224rm -f conftest.err conftest.$ac_ext
29225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29226echo "${ECHO_T}$ac_header_preproc" >&6
29227
29228# So? What about this header?
29229case $ac_header_compiler:$ac_header_preproc in
29230 yes:no )
29231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29235 (
29236 cat <<\_ASBOX
29237## ------------------------------------ ##
29238## Report this to bug-autoconf@gnu.org. ##
29239## ------------------------------------ ##
29240_ASBOX
29241 ) |
29242 sed "s/^/$as_me: WARNING: /" >&2
29243 ;;
29244 no:yes )
29245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29251 (
29252 cat <<\_ASBOX
29253## ------------------------------------ ##
29254## Report this to bug-autoconf@gnu.org. ##
29255## ------------------------------------ ##
29256_ASBOX
29257 ) |
29258 sed "s/^/$as_me: WARNING: /" >&2
29259 ;;
29260esac
29261echo "$as_me:$LINENO: checking for $ac_header" >&5
29262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29263if eval "test \"\${$as_ac_Header+set}\" = set"; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29265else
29266 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29267fi
e6cc62c6
VS
29268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29270
10f2d63a 29271fi
e6cc62c6
VS
29272if test `eval echo '${'$as_ac_Header'}'` = yes; then
29273 cat >>confdefs.h <<_ACEOF
29274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29275_ACEOF
29276
f6bcfd97 29277fi
e6cc62c6 29278
4f14bcd8 29279done
f6bcfd97 29280
009fead0 29281 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29282 echo "$as_me:$LINENO: checking for sched_yield" >&5
29283echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29284if test "${ac_cv_func_sched_yield+set}" = set; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29286else
29287 cat >conftest.$ac_ext <<_ACEOF
29288#line $LINENO "configure"
29289/* confdefs.h. */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h. */
009fead0 29294/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29295 which can conflict with char sched_yield (); below.
29296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29297 <limits.h> exists even on freestanding compilers. */
29298#ifdef __STDC__
29299# include <limits.h>
29300#else
29301# include <assert.h>
29302#endif
4f14bcd8 29303/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29304#ifdef __cplusplus
29305extern "C"
29306{
29307#endif
4f14bcd8 29308/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29309 builtin and then its argument prototype would still apply. */
29310char sched_yield ();
009fead0
VZ
29311/* The GNU C library defines this for functions which it implements
29312 to always fail with ENOSYS. Some functions are actually named
29313 something starting with __ and the normal name is an alias. */
29314#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29315choke me
29316#else
e6cc62c6
VS
29317char (*f) () = sched_yield;
29318#endif
29319#ifdef __cplusplus
29320}
009fead0
VZ
29321#endif
29322
e6cc62c6
VS
29323int
29324main ()
29325{
29326return f != sched_yield;
29327 ;
29328 return 0;
29329}
29330_ACEOF
29331rm -f conftest.$ac_objext conftest$ac_exeext
29332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29333 (eval $ac_link) 2>&5
29334 ac_status=$?
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); } &&
29337 { ac_try='test -s conftest$ac_exeext'
29338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339 (eval $ac_try) 2>&5
29340 ac_status=$?
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; }; then
29343 ac_cv_func_sched_yield=yes
29344else
29345 echo "$as_me: failed program was:" >&5
29346sed 's/^/| /' conftest.$ac_ext >&5
29347
29348ac_cv_func_sched_yield=no
29349fi
29350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29351fi
29352echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29353echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29354if test $ac_cv_func_sched_yield = yes; then
29355 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29356#define HAVE_SCHED_YIELD 1
e6cc62c6 29357_ACEOF
10f2d63a 29358
4f14bcd8 29359else
009fead0 29360
e6cc62c6
VS
29361 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29362echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29363if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29365else
e6cc62c6 29366 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29367LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29368cat >conftest.$ac_ext <<_ACEOF
29369#line $LINENO "configure"
29370/* confdefs.h. */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h. */
29375
4f14bcd8 29376/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29377#ifdef __cplusplus
29378extern "C"
29379#endif
4f14bcd8 29380/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29381 builtin and then its argument prototype would still apply. */
29382char sched_yield ();
29383int
29384main ()
29385{
29386sched_yield ();
29387 ;
29388 return 0;
29389}
29390_ACEOF
29391rm -f conftest.$ac_objext conftest$ac_exeext
29392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29393 (eval $ac_link) 2>&5
29394 ac_status=$?
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } &&
29397 { ac_try='test -s conftest$ac_exeext'
29398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 (eval $ac_try) 2>&5
29400 ac_status=$?
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); }; }; then
29403 ac_cv_lib_posix4_sched_yield=yes
29404else
29405 echo "$as_me: failed program was:" >&5
29406sed 's/^/| /' conftest.$ac_ext >&5
29407
29408ac_cv_lib_posix4_sched_yield=no
29409fi
29410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29411LIBS=$ac_check_lib_save_LIBS
29412fi
29413echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29414echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29415if test $ac_cv_lib_posix4_sched_yield = yes; then
29416 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29417#define HAVE_SCHED_YIELD 1
e6cc62c6 29418_ACEOF
3d63bc3a 29419 POSIX4_LINK=" -lposix4"
4f14bcd8 29420else
e6cc62c6
VS
29421 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29422echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29423
54276ccf
VZ
29424fi
29425
e6cc62c6
VS
29426
29427
4f14bcd8 29428fi
698dcdb6 29429
009fead0 29430 fi
10f2d63a 29431
7274f1c7 29432 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29433 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29434echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29435if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29436 echo $ECHO_N "(cached) $ECHO_C" >&6
29437else
29438 cat >conftest.$ac_ext <<_ACEOF
29439#line $LINENO "configure"
29440/* confdefs.h. */
29441_ACEOF
29442cat confdefs.h >>conftest.$ac_ext
29443cat >>conftest.$ac_ext <<_ACEOF
29444/* end confdefs.h. */
009fead0 29445/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29446 which can conflict with char pthread_attr_getschedpolicy (); below.
29447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29448 <limits.h> exists even on freestanding compilers. */
29449#ifdef __STDC__
29450# include <limits.h>
29451#else
29452# include <assert.h>
29453#endif
4f14bcd8 29454/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29455#ifdef __cplusplus
29456extern "C"
29457{
29458#endif
4f14bcd8 29459/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29460 builtin and then its argument prototype would still apply. */
29461char pthread_attr_getschedpolicy ();
009fead0
VZ
29462/* The GNU C library defines this for functions which it implements
29463 to always fail with ENOSYS. Some functions are actually named
29464 something starting with __ and the normal name is an alias. */
29465#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29466choke me
29467#else
e6cc62c6
VS
29468char (*f) () = pthread_attr_getschedpolicy;
29469#endif
29470#ifdef __cplusplus
29471}
009fead0
VZ
29472#endif
29473
e6cc62c6
VS
29474int
29475main ()
29476{
29477return f != pthread_attr_getschedpolicy;
29478 ;
29479 return 0;
29480}
29481_ACEOF
29482rm -f conftest.$ac_objext conftest$ac_exeext
29483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29484 (eval $ac_link) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } &&
29488 { ac_try='test -s conftest$ac_exeext'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; }; then
29494 ac_cv_func_pthread_attr_getschedpolicy=yes
29495else
29496 echo "$as_me: failed program was:" >&5
29497sed 's/^/| /' conftest.$ac_ext >&5
29498
29499ac_cv_func_pthread_attr_getschedpolicy=no
29500fi
29501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29502fi
29503echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29504echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29505if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29506 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29507echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29508if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29509 echo $ECHO_N "(cached) $ECHO_C" >&6
29510else
29511 cat >conftest.$ac_ext <<_ACEOF
29512#line $LINENO "configure"
29513/* confdefs.h. */
29514_ACEOF
29515cat confdefs.h >>conftest.$ac_ext
29516cat >>conftest.$ac_ext <<_ACEOF
29517/* end confdefs.h. */
a0b9e27f 29518/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29519 which can conflict with char pthread_attr_setschedparam (); below.
29520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29521 <limits.h> exists even on freestanding compilers. */
29522#ifdef __STDC__
29523# include <limits.h>
29524#else
29525# include <assert.h>
29526#endif
422107f9 29527/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29528#ifdef __cplusplus
29529extern "C"
29530{
29531#endif
422107f9 29532/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29533 builtin and then its argument prototype would still apply. */
29534char pthread_attr_setschedparam ();
009fead0
VZ
29535/* The GNU C library defines this for functions which it implements
29536 to always fail with ENOSYS. Some functions are actually named
29537 something starting with __ and the normal name is an alias. */
29538#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29539choke me
29540#else
e6cc62c6
VS
29541char (*f) () = pthread_attr_setschedparam;
29542#endif
29543#ifdef __cplusplus
29544}
009fead0
VZ
29545#endif
29546
e6cc62c6
VS
29547int
29548main ()
29549{
29550return f != pthread_attr_setschedparam;
29551 ;
29552 return 0;
29553}
29554_ACEOF
29555rm -f conftest.$ac_objext conftest$ac_exeext
29556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29557 (eval $ac_link) 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); } &&
29561 { ac_try='test -s conftest$ac_exeext'
29562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29563 (eval $ac_try) 2>&5
29564 ac_status=$?
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; }; then
29567 ac_cv_func_pthread_attr_setschedparam=yes
29568else
29569 echo "$as_me: failed program was:" >&5
29570sed 's/^/| /' conftest.$ac_ext >&5
29571
29572ac_cv_func_pthread_attr_setschedparam=no
29573fi
29574rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29575fi
29576echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29577echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29578if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29579 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29580echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29581if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29583else
29584 cat >conftest.$ac_ext <<_ACEOF
29585#line $LINENO "configure"
29586/* confdefs.h. */
29587_ACEOF
29588cat confdefs.h >>conftest.$ac_ext
29589cat >>conftest.$ac_ext <<_ACEOF
29590/* end confdefs.h. */
ef33c576 29591/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29592 which can conflict with char sched_get_priority_max (); below.
29593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29594 <limits.h> exists even on freestanding compilers. */
29595#ifdef __STDC__
29596# include <limits.h>
29597#else
29598# include <assert.h>
29599#endif
4f14bcd8 29600/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29601#ifdef __cplusplus
29602extern "C"
29603{
29604#endif
4f14bcd8 29605/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29606 builtin and then its argument prototype would still apply. */
29607char sched_get_priority_max ();
009fead0
VZ
29608/* The GNU C library defines this for functions which it implements
29609 to always fail with ENOSYS. Some functions are actually named
29610 something starting with __ and the normal name is an alias. */
29611#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29612choke me
29613#else
e6cc62c6
VS
29614char (*f) () = sched_get_priority_max;
29615#endif
29616#ifdef __cplusplus
29617}
009fead0
VZ
29618#endif
29619
e6cc62c6
VS
29620int
29621main ()
29622{
29623return f != sched_get_priority_max;
29624 ;
29625 return 0;
29626}
29627_ACEOF
29628rm -f conftest.$ac_objext conftest$ac_exeext
29629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29630 (eval $ac_link) 2>&5
29631 ac_status=$?
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
29634 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29640 ac_cv_func_sched_get_priority_max=yes
29641else
29642 echo "$as_me: failed program was:" >&5
29643sed 's/^/| /' conftest.$ac_ext >&5
29644
29645ac_cv_func_sched_get_priority_max=no
29646fi
29647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29648fi
29649echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29650echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29651if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29652 HAVE_PRIOR_FUNCS=1
29653else
e6cc62c6
VS
29654 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29655echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29656if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29657 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29658else
e6cc62c6 29659 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29660LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29661cat >conftest.$ac_ext <<_ACEOF
29662#line $LINENO "configure"
29663/* confdefs.h. */
29664_ACEOF
29665cat confdefs.h >>conftest.$ac_ext
29666cat >>conftest.$ac_ext <<_ACEOF
29667/* end confdefs.h. */
29668
422107f9 29669/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29670#ifdef __cplusplus
29671extern "C"
29672#endif
422107f9 29673/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29674 builtin and then its argument prototype would still apply. */
29675char sched_get_priority_max ();
29676int
29677main ()
29678{
29679sched_get_priority_max ();
29680 ;
29681 return 0;
29682}
29683_ACEOF
29684rm -f conftest.$ac_objext conftest$ac_exeext
29685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29686 (eval $ac_link) 2>&5
29687 ac_status=$?
29688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); } &&
29690 { ac_try='test -s conftest$ac_exeext'
29691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29692 (eval $ac_try) 2>&5
29693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; }; then
29696 ac_cv_lib_posix4_sched_get_priority_max=yes
29697else
29698 echo "$as_me: failed program was:" >&5
29699sed 's/^/| /' conftest.$ac_ext >&5
29700
29701ac_cv_lib_posix4_sched_get_priority_max=no
29702fi
29703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29704LIBS=$ac_check_lib_save_LIBS
29705fi
29706echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29707echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29708if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29709
7274f1c7
RL
29710 HAVE_PRIOR_FUNCS=1
29711 POSIX4_LINK=" -lposix4"
e6cc62c6 29712
4f14bcd8 29713fi
463abc64 29714
e6cc62c6 29715
328a083c 29716fi
463abc64 29717
e6cc62c6 29718
7b4a847f 29719fi
579d8138 29720
e6cc62c6 29721
5c6fa7d2 29722fi
52127426 29723
8284b0c5 29724
7274f1c7 29725 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29726 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29727#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29728_ACEOF
463abc64 29729
7274f1c7 29730 else
e6cc62c6
VS
29731 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29732echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29733 fi
463abc64 29734
e6cc62c6
VS
29735 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29736echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29737if test "${ac_cv_func_pthread_cancel+set}" = set; then
29738 echo $ECHO_N "(cached) $ECHO_C" >&6
29739else
29740 cat >conftest.$ac_ext <<_ACEOF
29741#line $LINENO "configure"
29742/* confdefs.h. */
29743_ACEOF
29744cat confdefs.h >>conftest.$ac_ext
29745cat >>conftest.$ac_ext <<_ACEOF
29746/* end confdefs.h. */
009fead0 29747/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29748 which can conflict with char pthread_cancel (); below.
29749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29750 <limits.h> exists even on freestanding compilers. */
29751#ifdef __STDC__
29752# include <limits.h>
29753#else
29754# include <assert.h>
29755#endif
422107f9 29756/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29757#ifdef __cplusplus
29758extern "C"
29759{
29760#endif
422107f9 29761/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29762 builtin and then its argument prototype would still apply. */
29763char pthread_cancel ();
009fead0
VZ
29764/* The GNU C library defines this for functions which it implements
29765 to always fail with ENOSYS. Some functions are actually named
29766 something starting with __ and the normal name is an alias. */
29767#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29768choke me
29769#else
e6cc62c6
VS
29770char (*f) () = pthread_cancel;
29771#endif
29772#ifdef __cplusplus
29773}
009fead0
VZ
29774#endif
29775
e6cc62c6
VS
29776int
29777main ()
29778{
29779return f != pthread_cancel;
29780 ;
29781 return 0;
29782}
29783_ACEOF
29784rm -f conftest.$ac_objext conftest$ac_exeext
29785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29786 (eval $ac_link) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); } &&
29790 { ac_try='test -s conftest$ac_exeext'
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; }; then
29796 ac_cv_func_pthread_cancel=yes
29797else
29798 echo "$as_me: failed program was:" >&5
29799sed 's/^/| /' conftest.$ac_ext >&5
29800
29801ac_cv_func_pthread_cancel=no
29802fi
29803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29804fi
29805echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29806echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29807if test $ac_cv_func_pthread_cancel = yes; then
29808 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29809#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29810_ACEOF
4f14bcd8 29811
698dcdb6 29812else
e6cc62c6
VS
29813 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29814echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29815fi
29816
5c6fa7d2 29817
e6cc62c6
VS
29818 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29819echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29820if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29822else
e6cc62c6
VS
29823
29824 cat >conftest.$ac_ext <<_ACEOF
29825#line $LINENO "configure"
29826/* confdefs.h. */
29827_ACEOF
29828cat confdefs.h >>conftest.$ac_ext
29829cat >>conftest.$ac_ext <<_ACEOF
29830/* end confdefs.h. */
4f14bcd8 29831#include <pthread.h>
e6cc62c6
VS
29832int
29833main ()
29834{
4f14bcd8 29835
7274f1c7
RL
29836 pthread_cleanup_push(NULL, NULL);
29837 pthread_cleanup_pop(0);
e6cc62c6
VS
29838
29839 ;
29840 return 0;
29841}
29842_ACEOF
29843rm -f conftest.$ac_objext
29844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29845 (eval $ac_compile) 2>&5
29846 ac_status=$?
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } &&
29849 { ac_try='test -s conftest.$ac_objext'
29850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851 (eval $ac_try) 2>&5
29852 ac_status=$?
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; }; then
29855
7274f1c7 29856 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29857
4f14bcd8 29858else
e6cc62c6
VS
29859 echo "$as_me: failed program was:" >&5
29860sed 's/^/| /' conftest.$ac_ext >&5
29861
29862
7274f1c7 29863 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29864
247f5006 29865fi
e6cc62c6 29866rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29867
e6cc62c6
VS
29868fi
29869echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29870echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29871
7274f1c7 29872 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29873 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29874#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29875_ACEOF
c7a2bf27 29876
7274f1c7 29877 fi
4f14bcd8 29878
e6cc62c6
VS
29879
29880 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29881echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29882if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29884else
e6cc62c6
VS
29885
29886 cat >conftest.$ac_ext <<_ACEOF
29887#line $LINENO "configure"
29888/* confdefs.h. */
29889_ACEOF
29890cat confdefs.h >>conftest.$ac_ext
29891cat >>conftest.$ac_ext <<_ACEOF
29892/* end confdefs.h. */
4f14bcd8 29893#include <pthread.h>
e6cc62c6
VS
29894int
29895main ()
29896{
4f14bcd8 29897
7274f1c7
RL
29898 pthread_mutexattr_t attr;
29899 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29900
29901 ;
29902 return 0;
29903}
29904_ACEOF
29905rm -f conftest.$ac_objext
29906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29907 (eval $ac_compile) 2>&5
29908 ac_status=$?
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); } &&
29911 { ac_try='test -s conftest.$ac_objext'
29912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913 (eval $ac_try) 2>&5
29914 ac_status=$?
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); }; }; then
29917
7274f1c7 29918 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29919
3fed1840 29920else
e6cc62c6
VS
29921 echo "$as_me: failed program was:" >&5
29922sed 's/^/| /' conftest.$ac_ext >&5
29923
29924
7274f1c7 29925 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29926
29927
247f5006 29928fi
e6cc62c6 29929rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29930
e6cc62c6
VS
29931fi
29932echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29933echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29934
7274f1c7 29935 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29936 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29937#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29938_ACEOF
4f14bcd8 29939
7274f1c7 29940 else
e6cc62c6
VS
29941 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29942echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29943if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29944 echo $ECHO_N "(cached) $ECHO_C" >&6
29945else
29946
29947 cat >conftest.$ac_ext <<_ACEOF
29948#line $LINENO "configure"
29949/* confdefs.h. */
29950_ACEOF
29951cat confdefs.h >>conftest.$ac_ext
29952cat >>conftest.$ac_ext <<_ACEOF
29953/* end confdefs.h. */
4f14bcd8 29954#include <pthread.h>
e6cc62c6
VS
29955int
29956main ()
29957{
4f14bcd8 29958
7274f1c7 29959 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29960
29961 ;
29962 return 0;
29963}
29964_ACEOF
29965rm -f conftest.$ac_objext
29966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29967 (eval $ac_compile) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); } &&
29971 { ac_try='test -s conftest.$ac_objext'
29972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973 (eval $ac_try) 2>&5
29974 ac_status=$?
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; }; then
29977
7274f1c7 29978 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29979
698dcdb6 29980else
e6cc62c6
VS
29981 echo "$as_me: failed program was:" >&5
29982sed 's/^/| /' conftest.$ac_ext >&5
29983
29984
7274f1c7 29985 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29986
29987
247f5006 29988fi
e6cc62c6 29989rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29990
e6cc62c6
VS
29991fi
29992echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29993echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29994 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29995 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29996#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29997_ACEOF
3fed1840 29998
7274f1c7 29999 else
e6cc62c6
VS
30000 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30001echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30002 fi
30003 fi
7274f1c7 30004 fi
3fed1840 30005
a0b9e27f
MB
30006else
30007 if test "$wxUSE_THREADS" = "yes" ; then
30008 case "${host}" in
30009 *-*-mingw32* )
e6cc62c6
VS
30010 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30011echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30012if test "${wx_cv_cflags_mthread+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30014else
e6cc62c6 30015
ca8e52b3
VZ
30016 CFLAGS_OLD="$CFLAGS"
30017 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30018 cat >conftest.$ac_ext <<_ACEOF
30019#line $LINENO "configure"
30020/* confdefs.h. */
30021_ACEOF
30022cat confdefs.h >>conftest.$ac_ext
30023cat >>conftest.$ac_ext <<_ACEOF
30024/* end confdefs.h. */
30025
30026int
30027main ()
30028{
ca8e52b3 30029
e6cc62c6
VS
30030 ;
30031 return 0;
30032}
30033_ACEOF
30034rm -f conftest.$ac_objext
30035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30036 (eval $ac_compile) 2>&5
30037 ac_status=$?
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } &&
30040 { ac_try='test -s conftest.$ac_objext'
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
ca8e52b3
VZ
30046 wx_cv_cflags_mthread=yes
30047else
e6cc62c6
VS
30048 echo "$as_me: failed program was:" >&5
30049sed 's/^/| /' conftest.$ac_ext >&5
30050
30051wx_cv_cflags_mthread=no
30052
ca8e52b3 30053fi
e6cc62c6
VS
30054rm -f conftest.$ac_objext conftest.$ac_ext
30055
ca8e52b3 30056
e6cc62c6
VS
30057fi
30058echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30059echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30060
30061 if test "$wx_cv_cflags_mthread" = "yes"; then
30062 CXXFLAGS="$CXXFLAGS -mthreads"
30063 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30064 LDFLAGS="$LDFLAGS -mthreads"
30065 else
30066 CFLAGS="$CFLAGS_OLD"
30067 fi
a0b9e27f
MB
30068 ;;
30069 esac
30070 fi
4f14bcd8
GD
30071fi
30072
30073if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30074 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30075#define wxUSE_THREADS 1
e6cc62c6 30076_ACEOF
7b6058cd 30077
8284b0c5 30078
4f14bcd8 30079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30080else
4f14bcd8 30081 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30082 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30083echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30084 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30085 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30086 echo "$as_me:$LINENO: result: yes" >&5
30087echo "${ECHO_T}yes" >&6
4f14bcd8 30088 else
e6cc62c6
VS
30089 echo "$as_me:$LINENO: result: no" >&5
30090echo "${ECHO_T}no" >&6
4f14bcd8
GD
30091 fi
30092 fi
30093fi
30094
30095if test "$WXGTK20" = 1 ; then
e6cc62c6 30096 cat >>confdefs.h <<_ACEOF
4f14bcd8 30097#define __WXGTK20__ $WXGTK20
e6cc62c6 30098_ACEOF
4f14bcd8
GD
30099
30100 WXGTK12=1
10f2d63a 30101fi
4f14bcd8
GD
30102
30103if test "$WXGTK12" = 1 ; then
e6cc62c6 30104 cat >>confdefs.h <<_ACEOF
4f14bcd8 30105#define __WXGTK12__ $WXGTK12
e6cc62c6 30106_ACEOF
4f14bcd8 30107
10f2d63a 30108fi
698dcdb6 30109
4f14bcd8 30110if test "$WXGTK127" = 1 ; then
e6cc62c6 30111 cat >>confdefs.h <<_ACEOF
4f14bcd8 30112#define __WXGTK127__ $WXGTK127
e6cc62c6 30113_ACEOF
4f14bcd8 30114
698dcdb6 30115fi
10f2d63a 30116
4f14bcd8
GD
30117WXDEBUG=
30118
30119if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30120 WXDEBUG="-g"
30121 wxUSE_OPTIMISE=no
698dcdb6 30122fi
4f14bcd8
GD
30123
30124if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30125 wxUSE_DEBUG_INFO=yes
30126 WXDEBUG="-ggdb"
10f2d63a
VZ
30127fi
30128
4f14bcd8 30129if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30130 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30131#define WXDEBUG 1
e6cc62c6 30132_ACEOF
4f14bcd8
GD
30133
30134 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30135else
4f14bcd8
GD
30136 if test "$wxUSE_GTK" = 1 ; then
30137 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30138 fi
30139fi
30140
30141if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30142 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30143#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30144_ACEOF
4f14bcd8 30145
e6cc62c6 30146 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30147#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30148_ACEOF
4f14bcd8 30149
e6cc62c6 30150 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30151#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30152_ACEOF
4f14bcd8
GD
30153
30154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30155fi
30156
30157if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30158 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30159fi
30160
30161PROFILE=
30162if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30163 PROFILE=" -pg"
10f2d63a
VZ
30164fi
30165
009fead0
VZ
30166CODE_GEN_FLAGS=
30167CODE_GEN_FLAGS_CXX=
88e30f2b 30168if test "$GCC" = "yes" ; then
4f14bcd8
GD
30169 if test "$wxUSE_NO_RTTI" = "yes" ; then
30170 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30171 fi
4f14bcd8
GD
30172 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30173 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30174 fi
30175 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30176 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30177 fi
1d1b75ac 30178
2b5f62a0 30179 case "${host}" in
1d1b75ac
VZ
30180 powerpc*-*-aix* )
30181 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30182 ;;
2b5f62a0
VZ
30183 *-hppa* )
30184 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30185 ;;
1d1b75ac 30186 esac
4f14bcd8
GD
30187fi
30188
af7b5345 30189OPTIMISE=
4f14bcd8 30190if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30191 if test "$GCC" = yes ; then
30192 OPTIMISE="-O0"
30193 fi
4f14bcd8
GD
30194else
30195 if test "$GCC" = yes ; then
30196 OPTIMISE="-O2"
af7b5345
VZ
30197
30198 case "${host}" in
4f14bcd8
GD
30199 i586-*-*|i686-*-* )
30200 OPTIMISE="${OPTIMISE} "
30201 ;;
30202 esac
30203 else
30204 OPTIMISE="-O"
30205 fi
30206fi
30207
8d90d2f2 30208
4f14bcd8 30209if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 30210 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30211#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 30212_ACEOF
4f14bcd8 30213
8284b0c5 30214
4f14bcd8
GD
30215 WXWIN_COMPATIBILITY_2_2="yes"
30216fi
30217
65d8ef1e 30218if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30219 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30220#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30221_ACEOF
4f14bcd8 30222
8d90d2f2
VZ
30223
30224 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30225fi
30226
65d8ef1e 30227if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30228 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30229#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30230_ACEOF
65d8ef1e
VS
30231
30232fi
30233
8284b0c5 30234
10f2d63a 30235if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30236 cat >>confdefs.h <<\_ACEOF
10f2d63a 30237#define wxUSE_GUI 1
e6cc62c6 30238_ACEOF
10f2d63a 30239
8284b0c5 30240
10f2d63a 30241 else
e6cc62c6 30242 cat >>confdefs.h <<\_ACEOF
10f2d63a 30243#define wxUSE_NOGUI 1
e6cc62c6 30244_ACEOF
10f2d63a
VZ
30245
30246fi
30247
8284b0c5 30248
10f2d63a 30249if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30250 cat >>confdefs.h <<\_ACEOF
10f2d63a 30251#define wxUSE_UNIX 1
e6cc62c6 30252_ACEOF
10f2d63a
VZ
30253
30254fi
30255
8284b0c5 30256
df5168c4
MB
30257if test "$wxUSE_STL" = "yes"; then
30258 cat >>confdefs.h <<\_ACEOF
30259#define wxUSE_STL 1
30260_ACEOF
30261
30262fi
30263
10f2d63a 30264if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30265 cat >>confdefs.h <<\_ACEOF
10f2d63a 30266#define wxUSE_APPLE_IEEE 1
e6cc62c6 30267_ACEOF
10f2d63a
VZ
30268
30269fi
30270
1e6feb95 30271if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30272 cat >>confdefs.h <<\_ACEOF
1e6feb95 30273#define wxUSE_TIMER 1
e6cc62c6 30274_ACEOF
1e6feb95
VZ
30275
30276fi
30277
10f2d63a 30278if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30279 cat >>confdefs.h <<\_ACEOF
10f2d63a 30280#define wxUSE_WAVE 1
e6cc62c6 30281_ACEOF
10f2d63a
VZ
30282
30283fi
30284
1e6feb95 30285if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30286 cat >>confdefs.h <<\_ACEOF
1e6feb95 30287#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30288_ACEOF
1e6feb95
VZ
30289
30290fi
30291
30292if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30293 cat >>confdefs.h <<\_ACEOF
1e6feb95 30294#define wxUSE_STOPWATCH 1
e6cc62c6 30295_ACEOF
1e6feb95
VZ
30296
30297fi
30298
30299if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30300 cat >>confdefs.h <<\_ACEOF
1e6feb95 30301#define wxUSE_DATETIME 1
e6cc62c6 30302_ACEOF
1e6feb95
VZ
30303
30304fi
30305
10f2d63a 30306if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30307 cat >>confdefs.h <<\_ACEOF
10f2d63a 30308#define wxUSE_FILE 1
e6cc62c6 30309_ACEOF
10f2d63a
VZ
30310
30311fi
30312
1e6feb95 30313if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30314 cat >>confdefs.h <<\_ACEOF
1e6feb95 30315#define wxUSE_FFILE 1
e6cc62c6 30316_ACEOF
1e6feb95
VZ
30317
30318fi
30319
24528b0c 30320if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30321 cat >>confdefs.h <<\_ACEOF
24528b0c 30322#define wxUSE_FILESYSTEM 1
e6cc62c6 30323_ACEOF
24528b0c
VS
30324
30325fi
30326
10f2d63a 30327if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30328 cat >>confdefs.h <<\_ACEOF
10f2d63a 30329#define wxUSE_FS_ZIP 1
e6cc62c6 30330_ACEOF
10f2d63a
VZ
30331
30332fi
30333
30334if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30335 cat >>confdefs.h <<\_ACEOF
10f2d63a 30336#define wxUSE_ZIPSTREAM 1
e6cc62c6 30337_ACEOF
10f2d63a
VZ
30338
30339fi
30340
eb4efbdc 30341if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30342 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30343#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30344_ACEOF
eb4efbdc
VZ
30345
30346fi
30347
4f3c5f06 30348if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30349 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30350#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30351_ACEOF
4f3c5f06
VZ
30352
30353fi
30354
10f2d63a 30355if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30356 cat >>confdefs.h <<\_ACEOF
10f2d63a 30357#define wxUSE_BUSYINFO 1
e6cc62c6 30358_ACEOF
10f2d63a
VZ
30359
30360fi
30361
30362if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30363 cat >>confdefs.h <<\_ACEOF
10f2d63a 30364#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30365_ACEOF
10f2d63a
VZ
30366
30367fi
30368
a3a584a7 30369if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30370 cat >>confdefs.h <<\_ACEOF
a3a584a7 30371#define wxUSE_TEXTBUFFER 1
e6cc62c6 30372_ACEOF
a3a584a7
VZ
30373
30374fi
30375
10f2d63a 30376if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30377 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30378 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30379echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30380 else
e6cc62c6 30381 cat >>confdefs.h <<\_ACEOF
10f2d63a 30382#define wxUSE_TEXTFILE 1
e6cc62c6 30383_ACEOF
10f2d63a
VZ
30384
30385 fi
30386fi
30387
30388if test "$wxUSE_CONFIG" = "yes" ; then
30389 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30390 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30391echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30392 else
e6cc62c6 30393 cat >>confdefs.h <<\_ACEOF
10f2d63a 30394#define wxUSE_CONFIG 1
e6cc62c6 30395_ACEOF
10f2d63a
VZ
30396
30397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30398 fi
30399fi
30400
30401if test "$wxUSE_INTL" = "yes" ; then
30402 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30403 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30404echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30405 else
e6cc62c6 30406 cat >>confdefs.h <<\_ACEOF
10f2d63a 30407#define wxUSE_INTL 1
e6cc62c6 30408_ACEOF
10f2d63a
VZ
30409
30410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30411 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30412 fi
30413fi
30414
30415if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30416 cat >>confdefs.h <<\_ACEOF
10f2d63a 30417#define wxUSE_LOG 1
e6cc62c6 30418_ACEOF
10f2d63a 30419
8284b0c5 30420
d73be714 30421 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30422 cat >>confdefs.h <<\_ACEOF
d73be714 30423#define wxUSE_LOGGUI 1
e6cc62c6 30424_ACEOF
d73be714
VZ
30425
30426 fi
30427
30428 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30429 cat >>confdefs.h <<\_ACEOF
d73be714 30430#define wxUSE_LOGWINDOW 1
e6cc62c6 30431_ACEOF
69d27ff7
MB
30432
30433 fi
30434
30435 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30436 cat >>confdefs.h <<\_ACEOF
69d27ff7 30437#define wxUSE_LOG_DIALOG 1
e6cc62c6 30438_ACEOF
d73be714
VZ
30439
30440 fi
10f2d63a
VZ
30441fi
30442
30443if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30444 cat >>confdefs.h <<\_ACEOF
10f2d63a 30445#define wxUSE_LONGLONG 1
e6cc62c6 30446_ACEOF
10f2d63a
VZ
30447
30448fi
30449
e8f65ba6 30450if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30451 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30452#define wxUSE_GEOMETRY 1
e6cc62c6 30453_ACEOF
e8f65ba6
RR
30454
30455fi
30456
10f2d63a 30457if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30458 cat >>confdefs.h <<\_ACEOF
10f2d63a 30459#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30460_ACEOF
10f2d63a 30461
70f7a477 30462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30463fi
30464
30465if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30466 cat >>confdefs.h <<\_ACEOF
10f2d63a 30467#define wxUSE_STREAMS 1
e6cc62c6 30468_ACEOF
10f2d63a
VZ
30469
30470fi
30471
5c6fa7d2 30472
8284b0c5 30473if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30474
30475for ac_func in strptime
83307f33 30476do
e6cc62c6
VS
30477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30478echo "$as_me:$LINENO: checking for $ac_func" >&5
30479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30480if eval "test \"\${$as_ac_var+set}\" = set"; then
30481 echo $ECHO_N "(cached) $ECHO_C" >&6
30482else
30483 cat >conftest.$ac_ext <<_ACEOF
30484#line $LINENO "configure"
30485/* confdefs.h. */
30486_ACEOF
30487cat confdefs.h >>conftest.$ac_ext
30488cat >>conftest.$ac_ext <<_ACEOF
30489/* end confdefs.h. */
83307f33 30490/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30491 which can conflict with char $ac_func (); below.
30492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30493 <limits.h> exists even on freestanding compilers. */
30494#ifdef __STDC__
30495# include <limits.h>
30496#else
30497# include <assert.h>
30498#endif
83307f33 30499/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30500#ifdef __cplusplus
30501extern "C"
30502{
30503#endif
83307f33 30504/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30505 builtin and then its argument prototype would still apply. */
30506char $ac_func ();
83307f33
VZ
30507/* The GNU C library defines this for functions which it implements
30508 to always fail with ENOSYS. Some functions are actually named
30509 something starting with __ and the normal name is an alias. */
30510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30511choke me
30512#else
e6cc62c6
VS
30513char (*f) () = $ac_func;
30514#endif
30515#ifdef __cplusplus
30516}
83307f33
VZ
30517#endif
30518
e6cc62c6
VS
30519int
30520main ()
30521{
30522return f != $ac_func;
30523 ;
30524 return 0;
30525}
30526_ACEOF
30527rm -f conftest.$ac_objext conftest$ac_exeext
30528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30529 (eval $ac_link) 2>&5
30530 ac_status=$?
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
30533 { ac_try='test -s conftest$ac_exeext'
30534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30535 (eval $ac_try) 2>&5
30536 ac_status=$?
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); }; }; then
30539 eval "$as_ac_var=yes"
30540else
30541 echo "$as_me: failed program was:" >&5
30542sed 's/^/| /' conftest.$ac_ext >&5
30543
30544eval "$as_ac_var=no"
30545fi
30546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30547fi
30548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30550if test `eval echo '${'$as_ac_var'}'` = yes; then
30551 cat >>confdefs.h <<_ACEOF
30552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30553_ACEOF
83307f33 30554
83307f33
VZ
30555fi
30556done
30557
5c6fa7d2 30558
e6cc62c6
VS
30559 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30560echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30561if test "${wx_cv_var_timezone+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30563else
e6cc62c6
VS
30564
30565 cat >conftest.$ac_ext <<_ACEOF
30566#line $LINENO "configure"
30567/* confdefs.h. */
30568_ACEOF
30569cat confdefs.h >>conftest.$ac_ext
30570cat >>conftest.$ac_ext <<_ACEOF
30571/* end confdefs.h. */
360d6699 30572
b4085ce6 30573 #include <time.h>
e6cc62c6
VS
30574
30575int
30576main ()
30577{
360d6699
VZ
30578
30579 int tz;
4f11a343 30580 tz = timezone;
e6cc62c6
VS
30581
30582 ;
30583 return 0;
30584}
30585_ACEOF
30586rm -f conftest.$ac_objext
30587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30588 (eval $ac_compile) 2>&5
30589 ac_status=$?
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } &&
30592 { ac_try='test -s conftest.$ac_objext'
30593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30594 (eval $ac_try) 2>&5
30595 ac_status=$?
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); }; }; then
30598
4f11a343 30599 wx_cv_var_timezone=timezone
e6cc62c6 30600
360d6699 30601else
e6cc62c6
VS
30602 echo "$as_me: failed program was:" >&5
30603sed 's/^/| /' conftest.$ac_ext >&5
30604
30605
30606 cat >conftest.$ac_ext <<_ACEOF
30607#line $LINENO "configure"
30608/* confdefs.h. */
30609_ACEOF
30610cat confdefs.h >>conftest.$ac_ext
30611cat >>conftest.$ac_ext <<_ACEOF
30612/* end confdefs.h. */
360d6699 30613
b4085ce6 30614 #include <time.h>
e6cc62c6
VS
30615
30616int
30617main ()
30618{
360d6699
VZ
30619
30620 int tz;
30621 tz = _timezone;
e6cc62c6
VS
30622
30623 ;
30624 return 0;
30625}
30626_ACEOF
30627rm -f conftest.$ac_objext
30628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30629 (eval $ac_compile) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); } &&
30633 { ac_try='test -s conftest.$ac_objext'
30634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30635 (eval $ac_try) 2>&5
30636 ac_status=$?
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; }; then
30639
360d6699 30640 wx_cv_var_timezone=_timezone
e6cc62c6 30641
5357c8e8 30642else
e6cc62c6
VS
30643 echo "$as_me: failed program was:" >&5
30644sed 's/^/| /' conftest.$ac_ext >&5
30645
30646
30647 cat >conftest.$ac_ext <<_ACEOF
30648#line $LINENO "configure"
30649/* confdefs.h. */
30650_ACEOF
30651cat confdefs.h >>conftest.$ac_ext
30652cat >>conftest.$ac_ext <<_ACEOF
30653/* end confdefs.h. */
5357c8e8 30654
b4085ce6 30655 #include <time.h>
e6cc62c6
VS
30656
30657int
30658main ()
30659{
5357c8e8
VZ
30660
30661 int tz;
4f11a343 30662 tz = __timezone;
e6cc62c6
VS
30663
30664 ;
30665 return 0;
30666}
30667_ACEOF
30668rm -f conftest.$ac_objext
30669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30670 (eval $ac_compile) 2>&5
30671 ac_status=$?
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); } &&
30674 { ac_try='test -s conftest.$ac_objext'
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; }; then
30680
4f11a343 30681 wx_cv_var_timezone=__timezone
e6cc62c6 30682
360d6699 30683else
e6cc62c6
VS
30684 echo "$as_me: failed program was:" >&5
30685sed 's/^/| /' conftest.$ac_ext >&5
30686
30687
f9bc1684 30688 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30689 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30690echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30691 fi
e6cc62c6
VS
30692
30693
7b4a847f 30694fi
e6cc62c6
VS
30695rm -f conftest.$ac_objext conftest.$ac_ext
30696
30697
5c6fa7d2 30698fi
e6cc62c6
VS
30699rm -f conftest.$ac_objext conftest.$ac_ext
30700
30701
247f5006 30702fi
e6cc62c6 30703rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30704
e6cc62c6
VS
30705
30706fi
30707echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30708echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30709
f9bc1684 30710 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30711 cat >>confdefs.h <<_ACEOF
360d6699 30712#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30713_ACEOF
360d6699 30714
f9bc1684 30715 fi
698dcdb6 30716
e6cc62c6
VS
30717
30718for ac_func in localtime
afc31813 30719do
e6cc62c6
VS
30720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30721echo "$as_me:$LINENO: checking for $ac_func" >&5
30722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30723if eval "test \"\${$as_ac_var+set}\" = set"; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725else
30726 cat >conftest.$ac_ext <<_ACEOF
30727#line $LINENO "configure"
30728/* confdefs.h. */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h. */
afc31813 30733/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30734 which can conflict with char $ac_func (); below.
30735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30736 <limits.h> exists even on freestanding compilers. */
30737#ifdef __STDC__
30738# include <limits.h>
30739#else
30740# include <assert.h>
30741#endif
afc31813 30742/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30743#ifdef __cplusplus
30744extern "C"
30745{
30746#endif
afc31813 30747/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30748 builtin and then its argument prototype would still apply. */
30749char $ac_func ();
afc31813
VZ
30750/* The GNU C library defines this for functions which it implements
30751 to always fail with ENOSYS. Some functions are actually named
30752 something starting with __ and the normal name is an alias. */
30753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30754choke me
30755#else
e6cc62c6
VS
30756char (*f) () = $ac_func;
30757#endif
30758#ifdef __cplusplus
30759}
afc31813
VZ
30760#endif
30761
e6cc62c6
VS
30762int
30763main ()
30764{
30765return f != $ac_func;
30766 ;
30767 return 0;
30768}
30769_ACEOF
30770rm -f conftest.$ac_objext conftest$ac_exeext
30771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30772 (eval $ac_link) 2>&5
30773 ac_status=$?
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); } &&
30776 { ac_try='test -s conftest$ac_exeext'
30777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778 (eval $ac_try) 2>&5
30779 ac_status=$?
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
30782 eval "$as_ac_var=yes"
30783else
30784 echo "$as_me: failed program was:" >&5
30785sed 's/^/| /' conftest.$ac_ext >&5
30786
30787eval "$as_ac_var=no"
30788fi
30789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30790fi
30791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30793if test `eval echo '${'$as_ac_var'}'` = yes; then
30794 cat >>confdefs.h <<_ACEOF
30795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30796_ACEOF
afc31813 30797
afc31813
VZ
30798fi
30799done
30800
5c6fa7d2 30801
8284b0c5 30802 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30803 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30804echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30805if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30807else
e6cc62c6
VS
30808
30809 cat >conftest.$ac_ext <<_ACEOF
30810#line $LINENO "configure"
30811/* confdefs.h. */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h. */
0470b1e6 30816
b4085ce6 30817 #include <time.h>
e6cc62c6
VS
30818
30819int
30820main ()
30821{
0470b1e6
VZ
30822
30823 struct tm tm;
30824 tm.tm_gmtoff++;
e6cc62c6
VS
30825
30826 ;
30827 return 0;
30828}
30829_ACEOF
30830rm -f conftest.$ac_objext
30831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30832 (eval $ac_compile) 2>&5
30833 ac_status=$?
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } &&
30836 { ac_try='test -s conftest.$ac_objext'
30837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30838 (eval $ac_try) 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; }; then
30842
f03a98d8 30843 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30844
0470b1e6 30845else
e6cc62c6
VS
30846 echo "$as_me: failed program was:" >&5
30847sed 's/^/| /' conftest.$ac_ext >&5
30848
30849wx_cv_struct_tm_has_gmtoff=no
30850
247f5006 30851fi
e6cc62c6 30852rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30853
e6cc62c6
VS
30854fi
30855echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30856echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30857 fi
30858
30859 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30860 cat >>confdefs.h <<\_ACEOF
6232543b 30861#define WX_GMTOFF_IN_TM 1
e6cc62c6 30862_ACEOF
0470b1e6 30863
3fcdd07b
VZ
30864 fi
30865
e6cc62c6
VS
30866
30867
30868for ac_func in gettimeofday ftime
3fcdd07b 30869do
e6cc62c6
VS
30870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871echo "$as_me:$LINENO: checking for $ac_func" >&5
30872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30873if eval "test \"\${$as_ac_var+set}\" = set"; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30875else
30876 cat >conftest.$ac_ext <<_ACEOF
30877#line $LINENO "configure"
30878/* confdefs.h. */
30879_ACEOF
30880cat confdefs.h >>conftest.$ac_ext
30881cat >>conftest.$ac_ext <<_ACEOF
30882/* end confdefs.h. */
3fcdd07b 30883/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30884 which can conflict with char $ac_func (); below.
30885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30886 <limits.h> exists even on freestanding compilers. */
30887#ifdef __STDC__
30888# include <limits.h>
30889#else
30890# include <assert.h>
30891#endif
3fcdd07b 30892/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30893#ifdef __cplusplus
30894extern "C"
30895{
30896#endif
3fcdd07b 30897/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30898 builtin and then its argument prototype would still apply. */
30899char $ac_func ();
3fcdd07b
VZ
30900/* The GNU C library defines this for functions which it implements
30901 to always fail with ENOSYS. Some functions are actually named
30902 something starting with __ and the normal name is an alias. */
30903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30904choke me
30905#else
e6cc62c6
VS
30906char (*f) () = $ac_func;
30907#endif
30908#ifdef __cplusplus
30909}
3fcdd07b
VZ
30910#endif
30911
e6cc62c6
VS
30912int
30913main ()
30914{
30915return f != $ac_func;
30916 ;
30917 return 0;
30918}
30919_ACEOF
30920rm -f conftest.$ac_objext conftest$ac_exeext
30921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30922 (eval $ac_link) 2>&5
30923 ac_status=$?
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); } &&
30926 { ac_try='test -s conftest$ac_exeext'
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; }; then
30932 eval "$as_ac_var=yes"
30933else
30934 echo "$as_me: failed program was:" >&5
30935sed 's/^/| /' conftest.$ac_ext >&5
30936
30937eval "$as_ac_var=no"
30938fi
30939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30940fi
30941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30943if test `eval echo '${'$as_ac_var'}'` = yes; then
30944 cat >>confdefs.h <<_ACEOF
30945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30946_ACEOF
3fcdd07b 30947 break
3fcdd07b
VZ
30948fi
30949done
30950
698dcdb6 30951
8284b0c5 30952 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30953 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30954echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30955if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30957else
30958
30959
30960
30961 ac_ext=cc
5c6fa7d2 30962ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30966
8284b0c5 30967
e6cc62c6
VS
30968 cat >conftest.$ac_ext <<_ACEOF
30969#line $LINENO "configure"
30970/* confdefs.h. */
30971_ACEOF
30972cat confdefs.h >>conftest.$ac_ext
30973cat >>conftest.$ac_ext <<_ACEOF
30974/* end confdefs.h. */
afc31813
VZ
30975
30976 #include <sys/time.h>
30977 #include <unistd.h>
e6cc62c6
VS
30978
30979int
30980main ()
30981{
afc31813
VZ
30982
30983 struct timeval tv;
776862b4 30984 gettimeofday(&tv, NULL);
e6cc62c6
VS
30985
30986 ;
30987 return 0;
30988}
30989_ACEOF
30990rm -f conftest.$ac_objext
30991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30992 (eval $ac_compile) 2>&5
30993 ac_status=$?
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } &&
30996 { ac_try='test -s conftest.$ac_objext'
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
afc31813 31002 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31003else
e6cc62c6
VS
31004 echo "$as_me: failed program was:" >&5
31005sed 's/^/| /' conftest.$ac_ext >&5
31006
31007cat >conftest.$ac_ext <<_ACEOF
31008#line $LINENO "configure"
31009/* confdefs.h. */
31010_ACEOF
31011cat confdefs.h >>conftest.$ac_ext
31012cat >>conftest.$ac_ext <<_ACEOF
31013/* end confdefs.h. */
afc31813
VZ
31014
31015 #include <sys/time.h>
31016 #include <unistd.h>
e6cc62c6
VS
31017
31018int
31019main ()
31020{
afc31813
VZ
31021
31022 struct timeval tv;
31023 gettimeofday(&tv);
e6cc62c6
VS
31024
31025 ;
31026 return 0;
31027}
31028_ACEOF
31029rm -f conftest.$ac_objext
31030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31031 (eval $ac_compile) 2>&5
31032 ac_status=$?
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); } &&
31035 { ac_try='test -s conftest.$ac_objext'
31036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31037 (eval $ac_try) 2>&5
31038 ac_status=$?
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; }; then
afc31813 31041 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31042else
e6cc62c6
VS
31043 echo "$as_me: failed program was:" >&5
31044sed 's/^/| /' conftest.$ac_ext >&5
31045
31046
31047 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31048echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31049 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31050
31051
10f2d63a 31052fi
e6cc62c6
VS
31053rm -f conftest.$ac_objext conftest.$ac_ext
31054
10f2d63a 31055fi
e6cc62c6 31056rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31057 ac_ext=c
10f2d63a 31058ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31061ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31062
a0b9e27f 31063
e6cc62c6
VS
31064fi
31065echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31066echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31067
afc31813 31068 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31069 cat >>confdefs.h <<\_ACEOF
afc31813 31070#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31071_ACEOF
afc31813
VZ
31072
31073 fi
31074 fi
31075
afc31813
VZ
31076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31077fi
31078
8284b0c5 31079
52127426 31080if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31081 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31082 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31083echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31084 wxUSE_SOCKETS="no"
31085 fi
3879ecda
VZ
31086 if test "$wxUSE_COCOA" = "1"; then
31087 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31088echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31089 wxUSE_SOCKETS="no"
31090 fi
0feee163 31091fi
b089607b 31092
0feee163
VZ
31093if test "$wxUSE_SOCKETS" = "yes"; then
31094 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31095 echo "$as_me:$LINENO: checking for socket" >&5
31096echo $ECHO_N "checking for socket... $ECHO_C" >&6
31097if test "${ac_cv_func_socket+set}" = set; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31099else
31100 cat >conftest.$ac_ext <<_ACEOF
31101#line $LINENO "configure"
31102/* confdefs.h. */
31103_ACEOF
31104cat confdefs.h >>conftest.$ac_ext
31105cat >>conftest.$ac_ext <<_ACEOF
31106/* end confdefs.h. */
c63c7106 31107/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31108 which can conflict with char socket (); below.
31109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31110 <limits.h> exists even on freestanding compilers. */
31111#ifdef __STDC__
31112# include <limits.h>
31113#else
31114# include <assert.h>
31115#endif
c63c7106 31116/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31117#ifdef __cplusplus
31118extern "C"
31119{
31120#endif
c63c7106 31121/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31122 builtin and then its argument prototype would still apply. */
31123char socket ();
c63c7106
VZ
31124/* The GNU C library defines this for functions which it implements
31125 to always fail with ENOSYS. Some functions are actually named
31126 something starting with __ and the normal name is an alias. */
31127#if defined (__stub_socket) || defined (__stub___socket)
31128choke me
31129#else
e6cc62c6
VS
31130char (*f) () = socket;
31131#endif
31132#ifdef __cplusplus
31133}
c63c7106
VZ
31134#endif
31135
e6cc62c6
VS
31136int
31137main ()
31138{
31139return f != socket;
31140 ;
31141 return 0;
31142}
31143_ACEOF
31144rm -f conftest.$ac_objext conftest$ac_exeext
31145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31146 (eval $ac_link) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); } &&
31150 { ac_try='test -s conftest$ac_exeext'
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
31156 ac_cv_func_socket=yes
31157else
31158 echo "$as_me: failed program was:" >&5
31159sed 's/^/| /' conftest.$ac_ext >&5
31160
31161ac_cv_func_socket=no
31162fi
31163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31164fi
31165echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31166echo "${ECHO_T}$ac_cv_func_socket" >&6
31167if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31168 :
31169else
e6cc62c6
VS
31170 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31171echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31172if test "${ac_cv_lib_socket_socket+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31174else
e6cc62c6 31175 ac_check_lib_save_LIBS=$LIBS
c63c7106 31176LIBS="-lsocket $LIBS"
e6cc62c6
VS
31177cat >conftest.$ac_ext <<_ACEOF
31178#line $LINENO "configure"
31179/* confdefs.h. */
31180_ACEOF
31181cat confdefs.h >>conftest.$ac_ext
31182cat >>conftest.$ac_ext <<_ACEOF
31183/* end confdefs.h. */
31184
c63c7106 31185/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31186#ifdef __cplusplus
31187extern "C"
31188#endif
c63c7106 31189/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31190 builtin and then its argument prototype would still apply. */
31191char socket ();
31192int
31193main ()
31194{
31195socket ();
31196 ;
31197 return 0;
31198}
31199_ACEOF
31200rm -f conftest.$ac_objext conftest$ac_exeext
31201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31202 (eval $ac_link) 2>&5
31203 ac_status=$?
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } &&
31206 { ac_try='test -s conftest$ac_exeext'
31207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31208 (eval $ac_try) 2>&5
31209 ac_status=$?
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; }; then
31212 ac_cv_lib_socket_socket=yes
31213else
31214 echo "$as_me: failed program was:" >&5
31215sed 's/^/| /' conftest.$ac_ext >&5
31216
31217ac_cv_lib_socket_socket=no
31218fi
31219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31220LIBS=$ac_check_lib_save_LIBS
31221fi
31222echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31223echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31224if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31225 if test "$INET_LINK" != " -lsocket"; then
31226 INET_LINK="$INET_LINK -lsocket"
31227 fi
c63c7106 31228else
afc31813 31229
e6cc62c6
VS
31230 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31231echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31232 wxUSE_SOCKETS=no
e6cc62c6
VS
31233
31234
6232543b 31235fi
b089607b 31236
e6cc62c6 31237
1e487827 31238fi
afc31813 31239
3a922bb4 31240 fi
0feee163 31241fi
51a9faba 31242
0feee163
VZ
31243if test "$wxUSE_SOCKETS" = "yes" ; then
31244 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31245 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31246echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31247if test "${wx_cv_type_getsockname3+set}" = set; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31249else
e6cc62c6
VS
31250
31251 cat >conftest.$ac_ext <<_ACEOF
31252#line $LINENO "configure"
31253/* confdefs.h. */
31254_ACEOF
31255cat confdefs.h >>conftest.$ac_ext
31256cat >>conftest.$ac_ext <<_ACEOF
31257/* end confdefs.h. */
51a9faba 31258
3a922bb4
RL
31259 #include <sys/types.h>
31260 #include <sys/socket.h>
e6cc62c6
VS
31261
31262int
31263main ()
31264{
51a9faba 31265
3a922bb4
RL
31266 socklen_t len;
31267 getsockname(0, 0, &len);
e6cc62c6
VS
31268
31269 ;
31270 return 0;
31271}
31272_ACEOF
31273rm -f conftest.$ac_objext
31274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31275 (eval $ac_compile) 2>&5
31276 ac_status=$?
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); } &&
31279 { ac_try='test -s conftest.$ac_objext'
31280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31281 (eval $ac_try) 2>&5
31282 ac_status=$?
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); }; }; then
51a9faba 31285 wx_cv_type_getsockname3=socklen_t
afc31813 31286else
e6cc62c6
VS
31287 echo "$as_me: failed program was:" >&5
31288sed 's/^/| /' conftest.$ac_ext >&5
31289
31290
9711d31e
GD
31291 CFLAGS_OLD="$CFLAGS"
31292 if test "$GCC" = yes ; then
31293 CFLAGS="$CFLAGS -Werror"
31294 fi
31295
e6cc62c6
VS
31296 cat >conftest.$ac_ext <<_ACEOF
31297#line $LINENO "configure"
31298/* confdefs.h. */
31299_ACEOF
31300cat confdefs.h >>conftest.$ac_ext
31301cat >>conftest.$ac_ext <<_ACEOF
31302/* end confdefs.h. */
51a9faba 31303
9711d31e
GD
31304 #include <sys/types.h>
31305 #include <sys/socket.h>
e6cc62c6
VS
31306
31307int
31308main ()
31309{
51a9faba 31310
9711d31e
GD
31311 size_t len;
31312 getsockname(0, 0, &len);
e6cc62c6
VS
31313
31314 ;
31315 return 0;
31316}
31317_ACEOF
31318rm -f conftest.$ac_objext
31319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31320 (eval $ac_compile) 2>&5
31321 ac_status=$?
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } &&
31324 { ac_try='test -s conftest.$ac_objext'
31325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31326 (eval $ac_try) 2>&5
31327 ac_status=$?
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; }; then
51a9faba 31330 wx_cv_type_getsockname3=size_t
afc31813 31331else
e6cc62c6
VS
31332 echo "$as_me: failed program was:" >&5
31333sed 's/^/| /' conftest.$ac_ext >&5
31334
31335cat >conftest.$ac_ext <<_ACEOF
31336#line $LINENO "configure"
31337/* confdefs.h. */
31338_ACEOF
31339cat confdefs.h >>conftest.$ac_ext
31340cat >>conftest.$ac_ext <<_ACEOF
31341/* end confdefs.h. */
51a9faba 31342
9711d31e
GD
31343 #include <sys/types.h>
31344 #include <sys/socket.h>
e6cc62c6
VS
31345
31346int
31347main ()
31348{
51a9faba 31349
9711d31e
GD
31350 int len;
31351 getsockname(0, 0, &len);
e6cc62c6
VS
31352
31353 ;
31354 return 0;
31355}
31356_ACEOF
31357rm -f conftest.$ac_objext
31358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31359 (eval $ac_compile) 2>&5
31360 ac_status=$?
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); } &&
31363 { ac_try='test -s conftest.$ac_objext'
31364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31365 (eval $ac_try) 2>&5
31366 ac_status=$?
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; }; then
51a9faba 31369 wx_cv_type_getsockname3=int
afc31813 31370else
e6cc62c6
VS
31371 echo "$as_me: failed program was:" >&5
31372sed 's/^/| /' conftest.$ac_ext >&5
31373
31374wx_cv_type_getsockname3=unknown
31375
afc31813 31376fi
e6cc62c6
VS
31377rm -f conftest.$ac_objext conftest.$ac_ext
31378
afc31813 31379fi
e6cc62c6 31380rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31381
31382 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31383
31384
247f5006 31385fi
e6cc62c6 31386rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31387
e6cc62c6
VS
31388fi
31389echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31390echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31391
3a922bb4
RL
31392 if test "$wx_cv_type_getsockname3" = "unknown"; then
31393 wxUSE_SOCKETS=no
e6cc62c6
VS
31394 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31395echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31396 else
e6cc62c6 31397 cat >>confdefs.h <<_ACEOF
51a9faba 31398#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31399_ACEOF
51a9faba 31400
3a922bb4 31401 fi
51a9faba
VZ
31402 fi
31403fi
afc31813 31404
51a9faba 31405if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31406 cat >>confdefs.h <<\_ACEOF
afc31813 31407#define wxUSE_SOCKETS 1
e6cc62c6 31408_ACEOF
afc31813 31409
70f7a477 31410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31411fi
31412
3879ecda
VZ
31413if test "$wxUSE_PROTOCOL" = "yes"; then
31414 if test "$wxUSE_SOCKETS" != "yes"; then
31415 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31416echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31417 wxUSE_PROTOCOL=no
31418 fi
31419fi
31420
31421if test "$wxUSE_PROTOCOL" = "yes"; then
31422 cat >>confdefs.h <<\_ACEOF
31423#define wxUSE_PROTOCOL 1
31424_ACEOF
31425
31426
31427 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31428 cat >>confdefs.h <<\_ACEOF
31429#define wxUSE_PROTOCOL_HTTP 1
31430_ACEOF
31431
31432 fi
31433 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31434 cat >>confdefs.h <<\_ACEOF
31435#define wxUSE_PROTOCOL_FTP 1
31436_ACEOF
31437
31438 fi
31439 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31440 cat >>confdefs.h <<\_ACEOF
31441#define wxUSE_PROTOCOL_FILE 1
31442_ACEOF
31443
31444 fi
31445else
31446 if test "$wxUSE_FS_INET" = "yes"; then
31447 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31448echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31449 wxUSE_FS_INET="no"
31450 fi
31451fi
31452
31453if test "$wxUSE_URL" = "yes"; then
31454 if test "$wxUSE_PROTOCOL" != "yes"; then
31455 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31456echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31457 wxUSE_URL=no
31458 fi
31459 if test "$wxUSE_URL" = "yes"; then
31460 cat >>confdefs.h <<\_ACEOF
31461#define wxUSE_URL 1
31462_ACEOF
31463
31464 fi
31465fi
31466
31467if test "$wxUSE_FS_INET" = "yes"; then
31468 cat >>confdefs.h <<\_ACEOF
31469#define wxUSE_FS_INET 1
31470_ACEOF
31471
31472fi
31473
8284b0c5 31474
dc3d889d
VZ
31475if test "$wxUSE_GUI" = "yes"; then
31476
ac0c4cc3 31477 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31478 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31479echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
31480 wxUSE_JOYSTICK=no
31481 fi
31482 if test "$TOOLKIT" = "MOTIF"; then
e6cc62c6
VS
31483 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31484echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 31485 wxUSE_JOYSTICK=no
f79bd02d
JS
31486 fi
31487 if test "$TOOLKIT" = "X11"; then
e6cc62c6
VS
31488 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31489echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 31490 wxUSE_JOYSTICK=no
156b2523
GD
31491 fi
31492
3a922bb4
RL
31493 if test "$TOOLKIT" != "MSW"; then
31494 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31495
31496for ac_header in linux/joystick.h
10f2d63a 31497do
e6cc62c6
VS
31498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31499if eval "test \"\${$as_ac_Header+set}\" = set"; then
31500 echo "$as_me:$LINENO: checking for $ac_header" >&5
31501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31502if eval "test \"\${$as_ac_Header+set}\" = set"; then
31503 echo $ECHO_N "(cached) $ECHO_C" >&6
31504fi
31505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31507else
31508 # Is the header compilable?
31509echo "$as_me:$LINENO: checking $ac_header usability" >&5
31510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31511cat >conftest.$ac_ext <<_ACEOF
31512#line $LINENO "configure"
31513/* confdefs.h. */
31514_ACEOF
31515cat confdefs.h >>conftest.$ac_ext
31516cat >>conftest.$ac_ext <<_ACEOF
31517/* end confdefs.h. */
31518$ac_includes_default
31519#include <$ac_header>
31520_ACEOF
31521rm -f conftest.$ac_objext
31522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31523 (eval $ac_compile) 2>&5
31524 ac_status=$?
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); } &&
31527 { ac_try='test -s conftest.$ac_objext'
31528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31529 (eval $ac_try) 2>&5
31530 ac_status=$?
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); }; }; then
31533 ac_header_compiler=yes
31534else
31535 echo "$as_me: failed program was:" >&5
31536sed 's/^/| /' conftest.$ac_ext >&5
31537
31538ac_header_compiler=no
31539fi
31540rm -f conftest.$ac_objext conftest.$ac_ext
31541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31542echo "${ECHO_T}$ac_header_compiler" >&6
31543
31544# Is the header present?
31545echo "$as_me:$LINENO: checking $ac_header presence" >&5
31546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31547cat >conftest.$ac_ext <<_ACEOF
31548#line $LINENO "configure"
31549/* confdefs.h. */
31550_ACEOF
31551cat confdefs.h >>conftest.$ac_ext
31552cat >>conftest.$ac_ext <<_ACEOF
31553/* end confdefs.h. */
31554#include <$ac_header>
31555_ACEOF
31556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31558 ac_status=$?
31559 grep -v '^ *+' conftest.er1 >conftest.err
31560 rm -f conftest.er1
31561 cat conftest.err >&5
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); } >/dev/null; then
31564 if test -s conftest.err; then
31565 ac_cpp_err=$ac_c_preproc_warn_flag
31566 else
31567 ac_cpp_err=
31568 fi
31569else
31570 ac_cpp_err=yes
31571fi
31572if test -z "$ac_cpp_err"; then
31573 ac_header_preproc=yes
31574else
31575 echo "$as_me: failed program was:" >&5
31576sed 's/^/| /' conftest.$ac_ext >&5
31577
31578 ac_header_preproc=no
31579fi
31580rm -f conftest.err conftest.$ac_ext
31581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31582echo "${ECHO_T}$ac_header_preproc" >&6
31583
31584# So? What about this header?
31585case $ac_header_compiler:$ac_header_preproc in
31586 yes:no )
31587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31591 (
31592 cat <<\_ASBOX
31593## ------------------------------------ ##
31594## Report this to bug-autoconf@gnu.org. ##
31595## ------------------------------------ ##
31596_ASBOX
31597 ) |
31598 sed "s/^/$as_me: WARNING: /" >&2
31599 ;;
31600 no:yes )
31601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31607 (
31608 cat <<\_ASBOX
31609## ------------------------------------ ##
31610## Report this to bug-autoconf@gnu.org. ##
31611## ------------------------------------ ##
31612_ASBOX
31613 ) |
31614 sed "s/^/$as_me: WARNING: /" >&2
31615 ;;
31616esac
31617echo "$as_me:$LINENO: checking for $ac_header" >&5
31618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31619if eval "test \"\${$as_ac_Header+set}\" = set"; then
31620 echo $ECHO_N "(cached) $ECHO_C" >&6
31621else
31622 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31623fi
e6cc62c6
VS
31624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31626
10f2d63a 31627fi
e6cc62c6
VS
31628if test `eval echo '${'$as_ac_Header'}'` = yes; then
31629 cat >>confdefs.h <<_ACEOF
31630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31631_ACEOF
31632
247f5006 31633fi
e6cc62c6 31634
10f2d63a
VZ
31635done
31636
3a922bb4
RL
31637 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31638 wxUSE_JOYSTICK=no
e6cc62c6
VS
31639 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31640echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31641 fi
31642 fi
31643 fi
b089607b 31644
3a922bb4 31645 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31646 cat >>confdefs.h <<\_ACEOF
10f2d63a 31647#define wxUSE_JOYSTICK 1
e6cc62c6 31648_ACEOF
10f2d63a 31649
3a922bb4
RL
31650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31651 fi
dc3d889d
VZ
31652fi
31653
8284b0c5 31654
b089607b
VZ
31655if test "$TOOLKIT" != "MSW"; then
31656
3a922bb4
RL
31657 HAVE_DL_FUNCS=0
31658 HAVE_SHL_FUNCS=0
0b9ab0bd 31659 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31660 if test "$USE_DARWIN" = 1; then
31661 HAVE_DL_FUNCS=1
31662 else
e6cc62c6
VS
31663
31664for ac_func in dlopen
10f2d63a 31665do
e6cc62c6
VS
31666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31667echo "$as_me:$LINENO: checking for $ac_func" >&5
31668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31669if eval "test \"\${$as_ac_var+set}\" = set"; then
31670 echo $ECHO_N "(cached) $ECHO_C" >&6
31671else
31672 cat >conftest.$ac_ext <<_ACEOF
31673#line $LINENO "configure"
31674/* confdefs.h. */
31675_ACEOF
31676cat confdefs.h >>conftest.$ac_ext
31677cat >>conftest.$ac_ext <<_ACEOF
31678/* end confdefs.h. */
10f2d63a 31679/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31680 which can conflict with char $ac_func (); below.
31681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31682 <limits.h> exists even on freestanding compilers. */
31683#ifdef __STDC__
31684# include <limits.h>
31685#else
31686# include <assert.h>
31687#endif
10f2d63a 31688/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31689#ifdef __cplusplus
31690extern "C"
31691{
31692#endif
10f2d63a 31693/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31694 builtin and then its argument prototype would still apply. */
31695char $ac_func ();
10f2d63a
VZ
31696/* The GNU C library defines this for functions which it implements
31697 to always fail with ENOSYS. Some functions are actually named
31698 something starting with __ and the normal name is an alias. */
31699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31700choke me
31701#else
e6cc62c6
VS
31702char (*f) () = $ac_func;
31703#endif
31704#ifdef __cplusplus
31705}
10f2d63a
VZ
31706#endif
31707
e6cc62c6
VS
31708int
31709main ()
31710{
31711return f != $ac_func;
31712 ;
31713 return 0;
31714}
31715_ACEOF
31716rm -f conftest.$ac_objext conftest$ac_exeext
31717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31718 (eval $ac_link) 2>&5
31719 ac_status=$?
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); } &&
31722 { ac_try='test -s conftest$ac_exeext'
31723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31724 (eval $ac_try) 2>&5
31725 ac_status=$?
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); }; }; then
31728 eval "$as_ac_var=yes"
31729else
31730 echo "$as_me: failed program was:" >&5
31731sed 's/^/| /' conftest.$ac_ext >&5
31732
31733eval "$as_ac_var=no"
31734fi
31735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31736fi
31737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31739if test `eval echo '${'$as_ac_var'}'` = yes; then
31740 cat >>confdefs.h <<_ACEOF
31741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31742_ACEOF
31743
31744 cat >>confdefs.h <<\_ACEOF
10f2d63a 31745#define HAVE_DLOPEN 1
e6cc62c6 31746_ACEOF
10f2d63a 31747
3a922bb4 31748 HAVE_DL_FUNCS=1
e6cc62c6 31749
10f2d63a 31750else
e6cc62c6
VS
31751
31752 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31753echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31754if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31755 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31756else
e6cc62c6 31757 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31758LIBS="-ldl $LIBS"
e6cc62c6
VS
31759cat >conftest.$ac_ext <<_ACEOF
31760#line $LINENO "configure"
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
31766
10f2d63a 31767/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31768#ifdef __cplusplus
31769extern "C"
31770#endif
10f2d63a 31771/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31772 builtin and then its argument prototype would still apply. */
31773char dlopen ();
31774int
31775main ()
31776{
31777dlopen ();
31778 ;
31779 return 0;
31780}
31781_ACEOF
31782rm -f conftest.$ac_objext conftest$ac_exeext
31783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31784 (eval $ac_link) 2>&5
31785 ac_status=$?
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); } &&
31788 { ac_try='test -s conftest$ac_exeext'
31789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31790 (eval $ac_try) 2>&5
31791 ac_status=$?
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); }; }; then
31794 ac_cv_lib_dl_dlopen=yes
31795else
31796 echo "$as_me: failed program was:" >&5
31797sed 's/^/| /' conftest.$ac_ext >&5
31798
31799ac_cv_lib_dl_dlopen=no
31800fi
31801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31802LIBS=$ac_check_lib_save_LIBS
31803fi
31804echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31805echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31806if test $ac_cv_lib_dl_dlopen = yes; then
31807
31808 cat >>confdefs.h <<\_ACEOF
10f2d63a 31809#define HAVE_DLOPEN 1
e6cc62c6 31810_ACEOF
10f2d63a 31811
3a922bb4 31812 HAVE_DL_FUNCS=1
3d63bc3a 31813 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31814
10f2d63a 31815else
10f2d63a 31816
e6cc62c6
VS
31817
31818for ac_func in shl_load
10f2d63a 31819do
e6cc62c6
VS
31820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31821echo "$as_me:$LINENO: checking for $ac_func" >&5
31822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31823if eval "test \"\${$as_ac_var+set}\" = set"; then
31824 echo $ECHO_N "(cached) $ECHO_C" >&6
31825else
31826 cat >conftest.$ac_ext <<_ACEOF
31827#line $LINENO "configure"
31828/* confdefs.h. */
31829_ACEOF
31830cat confdefs.h >>conftest.$ac_ext
31831cat >>conftest.$ac_ext <<_ACEOF
31832/* end confdefs.h. */
10f2d63a 31833/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31834 which can conflict with char $ac_func (); below.
31835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31836 <limits.h> exists even on freestanding compilers. */
31837#ifdef __STDC__
31838# include <limits.h>
31839#else
31840# include <assert.h>
31841#endif
10f2d63a 31842/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31843#ifdef __cplusplus
31844extern "C"
31845{
31846#endif
10f2d63a 31847/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31848 builtin and then its argument prototype would still apply. */
31849char $ac_func ();
10f2d63a
VZ
31850/* The GNU C library defines this for functions which it implements
31851 to always fail with ENOSYS. Some functions are actually named
31852 something starting with __ and the normal name is an alias. */
31853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31854choke me
31855#else
e6cc62c6
VS
31856char (*f) () = $ac_func;
31857#endif
31858#ifdef __cplusplus
31859}
10f2d63a
VZ
31860#endif
31861
e6cc62c6
VS
31862int
31863main ()
31864{
31865return f != $ac_func;
31866 ;
31867 return 0;
31868}
31869_ACEOF
31870rm -f conftest.$ac_objext conftest$ac_exeext
31871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31872 (eval $ac_link) 2>&5
31873 ac_status=$?
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); } &&
31876 { ac_try='test -s conftest$ac_exeext'
31877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31878 (eval $ac_try) 2>&5
31879 ac_status=$?
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); }; }; then
31882 eval "$as_ac_var=yes"
31883else
31884 echo "$as_me: failed program was:" >&5
31885sed 's/^/| /' conftest.$ac_ext >&5
31886
31887eval "$as_ac_var=no"
31888fi
31889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31890fi
31891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31893if test `eval echo '${'$as_ac_var'}'` = yes; then
31894 cat >>confdefs.h <<_ACEOF
31895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31896_ACEOF
31897
31898 cat >>confdefs.h <<\_ACEOF
10f2d63a 31899#define HAVE_SHL_LOAD 1
e6cc62c6 31900_ACEOF
10f2d63a 31901
3a922bb4 31902 HAVE_SHL_FUNCS=1
e6cc62c6 31903
10f2d63a 31904else
e6cc62c6
VS
31905
31906 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31907echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31908if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31909 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31910else
e6cc62c6 31911 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31912LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31913cat >conftest.$ac_ext <<_ACEOF
31914#line $LINENO "configure"
31915/* confdefs.h. */
31916_ACEOF
31917cat confdefs.h >>conftest.$ac_ext
31918cat >>conftest.$ac_ext <<_ACEOF
31919/* end confdefs.h. */
31920
8284b0c5 31921/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31922#ifdef __cplusplus
31923extern "C"
31924#endif
f6bcfd97 31925/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31926 builtin and then its argument prototype would still apply. */
31927char dld ();
31928int
31929main ()
31930{
31931dld ();
31932 ;
31933 return 0;
31934}
31935_ACEOF
31936rm -f conftest.$ac_objext conftest$ac_exeext
31937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31938 (eval $ac_link) 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
31942 { ac_try='test -s conftest$ac_exeext'
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31945 ac_status=$?
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }; then
31948 ac_cv_lib_shl_load_dld=yes
31949else
31950 echo "$as_me: failed program was:" >&5
31951sed 's/^/| /' conftest.$ac_ext >&5
31952
31953ac_cv_lib_shl_load_dld=no
31954fi
31955rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31956LIBS=$ac_check_lib_save_LIBS
31957fi
31958echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31959echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31960if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31961
3a922bb4 31962 HAVE_SHL_FUNCS=1
3d63bc3a 31963 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31964
f6bcfd97
BP
31965fi
31966
e6cc62c6 31967
10f2d63a
VZ
31968fi
31969done
31970
e6cc62c6 31971
10f2d63a
VZ
31972fi
31973
e6cc62c6 31974
10f2d63a
VZ
31975fi
31976done
31977
5c6fa7d2 31978
8284b0c5 31979 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31980
31981for ac_func in dlerror
f6bcfd97 31982do
e6cc62c6
VS
31983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31984echo "$as_me:$LINENO: checking for $ac_func" >&5
31985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31986if eval "test \"\${$as_ac_var+set}\" = set"; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31988else
31989 cat >conftest.$ac_ext <<_ACEOF
31990#line $LINENO "configure"
31991/* confdefs.h. */
31992_ACEOF
31993cat confdefs.h >>conftest.$ac_ext
31994cat >>conftest.$ac_ext <<_ACEOF
31995/* end confdefs.h. */
f6bcfd97 31996/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31997 which can conflict with char $ac_func (); below.
31998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31999 <limits.h> exists even on freestanding compilers. */
32000#ifdef __STDC__
32001# include <limits.h>
32002#else
32003# include <assert.h>
32004#endif
f6bcfd97 32005/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32006#ifdef __cplusplus
32007extern "C"
32008{
32009#endif
f6bcfd97 32010/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32011 builtin and then its argument prototype would still apply. */
32012char $ac_func ();
f6bcfd97
BP
32013/* The GNU C library defines this for functions which it implements
32014 to always fail with ENOSYS. Some functions are actually named
32015 something starting with __ and the normal name is an alias. */
32016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32017choke me
32018#else
e6cc62c6
VS
32019char (*f) () = $ac_func;
32020#endif
32021#ifdef __cplusplus
32022}
f6bcfd97
BP
32023#endif
32024
e6cc62c6
VS
32025int
32026main ()
32027{
32028return f != $ac_func;
32029 ;
32030 return 0;
32031}
32032_ACEOF
32033rm -f conftest.$ac_objext conftest$ac_exeext
32034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32035 (eval $ac_link) 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); } &&
32039 { ac_try='test -s conftest$ac_exeext'
32040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32041 (eval $ac_try) 2>&5
32042 ac_status=$?
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); }; }; then
32045 eval "$as_ac_var=yes"
32046else
32047 echo "$as_me: failed program was:" >&5
32048sed 's/^/| /' conftest.$ac_ext >&5
32049
32050eval "$as_ac_var=no"
32051fi
32052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32053fi
32054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32055echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32056if test `eval echo '${'$as_ac_var'}'` = yes; then
32057 cat >>confdefs.h <<_ACEOF
32058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32059_ACEOF
32060 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32061#define HAVE_DLERROR 1
e6cc62c6 32062_ACEOF
f6bcfd97
BP
32063
32064else
e6cc62c6
VS
32065 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32066echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32067if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32068 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32069else
e6cc62c6 32070 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32071LIBS="-ldl $LIBS"
e6cc62c6
VS
32072cat >conftest.$ac_ext <<_ACEOF
32073#line $LINENO "configure"
32074/* confdefs.h. */
32075_ACEOF
32076cat confdefs.h >>conftest.$ac_ext
32077cat >>conftest.$ac_ext <<_ACEOF
32078/* end confdefs.h. */
32079
f6bcfd97 32080/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32081#ifdef __cplusplus
32082extern "C"
32083#endif
f6bcfd97 32084/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32085 builtin and then its argument prototype would still apply. */
32086char dlerror ();
32087int
32088main ()
32089{
32090dlerror ();
32091 ;
32092 return 0;
32093}
32094_ACEOF
32095rm -f conftest.$ac_objext conftest$ac_exeext
32096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32097 (eval $ac_link) 2>&5
32098 ac_status=$?
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } &&
32101 { ac_try='test -s conftest$ac_exeext'
32102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103 (eval $ac_try) 2>&5
32104 ac_status=$?
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); }; }; then
32107 ac_cv_lib_dl_dlerror=yes
32108else
32109 echo "$as_me: failed program was:" >&5
32110sed 's/^/| /' conftest.$ac_ext >&5
32111
32112ac_cv_lib_dl_dlerror=no
32113fi
32114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32115LIBS=$ac_check_lib_save_LIBS
32116fi
32117echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32118echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32119if test $ac_cv_lib_dl_dlerror = yes; then
32120 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32121#define HAVE_DLERROR 1
e6cc62c6 32122_ACEOF
f6bcfd97 32123
f6bcfd97
BP
32124fi
32125
32126fi
32127done
32128
3a922bb4
RL
32129 fi
32130 fi
f6bcfd97 32131
3a922bb4
RL
32132 if test "$HAVE_DL_FUNCS" = 0; then
32133 if test "$HAVE_SHL_FUNCS" = 0; then
32134 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32135 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32136echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32137 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32138 wxUSE_DYNLIB_CLASS=no
32139 else
e6cc62c6
VS
32140 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32141echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32142 fi
32143 fi
10f2d63a
VZ
32144 fi
32145 fi
32146fi
32147
0b9ab0bd 32148if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32149 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32150#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32151_ACEOF
0b9ab0bd
RL
32152
32153elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32154 cat >>confdefs.h <<\_ACEOF
10f2d63a 32155#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32156_ACEOF
10f2d63a
VZ
32157
32158fi
32159
8284b0c5 32160
1e6feb95 32161if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32162 cat >>confdefs.h <<\_ACEOF
1e6feb95 32163#define wxUSE_FONTMAP 1
e6cc62c6 32164_ACEOF
1e6feb95
VZ
32165
32166fi
32167
10f2d63a 32168if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32169 cat >>confdefs.h <<\_ACEOF
10f2d63a 32170#define wxUSE_UNICODE 1
e6cc62c6 32171_ACEOF
10f2d63a 32172
8284b0c5 32173
bbc3925a
VS
32174 if test "$wxUSE_MSW" != 1; then
32175 wxUSE_UNICODE_MSLU=no
32176 fi
a72a4bfa
VS
32177
32178 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32179 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32180echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32181if test "${ac_cv_lib_unicows_main+set}" = set; then
32182 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32183else
e6cc62c6 32184 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32185LIBS="-lunicows $LIBS"
e6cc62c6
VS
32186cat >conftest.$ac_ext <<_ACEOF
32187#line $LINENO "configure"
32188/* confdefs.h. */
32189_ACEOF
32190cat confdefs.h >>conftest.$ac_ext
32191cat >>conftest.$ac_ext <<_ACEOF
32192/* end confdefs.h. */
a72a4bfa 32193
8284b0c5 32194
e6cc62c6
VS
32195int
32196main ()
32197{
32198main ();
32199 ;
32200 return 0;
32201}
32202_ACEOF
32203rm -f conftest.$ac_objext conftest$ac_exeext
32204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32205 (eval $ac_link) 2>&5
32206 ac_status=$?
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); } &&
32209 { ac_try='test -s conftest$ac_exeext'
32210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211 (eval $ac_try) 2>&5
32212 ac_status=$?
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); }; }; then
32215 ac_cv_lib_unicows_main=yes
32216else
32217 echo "$as_me: failed program was:" >&5
32218sed 's/^/| /' conftest.$ac_ext >&5
32219
32220ac_cv_lib_unicows_main=no
32221fi
32222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32223LIBS=$ac_check_lib_save_LIBS
32224fi
32225echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32226echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32227if test $ac_cv_lib_unicows_main = yes; then
32228
32229 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32230#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32231_ACEOF
32232
a72a4bfa 32233
a72a4bfa 32234else
a72a4bfa 32235
e6cc62c6
VS
32236 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32237 Applications will only run on Windows NT/2000/XP!" >&5
32238echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32239 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32240 wxUSE_UNICODE_MSLU=no
e6cc62c6 32241
a72a4bfa
VS
32242fi
32243
32244 fi
10f2d63a
VZ
32245fi
32246
10f2d63a 32247if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32248 cat >>confdefs.h <<\_ACEOF
10f2d63a 32249#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32250_ACEOF
10f2d63a
VZ
32251
32252fi
32253
8284b0c5 32254
10f2d63a 32255if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32256 cat >>confdefs.h <<\_ACEOF
10f2d63a 32257#define wxUSE_POSTSCRIPT 1
e6cc62c6 32258_ACEOF
10f2d63a
VZ
32259
32260fi
32261
e6cc62c6 32262cat >>confdefs.h <<\_ACEOF
10f2d63a 32263#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32264_ACEOF
10f2d63a 32265
8284b0c5 32266
e6cc62c6 32267cat >>confdefs.h <<\_ACEOF
10f2d63a 32268#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32269_ACEOF
10f2d63a 32270
8284b0c5
MB
32271
32272
10f2d63a 32273if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32274 cat >>confdefs.h <<\_ACEOF
10f2d63a 32275#define wxUSE_CONSTRAINTS 1
e6cc62c6 32276_ACEOF
10f2d63a
VZ
32277
32278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32279fi
32280
3879ecda 32281if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32282 cat >>confdefs.h <<\_ACEOF
10f2d63a 32283#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32284_ACEOF
10f2d63a 32285
1772d20c 32286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32287fi
32288
32289if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32290 cat >>confdefs.h <<\_ACEOF
10f2d63a 32291#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32292_ACEOF
10f2d63a
VZ
32293
32294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32295 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32297 fi
32298fi
32299
32300if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32301 cat >>confdefs.h <<\_ACEOF
10f2d63a 32302#define wxUSE_HELP 1
e6cc62c6 32303_ACEOF
10f2d63a
VZ
32304
32305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32306
77e13408 32307 if test "$wxUSE_MSW" = 1; then
031d8228 32308 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32309 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32310#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32311_ACEOF
29fd3c0c 32312
3e44f09d 32313 fi
3379ed37 32314 fi
031d8228
VS
32315
32316 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32317 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32318 cat >>confdefs.h <<\_ACEOF
031d8228 32319#define wxUSE_WXHTML_HELP 1
e6cc62c6 32320_ACEOF
031d8228
VS
32321
32322 else
e6cc62c6
VS
32323 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32324echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32325 wxUSE_WXHTML_HELP=no
32326 fi
32327 fi
10f2d63a
VZ
32328fi
32329
32330if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32331 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32332 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32333echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32334 else
e6cc62c6 32335 cat >>confdefs.h <<\_ACEOF
10f2d63a 32336#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32337_ACEOF
10f2d63a
VZ
32338
32339 fi
32340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32341fi
32342
e6cc62c6
VS
32343if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32344 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32345echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32346 { (exit 1); exit 1; }; }
32347fi
32348
32349
32350if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32351 -o "$wxUSE_CLIPBOARD" = "yes" \
32352 -o "$wxUSE_OLE" = "yes" \
32353 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32354
32355for ac_header in ole2.h
32356do
32357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32358if eval "test \"\${$as_ac_Header+set}\" = set"; then
32359 echo "$as_me:$LINENO: checking for $ac_header" >&5
32360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32361if eval "test \"\${$as_ac_Header+set}\" = set"; then
32362 echo $ECHO_N "(cached) $ECHO_C" >&6
32363fi
32364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32366else
32367 # Is the header compilable?
32368echo "$as_me:$LINENO: checking $ac_header usability" >&5
32369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32370cat >conftest.$ac_ext <<_ACEOF
32371#line $LINENO "configure"
32372/* confdefs.h. */
32373_ACEOF
32374cat confdefs.h >>conftest.$ac_ext
32375cat >>conftest.$ac_ext <<_ACEOF
32376/* end confdefs.h. */
32377$ac_includes_default
32378#include <$ac_header>
32379_ACEOF
32380rm -f conftest.$ac_objext
32381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32382 (eval $ac_compile) 2>&5
32383 ac_status=$?
32384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385 (exit $ac_status); } &&
32386 { ac_try='test -s conftest.$ac_objext'
32387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32388 (eval $ac_try) 2>&5
32389 ac_status=$?
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); }; }; then
32392 ac_header_compiler=yes
32393else
32394 echo "$as_me: failed program was:" >&5
32395sed 's/^/| /' conftest.$ac_ext >&5
32396
32397ac_header_compiler=no
32398fi
32399rm -f conftest.$ac_objext conftest.$ac_ext
32400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32401echo "${ECHO_T}$ac_header_compiler" >&6
32402
32403# Is the header present?
32404echo "$as_me:$LINENO: checking $ac_header presence" >&5
32405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32406cat >conftest.$ac_ext <<_ACEOF
32407#line $LINENO "configure"
32408/* confdefs.h. */
32409_ACEOF
32410cat confdefs.h >>conftest.$ac_ext
32411cat >>conftest.$ac_ext <<_ACEOF
32412/* end confdefs.h. */
32413#include <$ac_header>
32414_ACEOF
32415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32417 ac_status=$?
32418 grep -v '^ *+' conftest.er1 >conftest.err
32419 rm -f conftest.er1
32420 cat conftest.err >&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); } >/dev/null; then
32423 if test -s conftest.err; then
32424 ac_cpp_err=$ac_c_preproc_warn_flag
32425 else
32426 ac_cpp_err=
32427 fi
32428else
32429 ac_cpp_err=yes
32430fi
32431if test -z "$ac_cpp_err"; then
32432 ac_header_preproc=yes
32433else
32434 echo "$as_me: failed program was:" >&5
32435sed 's/^/| /' conftest.$ac_ext >&5
32436
32437 ac_header_preproc=no
32438fi
32439rm -f conftest.err conftest.$ac_ext
32440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32441echo "${ECHO_T}$ac_header_preproc" >&6
32442
32443# So? What about this header?
32444case $ac_header_compiler:$ac_header_preproc in
32445 yes:no )
32446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32450 (
32451 cat <<\_ASBOX
32452## ------------------------------------ ##
32453## Report this to bug-autoconf@gnu.org. ##
32454## ------------------------------------ ##
32455_ASBOX
32456 ) |
32457 sed "s/^/$as_me: WARNING: /" >&2
32458 ;;
32459 no:yes )
32460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32466 (
32467 cat <<\_ASBOX
32468## ------------------------------------ ##
32469## Report this to bug-autoconf@gnu.org. ##
32470## ------------------------------------ ##
32471_ASBOX
32472 ) |
32473 sed "s/^/$as_me: WARNING: /" >&2
32474 ;;
32475esac
32476echo "$as_me:$LINENO: checking for $ac_header" >&5
32477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32478if eval "test \"\${$as_ac_Header+set}\" = set"; then
32479 echo $ECHO_N "(cached) $ECHO_C" >&6
32480else
32481 eval "$as_ac_Header=$ac_header_preproc"
32482fi
32483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32485
10f2d63a 32486fi
e6cc62c6
VS
32487if test `eval echo '${'$as_ac_Header'}'` = yes; then
32488 cat >>confdefs.h <<_ACEOF
32489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32490_ACEOF
10f2d63a 32491
10f2d63a 32492fi
e6cc62c6 32493
10f2d63a
VZ
32494done
32495
8284b0c5 32496
2b9bdf71
VZ
32497 if test "$ac_cv_header_ole2_h" = "yes" ; then
32498 if test "$GCC" = yes ; then
8284b0c5
MB
32499
32500
e6cc62c6
VS
32501 ac_ext=cc
32502ac_cpp='$CXXCPP $CPPFLAGS'
32503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32506
32507
32508 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32509echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32510 cat >conftest.$ac_ext <<_ACEOF
32511#line $LINENO "configure"
32512/* confdefs.h. */
32513_ACEOF
32514cat confdefs.h >>conftest.$ac_ext
32515cat >>conftest.$ac_ext <<_ACEOF
32516/* end confdefs.h. */
8284b0c5
MB
32517#include <windows.h>
32518 #include <ole2.h>
e6cc62c6
VS
32519int
32520main ()
32521{
8284b0c5 32522
e6cc62c6
VS
32523 ;
32524 return 0;
32525}
32526_ACEOF
32527rm -f conftest.$ac_objext
32528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32529 (eval $ac_compile) 2>&5
32530 ac_status=$?
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } &&
32533 { ac_try='test -s conftest.$ac_objext'
32534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535 (eval $ac_try) 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; }; then
32539 echo "$as_me:$LINENO: result: no" >&5
32540echo "${ECHO_T}no" >&6
32541else
32542 echo "$as_me: failed program was:" >&5
32543sed 's/^/| /' conftest.$ac_ext >&5
32544
32545echo "$as_me:$LINENO: result: yes" >&5
32546echo "${ECHO_T}yes" >&6
8284b0c5
MB
32547 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32548fi
e6cc62c6 32549rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32550 ac_ext=c
8284b0c5 32551ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32555
2b9bdf71 32556 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32557 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32558 cat >>confdefs.h <<\_ACEOF
4f11a343 32559#define wxUSE_OLE 1
e6cc62c6 32560_ACEOF
4f11a343 32561
8284b0c5 32562
2b9bdf71
VZ
32563 fi
32564
e6cc62c6 32565 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32566#define wxUSE_DATAOBJ 1
e6cc62c6 32567_ACEOF
2b9bdf71
VZ
32568
32569 else
e6cc62c6
VS
32570 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32571echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32572
32573 wxUSE_CLIPBOARD=no
32574 wxUSE_DRAG_AND_DROP=no
32575 wxUSE_DATAOBJ=no
3bce6687
JS
32576 wxUSE_OLE=no
32577 fi
32578
32579 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32580 cat >>confdefs.h <<\_ACEOF
3bce6687 32581#define wxUSE_METAFILE 1
e6cc62c6 32582_ACEOF
3bce6687
JS
32583
32584
e6cc62c6 32585 cat >>confdefs.h <<\_ACEOF
3bce6687 32586#define wxUSE_ENH_METAFILE 1
e6cc62c6 32587_ACEOF
3bce6687
JS
32588
32589 fi
32590fi
32591
2b9bdf71
VZ
32592if test "$wxUSE_IPC" = "yes"; then
32593 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32594 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32595echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32596 fi
32597
e6cc62c6 32598 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32599#define wxUSE_IPC 1
e6cc62c6 32600_ACEOF
2b9bdf71
VZ
32601
32602fi
32603
32604if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32605 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32606 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32607echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32608 wxUSE_CLIPBOARD=no
32609 fi
32610
32611 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32612 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32613#define wxUSE_CLIPBOARD 1
e6cc62c6 32614_ACEOF
2b9bdf71 32615
8284b0c5 32616
e6cc62c6 32617 cat >>confdefs.h <<\_ACEOF
673f4220 32618#define wxUSE_DATAOBJ 1
e6cc62c6 32619_ACEOF
673f4220 32620
6c657b52 32621 fi
2b9bdf71
VZ
32622fi
32623
32624if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32625 if test "$wxUSE_GTK" = 1; then
32626 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32627 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32628echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32629 wxUSE_DRAG_AND_DROP=no
32630 fi
32631 fi
32632
2b9bdf71 32633 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32634 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32635echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32636 wxUSE_DRAG_AND_DROP=no
32637 fi
32638
f79bd02d 32639 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32640 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32641echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32642 wxUSE_DRAG_AND_DROP=no
32643 fi
32644
6c657b52 32645 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32646 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32647echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32648 wxUSE_DRAG_AND_DROP=no
32649 fi
32650
10f2d63a 32651 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32652 cat >>confdefs.h <<\_ACEOF
10f2d63a 32653#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32654_ACEOF
10f2d63a
VZ
32655
32656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32657 fi
32658
32659fi
32660
32661if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32662 cat >>confdefs.h <<\_ACEOF
10f2d63a 32663#define wxUSE_SPLINES 1
e6cc62c6 32664_ACEOF
10f2d63a
VZ
32665
32666fi
32667
8284b0c5 32668
1e6feb95
VZ
32669USES_CONTROLS=0
32670if test "$wxUSE_CONTROLS" = "yes"; then
32671 USES_CONTROLS=1
32672fi
32673
10f2d63a 32674if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32675 cat >>confdefs.h <<\_ACEOF
10f2d63a 32676#define wxUSE_ACCEL 1
e6cc62c6 32677_ACEOF
10f2d63a 32678
1e6feb95
VZ
32679 USES_CONTROLS=1
32680fi
32681
32682if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32683 cat >>confdefs.h <<\_ACEOF
1e6feb95 32684#define wxUSE_BUTTON 1
e6cc62c6 32685_ACEOF
1e6feb95
VZ
32686
32687 USES_CONTROLS=1
32688fi
32689
32690if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32691 cat >>confdefs.h <<\_ACEOF
1e6feb95 32692#define wxUSE_BMPBUTTON 1
e6cc62c6 32693_ACEOF
1e6feb95
VZ
32694
32695 USES_CONTROLS=1
32696fi
32697
32698if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32699 cat >>confdefs.h <<\_ACEOF
1e6feb95 32700#define wxUSE_CALENDARCTRL 1
e6cc62c6 32701_ACEOF
1e6feb95
VZ
32702
32703 USES_CONTROLS=1
32704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32705fi
32706
32707if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32708 cat >>confdefs.h <<\_ACEOF
10f2d63a 32709#define wxUSE_CARET 1
e6cc62c6 32710_ACEOF
10f2d63a 32711
1e6feb95 32712 USES_CONTROLS=1
10f2d63a
VZ
32713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32714fi
32715
32716if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32717 cat >>confdefs.h <<\_ACEOF
10f2d63a 32718#define wxUSE_COMBOBOX 1
e6cc62c6 32719_ACEOF
10f2d63a 32720
1e6feb95 32721 USES_CONTROLS=1
10f2d63a
VZ
32722fi
32723
32724if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32725 cat >>confdefs.h <<\_ACEOF
10f2d63a 32726#define wxUSE_CHOICE 1
e6cc62c6 32727_ACEOF
10f2d63a 32728
1e6feb95 32729 USES_CONTROLS=1
10f2d63a
VZ
32730fi
32731
32732if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32733 cat >>confdefs.h <<\_ACEOF
10f2d63a 32734#define wxUSE_CHECKBOX 1
e6cc62c6 32735_ACEOF
10f2d63a 32736
1e6feb95 32737 USES_CONTROLS=1
10f2d63a
VZ
32738fi
32739
32740if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32741 cat >>confdefs.h <<\_ACEOF
10f2d63a 32742#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32743_ACEOF
10f2d63a 32744
1e6feb95 32745 USES_CONTROLS=1
10f2d63a
VZ
32746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32747fi
32748
da494b40 32749if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32750 cat >>confdefs.h <<\_ACEOF
da494b40 32751#define wxUSE_DISPLAY 1
e6cc62c6 32752_ACEOF
da494b40
MB
32753
32754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32755fi
32756
10f2d63a 32757if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32758 cat >>confdefs.h <<\_ACEOF
10f2d63a 32759#define wxUSE_GAUGE 1
e6cc62c6 32760_ACEOF
10f2d63a 32761
1e6feb95 32762 USES_CONTROLS=1
10f2d63a
VZ
32763fi
32764
d6a55c4b 32765if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32766 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32767#define wxUSE_GRID 1
e6cc62c6 32768_ACEOF
10f2d63a 32769
1e6feb95 32770 USES_CONTROLS=1
d6a55c4b 32771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32772fi
32773
32774if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32775 cat >>confdefs.h <<\_ACEOF
10f2d63a 32776#define wxUSE_IMAGLIST 1
e6cc62c6 32777_ACEOF
10f2d63a
VZ
32778
32779fi
32780
32781if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32782 cat >>confdefs.h <<\_ACEOF
10f2d63a 32783#define wxUSE_LISTBOX 1
e6cc62c6 32784_ACEOF
10f2d63a 32785
1e6feb95 32786 USES_CONTROLS=1
10f2d63a
VZ
32787fi
32788
32789if test "$wxUSE_LISTCTRL" = "yes"; then
32790 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32791 cat >>confdefs.h <<\_ACEOF
10f2d63a 32792#define wxUSE_LISTCTRL 1
e6cc62c6 32793_ACEOF
10f2d63a 32794
1e6feb95 32795 USES_CONTROLS=1
10f2d63a
VZ
32796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32797 else
e6cc62c6
VS
32798 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32799echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32800 fi
32801fi
32802
32803if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32804 cat >>confdefs.h <<\_ACEOF
10f2d63a 32805#define wxUSE_NOTEBOOK 1
e6cc62c6 32806_ACEOF
10f2d63a 32807
1e6feb95 32808 USES_CONTROLS=1
10f2d63a
VZ
32809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32810fi
32811
24176f2c 32812
10f2d63a 32813if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32814 cat >>confdefs.h <<\_ACEOF
10f2d63a 32815#define wxUSE_RADIOBOX 1
e6cc62c6 32816_ACEOF
10f2d63a 32817
1e6feb95 32818 USES_CONTROLS=1
10f2d63a
VZ
32819fi
32820
32821if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32822 cat >>confdefs.h <<\_ACEOF
10f2d63a 32823#define wxUSE_RADIOBTN 1
e6cc62c6 32824_ACEOF
10f2d63a 32825
1e6feb95 32826 USES_CONTROLS=1
10f2d63a
VZ
32827fi
32828
32829if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32830 cat >>confdefs.h <<\_ACEOF
10f2d63a 32831#define wxUSE_SASH 1
e6cc62c6 32832_ACEOF
10f2d63a
VZ
32833
32834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32835fi
32836
32837if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32838 cat >>confdefs.h <<\_ACEOF
10f2d63a 32839#define wxUSE_SCROLLBAR 1
e6cc62c6 32840_ACEOF
10f2d63a 32841
1e6feb95 32842 USES_CONTROLS=1
741a9306 32843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32844fi
32845
32846if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32847 cat >>confdefs.h <<\_ACEOF
10f2d63a 32848#define wxUSE_SLIDER 1
e6cc62c6 32849_ACEOF
10f2d63a 32850
1e6feb95 32851 USES_CONTROLS=1
10f2d63a
VZ
32852fi
32853
32854if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32855 cat >>confdefs.h <<\_ACEOF
10f2d63a 32856#define wxUSE_SPINBTN 1
e6cc62c6 32857_ACEOF
10f2d63a 32858
1e6feb95 32859 USES_CONTROLS=1
10f2d63a
VZ
32860fi
32861
56cfaa52 32862if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32863 cat >>confdefs.h <<\_ACEOF
56cfaa52 32864#define wxUSE_SPINCTRL 1
e6cc62c6 32865_ACEOF
56cfaa52 32866
1e6feb95 32867 USES_CONTROLS=1
56cfaa52
RR
32868fi
32869
10f2d63a 32870if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32871 cat >>confdefs.h <<\_ACEOF
10f2d63a 32872#define wxUSE_SPLITTER 1
e6cc62c6 32873_ACEOF
10f2d63a
VZ
32874
32875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32876fi
32877
32878if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32879 cat >>confdefs.h <<\_ACEOF
10f2d63a 32880#define wxUSE_STATBMP 1
e6cc62c6 32881_ACEOF
10f2d63a 32882
1e6feb95 32883 USES_CONTROLS=1
10f2d63a
VZ
32884fi
32885
32886if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32887 cat >>confdefs.h <<\_ACEOF
10f2d63a 32888#define wxUSE_STATBOX 1
e6cc62c6 32889_ACEOF
10f2d63a 32890
1e6feb95
VZ
32891 USES_CONTROLS=1
32892fi
32893
32894if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32895 cat >>confdefs.h <<\_ACEOF
1e6feb95 32896#define wxUSE_STATTEXT 1
e6cc62c6 32897_ACEOF
1e6feb95
VZ
32898
32899 USES_CONTROLS=1
10f2d63a
VZ
32900fi
32901
32902if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32903 cat >>confdefs.h <<\_ACEOF
10f2d63a 32904#define wxUSE_STATLINE 1
e6cc62c6 32905_ACEOF
10f2d63a 32906
89e6bf6d 32907 USES_CONTROLS=1
10f2d63a
VZ
32908fi
32909
32910if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32911 cat >>confdefs.h <<\_ACEOF
10f2d63a 32912#define wxUSE_STATUSBAR 1
e6cc62c6 32913_ACEOF
10f2d63a 32914
1e6feb95 32915 USES_CONTROLS=1
698dcdb6 32916
2286341c 32917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32918fi
32919
32920if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32921 cat >>confdefs.h <<\_ACEOF
10f2d63a 32922#define wxUSE_TAB_DIALOG 1
e6cc62c6 32923_ACEOF
10f2d63a
VZ
32924
32925 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32926fi
32927
1e6feb95 32928if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32929 cat >>confdefs.h <<\_ACEOF
1e6feb95 32930#define wxUSE_TEXTCTRL 1
e6cc62c6 32931_ACEOF
1e6feb95
VZ
32932
32933 USES_CONTROLS=1
32934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32935fi
32936
1db8dc4a 32937if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32938 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32939 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32940echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32941 wxUSE_TOGGLEBTN=no
32942 fi
32943 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32944 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32945echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32946 wxUSE_TOGGLEBTN=no
32947 fi
32948
32949 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32950 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32951#define wxUSE_TOGGLEBTN 1
e6cc62c6 32952_ACEOF
1db8dc4a 32953
1e6feb95 32954 USES_CONTROLS=1
a45d7ab7 32955 fi
1db8dc4a
VZ
32956fi
32957
360d6699 32958if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32959 cat >>confdefs.h <<\_ACEOF
360d6699 32960#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32961_ACEOF
360d6699
VZ
32962
32963 wxUSE_TOOLBAR="yes"
1e6feb95 32964 USES_CONTROLS=1
360d6699
VZ
32965fi
32966
10f2d63a 32967if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32968 cat >>confdefs.h <<\_ACEOF
10f2d63a 32969#define wxUSE_TOOLBAR 1
e6cc62c6 32970_ACEOF
10f2d63a 32971
1e6feb95 32972 USES_CONTROLS=1
698dcdb6 32973
360d6699
VZ
32974 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32975 wxUSE_TOOLBAR_NATIVE="yes"
32976 fi
32977
1e6feb95 32978 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32979 cat >>confdefs.h <<\_ACEOF
360d6699 32980#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32981_ACEOF
360d6699 32982
1e6feb95
VZ
32983 USES_CONTROLS=1
32984 fi
32985
32986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32987fi
32988
10f2d63a
VZ
32989if test "$wxUSE_TOOLTIPS" = "yes"; then
32990 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32991 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32992echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32993 else
89e6bf6d 32994 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32995 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32996echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32997 else
e6cc62c6 32998 cat >>confdefs.h <<\_ACEOF
10f2d63a 32999#define wxUSE_TOOLTIPS 1
e6cc62c6 33000_ACEOF
10f2d63a
VZ
33001
33002 fi
33003 fi
33004fi
33005
33006if test "$wxUSE_TREECTRL" = "yes"; then
33007 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33008 cat >>confdefs.h <<\_ACEOF
10f2d63a 33009#define wxUSE_TREECTRL 1
e6cc62c6 33010_ACEOF
10f2d63a 33011
1e6feb95 33012 USES_CONTROLS=1
10f2d63a
VZ
33013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33014 else
e6cc62c6
VS
33015 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33016echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33017 fi
33018fi
33019
9f41d601 33020if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33021 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33022 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33023echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33024 else
485cf710 33025 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33026 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33027echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33028 else
3c011993 33029 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33030 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33031echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33032 else
e6cc62c6 33033 cat >>confdefs.h <<\_ACEOF
9f41d601 33034#define wxUSE_POPUPWIN 1
e6cc62c6 33035_ACEOF
9f41d601 33036
8284b0c5 33037
3c011993
VZ
33038 USES_CONTROLS=1
33039 fi
485cf710 33040 fi
6abe4b65 33041 fi
9f41d601
RR
33042fi
33043
dd964dcc 33044if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33045 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33046 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33047echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33048 else
e6cc62c6 33049 cat >>confdefs.h <<\_ACEOF
dd964dcc 33050#define wxUSE_TIPWINDOW 1
e6cc62c6 33051_ACEOF
dd964dcc 33052
3c011993 33053 fi
dd964dcc
VZ
33054fi
33055
1e6feb95 33056if test "$USES_CONTROLS" = 1; then
e6cc62c6 33057 cat >>confdefs.h <<\_ACEOF
1e6feb95 33058#define wxUSE_CONTROLS 1
e6cc62c6 33059_ACEOF
10f2d63a 33060
10f2d63a
VZ
33061fi
33062
8284b0c5 33063
1e6feb95 33064
24fd6d87 33065if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33066 cat >>confdefs.h <<\_ACEOF
24fd6d87 33067#define wxUSE_DRAGIMAGE 1
e6cc62c6 33068_ACEOF
24fd6d87
VZ
33069
33070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33071fi
33072
7bb2947d 33073if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 33074 cat >>confdefs.h <<\_ACEOF
7bb2947d 33075#define wxUSE_ACCESSIBILITY 1
e6cc62c6 33076_ACEOF
7bb2947d
MB
33077
33078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33079fi
33080
1e6feb95 33081if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33082 cat >>confdefs.h <<\_ACEOF
1e6feb95 33083#define wxUSE_MENUS 1
e6cc62c6 33084_ACEOF
10f2d63a 33085
1e6feb95 33086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33087fi
33088
1e6feb95 33089if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33090 cat >>confdefs.h <<\_ACEOF
1e6feb95 33091#define wxUSE_METAFILE 1
e6cc62c6 33092_ACEOF
10f2d63a 33093
10f2d63a
VZ
33094fi
33095
1e6feb95 33096if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33097 cat >>confdefs.h <<\_ACEOF
1e6feb95 33098#define wxUSE_MIMETYPE 1
e6cc62c6 33099_ACEOF
10f2d63a 33100
10f2d63a
VZ
33101fi
33102
3e44f09d 33103if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33104 cat >>confdefs.h <<\_ACEOF
3e44f09d 33105#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33106_ACEOF
3e44f09d 33107
321d2b14
VZ
33108if test "$TOOLKIT" = "MSW"; then
33109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33110fi
33111
3e44f09d
VZ
33112fi
33113
10f2d63a 33114if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33115 cat >>confdefs.h <<\_ACEOF
10f2d63a 33116#define wxUSE_MINIFRAME 1
e6cc62c6 33117_ACEOF
10f2d63a
VZ
33118
33119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33120fi
33121
4d264332 33122USE_HTML=0
10f2d63a 33123if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33124 cat >>confdefs.h <<\_ACEOF
10f2d63a 33125#define wxUSE_HTML 1
e6cc62c6 33126_ACEOF
10f2d63a 33127
4d264332 33128 USE_HTML=1
c74dc163 33129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
33130fi
33131
33132if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33133 cat >>confdefs.h <<\_ACEOF
1e487827 33134#define wxUSE_VALIDATORS 1
e6cc62c6 33135_ACEOF
703e0a69 33136
698dcdb6
VZ
33137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33138fi
33139
edae8572 33140if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33141 cat >>confdefs.h <<\_ACEOF
edae8572 33142#define wxUSE_PALETTE 1
e6cc62c6 33143_ACEOF
edae8572
VZ
33144
33145fi
33146
698dcdb6 33147if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 33148 cat >>confdefs.h <<\_ACEOF
698dcdb6 33149#define wxUSE_IMAGE 1
e6cc62c6 33150_ACEOF
698dcdb6
VZ
33151
33152fi
33153
33154if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 33155 cat >>confdefs.h <<\_ACEOF
698dcdb6 33156#define wxUSE_GIF 1
e6cc62c6 33157_ACEOF
698dcdb6
VZ
33158
33159fi
33160
33161if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 33162 cat >>confdefs.h <<\_ACEOF
698dcdb6 33163#define wxUSE_PCX 1
e6cc62c6 33164_ACEOF
698dcdb6
VZ
33165
33166fi
33167
4b6b4dfc 33168if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 33169 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33170#define wxUSE_IFF 1
e6cc62c6 33171_ACEOF
4b6b4dfc
RR
33172
33173fi
33174
698dcdb6 33175if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33176 cat >>confdefs.h <<\_ACEOF
698dcdb6 33177#define wxUSE_PNM 1
e6cc62c6 33178_ACEOF
698dcdb6
VZ
33179
33180fi
33181
33182if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33183 cat >>confdefs.h <<\_ACEOF
698dcdb6 33184#define wxUSE_XPM 1
e6cc62c6 33185_ACEOF
698dcdb6
VZ
33186
33187fi
33188
658974ae 33189if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33190 cat >>confdefs.h <<\_ACEOF
658974ae 33191#define wxUSE_ICO_CUR 1
e6cc62c6 33192_ACEOF
658974ae
VS
33193
33194fi
33195
a72a4bfa
VS
33196if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33197 LIBS=" -lunicows $LIBS"
33198fi
33199
8284b0c5 33200
1e6feb95 33201if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33202 cat >>confdefs.h <<\_ACEOF
1e6feb95 33203#define wxUSE_CHOICEDLG 1
e6cc62c6 33204_ACEOF
1e6feb95
VZ
33205
33206fi
33207
33208if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33209 cat >>confdefs.h <<\_ACEOF
1e6feb95 33210#define wxUSE_COLOURDLG 1
e6cc62c6 33211_ACEOF
1e6feb95
VZ
33212
33213fi
33214
33215if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33216 cat >>confdefs.h <<\_ACEOF
1e6feb95 33217#define wxUSE_FILEDLG 1
e6cc62c6 33218_ACEOF
1e6feb95
VZ
33219
33220fi
33221
8db37e06 33222if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33223 cat >>confdefs.h <<\_ACEOF
8db37e06 33224#define wxUSE_FINDREPLDLG 1
e6cc62c6 33225_ACEOF
8db37e06
VZ
33226
33227fi
33228
1e6feb95 33229if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33230 cat >>confdefs.h <<\_ACEOF
1e6feb95 33231#define wxUSE_FONTDLG 1
e6cc62c6 33232_ACEOF
1e6feb95
VZ
33233
33234fi
33235
33236if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33237 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33238 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33239echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33240 else
e6cc62c6 33241 cat >>confdefs.h <<\_ACEOF
1e6feb95 33242#define wxUSE_DIRDLG 1
e6cc62c6 33243_ACEOF
1e6feb95 33244
1e6feb95
VZ
33245 fi
33246fi
33247
33248if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33249 cat >>confdefs.h <<\_ACEOF
1e6feb95 33250#define wxUSE_MSGDLG 1
e6cc62c6 33251_ACEOF
1e6feb95
VZ
33252
33253fi
33254
33255if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33256 cat >>confdefs.h <<\_ACEOF
1e6feb95 33257#define wxUSE_NUMBERDLG 1
e6cc62c6 33258_ACEOF
1e6feb95
VZ
33259
33260fi
33261
33262if test "$wxUSE_PROGRESSDLG" = "yes"; then
33263 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33264 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33265echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33266 else
e6cc62c6 33267 cat >>confdefs.h <<\_ACEOF
1e6feb95 33268#define wxUSE_PROGRESSDLG 1
e6cc62c6 33269_ACEOF
1e6feb95
VZ
33270
33271 fi
33272fi
33273
cbca9943 33274if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33275 cat >>confdefs.h <<\_ACEOF
cbca9943 33276#define wxUSE_SPLASH 1
e6cc62c6 33277_ACEOF
cbca9943
VZ
33278
33279fi
33280
1e6feb95
VZ
33281if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33282 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33283 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33284echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33285 else
e6cc62c6 33286 cat >>confdefs.h <<\_ACEOF
1e6feb95 33287#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33288_ACEOF
1e6feb95 33289
7b4a847f
RR
33290 fi
33291fi
579d8138 33292
8284b0c5 33293if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33294 cat >>confdefs.h <<\_ACEOF
8284b0c5 33295#define wxUSE_TEXTDLG 1
e6cc62c6 33296_ACEOF
8284b0c5
MB
33297
33298fi
33299
33300if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33301 cat >>confdefs.h <<\_ACEOF
8284b0c5 33302#define wxUSE_WIZARDDLG 1
e6cc62c6 33303_ACEOF
8284b0c5
MB
33304
33305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33306fi
33307
33308
33309if test "$cross_compiling" = "yes"; then
33310 OSINFO="\"$host\""
33311else
33312 OSINFO=`uname -s -r -m`
33313 OSINFO="\"$OSINFO\""
33314fi
33315
e6cc62c6 33316cat >>confdefs.h <<_ACEOF
8284b0c5 33317#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33318_ACEOF
8284b0c5
MB
33319
33320
33321
33322if test "x$prefix" != "xNONE"; then
33323 wxPREFIX=$prefix
33324else
33325 wxPREFIX=$ac_default_prefix
33326fi
33327
e6cc62c6 33328cat >>confdefs.h <<_ACEOF
8284b0c5 33329#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33330_ACEOF
8284b0c5
MB
33331
33332
e6cc62c6 33333top_builddir_wxconfig=`pwd`
52c71b80 33334
8284b0c5
MB
33335
33336
33337
33338if test "$wxUSE_MAC" = 1 ; then
33339 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33340fi
ac0c4cc3
DE
33341if test "$wxUSE_COCOA" = 1 ; then
33342 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33343fi
8284b0c5
MB
33344
33345
2b5f62a0
VZ
33346LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33347
33348have_cos=0
33349have_floor=0
e6cc62c6 33350
2b5f62a0
VZ
33351for ac_func in cos
33352do
e6cc62c6
VS
33353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33354echo "$as_me:$LINENO: checking for $ac_func" >&5
33355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33356if eval "test \"\${$as_ac_var+set}\" = set"; then
33357 echo $ECHO_N "(cached) $ECHO_C" >&6
33358else
33359 cat >conftest.$ac_ext <<_ACEOF
33360#line $LINENO "configure"
33361/* confdefs.h. */
33362_ACEOF
33363cat confdefs.h >>conftest.$ac_ext
33364cat >>conftest.$ac_ext <<_ACEOF
33365/* end confdefs.h. */
2b5f62a0 33366/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33367 which can conflict with char $ac_func (); below.
33368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33369 <limits.h> exists even on freestanding compilers. */
33370#ifdef __STDC__
33371# include <limits.h>
33372#else
33373# include <assert.h>
33374#endif
2b5f62a0 33375/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33376#ifdef __cplusplus
33377extern "C"
33378{
33379#endif
2b5f62a0 33380/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33381 builtin and then its argument prototype would still apply. */
33382char $ac_func ();
2b5f62a0
VZ
33383/* The GNU C library defines this for functions which it implements
33384 to always fail with ENOSYS. Some functions are actually named
33385 something starting with __ and the normal name is an alias. */
33386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33387choke me
33388#else
e6cc62c6
VS
33389char (*f) () = $ac_func;
33390#endif
33391#ifdef __cplusplus
33392}
2b5f62a0
VZ
33393#endif
33394
e6cc62c6
VS
33395int
33396main ()
33397{
33398return f != $ac_func;
33399 ;
33400 return 0;
33401}
33402_ACEOF
33403rm -f conftest.$ac_objext conftest$ac_exeext
33404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33405 (eval $ac_link) 2>&5
33406 ac_status=$?
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); } &&
33409 { ac_try='test -s conftest$ac_exeext'
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33412 ac_status=$?
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; }; then
33415 eval "$as_ac_var=yes"
33416else
33417 echo "$as_me: failed program was:" >&5
33418sed 's/^/| /' conftest.$ac_ext >&5
33419
33420eval "$as_ac_var=no"
33421fi
33422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33423fi
33424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33426if test `eval echo '${'$as_ac_var'}'` = yes; then
33427 cat >>confdefs.h <<_ACEOF
33428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33429_ACEOF
2b5f62a0 33430 have_cos=1
2b5f62a0
VZ
33431fi
33432done
33433
e6cc62c6 33434
2b5f62a0
VZ
33435for ac_func in floor
33436do
e6cc62c6
VS
33437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33438echo "$as_me:$LINENO: checking for $ac_func" >&5
33439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33440if eval "test \"\${$as_ac_var+set}\" = set"; then
33441 echo $ECHO_N "(cached) $ECHO_C" >&6
33442else
33443 cat >conftest.$ac_ext <<_ACEOF
33444#line $LINENO "configure"
33445/* confdefs.h. */
33446_ACEOF
33447cat confdefs.h >>conftest.$ac_ext
33448cat >>conftest.$ac_ext <<_ACEOF
33449/* end confdefs.h. */
2b5f62a0 33450/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33451 which can conflict with char $ac_func (); below.
33452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33453 <limits.h> exists even on freestanding compilers. */
33454#ifdef __STDC__
33455# include <limits.h>
33456#else
33457# include <assert.h>
33458#endif
2b5f62a0 33459/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33460#ifdef __cplusplus
33461extern "C"
33462{
33463#endif
2b5f62a0 33464/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33465 builtin and then its argument prototype would still apply. */
33466char $ac_func ();
2b5f62a0
VZ
33467/* The GNU C library defines this for functions which it implements
33468 to always fail with ENOSYS. Some functions are actually named
33469 something starting with __ and the normal name is an alias. */
33470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33471choke me
33472#else
e6cc62c6
VS
33473char (*f) () = $ac_func;
33474#endif
33475#ifdef __cplusplus
33476}
2b5f62a0
VZ
33477#endif
33478
e6cc62c6
VS
33479int
33480main ()
33481{
33482return f != $ac_func;
33483 ;
33484 return 0;
33485}
33486_ACEOF
33487rm -f conftest.$ac_objext conftest$ac_exeext
33488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33489 (eval $ac_link) 2>&5
33490 ac_status=$?
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); } &&
33493 { ac_try='test -s conftest$ac_exeext'
33494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33495 (eval $ac_try) 2>&5
33496 ac_status=$?
33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 (exit $ac_status); }; }; then
33499 eval "$as_ac_var=yes"
33500else
33501 echo "$as_me: failed program was:" >&5
33502sed 's/^/| /' conftest.$ac_ext >&5
33503
33504eval "$as_ac_var=no"
33505fi
33506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33507fi
33508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33510if test `eval echo '${'$as_ac_var'}'` = yes; then
33511 cat >>confdefs.h <<_ACEOF
33512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33513_ACEOF
2b5f62a0 33514 have_floor=1
2b5f62a0
VZ
33515fi
33516done
33517
e6cc62c6
VS
33518echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33519echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33520if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33521 echo "$as_me:$LINENO: result: yes" >&5
33522echo "${ECHO_T}yes" >&6
2b5f62a0 33523else
e6cc62c6
VS
33524 echo "$as_me:$LINENO: result: no" >&5
33525echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33526 LIBS="$LIBS -lm"
33527 # use different functions to avoid configure caching
33528 have_sin=0
33529 have_ceil=0
e6cc62c6
VS
33530
33531for ac_func in sin
2b5f62a0 33532do
e6cc62c6
VS
33533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33534echo "$as_me:$LINENO: checking for $ac_func" >&5
33535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33536if eval "test \"\${$as_ac_var+set}\" = set"; then
33537 echo $ECHO_N "(cached) $ECHO_C" >&6
33538else
33539 cat >conftest.$ac_ext <<_ACEOF
33540#line $LINENO "configure"
33541/* confdefs.h. */
33542_ACEOF
33543cat confdefs.h >>conftest.$ac_ext
33544cat >>conftest.$ac_ext <<_ACEOF
33545/* end confdefs.h. */
2b5f62a0 33546/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33547 which can conflict with char $ac_func (); below.
33548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33549 <limits.h> exists even on freestanding compilers. */
33550#ifdef __STDC__
33551# include <limits.h>
33552#else
33553# include <assert.h>
33554#endif
2b5f62a0 33555/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33556#ifdef __cplusplus
33557extern "C"
33558{
33559#endif
2b5f62a0 33560/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33561 builtin and then its argument prototype would still apply. */
33562char $ac_func ();
2b5f62a0
VZ
33563/* The GNU C library defines this for functions which it implements
33564 to always fail with ENOSYS. Some functions are actually named
33565 something starting with __ and the normal name is an alias. */
33566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33567choke me
33568#else
e6cc62c6
VS
33569char (*f) () = $ac_func;
33570#endif
33571#ifdef __cplusplus
33572}
2b5f62a0
VZ
33573#endif
33574
e6cc62c6
VS
33575int
33576main ()
33577{
33578return f != $ac_func;
33579 ;
33580 return 0;
33581}
33582_ACEOF
33583rm -f conftest.$ac_objext conftest$ac_exeext
33584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33585 (eval $ac_link) 2>&5
33586 ac_status=$?
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); } &&
33589 { ac_try='test -s conftest$ac_exeext'
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; }; then
33595 eval "$as_ac_var=yes"
33596else
33597 echo "$as_me: failed program was:" >&5
33598sed 's/^/| /' conftest.$ac_ext >&5
33599
33600eval "$as_ac_var=no"
33601fi
33602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33603fi
33604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33606if test `eval echo '${'$as_ac_var'}'` = yes; then
33607 cat >>confdefs.h <<_ACEOF
33608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33609_ACEOF
2b5f62a0 33610 have_sin=1
2b5f62a0
VZ
33611fi
33612done
33613
e6cc62c6
VS
33614
33615for ac_func in ceil
2b5f62a0 33616do
e6cc62c6
VS
33617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33618echo "$as_me:$LINENO: checking for $ac_func" >&5
33619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33620if eval "test \"\${$as_ac_var+set}\" = set"; then
33621 echo $ECHO_N "(cached) $ECHO_C" >&6
33622else
33623 cat >conftest.$ac_ext <<_ACEOF
33624#line $LINENO "configure"
33625/* confdefs.h. */
33626_ACEOF
33627cat confdefs.h >>conftest.$ac_ext
33628cat >>conftest.$ac_ext <<_ACEOF
33629/* end confdefs.h. */
2b5f62a0 33630/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33631 which can conflict with char $ac_func (); below.
33632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33633 <limits.h> exists even on freestanding compilers. */
33634#ifdef __STDC__
33635# include <limits.h>
33636#else
33637# include <assert.h>
33638#endif
2b5f62a0 33639/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33640#ifdef __cplusplus
33641extern "C"
33642{
33643#endif
2b5f62a0 33644/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33645 builtin and then its argument prototype would still apply. */
33646char $ac_func ();
2b5f62a0
VZ
33647/* The GNU C library defines this for functions which it implements
33648 to always fail with ENOSYS. Some functions are actually named
33649 something starting with __ and the normal name is an alias. */
33650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33651choke me
33652#else
e6cc62c6
VS
33653char (*f) () = $ac_func;
33654#endif
33655#ifdef __cplusplus
33656}
2b5f62a0
VZ
33657#endif
33658
e6cc62c6
VS
33659int
33660main ()
33661{
33662return f != $ac_func;
33663 ;
33664 return 0;
33665}
33666_ACEOF
33667rm -f conftest.$ac_objext conftest$ac_exeext
33668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33669 (eval $ac_link) 2>&5
33670 ac_status=$?
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); } &&
33673 { ac_try='test -s conftest$ac_exeext'
33674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33675 (eval $ac_try) 2>&5
33676 ac_status=$?
33677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33678 (exit $ac_status); }; }; then
33679 eval "$as_ac_var=yes"
33680else
33681 echo "$as_me: failed program was:" >&5
33682sed 's/^/| /' conftest.$ac_ext >&5
33683
33684eval "$as_ac_var=no"
33685fi
33686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33687fi
33688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33690if test `eval echo '${'$as_ac_var'}'` = yes; then
33691 cat >>confdefs.h <<_ACEOF
33692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33693_ACEOF
2b5f62a0 33694 have_ceil=1
2b5f62a0
VZ
33695fi
33696done
33697
e6cc62c6
VS
33698 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33699echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33700 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33701 echo "$as_me:$LINENO: result: yes" >&5
33702echo "${ECHO_T}yes" >&6
2b5f62a0 33703 else
e6cc62c6
VS
33704 echo "$as_me:$LINENO: result: no" >&5
33705echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33706 # not sure we should warn the user, crash, etc.
33707 fi
33708fi
8284b0c5
MB
33709
33710if test "$wxUSE_GUI" = "yes"; then
33711
e6cc62c6 33712
8284b0c5
MB
33713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33714 drawing dynamic erase event exec font image \
1542ea39 33715 minimal propsize rotate shaped widgets"
b625909c
VS
33716
33717 if test "$wxUSE_MONOLITHIC" != "yes"; then
33718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33719 fi
8284b0c5
MB
33720else
33721 SAMPLES_SUBDIRS="console"
33722fi
33723
33724
e6cc62c6 33725INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33726-I\${top_srcdir}/include \
33727$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33728$TOOLKIT_INCLUDE"
33729
fddeb06b
VS
33730if test "$GXX" = yes ; then
33731 CXXWARNINGS="-Wall"
33732 fi
33733
33734EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33735
95318f7d 33736CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33737CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33738CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33739
33740
fddeb06b 33741LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33742EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33743EXTRALIBS_XML="$EXPAT_LINK"
c74dc163
VS
33744if test "$wxUSE_GUI" = "yes"; then
33745 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33746fi
34b08d2c
VS
33747if test "$wxUSE_OPENGL" = "yes"; then
33748 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33749fi
fddeb06b
VS
33750
33751LDFLAGS="$LDFLAGS $PROFILE"
33752
8284b0c5
MB
33753if test "$wxUSE_GTK" = 1; then
33754 WXCONFIG_INCLUDE=
33755else
33756 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33757fi
33758
fe0895cf
VS
33759if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33760 WXUNIV=1
33761else
33762 WXUNIV=0
8284b0c5
MB
33763fi
33764
8284b0c5
MB
33765
33766
33767
33768
33769
33770
33771
672abd7a 33772
9747f85d
VS
33773if test $wxUSE_MONOLITHIC = "yes" ; then
33774 MONOLITHIC=1
33775else
33776 MONOLITHIC=0
33777fi
8284b0c5 33778
029b47ad
VS
33779if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33780 OFFICIAL_BUILD=1
33781else
33782 OFFICIAL_BUILD=0
33783fi
33784
8ee2dd05
VS
33785
33786
33787
8284b0c5
MB
33788
33789
33790
33791
33792
33793
c74dc163 33794
34b08d2c 33795
672abd7a 33796
fe0895cf 33797TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33798
33799
33800
33801
33802
ea66c762 33803
fe0895cf 33804 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33805
33806 if test -n "$ac_tool_prefix"; then
33807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33808set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33809echo "$as_me:$LINENO: checking for $ac_word" >&5
33810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33811if test "${ac_cv_prog_RANLIB+set}" = set; then
33812 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33813else
fe0895cf
VS
33814 if test -n "$RANLIB"; then
33815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33816else
e6cc62c6
VS
33817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33818for as_dir in $PATH
33819do
33820 IFS=$as_save_IFS
33821 test -z "$as_dir" && as_dir=.
33822 for ac_exec_ext in '' $ac_executable_extensions; do
33823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33826 break 2
33827 fi
33828done
33829done
33830
10f2d63a 33831fi
10f2d63a 33832fi
e6cc62c6 33833RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33834if test -n "$RANLIB"; then
e6cc62c6
VS
33835 echo "$as_me:$LINENO: result: $RANLIB" >&5
33836echo "${ECHO_T}$RANLIB" >&6
33837else
33838 echo "$as_me:$LINENO: result: no" >&5
33839echo "${ECHO_T}no" >&6
33840fi
33841
33842fi
33843if test -z "$ac_cv_prog_RANLIB"; then
33844 ac_ct_RANLIB=$RANLIB
33845 # Extract the first word of "ranlib", so it can be a program name with args.
33846set dummy ranlib; ac_word=$2
33847echo "$as_me:$LINENO: checking for $ac_word" >&5
33848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33849if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33850 echo $ECHO_N "(cached) $ECHO_C" >&6
33851else
33852 if test -n "$ac_ct_RANLIB"; then
33853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33854else
33855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33856for as_dir in $PATH
33857do
33858 IFS=$as_save_IFS
33859 test -z "$as_dir" && as_dir=.
33860 for ac_exec_ext in '' $ac_executable_extensions; do
33861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33862 ac_cv_prog_ac_ct_RANLIB="ranlib"
33863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33864 break 2
33865 fi
33866done
33867done
33868
33869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33870fi
33871fi
33872ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33873if test -n "$ac_ct_RANLIB"; then
33874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33875echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33876else
e6cc62c6
VS
33877 echo "$as_me:$LINENO: result: no" >&5
33878echo "${ECHO_T}no" >&6
33879fi
33880
33881 RANLIB=$ac_ct_RANLIB
33882else
33883 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33884fi
665bbe97 33885
fe0895cf
VS
33886 # Find a good install program. We prefer a C program (faster),
33887# so one script is as good as another. But avoid the broken or
33888# incompatible versions:
33889# SysV /etc/install, /usr/sbin/install
33890# SunOS /usr/etc/install
33891# IRIX /sbin/install
33892# AIX /bin/install
e6cc62c6 33893# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33894# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33895# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33896# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33897# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33898echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33899echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33900if test -z "$INSTALL"; then
e6cc62c6
VS
33901if test "${ac_cv_path_install+set}" = set; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903else
33904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33905for as_dir in $PATH
33906do
33907 IFS=$as_save_IFS
33908 test -z "$as_dir" && as_dir=.
33909 # Account for people who put trailing slashes in PATH elements.
33910case $as_dir/ in
33911 ./ | .// | /cC/* | \
33912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33913 /usr/ucb/* ) ;;
33914 *)
33915 # OSF1 and SCO ODT 3.0 have their own names for install.
33916 # Don't use installbsd from OSF since it installs stuff as root
33917 # by default.
33918 for ac_prog in ginstall scoinst install; do
33919 for ac_exec_ext in '' $ac_executable_extensions; do
33920 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33921 if test $ac_prog = install &&
33922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33923 # AIX install. It has an incompatible calling convention.
33924 :
33925 elif test $ac_prog = install &&
33926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33927 # program-specific install script used by HP pwplus--don't use.
33928 :
33929 else
33930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33931 break 3
33932 fi
33933 fi
fe0895cf 33934 done
e6cc62c6
VS
33935 done
33936 ;;
33937esac
33938done
33939
fe0895cf
VS
33940
33941fi
33942 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33943 INSTALL=$ac_cv_path_install
fe0895cf
VS
33944 else
33945 # As a last resort, use the slow shell script. We don't cache a
33946 # path for INSTALL within a source directory, because that will
33947 # break other packages using the cache if that directory is
33948 # removed, or if the path is relative.
e6cc62c6 33949 INSTALL=$ac_install_sh
fe0895cf
VS
33950 fi
33951fi
e6cc62c6
VS
33952echo "$as_me:$LINENO: result: $INSTALL" >&5
33953echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33954
33955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33956# It thinks the first close brace ends the variable substitution.
33957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33958
e6cc62c6 33959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33960
33961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33962
e6cc62c6
VS
33963 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33964echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33965LN_S=$as_ln_s
33966if test "$LN_S" = "ln -s"; then
33967 echo "$as_me:$LINENO: result: yes" >&5
33968echo "${ECHO_T}yes" >&6
fe0895cf 33969else
e6cc62c6
VS
33970 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33971echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33972fi
33973
33974
e6cc62c6
VS
33975 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33976echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33977set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33978if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33979 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33980else
e6cc62c6 33981 cat >conftest.make <<\_ACEOF
fe0895cf 33982all:
e6cc62c6
VS
33983 @echo 'ac_maketemp="$(MAKE)"'
33984_ACEOF
fe0895cf 33985# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33986eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33987if test -n "$ac_maketemp"; then
33988 eval ac_cv_prog_make_${ac_make}_set=yes
33989else
33990 eval ac_cv_prog_make_${ac_make}_set=no
33991fi
e6cc62c6 33992rm -f conftest.make
fe0895cf
VS
33993fi
33994if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33995 echo "$as_me:$LINENO: result: yes" >&5
33996echo "${ECHO_T}yes" >&6
fe0895cf
VS
33997 SET_MAKE=
33998else
e6cc62c6
VS
33999 echo "$as_me:$LINENO: result: no" >&5
34000echo "${ECHO_T}no" >&6
fe0895cf
VS
34001 SET_MAKE="MAKE=${MAKE-make}"
34002fi
34003
e6cc62c6
VS
34004
34005
fe0895cf
VS
34006 if test "$build" != "$host" ; then
34007 AR=$host_alias-ar
34008 STRIP=$host_alias-strip
34009 else
34010 # Extract the first word of "ar", so it can be a program name with args.
34011set dummy ar; ac_word=$2
e6cc62c6
VS
34012echo "$as_me:$LINENO: checking for $ac_word" >&5
34013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34014if test "${ac_cv_prog_AR+set}" = set; then
34015 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34016else
34017 if test -n "$AR"; then
34018 ac_cv_prog_AR="$AR" # Let the user override the test.
34019else
e6cc62c6
VS
34020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34021for as_dir in $PATH
34022do
34023 IFS=$as_save_IFS
34024 test -z "$as_dir" && as_dir=.
34025 for ac_exec_ext in '' $ac_executable_extensions; do
34026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34027 ac_cv_prog_AR="ar"
34028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34029 break 2
34030 fi
34031done
34032done
34033
fe0895cf
VS
34034 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34035fi
34036fi
e6cc62c6 34037AR=$ac_cv_prog_AR
fe0895cf 34038if test -n "$AR"; then
e6cc62c6
VS
34039 echo "$as_me:$LINENO: result: $AR" >&5
34040echo "${ECHO_T}$AR" >&6
fe0895cf 34041else
e6cc62c6
VS
34042 echo "$as_me:$LINENO: result: no" >&5
34043echo "${ECHO_T}no" >&6
fe0895cf
VS
34044fi
34045
34046 # Extract the first word of "strip", so it can be a program name with args.
34047set dummy strip; ac_word=$2
e6cc62c6
VS
34048echo "$as_me:$LINENO: checking for $ac_word" >&5
34049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34050if test "${ac_cv_prog_STRIP+set}" = set; then
34051 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34052else
34053 if test -n "$STRIP"; then
34054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34055else
e6cc62c6
VS
34056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34057for as_dir in $PATH
34058do
34059 IFS=$as_save_IFS
34060 test -z "$as_dir" && as_dir=.
34061 for ac_exec_ext in '' $ac_executable_extensions; do
34062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34063 ac_cv_prog_STRIP="strip"
34064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34065 break 2
34066 fi
34067done
34068done
34069
fe0895cf
VS
34070 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34071fi
34072fi
e6cc62c6 34073STRIP=$ac_cv_prog_STRIP
fe0895cf 34074if test -n "$STRIP"; then
e6cc62c6
VS
34075 echo "$as_me:$LINENO: result: $STRIP" >&5
34076echo "${ECHO_T}$STRIP" >&6
fe0895cf 34077else
e6cc62c6
VS
34078 echo "$as_me:$LINENO: result: no" >&5
34079echo "${ECHO_T}no" >&6
fe0895cf
VS
34080fi
34081
34082 fi
34083
34084 case ${host} in
34085 *-hp-hpux* )
34086 INSTALL_DIR="mkdir"
34087 ;;
34088 *) INSTALL_DIR="$INSTALL -d"
34089 ;;
34090 esac
e6cc62c6 34091
fe0895cf 34092
6b9d41a5
VS
34093 LDFLAGS_GUI=
34094 case ${host} in
34095 *-*-cygwin* | *-*-mingw32* )
34096 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34097 esac
34098
34099
fe0895cf 34100 fi
e6cc62c6
VS
34101
34102 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34103echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34104if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34105 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34106else
e6cc62c6 34107
fe0895cf
VS
34108 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34109 egrep -s GNU > /dev/null); then
34110 bakefile_cv_prog_makeisgnu="yes"
34111 else
34112 bakefile_cv_prog_makeisgnu="no"
34113 fi
fe0895cf 34114
e6cc62c6 34115fi
49b0a3aa
VS
34116echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34117echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34118
34119 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34120 IF_GNU_MAKE=""
34121 else
34122 IF_GNU_MAKE="#"
34123 fi
fe0895cf 34124
e6cc62c6
VS
34125
34126
fe0895cf
VS
34127 PLATFORM_UNIX=0
34128 PLATFORM_WIN32=0
34129 PLATFORM_MSDOS=0
34130 PLATFORM_MAC=0
34131 PLATFORM_MACOSX=0
e6cc62c6 34132
fe0895cf
VS
34133 case "${host}" in
34134 *-*-cygwin* | *-*-mingw32* )
34135 PLATFORM_WIN32=1
34136 ;;
34137 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34138 PLATFORM_MSDOS=1
34139 ;;
34140 powerpc-*-darwin* )
34141 PLATFORM_MAC=1
34142 PLATFORM_MACOSX=1
34143 ;;
34144 * )
34145 PLATFORM_UNIX=1
34146 ;;
34147 esac
34148
fe0895cf 34149
e6cc62c6
VS
34150
34151
34152
34153
34154
34155
fe0895cf
VS
34156 SO_SUFFIX="so"
34157 EXEEXT=""
34158 DLLPREFIX=lib
e6cc62c6 34159
fe0895cf
VS
34160 case "${host}" in
34161 *-hp-hpux* )
34162 SO_SUFFIX="sl"
34163 ;;
34164 *-*-aix* )
34165 SO_SUFFIX="a"
34166 ;;
34167 *-*-cygwin* | *-*-mingw32* )
34168 SO_SUFFIX="dll"
34169 EXEEXT=".exe"
34170 DLLPREFIX=""
34171 ;;
34172 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34173 EXEEXT=".exe"
34174 DLLPREFIX=""
34175 ;;
34176 powerpc-*-darwin* )
34177 SO_SUFFIX="dylib"
34178 ;;
34179 esac
34180
fe0895cf 34181
e6cc62c6
VS
34182
34183
34184
34185
fe0895cf
VS
34186 SHARED_LD_CC="\$(CC) -shared -o"
34187 SHARED_LD_CXX="\$(CXX) -shared -o"
34188
34189 if test "x$GCC" = "xyes"; then
34190 PIC_FLAG="-fPIC"
34191 fi
34192
34193 case "${host}" in
34194 *-hp-hpux* )
34195 if test "x$GCC" = "xyes"; then
34196 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34197 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34198 else
34199 LDFLAGS="$LDFLAGS -L/usr/lib"
34200
34201 SHARED_LD_CC="${CC} -b -o"
34202 SHARED_LD_CXX="${CXX} -b -o"
34203 PIC_FLAG="+Z"
34204 fi
34205 ;;
34206
34207 *-*-linux* )
34208 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34209 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34210echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34211if test "${bakefile_cv_prog_icc+set}" = set; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34213else
fe0895cf 34214
e6cc62c6
VS
34215 cat >conftest.$ac_ext <<_ACEOF
34216#line $LINENO "configure"
34217/* confdefs.h. */
34218_ACEOF
34219cat confdefs.h >>conftest.$ac_ext
34220cat >>conftest.$ac_ext <<_ACEOF
34221/* end confdefs.h. */
34222
34223int
34224main ()
34225{
fe0895cf
VS
34226
34227 #ifndef __INTEL_COMPILER
34228 #error Not icc
34229 #endif
e6cc62c6
VS
34230
34231 ;
34232 return 0;
34233}
34234_ACEOF
34235rm -f conftest.$ac_objext
34236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34237 (eval $ac_compile) 2>&5
34238 ac_status=$?
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); } &&
34241 { ac_try='test -s conftest.$ac_objext'
34242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34243 (eval $ac_try) 2>&5
34244 ac_status=$?
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); }; }; then
fe0895cf
VS
34247 bakefile_cv_prog_icc=yes
34248else
e6cc62c6
VS
34249 echo "$as_me: failed program was:" >&5
34250sed 's/^/| /' conftest.$ac_ext >&5
34251
34252bakefile_cv_prog_icc=no
34253
fe0895cf 34254fi
e6cc62c6 34255rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34256
e6cc62c6
VS
34257fi
34258echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34259echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34260 if test "$bakefile_cv_prog_icc" = "yes"; then
34261 PIC_FLAG="-KPIC"
34262 fi
34263 fi
34264 ;;
34265
34266 *-*-solaris2* )
34267 if test "x$GCC" != xyes ; then
34268 SHARED_LD_CC="${CC} -G -o"
34269 SHARED_LD_CXX="${CXX} -G -o"
34270 PIC_FLAG="-KPIC"
34271 fi
34272 ;;
34273
34274 *-*-darwin* )
34275 CFLAGS="$CFLAGS -fno-common"
34276 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34277
34278
fe0895cf
VS
34279 cat <<EOF >shared-ld-sh
34280#!/bin/sh
34281#-----------------------------------------------------------------------------
34282#-- Name: distrib/mac/shared-ld-sh
34283#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34284#-- Author: Gilles Depeyrot
34285#-- Copyright: (c) 2002 Gilles Depeyrot
34286#-- Licence: any use permitted
34287#-----------------------------------------------------------------------------
34288
34289verbose=0
34290args=""
34291objects=""
34292
34293while test \${#} -gt 0; do
34294 case \${1} in
34295
34296 -v)
34297 verbose=1
34298 ;;
34299
34300 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34301 # collect these options and values
34302 args="\${args} \${1} \${2}"
34303 shift
34304 ;;
34305
34306 -l*|-L*|-flat_namespace)
34307 # collect these options
34308 args="\${args} \${1}"
34309 ;;
34310
34311 -dynamiclib)
34312 # skip these options
34313 ;;
34314
34315 -*)
34316 echo "shared-ld: unhandled option '\${1}'"
34317 exit 1
34318 ;;
34319
4d264332 34320 *.o | *.a | *.dylib)
fe0895cf
VS
34321 # collect object files
34322 objects="\${objects} \${1}"
34323 ;;
34324
34325 *)
34326 echo "shared-ld: unhandled argument '\${1}'"
34327 exit 1
34328 ;;
34329
34330 esac
34331 shift
34332done
34333
34334#
34335# Link one module containing all the others
34336#
34337if test \${verbose} = 1; then
34338 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34339fi
34340c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34341status=\$?
34342if test \${status} != 0; then
34343 exit \${status}
34344fi
34345
34346#
34347# Link the shared library from the single module created
34348#
34349if test \${verbose} = 1; then
34350 echo "cc -dynamiclib master.\$\$.o \${args}"
34351fi
34352c++ -dynamiclib master.\$\$.o \${args}
34353status=\$?
34354if test \${status} != 0; then
34355 exit \${status}
34356fi
34357
34358#
34359# Remove intermediate module
34360#
34361rm -f master.\$\$.o
34362
34363exit 0
34364EOF
34365 chmod +x shared-ld-sh
34366
34367 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34368 SHARED_LD_CXX="$SHARED_LD_CC"
34369 PIC_FLAG="-dynamic -fPIC"
34370 ;;
34371
34372 *-*-aix* )
34373 if test "x$GCC" != "xyes"; then
34374 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34375set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34376echo "$as_me:$LINENO: checking for $ac_word" >&5
34377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34378if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34380else
34381 if test -n "$AIX_CXX_LD"; then
34382 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34383else
e6cc62c6
VS
34384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34385for as_dir in $PATH
34386do
34387 IFS=$as_save_IFS
34388 test -z "$as_dir" && as_dir=.
34389 for ac_exec_ext in '' $ac_executable_extensions; do
34390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34391 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34393 break 2
34394 fi
34395done
34396done
34397
fe0895cf
VS
34398 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34399fi
34400fi
e6cc62c6 34401AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34402if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34403 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34404echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34405else
e6cc62c6
VS
34406 echo "$as_me:$LINENO: result: no" >&5
34407echo "${ECHO_T}no" >&6
fe0895cf
VS
34408fi
34409
34410 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34411 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34412 fi
34413 ;;
34414
34415 *-*-beos* )
34416 SHARED_LD_CC="${LD} -shared -o"
34417 SHARED_LD_CXX="${LD} -shared -o"
34418 ;;
34419
34420 *-*-irix* )
34421 if test "x$GCC" != "xyes"; then
34422 PIC_FLAG="-KPIC"
34423 fi
34424 ;;
e6cc62c6 34425
fe0895cf
VS
34426 *-*-cygwin* | *-*-mingw32* )
34427 PIC_FLAG=""
34428 ;;
e6cc62c6 34429
fe0895cf
VS
34430 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34431 *-*-sunos4* | \
34432 *-*-osf* | \
34433 *-*-dgux5* | \
34434 *-*-sysv5* )
34435 ;;
34436
34437 *)
e6cc62c6
VS
34438 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34439echo "$as_me: error: unknown system type $host." >&2;}
34440 { (exit 1); exit 1; }; }
fe0895cf
VS
34441 esac
34442
fe0895cf 34443
e6cc62c6
VS
34444
34445
34446
34447
fe0895cf
VS
34448 USE_SOVERSION=0
34449 USE_SOVERLINUX=0
34450 USE_SOVERSOLARIS=0
34451 USE_SOSYMLINKS=0
34452 USE_MACVERSION=0
34453 SONAME_FLAG=
34454
34455 case "${host}" in
34456 *-*-linux* )
34457 SONAME_FLAG="-Wl,-soname,"
34458 USE_SOVERSION=1
34459 USE_SOVERLINUX=1
34460 USE_SOSYMLINKS=1
34461 ;;
34462
34463 *-*-solaris2* )
34464 SONAME_FLAG="-h "
34465 USE_SOVERSION=1
34466 USE_SOVERSOLARIS=1
34467 USE_SOSYMLINKS=1
34468 ;;
34469
34470 *-*-darwin* )
34471 USE_MACVERSION=1
34472 USE_SOVERSION=1
34473 USE_SOSYMLINKS=1
e6cc62c6 34474 ;;
fe0895cf
VS
34475 esac
34476
fe0895cf 34477
e6cc62c6
VS
34478
34479
34480
34481
34482
34483
34484
49b0a3aa
VS
34485 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34486echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34487 DEPS_TRACKING=0
34488
fe0895cf 34489 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34490 DEPSMODE=gcc
34491 DEPS_TRACKING=1
3e5c3c83
VS
34492 case "${host}" in
34493 powerpc-*-darwin* )
34494 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34495 ;;
34496 * )
34497 DEPSFLAG_GCC="-MMD"
34498 ;;
34499 esac
49b0a3aa
VS
34500 echo "$as_me:$LINENO: result: gcc" >&5
34501echo "${ECHO_T}gcc" >&6
34502 else
34503 echo "$as_me:$LINENO: result: none" >&5
34504echo "${ECHO_T}none" >&6
34505 fi
34506
34507 if test $DEPS_TRACKING = 1 ; then
34508 cat <<EOF >bk-deps
34509#!/bin/sh
34510
34511# This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
34512# It is used to track C/C++ files dependencies in portable way.
34513#
34514# Permission is given to use this file in any way.
34515
34516DEPSMODE=$DEPSMODE
34517DEPSDIR=.deps
3e5c3c83 34518DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34519
34520mkdir -p \$DEPSDIR
34521
34522if test \$DEPSMODE = gcc ; then
3e5c3c83 34523 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34524 status=\${?}
34525 if test \${status} != 0 ; then
34526 exit \${status}
34527 fi
34528 # move created file to the location we want it in:
34529 while test \${#} -gt 0; do
34530 case "\${1}" in
34531 -o )
34532 shift
34533 objfile=\${1}
34534 ;;
34535 -* )
34536 ;;
34537 * )
34538 srcfile=\${1}
34539 ;;
34540 esac
34541 shift
34542 done
34543 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34544 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34545 if test -f \$depfile ; then
34546 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34547 rm -f \$depfile
34548 else
34549 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34550 if test -f \$depfile ; then
4c8b7f4b 34551 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34552 rm -f \$depfile
34553 fi
34554 fi
49b0a3aa
VS
34555 exit 0
34556else
34557 \${*}
34558 exit \${?}
34559fi
34560EOF
34561 chmod +x bk-deps
fe0895cf 34562 fi
fe0895cf 34563
e6cc62c6
VS
34564
34565
34566
fe0895cf
VS
34567 RESCOMP=
34568 SETFILE=
34569
e6cc62c6 34570 case ${host} in
fe0895cf
VS
34571 *-*-cygwin* | *-*-mingw32* )
34572 if test "$build" != "$host" ; then
34573 RESCOMP=$host_alias-windres
34574 else
34575 # Extract the first word of "windres", so it can be a program name with args.
34576set dummy windres; ac_word=$2
e6cc62c6
VS
34577echo "$as_me:$LINENO: checking for $ac_word" >&5
34578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34579if test "${ac_cv_prog_RESCOMP+set}" = set; then
34580 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34581else
34582 if test -n "$RESCOMP"; then
34583 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34584else
e6cc62c6
VS
34585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34586for as_dir in $PATH
34587do
34588 IFS=$as_save_IFS
34589 test -z "$as_dir" && as_dir=.
34590 for ac_exec_ext in '' $ac_executable_extensions; do
34591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34592 ac_cv_prog_RESCOMP="windres"
34593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34594 break 2
34595 fi
34596done
34597done
34598
fe0895cf
VS
34599 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34600fi
34601fi
e6cc62c6 34602RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34603if test -n "$RESCOMP"; then
e6cc62c6
VS
34604 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34605echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34606else
e6cc62c6
VS
34607 echo "$as_me:$LINENO: result: no" >&5
34608echo "${ECHO_T}no" >&6
fe0895cf
VS
34609fi
34610
34611 fi
34612 ;;
e6cc62c6 34613
fe0895cf
VS
34614 *-*-darwin* )
34615 # Extract the first word of "Rez", so it can be a program name with args.
34616set dummy Rez; ac_word=$2
e6cc62c6
VS
34617echo "$as_me:$LINENO: checking for $ac_word" >&5
34618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34619if test "${ac_cv_prog_RESCOMP+set}" = set; then
34620 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34621else
34622 if test -n "$RESCOMP"; then
34623 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34624else
e6cc62c6
VS
34625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34626for as_dir in $PATH
34627do
34628 IFS=$as_save_IFS
34629 test -z "$as_dir" && as_dir=.
34630 for ac_exec_ext in '' $ac_executable_extensions; do
34631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34632 ac_cv_prog_RESCOMP="Rez"
34633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34634 break 2
34635 fi
34636done
34637done
34638
fe0895cf
VS
34639 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34640fi
34641fi
e6cc62c6 34642RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34643if test -n "$RESCOMP"; then
e6cc62c6
VS
34644 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34645echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34646else
e6cc62c6
VS
34647 echo "$as_me:$LINENO: result: no" >&5
34648echo "${ECHO_T}no" >&6
fe0895cf
VS
34649fi
34650
34651 # Extract the first word of "SetFile", so it can be a program name with args.
34652set dummy SetFile; ac_word=$2
e6cc62c6
VS
34653echo "$as_me:$LINENO: checking for $ac_word" >&5
34654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34655if test "${ac_cv_prog_SETFILE+set}" = set; then
34656 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34657else
34658 if test -n "$SETFILE"; then
34659 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34660else
e6cc62c6
VS
34661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34662for as_dir in $PATH
34663do
34664 IFS=$as_save_IFS
34665 test -z "$as_dir" && as_dir=.
34666 for ac_exec_ext in '' $ac_executable_extensions; do
34667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34668 ac_cv_prog_SETFILE="SetFile"
34669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34670 break 2
34671 fi
34672done
34673done
34674
fe0895cf
VS
34675 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34676fi
34677fi
e6cc62c6 34678SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34679if test -n "$SETFILE"; then
e6cc62c6
VS
34680 echo "$as_me:$LINENO: result: $SETFILE" >&5
34681echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34682else
e6cc62c6
VS
34683 echo "$as_me:$LINENO: result: no" >&5
34684echo "${ECHO_T}no" >&6
fe0895cf
VS
34685fi
34686
34687 ;;
34688 esac
34689
fe0895cf
VS
34690
34691
e6cc62c6
VS
34692
34693
34694
34695
d78c94f2 34696 COND_BUILD_DEBUG="#"
6f628073 34697 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34698 COND_BUILD_DEBUG=""
6f628073
VS
34699 fi
34700
d78c94f2 34701 COND_BUILD_RELEASE="#"
6f628073 34702 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34703 COND_BUILD_RELEASE=""
6b9d41a5
VS
34704 fi
34705
f95cd8fa
VS
34706 COND_DEPS_TRACKING_0="#"
34707 if test "x$DEPS_TRACKING" = "x0" ; then
34708 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34709 fi
34710
8ee2dd05
VS
34711 COND_DEPS_TRACKING_1="#"
34712 if test "x$DEPS_TRACKING" = "x1" ; then
34713 COND_DEPS_TRACKING_1=""
34714 fi
34715
6f628073
VS
34716 COND_MONOLITHIC_0="#"
34717 if test "x$MONOLITHIC" = "x0" ; then
34718 COND_MONOLITHIC_0=""
6b9d41a5
VS
34719 fi
34720
6f628073
VS
34721 COND_MONOLITHIC_0_SHARED_0="#"
34722 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34723 COND_MONOLITHIC_0_SHARED_0=""
34724 fi
34725
34726 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34727 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34728 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 34729 fi
e6cc62c6 34730
250700e4
RD
34731 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34732 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34733 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34734 fi
34735
8ee2dd05
VS
34736 COND_MONOLITHIC_0_SHARED_1="#"
34737 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34738 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34739 fi
e6cc62c6 34740
6f628073
VS
34741 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34742 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34743 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34744 fi
34745
250700e4
RD
34746 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34747 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34748 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34749 fi
34750
3af038c0
VS
34751 COND_MONOLITHIC_1="#"
34752 if test "x$MONOLITHIC" = "x1" ; then
34753 COND_MONOLITHIC_1=""
34754 fi
34755
6f628073
VS
34756 COND_MONOLITHIC_1_SHARED_0="#"
34757 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34758 COND_MONOLITHIC_1_SHARED_0=""
34759 fi
34760
34761 COND_MONOLITHIC_1_SHARED_1="#"
34762 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34763 COND_MONOLITHIC_1_SHARED_1=""
34764 fi
34765
3af038c0
VS
34766 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34767 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34768 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34769 fi
34770
34771 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34772 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34773 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34774 fi
34775
6f628073
VS
34776 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34777 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34778 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34779 fi
34780
3af038c0
VS
34781 COND_PLATFORM_MACOSX_1="#"
34782 if test "x$PLATFORM_MACOSX" = "x1" ; then
34783 COND_PLATFORM_MACOSX_1=""
34784 fi
34785
250700e4
RD
34786 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34787 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34788 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34789 fi
34790
34791 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34792 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34793 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34794 fi
34795
34796 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34797 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34798 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34799 fi
34800
8ee2dd05
VS
34801 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34802 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34803 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34804 fi
34805
3af038c0
VS
34806 COND_PLATFORM_UNIX_1="#"
34807 if test "x$PLATFORM_UNIX" = "x1" ; then
34808 COND_PLATFORM_UNIX_1=""
34809 fi
34810
34811 COND_PLATFORM_WIN32_0="#"
34812 if test "x$PLATFORM_WIN32" = "x0" ; then
34813 COND_PLATFORM_WIN32_0=""
34814 fi
34815
34816 COND_PLATFORM_WIN32_1="#"
34817 if test "x$PLATFORM_WIN32" = "x1" ; then
34818 COND_PLATFORM_WIN32_1=""
34819 fi
34820
250700e4
RD
34821 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
34822 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34823 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
34824 fi
34825
34826 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
34827 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34828 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
34829 fi
34830
6f628073
VS
34831 COND_TOOLKIT_COCOA="#"
34832 if test "x$TOOLKIT" = "xCOCOA" ; then
34833 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
34834 fi
34835
6f628073
VS
34836 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
34837 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34838 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34839 fi
34840
6f628073
VS
34841 COND_TOOLKIT_GTK="#"
34842 if test "x$TOOLKIT" = "xGTK" ; then
34843 COND_TOOLKIT_GTK=""
f95cd8fa
VS
34844 fi
34845
6f628073
VS
34846 COND_TOOLKIT_GTK_USE_GUI_1="#"
34847 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
34848 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
34849 fi
34850
6f628073
VS
34851 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
34852 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34853 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34854 fi
34855
6f628073
VS
34856 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#"
34857 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34858 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34859 fi
34860
3af038c0
VS
34861 COND_TOOLKIT_MAC="#"
34862 if test "x$TOOLKIT" = "xMAC" ; then
34863 COND_TOOLKIT_MAC=""
34864 fi
34865
6f628073
VS
34866 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
34867 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34868 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34869 fi
34870
6f628073
VS
34871 COND_TOOLKIT_MGL="#"
34872 if test "x$TOOLKIT" = "xMGL" ; then
34873 COND_TOOLKIT_MGL=""
8ee2dd05
VS
34874 fi
34875
6f628073
VS
34876 COND_TOOLKIT_MGL_USE_GUI_1="#"
34877 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
34878 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
34879 fi
34880
6f628073
VS
34881 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#"
34882 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34883 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34884 fi
34885
6f628073
VS
34886 COND_TOOLKIT_MOTIF="#"
34887 if test "x$TOOLKIT" = "xMOTIF" ; then
34888 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
34889 fi
34890
6f628073
VS
34891 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
34892 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
34893 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 34894 fi
e6cc62c6 34895
6f628073
VS
34896 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
34897 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34898 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34899 fi
34900
6f628073
VS
34901 COND_TOOLKIT_MSW="#"
34902 if test "x$TOOLKIT" = "xMSW" ; then
34903 COND_TOOLKIT_MSW=""
8ee2dd05
VS
34904 fi
34905
6f628073
VS
34906 COND_TOOLKIT_MSW_USE_GUI_1="#"
34907 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
34908 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 34909 fi
e6cc62c6 34910
6f628073
VS
34911 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
34912 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34913 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 34914 fi
e6cc62c6 34915
6f628073
VS
34916 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#"
34917 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34918 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34919 fi
34920
6f628073
VS
34921 COND_TOOLKIT_OS2="#"
34922 if test "x$TOOLKIT" = "xOS2" ; then
34923 COND_TOOLKIT_OS2=""
9747f85d
VS
34924 fi
34925
6f628073
VS
34926 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
34927 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34928 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
34929 fi
34930
6f628073
VS
34931 COND_TOOLKIT_X11="#"
34932 if test "x$TOOLKIT" = "xX11" ; then
34933 COND_TOOLKIT_X11=""
9747f85d
VS
34934 fi
34935
6f628073
VS
34936 COND_TOOLKIT_X11_USE_GUI_1="#"
34937 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
34938 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
34939 fi
34940
8ee2dd05
VS
34941 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#"
34942 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34943 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34944 fi
34945
3af038c0
VS
34946 COND_UNICODE_1="#"
34947 if test "x$UNICODE" = "x1" ; then
34948 COND_UNICODE_1=""
34949 fi
34950
34951 COND_USE_GUI_0="#"
34952 if test "x$USE_GUI" = "x0" ; then
34953 COND_USE_GUI_0=""
34954 fi
34955
34956 COND_USE_GUI_1="#"
34957 if test "x$USE_GUI" = "x1" ; then
34958 COND_USE_GUI_1=""
34959 fi
34960
e6cc62c6 34961 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
34962 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34963 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 34964 fi
e6cc62c6
VS
34965
34966 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
34967 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34968 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
34969 fi
34970
66a96744
VS
34971 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
34972 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34973 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
34974 fi
34975
34976 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
34977 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34978 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
34979 fi
34980
34981 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
34982 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34983 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
34984 fi
34985
6f628073
VS
34986 COND_USE_SOSYMLINKS_1="#"
34987 if test "x$USE_SOSYMLINKS" = "x1" ; then
34988 COND_USE_SOSYMLINKS_1=""
b625909c
VS
34989 fi
34990
6f628073
VS
34991 COND_USE_SOVERLINUX_1="#"
34992 if test "x$USE_SOVERLINUX" = "x1" ; then
34993 COND_USE_SOVERLINUX_1=""
b625909c
VS
34994 fi
34995
6f628073
VS
34996 COND_USE_SOVERSION_0="#"
34997 if test "x$USE_SOVERSION" = "x0" ; then
34998 COND_USE_SOVERSION_0=""
fddeb06b 34999 fi
fe0895cf 35000
6f628073
VS
35001 COND_USE_SOVERSOLARIS_1="#"
35002 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35003 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35004 fi
fe0895cf 35005
3af038c0
VS
35006 COND_WXUNIV_1="#"
35007 if test "x$WXUNIV" = "x1" ; then
35008 COND_WXUNIV_1=""
35009 fi
35010
66a96744
VS
35011 COND_WXUSE_EXPAT_BUILTIN="#"
35012 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35013 COND_WXUSE_EXPAT_BUILTIN=""
35014 fi
35015
02980527
VS
35016 COND_WXUSE_LIBJPEG_BUILTIN="#"
35017 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35018 COND_WXUSE_LIBJPEG_BUILTIN=""
35019 fi
35020
35021 COND_WXUSE_LIBPNG_BUILTIN="#"
35022 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35023 COND_WXUSE_LIBPNG_BUILTIN=""
35024 fi
35025
35026 COND_WXUSE_LIBTIFF_BUILTIN="#"
35027 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35028 COND_WXUSE_LIBTIFF_BUILTIN=""
35029 fi
35030
35031 COND_WXUSE_ODBC_BUILTIN="#"
35032 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35033 COND_WXUSE_ODBC_BUILTIN=""
35034 fi
35035
35036 COND_WXUSE_REGEX_BUILTIN="#"
35037 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35038 COND_WXUSE_REGEX_BUILTIN=""
35039 fi
35040
35041 COND_WXUSE_ZLIB_BUILTIN="#"
35042 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35043 COND_WXUSE_ZLIB_BUILTIN=""
35044 fi
35045
1772d20c
VZ
35046 COND_PLATFORM_MAC_1="#"
35047 if test "x$PLATFORM_MAC" = "x1" ; then
35048 COND_PLATFORM_MAC_1=""
35049 fi
35050
35051 COND_SHARED_1="#"
35052 if test "x$SHARED" = "x1" ; then
35053 COND_SHARED_1=""
35054 fi
35055
35056 COND_SHARED_0="#"
35057 if test "x$SHARED" = "x0" ; then
35058 COND_SHARED_0=""
35059 fi
35060
fe0895cf 35061
fe0895cf 35062
fe0895cf 35063
fe0895cf
VS
35064
35065
fddeb06b 35066SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
fe0895cf 35161
f0290fca
VS
35162
35163
e6cc62c6
VS
35164
35165
35166
35167echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35168echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35169set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35170if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35171 echo $ECHO_N "(cached) $ECHO_C" >&6
35172else
35173 cat >conftest.make <<\_ACEOF
35174all:
35175 @echo 'ac_maketemp="$(MAKE)"'
35176_ACEOF
35177# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35178eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35179if test -n "$ac_maketemp"; then
35180 eval ac_cv_prog_make_${ac_make}_set=yes
35181else
35182 eval ac_cv_prog_make_${ac_make}_set=no
35183fi
35184rm -f conftest.make
35185fi
35186if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35187 echo "$as_me:$LINENO: result: yes" >&5
35188echo "${ECHO_T}yes" >&6
35189 SET_MAKE=
35190else
35191 echo "$as_me:$LINENO: result: no" >&5
35192echo "${ECHO_T}no" >&6
35193 SET_MAKE="MAKE=${MAKE-make}"
35194fi
35195
35196
35197if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35198 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35199fi
35200
35201 ac_config_headers="$ac_config_headers setup.h"
35202
35203
81345eef 35204 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35205
35206
35207 ac_config_commands="$ac_config_commands default"
35208
35209
9de9b8f0 35210
6c3e36af
VZ
35211if test "$wxUSE_GUI" = "yes"; then
35212 SUBDIRS="samples demos utils contrib"
35213else SUBDIRS="samples utils"
35214fi
e6cc62c6 35215
166263e6 35216for subdir in `echo $SUBDIRS`; do
9747f85d 35217 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35218 if test "$wxUSE_GUI" = "yes"; then
166263e6
VZ
35219 if test ${subdir} = "samples"; then
35220 for sample in `echo $SAMPLES_SUBDIRS`; do
35221 if test -d $srcdir/samples/$sample; then
35222 makefiles="samples/$sample/Makefile.in $makefiles"
35223 fi
35224 done
35225 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35226 fi
6c3e36af
VZ
35227 else if test ${subdir} = "samples"; then
35228 makefiles="samples/console/Makefile.in"
35229 else makefiles="utils/HelpGen/Makefile.in \
35230 utils/HelpGen/src/Makefile.in \
35231 utils/makegen/Makefile.in"
35232 fi
35233 fi
35234
9747f85d
VS
35235 for mkin in $makefiles ; do
35236 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35237 ac_config_files="$ac_config_files $mk"
e6cc62c6 35238
9747f85d
VS
35239 done
35240 fi
35241done
e6cc62c6 35242
9de9b8f0 35243
e6cc62c6
VS
35244cat >confcache <<\_ACEOF
35245# This file is a shell script that caches the results of configure
35246# tests run on this system so they can be shared between configure
35247# scripts and configure runs, see configure's option --config-cache.
35248# It is not useful on other systems. If it contains results you don't
35249# want to keep, you may remove or edit it.
35250#
35251# config.status only pays attention to the cache file if you give it
35252# the --recheck option to rerun configure.
35253#
35254# `ac_cv_env_foo' variables (set or unset) will be overridden when
35255# loading this file, other *unset* `ac_cv_foo' will be assigned the
35256# following values.
35257
35258_ACEOF
35259
35260# The following way of writing the cache mishandles newlines in values,
35261# but we know of no workaround that is simple, portable, and efficient.
35262# So, don't put newlines in cache variables' values.
35263# Ultrix sh set writes to stderr and can't be redirected directly,
35264# and sets the high bit in the cache file unless we assign to the vars.
35265{
35266 (set) 2>&1 |
35267 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35268 *ac_space=\ *)
35269 # `set' does not quote correctly, so add quotes (double-quote
35270 # substitution turns \\\\ into \\, and sed turns \\ into \).
35271 sed -n \
35272 "s/'/'\\\\''/g;
35273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35274 ;;
35275 *)
35276 # `set' quotes correctly as required by POSIX, so do not add quotes.
35277 sed -n \
35278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35279 ;;
35280 esac;
35281} |
35282 sed '
35283 t clear
35284 : clear
35285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35286 t end
35287 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35288 : end' >>confcache
35289if diff $cache_file confcache >/dev/null 2>&1; then :; else
35290 if test -w $cache_file; then
35291 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35292 cat confcache >$cache_file
35293 else
35294 echo "not updating unwritable cache $cache_file"
35295 fi
35296fi
35297rm -f confcache
35298
35299test "x$prefix" = xNONE && prefix=$ac_default_prefix
35300# Let make expand exec_prefix.
35301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35302
35303# VPATH may cause trouble with some makes, so we remove $(srcdir),
35304# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35305# trailing colons and then remove the whole line if VPATH becomes empty
35306# (actually we leave an empty line to preserve line numbers).
35307if test "x$srcdir" = x.; then
35308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35309s/:*\$(srcdir):*/:/;
35310s/:*\${srcdir}:*/:/;
35311s/:*@srcdir@:*/:/;
35312s/^\([^=]*=[ ]*\):*/\1/;
35313s/:*$//;
35314s/^[^=]*=[ ]*$//;
35315}'
35316fi
35317
35318DEFS=-DHAVE_CONFIG_H
35319
35320ac_libobjs=
35321ac_ltlibobjs=
35322for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35323 # 1. Remove the extension, and $U if already installed.
35324 ac_i=`echo "$ac_i" |
35325 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35326 # 2. Add them.
35327 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35328 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35329done
35330LIBOBJS=$ac_libobjs
35331
35332LTLIBOBJS=$ac_ltlibobjs
35333
35334
35335
35336: ${CONFIG_STATUS=./config.status}
35337ac_clean_files_save=$ac_clean_files
35338ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35339{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35340echo "$as_me: creating $CONFIG_STATUS" >&6;}
35341cat >$CONFIG_STATUS <<_ACEOF
35342#! $SHELL
35343# Generated by $as_me.
35344# Run this file to recreate the current configuration.
35345# Compiler output produced by configure, useful for debugging
35346# configure, is in config.log if it exists.
35347
35348debug=false
35349ac_cs_recheck=false
35350ac_cs_silent=false
35351SHELL=\${CONFIG_SHELL-$SHELL}
35352_ACEOF
35353
35354cat >>$CONFIG_STATUS <<\_ACEOF
35355## --------------------- ##
35356## M4sh Initialization. ##
35357## --------------------- ##
35358
35359# Be Bourne compatible
35360if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35361 emulate sh
35362 NULLCMD=:
35363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35364 # is contrary to our usage. Disable this feature.
35365 alias -g '${1+"$@"}'='"$@"'
35366elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35367 set -o posix
35368fi
35369
35370# Support unset when possible.
35371if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35372 as_unset=unset
35373else
35374 as_unset=false
35375fi
35376
35377
35378# Work around bugs in pre-3.0 UWIN ksh.
35379$as_unset ENV MAIL MAILPATH
35380PS1='$ '
35381PS2='> '
35382PS4='+ '
35383
35384# NLS nuisances.
35385for as_var in \
35386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35388 LC_TELEPHONE LC_TIME
35389do
35390 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35391 eval $as_var=C; export $as_var
35392 else
35393 $as_unset $as_var
35394 fi
35395done
35396
35397# Required to use basename.
35398if expr a : '\(a\)' >/dev/null 2>&1; then
35399 as_expr=expr
35400else
35401 as_expr=false
35402fi
35403
35404if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35405 as_basename=basename
35406else
35407 as_basename=false
35408fi
35409
35410
35411# Name of the executable.
35412as_me=`$as_basename "$0" ||
35413$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35414 X"$0" : 'X\(//\)$' \| \
35415 X"$0" : 'X\(/\)$' \| \
35416 . : '\(.\)' 2>/dev/null ||
35417echo X/"$0" |
35418 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35419 /^X\/\(\/\/\)$/{ s//\1/; q; }
35420 /^X\/\(\/\).*/{ s//\1/; q; }
35421 s/.*/./; q'`
35422
35423
35424# PATH needs CR, and LINENO needs CR and PATH.
35425# Avoid depending upon Character Ranges.
35426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35429as_cr_digits='0123456789'
35430as_cr_alnum=$as_cr_Letters$as_cr_digits
35431
35432# The user is always right.
35433if test "${PATH_SEPARATOR+set}" != set; then
35434 echo "#! /bin/sh" >conf$$.sh
35435 echo "exit 0" >>conf$$.sh
35436 chmod +x conf$$.sh
35437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35438 PATH_SEPARATOR=';'
35439 else
35440 PATH_SEPARATOR=:
35441 fi
35442 rm -f conf$$.sh
35443fi
35444
35445
35446 as_lineno_1=$LINENO
35447 as_lineno_2=$LINENO
35448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35449 test "x$as_lineno_1" != "x$as_lineno_2" &&
35450 test "x$as_lineno_3" = "x$as_lineno_2" || {
35451 # Find who we are. Look in the path if we contain no path at all
35452 # relative or not.
35453 case $0 in
35454 *[\\/]* ) as_myself=$0 ;;
35455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35456for as_dir in $PATH
35457do
35458 IFS=$as_save_IFS
35459 test -z "$as_dir" && as_dir=.
35460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35461done
35462
35463 ;;
35464 esac
35465 # We did not find ourselves, most probably we were run as `sh COMMAND'
35466 # in which case we are not to be found in the path.
35467 if test "x$as_myself" = x; then
35468 as_myself=$0
35469 fi
35470 if test ! -f "$as_myself"; then
35471 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35472echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35473 { (exit 1); exit 1; }; }
35474 fi
35475 case $CONFIG_SHELL in
35476 '')
35477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35478for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35479do
35480 IFS=$as_save_IFS
35481 test -z "$as_dir" && as_dir=.
35482 for as_base in sh bash ksh sh5; do
35483 case $as_dir in
35484 /*)
35485 if ("$as_dir/$as_base" -c '
35486 as_lineno_1=$LINENO
35487 as_lineno_2=$LINENO
35488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35489 test "x$as_lineno_1" != "x$as_lineno_2" &&
35490 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35491 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35492 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35493 CONFIG_SHELL=$as_dir/$as_base
35494 export CONFIG_SHELL
35495 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35496 fi;;
35497 esac
35498 done
35499done
35500;;
35501 esac
35502
35503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35504 # uniformly replaced by the line number. The first 'sed' inserts a
35505 # line-number line before each line; the second 'sed' does the real
35506 # work. The second script uses 'N' to pair each line-number line
35507 # with the numbered line, and appends trailing '-' during
35508 # substitution so that $LINENO is not a special case at line end.
35509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35510 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35511 sed '=' <$as_myself |
35512 sed '
35513 N
35514 s,$,-,
35515 : loop
35516 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35517 t loop
35518 s,-$,,
35519 s,^['$as_cr_digits']*\n,,
35520 ' >$as_me.lineno &&
35521 chmod +x $as_me.lineno ||
35522 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35523echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35524 { (exit 1); exit 1; }; }
35525
35526 # Don't try to exec as it changes $[0], causing all sort of problems
35527 # (the dirname of $[0] is not the place where we might find the
35528 # original and so on. Autoconf is especially sensible to this).
35529 . ./$as_me.lineno
35530 # Exit status is that of the last command.
35531 exit
35532}
35533
35534
35535case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35536 *c*,-n*) ECHO_N= ECHO_C='
35537' ECHO_T=' ' ;;
35538 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35539 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35540esac
35541
35542if expr a : '\(a\)' >/dev/null 2>&1; then
35543 as_expr=expr
35544else
35545 as_expr=false
35546fi
35547
35548rm -f conf$$ conf$$.exe conf$$.file
35549echo >conf$$.file
35550if ln -s conf$$.file conf$$ 2>/dev/null; then
35551 # We could just check for DJGPP; but this test a) works b) is more generic
35552 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35553 if test -f conf$$.exe; then
35554 # Don't use ln at all; we don't have any links
35555 as_ln_s='cp -p'
35556 else
35557 as_ln_s='ln -s'
35558 fi
35559elif ln conf$$.file conf$$ 2>/dev/null; then
35560 as_ln_s=ln
35561else
35562 as_ln_s='cp -p'
35563fi
35564rm -f conf$$ conf$$.exe conf$$.file
35565
35566if mkdir -p . 2>/dev/null; then
35567 as_mkdir_p=:
35568else
35569 as_mkdir_p=false
35570fi
35571
35572as_executable_p="test -f"
35573
35574# Sed expression to map a string onto a valid CPP name.
35575as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35576
35577# Sed expression to map a string onto a valid variable name.
35578as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35579
35580
35581# IFS
35582# We need space, tab and new line, in precisely that order.
35583as_nl='
35584'
35585IFS=" $as_nl"
35586
35587# CDPATH.
35588$as_unset CDPATH
35589
35590exec 6>&1
35591
35592# Open the log real soon, to keep \$[0] and so on meaningful, and to
35593# report actual input values of CONFIG_FILES etc. instead of their
35594# values after options handling. Logging --version etc. is OK.
35595exec 5>>config.log
35596{
35597 echo
35598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35599## Running $as_me. ##
35600_ASBOX
35601} >&5
35602cat >&5 <<_CSEOF
35603
35604This file was extended by wxWindows $as_me 2.5.0, which was
35605generated by GNU Autoconf 2.57. Invocation command line was
35606
35607 CONFIG_FILES = $CONFIG_FILES
35608 CONFIG_HEADERS = $CONFIG_HEADERS
35609 CONFIG_LINKS = $CONFIG_LINKS
35610 CONFIG_COMMANDS = $CONFIG_COMMANDS
35611 $ $0 $@
35612
35613_CSEOF
35614echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35615echo >&5
35616_ACEOF
35617
35618# Files that config.status was made for.
35619if test -n "$ac_config_files"; then
35620 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35621fi
35622
35623if test -n "$ac_config_headers"; then
35624 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35625fi
35626
35627if test -n "$ac_config_links"; then
35628 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35629fi
35630
35631if test -n "$ac_config_commands"; then
35632 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35633fi
35634
35635cat >>$CONFIG_STATUS <<\_ACEOF
35636
35637ac_cs_usage="\
35638\`$as_me' instantiates files from templates according to the
35639current configuration.
35640
35641Usage: $0 [OPTIONS] [FILE]...
35642
35643 -h, --help print this help, then exit
35644 -V, --version print version number, then exit
35645 -q, --quiet do not print progress messages
35646 -d, --debug don't remove temporary files
35647 --recheck update $as_me by reconfiguring in the same conditions
35648 --file=FILE[:TEMPLATE]
35649 instantiate the configuration file FILE
35650 --header=FILE[:TEMPLATE]
35651 instantiate the configuration header FILE
35652
35653Configuration files:
35654$config_files
35655
35656Configuration headers:
35657$config_headers
35658
35659Configuration commands:
35660$config_commands
35661
35662Report bugs to <bug-autoconf@gnu.org>."
35663_ACEOF
35664
35665cat >>$CONFIG_STATUS <<_ACEOF
35666ac_cs_version="\\
35667wxWindows config.status 2.5.0
35668configured by $0, generated by GNU Autoconf 2.57,
35669 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35670
35671Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35672Free Software Foundation, Inc.
35673This config.status script is free software; the Free Software Foundation
35674gives unlimited permission to copy, distribute and modify it."
35675srcdir=$srcdir
35676INSTALL="$INSTALL"
35677_ACEOF
35678
35679cat >>$CONFIG_STATUS <<\_ACEOF
35680# If no file are specified by the user, then we need to provide default
35681# value. By we need to know if files were specified by the user.
35682ac_need_defaults=:
35683while test $# != 0
35684do
35685 case $1 in
35686 --*=*)
35687 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35688 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35689 ac_shift=:
35690 ;;
35691 -*)
35692 ac_option=$1
35693 ac_optarg=$2
35694 ac_shift=shift
35695 ;;
35696 *) # This is not an option, so the user has probably given explicit
35697 # arguments.
35698 ac_option=$1
35699 ac_need_defaults=false;;
35700 esac
35701
35702 case $ac_option in
35703 # Handling of the options.
35704_ACEOF
35705cat >>$CONFIG_STATUS <<\_ACEOF
35706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35707 ac_cs_recheck=: ;;
35708 --version | --vers* | -V )
35709 echo "$ac_cs_version"; exit 0 ;;
35710 --he | --h)
35711 # Conflict between --help and --header
35712 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35713Try \`$0 --help' for more information." >&5
35714echo "$as_me: error: ambiguous option: $1
35715Try \`$0 --help' for more information." >&2;}
35716 { (exit 1); exit 1; }; };;
35717 --help | --hel | -h )
35718 echo "$ac_cs_usage"; exit 0 ;;
35719 --debug | --d* | -d )
35720 debug=: ;;
35721 --file | --fil | --fi | --f )
35722 $ac_shift
35723 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35724 ac_need_defaults=false;;
35725 --header | --heade | --head | --hea )
35726 $ac_shift
35727 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35728 ac_need_defaults=false;;
35729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35731 ac_cs_silent=: ;;
35732
35733 # This is an error.
35734 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35735Try \`$0 --help' for more information." >&5
35736echo "$as_me: error: unrecognized option: $1
35737Try \`$0 --help' for more information." >&2;}
35738 { (exit 1); exit 1; }; } ;;
35739
35740 *) ac_config_targets="$ac_config_targets $1" ;;
35741
35742 esac
35743 shift
35744done
35745
35746ac_configure_extra_args=
35747
35748if $ac_cs_silent; then
35749 exec 6>/dev/null
35750 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35751fi
35752
e6cc62c6
VS
35753_ACEOF
35754cat >>$CONFIG_STATUS <<_ACEOF
35755if \$ac_cs_recheck; then
35756 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35757 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35758fi
35759
e6cc62c6 35760_ACEOF
fe0895cf 35761
e6cc62c6 35762cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35763#
e6cc62c6 35764# INIT-COMMANDS section.
10f2d63a 35765#
10f2d63a 35766
a0b9e27f 35767
e6cc62c6
VS
35768 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35769 LN_S="${LN_S}"
10f2d63a 35770
10f2d63a 35771
10f2d63a 35772
e6cc62c6 35773_ACEOF
8284b0c5 35774
52127426 35775
247f5006 35776
e6cc62c6
VS
35777cat >>$CONFIG_STATUS <<\_ACEOF
35778for ac_config_target in $ac_config_targets
247f5006 35779do
e6cc62c6
VS
35780 case "$ac_config_target" in
35781 # Handling of arguments.
81345eef
VZ
35782 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35783 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35784 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35785 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35786 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35787 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35789echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35790 { (exit 1); exit 1; }; };;
247f5006
VZ
35791 esac
35792done
35793
e6cc62c6
VS
35794# If the user did not use the arguments to specify the items to instantiate,
35795# then the envvar interface is used. Set only those that are not.
35796# We use the long form for the default assignment because of an extremely
35797# bizarre bug on SunOS 4.1.3.
35798if $ac_need_defaults; then
35799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35802fi
35803
35804# Have a temporary directory for convenience. Make it in the build tree
35805# simply because there is no reason to put it here, and in addition,
35806# creating and moving files from /tmp can sometimes cause problems.
35807# Create a temporary directory, and hook for its removal unless debugging.
35808$debug ||
35809{
35810 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35811 trap '{ (exit 1); exit 1; }' 1 2 13 15
35812}
247f5006 35813
e6cc62c6 35814# Create a (secure) tmp directory for tmp files.
247f5006 35815
e6cc62c6
VS
35816{
35817 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35818 test -n "$tmp" && test -d "$tmp"
35819} ||
35820{
35821 tmp=./confstat$$-$RANDOM
35822 (umask 077 && mkdir $tmp)
35823} ||
35824{
35825 echo "$me: cannot create a temporary directory in ." >&2
35826 { (exit 1); exit 1; }
35827}
35828
35829_ACEOF
35830
35831cat >>$CONFIG_STATUS <<_ACEOF
35832
35833#
35834# CONFIG_FILES section.
35835#
247f5006 35836
e6cc62c6
VS
35837# No need to generate the scripts if there are no CONFIG_FILES.
35838# This happens for instance when ./config.status config.h
35839if test -n "\$CONFIG_FILES"; then
35840 # Protect against being on the right side of a sed subst in config.status.
35841 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35842 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35843s,@SHELL@,$SHELL,;t t
35844s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35845s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35846s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35847s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35848s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35849s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35850s,@exec_prefix@,$exec_prefix,;t t
35851s,@prefix@,$prefix,;t t
35852s,@program_transform_name@,$program_transform_name,;t t
35853s,@bindir@,$bindir,;t t
35854s,@sbindir@,$sbindir,;t t
35855s,@libexecdir@,$libexecdir,;t t
35856s,@datadir@,$datadir,;t t
35857s,@sysconfdir@,$sysconfdir,;t t
35858s,@sharedstatedir@,$sharedstatedir,;t t
35859s,@localstatedir@,$localstatedir,;t t
35860s,@libdir@,$libdir,;t t
35861s,@includedir@,$includedir,;t t
35862s,@oldincludedir@,$oldincludedir,;t t
35863s,@infodir@,$infodir,;t t
35864s,@mandir@,$mandir,;t t
35865s,@build_alias@,$build_alias,;t t
35866s,@host_alias@,$host_alias,;t t
35867s,@target_alias@,$target_alias,;t t
35868s,@DEFS@,$DEFS,;t t
35869s,@ECHO_C@,$ECHO_C,;t t
35870s,@ECHO_N@,$ECHO_N,;t t
35871s,@ECHO_T@,$ECHO_T,;t t
35872s,@LIBS@,$LIBS,;t t
35873s,@build@,$build,;t t
35874s,@build_cpu@,$build_cpu,;t t
35875s,@build_vendor@,$build_vendor,;t t
35876s,@build_os@,$build_os,;t t
35877s,@host@,$host,;t t
35878s,@host_cpu@,$host_cpu,;t t
35879s,@host_vendor@,$host_vendor,;t t
35880s,@host_os@,$host_os,;t t
35881s,@target@,$target,;t t
35882s,@target_cpu@,$target_cpu,;t t
35883s,@target_vendor@,$target_vendor,;t t
35884s,@target_os@,$target_os,;t t
35885s,@CC@,$CC,;t t
35886s,@CFLAGS@,$CFLAGS,;t t
35887s,@LDFLAGS@,$LDFLAGS,;t t
35888s,@CPPFLAGS@,$CPPFLAGS,;t t
35889s,@ac_ct_CC@,$ac_ct_CC,;t t
35890s,@EXEEXT@,$EXEEXT,;t t
35891s,@OBJEXT@,$OBJEXT,;t t
35892s,@CPP@,$CPP,;t t
35893s,@EGREP@,$EGREP,;t t
35894s,@CXX@,$CXX,;t t
35895s,@CXXFLAGS@,$CXXFLAGS,;t t
35896s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35897s,@RANLIB@,$RANLIB,;t t
35898s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35899s,@AR@,$AR,;t t
35900s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35901s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35902s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35903s,@STRIP@,$STRIP,;t t
35904s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35905s,@YACC@,$YACC,;t t
35906s,@LEX@,$LEX,;t t
35907s,@LEXLIB@,$LEXLIB,;t t
35908s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35909s,@LN_S@,$LN_S,;t t
35910s,@CXXCPP@,$CXXCPP,;t t
672abd7a 35911s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
35912s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35913s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35914s,@GTK_LIBS@,$GTK_LIBS,;t t
35915s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35916s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35917s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35918s,@X_CFLAGS@,$X_CFLAGS,;t t
35919s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35920s,@X_LIBS@,$X_LIBS,;t t
35921s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35922s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35923s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35924s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35925s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
35926s,@RESCOMP@,$RESCOMP,;t t
35927s,@DEREZ@,$DEREZ,;t t
35928s,@SETFILE@,$SETFILE,;t t
35929s,@LIBICONV@,$LIBICONV,;t t
35930s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35931s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 35932s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
35933s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35934s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35935s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35936s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
35937s,@VENDOR@,$VENDOR,;t t
35938s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
35939s,@WXUNIV@,$WXUNIV,;t t
35940s,@MONOLITHIC@,$MONOLITHIC,;t t
35941s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 35942s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
c74dc163 35943s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 35944s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
35945s,@UNICODE@,$UNICODE,;t t
35946s,@BUILD@,$BUILD,;t t
35947s,@SHARED@,$SHARED,;t t
35948s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35949s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35950s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
ea66c762 35951s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
35952s,@SET_MAKE@,$SET_MAKE,;t t
35953s,@MAKE_SET@,$MAKE_SET,;t t
35954s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 35955s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
35956s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35957s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35958s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35959s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35960s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35961s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35962s,@DLLPREFIX@,$DLLPREFIX,;t t
dc838d98 35963s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
35964s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35965s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35966s,@PIC_FLAG@,$PIC_FLAG,;t t
35967s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35968s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35969s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35970s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35971s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35972s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 35973s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
d78c94f2
VS
35974s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35975s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
f95cd8fa 35976s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 35977s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
6f628073 35978s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
35979s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
35980s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
250700e4 35981s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
8ee2dd05 35982s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 35983s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
250700e4 35984s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
3af038c0 35985s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
35986s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
35987s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
35988s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
35989s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 35990s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 35991s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
35992s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
35993s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
35994s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 35995s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
3af038c0
VS
35996s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35997s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35998s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
250700e4
RD
35999s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
36000s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36001s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36002s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36003s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36004s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05
VS
36005s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
36006s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t
3af038c0 36007s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
6f628073
VS
36008s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36009s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36010s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
36011s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t
36012s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36013s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36014s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36015s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36016s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36017s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36018s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t
6f628073
VS
36019s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
36020s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36021s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36022s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
8ee2dd05 36023s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t
3af038c0
VS
36024s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36025s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36026s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36027s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36028s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36029s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36030s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36031s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36032s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36033s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36034s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36035s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36036s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36037s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36038s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36039s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36040s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36041s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36042s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36043s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
1772d20c
VZ
36044s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
36045s,@COND_SHARED_1@,$COND_SHARED_1,;t t
36046s,@COND_SHARED_0@,$COND_SHARED_0,;t t
e6cc62c6
VS
36047s,@LEX_STEM@,$LEX_STEM,;t t
36048s,@PATH_IFS@,$PATH_IFS,;t t
36049s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36050s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36051s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36052s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36053s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
36054s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
36055s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36056s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36057s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36058s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36059s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36060s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36061s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36062s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36063s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36064s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36065s,@WX_ALL@,$WX_ALL,;t t
36066s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36067s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36068s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36069s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36070s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36071s,@USE_GUI@,$USE_GUI,;t t
36072s,@AFMINSTALL@,$AFMINSTALL,;t t
36073s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36074s,@TOOLKIT@,$TOOLKIT,;t t
36075s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36076s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36077s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36078s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36079s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36080s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36081s,@cross_compiling@,$cross_compiling,;t t
36082s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36083s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36084s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36085s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36086s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36087s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
36088s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36089s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36090s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36091s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36092s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36093s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36094s,@GUIDIST@,$GUIDIST,;t t
36095s,@PORT_FILES@,$PORT_FILES,;t t
36096s,@DISTDIR@,$DISTDIR,;t t
36097s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36098s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36099s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36100s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36101s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36102s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36103s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36104s,@RESFLAGS@,$RESFLAGS,;t t
36105s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36106s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36107s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36108s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36109s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36110s,@MACRESCOMP@,$MACRESCOMP,;t t
36111s,@MACSETFILE@,$MACSETFILE,;t t
36112s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36113s,@GCC@,$GCC,;t t
36114s,@DLLTOOL@,$DLLTOOL,;t t
36115s,@AS@,$AS,;t t
36116s,@NM@,$NM,;t t
36117s,@LD@,$LD,;t t
36118s,@MAKEINFO@,$MAKEINFO,;t t
36119s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
36120s,@ESD_LINK@,$ESD_LINK,;t t
36121s,@LIBOBJS@,$LIBOBJS,;t t
36122s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36123CEOF
36124
e6cc62c6
VS
36125_ACEOF
36126
36127 cat >>$CONFIG_STATUS <<\_ACEOF
36128 # Split the substitutions into bite-sized pieces for seds with
36129 # small command number limits, like on Digital OSF/1 and HP-UX.
36130 ac_max_sed_lines=48
36131 ac_sed_frag=1 # Number of current file.
36132 ac_beg=1 # First line for current file.
36133 ac_end=$ac_max_sed_lines # Line after last line for current file.
36134 ac_more_lines=:
36135 ac_sed_cmds=
36136 while $ac_more_lines; do
36137 if test $ac_beg -gt 1; then
36138 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36139 else
e6cc62c6
VS
36140 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36141 fi
36142 if test ! -s $tmp/subs.frag; then
36143 ac_more_lines=false
36144 else
36145 # The purpose of the label and of the branching condition is to
36146 # speed up the sed processing (if there are no `@' at all, there
36147 # is no need to browse any of the substitutions).
36148 # These are the two extra sed commands mentioned above.
36149 (echo ':t
36150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36151 if test -z "$ac_sed_cmds"; then
36152 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36153 else
36154 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36155 fi
36156 ac_sed_frag=`expr $ac_sed_frag + 1`
36157 ac_beg=$ac_end
36158 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36159 fi
e6cc62c6
VS
36160 done
36161 if test -z "$ac_sed_cmds"; then
36162 ac_sed_cmds=cat
10f2d63a 36163 fi
e6cc62c6 36164fi # test -n "$CONFIG_FILES"
10f2d63a 36165
e6cc62c6
VS
36166_ACEOF
36167cat >>$CONFIG_STATUS <<\_ACEOF
36168for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36170 case $ac_file in
36171 - | *:- | *:-:* ) # input from stdin
36172 cat >$tmp/stdin
36173 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36175 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36177 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36178 esac
247f5006 36179
e6cc62c6
VS
36180 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36181 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36182$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36183 X"$ac_file" : 'X\(//\)[^/]' \| \
36184 X"$ac_file" : 'X\(//\)$' \| \
36185 X"$ac_file" : 'X\(/\)' \| \
36186 . : '\(.\)' 2>/dev/null ||
36187echo X"$ac_file" |
36188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36190 /^X\(\/\/\)$/{ s//\1/; q; }
36191 /^X\(\/\).*/{ s//\1/; q; }
36192 s/.*/./; q'`
36193 { if $as_mkdir_p; then
36194 mkdir -p "$ac_dir"
a0b9e27f 36195 else
e6cc62c6
VS
36196 as_dir="$ac_dir"
36197 as_dirs=
36198 while test ! -d "$as_dir"; do
36199 as_dirs="$as_dir $as_dirs"
36200 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36202 X"$as_dir" : 'X\(//\)[^/]' \| \
36203 X"$as_dir" : 'X\(//\)$' \| \
36204 X"$as_dir" : 'X\(/\)' \| \
36205 . : '\(.\)' 2>/dev/null ||
36206echo X"$as_dir" |
36207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36209 /^X\(\/\/\)$/{ s//\1/; q; }
36210 /^X\(\/\).*/{ s//\1/; q; }
36211 s/.*/./; q'`
36212 done
36213 test ! -n "$as_dirs" || mkdir $as_dirs
36214 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36215echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36216 { (exit 1); exit 1; }; }; }
36217
36218 ac_builddir=.
36219
36220if test "$ac_dir" != .; then
36221 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36222 # A "../" for each directory in $ac_dir_suffix.
36223 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36224else
36225 ac_dir_suffix= ac_top_builddir=
36226fi
247f5006 36227
e6cc62c6
VS
36228case $srcdir in
36229 .) # No --srcdir option. We are building in place.
36230 ac_srcdir=.
36231 if test -z "$ac_top_builddir"; then
36232 ac_top_srcdir=.
36233 else
36234 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36235 fi ;;
36236 [\\/]* | ?:[\\/]* ) # Absolute path.
36237 ac_srcdir=$srcdir$ac_dir_suffix;
36238 ac_top_srcdir=$srcdir ;;
247f5006 36239 *) # Relative path.
e6cc62c6
VS
36240 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36241 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36242esac
36243# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36244# absolute.
36245ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36246ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36247ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36248ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36249
247f5006 36250
e6cc62c6
VS
36251 case $INSTALL in
36252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36253 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36254 esac
247f5006 36255
e6cc62c6
VS
36256 if test x"$ac_file" != x-; then
36257 { echo "$as_me:$LINENO: creating $ac_file" >&5
36258echo "$as_me: creating $ac_file" >&6;}
36259 rm -f "$ac_file"
36260 fi
36261 # Let's still pretend it is `configure' which instantiates (i.e., don't
36262 # use $as_me), people would be surprised to read:
36263 # /* config.h. Generated by config.status. */
36264 if test x"$ac_file" = x-; then
36265 configure_input=
36266 else
36267 configure_input="$ac_file. "
36268 fi
36269 configure_input=$configure_input"Generated from `echo $ac_file_in |
36270 sed 's,.*/,,'` by configure."
36271
36272 # First look for the input files in the build tree, otherwise in the
36273 # src tree.
36274 ac_file_inputs=`IFS=:
36275 for f in $ac_file_in; do
36276 case $f in
36277 -) echo $tmp/stdin ;;
36278 [\\/$]*)
36279 # Absolute (can't be DOS-style, as IFS=:)
36280 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36281echo "$as_me: error: cannot find input file: $f" >&2;}
36282 { (exit 1); exit 1; }; }
36283 echo $f;;
36284 *) # Relative
36285 if test -f "$f"; then
36286 # Build tree
36287 echo $f
36288 elif test -f "$srcdir/$f"; then
36289 # Source tree
36290 echo $srcdir/$f
36291 else
36292 # /dev/null tree
36293 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36294echo "$as_me: error: cannot find input file: $f" >&2;}
36295 { (exit 1); exit 1; }; }
36296 fi;;
36297 esac
36298 done` || { (exit 1); exit 1; }
36299_ACEOF
36300cat >>$CONFIG_STATUS <<_ACEOF
36301 sed "$ac_vpsub
36302$extrasub
36303_ACEOF
36304cat >>$CONFIG_STATUS <<\_ACEOF
36305:t
36306/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36307s,@configure_input@,$configure_input,;t t
36308s,@srcdir@,$ac_srcdir,;t t
36309s,@abs_srcdir@,$ac_abs_srcdir,;t t
36310s,@top_srcdir@,$ac_top_srcdir,;t t
36311s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36312s,@builddir@,$ac_builddir,;t t
36313s,@abs_builddir@,$ac_abs_builddir,;t t
36314s,@top_builddir@,$ac_top_builddir,;t t
36315s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36316s,@INSTALL@,$ac_INSTALL,;t t
36317" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36318 rm -f $tmp/stdin
36319 if test x"$ac_file" != x-; then
36320 mv $tmp/out $ac_file
36321 else
36322 cat $tmp/out
36323 rm -f $tmp/out
36324 fi
36325
36326done
36327_ACEOF
36328cat >>$CONFIG_STATUS <<\_ACEOF
36329
36330#
36331# CONFIG_HEADER section.
36332#
10f2d63a
VZ
36333
36334# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36335# NAME is the cpp macro being defined and VALUE is the value it is being given.
36336#
36337# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36338ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36339ac_dB='[ ].*$,\1#\2'
36340ac_dC=' '
36341ac_dD=',;t'
36342# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36343ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36344ac_uB='$,\1#\2define\3'
10f2d63a 36345ac_uC=' '
e6cc62c6
VS
36346ac_uD=',;t'
36347
36348for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36349 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36350 case $ac_file in
36351 - | *:- | *:-:* ) # input from stdin
36352 cat >$tmp/stdin
36353 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36355 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36356 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36357 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36358 esac
36359
e6cc62c6
VS
36360 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36361echo "$as_me: creating $ac_file" >&6;}
36362
36363 # First look for the input files in the build tree, otherwise in the
36364 # src tree.
36365 ac_file_inputs=`IFS=:
36366 for f in $ac_file_in; do
36367 case $f in
36368 -) echo $tmp/stdin ;;
36369 [\\/$]*)
36370 # Absolute (can't be DOS-style, as IFS=:)
36371 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36372echo "$as_me: error: cannot find input file: $f" >&2;}
36373 { (exit 1); exit 1; }; }
36374 echo $f;;
36375 *) # Relative
36376 if test -f "$f"; then
36377 # Build tree
36378 echo $f
36379 elif test -f "$srcdir/$f"; then
36380 # Source tree
36381 echo $srcdir/$f
36382 else
36383 # /dev/null tree
36384 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36385echo "$as_me: error: cannot find input file: $f" >&2;}
36386 { (exit 1); exit 1; }; }
36387 fi;;
36388 esac
36389 done` || { (exit 1); exit 1; }
36390 # Remove the trailing spaces.
36391 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36392
36393_ACEOF
36394
36395# Transform confdefs.h into two sed scripts, `conftest.defines' and
36396# `conftest.undefs', that substitutes the proper values into
36397# config.h.in to produce config.h. The first handles `#define'
36398# templates, and the second `#undef' templates.
36399# And first: Protect against being on the right side of a sed subst in
36400# config.status. Protect against being in an unquoted here document
36401# in config.status.
36402rm -f conftest.defines conftest.undefs
36403# Using a here document instead of a string reduces the quoting nightmare.
36404# Putting comments in sed scripts is not portable.
36405#
36406# `end' is used to avoid that the second main sed command (meant for
36407# 0-ary CPP macros) applies to n-ary macro definitions.
36408# See the Autoconf documentation for `clear'.
36409cat >confdef2sed.sed <<\_ACEOF
36410s/[\\&,]/\\&/g
36411s,[\\$`],\\&,g
36412t clear
36413: clear
36414s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36415t end
36416s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36417: end
36418_ACEOF
36419# If some macros were called several times there might be several times
36420# the same #defines, which is useless. Nevertheless, we may not want to
36421# sort them, since we want the *last* AC-DEFINE to be honored.
36422uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36423sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36424rm -f confdef2sed.sed
10f2d63a
VZ
36425
36426# This sed command replaces #undef with comments. This is necessary, for
36427# example, in the case of _POSIX_SOURCE, which is predefined and required
36428# on some systems where configure will not decide to define it.
e6cc62c6
VS
36429cat >>conftest.undefs <<\_ACEOF
36430s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36431_ACEOF
36432
36433# Break up conftest.defines because some shells have a limit on the size
36434# of here documents, and old seds have small limits too (100 cmds).
36435echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36436echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36437echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36438echo ' :' >>$CONFIG_STATUS
36439rm -f conftest.tail
36440while grep . conftest.defines >/dev/null
36441do
36442 # Write a limited-size here document to $tmp/defines.sed.
36443 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36444 # Speed up: don't consider the non `#define' lines.
36445 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36446 # Work around the forget-to-reset-the-flag bug.
36447 echo 't clr' >>$CONFIG_STATUS
36448 echo ': clr' >>$CONFIG_STATUS
36449 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36450 echo 'CEOF
36451 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36452 rm -f $tmp/in
36453 mv $tmp/out $tmp/in
36454' >>$CONFIG_STATUS
36455 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36456 rm -f conftest.defines
36457 mv conftest.tail conftest.defines
36458done
36459rm -f conftest.defines
36460echo ' fi # grep' >>$CONFIG_STATUS
36461echo >>$CONFIG_STATUS
10f2d63a 36462
e6cc62c6
VS
36463# Break up conftest.undefs because some shells have a limit on the size
36464# of here documents, and old seds have small limits too (100 cmds).
36465echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36466rm -f conftest.tail
e6cc62c6 36467while grep . conftest.undefs >/dev/null
10f2d63a 36468do
e6cc62c6
VS
36469 # Write a limited-size here document to $tmp/undefs.sed.
36470 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36471 # Speed up: don't consider the non `#undef'
36472 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36473 # Work around the forget-to-reset-the-flag bug.
36474 echo 't clr' >>$CONFIG_STATUS
36475 echo ': clr' >>$CONFIG_STATUS
36476 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36477 echo 'CEOF
e6cc62c6
VS
36478 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36479 rm -f $tmp/in
36480 mv $tmp/out $tmp/in
36481' >>$CONFIG_STATUS
36482 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36483 rm -f conftest.undefs
36484 mv conftest.tail conftest.undefs
10f2d63a 36485done
e6cc62c6
VS
36486rm -f conftest.undefs
36487
36488cat >>$CONFIG_STATUS <<\_ACEOF
36489 # Let's still pretend it is `configure' which instantiates (i.e., don't
36490 # use $as_me), people would be surprised to read:
36491 # /* config.h. Generated by config.status. */
36492 if test x"$ac_file" = x-; then
36493 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36494 else
e6cc62c6 36495 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36496 fi
e6cc62c6
VS
36497 cat $tmp/in >>$tmp/config.h
36498 rm -f $tmp/in
36499 if test x"$ac_file" != x-; then
36500 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36501 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36502echo "$as_me: $ac_file is unchanged" >&6;}
36503 else
36504 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36505$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36506 X"$ac_file" : 'X\(//\)[^/]' \| \
36507 X"$ac_file" : 'X\(//\)$' \| \
36508 X"$ac_file" : 'X\(/\)' \| \
36509 . : '\(.\)' 2>/dev/null ||
36510echo X"$ac_file" |
36511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36513 /^X\(\/\/\)$/{ s//\1/; q; }
36514 /^X\(\/\).*/{ s//\1/; q; }
36515 s/.*/./; q'`
36516 { if $as_mkdir_p; then
36517 mkdir -p "$ac_dir"
36518 else
36519 as_dir="$ac_dir"
36520 as_dirs=
36521 while test ! -d "$as_dir"; do
36522 as_dirs="$as_dir $as_dirs"
36523 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36524$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36525 X"$as_dir" : 'X\(//\)[^/]' \| \
36526 X"$as_dir" : 'X\(//\)$' \| \
36527 X"$as_dir" : 'X\(/\)' \| \
36528 . : '\(.\)' 2>/dev/null ||
36529echo X"$as_dir" |
36530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36532 /^X\(\/\/\)$/{ s//\1/; q; }
36533 /^X\(\/\).*/{ s//\1/; q; }
36534 s/.*/./; q'`
36535 done
36536 test ! -n "$as_dirs" || mkdir $as_dirs
36537 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36538echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36539 { (exit 1); exit 1; }; }; }
a0b9e27f 36540
e6cc62c6
VS
36541 rm -f $ac_file
36542 mv $tmp/config.h $ac_file
36543 fi
36544 else
36545 cat $tmp/config.h
36546 rm -f $tmp/config.h
36547 fi
36548done
36549_ACEOF
36550cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36551
e6cc62c6
VS
36552#
36553# CONFIG_COMMANDS section.
36554#
36555for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36556 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36557 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36558 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36559$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36560 X"$ac_dest" : 'X\(//\)[^/]' \| \
36561 X"$ac_dest" : 'X\(//\)$' \| \
36562 X"$ac_dest" : 'X\(/\)' \| \
36563 . : '\(.\)' 2>/dev/null ||
36564echo X"$ac_dest" |
36565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36567 /^X\(\/\/\)$/{ s//\1/; q; }
36568 /^X\(\/\).*/{ s//\1/; q; }
36569 s/.*/./; q'`
36570 ac_builddir=.
36571
36572if test "$ac_dir" != .; then
36573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36574 # A "../" for each directory in $ac_dir_suffix.
36575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36576else
36577 ac_dir_suffix= ac_top_builddir=
36578fi
36579
36580case $srcdir in
36581 .) # No --srcdir option. We are building in place.
36582 ac_srcdir=.
36583 if test -z "$ac_top_builddir"; then
36584 ac_top_srcdir=.
36585 else
36586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36587 fi ;;
36588 [\\/]* | ?:[\\/]* ) # Absolute path.
36589 ac_srcdir=$srcdir$ac_dir_suffix;
36590 ac_top_srcdir=$srcdir ;;
36591 *) # Relative path.
36592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36594esac
36595# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36596# absolute.
36597ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36598ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36599ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36600ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36601
36602
36603 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36604echo "$as_me: executing $ac_dest commands" >&6;}
36605 case $ac_dest in
36606 default )
652d930d 36607 if test ! -h wx-config; then
991a5759 36608 chmod +x wx-config
3a922bb4
RL
36609 mv wx-config wx${TOOLCHAIN_NAME}-config
36610 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36611 fi
665bbe97 36612
00cf1208
RR
36613 if test ! -d lib; then
36614 mkdir lib
36615 fi
36616 if test ! -d lib/wx; then
36617 mkdir lib/wx
36618 fi
36619 if test ! -d lib/wx/include; then
36620 mkdir lib/wx/include
36621 fi
3a922bb4
RL
36622 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36623 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36624 fi
3a922bb4
RL
36625 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36626 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36627 fi
36628 if test -f setup.h; then
3a922bb4 36629 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36630 fi
e6cc62c6
VS
36631 ;;
36632 esac
36633done
36634_ACEOF
2224580a 36635
e6cc62c6 36636cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36637
e6cc62c6
VS
36638{ (exit 0); exit 0; }
36639_ACEOF
36640chmod +x $CONFIG_STATUS
36641ac_clean_files=$ac_clean_files_save
36642
36643
36644# configure is writing to config.log, and then calls config.status.
36645# config.status does its own redirection, appending to config.log.
36646# Unfortunately, on DOS this fails, as config.log is still kept open
36647# by configure, so config.status won't be able to write to it; its
36648# output is simply discarded. So we exec the FD to /dev/null,
36649# effectively closing config.log, so it can be properly (re)opened and
36650# appended to by config.status. When coming back to configure, we
36651# need to make the FD available again.
36652if test "$no_create" != yes; then
36653 ac_cs_success=:
36654 ac_config_status_args=
36655 test "$silent" = yes &&
36656 ac_config_status_args="$ac_config_status_args --quiet"
36657 exec 5>/dev/null
36658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36659 exec 5>>config.log
36660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36661 # would make configure fail if this is the last instruction.
36662 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36663fi
36664
672abd7a
VS
36665#
36666# CONFIG_SUBDIRS section.
36667#
36668if test "$no_recursion" != yes; then
36669
36670 # Remove --cache-file and --srcdir arguments so they do not pile up.
36671 ac_sub_configure_args=
36672 ac_prev=
36673 for ac_arg in $ac_configure_args; do
36674 if test -n "$ac_prev"; then
36675 ac_prev=
36676 continue
36677 fi
36678 case $ac_arg in
36679 -cache-file | --cache-file | --cache-fil | --cache-fi \
36680 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36681 ac_prev=cache_file ;;
36682 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36683 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36684 | --c=*)
36685 ;;
36686 --config-cache | -C)
36687 ;;
36688 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36689 ac_prev=srcdir ;;
36690 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36691 ;;
36692 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36693 ac_prev=prefix ;;
36694 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36695 ;;
36696 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
36697 esac
36698 done
36699
36700 # Always prepend --prefix to ensure using the same prefix
36701 # in subdir configurations.
36702 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
36703
36704 ac_popdir=`pwd`
36705 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36706
36707 # Do not complain, so a configure script can configure whichever
36708 # parts of a large source tree are present.
36709 test -d $srcdir/$ac_dir || continue
36710
36711 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
36712echo "$as_me: configuring in $ac_dir" >&6;}
36713 { if $as_mkdir_p; then
36714 mkdir -p "$ac_dir"
36715 else
36716 as_dir="$ac_dir"
36717 as_dirs=
36718 while test ! -d "$as_dir"; do
36719 as_dirs="$as_dir $as_dirs"
36720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36722 X"$as_dir" : 'X\(//\)[^/]' \| \
36723 X"$as_dir" : 'X\(//\)$' \| \
36724 X"$as_dir" : 'X\(/\)' \| \
36725 . : '\(.\)' 2>/dev/null ||
36726echo X"$as_dir" |
36727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36729 /^X\(\/\/\)$/{ s//\1/; q; }
36730 /^X\(\/\).*/{ s//\1/; q; }
36731 s/.*/./; q'`
36732 done
36733 test ! -n "$as_dirs" || mkdir $as_dirs
36734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36735echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36736 { (exit 1); exit 1; }; }; }
36737
36738 ac_builddir=.
36739
36740if test "$ac_dir" != .; then
36741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36742 # A "../" for each directory in $ac_dir_suffix.
36743 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36744else
36745 ac_dir_suffix= ac_top_builddir=
36746fi
36747
36748case $srcdir in
36749 .) # No --srcdir option. We are building in place.
36750 ac_srcdir=.
36751 if test -z "$ac_top_builddir"; then
36752 ac_top_srcdir=.
36753 else
36754 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36755 fi ;;
36756 [\\/]* | ?:[\\/]* ) # Absolute path.
36757 ac_srcdir=$srcdir$ac_dir_suffix;
36758 ac_top_srcdir=$srcdir ;;
36759 *) # Relative path.
36760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36761 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36762esac
36763# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36764# absolute.
36765ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36766ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36767ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36768ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36769
36770
36771 cd $ac_dir
36772
36773 # Check for guested configure; otherwise get Cygnus style configure.
36774 if test -f $ac_srcdir/configure.gnu; then
36775 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
36776 elif test -f $ac_srcdir/configure; then
36777 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
36778 elif test -f $ac_srcdir/configure.in; then
36779 ac_sub_configure=$ac_configure
36780 else
36781 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36782echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36783 ac_sub_configure=
36784 fi
36785
36786 # The recursion is here.
36787 if test -n "$ac_sub_configure"; then
36788 # Make the cache file name correct relative to the subdirectory.
36789 case $cache_file in
36790 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36791 *) # Relative path.
36792 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
36793 esac
36794
36795 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36796echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36797 # The eval makes quoting arguments work.
36798 eval $ac_sub_configure $ac_sub_configure_args \
36799 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
36800 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36801echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36802 { (exit 1); exit 1; }; }
36803 fi
36804
36805 cd $ac_popdir
36806 done
36807fi
36808
8284b0c5 36809
2b5f62a0
VZ
36810echo
36811echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36812echo ""
36813echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36814echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36815
36816echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36817echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36818echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36819
0c98a14e
GD
36820echo " What level of wxWindows compatibility should be enabled?"
36821echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
36822echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36823echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36824
2b5f62a0
VZ
36825echo " Which libraries should wxWindows use?"
36826echo " jpeg ${wxUSE_LIBJPEG-none}"
36827echo " png ${wxUSE_LIBPNG-none}"
36828echo " regex ${wxUSE_REGEX}"
36829echo " tiff ${wxUSE_LIBTIFF-none}"
36830echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36831echo " odbc ${wxUSE_ODBC}"
5f0b6dff 36832echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
36833
36834echo ""
36835